* chore: update ignore rules, remove unused files
* refactor(icons): use icons from carbon-icons-svelte@11
* docs(time-picker): fix default value
* chore: upgrade carbon-icons-svelte to v11
* docs: update examples to use icons from carbon-icons-svelte@11
* docs: update number of icons [ci skip]
If `headers` is dynamically updated, clicking a sortable table header will sort the incorrect column. Instead of randomly generating an id and keeping track of it through context, we can simply use the required key in `headers` as the id.
* feat(icons): inline carbon icons used by components
* feat(icons): update svelte components to use inlined carbon icons
* breaking(deps): remove carbon-icons-svelte
* chore(deps-dev): install carbon-icons-svelte as a devDependency
* fix(data-table): include border style for non-expandable rows
Fixes#861
* docs(data-table): use batchExpansion for non-expandable rows example [ci skip]
* fix(DataTable): undefined cell value fallback
* Update DataTable.svelte
* fix(data-table): remove "" as the default value for table cells
Co-authored-by: Eric Y Liu <ericyl.us@gmail.com>
* fix(data-table): type DataTableRowId as "any" #530Fixes#530
* fix(tree-view): make first node focusable if activeId does not match selected
* fix(overflow-menu): set type="button" to prevent default submit behavior #554Fixes#554
* fix(overflow-menu): update semantic attributes in OverflowMenuItem
* fix(number-input): do not dispatch change event on initialization #561Fixes#561
* fix(tree-view): make first focusable node tabbable regardless of active/selected states
* fix(date-picker): load rangePlugin dynamically
* build(rollup): enable inlineDynamicImports
* build(rollup): remove "clipboard-copy" global
* fix(overflow-menu): do not render title if using a slot #537Fixes#537
* fix(select): forward missing focus, input events #501Fixes#501
* fix(data-table): export useStaticWidth prop
* docs(data-table): add static width example
* fix(data-table): do not render table header if title/description not provided
* feat(modal): dispatch "click:button--primary" as an alias to "submit"
* test: update DataTable types test
* test(modal): update modal type tests
* docs(data-table): add clear reminder to key headers/rows
* feat(theme): add g80 theme
* docs(data-table): use link with icon variant
* feat(search): support expandable variant
* fix(file-uploaded): use semantic p element instead of strong
* feat(side-nav): dispatch open, close, click:overlay events
* refactor(ui-shell): remove usage of deprecated Icon component
* feat(ui-shell): allow custom hamburger menu icons
* feat(button): support xl size
* fix(code-snippet): wrap code element with pre
* refactor(button): use button specific tooltip class for icon-only variant
* feat(password-input): support warning, inline props
* feat(data-table): support medium size
* feature: Add support for nested object fields in Data Table
feature: Add support for nested object fields in Data Table
* fix can't open dropdown with keyboard (#610)
* fix(Dropdown): update selectedId when selectedIndex changes. (#611)
* chore(deps-dev): patch carbon-components@10.32.1 (#613)
* v0.32.2
* feature: Add support for nested object fields in Data Table
feature: Add support for nested object fields in Data Table
* chore: Added example for nested object values into the documentation
Co-authored-by: Lyu, Wei-Da <36730922+jasonlyu123@users.noreply.github.com>
Co-authored-by: David Espinosa <david.emanuel.espinosa@gmail.com>
Co-authored-by: Eric Liu <ericyl.us@gmail.com>
* Fix "Cannot use import statement outside a module"
Using `HamburgerMenu` from a SvelteKit project would result in the following error:
```
4:01:51 PM [vite] Error when evaluating SSR module /node_modules/carbon-components-svelte/src/UIShell/SideNav/HamburgerMenu.svelte:
/home/vegard/beat/backoffice-sapper/node_modules/carbon-icons-svelte/lib/Close20/index.js:1
import Close20 from "./Close20.svelte";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:1101:16)
at Module._compile (internal/modules/cjs/loader.js:1149:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
at Module.load (internal/modules/cjs/loader.js:1034:32)
at Function.Module._load (internal/modules/cjs/loader.js:923:14)
at Module.require (internal/modules/cjs/loader.js:1074:19)
at require (internal/modules/cjs/helpers.js:72:18)
at nodeRequire (/home/vegard/beat/backoffice-sapper/node_modules/vite/dist/node/chunks/dep-66eb515d.js:69044:17)
at ssrImport (/home/vegard/beat/backoffice-sapper/node_modules/vite/dist/node/chunks/dep-66eb515d.js:69002:20)
at eval (/node_modules/carbon-components-svelte/src/UIShell/SideNav/HamburgerMenu.svelte:7:31) (x3)
```
To fix it, we need to reference the `.svelte` files for the icons.
* Fix DataTable icon import.
* feat(code-snippet): add copy functionality
- docs: add custom feedback copy text example
* feat(tile): support disabled state for SelectableTile, RadioTile
Closes#539
* build(rollup): add clipboard-copy to globals
* feat(copy-button): add copy functionality
* feat(content-switcher): deprecate the light prop
- docs: remove the light variant example
* fix(toolbar-search): remove outer div
* feat(search): add searchClass prop
* fix(composed-modal): set hasScrollingContent class on ModalBody
* docs(data-table): add expandable size examples
* feat(tooltip): add TooltipFooter component
* fix(time-picker): correctly display invalidText
* feat(breadcrumb): support overflow menu
* feat(multi-select): export inputRef prop
* chore(deps-dev): upgrade carbon-components to v10.32.0
* feat(form): add noMargin prop to FormGroup
* docs(tooltip): document TooltipFooter
* feat(context-menu): support danger kind for ContextMenuOption
* feat(data-table): support rendering empty table header in skeleton
* refactor(types): use shorter import path in DataTableSkeleton
* feat(data-table): allow sorting to be disabled for a specific header
* docs(data-table): update example to desort the Protocol header
As an example, it makes more sense because all the values ("http") are the same.
* fix(context-menu): set initial y offset of context menu based on window height #577
* fix(context-menu): render submenu based on viewport constraints #577