* 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
* fix(context-menu): only prevent default keydown behavior if menu is open
* docs(notification): update copy
* docs(select): update item groups example to use hidden default option
* docs: increase max-height to render UIShell, UnorderedList items
* fix(ui-shell): remove iconDescription prop from HeaderNavMenu #566Fixes#566
* remove default from inline notification
* feat(notification): remove default prop value for title, caption
Co-authored-by: Eric Y Liu <ericyl.us@gmail.com>
* feat(toolbar): forward "clear" event in ToolbarSearch
* docs(search): add on:clear example
* fix(ui-shell): set aria-hidden in SideNav
Ref c2b4f1f00
* chore(deps-dev): upgrade carbon-components to v10.30.0
* fix(text-input): use bx--text-input class for TextInputSkeleton
* fix(radio-button): only render span if labelText is truthy
* docs(password-input): add custom tooltip example
* feat(button): add isSelected prop for icon-only, ghost buttons
* feat(radio-button): add legendText prop to RadioButtonGroup
* docs(tag): add filterable (disabled) variant
* feat(tag): add interactive prop
* chore(number-input): deprecate the mobile variant
Mobile variant styles will no longer work.
* feat(button): set aria-pressed attribute if icon-only, ghost button is selected
* fix(multi-select): type dispatched select event
* fix(button): remove redundant "button" role
* feat(icon): deprecate Icon, IconSkeleton
* feat(ui-shell): make SideNavMenuItem text slottable
* fix(list-box): update styles for ListBoxSelection
* fix(list-box): temporarily apply override styles to ListBoxMenuIcon for chevron
* fix(tag): set disabled prop on interactive tag
* docs(button): extract selected, icon-only button example
* feat(tooltip): elevate z-index of tooltip when open
* feat: forward restProps to input element
* fix(types): fix TimePicker test to pass svelte-check
* feat: add ImageLoader component
* test: add ImageLoader
* feat: add LocalStorage component
* test(local-storage): fix invalid file
* chore(docs): use green tag type
* fix(combo-fix): dont re-focus listbox if relatedTarget is input/select/textarea
* fix(combo-box): check if relatedTarget is truthy
* fix(multi-select): dont re-focus listbox if relatedTarget is input/select/textarea
* chore: patch prettier-plugin-svelte
* docs(tag): add filterable small tag example
* feat(ui-shell): add SideNavDivider
* feat(combo-box): support warning state
* docs(combo-box): add invalid state example
* fix(progress-step): add title to warning icon
* docs(progress-indicator): add invalid step example
* docs(progress-indicator): add disabled steps example
* feat(truncate): add text truncation component and action
* docs(radio-tile): fix light variant example
* fix(side-effects): add pre-compiled CSS to library side effects
* refactor(css): use shorthand scss imports, add comments
* refactor(truncate): rename "direction" prop to "clamp"
* chore(deps-dev): bump carbon-components to v10.29.0
* feat(combo-box): add direction prop
* feat(dropdown): add direction prop
* feat(multi-select): add direction prop
* Change placeholder text for TimePicker to have ":" separator
* Revert "Change placeholder text for TimePicker to have ":" separator"
This reverts commit ab83560b4d.
* Change placeholder text for TimePicker to have ":" separator
* chore(deps-dev): bump devDependencies
* docs: update number of available carbon icons
* feat(notification): distinguish dispatched close event between click/timeout
* fix(notification): prevent class from being overriden by $$restProps
* docs(notification): improve example body copy
* fix(notification): remove notificationType prop
* refactor(notification): resolve svelte file in imports
* fix(notification): prevent class from being overridden by $$restProps
* feat(notification): update TS signature for dispatched close event
* docs: update contributing
* fix(loading): adjust spinner styles
* feat(tag): support custom icon variant
* feat(tile): add optional expand/collapse icon labels to ExpandableTile
* feat(code-snippet): support disabled state for single and multi-line types
* fix(code-snippet): remove impossible class directive
* fix(code-snippet): showMoreLess button size should be "field", not "small"
* fix(password-input): disable visibility button
- set default values for tooltipAlignment, tooltipPosition
* fix(text-input): add missing warning field wrapper class
* feat(button): infer hasIconOnly using $$slots API
- requires Svelte version >=3.25
* docs(button): add danger tertiary, icon-only example
* feat(button): set default values for tooltip alignment, position
* docs: document dynamic theming
* fix(modal): correctly set class props #482
* fix(form): forward submit event in FluidForm #487
* feat(dropdown): support warning state
* feat(multi-select): support warning state
* fix(multi-select): prevent dropdown from opening if disabled
* feat(number-input): support warning state
* chore(deps-dev): upgrade devDependencies
* docs: bump @carbon/themes, carbon-components
* refactor(data-table): co-locate DataTableSkeleton with DataTable
* docs: update number of pictograms
* fix(password-input): add missing "bx--btn" class to visibility toggle
* docs: increase z-index for component preview
* fix(data-table): remove aria-hidden prop from ToolbarSearch
* fix(ui-shell): deprecate ariaLabel prop in HeaderNav
- remove menubar role from HeaderNav
- obtain "aria-label" and "aria-labelledby" from $$props
* fix(slider): add label id
* Close overflow menu on focusout
* fix styling and behavior of overflow menu,
when it is opened for the first time
* remove previous commit
* Fix keyboard navigation of overflow menu items