@nordhealth/components 4.26.1 → 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.
Files changed (553) hide show
  1. package/custom-elements.json +54613 -21826
  2. package/lib/Accordion.js +2 -0
  3. package/lib/Accordion.js.map +1 -0
  4. package/lib/AccordionHeader.js +2 -0
  5. package/lib/AccordionHeader.js.map +1 -0
  6. package/lib/AccordionItem.js +2 -0
  7. package/lib/AccordionItem.js.map +1 -0
  8. package/lib/AccordionPanel.js +2 -0
  9. package/lib/AccordionPanel.js.map +1 -0
  10. package/lib/AccordionTrigger.js +2 -0
  11. package/lib/AccordionTrigger.js.map +1 -0
  12. package/lib/ActiveDescendantController-BnMqM79O.js +2 -0
  13. package/lib/ActiveDescendantController-BnMqM79O.js.map +1 -0
  14. package/lib/Aside.js +5 -7
  15. package/lib/Aside.js.map +1 -1
  16. package/lib/AsideDrawer.js +7 -11
  17. package/lib/AsideDrawer.js.map +1 -1
  18. package/lib/AsideTrigger.js +3 -4
  19. package/lib/AsideTrigger.js.map +1 -1
  20. package/lib/Autocomplete.js +2 -0
  21. package/lib/Autocomplete.js.map +1 -0
  22. package/lib/Avatar.js +1 -1
  23. package/lib/Avatar.js.map +1 -1
  24. package/lib/Badge.js +1 -1
  25. package/lib/Badge.js.map +1 -1
  26. package/lib/Banner.js +1 -1
  27. package/lib/Banner.js.map +1 -1
  28. package/lib/Button.js +7 -12
  29. package/lib/Button.js.map +1 -1
  30. package/lib/ButtonGroup.js +1 -1
  31. package/lib/ButtonGroup.js.map +1 -1
  32. package/lib/Calendar-C1SxrlzN.js +2 -0
  33. package/lib/Calendar-C1SxrlzN.js.map +1 -0
  34. package/lib/Calendar.js +1 -1
  35. package/lib/Card.js +1 -1
  36. package/lib/Card.js.map +1 -1
  37. package/lib/Checkbox.js +1 -1
  38. package/lib/Checkbox.js.map +1 -1
  39. package/lib/CollapseController-BtKNFNyJ.js +2 -0
  40. package/lib/CollapseController-BtKNFNyJ.js.map +1 -0
  41. package/lib/Collapsible.js +2 -0
  42. package/lib/Collapsible.js.map +1 -0
  43. package/lib/CollapsiblePanel.js +2 -0
  44. package/lib/CollapsiblePanel.js.map +1 -0
  45. package/lib/CollapsibleTrigger.js +2 -0
  46. package/lib/CollapsibleTrigger.js.map +1 -0
  47. package/lib/Combobox-By4h1Sp-.js +2 -0
  48. package/lib/Combobox-By4h1Sp-.js.map +1 -0
  49. package/lib/Combobox.js +2 -0
  50. package/lib/Combobox.js.map +1 -0
  51. package/lib/ComboboxBase.js +2 -0
  52. package/lib/ComboboxBase.js.map +1 -0
  53. package/lib/ComboboxEvents.js +2 -0
  54. package/lib/ComboboxEvents.js.map +1 -0
  55. package/lib/ComboboxGroup.js +2 -0
  56. package/lib/ComboboxGroup.js.map +1 -0
  57. package/lib/ComboboxOption.js +2 -0
  58. package/lib/ComboboxOption.js.map +1 -0
  59. package/lib/CommandMenu.js +1 -1
  60. package/lib/CommandMenu.js.map +1 -1
  61. package/lib/CommandMenuAction.js +1 -1
  62. package/lib/CommandMenuAction.js.map +1 -1
  63. package/lib/Component-BJ5O5n8k.js +2 -0
  64. package/lib/Component-BJ5O5n8k.js.map +1 -0
  65. package/lib/DatePicker.js +1 -1
  66. package/lib/DatePicker.js.map +1 -1
  67. package/lib/DateRangeChangeEvent.js +2 -0
  68. package/lib/DateRangeChangeEvent.js.map +1 -0
  69. package/lib/DateRangePicker.js +2 -0
  70. package/lib/DateRangePicker.js.map +1 -0
  71. package/lib/DateRangeSelectEvent.js +2 -0
  72. package/lib/DateRangeSelectEvent.js.map +1 -0
  73. package/lib/Divider.js +1 -1
  74. package/lib/Divider.js.map +1 -1
  75. package/lib/DraftComponentMixin-4qug5Rky.js +2 -0
  76. package/lib/DraftComponentMixin-4qug5Rky.js.map +1 -0
  77. package/lib/Drawer.js +1 -1
  78. package/lib/Drawer.js.map +1 -1
  79. package/lib/Dropdown.js +1 -1
  80. package/lib/Dropdown.js.map +1 -1
  81. package/lib/DropdownGroup.js +1 -1
  82. package/lib/DropdownGroup.js.map +1 -1
  83. package/lib/DropdownItem-BYbOLth6.js +2 -0
  84. package/lib/DropdownItem-BYbOLth6.js.map +1 -0
  85. package/lib/DropdownItem.js +1 -1
  86. package/lib/DropdownItem.js.map +1 -1
  87. package/lib/DropdownSubmenu.js +1 -1
  88. package/lib/DropdownSubmenu.js.map +1 -1
  89. package/lib/EmptyState.js +1 -1
  90. package/lib/EmptyState.js.map +1 -1
  91. package/lib/Field.js +2 -0
  92. package/lib/Field.js.map +1 -0
  93. package/lib/FieldContent.js +2 -0
  94. package/lib/FieldContent.js.map +1 -0
  95. package/lib/FieldControlMixin-BXNZJXu9.js +2 -0
  96. package/lib/FieldControlMixin-BXNZJXu9.js.map +1 -0
  97. package/lib/FieldDescription.js +2 -0
  98. package/lib/FieldDescription.js.map +1 -0
  99. package/lib/FieldError.js +2 -0
  100. package/lib/FieldError.js.map +1 -0
  101. package/lib/FieldGroup.js +2 -0
  102. package/lib/FieldGroup.js.map +1 -0
  103. package/lib/FieldLabel.js +2 -0
  104. package/lib/FieldLabel.js.map +1 -0
  105. package/lib/FieldLegend.js +2 -0
  106. package/lib/FieldLegend.js.map +1 -0
  107. package/lib/FieldSeparator.js +2 -0
  108. package/lib/FieldSeparator.js.map +1 -0
  109. package/lib/FieldSet.js +2 -0
  110. package/lib/FieldSet.js.map +1 -0
  111. package/lib/FieldTitle.js +2 -0
  112. package/lib/FieldTitle.js.map +1 -0
  113. package/lib/Fieldset2.js +2 -0
  114. package/lib/Fieldset2.js.map +1 -0
  115. package/lib/FilterAddButton.js +2 -0
  116. package/lib/FilterAddButton.js.map +1 -0
  117. package/lib/FilterAddButtonEvents.js +2 -0
  118. package/lib/FilterAddButtonEvents.js.map +1 -0
  119. package/lib/FilterBar.js +2 -0
  120. package/lib/FilterBar.js.map +1 -0
  121. package/lib/FilterDateRange.js +2 -0
  122. package/lib/FilterDateRange.js.map +1 -0
  123. package/lib/FilterDateRangeEvents.js +2 -0
  124. package/lib/FilterDateRangeEvents.js.map +1 -0
  125. package/lib/FilterDropdown.js +2 -0
  126. package/lib/FilterDropdown.js.map +1 -0
  127. package/lib/FilterDropdownEvents.js +2 -0
  128. package/lib/FilterDropdownEvents.js.map +1 -0
  129. package/lib/FilterField.js +2 -0
  130. package/lib/FilterField.js.map +1 -0
  131. package/lib/FilterFieldEvents.js +2 -0
  132. package/lib/FilterFieldEvents.js.map +1 -0
  133. package/lib/FilterInput.js +2 -0
  134. package/lib/FilterInput.js.map +1 -0
  135. package/lib/FilterResetButton.js +2 -0
  136. package/lib/FilterResetButton.js.map +1 -0
  137. package/lib/FocusableWhenDisabledController-C_Mn1mfN.js +2 -0
  138. package/lib/FocusableWhenDisabledController-C_Mn1mfN.js.map +1 -0
  139. package/lib/Footer.js +1 -1
  140. package/lib/Footer.js.map +1 -1
  141. package/lib/FormAssociatedMixin-D9aPREgv.js +2 -0
  142. package/lib/FormAssociatedMixin-D9aPREgv.js.map +1 -0
  143. package/lib/FormField-CMgEFZCK.js +2 -0
  144. package/lib/FormField-CMgEFZCK.js.map +1 -0
  145. package/lib/Header.js +1 -1
  146. package/lib/Header.js.map +1 -1
  147. package/lib/Icon.js +1 -1
  148. package/lib/Icon.js.map +1 -1
  149. package/lib/Input.js +1 -1
  150. package/lib/Input.js.map +1 -1
  151. package/lib/Item.js +2 -0
  152. package/lib/Item.js.map +1 -0
  153. package/lib/ItemActions.js +2 -0
  154. package/lib/ItemActions.js.map +1 -0
  155. package/lib/ItemContent.js +2 -0
  156. package/lib/ItemContent.js.map +1 -0
  157. package/lib/ItemDescription.js +2 -0
  158. package/lib/ItemDescription.js.map +1 -0
  159. package/lib/ItemFooter.js +2 -0
  160. package/lib/ItemFooter.js.map +1 -0
  161. package/lib/ItemGroup.js +2 -0
  162. package/lib/ItemGroup.js.map +1 -0
  163. package/lib/ItemHeader.js +2 -0
  164. package/lib/ItemHeader.js.map +1 -0
  165. package/lib/ItemMedia.js +2 -0
  166. package/lib/ItemMedia.js.map +1 -0
  167. package/lib/ItemSeparator.js +2 -0
  168. package/lib/ItemSeparator.js.map +1 -0
  169. package/lib/ItemTitle.js +2 -0
  170. package/lib/ItemTitle.js.map +1 -0
  171. package/lib/Kbd.js +2 -0
  172. package/lib/Kbd.js.map +1 -0
  173. package/lib/KbdGroup.js +2 -0
  174. package/lib/KbdGroup.js.map +1 -0
  175. package/lib/KeyboardController.js +1 -1
  176. package/lib/KeyboardController.js.map +1 -1
  177. package/lib/Layout.js +1 -3
  178. package/lib/Layout.js.map +1 -1
  179. package/lib/LocalizeController.js +1 -1
  180. package/lib/LocalizeController.js.map +1 -1
  181. package/lib/Message.js +1 -1
  182. package/lib/Message.js.map +1 -1
  183. package/lib/Meter.js +2 -0
  184. package/lib/Meter.js.map +1 -0
  185. package/lib/Modal.js +1 -1
  186. package/lib/Modal.js.map +1 -1
  187. package/lib/ModalController.js +1 -1
  188. package/lib/ModalController.js.map +1 -1
  189. package/lib/NavGroup.js +1 -1
  190. package/lib/NavGroup.js.map +1 -1
  191. package/lib/NavItem.js +1 -1
  192. package/lib/NavItem.js.map +1 -1
  193. package/lib/NavToggle-BY83xpx0.js +2 -0
  194. package/lib/NavToggle-BY83xpx0.js.map +1 -0
  195. package/lib/NavToggle.js +1 -1
  196. package/lib/Navigation.js +1 -1
  197. package/lib/Navigation.js.map +1 -1
  198. package/lib/Notification.js +1 -1
  199. package/lib/Notification.js.map +1 -1
  200. package/lib/NotificationGroup.js +1 -1
  201. package/lib/NotificationGroup.js.map +1 -1
  202. package/lib/NumberField.js +2 -0
  203. package/lib/NumberField.js.map +1 -0
  204. package/lib/NumberFieldEvents.js +2 -0
  205. package/lib/NumberFieldEvents.js.map +1 -0
  206. package/lib/OpenStateController-CCnZ7up6.js +2 -0
  207. package/lib/OpenStateController-CCnZ7up6.js.map +1 -0
  208. package/lib/OtpField.js +2 -0
  209. package/lib/OtpField.js.map +1 -0
  210. package/lib/OtpFieldEvents.js +2 -0
  211. package/lib/OtpFieldEvents.js.map +1 -0
  212. package/lib/Pagination.js +2 -0
  213. package/lib/Pagination.js.map +1 -0
  214. package/lib/PaginationContent.js +2 -0
  215. package/lib/PaginationContent.js.map +1 -0
  216. package/lib/PaginationEllipsis.js +2 -0
  217. package/lib/PaginationEllipsis.js.map +1 -0
  218. package/lib/PaginationItem.js +2 -0
  219. package/lib/PaginationItem.js.map +1 -0
  220. package/lib/PaginationLink.js +2 -0
  221. package/lib/PaginationLink.js.map +1 -0
  222. package/lib/PaginationNext.js +2 -0
  223. package/lib/PaginationNext.js.map +1 -0
  224. package/lib/PaginationPrevious.js +2 -0
  225. package/lib/PaginationPrevious.js.map +1 -0
  226. package/lib/Popout-DpN7PP9h.js +2 -0
  227. package/lib/Popout-DpN7PP9h.js.map +1 -0
  228. package/lib/Popout.js +1 -1
  229. package/lib/Progress.js +1 -1
  230. package/lib/Progress.js.map +1 -1
  231. package/lib/ProgressBar.js +1 -1
  232. package/lib/ProgressBar.js.map +1 -1
  233. package/lib/Qrcode.js +2 -2
  234. package/lib/Radio.js +1 -1
  235. package/lib/Radio.js.map +1 -1
  236. package/lib/Range.js +1 -1
  237. package/lib/Range.js.map +1 -1
  238. package/lib/ReadonlyMixin-BdJPGtQ3.js +2 -0
  239. package/lib/ReadonlyMixin-BdJPGtQ3.js.map +1 -0
  240. package/lib/ResizeController-14PUwRQy.js +2 -0
  241. package/lib/ResizeController-14PUwRQy.js.map +1 -0
  242. package/lib/ScrollArea.js +2 -0
  243. package/lib/ScrollArea.js.map +1 -0
  244. package/lib/SegmentedControl.js +1 -1
  245. package/lib/SegmentedControl.js.map +1 -1
  246. package/lib/SegmentedControlItem.js +23 -40
  247. package/lib/SegmentedControlItem.js.map +1 -1
  248. package/lib/Select.js +1 -1
  249. package/lib/Select.js.map +1 -1
  250. package/lib/Skeleton.js +1 -1
  251. package/lib/Skeleton.js.map +1 -1
  252. package/lib/Spinner.js +1 -1
  253. package/lib/Spinner.js.map +1 -1
  254. package/lib/Stack.js +1 -1
  255. package/lib/Stack.js.map +1 -1
  256. package/lib/StateAttributesController-BIh96sXZ.js +2 -0
  257. package/lib/StateAttributesController-BIh96sXZ.js.map +1 -0
  258. package/lib/Sticky-CZImMrGj.js +2 -0
  259. package/lib/Sticky-CZImMrGj.js.map +1 -0
  260. package/lib/Tab.js +1 -1
  261. package/lib/Tab.js.map +1 -1
  262. package/lib/TabGroup.js +1 -1
  263. package/lib/TabGroup.js.map +1 -1
  264. package/lib/TabPanel.js +1 -1
  265. package/lib/TabPanel.js.map +1 -1
  266. package/lib/Table.js +1 -1
  267. package/lib/Table.js.map +1 -1
  268. package/lib/Tag.js +1 -1
  269. package/lib/Tag.js.map +1 -1
  270. package/lib/TagGroup.js +1 -1
  271. package/lib/TagGroup.js.map +1 -1
  272. package/lib/TextField-CSKvieoG.js +2 -0
  273. package/lib/TextField-CSKvieoG.js.map +1 -0
  274. package/lib/TextSelectableMixin-Cfv__lHS.js.map +1 -1
  275. package/lib/Textarea.js +1 -1
  276. package/lib/Textarea.js.map +1 -1
  277. package/lib/TimePicker.js +2 -0
  278. package/lib/TimePicker.js.map +1 -0
  279. package/lib/Toast.js +1 -1
  280. package/lib/Toast.js.map +1 -1
  281. package/lib/ToastGroup.js +1 -1
  282. package/lib/ToastGroup.js.map +1 -1
  283. package/lib/Toggle.js +1 -1
  284. package/lib/Toggle.js.map +1 -1
  285. package/lib/Tooltip.js +1 -1
  286. package/lib/Tooltip.js.map +1 -1
  287. package/lib/TopBar.js +1 -1
  288. package/lib/TopBar.js.map +1 -1
  289. package/lib/Truncate.js +1 -1
  290. package/lib/Truncate.js.map +1 -1
  291. package/lib/VisuallyHidden.js +1 -1
  292. package/lib/bundle.js +91 -91
  293. package/lib/bundle.js.map +1 -1
  294. package/lib/combobox-context.js +2 -0
  295. package/lib/combobox-context.js.map +1 -0
  296. package/lib/context-consumer-BJVUulGf.js +7 -0
  297. package/lib/context-consumer-BJVUulGf.js.map +1 -0
  298. package/lib/context-provider-D8lrPLVi.js +12 -0
  299. package/lib/context-provider-D8lrPLVi.js.map +1 -0
  300. package/lib/context-request-event-CCRlXoeR.js +7 -0
  301. package/lib/context-request-event-CCRlXoeR.js.map +1 -0
  302. package/lib/create-context-CJ69ntlY.js +7 -0
  303. package/lib/create-context-CJ69ntlY.js.map +1 -0
  304. package/lib/currency.js +2 -0
  305. package/lib/currency.js.map +1 -0
  306. package/lib/date-adapter.js +1 -1
  307. package/lib/dates-C-ZvzXaC.js +2 -0
  308. package/lib/dates-C-ZvzXaC.js.map +1 -0
  309. package/lib/dates.js +2 -0
  310. package/lib/dates.js.map +1 -0
  311. package/lib/dismiss.js +2 -0
  312. package/lib/dismiss.js.map +1 -0
  313. package/lib/en-us.js +1 -1
  314. package/lib/en-us.js.map +1 -1
  315. package/lib/fi-fi.js +1 -1
  316. package/lib/fi-fi.js.map +1 -1
  317. package/lib/field-context.js +2 -0
  318. package/lib/field-context.js.map +1 -0
  319. package/lib/filter-chip-C97zd4PT.js +2 -0
  320. package/lib/filter-chip-C97zd4PT.js.map +1 -0
  321. package/lib/format.js +2 -0
  322. package/lib/format.js.map +1 -0
  323. package/lib/index.js +1 -1
  324. package/lib/interface-add-small-B-hv2v9J.js +2 -0
  325. package/lib/interface-add-small-B-hv2v9J.js.map +1 -0
  326. package/lib/interface-calendar-Cw2bJfbS.js +2 -0
  327. package/lib/interface-calendar-Cw2bJfbS.js.map +1 -0
  328. package/lib/interface-close-BvKnv9eh.js +2 -0
  329. package/lib/interface-close-BvKnv9eh.js.map +1 -0
  330. package/lib/interface-dropdown-small-CYvgxudU.js +2 -0
  331. package/lib/interface-dropdown-small-CYvgxudU.js.map +1 -0
  332. package/lib/interface-filter-CCsx9-u6.js +2 -0
  333. package/lib/interface-filter-CCsx9-u6.js.map +1 -0
  334. package/lib/interface-remove-small-DUaWSs90.js +2 -0
  335. package/lib/interface-remove-small-DUaWSs90.js.map +1 -0
  336. package/lib/light-dom-styles-DXsbiKU9.js +2 -0
  337. package/lib/light-dom-styles-DXsbiKU9.js.map +1 -0
  338. package/lib/localization.js +1 -1
  339. package/lib/localization.js.map +1 -1
  340. package/lib/localization10.js +2 -0
  341. package/lib/localization10.js.map +1 -0
  342. package/lib/localization11.js +2 -0
  343. package/lib/localization11.js.map +1 -0
  344. package/lib/localization12.js +2 -0
  345. package/lib/localization12.js.map +1 -0
  346. package/lib/localization13.js +2 -0
  347. package/lib/localization13.js.map +1 -0
  348. package/lib/localization14.js +2 -0
  349. package/lib/localization14.js.map +1 -0
  350. package/lib/localization15.js +2 -0
  351. package/lib/localization15.js.map +1 -0
  352. package/lib/localization16.js +2 -0
  353. package/lib/localization16.js.map +1 -0
  354. package/lib/localization17.js +2 -0
  355. package/lib/localization17.js.map +1 -0
  356. package/lib/localization18.js +2 -0
  357. package/lib/localization18.js.map +1 -0
  358. package/lib/localization19.js +2 -0
  359. package/lib/localization19.js.map +1 -0
  360. package/lib/localization2.js +1 -1
  361. package/lib/localization2.js.map +1 -1
  362. package/lib/localization20.js +2 -0
  363. package/lib/localization20.js.map +1 -0
  364. package/lib/localization21.js +2 -0
  365. package/lib/localization21.js.map +1 -0
  366. package/lib/localization22.js +2 -0
  367. package/lib/localization22.js.map +1 -0
  368. package/lib/localization3.js +1 -1
  369. package/lib/localization3.js.map +1 -1
  370. package/lib/localization4.js +1 -1
  371. package/lib/localization4.js.map +1 -1
  372. package/lib/localization5.js +1 -1
  373. package/lib/localization5.js.map +1 -1
  374. package/lib/localization6.js +1 -1
  375. package/lib/localization6.js.map +1 -1
  376. package/lib/localization7.js +1 -1
  377. package/lib/localization7.js.map +1 -1
  378. package/lib/localization8.js +1 -1
  379. package/lib/localization8.js.map +1 -1
  380. package/lib/localization9.js +1 -1
  381. package/lib/localization9.js.map +1 -1
  382. package/lib/navigation-search-CBbIGzo2.js +2 -0
  383. package/lib/navigation-search-CBbIGzo2.js.map +1 -0
  384. package/lib/paginate.js +2 -0
  385. package/lib/paginate.js.map +1 -0
  386. package/lib/parse.js +2 -0
  387. package/lib/parse.js.map +1 -0
  388. package/lib/primitives-Dj0vyf1-.js +2 -0
  389. package/lib/primitives-Dj0vyf1-.js.map +1 -0
  390. package/lib/react.d.ts +505 -0
  391. package/lib/src/accordion/Accordion.d.ts +121 -0
  392. package/lib/src/accordion/AccordionHeader.d.ts +28 -0
  393. package/lib/src/accordion/AccordionItem.d.ts +68 -0
  394. package/lib/src/accordion/AccordionPanel.d.ts +35 -0
  395. package/lib/src/accordion/AccordionTrigger.d.ts +47 -0
  396. package/lib/src/aside-drawer/AsideDrawer.d.ts +2 -0
  397. package/lib/src/aside-trigger/AsideTrigger.d.ts +2 -0
  398. package/lib/src/autocomplete/Autocomplete.d.ts +190 -0
  399. package/lib/src/autocomplete/localization.d.ts +5 -0
  400. package/lib/src/badge/Badge.d.ts +1 -1
  401. package/lib/src/banner/Banner.d.ts +3 -0
  402. package/lib/src/button-group/ButtonGroup.d.ts +2 -1
  403. package/lib/src/calendar/Calendar.d.ts +44 -0
  404. package/lib/src/calendar/DateRangeSelectEvent.d.ts +16 -0
  405. package/lib/src/collapsible/Collapsible.d.ts +69 -0
  406. package/lib/src/collapsible/CollapsiblePanel.d.ts +35 -0
  407. package/lib/src/collapsible/CollapsibleTrigger.d.ts +38 -0
  408. package/lib/src/combobox/Combobox.d.ts +131 -0
  409. package/lib/src/combobox/ComboboxBase.d.ts +421 -0
  410. package/lib/src/combobox/ComboboxEvents.d.ts +25 -0
  411. package/lib/src/combobox/ComboboxGroup.d.ts +34 -0
  412. package/lib/src/combobox/ComboboxOption.d.ts +47 -0
  413. package/lib/src/combobox/combobox-context.d.ts +18 -0
  414. package/lib/src/combobox/localization.d.ts +6 -0
  415. package/lib/src/command-menu/ICommandMenuAction.d.ts +11 -0
  416. package/lib/src/common/controllers/ActiveDescendantController.d.ts +45 -0
  417. package/lib/src/common/controllers/CollapseController.d.ts +50 -0
  418. package/lib/src/common/controllers/FocusableWhenDisabledController.d.ts +29 -0
  419. package/lib/src/common/controllers/OpenStateController.d.ts +58 -0
  420. package/lib/src/common/controllers/RovingFocusController.d.ts +40 -0
  421. package/lib/src/common/controllers/StateAttributesController.d.ts +47 -0
  422. package/lib/src/common/controllers/TransitionStatusController.d.ts +48 -0
  423. package/lib/src/common/dates.d.ts +13 -0
  424. package/lib/src/common/light-dom-styles.d.ts +17 -0
  425. package/lib/src/common/mixins/FieldControlMixin.d.ts +60 -0
  426. package/lib/src/common/mixins/FloatingComponentMixin.d.ts +2 -0
  427. package/lib/src/common/mixins/FormAssociatedMixin.d.ts +8 -25
  428. package/lib/src/common/mixins/TextSelectableMixin.d.ts +1 -0
  429. package/lib/src/common/prefers-reduced-motion.d.ts +7 -0
  430. package/lib/src/date-picker/DatePicker.d.ts +2 -0
  431. package/lib/src/date-range-picker/DateRangeChangeEvent.d.ts +27 -0
  432. package/lib/src/date-range-picker/DateRangePicker.d.ts +307 -0
  433. package/lib/src/date-range-picker/localization.d.ts +42 -0
  434. package/lib/src/drawer/Drawer.d.ts +7 -0
  435. package/lib/src/dropdown/Dropdown.d.ts +1 -1
  436. package/lib/src/dropdown-group/DropdownGroup.d.ts +3 -1
  437. package/lib/src/dropdown-item/DropdownItem.d.ts +3 -1
  438. package/lib/src/dropdown-submenu/DropdownSubmenu.d.ts +2 -0
  439. package/lib/src/field/Field.d.ts +102 -0
  440. package/lib/src/field/FieldContent.d.ts +22 -0
  441. package/lib/src/field/FieldDescription.d.ts +21 -0
  442. package/lib/src/field/FieldError.d.ts +25 -0
  443. package/lib/src/field/FieldGroup.d.ts +25 -0
  444. package/lib/src/field/FieldLabel.d.ts +41 -0
  445. package/lib/src/field/FieldLegend.d.ts +20 -0
  446. package/lib/src/field/FieldSeparator.d.ts +21 -0
  447. package/lib/src/field/FieldSet.d.ts +28 -0
  448. package/lib/src/field/FieldTitle.d.ts +21 -0
  449. package/lib/src/field/field-context.d.ts +47 -0
  450. package/lib/src/fieldset/Fieldset.d.ts +12 -4
  451. package/lib/src/filter-add-button/FilterAddButton.d.ts +91 -0
  452. package/lib/src/filter-add-button/FilterAddButtonEvents.d.ts +17 -0
  453. package/lib/src/filter-add-button/localization.d.ts +4 -0
  454. package/lib/src/filter-bar/FilterBar.d.ts +37 -0
  455. package/lib/src/filter-date-range/FilterDateRange.d.ts +96 -0
  456. package/lib/src/filter-date-range/FilterDateRangeEvents.d.ts +37 -0
  457. package/lib/src/filter-date-range/localization.d.ts +11 -0
  458. package/lib/src/filter-dropdown/FilterDropdown.d.ts +247 -0
  459. package/lib/src/filter-dropdown/FilterDropdownEvents.d.ts +57 -0
  460. package/lib/src/filter-dropdown/localization.d.ts +14 -0
  461. package/lib/src/filter-field/FilterField.d.ts +89 -0
  462. package/lib/src/filter-field/FilterFieldEvents.d.ts +18 -0
  463. package/lib/src/filter-field/localization.d.ts +8 -0
  464. package/lib/src/filter-input/FilterInput.d.ts +102 -0
  465. package/lib/src/filter-input/localization.d.ts +5 -0
  466. package/lib/src/filter-reset-button/FilterResetButton.d.ts +50 -0
  467. package/lib/src/filter-reset-button/localization.d.ts +4 -0
  468. package/lib/src/index.d.ts +59 -0
  469. package/lib/src/input/Input.d.ts +2 -1
  470. package/lib/src/item/Item.d.ts +44 -0
  471. package/lib/src/item/ItemActions.d.ts +20 -0
  472. package/lib/src/item/ItemContent.d.ts +22 -0
  473. package/lib/src/item/ItemDescription.d.ts +20 -0
  474. package/lib/src/item/ItemFooter.d.ts +20 -0
  475. package/lib/src/item/ItemGroup.d.ts +22 -0
  476. package/lib/src/item/ItemHeader.d.ts +20 -0
  477. package/lib/src/item/ItemMedia.d.ts +28 -0
  478. package/lib/src/item/ItemSeparator.d.ts +21 -0
  479. package/lib/src/item/ItemTitle.d.ts +19 -0
  480. package/lib/src/kbd/Kbd.d.ts +54 -0
  481. package/lib/src/kbd/KbdGroup.d.ts +22 -0
  482. package/lib/src/layout/Layout.d.ts +2 -2
  483. package/lib/src/localization/en-us.d.ts +85 -0
  484. package/lib/src/localization/translation.d.ts +85 -0
  485. package/lib/src/meter/Meter.d.ts +76 -0
  486. package/lib/src/nav-group/NavGroup.d.ts +2 -0
  487. package/lib/src/nav-item/NavItem.d.ts +2 -0
  488. package/lib/src/nav-toggle/NavToggle.d.ts +3 -1
  489. package/lib/src/notification-group/NotificationGroup.d.ts +2 -0
  490. package/lib/src/number-field/NumberField.d.ts +377 -0
  491. package/lib/src/number-field/NumberFieldEvents.d.ts +37 -0
  492. package/lib/src/number-field/currency.d.ts +24 -0
  493. package/lib/src/number-field/format.d.ts +8 -0
  494. package/lib/src/number-field/localization.d.ts +6 -0
  495. package/lib/src/number-field/parse.d.ts +44 -0
  496. package/lib/src/number-field/validate.d.ts +24 -0
  497. package/lib/src/otp-field/OtpField.d.ts +177 -0
  498. package/lib/src/otp-field/OtpFieldEvents.d.ts +38 -0
  499. package/lib/src/otp-field/localization.d.ts +4 -0
  500. package/lib/src/pagination/Pagination.d.ts +51 -0
  501. package/lib/src/pagination/PaginationContent.d.ts +27 -0
  502. package/lib/src/pagination/PaginationEllipsis.d.ts +27 -0
  503. package/lib/src/pagination/PaginationItem.d.ts +24 -0
  504. package/lib/src/pagination/PaginationLink.d.ts +30 -0
  505. package/lib/src/pagination/PaginationNext.d.ts +24 -0
  506. package/lib/src/pagination/PaginationPrevious.d.ts +24 -0
  507. package/lib/src/pagination/localization.d.ts +4 -0
  508. package/lib/src/pagination/paginate.d.ts +20 -0
  509. package/lib/src/popout/Popout.d.ts +11 -2
  510. package/lib/src/scroll-area/ScrollArea.d.ts +101 -0
  511. package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +2 -0
  512. package/lib/src/storybook-utils/dates.d.ts +2 -0
  513. package/lib/src/storybook-utils/dismiss.d.ts +1 -0
  514. package/lib/src/storybook-utils/story-descriptions.d.ts +2 -0
  515. package/lib/src/tab-group/TabGroup.d.ts +2 -0
  516. package/lib/src/tab-panel/TabPanel.d.ts +2 -0
  517. package/lib/src/tag-group/TagGroup.d.ts +2 -0
  518. package/lib/src/textarea/Textarea.d.ts +2 -1
  519. package/lib/src/time-picker/TimePicker.d.ts +105 -0
  520. package/lib/src/time-picker/localization.d.ts +4 -0
  521. package/lib/src/toast-group/ToastGroup.d.ts +11 -0
  522. package/lib/src/tooltip/Tooltip.d.ts +12 -0
  523. package/lib/src/truncate/Truncate.d.ts +12 -0
  524. package/lib/story-descriptions.js +2 -0
  525. package/lib/story-descriptions.js.map +1 -0
  526. package/lib/translation.js +1 -1
  527. package/lib/translation.js.map +1 -1
  528. package/lib/validate.js +2 -0
  529. package/lib/validate.js.map +1 -0
  530. package/lib/vue.d.ts +407 -0
  531. package/package.json +9 -12
  532. package/lib/Calendar-ChNZdVRO.js +0 -2
  533. package/lib/Calendar-ChNZdVRO.js.map +0 -1
  534. package/lib/Component-DSU3Qp0O.js +0 -2
  535. package/lib/Component-DSU3Qp0O.js.map +0 -1
  536. package/lib/DropdownItem-Cb-7cHMg.js +0 -2
  537. package/lib/DropdownItem-Cb-7cHMg.js.map +0 -1
  538. package/lib/Fieldset.js +0 -2
  539. package/lib/Fieldset.js.map +0 -1
  540. package/lib/FormAssociatedMixin-B4Qj-CQN.js +0 -2
  541. package/lib/FormAssociatedMixin-B4Qj-CQN.js.map +0 -1
  542. package/lib/FormField-BFaVzUjk.js +0 -2
  543. package/lib/FormField-BFaVzUjk.js.map +0 -1
  544. package/lib/NavToggle-DzKbd-El.js +0 -2
  545. package/lib/NavToggle-DzKbd-El.js.map +0 -1
  546. package/lib/Popout-DtEL0HZ0.js +0 -2
  547. package/lib/Popout-DtEL0HZ0.js.map +0 -1
  548. package/lib/Sticky-DqnqENYN.js +0 -2
  549. package/lib/Sticky-DqnqENYN.js.map +0 -1
  550. package/lib/TextField-B955GOhe.js +0 -2
  551. package/lib/TextField-B955GOhe.js.map +0 -1
  552. package/lib/dates-CAAlPKZi.js +0 -2
  553. package/lib/dates-CAAlPKZi.js.map +0 -1
