@nordhealth/components 4.26.2 → 5.0.0-alpha.0
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/custom-elements.json +53898 -21499
- package/lib/Accordion.js +2 -0
- package/lib/Accordion.js.map +1 -0
- package/lib/AccordionHeader.js +2 -0
- package/lib/AccordionHeader.js.map +1 -0
- package/lib/AccordionItem.js +2 -0
- package/lib/AccordionItem.js.map +1 -0
- package/lib/AccordionPanel.js +2 -0
- package/lib/AccordionPanel.js.map +1 -0
- package/lib/AccordionTrigger.js +2 -0
- package/lib/AccordionTrigger.js.map +1 -0
- package/lib/ActiveDescendantController-BnMqM79O.js +2 -0
- package/lib/ActiveDescendantController-BnMqM79O.js.map +1 -0
- package/lib/Aside.js +5 -7
- package/lib/Aside.js.map +1 -1
- package/lib/AsideDrawer.js +7 -11
- package/lib/AsideDrawer.js.map +1 -1
- package/lib/AsideTrigger.js +3 -4
- package/lib/AsideTrigger.js.map +1 -1
- package/lib/Autocomplete.js +2 -0
- package/lib/Autocomplete.js.map +1 -0
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +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 +7 -12
- package/lib/Button.js.map +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonGroup.js.map +1 -1
- package/lib/Calendar-C1SxrlzN.js +2 -0
- package/lib/Calendar-C1SxrlzN.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/CollapseController-BtKNFNyJ.js +2 -0
- package/lib/CollapseController-BtKNFNyJ.js.map +1 -0
- package/lib/Collapsible.js +2 -0
- package/lib/Collapsible.js.map +1 -0
- package/lib/CollapsiblePanel.js +2 -0
- package/lib/CollapsiblePanel.js.map +1 -0
- package/lib/CollapsibleTrigger.js +2 -0
- package/lib/CollapsibleTrigger.js.map +1 -0
- package/lib/Combobox-By4h1Sp-.js +2 -0
- package/lib/Combobox-By4h1Sp-.js.map +1 -0
- package/lib/Combobox.js +2 -0
- package/lib/Combobox.js.map +1 -0
- package/lib/ComboboxBase.js +2 -0
- package/lib/ComboboxBase.js.map +1 -0
- package/lib/ComboboxEvents.js +2 -0
- package/lib/ComboboxEvents.js.map +1 -0
- package/lib/ComboboxGroup.js +2 -0
- package/lib/ComboboxGroup.js.map +1 -0
- package/lib/ComboboxOption.js +2 -0
- package/lib/ComboboxOption.js.map +1 -0
- 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/Component-BJ5O5n8k.js +2 -0
- package/lib/Component-BJ5O5n8k.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateRangeChangeEvent.js +2 -0
- package/lib/DateRangeChangeEvent.js.map +1 -0
- package/lib/DateRangePicker.js +2 -0
- package/lib/DateRangePicker.js.map +1 -0
- package/lib/DateRangeSelectEvent.js +2 -0
- package/lib/DateRangeSelectEvent.js.map +1 -0
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/DraftComponentMixin-4qug5Rky.js +2 -0
- package/lib/DraftComponentMixin-4qug5Rky.js.map +1 -0
- 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 +1 -1
- package/lib/DropdownGroup.js.map +1 -1
- package/lib/DropdownItem-BYbOLth6.js +2 -0
- package/lib/DropdownItem-BYbOLth6.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/DropdownSubmenu.js +1 -1
- package/lib/DropdownSubmenu.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/Field.js +2 -0
- package/lib/Field.js.map +1 -0
- package/lib/FieldContent.js +2 -0
- package/lib/FieldContent.js.map +1 -0
- package/lib/FieldControlMixin-BXNZJXu9.js +2 -0
- package/lib/FieldControlMixin-BXNZJXu9.js.map +1 -0
- package/lib/FieldDescription.js +2 -0
- package/lib/FieldDescription.js.map +1 -0
- package/lib/FieldError.js +2 -0
- package/lib/FieldError.js.map +1 -0
- package/lib/FieldGroup.js +2 -0
- package/lib/FieldGroup.js.map +1 -0
- package/lib/FieldLabel.js +2 -0
- package/lib/FieldLabel.js.map +1 -0
- package/lib/FieldLegend.js +2 -0
- package/lib/FieldLegend.js.map +1 -0
- package/lib/FieldSeparator.js +2 -0
- package/lib/FieldSeparator.js.map +1 -0
- package/lib/FieldSet.js +2 -0
- package/lib/FieldSet.js.map +1 -0
- package/lib/FieldTitle.js +2 -0
- package/lib/FieldTitle.js.map +1 -0
- package/lib/Fieldset2.js +2 -0
- package/lib/Fieldset2.js.map +1 -0
- package/lib/FilterAddButton.js +2 -0
- package/lib/FilterAddButton.js.map +1 -0
- package/lib/FilterAddButtonEvents.js +2 -0
- package/lib/FilterAddButtonEvents.js.map +1 -0
- package/lib/FilterBar.js +2 -0
- package/lib/FilterBar.js.map +1 -0
- package/lib/FilterDateRange.js +2 -0
- package/lib/FilterDateRange.js.map +1 -0
- package/lib/FilterDateRangeEvents.js +2 -0
- package/lib/FilterDateRangeEvents.js.map +1 -0
- package/lib/FilterDropdown.js +2 -0
- package/lib/FilterDropdown.js.map +1 -0
- package/lib/FilterDropdownEvents.js +2 -0
- package/lib/FilterDropdownEvents.js.map +1 -0
- package/lib/FilterField.js +2 -0
- package/lib/FilterField.js.map +1 -0
- package/lib/FilterFieldEvents.js +2 -0
- package/lib/FilterFieldEvents.js.map +1 -0
- package/lib/FilterInput.js +2 -0
- package/lib/FilterInput.js.map +1 -0
- package/lib/FilterResetButton.js +2 -0
- package/lib/FilterResetButton.js.map +1 -0
- package/lib/FocusableWhenDisabledController-C_Mn1mfN.js +2 -0
- package/lib/FocusableWhenDisabledController-C_Mn1mfN.js.map +1 -0
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/FormAssociatedMixin-D9aPREgv.js +2 -0
- package/lib/FormAssociatedMixin-D9aPREgv.js.map +1 -0
- package/lib/FormField-CMgEFZCK.js +2 -0
- package/lib/FormField-CMgEFZCK.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/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/Item.js +2 -0
- package/lib/Item.js.map +1 -0
- package/lib/ItemActions.js +2 -0
- package/lib/ItemActions.js.map +1 -0
- package/lib/ItemContent.js +2 -0
- package/lib/ItemContent.js.map +1 -0
- package/lib/ItemDescription.js +2 -0
- package/lib/ItemDescription.js.map +1 -0
- package/lib/ItemFooter.js +2 -0
- package/lib/ItemFooter.js.map +1 -0
- package/lib/ItemGroup.js +2 -0
- package/lib/ItemGroup.js.map +1 -0
- package/lib/ItemHeader.js +2 -0
- package/lib/ItemHeader.js.map +1 -0
- package/lib/ItemMedia.js +2 -0
- package/lib/ItemMedia.js.map +1 -0
- package/lib/ItemSeparator.js +2 -0
- package/lib/ItemSeparator.js.map +1 -0
- package/lib/ItemTitle.js +2 -0
- package/lib/ItemTitle.js.map +1 -0
- package/lib/Kbd.js +2 -0
- package/lib/Kbd.js.map +1 -0
- package/lib/KbdGroup.js +2 -0
- package/lib/KbdGroup.js.map +1 -0
- package/lib/Layout.js +1 -3
- package/lib/Layout.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/Meter.js +2 -0
- package/lib/Meter.js.map +1 -0
- 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-BY83xpx0.js +2 -0
- package/lib/NavToggle-BY83xpx0.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/NumberField.js +2 -0
- package/lib/NumberField.js.map +1 -0
- package/lib/NumberFieldEvents.js +2 -0
- package/lib/NumberFieldEvents.js.map +1 -0
- package/lib/OpenStateController-CCnZ7up6.js +2 -0
- package/lib/OpenStateController-CCnZ7up6.js.map +1 -0
- package/lib/OtpField.js +2 -0
- package/lib/OtpField.js.map +1 -0
- package/lib/OtpFieldEvents.js +2 -0
- package/lib/OtpFieldEvents.js.map +1 -0
- package/lib/Pagination.js +2 -0
- package/lib/Pagination.js.map +1 -0
- package/lib/PaginationContent.js +2 -0
- package/lib/PaginationContent.js.map +1 -0
- package/lib/PaginationEllipsis.js +2 -0
- package/lib/PaginationEllipsis.js.map +1 -0
- package/lib/PaginationItem.js +2 -0
- package/lib/PaginationItem.js.map +1 -0
- package/lib/PaginationLink.js +2 -0
- package/lib/PaginationLink.js.map +1 -0
- package/lib/PaginationNext.js +2 -0
- package/lib/PaginationNext.js.map +1 -0
- package/lib/PaginationPrevious.js +2 -0
- package/lib/PaginationPrevious.js.map +1 -0
- package/lib/Popout-DpN7PP9h.js +2 -0
- package/lib/Popout-DpN7PP9h.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 +2 -2
- 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/ReadonlyMixin-BdJPGtQ3.js +2 -0
- package/lib/ReadonlyMixin-BdJPGtQ3.js.map +1 -0
- package/lib/ResizeController-14PUwRQy.js +2 -0
- package/lib/ResizeController-14PUwRQy.js.map +1 -0
- package/lib/ScrollArea.js +2 -0
- package/lib/ScrollArea.js.map +1 -0
- package/lib/SegmentedControl.js +1 -1
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControlItem.js +23 -40
- package/lib/SegmentedControlItem.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.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/StateAttributesController-BIh96sXZ.js +2 -0
- package/lib/StateAttributesController-BIh96sXZ.js.map +1 -0
- package/lib/Sticky-CZImMrGj.js +2 -0
- package/lib/Sticky-CZImMrGj.js.map +1 -0
- 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 +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-CSKvieoG.js +2 -0
- package/lib/TextField-CSKvieoG.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/TimePicker.js +2 -0
- package/lib/TimePicker.js.map +1 -0
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js +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/Truncate.js +1 -1
- package/lib/Truncate.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +91 -91
- package/lib/bundle.js.map +1 -1
- package/lib/combobox-context.js +2 -0
- package/lib/combobox-context.js.map +1 -0
- package/lib/context-consumer-BJVUulGf.js +7 -0
- package/lib/context-consumer-BJVUulGf.js.map +1 -0
- package/lib/context-provider-D8lrPLVi.js +12 -0
- package/lib/context-provider-D8lrPLVi.js.map +1 -0
- package/lib/context-request-event-CCRlXoeR.js +7 -0
- package/lib/context-request-event-CCRlXoeR.js.map +1 -0
- package/lib/create-context-CJ69ntlY.js +7 -0
- package/lib/create-context-CJ69ntlY.js.map +1 -0
- package/lib/currency.js +2 -0
- package/lib/currency.js.map +1 -0
- package/lib/date-adapter.js +1 -1
- package/lib/dates-C-ZvzXaC.js +2 -0
- package/lib/dates-C-ZvzXaC.js.map +1 -0
- package/lib/dates.js +2 -0
- package/lib/dates.js.map +1 -0
- package/lib/dismiss.js +2 -0
- package/lib/dismiss.js.map +1 -0
- package/lib/en-us.js +1 -1
- package/lib/en-us.js.map +1 -1
- package/lib/fi-fi.js +1 -1
- package/lib/fi-fi.js.map +1 -1
- package/lib/field-context.js +2 -0
- package/lib/field-context.js.map +1 -0
- package/lib/filter-chip-C97zd4PT.js +2 -0
- package/lib/filter-chip-C97zd4PT.js.map +1 -0
- package/lib/format.js +2 -0
- package/lib/format.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/interface-add-small-B-hv2v9J.js +2 -0
- package/lib/interface-add-small-B-hv2v9J.js.map +1 -0
- package/lib/interface-calendar-Cw2bJfbS.js +2 -0
- package/lib/interface-calendar-Cw2bJfbS.js.map +1 -0
- package/lib/interface-close-BvKnv9eh.js +2 -0
- package/lib/interface-close-BvKnv9eh.js.map +1 -0
- package/lib/interface-dropdown-small-CYvgxudU.js +2 -0
- package/lib/interface-dropdown-small-CYvgxudU.js.map +1 -0
- package/lib/interface-filter-CCsx9-u6.js +2 -0
- package/lib/interface-filter-CCsx9-u6.js.map +1 -0
- package/lib/interface-remove-small-DUaWSs90.js +2 -0
- package/lib/interface-remove-small-DUaWSs90.js.map +1 -0
- package/lib/light-dom-styles-DXsbiKU9.js +2 -0
- package/lib/light-dom-styles-DXsbiKU9.js.map +1 -0
- package/lib/localization.js +1 -1
- package/lib/localization.js.map +1 -1
- package/lib/localization10.js +2 -0
- package/lib/localization10.js.map +1 -0
- package/lib/localization11.js +2 -0
- package/lib/localization11.js.map +1 -0
- package/lib/localization12.js +2 -0
- package/lib/localization12.js.map +1 -0
- package/lib/localization13.js +2 -0
- package/lib/localization13.js.map +1 -0
- package/lib/localization14.js +2 -0
- package/lib/localization14.js.map +1 -0
- package/lib/localization15.js +2 -0
- package/lib/localization15.js.map +1 -0
- package/lib/localization16.js +2 -0
- package/lib/localization16.js.map +1 -0
- package/lib/localization17.js +2 -0
- package/lib/localization17.js.map +1 -0
- package/lib/localization18.js +2 -0
- package/lib/localization18.js.map +1 -0
- package/lib/localization19.js +2 -0
- package/lib/localization19.js.map +1 -0
- package/lib/localization2.js +1 -1
- package/lib/localization2.js.map +1 -1
- package/lib/localization20.js +2 -0
- package/lib/localization20.js.map +1 -0
- package/lib/localization21.js +2 -0
- package/lib/localization21.js.map +1 -0
- package/lib/localization22.js +2 -0
- package/lib/localization22.js.map +1 -0
- 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 +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/navigation-search-CBbIGzo2.js +2 -0
- package/lib/navigation-search-CBbIGzo2.js.map +1 -0
- package/lib/paginate.js +2 -0
- package/lib/paginate.js.map +1 -0
- package/lib/parse.js +2 -0
- package/lib/parse.js.map +1 -0
- package/lib/primitives-Dj0vyf1-.js +2 -0
- package/lib/primitives-Dj0vyf1-.js.map +1 -0
- package/lib/react.d.ts +505 -0
- package/lib/src/accordion/Accordion.d.ts +121 -0
- package/lib/src/accordion/AccordionHeader.d.ts +28 -0
- package/lib/src/accordion/AccordionItem.d.ts +68 -0
- package/lib/src/accordion/AccordionPanel.d.ts +35 -0
- package/lib/src/accordion/AccordionTrigger.d.ts +47 -0
- package/lib/src/aside-drawer/AsideDrawer.d.ts +2 -0
- package/lib/src/aside-trigger/AsideTrigger.d.ts +2 -0
- package/lib/src/autocomplete/Autocomplete.d.ts +190 -0
- package/lib/src/autocomplete/localization.d.ts +5 -0
- package/lib/src/badge/Badge.d.ts +1 -1
- package/lib/src/banner/Banner.d.ts +3 -0
- package/lib/src/button-group/ButtonGroup.d.ts +1 -1
- package/lib/src/calendar/Calendar.d.ts +44 -0
- package/lib/src/calendar/DateRangeSelectEvent.d.ts +16 -0
- package/lib/src/collapsible/Collapsible.d.ts +69 -0
- package/lib/src/collapsible/CollapsiblePanel.d.ts +35 -0
- package/lib/src/collapsible/CollapsibleTrigger.d.ts +38 -0
- package/lib/src/combobox/Combobox.d.ts +131 -0
- package/lib/src/combobox/ComboboxBase.d.ts +421 -0
- package/lib/src/combobox/ComboboxEvents.d.ts +25 -0
- package/lib/src/combobox/ComboboxGroup.d.ts +34 -0
- package/lib/src/combobox/ComboboxOption.d.ts +47 -0
- package/lib/src/combobox/combobox-context.d.ts +18 -0
- package/lib/src/combobox/localization.d.ts +6 -0
- package/lib/src/common/controllers/ActiveDescendantController.d.ts +45 -0
- package/lib/src/common/controllers/CollapseController.d.ts +50 -0
- package/lib/src/common/controllers/FocusableWhenDisabledController.d.ts +29 -0
- package/lib/src/common/controllers/OpenStateController.d.ts +58 -0
- package/lib/src/common/controllers/RovingFocusController.d.ts +40 -0
- package/lib/src/common/controllers/StateAttributesController.d.ts +47 -0
- package/lib/src/common/controllers/TransitionStatusController.d.ts +48 -0
- package/lib/src/common/dates.d.ts +13 -0
- package/lib/src/common/light-dom-styles.d.ts +17 -0
- package/lib/src/common/mixins/FieldControlMixin.d.ts +60 -0
- package/lib/src/common/mixins/FormAssociatedMixin.d.ts +8 -25
- package/lib/src/common/mixins/TextSelectableMixin.d.ts +1 -0
- package/lib/src/common/prefers-reduced-motion.d.ts +7 -0
- package/lib/src/date-picker/DatePicker.d.ts +2 -0
- package/lib/src/date-range-picker/DateRangeChangeEvent.d.ts +27 -0
- package/lib/src/date-range-picker/DateRangePicker.d.ts +307 -0
- package/lib/src/date-range-picker/localization.d.ts +42 -0
- package/lib/src/dropdown/Dropdown.d.ts +1 -1
- package/lib/src/dropdown-group/DropdownGroup.d.ts +3 -1
- package/lib/src/dropdown-item/DropdownItem.d.ts +3 -1
- package/lib/src/dropdown-submenu/DropdownSubmenu.d.ts +2 -0
- package/lib/src/field/Field.d.ts +102 -0
- package/lib/src/field/FieldContent.d.ts +22 -0
- package/lib/src/field/FieldDescription.d.ts +21 -0
- package/lib/src/field/FieldError.d.ts +25 -0
- package/lib/src/field/FieldGroup.d.ts +25 -0
- package/lib/src/field/FieldLabel.d.ts +41 -0
- package/lib/src/field/FieldLegend.d.ts +20 -0
- package/lib/src/field/FieldSeparator.d.ts +21 -0
- package/lib/src/field/FieldSet.d.ts +28 -0
- package/lib/src/field/FieldTitle.d.ts +21 -0
- package/lib/src/field/field-context.d.ts +47 -0
- package/lib/src/fieldset/Fieldset.d.ts +12 -4
- package/lib/src/filter-add-button/FilterAddButton.d.ts +91 -0
- package/lib/src/filter-add-button/FilterAddButtonEvents.d.ts +17 -0
- package/lib/src/filter-add-button/localization.d.ts +4 -0
- package/lib/src/filter-bar/FilterBar.d.ts +37 -0
- package/lib/src/filter-date-range/FilterDateRange.d.ts +96 -0
- package/lib/src/filter-date-range/FilterDateRangeEvents.d.ts +37 -0
- package/lib/src/filter-date-range/localization.d.ts +11 -0
- package/lib/src/filter-dropdown/FilterDropdown.d.ts +247 -0
- package/lib/src/filter-dropdown/FilterDropdownEvents.d.ts +57 -0
- package/lib/src/filter-dropdown/localization.d.ts +14 -0
- package/lib/src/filter-field/FilterField.d.ts +89 -0
- package/lib/src/filter-field/FilterFieldEvents.d.ts +18 -0
- package/lib/src/filter-field/localization.d.ts +8 -0
- package/lib/src/filter-input/FilterInput.d.ts +102 -0
- package/lib/src/filter-input/localization.d.ts +5 -0
- package/lib/src/filter-reset-button/FilterResetButton.d.ts +50 -0
- package/lib/src/filter-reset-button/localization.d.ts +4 -0
- package/lib/src/index.d.ts +59 -0
- package/lib/src/input/Input.d.ts +2 -1
- package/lib/src/item/Item.d.ts +44 -0
- package/lib/src/item/ItemActions.d.ts +20 -0
- package/lib/src/item/ItemContent.d.ts +22 -0
- package/lib/src/item/ItemDescription.d.ts +20 -0
- package/lib/src/item/ItemFooter.d.ts +20 -0
- package/lib/src/item/ItemGroup.d.ts +22 -0
- package/lib/src/item/ItemHeader.d.ts +20 -0
- package/lib/src/item/ItemMedia.d.ts +28 -0
- package/lib/src/item/ItemSeparator.d.ts +21 -0
- package/lib/src/item/ItemTitle.d.ts +19 -0
- package/lib/src/kbd/Kbd.d.ts +54 -0
- package/lib/src/kbd/KbdGroup.d.ts +22 -0
- package/lib/src/layout/Layout.d.ts +2 -2
- package/lib/src/localization/en-us.d.ts +85 -0
- package/lib/src/localization/translation.d.ts +85 -0
- package/lib/src/meter/Meter.d.ts +76 -0
- package/lib/src/nav-group/NavGroup.d.ts +2 -0
- package/lib/src/nav-item/NavItem.d.ts +2 -0
- package/lib/src/nav-toggle/NavToggle.d.ts +3 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +2 -0
- package/lib/src/number-field/NumberField.d.ts +377 -0
- package/lib/src/number-field/NumberFieldEvents.d.ts +37 -0
- package/lib/src/number-field/currency.d.ts +24 -0
- package/lib/src/number-field/format.d.ts +8 -0
- package/lib/src/number-field/localization.d.ts +6 -0
- package/lib/src/number-field/parse.d.ts +44 -0
- package/lib/src/number-field/validate.d.ts +24 -0
- package/lib/src/otp-field/OtpField.d.ts +177 -0
- package/lib/src/otp-field/OtpFieldEvents.d.ts +38 -0
- package/lib/src/otp-field/localization.d.ts +4 -0
- package/lib/src/pagination/Pagination.d.ts +51 -0
- package/lib/src/pagination/PaginationContent.d.ts +27 -0
- package/lib/src/pagination/PaginationEllipsis.d.ts +27 -0
- package/lib/src/pagination/PaginationItem.d.ts +24 -0
- package/lib/src/pagination/PaginationLink.d.ts +30 -0
- package/lib/src/pagination/PaginationNext.d.ts +24 -0
- package/lib/src/pagination/PaginationPrevious.d.ts +24 -0
- package/lib/src/pagination/localization.d.ts +4 -0
- package/lib/src/pagination/paginate.d.ts +20 -0
- package/lib/src/popout/Popout.d.ts +9 -0
- package/lib/src/scroll-area/ScrollArea.d.ts +101 -0
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +2 -0
- package/lib/src/storybook-utils/dates.d.ts +2 -0
- package/lib/src/storybook-utils/dismiss.d.ts +1 -0
- package/lib/src/storybook-utils/story-descriptions.d.ts +2 -0
- package/lib/src/tab-group/TabGroup.d.ts +2 -0
- package/lib/src/tab-panel/TabPanel.d.ts +2 -0
- package/lib/src/tag-group/TagGroup.d.ts +2 -0
- package/lib/src/time-picker/TimePicker.d.ts +105 -0
- package/lib/src/time-picker/localization.d.ts +4 -0
- package/lib/src/toast-group/ToastGroup.d.ts +11 -0
- package/lib/story-descriptions.js +2 -0
- package/lib/story-descriptions.js.map +1 -0
- package/lib/translation.js +1 -1
- package/lib/translation.js.map +1 -1
- package/lib/validate.js +2 -0
- package/lib/validate.js.map +1 -0
- package/lib/vue.d.ts +407 -0
- package/package.json +9 -12
- package/lib/Calendar-ChNZdVRO.js +0 -2
- package/lib/Calendar-ChNZdVRO.js.map +0 -1
- package/lib/Component-DSU3Qp0O.js +0 -2
- package/lib/Component-DSU3Qp0O.js.map +0 -1
- package/lib/DropdownItem-Cb-7cHMg.js +0 -2
- package/lib/DropdownItem-Cb-7cHMg.js.map +0 -1
- package/lib/Fieldset.js +0 -2
- package/lib/Fieldset.js.map +0 -1
- package/lib/FormAssociatedMixin-B4Qj-CQN.js +0 -2
- package/lib/FormAssociatedMixin-B4Qj-CQN.js.map +0 -1
- package/lib/FormField-BFaVzUjk.js +0 -2
- package/lib/FormField-BFaVzUjk.js.map +0 -1
- package/lib/NavToggle-DzKbd-El.js +0 -2
- package/lib/NavToggle-DzKbd-El.js.map +0 -1
- package/lib/Popout-CYqn_dZu.js +0 -2
- package/lib/Popout-CYqn_dZu.js.map +0 -1
- package/lib/Sticky-DqnqENYN.js +0 -2
- package/lib/Sticky-DqnqENYN.js.map +0 -1
- package/lib/TextField-B955GOhe.js +0 -2
- package/lib/TextField-B955GOhe.js.map +0 -1
- package/lib/dates-CAAlPKZi.js +0 -2
- package/lib/dates-CAAlPKZi.js.map +0 -1
package/lib/react.d.ts
CHANGED
|
@@ -13,6 +13,36 @@ type MapEvents<T> = {
|
|
|
13
13
|
declare module "react" {
|
|
14
14
|
namespace JSX {
|
|
15
15
|
interface IntrinsicElements {
|
|
16
|
+
"nord-accordion": WCProps<Components.Accordion> &
|
|
17
|
+
React.RefAttributes<Components.Accordion> &
|
|
18
|
+
React.HTMLAttributes<HTMLElement> &
|
|
19
|
+
React.Attributes & {
|
|
20
|
+
/**
|
|
21
|
+
* Dispatched when an item is expanded or collapsed. The event includes a `value` array of the currently open item values.
|
|
22
|
+
*/
|
|
23
|
+
onchange?: (event: Event) => void;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
"nord-accordion-header": WCProps<Components.AccordionHeader> &
|
|
27
|
+
React.RefAttributes<Components.AccordionHeader> &
|
|
28
|
+
React.HTMLAttributes<HTMLElement> &
|
|
29
|
+
React.Attributes & {};
|
|
30
|
+
|
|
31
|
+
"nord-accordion-item": WCProps<Components.AccordionItem> &
|
|
32
|
+
React.RefAttributes<Components.AccordionItem> &
|
|
33
|
+
React.HTMLAttributes<HTMLElement> &
|
|
34
|
+
React.Attributes & {};
|
|
35
|
+
|
|
36
|
+
"nord-accordion-panel": WCProps<Components.AccordionPanel> &
|
|
37
|
+
React.RefAttributes<Components.AccordionPanel> &
|
|
38
|
+
React.HTMLAttributes<HTMLElement> &
|
|
39
|
+
React.Attributes & {};
|
|
40
|
+
|
|
41
|
+
"nord-accordion-trigger": WCProps<Components.AccordionTrigger> &
|
|
42
|
+
React.RefAttributes<Components.AccordionTrigger> &
|
|
43
|
+
React.HTMLAttributes<HTMLElement> &
|
|
44
|
+
React.Attributes & {};
|
|
45
|
+
|
|
16
46
|
"nord-aside": WCProps<Components.Aside> &
|
|
17
47
|
React.RefAttributes<Components.Aside> &
|
|
18
48
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -58,6 +88,36 @@ declare module "react" {
|
|
|
58
88
|
React.HTMLAttributes<HTMLElement> &
|
|
59
89
|
React.Attributes & {};
|
|
60
90
|
|
|
91
|
+
"nord-autocomplete": WCProps<Components.Autocomplete> &
|
|
92
|
+
React.RefAttributes<Components.Autocomplete> &
|
|
93
|
+
React.HTMLAttributes<HTMLElement> &
|
|
94
|
+
React.Attributes & {
|
|
95
|
+
/**
|
|
96
|
+
* Dispatched when the committed value changes via user interaction.
|
|
97
|
+
*/
|
|
98
|
+
onchange?: (event: Event) => void;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Dispatched when the value is cleared via the clear button or `clear()`.
|
|
102
|
+
*/
|
|
103
|
+
onclear?: (event: Event) => void;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Dispatched when the listbox is closed.
|
|
107
|
+
*/
|
|
108
|
+
onclose?: (event: Event) => void;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Dispatched as the user types into the input.
|
|
112
|
+
*/
|
|
113
|
+
oninput?: (event: Event) => void;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Dispatched when the listbox is opened.
|
|
117
|
+
*/
|
|
118
|
+
onopen?: (event: Event) => void;
|
|
119
|
+
};
|
|
120
|
+
|
|
61
121
|
"nord-avatar": WCProps<Components.Avatar> &
|
|
62
122
|
React.RefAttributes<Components.Avatar> &
|
|
63
123
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -96,6 +156,11 @@ declare module "react" {
|
|
|
96
156
|
* Dispatched when the calendar's focused date changes.
|
|
97
157
|
*/
|
|
98
158
|
"onnord-focus-date"?: (event: Event) => void;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Dispatched in `range` mode when a complete range (start and end) has been selected.
|
|
162
|
+
*/
|
|
163
|
+
"onrange-change"?: (event: Event) => void;
|
|
99
164
|
};
|
|
100
165
|
|
|
101
166
|
"nord-card": WCProps<Components.Card> &
|
|
@@ -118,6 +183,71 @@ declare module "react" {
|
|
|
118
183
|
oninput?: (event: Event) => void;
|
|
119
184
|
};
|
|
120
185
|
|
|
186
|
+
"nord-collapsible": WCProps<Components.Collapsible> &
|
|
187
|
+
React.RefAttributes<Components.Collapsible> &
|
|
188
|
+
React.HTMLAttributes<HTMLElement> &
|
|
189
|
+
React.Attributes & {
|
|
190
|
+
/**
|
|
191
|
+
* Dispatched when the collapsible is opened or closed. The event includes an `open` property reflecting the new state.
|
|
192
|
+
*/
|
|
193
|
+
ontoggle?: (event: Event) => void;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
"nord-collapsible-panel": WCProps<Components.CollapsiblePanel> &
|
|
197
|
+
React.RefAttributes<Components.CollapsiblePanel> &
|
|
198
|
+
React.HTMLAttributes<HTMLElement> &
|
|
199
|
+
React.Attributes & {};
|
|
200
|
+
|
|
201
|
+
"nord-collapsible-trigger": WCProps<Components.CollapsibleTrigger> &
|
|
202
|
+
React.RefAttributes<Components.CollapsibleTrigger> &
|
|
203
|
+
React.HTMLAttributes<HTMLElement> &
|
|
204
|
+
React.Attributes & {};
|
|
205
|
+
|
|
206
|
+
"nord-combobox": WCProps<Components.Combobox> &
|
|
207
|
+
React.RefAttributes<Components.Combobox> &
|
|
208
|
+
React.HTMLAttributes<HTMLElement> &
|
|
209
|
+
React.Attributes & {
|
|
210
|
+
/**
|
|
211
|
+
* Dispatched when the committed value changes via user interaction.
|
|
212
|
+
*/
|
|
213
|
+
onchange?: (event: Event) => void;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Dispatched when the value is cleared via the clear button or `clear()`.
|
|
217
|
+
*/
|
|
218
|
+
onclear?: (event: Event) => void;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Dispatched when the listbox is closed.
|
|
222
|
+
*/
|
|
223
|
+
onclose?: (event: Event) => void;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Dispatched when the user chooses the "Create" affordance in a `creatable` combobox.
|
|
227
|
+
*/
|
|
228
|
+
oncreate?: (event: Event) => void;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Dispatched as the user types into the search input.
|
|
232
|
+
*/
|
|
233
|
+
oninput?: (event: Event) => void;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Dispatched when the listbox is opened.
|
|
237
|
+
*/
|
|
238
|
+
onopen?: (event: Event) => void;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
"nord-combobox-group": WCProps<Components.ComboboxGroup> &
|
|
242
|
+
React.RefAttributes<Components.ComboboxGroup> &
|
|
243
|
+
React.HTMLAttributes<HTMLElement> &
|
|
244
|
+
React.Attributes & {};
|
|
245
|
+
|
|
246
|
+
"nord-combobox-option": WCProps<Components.ComboboxOption> &
|
|
247
|
+
React.RefAttributes<Components.ComboboxOption> &
|
|
248
|
+
React.HTMLAttributes<HTMLElement> &
|
|
249
|
+
React.Attributes & {};
|
|
250
|
+
|
|
121
251
|
"nord-command-menu": WCProps<Components.CommandMenu> &
|
|
122
252
|
React.RefAttributes<Components.CommandMenu> &
|
|
123
253
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -173,6 +303,31 @@ declare module "react" {
|
|
|
173
303
|
onopen?: (event: Event) => void;
|
|
174
304
|
};
|
|
175
305
|
|
|
306
|
+
"nord-date-range-picker": WCProps<Components.DateRangePicker> &
|
|
307
|
+
React.RefAttributes<Components.DateRangePicker> &
|
|
308
|
+
React.HTMLAttributes<HTMLElement> &
|
|
309
|
+
React.Attributes & {
|
|
310
|
+
/**
|
|
311
|
+
* Dispatched when the committed range changes (Apply or Clear).
|
|
312
|
+
*/
|
|
313
|
+
onchange?: (event: Event) => void;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Dispatched when the popout is closed.
|
|
317
|
+
*/
|
|
318
|
+
onclose?: (event: Event) => void;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Dispatched live as the pending range changes inside the popout.
|
|
322
|
+
*/
|
|
323
|
+
oninput?: (event: Event) => void;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Dispatched when the popout is opened.
|
|
327
|
+
*/
|
|
328
|
+
onopen?: (event: Event) => void;
|
|
329
|
+
};
|
|
330
|
+
|
|
176
331
|
"nord-divider": WCProps<Components.Divider> &
|
|
177
332
|
React.RefAttributes<Components.Divider> &
|
|
178
333
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -233,11 +388,206 @@ declare module "react" {
|
|
|
233
388
|
React.HTMLAttributes<HTMLElement> &
|
|
234
389
|
React.Attributes & {};
|
|
235
390
|
|
|
391
|
+
"nord-field": WCProps<Components.Field> &
|
|
392
|
+
React.RefAttributes<Components.Field> &
|
|
393
|
+
React.HTMLAttributes<HTMLElement> &
|
|
394
|
+
React.Attributes & {};
|
|
395
|
+
|
|
396
|
+
"nord-field-content": WCProps<Components.FieldContent> &
|
|
397
|
+
React.RefAttributes<Components.FieldContent> &
|
|
398
|
+
React.HTMLAttributes<HTMLElement> &
|
|
399
|
+
React.Attributes & {};
|
|
400
|
+
|
|
401
|
+
"nord-field-description": WCProps<Components.FieldDescription> &
|
|
402
|
+
React.RefAttributes<Components.FieldDescription> &
|
|
403
|
+
React.HTMLAttributes<HTMLElement> &
|
|
404
|
+
React.Attributes & {};
|
|
405
|
+
|
|
406
|
+
"nord-field-error": WCProps<Components.FieldError> &
|
|
407
|
+
React.RefAttributes<Components.FieldError> &
|
|
408
|
+
React.HTMLAttributes<HTMLElement> &
|
|
409
|
+
React.Attributes & {};
|
|
410
|
+
|
|
411
|
+
"nord-field-group": WCProps<Components.FieldGroup> &
|
|
412
|
+
React.RefAttributes<Components.FieldGroup> &
|
|
413
|
+
React.HTMLAttributes<HTMLElement> &
|
|
414
|
+
React.Attributes & {};
|
|
415
|
+
|
|
416
|
+
"nord-field-label": WCProps<Components.FieldLabel> &
|
|
417
|
+
React.RefAttributes<Components.FieldLabel> &
|
|
418
|
+
React.HTMLAttributes<HTMLElement> &
|
|
419
|
+
React.Attributes & {};
|
|
420
|
+
|
|
421
|
+
"nord-field-legend": WCProps<Components.FieldLegend> &
|
|
422
|
+
React.RefAttributes<Components.FieldLegend> &
|
|
423
|
+
React.HTMLAttributes<HTMLElement> &
|
|
424
|
+
React.Attributes & {};
|
|
425
|
+
|
|
426
|
+
"nord-field-separator": WCProps<Components.FieldSeparator> &
|
|
427
|
+
React.RefAttributes<Components.FieldSeparator> &
|
|
428
|
+
React.HTMLAttributes<HTMLElement> &
|
|
429
|
+
React.Attributes & {};
|
|
430
|
+
|
|
236
431
|
"nord-fieldset": WCProps<Components.Fieldset> &
|
|
237
432
|
React.RefAttributes<Components.Fieldset> &
|
|
238
433
|
React.HTMLAttributes<HTMLElement> &
|
|
239
434
|
React.Attributes & {};
|
|
240
435
|
|
|
436
|
+
"nord-field-set": WCProps<Components.FieldSet> &
|
|
437
|
+
React.RefAttributes<Components.FieldSet> &
|
|
438
|
+
React.HTMLAttributes<HTMLElement> &
|
|
439
|
+
React.Attributes & {};
|
|
440
|
+
|
|
441
|
+
"nord-field-title": WCProps<Components.FieldTitle> &
|
|
442
|
+
React.RefAttributes<Components.FieldTitle> &
|
|
443
|
+
React.HTMLAttributes<HTMLElement> &
|
|
444
|
+
React.Attributes & {};
|
|
445
|
+
|
|
446
|
+
"nord-filter-add-button": WCProps<Components.FilterAddButton> &
|
|
447
|
+
React.RefAttributes<Components.FilterAddButton> &
|
|
448
|
+
React.HTMLAttributes<HTMLElement> &
|
|
449
|
+
React.Attributes & {
|
|
450
|
+
/**
|
|
451
|
+
* Dispatched when the popout is closed.
|
|
452
|
+
*/
|
|
453
|
+
onclose?: (event: Event) => void;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Dispatched when the popout is opened.
|
|
457
|
+
*/
|
|
458
|
+
onopen?: (event: Event) => void;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Dispatched with the chosen option's `id` when an option is selected.
|
|
462
|
+
*/
|
|
463
|
+
onselect?: (event: Event) => void;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
"nord-filter-bar": WCProps<Components.FilterBar> &
|
|
467
|
+
React.RefAttributes<Components.FilterBar> &
|
|
468
|
+
React.HTMLAttributes<HTMLElement> &
|
|
469
|
+
React.Attributes & {};
|
|
470
|
+
|
|
471
|
+
"nord-filter-date-range": WCProps<Components.FilterDateRange> &
|
|
472
|
+
React.RefAttributes<Components.FilterDateRange> &
|
|
473
|
+
React.HTMLAttributes<HTMLElement> &
|
|
474
|
+
React.Attributes & {
|
|
475
|
+
/**
|
|
476
|
+
* Dispatched when the committed range changes (Apply or clear).
|
|
477
|
+
*/
|
|
478
|
+
onchange?: (event: Event) => void;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Dispatched when the chip's clear affordance is pressed.
|
|
482
|
+
*/
|
|
483
|
+
onclear?: (event: Event) => void;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Dispatched when the popout is closed.
|
|
487
|
+
*/
|
|
488
|
+
onclose?: (event: Event) => void;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Dispatched when the popout is opened.
|
|
492
|
+
*/
|
|
493
|
+
onopen?: (event: Event) => void;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Dispatched when the chip's remove affordance is pressed.
|
|
497
|
+
*/
|
|
498
|
+
onremove?: (event: Event) => void;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
"nord-filter-dropdown": WCProps<Components.FilterDropdown> &
|
|
502
|
+
React.RefAttributes<Components.FilterDropdown> &
|
|
503
|
+
React.HTMLAttributes<HTMLElement> &
|
|
504
|
+
React.Attributes & {
|
|
505
|
+
/**
|
|
506
|
+
* Dispatched when the committed selection changes via user interaction.
|
|
507
|
+
*/
|
|
508
|
+
onchange?: (event: Event) => void;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Dispatched when the selection is cleared, before `change`.
|
|
512
|
+
*/
|
|
513
|
+
onclear?: (event: Event) => void;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Dispatched when the popout is closed.
|
|
517
|
+
*/
|
|
518
|
+
onclose?: (event: Event) => void;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Dispatched when the list is scrolled near its end (infinite scroll).
|
|
522
|
+
*/
|
|
523
|
+
"onload-more"?: (event: Event) => void;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Dispatched when the popout is opened.
|
|
527
|
+
*/
|
|
528
|
+
onopen?: (event: Event) => void;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Dispatched when the filter is removed (only when `removable`).
|
|
532
|
+
*/
|
|
533
|
+
onremove?: (event: Event) => void;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Dispatched as the user types when `searchable` (use with `internal-search="false"` for async search).
|
|
537
|
+
*/
|
|
538
|
+
"onsearch-change"?: (event: Event) => void;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
"nord-filter-field": WCProps<Components.FilterField> &
|
|
542
|
+
React.RefAttributes<Components.FilterField> &
|
|
543
|
+
React.HTMLAttributes<HTMLElement> &
|
|
544
|
+
React.Attributes & {
|
|
545
|
+
/**
|
|
546
|
+
* Dispatched when the clear affordance is pressed.
|
|
547
|
+
*/
|
|
548
|
+
onclear?: (event: Event) => void;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Dispatched when the remove affordance is pressed.
|
|
552
|
+
*/
|
|
553
|
+
onremove?: (event: Event) => void;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
"nord-filter-input": WCProps<Components.FilterInput> &
|
|
557
|
+
React.RefAttributes<Components.FilterInput> &
|
|
558
|
+
React.HTMLAttributes<HTMLElement> &
|
|
559
|
+
React.Attributes & {
|
|
560
|
+
/**
|
|
561
|
+
* Dispatched when the value is committed.
|
|
562
|
+
*/
|
|
563
|
+
onchange?: (event: Event) => void;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Dispatched when the chip-mode popout is closed.
|
|
567
|
+
*/
|
|
568
|
+
onclose?: (event: Event) => void;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Dispatched as the user types into the input.
|
|
572
|
+
*/
|
|
573
|
+
oninput?: (event: Event) => void;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Dispatched when the chip-mode popout is opened.
|
|
577
|
+
*/
|
|
578
|
+
onopen?: (event: Event) => void;
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
"nord-filter-reset-button": WCProps<Components.FilterResetButton> &
|
|
582
|
+
React.RefAttributes<Components.FilterResetButton> &
|
|
583
|
+
React.HTMLAttributes<HTMLElement> &
|
|
584
|
+
React.Attributes & {
|
|
585
|
+
/**
|
|
586
|
+
* Dispatched when the button is pressed to clear all active filters.
|
|
587
|
+
*/
|
|
588
|
+
onreset?: (event: Event) => void;
|
|
589
|
+
};
|
|
590
|
+
|
|
241
591
|
"nord-footer": WCProps<Components.Footer> &
|
|
242
592
|
React.RefAttributes<Components.Footer> &
|
|
243
593
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -273,6 +623,66 @@ declare module "react" {
|
|
|
273
623
|
onselect?: (event: Event) => void;
|
|
274
624
|
};
|
|
275
625
|
|
|
626
|
+
"nord-item": WCProps<Components.Item> &
|
|
627
|
+
React.RefAttributes<Components.Item> &
|
|
628
|
+
React.HTMLAttributes<HTMLElement> &
|
|
629
|
+
React.Attributes & {};
|
|
630
|
+
|
|
631
|
+
"nord-item-actions": WCProps<Components.ItemActions> &
|
|
632
|
+
React.RefAttributes<Components.ItemActions> &
|
|
633
|
+
React.HTMLAttributes<HTMLElement> &
|
|
634
|
+
React.Attributes & {};
|
|
635
|
+
|
|
636
|
+
"nord-item-content": WCProps<Components.ItemContent> &
|
|
637
|
+
React.RefAttributes<Components.ItemContent> &
|
|
638
|
+
React.HTMLAttributes<HTMLElement> &
|
|
639
|
+
React.Attributes & {};
|
|
640
|
+
|
|
641
|
+
"nord-item-description": WCProps<Components.ItemDescription> &
|
|
642
|
+
React.RefAttributes<Components.ItemDescription> &
|
|
643
|
+
React.HTMLAttributes<HTMLElement> &
|
|
644
|
+
React.Attributes & {};
|
|
645
|
+
|
|
646
|
+
"nord-item-footer": WCProps<Components.ItemFooter> &
|
|
647
|
+
React.RefAttributes<Components.ItemFooter> &
|
|
648
|
+
React.HTMLAttributes<HTMLElement> &
|
|
649
|
+
React.Attributes & {};
|
|
650
|
+
|
|
651
|
+
"nord-item-group": WCProps<Components.ItemGroup> &
|
|
652
|
+
React.RefAttributes<Components.ItemGroup> &
|
|
653
|
+
React.HTMLAttributes<HTMLElement> &
|
|
654
|
+
React.Attributes & {};
|
|
655
|
+
|
|
656
|
+
"nord-item-header": WCProps<Components.ItemHeader> &
|
|
657
|
+
React.RefAttributes<Components.ItemHeader> &
|
|
658
|
+
React.HTMLAttributes<HTMLElement> &
|
|
659
|
+
React.Attributes & {};
|
|
660
|
+
|
|
661
|
+
"nord-item-media": WCProps<Components.ItemMedia> &
|
|
662
|
+
React.RefAttributes<Components.ItemMedia> &
|
|
663
|
+
React.HTMLAttributes<HTMLElement> &
|
|
664
|
+
React.Attributes & {};
|
|
665
|
+
|
|
666
|
+
"nord-item-separator": WCProps<Components.ItemSeparator> &
|
|
667
|
+
React.RefAttributes<Components.ItemSeparator> &
|
|
668
|
+
React.HTMLAttributes<HTMLElement> &
|
|
669
|
+
React.Attributes & {};
|
|
670
|
+
|
|
671
|
+
"nord-item-title": WCProps<Components.ItemTitle> &
|
|
672
|
+
React.RefAttributes<Components.ItemTitle> &
|
|
673
|
+
React.HTMLAttributes<HTMLElement> &
|
|
674
|
+
React.Attributes & {};
|
|
675
|
+
|
|
676
|
+
"nord-kbd": WCProps<Components.Kbd> &
|
|
677
|
+
React.RefAttributes<Components.Kbd> &
|
|
678
|
+
React.HTMLAttributes<HTMLElement> &
|
|
679
|
+
React.Attributes & {};
|
|
680
|
+
|
|
681
|
+
"nord-kbd-group": WCProps<Components.KbdGroup> &
|
|
682
|
+
React.RefAttributes<Components.KbdGroup> &
|
|
683
|
+
React.HTMLAttributes<HTMLElement> &
|
|
684
|
+
React.Attributes & {};
|
|
685
|
+
|
|
276
686
|
"nord-layout": WCProps<Components.Layout> &
|
|
277
687
|
React.RefAttributes<Components.Layout> &
|
|
278
688
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -293,6 +703,11 @@ declare module "react" {
|
|
|
293
703
|
React.HTMLAttributes<HTMLElement> &
|
|
294
704
|
React.Attributes & {};
|
|
295
705
|
|
|
706
|
+
"nord-meter": WCProps<Components.Meter> &
|
|
707
|
+
React.RefAttributes<Components.Meter> &
|
|
708
|
+
React.HTMLAttributes<HTMLElement> &
|
|
709
|
+
React.Attributes & {};
|
|
710
|
+
|
|
296
711
|
"nord-modal": WCProps<Components.Modal> &
|
|
297
712
|
React.RefAttributes<Components.Modal> &
|
|
298
713
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -378,6 +793,81 @@ declare module "react" {
|
|
|
378
793
|
ondismiss?: (event: Event) => void;
|
|
379
794
|
};
|
|
380
795
|
|
|
796
|
+
"nord-number-field": WCProps<Components.NumberField> &
|
|
797
|
+
React.RefAttributes<Components.NumberField> &
|
|
798
|
+
React.HTMLAttributes<HTMLElement> &
|
|
799
|
+
React.Attributes & {
|
|
800
|
+
/**
|
|
801
|
+
* Dispatched when the value is committed (on blur, keyboard step, or pointer-up after a button hold or scrub). Carries the numeric value and a `reason`.
|
|
802
|
+
*/
|
|
803
|
+
onchange?: (event: Event) => void;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Dispatched as the value changes during interaction (typing a parseable value, clearing, each step, each button tick, each wheel notch, each scrub increment).
|
|
807
|
+
*/
|
|
808
|
+
oninput?: (event: Event) => void;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
"nord-otp-field": WCProps<Components.OtpField> &
|
|
812
|
+
React.RefAttributes<Components.OtpField> &
|
|
813
|
+
React.HTMLAttributes<HTMLElement> &
|
|
814
|
+
React.Attributes & {
|
|
815
|
+
/**
|
|
816
|
+
* Dispatched alongside `input` when the committed value changes via user interaction.
|
|
817
|
+
*/
|
|
818
|
+
onchange?: (event: Event) => void;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Dispatched after the value updates when every cell becomes filled.
|
|
822
|
+
*/
|
|
823
|
+
oncomplete?: (event: Event) => void;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Dispatched whenever the OTP value changes through user interaction (typing, Backspace/Delete, paste, autofill).
|
|
827
|
+
*/
|
|
828
|
+
oninput?: (event: Event) => void;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Dispatched when typed or pasted text contained characters rejected by `type`.
|
|
832
|
+
*/
|
|
833
|
+
"onvalue-invalid"?: (event: Event) => void;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
"nord-pagination": WCProps<Components.Pagination> &
|
|
837
|
+
React.RefAttributes<Components.Pagination> &
|
|
838
|
+
React.HTMLAttributes<HTMLElement> &
|
|
839
|
+
React.Attributes & {};
|
|
840
|
+
|
|
841
|
+
"nord-pagination-content": WCProps<Components.PaginationContent> &
|
|
842
|
+
React.RefAttributes<Components.PaginationContent> &
|
|
843
|
+
React.HTMLAttributes<HTMLElement> &
|
|
844
|
+
React.Attributes & {};
|
|
845
|
+
|
|
846
|
+
"nord-pagination-ellipsis": WCProps<Components.PaginationEllipsis> &
|
|
847
|
+
React.RefAttributes<Components.PaginationEllipsis> &
|
|
848
|
+
React.HTMLAttributes<HTMLElement> &
|
|
849
|
+
React.Attributes & {};
|
|
850
|
+
|
|
851
|
+
"nord-pagination-item": WCProps<Components.PaginationItem> &
|
|
852
|
+
React.RefAttributes<Components.PaginationItem> &
|
|
853
|
+
React.HTMLAttributes<HTMLElement> &
|
|
854
|
+
React.Attributes & {};
|
|
855
|
+
|
|
856
|
+
"nord-pagination-link": WCProps<Components.PaginationLink> &
|
|
857
|
+
React.RefAttributes<Components.PaginationLink> &
|
|
858
|
+
React.HTMLAttributes<HTMLElement> &
|
|
859
|
+
React.Attributes & {};
|
|
860
|
+
|
|
861
|
+
"nord-pagination-next": WCProps<Components.PaginationNext> &
|
|
862
|
+
React.RefAttributes<Components.PaginationNext> &
|
|
863
|
+
React.HTMLAttributes<HTMLElement> &
|
|
864
|
+
React.Attributes & {};
|
|
865
|
+
|
|
866
|
+
"nord-pagination-previous": WCProps<Components.PaginationPrevious> &
|
|
867
|
+
React.RefAttributes<Components.PaginationPrevious> &
|
|
868
|
+
React.HTMLAttributes<HTMLElement> &
|
|
869
|
+
React.Attributes & {};
|
|
870
|
+
|
|
381
871
|
"nord-popout": WCProps<Components.Popout> &
|
|
382
872
|
React.RefAttributes<Components.Popout> &
|
|
383
873
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -438,6 +928,11 @@ declare module "react" {
|
|
|
438
928
|
oninput?: (event: Event) => void;
|
|
439
929
|
};
|
|
440
930
|
|
|
931
|
+
"nord-scroll-area": WCProps<Components.ScrollArea> &
|
|
932
|
+
React.RefAttributes<Components.ScrollArea> &
|
|
933
|
+
React.HTMLAttributes<HTMLElement> &
|
|
934
|
+
React.Attributes & {};
|
|
935
|
+
|
|
441
936
|
"nord-segmented-control": WCProps<Components.SegmentedControl> &
|
|
442
937
|
React.RefAttributes<Components.SegmentedControl> &
|
|
443
938
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -563,6 +1058,16 @@ declare module "react" {
|
|
|
563
1058
|
onselect?: (event: Event) => void;
|
|
564
1059
|
};
|
|
565
1060
|
|
|
1061
|
+
"nord-time-picker": WCProps<Components.TimePicker> &
|
|
1062
|
+
React.RefAttributes<Components.TimePicker> &
|
|
1063
|
+
React.HTMLAttributes<HTMLElement> &
|
|
1064
|
+
React.Attributes & {
|
|
1065
|
+
/**
|
|
1066
|
+
* Fired when the selected time changes.
|
|
1067
|
+
*/
|
|
1068
|
+
onchange?: (event: Event) => void;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
566
1071
|
"nord-toast": WCProps<Components.Toast> &
|
|
567
1072
|
React.RefAttributes<Components.Toast> &
|
|
568
1073
|
React.HTMLAttributes<HTMLElement> &
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { NordEvent } from '../common/events.js';
|
|
3
|
+
/**
|
|
4
|
+
* Event dispatched when the set of open accordion items changes.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AccordionChangeEvent extends NordEvent {
|
|
7
|
+
value: string[];
|
|
8
|
+
constructor(value: string[]);
|
|
9
|
+
}
|
|
10
|
+
declare const Accordion_base: typeof LitElement;
|
|
11
|
+
/**
|
|
12
|
+
* Accordion is a set of collapsible sections, each with a header that toggles
|
|
13
|
+
* the visibility of its content. It coordinates a group of
|
|
14
|
+
* [Accordion Item](/components/accordion-item/) elements, keyboard focus
|
|
15
|
+
* movement between them, and which items are open.
|
|
16
|
+
*
|
|
17
|
+
* @status draft
|
|
18
|
+
* @category structure
|
|
19
|
+
* @lightDom true
|
|
20
|
+
*
|
|
21
|
+
* @slot - Default slot for [Accordion Item](/components/accordion-item/) elements.
|
|
22
|
+
*
|
|
23
|
+
* @fires {AccordionChangeEvent} change - Dispatched when an item is expanded or collapsed. The event includes a `value` array of the currently open item values.
|
|
24
|
+
*
|
|
25
|
+
* @cssprop --n-accordion-item-gap - Spacing between accordion items.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* `value` is the source of truth as an array property. The `value` attribute is
|
|
29
|
+
* only read as a comma-separated seed: it is adopted on connect and again
|
|
30
|
+
* whenever the attribute is set (e.g. `el.setAttribute('value', 'a,b')`), but it
|
|
31
|
+
* is **not** reflected back to the DOM as the open set changes via interaction.
|
|
32
|
+
* Read `accordion.value` (the property) to get the current open set; do not rely
|
|
33
|
+
* on the `value` attribute staying in sync after the user interacts.
|
|
34
|
+
*/
|
|
35
|
+
export default class Accordion extends Accordion_base {
|
|
36
|
+
static get observedAttributes(): string[];
|
|
37
|
+
private accordionId;
|
|
38
|
+
private direction;
|
|
39
|
+
private rovingFocus;
|
|
40
|
+
private childObserver?;
|
|
41
|
+
private setupScheduled;
|
|
42
|
+
/**
|
|
43
|
+
* Whether multiple items can be open at the same time.
|
|
44
|
+
*/
|
|
45
|
+
multiple: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the component should ignore user interaction.
|
|
48
|
+
*/
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The visual orientation of the accordion. Controls whether roving focus uses
|
|
52
|
+
* left/right or up/down arrow keys.
|
|
53
|
+
*/
|
|
54
|
+
orientation: 'vertical' | 'horizontal';
|
|
55
|
+
/**
|
|
56
|
+
* Whether to loop keyboard focus back to the first item when the end of the
|
|
57
|
+
* list is reached while using the arrow keys.
|
|
58
|
+
*/
|
|
59
|
+
loopFocus: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* The value(s) of the item(s) that are open. Assign an array via the property,
|
|
62
|
+
* or provide an initial comma-separated `value="a,b"` attribute.
|
|
63
|
+
*/
|
|
64
|
+
value: string[];
|
|
65
|
+
connectedCallback(): void;
|
|
66
|
+
disconnectedCallback(): void;
|
|
67
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
68
|
+
/**
|
|
69
|
+
* Seed the open set from a `value="a,b"` attribute the first time we connect.
|
|
70
|
+
* The property is the source of truth thereafter.
|
|
71
|
+
*/
|
|
72
|
+
private adoptValueAttribute;
|
|
73
|
+
/**
|
|
74
|
+
* Watch for items being added, removed, or reordered so newly slotted items
|
|
75
|
+
* get wired up (ids / ARIA / open-state). Re-runs `setup()` deferred to a
|
|
76
|
+
* microtask to avoid measuring/reflecting mid-mutation (reflection race).
|
|
77
|
+
*/
|
|
78
|
+
private observeChildren;
|
|
79
|
+
private scheduleSetup;
|
|
80
|
+
protected createRenderRoot(): this;
|
|
81
|
+
private get items();
|
|
82
|
+
/**
|
|
83
|
+
* If no `value` was provided but items declare `open`, adopt those as the
|
|
84
|
+
* initial open set (mirrors `defaultValue` from open items).
|
|
85
|
+
*/
|
|
86
|
+
private seedDefaultValue;
|
|
87
|
+
/**
|
|
88
|
+
* Wire up ids and ARIA relationships, delegate trigger activation, and reflect
|
|
89
|
+
* the open state of every item.
|
|
90
|
+
*/
|
|
91
|
+
private setup;
|
|
92
|
+
private itemIdCount;
|
|
93
|
+
protected handleValueChange(oldValue: string[] | undefined): void;
|
|
94
|
+
protected handleDisabledChange(): void;
|
|
95
|
+
/**
|
|
96
|
+
* Reflect the current open set onto every item.
|
|
97
|
+
*/
|
|
98
|
+
private syncState;
|
|
99
|
+
/**
|
|
100
|
+
* Open or close a single item, respecting the `multiple` setting.
|
|
101
|
+
*/
|
|
102
|
+
private setItemOpen;
|
|
103
|
+
/**
|
|
104
|
+
* Toggle an item when its trigger is activated. Called directly by the
|
|
105
|
+
* [Accordion Trigger](/components/accordion-trigger/).
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
activateTrigger(trigger: HTMLElement): void;
|
|
109
|
+
/**
|
|
110
|
+
* Move keyboard focus between triggers. Called by triggers on arrow/Home/End.
|
|
111
|
+
* The focused trigger is the current item, so the shared roving controller
|
|
112
|
+
* resolves it from the active element.
|
|
113
|
+
*/
|
|
114
|
+
handleTriggerKeydown(event: KeyboardEvent): void;
|
|
115
|
+
}
|
|
116
|
+
declare global {
|
|
117
|
+
interface HTMLElementTagNameMap {
|
|
118
|
+
'nord-accordion': Accordion;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export {};
|