@nordhealth/components 4.11.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 +4145 -3918
- 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 +2 -0
- package/lib/Progress.js.map +1 -0
- 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 +117 -110
- 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 -57
- 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 +68 -0
- 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 +116 -108
- 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-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
package/lib/react.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import type * as Components from "./src/index"
|
|
2
|
-
import type { LitElement } from "lit"
|
|
3
|
-
import type * as React from "react"
|
|
1
|
+
import type * as Components from "./src/index";
|
|
2
|
+
import type { LitElement } from "lit";
|
|
3
|
+
import type * as React from "react";
|
|
4
4
|
|
|
5
|
-
type WCProps<TWebComponent extends HTMLElement> = Partial<
|
|
5
|
+
type WCProps<TWebComponent extends HTMLElement> = Partial<
|
|
6
|
+
Omit<TWebComponent, keyof LitElement | "render">
|
|
7
|
+
>;
|
|
6
8
|
|
|
7
9
|
type MapEvents<T> = {
|
|
8
|
-
[K in keyof T as K extends `on${infer E}` ? `on${Lowercase<E>}` : K]: T[K]
|
|
9
|
-
}
|
|
10
|
+
[K in keyof T as K extends `on${infer E}` ? `on${Lowercase<E>}` : K]: T[K];
|
|
11
|
+
};
|
|
10
12
|
|
|
11
13
|
declare module "react" {
|
|
12
14
|
namespace JSX {
|
|
@@ -14,27 +16,27 @@ declare module "react" {
|
|
|
14
16
|
"nord-avatar": WCProps<Components.Avatar> &
|
|
15
17
|
React.RefAttributes<Components.Avatar> &
|
|
16
18
|
React.HTMLAttributes<HTMLElement> &
|
|
17
|
-
React.Attributes & {}
|
|
19
|
+
React.Attributes & {};
|
|
18
20
|
|
|
19
21
|
"nord-badge": WCProps<Components.Badge> &
|
|
20
22
|
React.RefAttributes<Components.Badge> &
|
|
21
23
|
React.HTMLAttributes<HTMLElement> &
|
|
22
|
-
React.Attributes & {}
|
|
24
|
+
React.Attributes & {};
|
|
23
25
|
|
|
24
26
|
"nord-banner": WCProps<Components.Banner> &
|
|
25
27
|
React.RefAttributes<Components.Banner> &
|
|
26
28
|
React.HTMLAttributes<HTMLElement> &
|
|
27
|
-
React.Attributes & {}
|
|
29
|
+
React.Attributes & {};
|
|
28
30
|
|
|
29
31
|
"nord-button": WCProps<Components.Button> &
|
|
30
32
|
React.RefAttributes<Components.Button> &
|
|
31
33
|
React.HTMLAttributes<HTMLElement> &
|
|
32
|
-
React.Attributes & {}
|
|
34
|
+
React.Attributes & {};
|
|
33
35
|
|
|
34
36
|
"nord-button-group": WCProps<Components.ButtonGroup> &
|
|
35
37
|
React.RefAttributes<Components.ButtonGroup> &
|
|
36
38
|
React.HTMLAttributes<HTMLElement> &
|
|
37
|
-
React.Attributes & {}
|
|
39
|
+
React.Attributes & {};
|
|
38
40
|
|
|
39
41
|
"nord-calendar": WCProps<Components.Calendar> &
|
|
40
42
|
React.RefAttributes<Components.Calendar> &
|
|
@@ -43,18 +45,18 @@ declare module "react" {
|
|
|
43
45
|
/**
|
|
44
46
|
* Dispatched when a date is selected and the value changes.
|
|
45
47
|
*/
|
|
46
|
-
onchange?: (event: Event) => void
|
|
48
|
+
onchange?: (event: Event) => void;
|
|
47
49
|
|
|
48
50
|
/**
|
|
49
51
|
* Dispatched when the calendar's focused date changes.
|
|
50
52
|
*/
|
|
51
|
-
"onnord-focus-date"?: (event: Event) => void
|
|
52
|
-
}
|
|
53
|
+
"onnord-focus-date"?: (event: Event) => void;
|
|
54
|
+
};
|
|
53
55
|
|
|
54
56
|
"nord-card": WCProps<Components.Card> &
|
|
55
57
|
React.RefAttributes<Components.Card> &
|
|
56
58
|
React.HTMLAttributes<HTMLElement> &
|
|
57
|
-
React.Attributes & {}
|
|
59
|
+
React.Attributes & {};
|
|
58
60
|
|
|
59
61
|
"nord-checkbox": WCProps<Components.Checkbox> &
|
|
60
62
|
React.RefAttributes<Components.Checkbox> &
|
|
@@ -63,13 +65,13 @@ declare module "react" {
|
|
|
63
65
|
/**
|
|
64
66
|
* Fired whenever the input's value is changed via user interaction.
|
|
65
67
|
*/
|
|
66
|
-
onchange?: (event: Event) => void
|
|
68
|
+
onchange?: (event: Event) => void;
|
|
67
69
|
|
|
68
70
|
/**
|
|
69
71
|
* Fired as the user types into the input.
|
|
70
72
|
*/
|
|
71
|
-
oninput?: (event: Event) => void
|
|
72
|
-
}
|
|
73
|
+
oninput?: (event: Event) => void;
|
|
74
|
+
};
|
|
73
75
|
|
|
74
76
|
"nord-command-menu": WCProps<Components.CommandMenu> &
|
|
75
77
|
React.RefAttributes<Components.CommandMenu> &
|
|
@@ -78,23 +80,23 @@ declare module "react" {
|
|
|
78
80
|
/**
|
|
79
81
|
* The command menu was closed.
|
|
80
82
|
*/
|
|
81
|
-
onclose?: (event: Event) => void
|
|
83
|
+
onclose?: (event: Event) => void;
|
|
82
84
|
|
|
83
85
|
/**
|
|
84
86
|
* Fired as the user types into the search input.
|
|
85
87
|
*/
|
|
86
|
-
oninput?: (event: Event) => void
|
|
88
|
+
oninput?: (event: Event) => void;
|
|
87
89
|
|
|
88
90
|
/**
|
|
89
91
|
* User selected a command from the menu.
|
|
90
92
|
*/
|
|
91
|
-
"onnord-select"?: (event: Event) => void
|
|
93
|
+
"onnord-select"?: (event: Event) => void;
|
|
92
94
|
|
|
93
95
|
/**
|
|
94
96
|
* The command menu was opened.
|
|
95
97
|
*/
|
|
96
|
-
onopen?: (event: Event) => void
|
|
97
|
-
}
|
|
98
|
+
onopen?: (event: Event) => void;
|
|
99
|
+
};
|
|
98
100
|
|
|
99
101
|
"nord-date-picker": WCProps<Components.DatePicker> &
|
|
100
102
|
React.RefAttributes<Components.DatePicker> &
|
|
@@ -103,38 +105,38 @@ declare module "react" {
|
|
|
103
105
|
/**
|
|
104
106
|
* Fired whenever the input's value is changed via user interaction.
|
|
105
107
|
*/
|
|
106
|
-
onchange?: (event: Event) => void
|
|
108
|
+
onchange?: (event: Event) => void;
|
|
107
109
|
|
|
108
110
|
/**
|
|
109
111
|
* Dispatched when the popout is closed.
|
|
110
112
|
*/
|
|
111
|
-
onclose?: (event: Event) => void
|
|
113
|
+
onclose?: (event: Event) => void;
|
|
112
114
|
|
|
113
115
|
/**
|
|
114
116
|
* Fired as the user types into the input.
|
|
115
117
|
*/
|
|
116
|
-
oninput?: (event: Event) => void
|
|
118
|
+
oninput?: (event: Event) => void;
|
|
117
119
|
|
|
118
120
|
/**
|
|
119
121
|
* Dispatched when the calendar's focused date changes.
|
|
120
122
|
*/
|
|
121
|
-
"onnord-focus-date"?: (event: Event) => void
|
|
123
|
+
"onnord-focus-date"?: (event: Event) => void;
|
|
122
124
|
|
|
123
125
|
/**
|
|
124
126
|
* Dispatched when the popout is opened.
|
|
125
127
|
*/
|
|
126
|
-
onopen?: (event: Event) => void
|
|
127
|
-
}
|
|
128
|
+
onopen?: (event: Event) => void;
|
|
129
|
+
};
|
|
128
130
|
|
|
129
131
|
"nord-divider": WCProps<Components.Divider> &
|
|
130
132
|
React.RefAttributes<Components.Divider> &
|
|
131
133
|
React.HTMLAttributes<HTMLElement> &
|
|
132
|
-
React.Attributes & {}
|
|
134
|
+
React.Attributes & {};
|
|
133
135
|
|
|
134
136
|
"nord-drawer": WCProps<Components.Drawer> &
|
|
135
137
|
React.RefAttributes<Components.Drawer> &
|
|
136
138
|
React.HTMLAttributes<HTMLElement> &
|
|
137
|
-
React.Attributes & {}
|
|
139
|
+
React.Attributes & {};
|
|
138
140
|
|
|
139
141
|
"nord-dropdown": WCProps<Components.Dropdown> &
|
|
140
142
|
React.RefAttributes<Components.Dropdown> &
|
|
@@ -143,48 +145,48 @@ declare module "react" {
|
|
|
143
145
|
/**
|
|
144
146
|
* Dispatched when the popout is closed.
|
|
145
147
|
*/
|
|
146
|
-
onclose?: (event: Event) => void
|
|
148
|
+
onclose?: (event: Event) => void;
|
|
147
149
|
|
|
148
150
|
/**
|
|
149
151
|
* Dispatched when the popout is opened.
|
|
150
152
|
*/
|
|
151
|
-
onopen?: (event: Event) => void
|
|
152
|
-
}
|
|
153
|
+
onopen?: (event: Event) => void;
|
|
154
|
+
};
|
|
153
155
|
|
|
154
156
|
"nord-dropdown-group": WCProps<Components.DropdownGroup> &
|
|
155
157
|
React.RefAttributes<Components.DropdownGroup> &
|
|
156
158
|
React.HTMLAttributes<HTMLElement> &
|
|
157
|
-
React.Attributes & {}
|
|
159
|
+
React.Attributes & {};
|
|
158
160
|
|
|
159
161
|
"nord-dropdown-item": WCProps<Components.DropdownItem> &
|
|
160
162
|
React.RefAttributes<Components.DropdownItem> &
|
|
161
163
|
React.HTMLAttributes<HTMLElement> &
|
|
162
|
-
React.Attributes & {}
|
|
164
|
+
React.Attributes & {};
|
|
163
165
|
|
|
164
166
|
"nord-empty-state": WCProps<Components.EmptyState> &
|
|
165
167
|
React.RefAttributes<Components.EmptyState> &
|
|
166
168
|
React.HTMLAttributes<HTMLElement> &
|
|
167
|
-
React.Attributes & {}
|
|
169
|
+
React.Attributes & {};
|
|
168
170
|
|
|
169
171
|
"nord-fieldset": WCProps<Components.Fieldset> &
|
|
170
172
|
React.RefAttributes<Components.Fieldset> &
|
|
171
173
|
React.HTMLAttributes<HTMLElement> &
|
|
172
|
-
React.Attributes & {}
|
|
174
|
+
React.Attributes & {};
|
|
173
175
|
|
|
174
176
|
"nord-footer": WCProps<Components.Footer> &
|
|
175
177
|
React.RefAttributes<Components.Footer> &
|
|
176
178
|
React.HTMLAttributes<HTMLElement> &
|
|
177
|
-
React.Attributes & {}
|
|
179
|
+
React.Attributes & {};
|
|
178
180
|
|
|
179
181
|
"nord-header": WCProps<Components.Header> &
|
|
180
182
|
React.RefAttributes<Components.Header> &
|
|
181
183
|
React.HTMLAttributes<HTMLElement> &
|
|
182
|
-
React.Attributes & {}
|
|
184
|
+
React.Attributes & {};
|
|
183
185
|
|
|
184
186
|
"nord-icon": WCProps<Components.Icon> &
|
|
185
187
|
React.RefAttributes<Components.Icon> &
|
|
186
188
|
React.HTMLAttributes<HTMLElement> &
|
|
187
|
-
React.Attributes & {}
|
|
189
|
+
React.Attributes & {};
|
|
188
190
|
|
|
189
191
|
"nord-input": WCProps<Components.Input> &
|
|
190
192
|
React.RefAttributes<Components.Input> &
|
|
@@ -193,28 +195,28 @@ declare module "react" {
|
|
|
193
195
|
/**
|
|
194
196
|
* Fired whenever the input's value is changed via user interaction.
|
|
195
197
|
*/
|
|
196
|
-
onchange?: (event: Event) => void
|
|
198
|
+
onchange?: (event: Event) => void;
|
|
197
199
|
|
|
198
200
|
/**
|
|
199
201
|
* Fired as the user types into the input.
|
|
200
202
|
*/
|
|
201
|
-
oninput?: (event: Event) => void
|
|
203
|
+
oninput?: (event: Event) => void;
|
|
202
204
|
|
|
203
205
|
/**
|
|
204
206
|
* Fired when some text has been selected.
|
|
205
207
|
*/
|
|
206
|
-
onselect?: (event: Event) => void
|
|
207
|
-
}
|
|
208
|
+
onselect?: (event: Event) => void;
|
|
209
|
+
};
|
|
208
210
|
|
|
209
211
|
"nord-layout": WCProps<Components.Layout> &
|
|
210
212
|
React.RefAttributes<Components.Layout> &
|
|
211
213
|
React.HTMLAttributes<HTMLElement> &
|
|
212
|
-
React.Attributes & {}
|
|
214
|
+
React.Attributes & {};
|
|
213
215
|
|
|
214
216
|
"nord-message": WCProps<Components.Message> &
|
|
215
217
|
React.RefAttributes<Components.Message> &
|
|
216
218
|
React.HTMLAttributes<HTMLElement> &
|
|
217
|
-
React.Attributes & {}
|
|
219
|
+
React.Attributes & {};
|
|
218
220
|
|
|
219
221
|
"nord-modal": WCProps<Components.Modal> &
|
|
220
222
|
React.RefAttributes<Components.Modal> &
|
|
@@ -223,13 +225,13 @@ declare module "react" {
|
|
|
223
225
|
/**
|
|
224
226
|
* Dispatched before the modal has closed when a user attempts to dismiss a modal. Call `preventDefault()` on the event to prevent the modal closing.
|
|
225
227
|
*/
|
|
226
|
-
oncancel?: (event: Event) => void
|
|
228
|
+
oncancel?: (event: Event) => void;
|
|
227
229
|
|
|
228
230
|
/**
|
|
229
231
|
* Dispatched when a modal is closed for any reason.
|
|
230
232
|
*/
|
|
231
|
-
onclose?: (event: Event) => void
|
|
232
|
-
}
|
|
233
|
+
onclose?: (event: Event) => void;
|
|
234
|
+
};
|
|
233
235
|
|
|
234
236
|
"nord-nav-group": WCProps<Components.NavGroup> &
|
|
235
237
|
React.RefAttributes<Components.NavGroup> &
|
|
@@ -238,13 +240,13 @@ declare module "react" {
|
|
|
238
240
|
/**
|
|
239
241
|
* Dispatched whenever a nav item has been marked as active
|
|
240
242
|
*/
|
|
241
|
-
onactivate?: (event: Event) => void
|
|
243
|
+
onactivate?: (event: Event) => void;
|
|
242
244
|
|
|
243
245
|
/**
|
|
244
246
|
* Dispatched whenever a nav item's state changes between open and closed.
|
|
245
247
|
*/
|
|
246
|
-
ontoggle?: (event: Event) => void
|
|
247
|
-
}
|
|
248
|
+
ontoggle?: (event: Event) => void;
|
|
249
|
+
};
|
|
248
250
|
|
|
249
251
|
"nord-navigation": WCProps<Components.Navigation> &
|
|
250
252
|
React.RefAttributes<Components.Navigation> &
|
|
@@ -253,13 +255,13 @@ declare module "react" {
|
|
|
253
255
|
/**
|
|
254
256
|
* Dispatched whenever a nav item has been marked as active
|
|
255
257
|
*/
|
|
256
|
-
onactivate?: (event: Event) => void
|
|
258
|
+
onactivate?: (event: Event) => void;
|
|
257
259
|
|
|
258
260
|
/**
|
|
259
261
|
* Dispatched whenever a nav item's state changes between open and closed.
|
|
260
262
|
*/
|
|
261
|
-
ontoggle?: (event: Event) => void
|
|
262
|
-
}
|
|
263
|
+
ontoggle?: (event: Event) => void;
|
|
264
|
+
};
|
|
263
265
|
|
|
264
266
|
"nord-nav-item": WCProps<Components.NavItem> &
|
|
265
267
|
React.RefAttributes<Components.NavItem> &
|
|
@@ -268,18 +270,18 @@ declare module "react" {
|
|
|
268
270
|
/**
|
|
269
271
|
* Dispatched whenever a nav item has been marked as active
|
|
270
272
|
*/
|
|
271
|
-
onactivate?: (event: Event) => void
|
|
273
|
+
onactivate?: (event: Event) => void;
|
|
272
274
|
|
|
273
275
|
/**
|
|
274
276
|
* Dispatched whenever a nav item's state changes between open and closed.
|
|
275
277
|
*/
|
|
276
|
-
ontoggle?: (event: Event) => void
|
|
277
|
-
}
|
|
278
|
+
ontoggle?: (event: Event) => void;
|
|
279
|
+
};
|
|
278
280
|
|
|
279
281
|
"nord-nav-toggle": WCProps<Components.NavToggle> &
|
|
280
282
|
React.RefAttributes<Components.NavToggle> &
|
|
281
283
|
React.HTMLAttributes<HTMLElement> &
|
|
282
|
-
React.Attributes & {}
|
|
284
|
+
React.Attributes & {};
|
|
283
285
|
|
|
284
286
|
"nord-notification": WCProps<Components.Notification> &
|
|
285
287
|
React.RefAttributes<Components.Notification> &
|
|
@@ -288,8 +290,8 @@ declare module "react" {
|
|
|
288
290
|
/**
|
|
289
291
|
* Fired when the notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.
|
|
290
292
|
*/
|
|
291
|
-
ondismiss?: (event: Event) => void
|
|
292
|
-
}
|
|
293
|
+
ondismiss?: (event: Event) => void;
|
|
294
|
+
};
|
|
293
295
|
|
|
294
296
|
"nord-notification-group": WCProps<Components.NotificationGroup> &
|
|
295
297
|
React.RefAttributes<Components.NotificationGroup> &
|
|
@@ -298,8 +300,8 @@ declare module "react" {
|
|
|
298
300
|
/**
|
|
299
301
|
* Fired when a notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.
|
|
300
302
|
*/
|
|
301
|
-
ondismiss?: (event: Event) => void
|
|
302
|
-
}
|
|
303
|
+
ondismiss?: (event: Event) => void;
|
|
304
|
+
};
|
|
303
305
|
|
|
304
306
|
"nord-popout": WCProps<Components.Popout> &
|
|
305
307
|
React.RefAttributes<Components.Popout> &
|
|
@@ -308,23 +310,28 @@ declare module "react" {
|
|
|
308
310
|
/**
|
|
309
311
|
* Dispatched when the popout is closed.
|
|
310
312
|
*/
|
|
311
|
-
onclose?: (event: Event) => void
|
|
313
|
+
onclose?: (event: Event) => void;
|
|
312
314
|
|
|
313
315
|
/**
|
|
314
316
|
* Dispatched when the popout is opened.
|
|
315
317
|
*/
|
|
316
|
-
onopen?: (event: Event) => void
|
|
317
|
-
}
|
|
318
|
+
onopen?: (event: Event) => void;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
"nord-progress": WCProps<Components.Progress> &
|
|
322
|
+
React.RefAttributes<Components.Progress> &
|
|
323
|
+
React.HTMLAttributes<HTMLElement> &
|
|
324
|
+
React.Attributes & {};
|
|
318
325
|
|
|
319
326
|
"nord-progress-bar": WCProps<Components.ProgressBar> &
|
|
320
327
|
React.RefAttributes<Components.ProgressBar> &
|
|
321
328
|
React.HTMLAttributes<HTMLElement> &
|
|
322
|
-
React.Attributes & {}
|
|
329
|
+
React.Attributes & {};
|
|
323
330
|
|
|
324
331
|
"nord-qrcode": WCProps<Components.Qrcode> &
|
|
325
332
|
React.RefAttributes<Components.Qrcode> &
|
|
326
333
|
React.HTMLAttributes<HTMLElement> &
|
|
327
|
-
React.Attributes & {}
|
|
334
|
+
React.Attributes & {};
|
|
328
335
|
|
|
329
336
|
"nord-radio": WCProps<Components.Radio> &
|
|
330
337
|
React.RefAttributes<Components.Radio> &
|
|
@@ -333,13 +340,13 @@ declare module "react" {
|
|
|
333
340
|
/**
|
|
334
341
|
* Fired whenever the input's value is changed via user interaction.
|
|
335
342
|
*/
|
|
336
|
-
onchange?: (event: Event) => void
|
|
343
|
+
onchange?: (event: Event) => void;
|
|
337
344
|
|
|
338
345
|
/**
|
|
339
346
|
* Fired as the user types into the input.
|
|
340
347
|
*/
|
|
341
|
-
oninput?: (event: Event) => void
|
|
342
|
-
}
|
|
348
|
+
oninput?: (event: Event) => void;
|
|
349
|
+
};
|
|
343
350
|
|
|
344
351
|
"nord-range": WCProps<Components.Range> &
|
|
345
352
|
React.RefAttributes<Components.Range> &
|
|
@@ -348,13 +355,13 @@ declare module "react" {
|
|
|
348
355
|
/**
|
|
349
356
|
* Fired whenever the input's value is changed via user interaction.
|
|
350
357
|
*/
|
|
351
|
-
onchange?: (event: Event) => void
|
|
358
|
+
onchange?: (event: Event) => void;
|
|
352
359
|
|
|
353
360
|
/**
|
|
354
361
|
* Fired as the user types into the input.
|
|
355
362
|
*/
|
|
356
|
-
oninput?: (event: Event) => void
|
|
357
|
-
}
|
|
363
|
+
oninput?: (event: Event) => void;
|
|
364
|
+
};
|
|
358
365
|
|
|
359
366
|
"nord-segmented-control": WCProps<Components.SegmentedControl> &
|
|
360
367
|
React.RefAttributes<Components.SegmentedControl> &
|
|
@@ -363,8 +370,8 @@ declare module "react" {
|
|
|
363
370
|
/**
|
|
364
371
|
* Fired whenever a segmented control item has been checked.
|
|
365
372
|
*/
|
|
366
|
-
onchange?: (event: Event) => void
|
|
367
|
-
}
|
|
373
|
+
onchange?: (event: Event) => void;
|
|
374
|
+
};
|
|
368
375
|
|
|
369
376
|
"nord-segmented-control-item": WCProps<Components.SegmentedControlItem> &
|
|
370
377
|
React.RefAttributes<Components.SegmentedControlItem> &
|
|
@@ -373,13 +380,13 @@ declare module "react" {
|
|
|
373
380
|
/**
|
|
374
381
|
* Fired whenever the segmented control item has been checked.
|
|
375
382
|
*/
|
|
376
|
-
onchange?: (event: Event) => void
|
|
383
|
+
onchange?: (event: Event) => void;
|
|
377
384
|
|
|
378
385
|
/**
|
|
379
386
|
* Fired as the user types into the input.
|
|
380
387
|
*/
|
|
381
|
-
oninput?: (event: Event) => void
|
|
382
|
-
}
|
|
388
|
+
oninput?: (event: Event) => void;
|
|
389
|
+
};
|
|
383
390
|
|
|
384
391
|
"nord-select": WCProps<Components.Select> &
|
|
385
392
|
React.RefAttributes<Components.Select> &
|
|
@@ -388,48 +395,48 @@ declare module "react" {
|
|
|
388
395
|
/**
|
|
389
396
|
* Fired whenever the input's value is changed via user interaction.
|
|
390
397
|
*/
|
|
391
|
-
onchange?: (event: Event) => void
|
|
398
|
+
onchange?: (event: Event) => void;
|
|
392
399
|
|
|
393
400
|
/**
|
|
394
401
|
* Fired as the user types into the input.
|
|
395
402
|
*/
|
|
396
|
-
oninput?: (event: Event) => void
|
|
397
|
-
}
|
|
403
|
+
oninput?: (event: Event) => void;
|
|
404
|
+
};
|
|
398
405
|
|
|
399
406
|
"nord-skeleton": WCProps<Components.Skeleton> &
|
|
400
407
|
React.RefAttributes<Components.Skeleton> &
|
|
401
408
|
React.HTMLAttributes<HTMLElement> &
|
|
402
|
-
React.Attributes & {}
|
|
409
|
+
React.Attributes & {};
|
|
403
410
|
|
|
404
411
|
"nord-spinner": WCProps<Components.Spinner> &
|
|
405
412
|
React.RefAttributes<Components.Spinner> &
|
|
406
413
|
React.HTMLAttributes<HTMLElement> &
|
|
407
|
-
React.Attributes & {}
|
|
414
|
+
React.Attributes & {};
|
|
408
415
|
|
|
409
416
|
"nord-stack": WCProps<Components.Stack> &
|
|
410
417
|
React.RefAttributes<Components.Stack> &
|
|
411
418
|
React.HTMLAttributes<HTMLElement> &
|
|
412
|
-
React.Attributes & {}
|
|
419
|
+
React.Attributes & {};
|
|
413
420
|
|
|
414
421
|
"nord-tab": WCProps<Components.Tab> &
|
|
415
422
|
React.RefAttributes<Components.Tab> &
|
|
416
423
|
React.HTMLAttributes<HTMLElement> &
|
|
417
|
-
React.Attributes & {}
|
|
424
|
+
React.Attributes & {};
|
|
418
425
|
|
|
419
426
|
"nord-tab-group": WCProps<Components.TabGroup> &
|
|
420
427
|
React.RefAttributes<Components.TabGroup> &
|
|
421
428
|
React.HTMLAttributes<HTMLElement> &
|
|
422
|
-
React.Attributes & {}
|
|
429
|
+
React.Attributes & {};
|
|
423
430
|
|
|
424
431
|
"nord-table": WCProps<Components.Table> &
|
|
425
432
|
React.RefAttributes<Components.Table> &
|
|
426
433
|
React.HTMLAttributes<HTMLElement> &
|
|
427
|
-
React.Attributes & {}
|
|
434
|
+
React.Attributes & {};
|
|
428
435
|
|
|
429
436
|
"nord-tab-panel": WCProps<Components.TabPanel> &
|
|
430
437
|
React.RefAttributes<Components.TabPanel> &
|
|
431
438
|
React.HTMLAttributes<HTMLElement> &
|
|
432
|
-
React.Attributes & {}
|
|
439
|
+
React.Attributes & {};
|
|
433
440
|
|
|
434
441
|
"nord-tag": WCProps<Components.Tag> &
|
|
435
442
|
React.RefAttributes<Components.Tag> &
|
|
@@ -438,13 +445,13 @@ declare module "react" {
|
|
|
438
445
|
/**
|
|
439
446
|
* Fired whenever the tag has been checked or unchecked via user interaction.
|
|
440
447
|
*/
|
|
441
|
-
onchange?: (event: Event) => void
|
|
448
|
+
onchange?: (event: Event) => void;
|
|
442
449
|
|
|
443
450
|
/**
|
|
444
451
|
* Fired when the remove button is activated. This event should be used to remove the tag from the DOM.
|
|
445
452
|
*/
|
|
446
|
-
onremove?: (event: Event) => void
|
|
447
|
-
}
|
|
453
|
+
onremove?: (event: Event) => void;
|
|
454
|
+
};
|
|
448
455
|
|
|
449
456
|
"nord-tag-group": WCProps<Components.TagGroup> &
|
|
450
457
|
React.RefAttributes<Components.TagGroup> &
|
|
@@ -453,13 +460,13 @@ declare module "react" {
|
|
|
453
460
|
/**
|
|
454
461
|
* Fired whenever a tag has been checked or unchecked via user interaction.
|
|
455
462
|
*/
|
|
456
|
-
onchange?: (event: Event) => void
|
|
463
|
+
onchange?: (event: Event) => void;
|
|
457
464
|
|
|
458
465
|
/**
|
|
459
466
|
* Fired when the remove button is activated on a tag. This event should be used to remove the tag from the DOM.
|
|
460
467
|
*/
|
|
461
|
-
onremove?: (event: Event) => void
|
|
462
|
-
}
|
|
468
|
+
onremove?: (event: Event) => void;
|
|
469
|
+
};
|
|
463
470
|
|
|
464
471
|
"nord-textarea": WCProps<Components.Textarea> &
|
|
465
472
|
React.RefAttributes<Components.Textarea> &
|
|
@@ -468,18 +475,18 @@ declare module "react" {
|
|
|
468
475
|
/**
|
|
469
476
|
* Fired whenever the input's value is changed via user interaction.
|
|
470
477
|
*/
|
|
471
|
-
onchange?: (event: Event) => void
|
|
478
|
+
onchange?: (event: Event) => void;
|
|
472
479
|
|
|
473
480
|
/**
|
|
474
481
|
* Fired as the user types into the input.
|
|
475
482
|
*/
|
|
476
|
-
oninput?: (event: Event) => void
|
|
483
|
+
oninput?: (event: Event) => void;
|
|
477
484
|
|
|
478
485
|
/**
|
|
479
486
|
* Fired when some text has been selected.
|
|
480
487
|
*/
|
|
481
|
-
onselect?: (event: Event) => void
|
|
482
|
-
}
|
|
488
|
+
onselect?: (event: Event) => void;
|
|
489
|
+
};
|
|
483
490
|
|
|
484
491
|
"nord-toast": WCProps<Components.Toast> &
|
|
485
492
|
React.RefAttributes<Components.Toast> &
|
|
@@ -488,8 +495,8 @@ declare module "react" {
|
|
|
488
495
|
/**
|
|
489
496
|
* Fired when the toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.
|
|
490
497
|
*/
|
|
491
|
-
ondismiss?: (event: Event) => void
|
|
492
|
-
}
|
|
498
|
+
ondismiss?: (event: Event) => void;
|
|
499
|
+
};
|
|
493
500
|
|
|
494
501
|
"nord-toast-group": WCProps<Components.ToastGroup> &
|
|
495
502
|
React.RefAttributes<Components.ToastGroup> &
|
|
@@ -498,8 +505,8 @@ declare module "react" {
|
|
|
498
505
|
/**
|
|
499
506
|
* Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.
|
|
500
507
|
*/
|
|
501
|
-
ondismiss?: (event: Event) => void
|
|
502
|
-
}
|
|
508
|
+
ondismiss?: (event: Event) => void;
|
|
509
|
+
};
|
|
503
510
|
|
|
504
511
|
"nord-toggle": WCProps<Components.Toggle> &
|
|
505
512
|
React.RefAttributes<Components.Toggle> &
|
|
@@ -508,28 +515,28 @@ declare module "react" {
|
|
|
508
515
|
/**
|
|
509
516
|
* Fired whenever the input's value is changed via user interaction.
|
|
510
517
|
*/
|
|
511
|
-
onchange?: (event: Event) => void
|
|
518
|
+
onchange?: (event: Event) => void;
|
|
512
519
|
|
|
513
520
|
/**
|
|
514
521
|
* Fired as the user types into the input.
|
|
515
522
|
*/
|
|
516
|
-
oninput?: (event: Event) => void
|
|
517
|
-
}
|
|
523
|
+
oninput?: (event: Event) => void;
|
|
524
|
+
};
|
|
518
525
|
|
|
519
526
|
"nord-tooltip": WCProps<Components.Tooltip> &
|
|
520
527
|
React.RefAttributes<Components.Tooltip> &
|
|
521
528
|
React.HTMLAttributes<HTMLElement> &
|
|
522
|
-
React.Attributes & {}
|
|
529
|
+
React.Attributes & {};
|
|
523
530
|
|
|
524
531
|
"nord-top-bar": WCProps<Components.TopBar> &
|
|
525
532
|
React.RefAttributes<Components.TopBar> &
|
|
526
533
|
React.HTMLAttributes<HTMLElement> &
|
|
527
|
-
React.Attributes & {}
|
|
534
|
+
React.Attributes & {};
|
|
528
535
|
|
|
529
536
|
"nord-visually-hidden": WCProps<Components.VisuallyHidden> &
|
|
530
537
|
React.RefAttributes<Components.VisuallyHidden> &
|
|
531
538
|
React.HTMLAttributes<HTMLElement> &
|
|
532
|
-
React.Attributes & {}
|
|
539
|
+
React.Attributes & {};
|
|
533
540
|
}
|
|
534
541
|
}
|
|
535
542
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement, nothing } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import '../visually-hidden/VisuallyHidden.js';
|
|
3
|
+
import '../icon/Icon.js';
|
|
4
4
|
/**
|
|
5
5
|
* Avatar is used for showing a thumbnail representation of a single user or entity.
|
|
6
6
|
* Default avatar illustration is displayed when no src is specified.
|
|
@@ -19,7 +19,7 @@ export default class Avatar extends LitElement {
|
|
|
19
19
|
/**
|
|
20
20
|
* The size of the avatar.
|
|
21
21
|
*/
|
|
22
|
-
size:
|
|
22
|
+
size: 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
23
23
|
/**
|
|
24
24
|
* The URL of the avatar image uploaded by the user.
|
|
25
25
|
*/
|
|
@@ -35,7 +35,7 @@ export default class Avatar extends LitElement {
|
|
|
35
35
|
/**
|
|
36
36
|
* The style variant of the avatar.
|
|
37
37
|
*/
|
|
38
|
-
variant:
|
|
38
|
+
variant: 'default' | 'square';
|
|
39
39
|
render(): import("lit").TemplateResult<1>;
|
|
40
40
|
protected handleSrcChange(): void;
|
|
41
41
|
protected renderImage(): import("lit").TemplateResult<1> | typeof nothing;
|
|
@@ -45,6 +45,6 @@ export default class Avatar extends LitElement {
|
|
|
45
45
|
}
|
|
46
46
|
declare global {
|
|
47
47
|
interface HTMLElementTagNameMap {
|
|
48
|
-
|
|
48
|
+
'nord-avatar': Avatar;
|
|
49
49
|
}
|
|
50
50
|
}
|