@@ -0,0 +1,307 @@
1
+ import type { PropertyValues } from 'lit';
2
+ import type { DatePredicate } from '../calendar/Calendar.js';
3
+ import { LitElement } from 'lit';
4
+ import { DaysOfWeek } from '../common/dates.js';
5
+ import '../button/Button.js';
6
+ import '../input/Input.js';
7
+ import '../calendar/Calendar.js';
8
+ import '../popout/Popout.js';
9
+ import '../stack/Stack.js';
10
+ import '../visually-hidden/VisuallyHidden.js';
11
+ declare const DateRangePicker_base: (new (...args: any[]) => import("../common/mixins/SizeMixin.js").SizeMixinInterface) & (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/ReadonlyMixin.js").ReadonlyMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
12
+ /**
13
+ * Date Range Picker lets people choose a start and end date as a single range,
14
+ * either from a built-in list of presets (Today, Last 7 days, This month, …) or
15
+ * from a range calendar. It is a control only — compose it inside a
16
+ * [Field](/components/field/) for a label, hint or error, like a native input.
17
+ *
18
+ * The committed value is an ISO-8601 interval string `YYYY-MM-DD/YYYY-MM-DD`;
19
+ * the convenience `start-date` / `end-date` props and the `valueAsDateRange`
20
+ * getter/setter stay in sync with it. Selecting in the popout builds a *pending*
21
+ * range; **Apply** commits it (firing `change`), **Cancel** reverts to the last
22
+ * committed value, and **Clear** empties it.
23
+ *
24
+ * @status draft
25
+ * @category form
26
+ * @lightDom true
27
+ *
28
+ * @fires {DateRangeChangeEvent} change - Dispatched when the committed range changes (Apply or Clear).
29
+ * @fires {DateRangeChangeEvent} input - Dispatched live as the pending range changes inside the popout.
30
+ * @fires {NordEvent} open - Dispatched when the popout is opened.
31
+ * @fires {NordEvent} close - Dispatched when the popout is closed.
32
+ *
33
+ * @slot trigger - Optional custom trigger element (e.g. a filter chip or a `nord-button`) that opens the picker. Replaces the built-in trigger button when provided.
34
+ *
35
+ * @localization buttonLabel - Accessible label for the trigger button.
36
+ * @localization placeholder - Placeholder shown in the trigger when no range is selected.
37
+ * @localization modalHeading - Heading shown above the calendar in the popout.
38
+ * @localization closeLabel - Accessible label for the close button.
39
+ * @localization applyLabel - Label for the Apply button.
40
+ * @localization cancelLabel - Label for the Cancel button.
41
+ * @localization clearLabel - Label for the Clear button.
42
+ * @localization presetsLabel - Accessible label for the preset list.
43
+ * @localization presetsCollapsedLabel - Label for the collapsed preset dropdown (narrow widths).
44
+ * @localization rangeSeparator - Character shown between the start and end dates in the trigger.
45
+ * @localization dateOutOfMinBound - Error message shown when the range starts before the minimum date.
46
+ * @localization dateOutOfMaxBound - Error message shown when the range ends after the maximum date.
47
+ * @localization presetToday - Label for the "Today" preset.
48
+ * @localization presetYesterday - Label for the "Yesterday" preset.
49
+ * @localization presetLastDays - Label for the "Last X days" presets.
50
+ * @localization presetLastMonths - Label for the "Last X months" presets.
51
+ * @localization presetThisMonth - Label for the "This month" preset.
52
+ * @localization presetLastWeek - Label for the "Last week" preset.
53
+ * @localization presetLastMonth - Label for the "Last month" preset.
54
+ * @localization presetLastQuarter - Label for the "Last quarter" preset.
55
+ * @localization presetLastYear - Label for the "Last year" preset.
56
+ * @localization presetCurrentWeek - Label for the "Current week" preset.
57
+ * @localization presetCurrentMonth - Label for the "Current month" preset.
58
+ * @localization presetCurrentQuarter - Label for the "Current quarter" preset.
59
+ * @localization presetCurrentYear - Label for the "Current year" preset.
60
+ * @localization presetQuarter - Label for a specific calendar quarter, e.g. "Q3 2025".
61
+ *
62
+ * @cssprop [--n-date-range-picker-trigger-min-inline-size=14rem] - Controls the minimum inline size of the trigger.
63
+ * @cssprop [--n-date-range-picker-popout-inline-size] - Controls the inline size of the popout content.
64
+ */
65
+ export default class DateRangePicker extends DateRangePicker_base {
66
+ /** Stable, unique id base for the light-DOM ARIA wiring of this instance. */
67
+ private dateRangePickerId;
68
+ protected inputId: string;
69
+ protected get labelFocusOnly(): boolean;
70
+ private calendar?;
71
+ private toggle?;
72
+ private popout?;
73
+ private localize;
74
+ private openState;
75
+ private dateFormat;
76
+ /**
77
+ * The committed value as an ISO-8601 interval string `YYYY-MM-DD/YYYY-MM-DD`.
78
+ * An empty string means no range is committed.
79
+ */
80
+ value: string;
81
+ /**
82
+ * Convenience accessor for the committed start date, in ISO-8601 format. Kept
83
+ * in sync with `value` and `end-date`.
84
+ */
85
+ startDate: string;
86
+ /**
87
+ * Convenience accessor for the committed end date, in ISO-8601 format. Kept in
88
+ * sync with `value` and `start-date`.
89
+ */
90
+ endDate: string;
91
+ /**
92
+ * Controls whether the popout is open.
93
+ */
94
+ open: boolean;
95
+ /**
96
+ * Minimum date allowed to be picked, in ISO-8601 format: YYYY-MM-DD.
97
+ */
98
+ min?: string;
99
+ /**
100
+ * Maximum date allowed to be picked, in ISO-8601 format: YYYY-MM-DD.
101
+ */
102
+ max?: string;
103
+ /**
104
+ * The date that is considered today, in ISO-8601 format. Presets resolve
105
+ * relative to this; if unset, the user's current local date is used.
106
+ */
107
+ today?: string;
108
+ /**
109
+ * Which day is considered the first day of the week. `0` for Sunday, `1` for
110
+ * Monday, etc. Default is Monday.
111
+ */
112
+ firstDayOfWeek: DaysOfWeek;
113
+ /**
114
+ * Controls which days are disabled and therefore disallowed.
115
+ * For example, this can be used to disallow selection of weekends.
116
+ */
117
+ isDateDisabled: DatePredicate;
118
+ /**
119
+ * Controls which days are highlighted with a small indicator.
120
+ * Returning `false` will not show an indicator.
121
+ * Returning `true` will show the indicator, but without an accessible label. Therefore
122
+ * Returning a string will show the indicator, and use the string as accessible label.
123
+ * It is recommended to return a string rather than `true` whenever possible.
124
+ */
125
+ isDateHighlighted: (date: Date) => string | boolean;
126
+ /**
127
+ * Hides the built-in list of preset ranges, leaving only the calendar.
128
+ */
129
+ hidePresets: boolean;
130
+ /**
131
+ * Restricts the preset list to this subset of preset ids (in their natural
132
+ * group order). When unset, the full catalogue is shown. Ids:
133
+ * `today`, `yesterday`, `last-7`/`last-30`/`last-60`/`last-90`/`last-365`,
134
+ * `last-week`, `last-month`, `last-6-months`, `last-quarter`, `last-year`,
135
+ * `last-12-months`, `current-week`/`current-month`/`current-quarter`/`current-year`,
136
+ * and quarter ids `q-<year>-<1-4>`.
137
+ */
138
+ presets?: string[];
139
+ /**
140
+ * Render the picker inline — the presets, calendar and Apply/Cancel/Clear are
141
+ * always visible, with no trigger button or popout. Use it when the picker
142
+ * lives directly on the page (e.g. in a form) rather than behind a trigger.
143
+ */
144
+ inline: boolean;
145
+ /**
146
+ * The name used to submit the **start** date as its own form field. When both
147
+ * `start-name` and `end-name` are set, the picker submits two fields
148
+ * (`start-name`=startDate, `end-name`=endDate) instead of the single `name`.
149
+ */
150
+ startName?: string;
151
+ /**
152
+ * The name used to submit the **end** date as its own form field. See
153
+ * `start-name`.
154
+ */
155
+ endName?: string;
156
+ /**
157
+ * Validation error message, set automatically when the committed range falls
158
+ * outside min/max.
159
+ */
160
+ internalError?: string;
161
+ /** The pending range inside the popout, before Apply commits it. */
162
+ private pendingStart;
163
+ private pendingEnd;
164
+ /** Whether the popout shows a single month (narrow) rather than two. */
165
+ private isNarrow;
166
+ /** Whether the collapsed preset dropdown (narrow layout) is open. */
167
+ private presetsOpen;
168
+ /**
169
+ * Below this viewport width (in `rem`) the picker collapses to a single month
170
+ * with stacked presets. Measured against the viewport — NOT the host — because
171
+ * the popout floats (`position: fixed`) and is free to be as wide as the
172
+ * viewport allows, regardless of the trigger's own width. A `resize` listener
173
+ * is required (rather than a CSS media query) because the month count is a
174
+ * `nord-calendar` prop in shadow DOM that CSS cannot reach.
175
+ *
176
+ * Two months + presets need ~900px to render without overflowing, so the
177
+ * threshold sits a little above that. Expressed in `rem` (resolved against the
178
+ * root font size on each measurement) so it scales with zoom / font size, the
179
+ * same way the calendar's own `rem`-based sizing does.
180
+ */
181
+ private static readonly narrowThresholdRem;
182
+ private resizeObserver;
183
+ private handleViewportResize;
184
+ /**
185
+ * Sets `isNarrow` from the viewport width. The `resize` listener drives this for
186
+ * live changes, but it fires asynchronously, so it's also called synchronously
187
+ * before opening the popout so the first render already shows the right number
188
+ * of months. Ignores 0-width measurements (detached/hidden).
189
+ */
190
+ private measureNarrow;
191
+ /**
192
+ * Mirror the collapsed-presets trigger width into a custom property so the
193
+ * presets popout matches it (the popout floats `position: fixed`, so a `%`
194
+ * width can't reference the trigger). Mirrors the combobox dropdown approach.
195
+ */
196
+ private syncPresetsInlineSize;
197
+ /**
198
+ * A user-supplied trigger element (`slot="trigger"`), captured from the light
199
+ * DOM before the first render so it can be re-inserted into the rendered
200
+ * structure. When present it replaces the built-in button; `null` uses the
201
+ * default trigger.
202
+ */
203
+ private customTrigger;
204
+ /** The interval string was the source of the most recent sync (avoids loops). */
205
+ private syncingFromValue;
206
+ get valueAsDateRange(): [Date, Date] | undefined;
207
+ /**
208
+ * Get/set the committed range as a `[Date, Date]` tuple. Setting `undefined`
209
+ * clears the range.
210
+ */
211
+ set valueAsDateRange(range: [Date, Date] | undefined);
212
+ /** The form the `formdata` listener is currently attached to, if any. */
213
+ private boundForm;
214
+ connectedCallback(): void;
215
+ disconnectedCallback(): void;
216
+ protected createRenderRoot(): this;
217
+ protected get ownInvalid(): boolean;
218
+ protected firstUpdated(changed: PropertyValues): void;
219
+ protected updated(changed: PropertyValues): void;
220
+ /**
221
+ * Give a slotted custom trigger the same ARIA wiring the built-in button has,
222
+ * so `nord-popout` auto-attaches its open/close click via `aria-controls` and
223
+ * assistive tech sees the dialog relationship and expanded state.
224
+ */
225
+ private wireCustomTrigger;
226
+ /**
227
+ * The control submits one OR two form fields (single interval, or separate
228
+ * start/end), which `FormAssociatedMixin`'s single `FormDataController` can't
229
+ * express, so listen for `formdata` directly and (re)bind to the active form.
230
+ */
231
+ private syncFormListener;
232
+ /**
233
+ * Keep `value`, `start-date` and `end-date` consistent. The interval string is
234
+ * the source of truth; whichever changed last drives the others.
235
+ */
236
+ protected handleValueObserve(): void;
237
+ protected handlePartObserve(): void;
238
+ /**
239
+ * Suppress the inherited `FormDataController`. This control submits one OR two
240
+ * fields depending on `start-name`/`end-name`, which a single controller can't
241
+ * express, so `handleFormData` owns the entire submission instead. Returning
242
+ * `undefined` here keeps the base controller from also appending `name`.
243
+ */
244
+ protected get formValue(): string | undefined;
245
+ private handleFormData;
246
+ /**
247
+ * The full catalogue of presets, resolved against the configured (or current)
248
+ * "today". Date arithmetic mirrors NFE's `getPredefinedDateRange`: "last N
249
+ * days" counts back `N` days from today; "last N months" are full calendar
250
+ * months ending at the previous month-end; period/quarter presets use calendar
251
+ * boundaries (first-day-of-week aware for weeks).
252
+ */
253
+ private get presetCatalogue();
254
+ /** The presets that should be shown, after subset/availability/min-max filters. */
255
+ private get visiblePresets();
256
+ /** The visible presets bucketed into their divider groups, in group order. */
257
+ private get presetGroups();
258
+ private getToday;
259
+ /** Which preset (if any) the pending selection currently matches. */
260
+ private get activePresetId();
261
+ private createDateFormatters;
262
+ /** The text shown in the trigger: the formatted range, or the placeholder. */
263
+ private get displayValue();
264
+ /** The in-progress (pending) range formatted for the footer, or '' while empty. */
265
+ private get pendingRangeLabel();
266
+ private validateBounds;
267
+ render(): import("lit").TemplateResult<1>;
268
+ /** The presets + calendar + actions shared by the popout and inline layouts. */
269
+ private renderBody;
270
+ /** A single preset row. */
271
+ private renderPreset;
272
+ /** The presets bucketed into one `<ul>` per divider group. */
273
+ private renderPresetGroups;
274
+ /** Wide layout: the grouped presets shown as a list beside the calendar. */
275
+ private renderPresetsList;
276
+ /** Narrow layout: the presets collapse into a dropdown button + popout. */
277
+ private renderPresetsCollapsed;
278
+ private handleFocus;
279
+ private handleBlur;
280
+ private handlePresetClick;
281
+ private handleRangeChange;
282
+ private emitInput;
283
+ private handleApply;
284
+ private handleClear;
285
+ /** Commits a range to `value`, syncs the parts, and fires `change`. */
286
+ private commit;
287
+ private handleTriggerClick;
288
+ /**
289
+ * Open the picker programmatically.
290
+ */
291
+ show(): void;
292
+ /**
293
+ * Close the picker programmatically.
294
+ * @param moveFocusToToggle Move focus back to the trigger after closing.
295
+ */
296
+ hide(moveFocusToToggle?: boolean): void;
297
+ /**
298
+ * Move focus to the picker's trigger.
299
+ */
300
+ focus(options?: FocusOptions): void;
301
+ }
302
+ declare global {
303
+ interface HTMLElementTagNameMap {
304
+ 'nord-date-range-picker': DateRangePicker;
305
+ }
306
+ }
307
+ export {};
@@ -0,0 +1,42 @@
1
+ declare const dateRangePickerLocalization: {
2
+ /** Accessible label for the trigger button that opens the range picker. */
3
+ buttonLabel: string;
4
+ /** Placeholder shown in the trigger when no range is selected. */
5
+ placeholder: string;
6
+ /** Heading shown above the calendar in the popout (small viewports). */
7
+ modalHeading: string;
8
+ /** Accessible label for the close button (small viewports). */
9
+ closeLabel: string;
10
+ /** Label for the button that commits the pending selection. */
11
+ applyLabel: string;
12
+ /** Label for the button that reverts to the last committed selection. */
13
+ cancelLabel: string;
14
+ /** Label for the button that empties the selection. */
15
+ clearLabel: string;
16
+ /** Accessible label for the list of preset ranges. */
17
+ presetsLabel: string;
18
+ /** Label/accessible name for the collapsed preset dropdown on narrow widths. */
19
+ presetsCollapsedLabel: string;
20
+ /** Joins the start and end of the displayed range, e.g. "1 Jan – 7 Jan". */
21
+ rangeSeparator: string;
22
+ /** Error shown when the selected range starts before the minimum date. */
23
+ dateOutOfMinBound: (minDate: string) => string;
24
+ /** Error shown when the selected range ends after the maximum date. */
25
+ dateOutOfMaxBound: (maxDate: string) => string;
26
+ presetToday: string;
27
+ presetYesterday: string;
28
+ presetLastDays: (days: number) => string;
29
+ presetLastMonths: (months: number) => string;
30
+ presetThisMonth: string;
31
+ presetLastWeek: string;
32
+ presetLastMonth: string;
33
+ presetLastQuarter: string;
34
+ presetLastYear: string;
35
+ presetCurrentWeek: string;
36
+ presetCurrentMonth: string;
37
+ presetCurrentQuarter: string;
38
+ presetCurrentYear: string;
39
+ /** Label for a specific calendar quarter, e.g. "Q3 2025". */
40
+ presetQuarter: (quarter: number, year: number) => string;
41
+ };
42
+ export default dateRangePickerLocalization;
@@ -12,6 +12,13 @@ import '../footer/Footer.js';
12
12
  *
13
13
  * @cssprop [--n-drawer-padding=var(--n-space-l)] - Controls the padding around the main area (the default slot), using our [spacing tokens](/tokens/#space).
14
14
  * @cssprop [--n-drawer-background-color=var(--n-color-surface)] - Controls the background color of the drawer.
15
+ * @cssprop [--n-drawer-border-color=var(--n-color-border)] - Controls the color of the drawer's borders.
16
+ * @cssprop [--n-drawer-border-radius=0] - Controls the border radius of the drawer.
17
+ * @cssprop [--n-drawer-border-width=0] - Controls the width of the drawer's borders on every edge. The inline-start edge defaults to `1px` to separate the drawer from adjacent content; set this to `0` to remove all borders.
18
+ * @cssprop [--n-drawer-border-inline-start-width=1px] - Controls the width of the drawer's inline-start border. Falls back to `--n-drawer-border-width`, then `1px`.
19
+ * @cssprop [--n-drawer-border-inline-end-width=var(--n-drawer-border-width)] - Controls the width of the drawer's inline-end border.
20
+ * @cssprop [--n-drawer-border-block-start-width=var(--n-drawer-border-width)] - Controls the width of the drawer's block-start border.
21
+ * @cssprop [--n-drawer-border-block-end-width=var(--n-drawer-border-width)] - Controls the width of the drawer's block-end border.
15
22
  */
16
23
  export default class Drawer extends LitElement {
17
24
  static styles: import("lit").CSSResult[];
@@ -10,7 +10,7 @@ declare const Dropdown_base: (new (...args: any[]) => import("../common/mixins/F
10
10
  * the overlay functionality.
11
11
  *
12
12
  * @status ready
13
- * @category action
13
+ * @category overlay
14
14
  *
15
15
  * @slot - The dropdown content.
16
16
  * @slot toggle - Used to place the toggle for dropdown.
@@ -4,8 +4,10 @@ import { LitElement } from 'lit';
4
4
  * group and is used for grouping items into related categories.
5
5
  *
6
6
  * @status ready
7
- * @category action
7
+ * @category overlay
8
8
  * @slot - The dropdown group content.
9
+ *
10
+ * @parent Dropdown
9
11
  */
10
12
  export default class DropdownGroup extends LitElement {
11
13
  static styles: import("lit").CSSResult[];
@@ -7,7 +7,7 @@ declare const DropdownItem_base: (new (...args: any[]) => import("../common/mixi
7
7
  * dropdown component.
8
8
  *
9
9
  * @status ready
10
- * @category action
10
+ * @category overlay
11
11
  * @slot - The dropdown item content.
12
12
  * @slot start - Used to place content before dropdown item text. Typically used for icons.
13
13
  * @slot end - Used to place content after dropdown item text. Typically used for icons.
@@ -16,6 +16,8 @@ declare const DropdownItem_base: (new (...args: any[]) => import("../common/mixi
16
16
  * @cssprop [--n-dropdown-item-color=var(--n-color-text)] - Controls the color of the text within the item, using our [color tokens](/tokens/#color).
17
17
  * @cssprop [--n-dropdown-item-white-space=nowrap] - Controls how the item's label handles whitespace. Set to `normal` to allow long labels to wrap across multiple lines instead of truncating with an ellipsis.
18
18
  * @cssprop [--n-dropdown-item-align-items=center] - Controls how the item's contents (start slot, label, end slot) align on the cross axis. Useful with multi-line wrapping: set to `flex-start` so icons/avatars sit on the first line instead of the vertical middle.
19
+ *
20
+ * @parent Dropdown
19
21
  */
20
22
  export default class DropdownItem extends DropdownItem_base {
21
23
  static styles: import("lit").CSSResult[];
@@ -12,6 +12,8 @@ import '../popout/Popout.js';
12
12
  * @fires {NordEvent} open - Forwarded from the internal nord-popout.
13
13
  * @fires {NordEvent} close - Forwarded from the internal nord-popout.
14
14
  * @fires {CustomEvent} nord-submenu-navigate - Fired when mobile stack navigation activates this submenu.
15
+ *
16
+ * @parent Dropdown
15
17
  */
16
18
  export default class DropdownSubmenu extends LitElement {
17
19
  static styles: import("lit").CSSResult[];
@@ -0,0 +1,102 @@
1
+ import { LitElement } from 'lit';
2
+ declare const Field_base: typeof LitElement;
3
+ /**
4
+ * Field is the wrapper for a single form control. It lays out a
5
+ * [Field Label](/components/field-label/), a control (such as an
6
+ * [Input](/components/input/)), an optional
7
+ * [Field Description](/components/field-description/) and a
8
+ * [Field Error](/components/field-error/) with consistent spacing.
9
+ *
10
+ * Combine several together in a [Field Group](/components/field-group/) and
11
+ * group related groups with a [Field Set](/components/field-set/).
12
+ *
13
+ * The Field shares its state with the control through context: a Nord control
14
+ * placed inside a Field suppresses its own built-in label/hint/error and takes
15
+ * its accessible name, description and invalid/disabled state from the Field.
16
+ *
17
+ * @status draft
18
+ * @category form
19
+ * @lightDom true
20
+ *
21
+ * @slot - Default slot for the field parts (label, control, content, description, error).
22
+ *
23
+ * @attr {boolean} data-invalid - Present while the field is invalid (mirrors the `invalid` property). Style hook for the whole field.
24
+ * @attr {boolean} data-disabled - Present while the field is disabled (mirrors the `disabled` property).
25
+ * @attr {boolean} data-focused - Present while the field's control has focus. Style hook for focus-within treatments across the field.
26
+ *
27
+ * @cssprop [--n-field-gap=var(--n-space-s)] - Controls the spacing between the field parts, using our [spacing tokens](/tokens/#space).
28
+ */
29
+ export default class Field extends Field_base {
30
+ /**
31
+ * The layout of the field.
32
+ *
33
+ * - `vertical` (default) stacks the label, control and helper text.
34
+ * - `horizontal` places the label and control side by side, vertically centered.
35
+ * - `responsive` lays out horizontally in a wide enough container, otherwise vertical.
36
+ */
37
+ orientation: 'vertical' | 'horizontal' | 'responsive';
38
+ /**
39
+ * Marks the field as invalid, enabling error styling hooks. Also reflected as
40
+ * `data-invalid` and propagated to the control via context.
41
+ */
42
+ invalid: boolean;
43
+ /**
44
+ * Disables the field and, via context, its control. Reflected as `data-disabled`.
45
+ */
46
+ disabled: boolean;
47
+ /** Provides {@link fieldContext} to the control inside this field. */
48
+ private provider;
49
+ /**
50
+ * The control's published `required`, used to drive the label's indicator.
51
+ * Not reactive — it only toggles an attribute imperatively via syncLabelIndicator.
52
+ */
53
+ private controlRequired;
54
+ /**
55
+ * Reflects the field's state onto `data-*` attributes (the Lit equivalent of
56
+ * Base UI's `stateAttributesMapping`): `data-invalid`/`data-disabled` from the
57
+ * properties and `data-focused` tracked automatically.
58
+ */
59
+ private stateAttributes;
60
+ /** Observes child additions/removals so the shared context stays in sync. */
61
+ private childObserver?;
62
+ /** Observes an enclosing Field Set's `disabled` so the cascade stays in sync. */
63
+ private fieldSetObserver?;
64
+ /** `aria-describedby` ids this field added to a native control on its last run. */
65
+ private managedDescribedBy;
66
+ connectedCallback(): void;
67
+ disconnectedCallback(): void;
68
+ protected createRenderRoot(): this;
69
+ protected firstUpdated(): void;
70
+ protected updated(changed: Map<string, unknown>): void;
71
+ /** The control publishes its `required` here; we drive the label indicator. */
72
+ private setRequired;
73
+ /**
74
+ * Recompute and publish the shared context. The provider compares by identity,
75
+ * so we always hand it a fresh object.
76
+ */
77
+ private updateContext;
78
+ private get labelElement();
79
+ /** Ensure the label has an id (for `aria-labelledby` on light-DOM controls). */
80
+ private resolveLabelId;
81
+ /** The label text (for `aria-label` on shadow-DOM controls). */
82
+ private resolveLabelText;
83
+ /**
84
+ * Collect the ids of any description/error elements (in DOM order, generating
85
+ * ids as needed) for the control's `aria-describedby`.
86
+ */
87
+ private collectDescribedById;
88
+ private syncLabelIndicator;
89
+ /**
90
+ * Context only reaches Nord controls (consumers). A native `<input>`/`<select>`/
91
+ * `<textarea>` placed directly in a Field is wired here instead — light-DOM
92
+ * IDREFs resolve in-tree. This is the only remaining imperative path, mirroring
93
+ * Base UI's `Field.Control` being for native elements.
94
+ */
95
+ private linkNativeControl;
96
+ }
97
+ declare global {
98
+ interface HTMLElementTagNameMap {
99
+ 'nord-field': Field;
100
+ }
101
+ }
102
+ export {};
@@ -0,0 +1,22 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * Field Content wraps a [Field Label](/components/field-label/) and
4
+ * [Field Description](/components/field-description/) so they stay aligned as a
5
+ * single text block, which is especially useful in horizontal
6
+ * [Field](/components/field/) layouts.
7
+ *
8
+ * @status draft
9
+ * @category form
10
+ * @lightDom true
11
+ *
12
+ * @slot - Default slot for the label and description.
13
+ */
14
+ export default class FieldContent extends LitElement {
15
+ connectedCallback(): void;
16
+ protected createRenderRoot(): this;
17
+ }
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ 'nord-field-content': FieldContent;
21
+ }
22
+ }
@@ -0,0 +1,21 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * Field Description is the helper or hint text for a [Field](/components/field/).
4
+ * It is styled to match the hint text used by Nord form controls such as
5
+ * [Input](/components/input/).
6
+ *
7
+ * @status draft
8
+ * @category form
9
+ * @lightDom true
10
+ *
11
+ * @slot - Default slot for the description text.
12
+ */
13
+ export default class FieldDescription extends LitElement {
14
+ connectedCallback(): void;
15
+ protected createRenderRoot(): this;
16
+ }
17
+ declare global {
18
+ interface HTMLElementTagNameMap {
19
+ 'nord-field-description': FieldDescription;
20
+ }
21
+ }
@@ -0,0 +1,25 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * Field Error displays validation error text for a [Field](/components/field/).
4
+ * It is styled to match the error text used by Nord form controls such as
5
+ * [Input](/components/input/).
6
+ *
7
+ * Exposes itself as a live region (`role="alert"`, `aria-live="polite"`) so the
8
+ * message is announced when it appears. The message is supplied as the
9
+ * element's children.
10
+ *
11
+ * @status draft
12
+ * @category form
13
+ * @lightDom true
14
+ *
15
+ * @slot - Default slot for the error message(s).
16
+ */
17
+ export default class FieldError extends LitElement {
18
+ connectedCallback(): void;
19
+ protected createRenderRoot(): this;
20
+ }
21
+ declare global {
22
+ interface HTMLElementTagNameMap {
23
+ 'nord-field-error': FieldError;
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ import { LitElement } from 'lit';
2
+ declare const FieldGroup_base: typeof LitElement;
3
+ /**
4
+ * Field Group stacks a set of [Field](/components/field/) controls vertically
5
+ * with consistent spacing. Separate sections with a
6
+ * [Field Separator](/components/field-separator/) when needed.
7
+ *
8
+ * @status draft
9
+ * @category form
10
+ * @lightDom true
11
+ *
12
+ * @slot - Default slot for [Field](/components/field/) and [Field Separator](/components/field-separator/) elements.
13
+ *
14
+ * @cssprop [--n-field-group-gap=var(--n-space-l)] - Controls the spacing between fields, using our [spacing tokens](/tokens/#space).
15
+ */
16
+ export default class FieldGroup extends FieldGroup_base {
17
+ connectedCallback(): void;
18
+ protected createRenderRoot(): this;
19
+ }
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ 'nord-field-group': FieldGroup;
23
+ }
24
+ }
25
+ export {};
@@ -0,0 +1,41 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * Field Label is the label for a control inside a [Field](/components/field/).
4
+ * It is styled to match the labels used by Nord form controls such as
5
+ * [Input](/components/input/).
6
+ *
7
+ * The enclosing Field shares this label's id and text with the control through
8
+ * context, so the control names itself (`aria-labelledby` for light-DOM controls,
9
+ * `aria-label` for shadow-DOM ones) — no wiring needed. Set the `for` attribute to
10
+ * a control's `id` to additionally get native-style click-to-focus.
11
+ *
12
+ * The required indicator is driven by the control: mark the control `required`
13
+ * and the Field toggles this label's `required` attribute automatically.
14
+ *
15
+ * @status draft
16
+ * @category form
17
+ * @lightDom true
18
+ *
19
+ * @slot - Default slot for the label text.
20
+ * @attr {boolean} required - Present while the control is required (set by the Field; not a settable prop).
21
+ */
22
+ export default class FieldLabel extends LitElement {
23
+ /**
24
+ * The `id` of the control this label describes. Enables native-style
25
+ * click-to-focus, mirroring the native `<label for>` attribute.
26
+ */
27
+ for?: string;
28
+ private handleClick;
29
+ connectedCallback(): void;
30
+ disconnectedCallback(): void;
31
+ protected createRenderRoot(): this;
32
+ /** The control this label activates on click. */
33
+ private controlForLabel;
34
+ /** The form control inside a Field — the first child that isn't a field part. */
35
+ private controlInField;
36
+ }
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ 'nord-field-label': FieldLabel;
40
+ }
41
+ }