@nordhealth/components 4.26.2 → 5.0.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 +51620 -18552
- 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-D47b20IT.js +2 -0
- package/lib/Calendar-D47b20IT.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-DBxXlbY7.js +2 -0
- package/lib/Combobox-DBxXlbY7.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/KeyboardController.js +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -3
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDismissController-4pH8cdko.js → LightDismissController-wcL1ziJa.js} +2 -2
- package/lib/{LightDismissController-4pH8cdko.js.map → LightDismissController-wcL1ziJa.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/Outline.js +2 -0
- package/lib/Outline.js.map +1 -0
- package/lib/OutlineItem.js +2 -0
- package/lib/OutlineItem.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-CFtFoCaA.js +2 -0
- package/lib/Popout-CFtFoCaA.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/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/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/ShortcutController-CV5b0BZl.js +2 -0
- package/lib/ShortcutController-CV5b0BZl.js.map +1 -0
- 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/VisuallyHidden.js.map +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/localization23.js +2 -0
- package/lib/localization23.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 +520 -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 +48 -0
- package/lib/src/aside/Aside.d.ts +1 -1
- package/lib/src/aside-drawer/AsideDrawer.d.ts +3 -1
- 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/avatar/Avatar.d.ts +1 -1
- 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 +45 -1
- package/lib/src/calendar/DateRangeSelectEvent.d.ts +16 -0
- package/lib/src/card/Card.d.ts +1 -1
- 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/ShortcutController.d.ts +5 -5
- 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/divider/Divider.d.ts +1 -1
- package/lib/src/drawer/Drawer.d.ts +1 -1
- 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/footer/Footer.d.ts +1 -1
- package/lib/src/header/Header.d.ts +1 -1
- package/lib/src/icon/Icon.d.ts +1 -1
- package/lib/src/index.d.ts +61 -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 +3 -3
- package/lib/src/localization/en-us.d.ts +88 -0
- package/lib/src/localization/translation.d.ts +88 -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 +188 -0
- package/lib/src/otp-field/OtpFieldEvents.d.ts +38 -0
- package/lib/src/otp-field/localization.d.ts +4 -0
- package/lib/src/outline/Outline.d.ts +111 -0
- package/lib/src/outline/OutlineItem.d.ts +42 -0
- package/lib/src/outline/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/qrcode/Qrcode.d.ts +1 -1
- package/lib/src/scroll-area/ScrollArea.d.ts +101 -0
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +2 -0
- package/lib/src/stack/Stack.d.ts +1 -1
- 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/Tag.d.ts +1 -1
- package/lib/src/tag-group/TagGroup.d.ts +3 -1
- 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/src/top-bar/TopBar.d.ts +1 -1
- package/lib/src/truncate/Truncate.d.ts +1 -1
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/lib/story-descriptions.js +2 -0
- package/lib/story-descriptions.js.map +1 -0
- package/lib/tinykeys-DwvDXsEb.js +2 -0
- package/lib/tinykeys-DwvDXsEb.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 +418 -0
- package/package.json +10 -13
- 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/ShortcutController-BIb3WGzH.js +0 -2
- package/lib/ShortcutController-BIb3WGzH.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/tinykeys.module-_6MZt7MP.js +0 -2
- package/lib/tinykeys.module-_6MZt7MP.js.map +0 -1
|
@@ -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 container
|
|
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 {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Accordion Header is the heading that labels an
|
|
4
|
+
* [Accordion Panel](/components/accordion-panel/). Following the WAI-ARIA
|
|
5
|
+
* accordion pattern, its [Accordion Trigger](/components/accordion-trigger/)
|
|
6
|
+
* button is wrapped in a heading element.
|
|
7
|
+
*
|
|
8
|
+
* @status draft
|
|
9
|
+
* @category container
|
|
10
|
+
* @lightDom true
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for an [Accordion Trigger](/components/accordion-trigger/).
|
|
13
|
+
*/
|
|
14
|
+
export default class AccordionHeader extends LitElement {
|
|
15
|
+
/**
|
|
16
|
+
* The heading level exposed to assistive technology, matching the surrounding
|
|
17
|
+
* document outline.
|
|
18
|
+
*/
|
|
19
|
+
level: number;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
protected createRenderRoot(): this;
|
|
22
|
+
protected handleLevelChange(): void;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'nord-accordion-header': AccordionHeader;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Accordion Item groups an [Accordion Header](/components/accordion-header/) and
|
|
4
|
+
* its [Accordion Panel](/components/accordion-panel/) within an
|
|
5
|
+
* [Accordion](/components/accordion/).
|
|
6
|
+
*
|
|
7
|
+
* @status draft
|
|
8
|
+
* @category container
|
|
9
|
+
* @lightDom true
|
|
10
|
+
*
|
|
11
|
+
* @slot - Default slot for an [Accordion Header](/components/accordion-header/) and an [Accordion Panel](/components/accordion-panel/).
|
|
12
|
+
*/
|
|
13
|
+
export default class AccordionItem extends LitElement {
|
|
14
|
+
/**
|
|
15
|
+
* A unique value identifying this item within its
|
|
16
|
+
* [Accordion](/components/accordion/). Used to track which items are open.
|
|
17
|
+
*/
|
|
18
|
+
value: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether this item is open. Coordinated by the parent
|
|
21
|
+
* [Accordion](/components/accordion/).
|
|
22
|
+
*/
|
|
23
|
+
open: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether this item is disabled.
|
|
26
|
+
*/
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the parent [Accordion](/components/accordion/) is disabled. Combined
|
|
30
|
+
* with `disabled` to determine the effective disabled state. Reactive (and
|
|
31
|
+
* observed below) so toggling the parent's `disabled` after setup re-syncs the
|
|
32
|
+
* trigger's disabled/aria-disabled/tabindex.
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
parentDisabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Stable id base assigned by the parent [Accordion](/components/accordion/).
|
|
38
|
+
* Persists across re-setup so ids are never reassigned to an item that
|
|
39
|
+
* already has them.
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
partsId?: string;
|
|
43
|
+
connectedCallback(): void;
|
|
44
|
+
protected createRenderRoot(): this;
|
|
45
|
+
private get trigger();
|
|
46
|
+
private get panel();
|
|
47
|
+
private get isDisabled();
|
|
48
|
+
/**
|
|
49
|
+
* Wire up the ARIA relationship between the trigger and the panel. Called by
|
|
50
|
+
* the parent [Accordion](/components/accordion/).
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
setupParts(id: string): void;
|
|
54
|
+
protected handleOpenChange(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Synchronously push the open state (and ARIA) to the trigger and panel.
|
|
57
|
+
* Called by the parent [Accordion](/components/accordion/) and on local changes.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
propagate(): void;
|
|
61
|
+
protected handleDisabledChange(): void;
|
|
62
|
+
private updateTriggerDisabled;
|
|
63
|
+
}
|
|
64
|
+
declare global {
|
|
65
|
+
interface HTMLElementTagNameMap {
|
|
66
|
+
'nord-accordion-item': AccordionItem;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Accordion Panel holds the content revealed by its
|
|
4
|
+
* [Accordion Trigger](/components/accordion-trigger/). It must be placed inside
|
|
5
|
+
* an [Accordion Item](/components/accordion-item/) and animates its height as it
|
|
6
|
+
* opens and closes.
|
|
7
|
+
*
|
|
8
|
+
* @status draft
|
|
9
|
+
* @category container
|
|
10
|
+
* @lightDom true
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for the panel content.
|
|
13
|
+
*
|
|
14
|
+
* @attr {boolean} data-open - Present while the panel is open (or opening).
|
|
15
|
+
* @attr {boolean} data-closed - Present while the panel is closed.
|
|
16
|
+
* @attr {boolean} data-starting-style - Present for the first frame of the open transition.
|
|
17
|
+
* @attr {boolean} data-ending-style - Present while the close transition runs.
|
|
18
|
+
*
|
|
19
|
+
* @cssprop [--n-accordion-panel-height] - Set during the open/close animation to the measured content height. Read it to coordinate custom animations.
|
|
20
|
+
*/
|
|
21
|
+
export default class AccordionPanel extends LitElement {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the panel is open. Set by the parent
|
|
24
|
+
* [Accordion Item](/components/accordion-item/).
|
|
25
|
+
*/
|
|
26
|
+
open: boolean;
|
|
27
|
+
private collapse;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
protected createRenderRoot(): this;
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
'nord-accordion-panel': AccordionPanel;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Accordion Trigger is the button that opens and closes its
|
|
4
|
+
* [Accordion Panel](/components/accordion-panel/). It must be placed inside an
|
|
5
|
+
* [Accordion Header](/components/accordion-header/).
|
|
6
|
+
*
|
|
7
|
+
* @status draft
|
|
8
|
+
* @category container
|
|
9
|
+
* @lightDom true
|
|
10
|
+
*
|
|
11
|
+
* @slot - Default slot for the trigger label and an icon. The icon is the last
|
|
12
|
+
* child, so any element or web component can be used; set its size on the
|
|
13
|
+
* element itself (for example `<nord-icon size="xxs">`).
|
|
14
|
+
*
|
|
15
|
+
* @cssprop [--n-accordion-trigger-gap=var(--n-space-xs)] - The gap between the label and the icon, using our [spacing tokens](/tokens/#space).
|
|
16
|
+
*/
|
|
17
|
+
export default class AccordionTrigger extends LitElement {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the associated panel is open. Set by the parent
|
|
20
|
+
* [Accordion Item](/components/accordion-item/); reflected so it can be styled.
|
|
21
|
+
*/
|
|
22
|
+
open: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the trigger is disabled. Set by the parent
|
|
25
|
+
* [Accordion Item](/components/accordion-item/).
|
|
26
|
+
*/
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* How to justify the label and icon along the trigger. Defaults to
|
|
30
|
+
* `space-between`, pushing the icon to the far end; set `start` to sit the
|
|
31
|
+
* label and icon next to each other.
|
|
32
|
+
*/
|
|
33
|
+
justifyContent?: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
34
|
+
private focusable;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
protected createRenderRoot(): this;
|
|
38
|
+
private get accordion();
|
|
39
|
+
protected handleOpenChange(): void;
|
|
40
|
+
private activate;
|
|
41
|
+
private handleClick;
|
|
42
|
+
private handleKeydown;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
'nord-accordion-trigger': AccordionTrigger;
|
|
47
|
+
}
|
|
48
|
+
}
|
package/lib/src/aside/Aside.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare class AsideHandleModeChangeEvent extends NordEvent {
|
|
|
53
53
|
* Container for the right-side rail + drawer pattern in the app shell.
|
|
54
54
|
*
|
|
55
55
|
* @status new
|
|
56
|
-
* @category
|
|
56
|
+
* @category layout
|
|
57
57
|
* @slot rail - Free-form content placed in the rail column.
|
|
58
58
|
* @slot tooltip-divider - Tooltip anchored to the resize handle on hover.
|
|
59
59
|
* @slot - Default slot for `<nord-aside-drawer>` panels.
|
|
@@ -14,12 +14,14 @@ export declare class AsideDrawerWidthChangeEvent extends NordEvent {
|
|
|
14
14
|
* A drawer panel inside `<nord-aside>`.
|
|
15
15
|
*
|
|
16
16
|
* @status new
|
|
17
|
-
* @category
|
|
17
|
+
* @category layout
|
|
18
18
|
* @slot - Default slot. Place arbitrary drawer content here.
|
|
19
19
|
*
|
|
20
20
|
* @fires {AsideDrawerWidthChangeEvent} width-change - Dispatched when the
|
|
21
21
|
* drawer's width changes. The event exposes `width` (the new applied
|
|
22
22
|
* inline-size in px) and `source` (`'drag' | 'keyboard' | 'attribute' | 'storage'`).
|
|
23
|
+
*
|
|
24
|
+
* @parent Aside
|
|
23
25
|
*/
|
|
24
26
|
export default class AsideDrawer extends LitElement {
|
|
25
27
|
static styles: import("lit").CSSResult[];
|
|
@@ -11,6 +11,8 @@ import '../tooltip/Tooltip.js';
|
|
|
11
11
|
* @slot tooltip - Overrides the tooltip body (falls back to `label`).
|
|
12
12
|
* Lets consumers add icons, shortcut hints, etc. — anything beyond the
|
|
13
13
|
* plain string label.
|
|
14
|
+
*
|
|
15
|
+
* @parent Aside
|
|
14
16
|
*/
|
|
15
17
|
export default class AsideTrigger extends LitElement {
|
|
16
18
|
static styles: import("lit").CSSResult[];
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { ComboboxOption } from '../combobox/ComboboxBase.js';
|
|
2
|
+
import { nothing } from 'lit';
|
|
3
|
+
import ComboboxBase from '../combobox/ComboboxBase.js';
|
|
4
|
+
import { LocalizeController } from '../localization/LocalizeController.js';
|
|
5
|
+
export type { ComboboxOption } from '../combobox/ComboboxBase.js';
|
|
6
|
+
export { ComboboxClearEvent } from '../combobox/ComboboxEvents.js';
|
|
7
|
+
/**
|
|
8
|
+
* Autocomplete is a free-text input with suggestions: the text the user types
|
|
9
|
+
* is itself the committed `value` (a string), and the options are completion
|
|
10
|
+
* aids. Picking a suggestion fills the input with the option's `label` and commits
|
|
11
|
+
* that label. Use it when the answer is open-ended text but you can offer
|
|
12
|
+
* helpful completions (a city, a tag, a username); reach for
|
|
13
|
+
* [Combobox](/components/combobox/) instead when the value must be one of a
|
|
14
|
+
* fixed set of options.
|
|
15
|
+
*
|
|
16
|
+
* Autocomplete is a control only — it has no built-in label, hint or error.
|
|
17
|
+
* Compose it inside a [Field](/components/field/) to give it a label, hint and
|
|
18
|
+
* error message, the same way you would a native input.
|
|
19
|
+
*
|
|
20
|
+
* Base UI parity: Autocomplete is the Combobox primitive with
|
|
21
|
+
* `selectionMode="none"` + `fillInputOnItemPress`.
|
|
22
|
+
*
|
|
23
|
+
* @status draft
|
|
24
|
+
* @category form
|
|
25
|
+
* @lightDom true
|
|
26
|
+
*
|
|
27
|
+
* @slot start - Optional slot used to place an icon or prefix at the start of the control.
|
|
28
|
+
* @slot end - Optional slot used to place an icon or suffix at the end of the control.
|
|
29
|
+
*
|
|
30
|
+
* @fires {NordEvent} change - Dispatched when the committed value changes via user interaction.
|
|
31
|
+
* @fires {NordEvent} input - Dispatched as the user types into the input.
|
|
32
|
+
* @fires {NordEvent} open - Dispatched when the listbox is opened.
|
|
33
|
+
* @fires {NordEvent} close - Dispatched when the listbox is closed.
|
|
34
|
+
* @fires {ComboboxClearEvent} clear - Dispatched when the value is cleared via the clear button or `clear()`.
|
|
35
|
+
*
|
|
36
|
+
* @localization clearLabel - Accessible label for the clear button.
|
|
37
|
+
* @localization noResults - Message shown when no options match the query.
|
|
38
|
+
*
|
|
39
|
+
* @cssprop [--n-combobox-list-inline-size] - Controls the inline size, or width, of the dropdown list. Defaults to the width of the control.
|
|
40
|
+
* @cssprop [--n-combobox-block-size] - Controls the block size, or height, of the control. The medium default is `var(--n-space-xl)`; the s and l sizes scale from it.
|
|
41
|
+
*
|
|
42
|
+
* @attr {boolean} data-invalid - Present while the control is invalid (mirrors the `invalid` property). Style hook for the whole control.
|
|
43
|
+
* @attr {boolean} data-focused - Present while the control has focus. Style hook for focus-within treatments.
|
|
44
|
+
*/
|
|
45
|
+
export default class Autocomplete extends ComboboxBase {
|
|
46
|
+
/**
|
|
47
|
+
* The value of the autocomplete. This is the free text the user has typed (or
|
|
48
|
+
* the `label` of a picked suggestion) — always a single string.
|
|
49
|
+
*/
|
|
50
|
+
value: string;
|
|
51
|
+
/**
|
|
52
|
+
* Enables inline ghost-text completion. While an option is highlighted with
|
|
53
|
+
* the keyboard, the input shows the typed query followed by the remainder of
|
|
54
|
+
* the highlighted option's label, with that remainder text-selected so
|
|
55
|
+
* continued typing overwrites it. Accepting (Enter, ArrowRight/End at the end
|
|
56
|
+
* of the text, or an option click) commits the full label.
|
|
57
|
+
*/
|
|
58
|
+
inline: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Shows a clear (✕) button while there is text. Pressing it resets the value
|
|
61
|
+
* to `''`, then fires `clear` and `change`.
|
|
62
|
+
*/
|
|
63
|
+
clearable: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether clicking the input opens the suggestion list. Defaults to `false`
|
|
66
|
+
* for autocomplete — matching Base UI's `openOnInputClick={false}`, the list
|
|
67
|
+
* appears as the user types rather than on click. Set to `true` to also open
|
|
68
|
+
* on click.
|
|
69
|
+
*/
|
|
70
|
+
openOnInputClick: boolean;
|
|
71
|
+
protected localize: LocalizeController<"nord-autocomplete">;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the active option last changed via the keyboard (arrows/Home/End)
|
|
74
|
+
* rather than pointer hover. Inline ghost completion only fills on keyboard
|
|
75
|
+
* navigation, mirroring Base UI's `keyboardActiveRef`. Reactive so toggling it
|
|
76
|
+
* (even when `activeIndex` is unchanged, e.g. a single filtered option)
|
|
77
|
+
* re-renders the ghost.
|
|
78
|
+
*/
|
|
79
|
+
private keyboardActive;
|
|
80
|
+
connectedCallback(): void;
|
|
81
|
+
/**
|
|
82
|
+
* The committed free-text `value` *is* the query, so a programmatically-set
|
|
83
|
+
* `value` (e.g. `el.value = 'fea'`) filters the open list without the user
|
|
84
|
+
* having typed, matching the text the input already displays.
|
|
85
|
+
*/
|
|
86
|
+
protected get filterQuery(): string;
|
|
87
|
+
/** The typed query an inline ghost is composed against (the committed value). */
|
|
88
|
+
private get inlineQuery();
|
|
89
|
+
/**
|
|
90
|
+
* Whether an inline ghost suffix is currently showing: only in `inline` mode,
|
|
91
|
+
* when the active option (reached via the keyboard) has a label that starts
|
|
92
|
+
* with the typed query and extends it.
|
|
93
|
+
*/
|
|
94
|
+
private get hasInlineGhost();
|
|
95
|
+
/** The text shown in the input. */
|
|
96
|
+
protected get displayValue(): string;
|
|
97
|
+
/** Free text is always present once non-empty (drives the clear affordance). */
|
|
98
|
+
protected get hasValue(): boolean;
|
|
99
|
+
protected get formValue(): string | undefined;
|
|
100
|
+
protected get showClear(): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Autocomplete is a search input with suggestions, not a picker — like Base
|
|
103
|
+
* UI's autocomplete it renders no dropdown chevron (its `AriaCombobox` has no
|
|
104
|
+
* `Trigger`). The list appears as you type, not on a toggle click.
|
|
105
|
+
*/
|
|
106
|
+
protected get showToggle(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* The `aria-autocomplete` value for the inner input, mapping the `inline` +
|
|
109
|
+
* `external-filtering` axes onto the four ARIA values:
|
|
110
|
+
* - inline + internal filter → `both`
|
|
111
|
+
* - inline + external-filtering → `inline` (static list + ghost)
|
|
112
|
+
* - external-filtering (no inline) → `none` (static list, no ghost)
|
|
113
|
+
* - otherwise → `list` (internal filter, no ghost)
|
|
114
|
+
*/
|
|
115
|
+
protected get ariaAutocomplete(): 'list' | 'both' | 'inline' | 'none';
|
|
116
|
+
/**
|
|
117
|
+
* Autocomplete renders no selection state — `aria-selected` is omitted
|
|
118
|
+
* (`optionAriaSelected` → nothing) and the check is never shown
|
|
119
|
+
* (`showCheck` → false) — so nothing is ever "selected".
|
|
120
|
+
*/
|
|
121
|
+
protected isSelected(): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Autocomplete has no selection model, so the listbox does not advertise
|
|
124
|
+
* `aria-multiselectable` at all (the base's `'false'` would imply a single-
|
|
125
|
+
* select semantic it doesn't have).
|
|
126
|
+
*/
|
|
127
|
+
protected get ariaMultiselectable(): undefined;
|
|
128
|
+
/** Autocomplete never shows the selected-check icon (it is not a select). */
|
|
129
|
+
protected showCheck(): boolean;
|
|
130
|
+
/** No selection model, so no leading check gutter (avoids indenting suggestions). */
|
|
131
|
+
protected get rendersCheck(): boolean;
|
|
132
|
+
/** Autocomplete options are completion aids, not selectable values — omit aria-selected. */
|
|
133
|
+
protected optionAriaSelected(): typeof nothing;
|
|
134
|
+
/** Autocomplete keeps its committed free-text query when the listbox closes. */
|
|
135
|
+
protected onHide(): void;
|
|
136
|
+
/** Typing commits the typed text as the live value. */
|
|
137
|
+
protected onInput(input: HTMLInputElement): void;
|
|
138
|
+
/**
|
|
139
|
+
* Runs before the base's own key switch. Marks keyboard navigation (so the
|
|
140
|
+
* inline ghost may compose) and owns the ArrowRight/End inline-accept. After
|
|
141
|
+
* an accept the listbox is closed, so the base's own `End` branch (gated on
|
|
142
|
+
* `this.open`) is skipped; the base still performs the moves for the arrows
|
|
143
|
+
* and Home.
|
|
144
|
+
*/
|
|
145
|
+
protected onKeydown(e: KeyboardEvent): void;
|
|
146
|
+
protected onMove(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Fully owns Enter when the listbox is open. An inline ghost or any
|
|
149
|
+
* highlighted option fills+commits its label; otherwise the typed text is
|
|
150
|
+
* already committed, so Enter just closes and does NOT preventDefault (the
|
|
151
|
+
* owning form may submit). Returns `true` so the base does no further handling.
|
|
152
|
+
*/
|
|
153
|
+
protected handleEnter(e: KeyboardEvent): boolean;
|
|
154
|
+
/** Whether the user has typed/committed any free text to complete against. */
|
|
155
|
+
private get hasQuery();
|
|
156
|
+
/** Pointer hover never composes an inline ghost (mirrors keyboard-vs-pointer). */
|
|
157
|
+
protected onOptionHover(): void;
|
|
158
|
+
/**
|
|
159
|
+
* Never silently commit an un-accepted inline suggestion: on blur drop the
|
|
160
|
+
* ghost suffix and restore the input to the typed query (the actual value).
|
|
161
|
+
*/
|
|
162
|
+
protected onBlur(): void;
|
|
163
|
+
/**
|
|
164
|
+
* Lit binds the inner input's `.value` to the ghost-composed string, but the
|
|
165
|
+
* suffix selection has to be applied imperatively after the DOM update so
|
|
166
|
+
* continued typing overwrites it.
|
|
167
|
+
*/
|
|
168
|
+
protected afterUpdate(): void;
|
|
169
|
+
/**
|
|
170
|
+
* Picking a suggestion is a completion aid: fill the input with its label and
|
|
171
|
+
* commit that label as the free-text value. No chips, no array, no toggle.
|
|
172
|
+
*/
|
|
173
|
+
protected selectOption(option: ComboboxOption): void;
|
|
174
|
+
/** Commit the currently ghost-highlighted option's full label (inline mode). */
|
|
175
|
+
private acceptInline;
|
|
176
|
+
/**
|
|
177
|
+
* Drop the transient inline ghost suffix, restoring the input to the typed
|
|
178
|
+
* query (the actual committed `value`). Does not change `value`.
|
|
179
|
+
*/
|
|
180
|
+
private revertInline;
|
|
181
|
+
/** A new query supersedes any inline ghost from the previous one. */
|
|
182
|
+
protected resetActiveIndex(): void;
|
|
183
|
+
/** Clear the current value, firing `clear` then `change`. */
|
|
184
|
+
clear(): void;
|
|
185
|
+
}
|
|
186
|
+
declare global {
|
|
187
|
+
interface HTMLElementTagNameMap {
|
|
188
|
+
'nord-autocomplete': Autocomplete;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -6,7 +6,7 @@ import '../icon/Icon.js';
|
|
|
6
6
|
* Default avatar illustration is displayed when no src is specified.
|
|
7
7
|
*
|
|
8
8
|
* @status ready
|
|
9
|
-
* @category
|
|
9
|
+
* @category content
|
|
10
10
|
*
|
|
11
11
|
* @cssprop [--n-avatar-color=var(--n-color-status-highlight)] - Controls the color of the avatar fallback, using [color tokens](/tokens/#color).
|
|
12
12
|
* @cssprop [--n-avatar-size=var(--n-size-icon-l)] - Controls the size of the avatar, using [icon sizing tokens](/tokens/#size).
|
package/lib/src/badge/Badge.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import '../stack/Stack.js';
|
|
2
3
|
/**
|
|
3
4
|
* Banner informs users about important changes or conditions in the
|
|
4
5
|
* interface. Use this component if you need to communicate to users
|
|
@@ -7,6 +8,7 @@ import { LitElement } from 'lit';
|
|
|
7
8
|
* @status ready
|
|
8
9
|
* @category feedback
|
|
9
10
|
* @slot - default slot
|
|
11
|
+
* @slot actions - Optional slot for action buttons (a call to action and/or a dismiss button), shown at the trailing end of the banner.
|
|
10
12
|
*
|
|
11
13
|
* @cssprop [--n-banner-border-radius=var(--n-border-radius)] - Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).
|
|
12
14
|
* @cssprop [--n-banner-box-shadow=var(--n-box-shadow-card)] - Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).
|
|
@@ -17,6 +19,7 @@ export default class Banner extends LitElement {
|
|
|
17
19
|
* The style variant of the banner.
|
|
18
20
|
*/
|
|
19
21
|
variant: 'info' | 'danger' | 'success' | 'warning';
|
|
22
|
+
private actionsSlot;
|
|
20
23
|
render(): import("lit").TemplateResult<1>;
|
|
21
24
|
}
|
|
22
25
|
declare global {
|
|
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
* Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.
|
|
4
4
|
*
|
|
5
5
|
* @status ready
|
|
6
|
-
* @category
|
|
6
|
+
* @category action
|
|
7
7
|
* @slot - The button group content
|
|
8
8
|
*
|
|
9
9
|
* @cssprop [--n-button-group-border-radius=var(--n-border-radius-s)] - Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.
|
|
@@ -9,8 +9,9 @@ export type DatePredicate = (date: Date) => boolean;
|
|
|
9
9
|
* Please note that the date must be passed in ISO-8601 format.
|
|
10
10
|
*
|
|
11
11
|
* @status ready
|
|
12
|
-
* @category
|
|
12
|
+
* @category form
|
|
13
13
|
* @fires {DateSelectEvent} change - Dispatched when a date is selected and the value changes.
|
|
14
|
+
* @fires {DateRangeSelectEvent} range-change - Dispatched in `range` mode when a complete range (start and end) has been selected.
|
|
14
15
|
* @fires {DateSelectEvent} nord-focus-date - Dispatched when the calendar's focused date changes.
|
|
15
16
|
*
|
|
16
17
|
* @cssprop [--n-calendar-border-radius=var(--n-border-radius)] - Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).
|
|
@@ -98,8 +99,43 @@ export default class Calendar extends LitElement {
|
|
|
98
99
|
* It is recommended to return a string rather than a truthy value whenever possible.
|
|
99
100
|
*/
|
|
100
101
|
isDateHighlighted: (date: Date) => string | boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Opt into range selection. When `true`, clicking selects a range start, and
|
|
104
|
+
* the next click selects the end (the two clicks are swapped if the second is
|
|
105
|
+
* earlier than the first). The in-range days are styled, and a hover preview
|
|
106
|
+
* shows the range that would result. A completed range fires `range-change`.
|
|
107
|
+
*
|
|
108
|
+
* This is off by default, so the calendar keeps its single-date behaviour
|
|
109
|
+
* (the `value`/`change` API) unless `range` is set.
|
|
110
|
+
*/
|
|
111
|
+
range: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* The start of the selected range, in ISO-8601 format: YYYY-MM-DD. Only used
|
|
114
|
+
* when `range` is set. Pair with `rangeEnd` to control the selection.
|
|
115
|
+
*/
|
|
116
|
+
rangeStart?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The end of the selected range, in ISO-8601 format: YYYY-MM-DD. Only used
|
|
119
|
+
* when `range` is set. Pair with `rangeStart` to control the selection.
|
|
120
|
+
*/
|
|
121
|
+
rangeEnd?: string;
|
|
122
|
+
/**
|
|
123
|
+
* The number of consecutive months to display side by side, starting from the
|
|
124
|
+
* focused month. Defaults to `1`. Useful with `range` for picking a span that
|
|
125
|
+
* crosses months without paging — the range and its hover preview span every
|
|
126
|
+
* visible month, and the navigation arrows slide the whole window. With more
|
|
127
|
+
* than one month the month/year dropdowns are replaced by static titles.
|
|
128
|
+
*/
|
|
129
|
+
months: number;
|
|
101
130
|
private activeFocus;
|
|
102
131
|
private focusedDay;
|
|
132
|
+
/**
|
|
133
|
+
* While picking a range, the first click is held here until the second click
|
|
134
|
+
* completes the range. `undefined` means no in-progress pick.
|
|
135
|
+
*/
|
|
136
|
+
private pendingRangeStart?;
|
|
137
|
+
/** The day currently hovered while a range pick is in progress (preview). */
|
|
138
|
+
private hoveredDay?;
|
|
103
139
|
/**
|
|
104
140
|
* Programmatically move focus to the calendar.
|
|
105
141
|
* @param options An object which controls aspects of the focusing process.
|
|
@@ -109,9 +145,17 @@ export default class Calendar extends LitElement {
|
|
|
109
145
|
}): void;
|
|
110
146
|
render(): import("lit").TemplateResult<1>;
|
|
111
147
|
protected handleValueChange(): void;
|
|
148
|
+
protected handleRangeChange(): void;
|
|
112
149
|
protected handleFocusedDayChange(): void;
|
|
113
150
|
private handleLangChange;
|
|
114
151
|
private handleDaySelect;
|
|
152
|
+
/**
|
|
153
|
+
* Two-click range selection: the first click starts a pending range, the
|
|
154
|
+
* second completes it. The two ends are swapped if the second click is before
|
|
155
|
+
* the first, so the committed range is always ordered `start <= end`.
|
|
156
|
+
*/
|
|
157
|
+
private selectRangeDay;
|
|
158
|
+
private handleDayHover;
|
|
115
159
|
private getToday;
|
|
116
160
|
private addDays;
|
|
117
161
|
private addMonths;
|