@nordhealth/components 4.12.0 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/custom-elements.json +8151 -8134
- package/lib/AutocompleteMixin-D8eiOxvO.js.map +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +12 -1
- package/lib/Button.js.map +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonGroup.js.map +1 -1
- package/lib/Calendar-CL_eqbiT.js +2 -0
- package/lib/Calendar-CL_eqbiT.js.map +1 -0
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js +1 -1
- package/lib/DateSelectEvent.js.map +1 -1
- package/lib/DirectionController-ChvNGESZ.js.map +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js.map +1 -1
- package/lib/DropdownItem-Cy6lHtoG.js +2 -0
- package/lib/DropdownItem-Cy6lHtoG.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/EventController-BBOmvfLa.js.map +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/FocusableMixin-BlQLNPdJ.js.map +1 -1
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/FormAssociatedMixin-DFL7yabe.js.map +1 -1
- package/lib/FormDataController-OUt5L5uC.js.map +1 -1
- package/lib/{FormField-CUC_H-0e.js → FormField--eLuhPue.js} +2 -2
- package/lib/FormField--eLuhPue.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/IconManager.js +1 -1
- package/lib/IconManager.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/InputMixin-LetXsCyv.js.map +1 -1
- package/lib/KeyboardController.js +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/LightDismissController-4pH8cdko.js.map +1 -1
- package/lib/LightDomController-DIwtVelV.js.map +1 -1
- package/lib/LightSlotController-Coyy4nqS.js.map +1 -1
- package/lib/LocalizeController.js +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Message.js +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/ModalController.js +1 -1
- package/lib/ModalController.js.map +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/{NavToggle-D-udBTou.js → NavToggle-DL74d1aQ.js} +2 -2
- package/lib/NavToggle-DL74d1aQ.js.map +1 -0
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Notification.js +1 -1
- package/lib/Notification.js.map +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/NotificationGroup.js.map +1 -1
- package/lib/NotificationMixin-DOUQsx7N.js.map +1 -1
- package/lib/Popout-k_ddK22Q.js +2 -0
- package/lib/Popout-k_ddK22Q.js.map +1 -0
- package/lib/Popout.js +1 -1
- package/lib/Progress.js +1 -1
- package/lib/Progress.js.map +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/ProgressBar.js.map +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Range.js +1 -1
- package/lib/Range.js.map +1 -1
- package/lib/ScrollbarController-BFC67Y2x.js +2 -0
- package/lib/ScrollbarController-BFC67Y2x.js.map +1 -0
- package/lib/SegmentedControl.js +1 -1
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControlItem.js +44 -1
- package/lib/SegmentedControlItem.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/SelectEvent.js.map +1 -1
- package/lib/ShortcutController-BIb3WGzH.js.map +1 -1
- package/lib/SizeMixin-CU9cLbLC.js.map +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/SlotController-Z6eG7LSZ.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/Tab.js +1 -1
- package/lib/Tab.js.map +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabGroup.js.map +1 -1
- package/lib/TabPanel.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/Tag.js +1 -1
- package/lib/Tag.js.map +1 -1
- package/lib/TagGroup.js +1 -1
- package/lib/TagGroup.js.map +1 -1
- package/lib/{TextField-C5gYzfOp.js → TextField-BdEdZ0_b.js} +2 -2
- package/lib/TextField-BdEdZ0_b.js.map +1 -0
- package/lib/TextSelectableMixin-Cfv__lHS.js.map +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js.map +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Toggle.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/VisuallyHidden.js.map +1 -1
- package/lib/bundle.js +80 -26
- package/lib/bundle.js.map +1 -1
- package/lib/collection-Dvg2XbxV.js.map +1 -1
- package/lib/cond-CI1KbneT.js.map +1 -1
- package/lib/date-adapter.js +1 -1
- package/lib/date-adapter.js.map +1 -1
- package/lib/dates-CAAlPKZi.js +2 -0
- package/lib/dates-CAAlPKZi.js.map +1 -0
- package/lib/en-us.js +1 -1
- package/lib/en-us.js.map +1 -1
- package/lib/events-Bv6wNHwJ.js.map +1 -1
- package/lib/fi-fi.js.map +1 -1
- package/lib/fsm-Bq5jMQrK.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/interface-checked-small-BtICPEsp.js.map +1 -1
- package/lib/interface-close-small-CnpAFMO3.js.map +1 -1
- package/lib/localization.js +1 -1
- package/lib/localization.js.map +1 -1
- package/lib/localization2.js +1 -1
- package/lib/localization2.js.map +1 -1
- package/lib/localization3.js +1 -1
- package/lib/localization3.js.map +1 -1
- package/lib/localization4.js +1 -1
- package/lib/localization4.js.map +1 -1
- package/lib/localization5.js +1 -1
- package/lib/localization5.js.map +1 -1
- package/lib/localization6.js +1 -1
- package/lib/localization6.js.map +1 -1
- package/lib/localization7.js.map +1 -1
- package/lib/localization8.js +1 -1
- package/lib/localization8.js.map +1 -1
- package/lib/localization9.js +1 -1
- package/lib/localization9.js.map +1 -1
- package/lib/number-Dg2vCfGd.js.map +1 -1
- package/lib/observe-D0n0zOfU.js.map +1 -1
- package/lib/positioning-DDh0UNgJ.js +2 -0
- package/lib/positioning-DDh0UNgJ.js.map +1 -0
- package/lib/react.d.ts +113 -111
- package/lib/src/avatar/Avatar.d.ts +6 -6
- package/lib/src/badge/Badge.d.ts +4 -4
- package/lib/src/banner/Banner.d.ts +3 -3
- package/lib/src/button/Button.d.ts +12 -11
- package/lib/src/button-group/ButtonGroup.d.ts +4 -4
- package/lib/src/calendar/Calendar.d.ts +6 -6
- package/lib/src/calendar/DateSelectEvent.d.ts +1 -1
- package/lib/src/card/Card.d.ts +3 -3
- package/lib/src/checkbox/Checkbox.d.ts +2 -2
- package/lib/src/command-menu/CommandMenu.d.ts +7 -6
- package/lib/src/command-menu/CommandMenuAction.d.ts +4 -4
- package/lib/src/command-menu/ICommandMenuAction.d.ts +1 -1
- package/lib/src/command-menu/KeyboardController.d.ts +3 -3
- package/lib/src/command-menu/SelectEvent.d.ts +2 -2
- package/lib/src/common/collection.d.ts +7 -7
- package/lib/src/common/controllers/BroadcastChannelController.d.ts +3 -3
- package/lib/src/common/controllers/DirectionController.d.ts +2 -2
- package/lib/src/common/controllers/EventController.d.ts +1 -1
- package/lib/src/common/controllers/FocusTrapController.d.ts +1 -1
- package/lib/src/common/controllers/FormDataController.d.ts +4 -4
- package/lib/src/common/controllers/LightDismissController.d.ts +3 -3
- package/lib/src/common/controllers/LightDomController.d.ts +3 -3
- package/lib/src/common/controllers/LightSlotController.d.ts +4 -4
- package/lib/src/common/controllers/PortalController.d.ts +3 -3
- package/lib/src/common/controllers/ResizeController.d.ts +1 -1
- package/lib/src/common/controllers/ScrollbarController.d.ts +1 -1
- package/lib/src/common/controllers/ShortcutController.d.ts +3 -3
- package/lib/src/common/controllers/SlotController.d.ts +1 -1
- package/lib/src/common/controllers/SwipeController.d.ts +7 -7
- package/lib/src/common/dates.d.ts +3 -3
- package/lib/src/common/decorators/observe.d.ts +1 -1
- package/lib/src/common/directives/cond.d.ts +1 -1
- package/lib/src/common/fsm.d.ts +2 -2
- package/lib/src/common/mixins/AutocompleteMixin.d.ts +2 -2
- package/lib/src/common/mixins/DraftComponentMixin.d.ts +1 -1
- package/lib/src/common/mixins/FloatingComponentMixin.d.ts +4 -4
- package/lib/src/common/mixins/FocusableMixin.d.ts +2 -2
- package/lib/src/common/mixins/FormAssociatedMixin.d.ts +6 -6
- package/lib/src/common/mixins/InputMixin.d.ts +1 -1
- package/lib/src/common/mixins/NotificationMixin.d.ts +2 -2
- package/lib/src/common/mixins/ReadonlyMixin.d.ts +1 -1
- package/lib/src/common/mixins/SizeMixin.d.ts +2 -2
- package/lib/src/common/mixins/TextSelectableMixin.d.ts +5 -5
- package/lib/src/common/positioning.d.ts +3 -3
- package/lib/src/common/ref.d.ts +1 -1
- package/lib/src/date-picker/DatePicker.d.ts +11 -11
- package/lib/src/date-picker/date-adapter.d.ts +1 -1
- package/lib/src/divider/Divider.d.ts +3 -3
- package/lib/src/drawer/Drawer.d.ts +4 -4
- package/lib/src/dropdown/Dropdown.d.ts +4 -6
- package/lib/src/dropdown-group/DropdownGroup.d.ts +2 -2
- package/lib/src/dropdown-item/DropdownItem.d.ts +4 -3
- package/lib/src/empty-state/EmptyState.d.ts +2 -2
- package/lib/src/fieldset/Fieldset.d.ts +3 -3
- package/lib/src/footer/Footer.d.ts +3 -3
- package/lib/src/header/Header.d.ts +3 -3
- package/lib/src/icon/Icon.d.ts +4 -4
- package/lib/src/index.d.ts +58 -58
- package/lib/src/input/Input.d.ts +3 -3
- package/lib/src/layout/Layout.d.ts +6 -6
- package/lib/src/localization/LocalizeController.d.ts +4 -3
- package/lib/src/localization/en-us.d.ts +9 -9
- package/lib/src/localization/fi-fi.d.ts +1 -1
- package/lib/src/localization/translation.d.ts +11 -11
- package/lib/src/message/Message.d.ts +3 -2
- package/lib/src/modal/Modal.d.ts +4 -4
- package/lib/src/modal/ModalController.d.ts +6 -6
- package/lib/src/nav-group/NavGroup.d.ts +3 -3
- package/lib/src/nav-item/NavItem.d.ts +3 -2
- package/lib/src/nav-toggle/NavToggle.d.ts +4 -4
- package/lib/src/navigation/Navigation.d.ts +2 -2
- package/lib/src/notification/Notification.d.ts +4 -4
- package/lib/src/notification-group/NotificationGroup.d.ts +2 -2
- package/lib/src/popout/Popout.d.ts +2 -2
- package/lib/src/progress/Progress.d.ts +3 -3
- package/lib/src/progress-bar/ProgressBar.d.ts +2 -2
- package/lib/src/qrcode/Qrcode.d.ts +3 -3
- package/lib/src/radio/Radio.d.ts +4 -4
- package/lib/src/range/Range.d.ts +2 -2
- package/lib/src/segmented-control/SegmentedControl.d.ts +2 -2
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +5 -5
- package/lib/src/select/Select.d.ts +3 -3
- package/lib/src/skeleton/Skeleton.d.ts +3 -3
- package/lib/src/spinner/Spinner.d.ts +3 -3
- package/lib/src/stack/Stack.d.ts +6 -6
- package/lib/src/tab/Tab.d.ts +2 -2
- package/lib/src/tab-group/TabGroup.d.ts +3 -3
- package/lib/src/tab-panel/TabPanel.d.ts +2 -2
- package/lib/src/table/Table.d.ts +3 -3
- package/lib/src/tag/Tag.d.ts +5 -5
- package/lib/src/tag-group/TagGroup.d.ts +4 -4
- package/lib/src/textarea/Textarea.d.ts +3 -3
- package/lib/src/toast/Toast.d.ts +3 -3
- package/lib/src/toast-group/ToastGroup.d.ts +4 -4
- package/lib/src/toggle/Toggle.d.ts +3 -3
- package/lib/src/tooltip/Tooltip.d.ts +3 -3
- package/lib/src/top-bar/TopBar.d.ts +2 -2
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +2 -2
- package/lib/translation.js.map +1 -1
- package/lib/tslib.es6-CmLYFWVC.js.map +1 -1
- package/lib/vue.d.ts +115 -109
- package/package.json +29 -123
- package/lib/Calendar-CYcI340m.js +0 -2
- package/lib/Calendar-CYcI340m.js.map +0 -1
- package/lib/DropdownItem-BheCmR9u.js +0 -2
- package/lib/DropdownItem-BheCmR9u.js.map +0 -1
- package/lib/FormField-CUC_H-0e.js.map +0 -1
- package/lib/NavToggle-D-udBTou.js.map +0 -1
- package/lib/Popout-DBLHeeXk.js +0 -2
- package/lib/Popout-DBLHeeXk.js.map +0 -1
- package/lib/ScrollbarController-C5CMxfb3.js +0 -2
- package/lib/ScrollbarController-C5CMxfb3.js.map +0 -1
- package/lib/TextField-C5gYzfOp.js.map +0 -1
- package/lib/dates-lbaNvUdr.js +0 -2
- package/lib/dates-lbaNvUdr.js.map +0 -1
- package/lib/positioning-CsfLhMSW.js +0 -2
- package/lib/positioning-CsfLhMSW.js.map +0 -1
- package/lib/src/avatar/Avatar.test.d.ts +0 -2
- package/lib/src/badge/Badge.test.d.ts +0 -5
- package/lib/src/banner/Banner.test.d.ts +0 -5
- package/lib/src/button/Button.test.d.ts +0 -7
- package/lib/src/button-group/ButtonGroup.test.d.ts +0 -6
- package/lib/src/calendar/Calendar.test.d.ts +0 -1
- package/lib/src/card/Card.test.d.ts +0 -6
- package/lib/src/checkbox/Checkbox.test.d.ts +0 -4
- package/lib/src/command-menu/CommandMenu.test.d.ts +0 -1
- package/lib/src/common/dates.test.d.ts +0 -1
- package/lib/src/date-picker/DatePicker.test.d.ts +0 -1
- package/lib/src/divider/Divider.test.d.ts +0 -2
- package/lib/src/drawer/Drawer.test.d.ts +0 -9
- package/lib/src/dropdown/Dropdown.test.d.ts +0 -8
- package/lib/src/dropdown-group/DropdownGroup.test.d.ts +0 -1
- package/lib/src/dropdown-item/DropdownItem.test.d.ts +0 -2
- package/lib/src/empty-state/EmptyState.test.d.ts +0 -3
- package/lib/src/fieldset/Fieldset.test.d.ts +0 -3
- package/lib/src/footer/Footer.test.d.ts +0 -4
- package/lib/src/header/Header.test.d.ts +0 -4
- package/lib/src/icon/Icon.test.d.ts +0 -1
- package/lib/src/input/Input.test.d.ts +0 -7
- package/lib/src/layout/Layout.test.d.ts +0 -26
- package/lib/src/localization/LocalizeController.test.d.ts +0 -1
- package/lib/src/localization/translation.test.d.ts +0 -1
- package/lib/src/message/Message.test.d.ts +0 -2
- package/lib/src/modal/Modal.test.d.ts +0 -7
- package/lib/src/nav-group/NavGroup.test.d.ts +0 -2
- package/lib/src/nav-item/NavItem.test.d.ts +0 -1
- package/lib/src/nav-toggle/NavToggle.test.d.ts +0 -2
- package/lib/src/navigation/Navigation.test.d.ts +0 -16
- package/lib/src/notification/Notification.test.d.ts +0 -1
- package/lib/src/notification-group/NotificationGroup.test.d.ts +0 -1
- package/lib/src/popout/Popout.test.d.ts +0 -9
- package/lib/src/progress/Progress.test.d.ts +0 -1
- package/lib/src/progress-bar/ProgressBar.test.d.ts +0 -3
- package/lib/src/qrcode/Qrcode.test.d.ts +0 -2
- package/lib/src/radio/Radio.test.d.ts +0 -3
- package/lib/src/range/Range.test.d.ts +0 -2
- package/lib/src/segmented-control/SegmentedControl.test.d.ts +0 -8
- package/lib/src/segmented-control-item/SegmentedControlItem.test.d.ts +0 -3
- package/lib/src/select/Select.test.d.ts +0 -1
- package/lib/src/skeleton/Skeleton.test.d.ts +0 -3
- package/lib/src/spinner/Spinner.test.d.ts +0 -2
- package/lib/src/stack/Stack.test.d.ts +0 -4
- package/lib/src/tab/Tab.test.d.ts +0 -1
- package/lib/src/tab-group/TabGroup.test.d.ts +0 -9
- package/lib/src/tab-panel/TabPanel.test.d.ts +0 -1
- package/lib/src/table/Table.test.d.ts +0 -7
- package/lib/src/tag/Tag.test.d.ts +0 -7
- package/lib/src/tag-group/TagGroup.test.d.ts +0 -4
- package/lib/src/textarea/Textarea.test.d.ts +0 -3
- package/lib/src/toast/Toast.test.d.ts +0 -2
- package/lib/src/toast-group/ToastGroup.test.d.ts +0 -1
- package/lib/src/toggle/Toggle.test.d.ts +0 -3
- package/lib/src/tooltip/Tooltip.test.d.ts +0 -4
- package/lib/src/top-bar/TopBar.test.d.ts +0 -9
- package/lib/src/visually-hidden/VisuallyHidden.test.d.ts +0 -1
- package/lib/test-utils/commands/examples/command.d.ts +0 -13
- package/lib/test-utils/commands/mouse/command.d.ts +0 -7
- package/lib/test-utils/commands/select/command.d.ts +0 -5
- package/lib/test-utils/spy.d.ts +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import type { Ref } from
|
|
1
|
+
import type { LitElement } from 'lit';
|
|
2
|
+
import type { Ref } from 'lit/directives/ref.js';
|
|
3
3
|
type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;
|
|
4
4
|
export declare class NotificationMixinInterface {
|
|
5
5
|
protected dismissed: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import type { LitElement } from 'lit';
|
|
2
2
|
type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;
|
|
3
3
|
export declare class SizeMixinInterface {
|
|
4
|
-
size:
|
|
4
|
+
size: 's' | 'm' | 'l';
|
|
5
5
|
}
|
|
6
6
|
export declare function SizeMixin<T extends Constructor<LitElement>>(superClass: T): Constructor<SizeMixinInterface> & T;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import { Ref } from
|
|
3
|
-
import { InputMixinInterface } from
|
|
1
|
+
import type { LitElement } from 'lit';
|
|
2
|
+
import type { Ref } from 'lit/directives/ref.js';
|
|
3
|
+
import type { InputMixinInterface } from './InputMixin.js';
|
|
4
4
|
type Constructable<T = Record<string, unknown>> = new (...args: any[]) => T;
|
|
5
5
|
export declare class TextSelectableMixinInterface {
|
|
6
6
|
protected textSelectableRef: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
@@ -9,8 +9,8 @@ export declare class TextSelectableMixinInterface {
|
|
|
9
9
|
set selectionEnd(value: number | null);
|
|
10
10
|
get selectionEnd(): number | null;
|
|
11
11
|
select(): void;
|
|
12
|
-
setSelectionRange(start: number | null, end: number | null, direction?:
|
|
13
|
-
setRangeText(replacement: string, start?: number, end?: number, selectMode?:
|
|
12
|
+
setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void;
|
|
13
|
+
setRangeText(replacement: string, start?: number, end?: number, selectMode?: 'select' | 'start' | 'end' | 'preserve'): void;
|
|
14
14
|
}
|
|
15
15
|
export declare function TextSelectableMixin<T extends Constructable<InputMixinInterface & LitElement>>(superClass: T): Constructable<TextSelectableMixinInterface> & T;
|
|
16
16
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type LogicalSide =
|
|
1
|
+
import type { Alignment, Placement, Side } from '@floating-ui/dom';
|
|
2
|
+
export type LogicalSide = 'block-end' | 'block-start' | 'inline-start' | 'inline-end';
|
|
3
3
|
export type LogicalSideAlign = `${LogicalSide}-${Alignment}`;
|
|
4
|
-
type Direction =
|
|
4
|
+
type Direction = 'ltr' | 'rtl';
|
|
5
5
|
/**
|
|
6
6
|
* Converts a single logical position to a physical position
|
|
7
7
|
*/
|
package/lib/src/common/ref.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import type { DatePredicate } from '../calendar/Calendar.js';
|
|
2
|
+
import type { DateAdapter } from './date-adapter.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import { DaysOfWeek } from '../common/dates.js';
|
|
5
|
+
import '../input/Input.js';
|
|
6
|
+
import '../button/Button.js';
|
|
7
|
+
import '../visually-hidden/VisuallyHidden.js';
|
|
8
|
+
import '../popout/Popout.js';
|
|
9
|
+
import '../stack/Stack.js';
|
|
10
|
+
import '../calendar/Calendar.js';
|
|
11
11
|
declare const DatePicker_base: (new (...args: any[]) => import("../common/mixins/SizeMixin.js").SizeMixinInterface) & (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/ReadonlyMixin.js").ReadonlyMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
@@ -136,7 +136,7 @@ export default class DatePicker extends DatePicker_base {
|
|
|
136
136
|
}
|
|
137
137
|
declare global {
|
|
138
138
|
interface HTMLElementTagNameMap {
|
|
139
|
-
|
|
139
|
+
'nord-date-picker': DatePicker;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createDate } from
|
|
1
|
+
import type { createDate } from '../common/dates.js';
|
|
2
2
|
type CreateDate = typeof createDate;
|
|
3
3
|
export type DateParser = (input: string, createDate: CreateDate) => Date | undefined;
|
|
4
4
|
export type DateFormatter = (date: Date) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Divider components are used to separate and distinguish sections of
|
|
4
4
|
* content or groups of menu items. Visually, they look like
|
|
@@ -15,12 +15,12 @@ export default class Divider extends LitElement {
|
|
|
15
15
|
/**
|
|
16
16
|
* The direction of the divider.
|
|
17
17
|
*/
|
|
18
|
-
direction:
|
|
18
|
+
direction: 'vertical' | 'horizontal';
|
|
19
19
|
firstUpdated(): void;
|
|
20
20
|
private handleDirectionChange;
|
|
21
21
|
}
|
|
22
22
|
declare global {
|
|
23
23
|
interface HTMLElementTagNameMap {
|
|
24
|
-
|
|
24
|
+
'nord-divider': Divider;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../footer/Footer.js';
|
|
3
3
|
/**
|
|
4
4
|
* Drawer is used to display context-sensitive actions and information.
|
|
5
5
|
* Drawer doesn’t block users from completing their task, like a modal would.
|
|
@@ -18,11 +18,11 @@ export default class Drawer extends LitElement {
|
|
|
18
18
|
/**
|
|
19
19
|
* Controls the padding of the drawer component.
|
|
20
20
|
*/
|
|
21
|
-
padding:
|
|
21
|
+
padding: 'm' | 'none';
|
|
22
22
|
render(): import("lit").TemplateResult<1>;
|
|
23
23
|
}
|
|
24
24
|
declare global {
|
|
25
25
|
interface HTMLElementTagNameMap {
|
|
26
|
-
|
|
26
|
+
'nord-drawer': Drawer;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../popout/Popout.js';
|
|
3
3
|
declare const Dropdown_base: (new (...args: any[]) => import("../common/mixins/FloatingComponentMixin.js").FloatingMixinInterface) & typeof LitElement;
|
|
4
4
|
/**
|
|
5
5
|
* Dropdown menu displays a list of actions or selectable options for
|
|
@@ -32,8 +32,6 @@ export default class Dropdown extends Dropdown_base {
|
|
|
32
32
|
mode: ShadowRootMode;
|
|
33
33
|
serializable?: boolean;
|
|
34
34
|
slotAssignment?: SlotAssignmentMode;
|
|
35
|
-
customElements?: CustomElementRegistry;
|
|
36
|
-
registry?: CustomElementRegistry;
|
|
37
35
|
};
|
|
38
36
|
private headerSlot;
|
|
39
37
|
private headerEndSlot;
|
|
@@ -47,7 +45,7 @@ export default class Dropdown extends Dropdown_base {
|
|
|
47
45
|
* The size of the dropdown. This affects the minimum and maximum inline-size
|
|
48
46
|
* of the dropdown.
|
|
49
47
|
*/
|
|
50
|
-
size:
|
|
48
|
+
size: 's' | 'm' | 'l';
|
|
51
49
|
/**
|
|
52
50
|
* Set to true to always display the dropdown as a floating overlay, even on smaller viewports.
|
|
53
51
|
*/
|
|
@@ -74,7 +72,7 @@ export default class Dropdown extends Dropdown_base {
|
|
|
74
72
|
}
|
|
75
73
|
declare global {
|
|
76
74
|
interface HTMLElementTagNameMap {
|
|
77
|
-
|
|
75
|
+
'nord-dropdown': Dropdown;
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
78
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Dropdown group includes all the actions or items in a single dropdown
|
|
4
4
|
* group and is used for grouping items into related categories.
|
|
@@ -17,6 +17,6 @@ export default class DropdownGroup extends LitElement {
|
|
|
17
17
|
}
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
|
|
20
|
+
'nord-dropdown-group': DropdownGroup;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TemplateResult } from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
2
3
|
declare const DropdownItem_base: (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
3
4
|
/**
|
|
4
5
|
* Dropdown item populates dropdown with actions. Items can be
|
|
@@ -30,7 +31,7 @@ export default class DropdownItem extends DropdownItem_base {
|
|
|
30
31
|
* context of the current one, but if no parent exists, behaves as
|
|
31
32
|
* _self, and finally “top” means the topmost browsing context.
|
|
32
33
|
*/
|
|
33
|
-
target:
|
|
34
|
+
target: '_self' | '_blank' | '_parent' | '_top';
|
|
34
35
|
/**
|
|
35
36
|
* Makes the component disabled. This prevents users from
|
|
36
37
|
* being able to interact with the component, and conveys
|
|
@@ -50,7 +51,7 @@ export default class DropdownItem extends DropdownItem_base {
|
|
|
50
51
|
}
|
|
51
52
|
declare global {
|
|
52
53
|
interface HTMLElementTagNameMap {
|
|
53
|
-
|
|
54
|
+
'nord-dropdown-item': DropdownItem;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Empty state can be used when there is no data to display to
|
|
4
4
|
* describe what the user can do next. Empty state provides
|
|
@@ -14,6 +14,6 @@ export default class EmptyState extends LitElement {
|
|
|
14
14
|
}
|
|
15
15
|
declare global {
|
|
16
16
|
interface HTMLElementTagNameMap {
|
|
17
|
-
|
|
17
|
+
'nord-empty-state': EmptyState;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Fieldset is used for grouping sets of input components.
|
|
4
4
|
* It is necessary to use a fieldset with radio and checkbox components.
|
|
@@ -46,13 +46,13 @@ export default class Fieldset extends LitElement {
|
|
|
46
46
|
/**
|
|
47
47
|
* The size of the label.
|
|
48
48
|
*/
|
|
49
|
-
size:
|
|
49
|
+
size: 's' | 'm';
|
|
50
50
|
render(): import("lit").TemplateResult<1>;
|
|
51
51
|
protected get hasHint(): boolean;
|
|
52
52
|
protected get hasError(): boolean;
|
|
53
53
|
}
|
|
54
54
|
declare global {
|
|
55
55
|
interface HTMLElementTagNameMap {
|
|
56
|
-
|
|
56
|
+
'nord-fieldset': Fieldset;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* The footer is a block of designated space for providing additional information or actions that are positioned below the main content.
|
|
4
4
|
*
|
|
@@ -15,11 +15,11 @@ export default class Footer extends LitElement {
|
|
|
15
15
|
/**
|
|
16
16
|
* Controls the size of the footer component.
|
|
17
17
|
*/
|
|
18
|
-
size:
|
|
18
|
+
size: 'm' | 's';
|
|
19
19
|
render(): import("lit").TemplateResult<1>;
|
|
20
20
|
}
|
|
21
21
|
declare global {
|
|
22
22
|
interface HTMLElementTagNameMap {
|
|
23
|
-
|
|
23
|
+
'nord-footer': Footer;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* The header is a block of designated space for labelling the currently
|
|
4
4
|
* viewed context as well as providing primary actions.
|
|
@@ -14,11 +14,11 @@ export default class Header extends LitElement {
|
|
|
14
14
|
/**
|
|
15
15
|
* Controls the size of the header component.
|
|
16
16
|
*/
|
|
17
|
-
size:
|
|
17
|
+
size: 'm' | 's';
|
|
18
18
|
render(): import("lit").TemplateResult<1>;
|
|
19
19
|
}
|
|
20
20
|
declare global {
|
|
21
21
|
interface HTMLElementTagNameMap {
|
|
22
|
-
|
|
22
|
+
'nord-header': Header;
|
|
23
23
|
}
|
|
24
24
|
}
|
package/lib/src/icon/Icon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { IconResolver } from './IconManager.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
3
|
/**
|
|
4
4
|
* Icons are used to provide additional meaning or in places where text label doesn’t fit.
|
|
5
5
|
* Icon component allows you to display an icon from the Nordicons library.
|
|
@@ -41,7 +41,7 @@ export default class Icon extends LitElement {
|
|
|
41
41
|
* The size of the icon.
|
|
42
42
|
* @default "m"
|
|
43
43
|
*/
|
|
44
|
-
size?:
|
|
44
|
+
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
45
45
|
/**
|
|
46
46
|
* The color of the icon.
|
|
47
47
|
* Can accept any valid CSS color value, including custom properties.
|
|
@@ -58,6 +58,6 @@ export default class Icon extends LitElement {
|
|
|
58
58
|
}
|
|
59
59
|
declare global {
|
|
60
60
|
interface HTMLElementTagNameMap {
|
|
61
|
-
|
|
61
|
+
'nord-icon': Icon;
|
|
62
62
|
}
|
|
63
63
|
}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
30
|
-
export { default as
|
|
31
|
-
export { default as
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
37
|
-
export { default as
|
|
38
|
-
export { default as
|
|
39
|
-
export { default as
|
|
40
|
-
export { default as
|
|
41
|
-
export { default as
|
|
42
|
-
export { default as
|
|
43
|
-
export { default as
|
|
44
|
-
export { default as
|
|
45
|
-
export { default as
|
|
46
|
-
export { default as
|
|
47
|
-
export { default as
|
|
48
|
-
export { default as
|
|
49
|
-
export { default as
|
|
50
|
-
export { default as
|
|
51
|
-
export { default as
|
|
52
|
-
export { default as
|
|
53
|
-
export { default as
|
|
54
|
-
export { default as
|
|
55
|
-
export { default as
|
|
56
|
-
export { default as
|
|
57
|
-
export { default as
|
|
58
|
-
export { default as
|
|
1
|
+
export { default as Avatar } from './avatar/Avatar.js';
|
|
2
|
+
export { default as Badge } from './badge/Badge.js';
|
|
3
|
+
export { default as Banner } from './banner/Banner.js';
|
|
4
|
+
export { default as ButtonGroup } from './button-group/ButtonGroup.js';
|
|
5
|
+
export { default as Button } from './button/Button.js';
|
|
6
|
+
export { default as Calendar } from './calendar/Calendar.js';
|
|
7
|
+
export { default as Card } from './card/Card.js';
|
|
8
|
+
export { default as Checkbox } from './checkbox/Checkbox.js';
|
|
9
|
+
export { default as CommandMenu } from './command-menu/CommandMenu.js';
|
|
10
|
+
export { default as CommandMenuAction } from './command-menu/CommandMenuAction.js';
|
|
11
|
+
export { default as DatePicker } from './date-picker/DatePicker.js';
|
|
12
|
+
export { default as Divider } from './divider/Divider.js';
|
|
13
|
+
export { default as Drawer } from './drawer/Drawer.js';
|
|
14
|
+
export { default as DropdownGroup } from './dropdown-group/DropdownGroup.js';
|
|
15
|
+
export { default as DropdownItem } from './dropdown-item/DropdownItem.js';
|
|
16
|
+
export { default as Dropdown } from './dropdown/Dropdown.js';
|
|
17
|
+
export { default as EmptyState } from './empty-state/EmptyState.js';
|
|
18
|
+
export { default as Fieldset } from './fieldset/Fieldset.js';
|
|
19
|
+
export { default as Footer } from './footer/Footer.js';
|
|
20
|
+
export { default as Header } from './header/Header.js';
|
|
21
|
+
export { default as Icon } from './icon/Icon.js';
|
|
22
|
+
export { default as Input } from './input/Input.js';
|
|
23
|
+
export { default as Layout } from './layout/Layout.js';
|
|
24
|
+
export { isTranslationRegistered, registerTranslation } from './localization/translation.js';
|
|
25
|
+
export type { Translation } from './localization/translation.js';
|
|
26
|
+
export { default as Message } from './message/Message.js';
|
|
27
|
+
export { default as Modal } from './modal/Modal.js';
|
|
28
|
+
export { default as NavGroup } from './nav-group/NavGroup.js';
|
|
29
|
+
export { default as NavItem } from './nav-item/NavItem.js';
|
|
30
|
+
export { default as NavToggle } from './nav-toggle/NavToggle.js';
|
|
31
|
+
export { default as Navigation } from './navigation/Navigation.js';
|
|
32
|
+
export { default as NotificationGroup } from './notification-group/NotificationGroup.js';
|
|
33
|
+
export { default as Notification } from './notification/Notification.js';
|
|
34
|
+
export { default as Popout } from './popout/Popout.js';
|
|
35
|
+
export { default as ProgressBar } from './progress-bar/ProgressBar.js';
|
|
36
|
+
export { default as Progress } from './progress/Progress.js';
|
|
37
|
+
export { default as Qrcode } from './qrcode/Qrcode.js';
|
|
38
|
+
export { default as Radio } from './radio/Radio.js';
|
|
39
|
+
export { default as Range } from './range/Range.js';
|
|
40
|
+
export { default as SegmentedControlItem } from './segmented-control-item/SegmentedControlItem.js';
|
|
41
|
+
export { default as SegmentedControl } from './segmented-control/SegmentedControl.js';
|
|
42
|
+
export { default as Select } from './select/Select.js';
|
|
43
|
+
export { default as Skeleton } from './skeleton/Skeleton.js';
|
|
44
|
+
export { default as Spinner } from './spinner/Spinner.js';
|
|
45
|
+
export { default as Stack } from './stack/Stack.js';
|
|
46
|
+
export { default as TabGroup } from './tab-group/TabGroup.js';
|
|
47
|
+
export { default as TabPanel } from './tab-panel/TabPanel.js';
|
|
48
|
+
export { default as Tab } from './tab/Tab.js';
|
|
49
|
+
export { default as Table } from './table/Table.js';
|
|
50
|
+
export { default as TagGroup } from './tag-group/TagGroup.js';
|
|
51
|
+
export { default as Tag } from './tag/Tag.js';
|
|
52
|
+
export { default as Textarea } from './textarea/Textarea.js';
|
|
53
|
+
export { default as ToastGroup } from './toast-group/ToastGroup.js';
|
|
54
|
+
export { default as Toast } from './toast/Toast.js';
|
|
55
|
+
export { default as Toggle } from './toggle/Toggle.js';
|
|
56
|
+
export { default as Tooltip } from './tooltip/Tooltip.js';
|
|
57
|
+
export { default as TopBar } from './top-bar/TopBar.js';
|
|
58
|
+
export { default as VisuallyHidden } from './visually-hidden/VisuallyHidden.js';
|
package/lib/src/input/Input.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
declare const Input_base: (new (...args: any[]) => import("../common/mixins/SizeMixin.js").SizeMixinInterface) & (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/AutocompleteMixin.js").AutocompleteMixinInterface) & (new (...args: any[]) => import("../common/mixins/ReadonlyMixin.js").ReadonlyMixinInterface) & (new (...args: any[]) => import("../common/mixins/TextSelectableMixin.js").TextSelectableMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* Inputs are used to allow users to provide text input when the expected input is short.
|
|
@@ -30,7 +30,7 @@ export default class Input extends Input_base {
|
|
|
30
30
|
/**
|
|
31
31
|
* The type of the input.
|
|
32
32
|
*/
|
|
33
|
-
type:
|
|
33
|
+
type: 'text' | 'email' | 'password' | 'tel' | 'url' | 'search' | 'number' | 'unit' | 'button';
|
|
34
34
|
/**
|
|
35
35
|
* Controls whether the input expands to fill the width of its container.
|
|
36
36
|
*/
|
|
@@ -46,7 +46,7 @@ export default class Input extends Input_base {
|
|
|
46
46
|
}
|
|
47
47
|
declare global {
|
|
48
48
|
interface HTMLElementTagNameMap {
|
|
49
|
-
|
|
49
|
+
'nord-input': Input;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import type { States } from '../common/fsm.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
import '../nav-toggle/NavToggle.js';
|
|
4
4
|
declare const navMachine: {
|
|
5
|
-
transition(currentState: "closed" | "opened" | "peek" | "unpeek" | "wait" | "blocked", event: "click" | "close" | "focusin" | "focusout" | "pointerenter" | "pointerleave" | "toggle" | "transitionend" | "open" | "
|
|
5
|
+
transition(currentState: "closed" | "opened" | "peek" | "unpeek" | "wait" | "blocked", event: "click" | "close" | "focusin" | "focusout" | "pointerenter" | "pointerleave" | "toggle" | "transitionend" | "open" | "dropdownOpen" | "dropdownClose" | "timeout"): "closed" | "opened" | "peek" | "unpeek" | "wait" | "blocked";
|
|
6
6
|
};
|
|
7
7
|
type NavState = States<typeof navMachine>;
|
|
8
8
|
/**
|
|
@@ -59,7 +59,7 @@ export default class Layout extends LitElement {
|
|
|
59
59
|
* Controls the padding of the default main section slot. When set to “none”,
|
|
60
60
|
* the nav and header slots will still have padding.
|
|
61
61
|
*/
|
|
62
|
-
padding:
|
|
62
|
+
padding: 'm' | 'none';
|
|
63
63
|
/**
|
|
64
64
|
* Controls whether the layout's header has sticky positioning.
|
|
65
65
|
*/
|
|
@@ -101,7 +101,7 @@ export default class Layout extends LitElement {
|
|
|
101
101
|
}
|
|
102
102
|
declare global {
|
|
103
103
|
interface HTMLElementTagNameMap {
|
|
104
|
-
|
|
104
|
+
'nord-layout': Layout;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveControllerHost } from
|
|
2
|
-
import { Translation, WellKnownKeys } from
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { Translation, WellKnownKeys } from './translation.js';
|
|
3
3
|
type Func = (...args: any[]) => any;
|
|
4
4
|
type Result<Type, Key extends keyof Type> = Type[Key] extends Func ? ReturnType<Type[Key]> : Type[Key];
|
|
5
5
|
type FuncParams<Type, K extends keyof Type> = Type[K] extends Func ? Parameters<Type[K]> : [];
|
|
6
|
+
declare function noop(): void;
|
|
6
7
|
export declare class LocalizeController<TComponentName extends Exclude<keyof Translation, WellKnownKeys>> implements ReactiveController {
|
|
7
8
|
private host;
|
|
8
9
|
private options;
|
|
@@ -11,7 +12,7 @@ export declare class LocalizeController<TComponentName extends Exclude<keyof Tra
|
|
|
11
12
|
private observer?;
|
|
12
13
|
private resolvedTranslation;
|
|
13
14
|
constructor(host: ReactiveControllerHost & HTMLElement, options?: {
|
|
14
|
-
onLangChange:
|
|
15
|
+
onLangChange: typeof noop;
|
|
15
16
|
});
|
|
16
17
|
/**
|
|
17
18
|
* The lang of the document or element, with element taking precedence
|
|
@@ -2,7 +2,7 @@ declare const en: {
|
|
|
2
2
|
$lang: string;
|
|
3
3
|
$name: string;
|
|
4
4
|
$dir: "ltr" | "rtl";
|
|
5
|
-
|
|
5
|
+
'nord-command-menu': {
|
|
6
6
|
instructions: string;
|
|
7
7
|
inputLabel: string;
|
|
8
8
|
footerArrowKeys: string;
|
|
@@ -13,34 +13,34 @@ declare const en: {
|
|
|
13
13
|
tip: string;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
'nord-calendar': {
|
|
17
17
|
prevMonthLabel: string;
|
|
18
18
|
nextMonthLabel: string;
|
|
19
19
|
monthSelectLabel: string;
|
|
20
20
|
yearSelectLabel: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
'nord-date-picker': {
|
|
23
23
|
modalHeading: string;
|
|
24
24
|
closeLabel: string;
|
|
25
25
|
buttonLabel: string;
|
|
26
26
|
selectedDateMessage: string;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
'nord-modal': {
|
|
29
29
|
closeLabel: string;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
'nord-nav-toggle': {
|
|
32
32
|
label: string;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
'nord-textarea': {
|
|
35
35
|
remainingCharacters: (remainder: number) => string;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
'nord-notification': {
|
|
38
38
|
dismissLabel: string;
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
'nord-message': {
|
|
41
41
|
unreadLabel: string;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
'nord-tag': {
|
|
44
44
|
removeLabel: string;
|
|
45
45
|
};
|
|
46
46
|
};
|