* 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.
* 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
* 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
* 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
* 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
* feat(ui-shell): refactor UI Shell search component
* fix(ui-shell): dispatched event is "select", not "search"
* test(header-search): validate HeaderSearch types
* fix(header-search): selecting a result should reset the search
* feat(header-search): deefault selectedResultIndex should be 0
Reset selectedResultIndex, value after dispatching.
* docs(header-search): demo basic filtering
* chore: rebuild types, docs
* feat(header-search): pass index as a slot prop