@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.
Files changed (583) hide show
  1. package/custom-elements.json +51620 -18552
  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-D47b20IT.js +2 -0
  33. package/lib/Calendar-D47b20IT.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-DBxXlbY7.js +2 -0
  48. package/lib/Combobox-DBxXlbY7.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/{LightDismissController-4pH8cdko.js → LightDismissController-wcL1ziJa.js} +2 -2
  180. package/lib/{LightDismissController-4pH8cdko.js.map → LightDismissController-wcL1ziJa.js.map} +1 -1
  181. package/lib/LocalizeController.js +1 -1
  182. package/lib/LocalizeController.js.map +1 -1
  183. package/lib/Message.js +1 -1
  184. package/lib/Message.js.map +1 -1
  185. package/lib/Meter.js +2 -0
  186. package/lib/Meter.js.map +1 -0
  187. package/lib/Modal.js +1 -1
  188. package/lib/Modal.js.map +1 -1
  189. package/lib/ModalController.js +1 -1
  190. package/lib/ModalController.js.map +1 -1
  191. package/lib/NavGroup.js +1 -1
  192. package/lib/NavGroup.js.map +1 -1
  193. package/lib/NavItem.js +1 -1
  194. package/lib/NavItem.js.map +1 -1
  195. package/lib/NavToggle-BY83xpx0.js +2 -0
  196. package/lib/NavToggle-BY83xpx0.js.map +1 -0
  197. package/lib/NavToggle.js +1 -1
  198. package/lib/Navigation.js +1 -1
  199. package/lib/Navigation.js.map +1 -1
  200. package/lib/Notification.js +1 -1
  201. package/lib/Notification.js.map +1 -1
  202. package/lib/NotificationGroup.js +1 -1
  203. package/lib/NotificationGroup.js.map +1 -1
  204. package/lib/NumberField.js +2 -0
  205. package/lib/NumberField.js.map +1 -0
  206. package/lib/NumberFieldEvents.js +2 -0
  207. package/lib/NumberFieldEvents.js.map +1 -0
  208. package/lib/OpenStateController-CCnZ7up6.js +2 -0
  209. package/lib/OpenStateController-CCnZ7up6.js.map +1 -0
  210. package/lib/OtpField.js +2 -0
  211. package/lib/OtpField.js.map +1 -0
  212. package/lib/OtpFieldEvents.js +2 -0
  213. package/lib/OtpFieldEvents.js.map +1 -0
  214. package/lib/Outline.js +2 -0
  215. package/lib/Outline.js.map +1 -0
  216. package/lib/OutlineItem.js +2 -0
  217. package/lib/OutlineItem.js.map +1 -0
  218. package/lib/Pagination.js +2 -0
  219. package/lib/Pagination.js.map +1 -0
  220. package/lib/PaginationContent.js +2 -0
  221. package/lib/PaginationContent.js.map +1 -0
  222. package/lib/PaginationEllipsis.js +2 -0
  223. package/lib/PaginationEllipsis.js.map +1 -0
  224. package/lib/PaginationItem.js +2 -0
  225. package/lib/PaginationItem.js.map +1 -0
  226. package/lib/PaginationLink.js +2 -0
  227. package/lib/PaginationLink.js.map +1 -0
  228. package/lib/PaginationNext.js +2 -0
  229. package/lib/PaginationNext.js.map +1 -0
  230. package/lib/PaginationPrevious.js +2 -0
  231. package/lib/PaginationPrevious.js.map +1 -0
  232. package/lib/Popout-CFtFoCaA.js +2 -0
  233. package/lib/Popout-CFtFoCaA.js.map +1 -0
  234. package/lib/Popout.js +1 -1
  235. package/lib/Progress.js +1 -1
  236. package/lib/Progress.js.map +1 -1
  237. package/lib/ProgressBar.js +1 -1
  238. package/lib/ProgressBar.js.map +1 -1
  239. package/lib/Qrcode.js +2 -2
  240. package/lib/Qrcode.js.map +1 -1
  241. package/lib/Radio.js +1 -1
  242. package/lib/Radio.js.map +1 -1
  243. package/lib/Range.js +1 -1
  244. package/lib/Range.js.map +1 -1
  245. package/lib/ReadonlyMixin-BdJPGtQ3.js +2 -0
  246. package/lib/ReadonlyMixin-BdJPGtQ3.js.map +1 -0
  247. package/lib/ResizeController-14PUwRQy.js +2 -0
  248. package/lib/ResizeController-14PUwRQy.js.map +1 -0
  249. package/lib/ScrollArea.js +2 -0
  250. package/lib/ScrollArea.js.map +1 -0
  251. package/lib/SegmentedControl.js +1 -1
  252. package/lib/SegmentedControl.js.map +1 -1
  253. package/lib/SegmentedControlItem.js +23 -40
  254. package/lib/SegmentedControlItem.js.map +1 -1
  255. package/lib/Select.js +1 -1
  256. package/lib/Select.js.map +1 -1
  257. package/lib/ShortcutController-CV5b0BZl.js +2 -0
  258. package/lib/ShortcutController-CV5b0BZl.js.map +1 -0
  259. package/lib/Skeleton.js +1 -1
  260. package/lib/Skeleton.js.map +1 -1
  261. package/lib/Spinner.js +1 -1
  262. package/lib/Spinner.js.map +1 -1
  263. package/lib/Stack.js +1 -1
  264. package/lib/Stack.js.map +1 -1
  265. package/lib/StateAttributesController-BIh96sXZ.js +2 -0
  266. package/lib/StateAttributesController-BIh96sXZ.js.map +1 -0
  267. package/lib/Sticky-CZImMrGj.js +2 -0
  268. package/lib/Sticky-CZImMrGj.js.map +1 -0
  269. package/lib/Tab.js +1 -1
  270. package/lib/Tab.js.map +1 -1
  271. package/lib/TabGroup.js +1 -1
  272. package/lib/TabGroup.js.map +1 -1
  273. package/lib/TabPanel.js +1 -1
  274. package/lib/TabPanel.js.map +1 -1
  275. package/lib/Table.js +1 -1
  276. package/lib/Table.js.map +1 -1
  277. package/lib/Tag.js +1 -1
  278. package/lib/Tag.js.map +1 -1
  279. package/lib/TagGroup.js +1 -1
  280. package/lib/TagGroup.js.map +1 -1
  281. package/lib/TextField-CSKvieoG.js +2 -0
  282. package/lib/TextField-CSKvieoG.js.map +1 -0
  283. package/lib/TextSelectableMixin-Cfv__lHS.js.map +1 -1
  284. package/lib/Textarea.js +1 -1
  285. package/lib/Textarea.js.map +1 -1
  286. package/lib/TimePicker.js +2 -0
  287. package/lib/TimePicker.js.map +1 -0
  288. package/lib/Toast.js +1 -1
  289. package/lib/Toast.js.map +1 -1
  290. package/lib/ToastGroup.js +1 -1
  291. package/lib/ToastGroup.js.map +1 -1
  292. package/lib/Toggle.js +1 -1
  293. package/lib/Toggle.js.map +1 -1
  294. package/lib/Tooltip.js +1 -1
  295. package/lib/Tooltip.js.map +1 -1
  296. package/lib/TopBar.js +1 -1
  297. package/lib/TopBar.js.map +1 -1
  298. package/lib/Truncate.js +1 -1
  299. package/lib/Truncate.js.map +1 -1
  300. package/lib/VisuallyHidden.js +1 -1
  301. package/lib/VisuallyHidden.js.map +1 -1
  302. package/lib/bundle.js +91 -91
  303. package/lib/bundle.js.map +1 -1
  304. package/lib/combobox-context.js +2 -0
  305. package/lib/combobox-context.js.map +1 -0
  306. package/lib/context-consumer-BJVUulGf.js +7 -0
  307. package/lib/context-consumer-BJVUulGf.js.map +1 -0
  308. package/lib/context-provider-D8lrPLVi.js +12 -0
  309. package/lib/context-provider-D8lrPLVi.js.map +1 -0
  310. package/lib/context-request-event-CCRlXoeR.js +7 -0
  311. package/lib/context-request-event-CCRlXoeR.js.map +1 -0
  312. package/lib/create-context-CJ69ntlY.js +7 -0
  313. package/lib/create-context-CJ69ntlY.js.map +1 -0
  314. package/lib/currency.js +2 -0
  315. package/lib/currency.js.map +1 -0
  316. package/lib/date-adapter.js +1 -1
  317. package/lib/dates-C-ZvzXaC.js +2 -0
  318. package/lib/dates-C-ZvzXaC.js.map +1 -0
  319. package/lib/dates.js +2 -0
  320. package/lib/dates.js.map +1 -0
  321. package/lib/dismiss.js +2 -0
  322. package/lib/dismiss.js.map +1 -0
  323. package/lib/en-us.js +1 -1
  324. package/lib/en-us.js.map +1 -1
  325. package/lib/fi-fi.js +1 -1
  326. package/lib/fi-fi.js.map +1 -1
  327. package/lib/field-context.js +2 -0
  328. package/lib/field-context.js.map +1 -0
  329. package/lib/filter-chip-C97zd4PT.js +2 -0
  330. package/lib/filter-chip-C97zd4PT.js.map +1 -0
  331. package/lib/format.js +2 -0
  332. package/lib/format.js.map +1 -0
  333. package/lib/index.js +1 -1
  334. package/lib/interface-add-small-B-hv2v9J.js +2 -0
  335. package/lib/interface-add-small-B-hv2v9J.js.map +1 -0
  336. package/lib/interface-calendar-Cw2bJfbS.js +2 -0
  337. package/lib/interface-calendar-Cw2bJfbS.js.map +1 -0
  338. package/lib/interface-close-BvKnv9eh.js +2 -0
  339. package/lib/interface-close-BvKnv9eh.js.map +1 -0
  340. package/lib/interface-dropdown-small-CYvgxudU.js +2 -0
  341. package/lib/interface-dropdown-small-CYvgxudU.js.map +1 -0
  342. package/lib/interface-filter-CCsx9-u6.js +2 -0
  343. package/lib/interface-filter-CCsx9-u6.js.map +1 -0
  344. package/lib/interface-remove-small-DUaWSs90.js +2 -0
  345. package/lib/interface-remove-small-DUaWSs90.js.map +1 -0
  346. package/lib/light-dom-styles-DXsbiKU9.js +2 -0
  347. package/lib/light-dom-styles-DXsbiKU9.js.map +1 -0
  348. package/lib/localization.js +1 -1
  349. package/lib/localization.js.map +1 -1
  350. package/lib/localization10.js +2 -0
  351. package/lib/localization10.js.map +1 -0
  352. package/lib/localization11.js +2 -0
  353. package/lib/localization11.js.map +1 -0
  354. package/lib/localization12.js +2 -0
  355. package/lib/localization12.js.map +1 -0
  356. package/lib/localization13.js +2 -0
  357. package/lib/localization13.js.map +1 -0
  358. package/lib/localization14.js +2 -0
  359. package/lib/localization14.js.map +1 -0
  360. package/lib/localization15.js +2 -0
  361. package/lib/localization15.js.map +1 -0
  362. package/lib/localization16.js +2 -0
  363. package/lib/localization16.js.map +1 -0
  364. package/lib/localization17.js +2 -0
  365. package/lib/localization17.js.map +1 -0
  366. package/lib/localization18.js +2 -0
  367. package/lib/localization18.js.map +1 -0
  368. package/lib/localization19.js +2 -0
  369. package/lib/localization19.js.map +1 -0
  370. package/lib/localization2.js +1 -1
  371. package/lib/localization2.js.map +1 -1
  372. package/lib/localization20.js +2 -0
  373. package/lib/localization20.js.map +1 -0
  374. package/lib/localization21.js +2 -0
  375. package/lib/localization21.js.map +1 -0
  376. package/lib/localization22.js +2 -0
  377. package/lib/localization22.js.map +1 -0
  378. package/lib/localization23.js +2 -0
  379. package/lib/localization23.js.map +1 -0
  380. package/lib/localization3.js +1 -1
  381. package/lib/localization3.js.map +1 -1
  382. package/lib/localization4.js +1 -1
  383. package/lib/localization4.js.map +1 -1
  384. package/lib/localization5.js +1 -1
  385. package/lib/localization5.js.map +1 -1
  386. package/lib/localization6.js +1 -1
  387. package/lib/localization6.js.map +1 -1
  388. package/lib/localization7.js +1 -1
  389. package/lib/localization7.js.map +1 -1
  390. package/lib/localization8.js +1 -1
  391. package/lib/localization8.js.map +1 -1
  392. package/lib/localization9.js +1 -1
  393. package/lib/localization9.js.map +1 -1
  394. package/lib/navigation-search-CBbIGzo2.js +2 -0
  395. package/lib/navigation-search-CBbIGzo2.js.map +1 -0
  396. package/lib/paginate.js +2 -0
  397. package/lib/paginate.js.map +1 -0
  398. package/lib/parse.js +2 -0
  399. package/lib/parse.js.map +1 -0
  400. package/lib/primitives-Dj0vyf1-.js +2 -0
  401. package/lib/primitives-Dj0vyf1-.js.map +1 -0
  402. package/lib/react.d.ts +520 -0
  403. package/lib/src/accordion/Accordion.d.ts +121 -0
  404. package/lib/src/accordion/AccordionHeader.d.ts +28 -0
  405. package/lib/src/accordion/AccordionItem.d.ts +68 -0
  406. package/lib/src/accordion/AccordionPanel.d.ts +35 -0
  407. package/lib/src/accordion/AccordionTrigger.d.ts +48 -0
  408. package/lib/src/aside/Aside.d.ts +1 -1
  409. package/lib/src/aside-drawer/AsideDrawer.d.ts +3 -1
  410. package/lib/src/aside-trigger/AsideTrigger.d.ts +2 -0
  411. package/lib/src/autocomplete/Autocomplete.d.ts +190 -0
  412. package/lib/src/autocomplete/localization.d.ts +5 -0
  413. package/lib/src/avatar/Avatar.d.ts +1 -1
  414. package/lib/src/badge/Badge.d.ts +1 -1
  415. package/lib/src/banner/Banner.d.ts +3 -0
  416. package/lib/src/button-group/ButtonGroup.d.ts +1 -1
  417. package/lib/src/calendar/Calendar.d.ts +45 -1
  418. package/lib/src/calendar/DateRangeSelectEvent.d.ts +16 -0
  419. package/lib/src/card/Card.d.ts +1 -1
  420. package/lib/src/collapsible/Collapsible.d.ts +69 -0
  421. package/lib/src/collapsible/CollapsiblePanel.d.ts +35 -0
  422. package/lib/src/collapsible/CollapsibleTrigger.d.ts +38 -0
  423. package/lib/src/combobox/Combobox.d.ts +131 -0
  424. package/lib/src/combobox/ComboboxBase.d.ts +421 -0
  425. package/lib/src/combobox/ComboboxEvents.d.ts +25 -0
  426. package/lib/src/combobox/ComboboxGroup.d.ts +34 -0
  427. package/lib/src/combobox/ComboboxOption.d.ts +47 -0
  428. package/lib/src/combobox/combobox-context.d.ts +18 -0
  429. package/lib/src/combobox/localization.d.ts +6 -0
  430. package/lib/src/common/controllers/ActiveDescendantController.d.ts +45 -0
  431. package/lib/src/common/controllers/CollapseController.d.ts +50 -0
  432. package/lib/src/common/controllers/FocusableWhenDisabledController.d.ts +29 -0
  433. package/lib/src/common/controllers/OpenStateController.d.ts +58 -0
  434. package/lib/src/common/controllers/RovingFocusController.d.ts +40 -0
  435. package/lib/src/common/controllers/ShortcutController.d.ts +5 -5
  436. package/lib/src/common/controllers/StateAttributesController.d.ts +47 -0
  437. package/lib/src/common/controllers/TransitionStatusController.d.ts +48 -0
  438. package/lib/src/common/dates.d.ts +13 -0
  439. package/lib/src/common/light-dom-styles.d.ts +17 -0
  440. package/lib/src/common/mixins/FieldControlMixin.d.ts +60 -0
  441. package/lib/src/common/mixins/FormAssociatedMixin.d.ts +8 -25
  442. package/lib/src/common/mixins/TextSelectableMixin.d.ts +1 -0
  443. package/lib/src/common/prefers-reduced-motion.d.ts +7 -0
  444. package/lib/src/date-picker/DatePicker.d.ts +2 -0
  445. package/lib/src/date-range-picker/DateRangeChangeEvent.d.ts +27 -0
  446. package/lib/src/date-range-picker/DateRangePicker.d.ts +307 -0
  447. package/lib/src/date-range-picker/localization.d.ts +42 -0
  448. package/lib/src/divider/Divider.d.ts +1 -1
  449. package/lib/src/drawer/Drawer.d.ts +1 -1
  450. package/lib/src/dropdown/Dropdown.d.ts +1 -1
  451. package/lib/src/dropdown-group/DropdownGroup.d.ts +3 -1
  452. package/lib/src/dropdown-item/DropdownItem.d.ts +3 -1
  453. package/lib/src/dropdown-submenu/DropdownSubmenu.d.ts +2 -0
  454. package/lib/src/field/Field.d.ts +102 -0
  455. package/lib/src/field/FieldContent.d.ts +22 -0
  456. package/lib/src/field/FieldDescription.d.ts +21 -0
  457. package/lib/src/field/FieldError.d.ts +25 -0
  458. package/lib/src/field/FieldGroup.d.ts +25 -0
  459. package/lib/src/field/FieldLabel.d.ts +41 -0
  460. package/lib/src/field/FieldLegend.d.ts +20 -0
  461. package/lib/src/field/FieldSeparator.d.ts +21 -0
  462. package/lib/src/field/FieldSet.d.ts +28 -0
  463. package/lib/src/field/FieldTitle.d.ts +21 -0
  464. package/lib/src/field/field-context.d.ts +47 -0
  465. package/lib/src/fieldset/Fieldset.d.ts +12 -4
  466. package/lib/src/filter-add-button/FilterAddButton.d.ts +91 -0
  467. package/lib/src/filter-add-button/FilterAddButtonEvents.d.ts +17 -0
  468. package/lib/src/filter-add-button/localization.d.ts +4 -0
  469. package/lib/src/filter-bar/FilterBar.d.ts +37 -0
  470. package/lib/src/filter-date-range/FilterDateRange.d.ts +96 -0
  471. package/lib/src/filter-date-range/FilterDateRangeEvents.d.ts +37 -0
  472. package/lib/src/filter-date-range/localization.d.ts +11 -0
  473. package/lib/src/filter-dropdown/FilterDropdown.d.ts +247 -0
  474. package/lib/src/filter-dropdown/FilterDropdownEvents.d.ts +57 -0
  475. package/lib/src/filter-dropdown/localization.d.ts +14 -0
  476. package/lib/src/filter-field/FilterField.d.ts +89 -0
  477. package/lib/src/filter-field/FilterFieldEvents.d.ts +18 -0
  478. package/lib/src/filter-field/localization.d.ts +8 -0
  479. package/lib/src/filter-input/FilterInput.d.ts +102 -0
  480. package/lib/src/filter-input/localization.d.ts +5 -0
  481. package/lib/src/filter-reset-button/FilterResetButton.d.ts +50 -0
  482. package/lib/src/filter-reset-button/localization.d.ts +4 -0
  483. package/lib/src/footer/Footer.d.ts +1 -1
  484. package/lib/src/header/Header.d.ts +1 -1
  485. package/lib/src/icon/Icon.d.ts +1 -1
  486. package/lib/src/index.d.ts +61 -0
  487. package/lib/src/input/Input.d.ts +2 -1
  488. package/lib/src/item/Item.d.ts +44 -0
  489. package/lib/src/item/ItemActions.d.ts +20 -0
  490. package/lib/src/item/ItemContent.d.ts +22 -0
  491. package/lib/src/item/ItemDescription.d.ts +20 -0
  492. package/lib/src/item/ItemFooter.d.ts +20 -0
  493. package/lib/src/item/ItemGroup.d.ts +22 -0
  494. package/lib/src/item/ItemHeader.d.ts +20 -0
  495. package/lib/src/item/ItemMedia.d.ts +28 -0
  496. package/lib/src/item/ItemSeparator.d.ts +21 -0
  497. package/lib/src/item/ItemTitle.d.ts +19 -0
  498. package/lib/src/kbd/Kbd.d.ts +54 -0
  499. package/lib/src/kbd/KbdGroup.d.ts +22 -0
  500. package/lib/src/layout/Layout.d.ts +3 -3
  501. package/lib/src/localization/en-us.d.ts +88 -0
  502. package/lib/src/localization/translation.d.ts +88 -0
  503. package/lib/src/meter/Meter.d.ts +76 -0
  504. package/lib/src/nav-group/NavGroup.d.ts +2 -0
  505. package/lib/src/nav-item/NavItem.d.ts +2 -0
  506. package/lib/src/nav-toggle/NavToggle.d.ts +3 -1
  507. package/lib/src/notification-group/NotificationGroup.d.ts +2 -0
  508. package/lib/src/number-field/NumberField.d.ts +377 -0
  509. package/lib/src/number-field/NumberFieldEvents.d.ts +37 -0
  510. package/lib/src/number-field/currency.d.ts +24 -0
  511. package/lib/src/number-field/format.d.ts +8 -0
  512. package/lib/src/number-field/localization.d.ts +6 -0
  513. package/lib/src/number-field/parse.d.ts +44 -0
  514. package/lib/src/number-field/validate.d.ts +24 -0
  515. package/lib/src/otp-field/OtpField.d.ts +188 -0
  516. package/lib/src/otp-field/OtpFieldEvents.d.ts +38 -0
  517. package/lib/src/otp-field/localization.d.ts +4 -0
  518. package/lib/src/outline/Outline.d.ts +111 -0
  519. package/lib/src/outline/OutlineItem.d.ts +42 -0
  520. package/lib/src/outline/localization.d.ts +4 -0
  521. package/lib/src/pagination/Pagination.d.ts +51 -0
  522. package/lib/src/pagination/PaginationContent.d.ts +27 -0
  523. package/lib/src/pagination/PaginationEllipsis.d.ts +27 -0
  524. package/lib/src/pagination/PaginationItem.d.ts +24 -0
  525. package/lib/src/pagination/PaginationLink.d.ts +30 -0
  526. package/lib/src/pagination/PaginationNext.d.ts +24 -0
  527. package/lib/src/pagination/PaginationPrevious.d.ts +24 -0
  528. package/lib/src/pagination/localization.d.ts +4 -0
  529. package/lib/src/pagination/paginate.d.ts +20 -0
  530. package/lib/src/popout/Popout.d.ts +9 -0
  531. package/lib/src/qrcode/Qrcode.d.ts +1 -1
  532. package/lib/src/scroll-area/ScrollArea.d.ts +101 -0
  533. package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +2 -0
  534. package/lib/src/stack/Stack.d.ts +1 -1
  535. package/lib/src/storybook-utils/dates.d.ts +2 -0
  536. package/lib/src/storybook-utils/dismiss.d.ts +1 -0
  537. package/lib/src/storybook-utils/story-descriptions.d.ts +2 -0
  538. package/lib/src/tab-group/TabGroup.d.ts +2 -0
  539. package/lib/src/tab-panel/TabPanel.d.ts +2 -0
  540. package/lib/src/tag/Tag.d.ts +1 -1
  541. package/lib/src/tag-group/TagGroup.d.ts +3 -1
  542. package/lib/src/time-picker/TimePicker.d.ts +105 -0
  543. package/lib/src/time-picker/localization.d.ts +4 -0
  544. package/lib/src/toast-group/ToastGroup.d.ts +11 -0
  545. package/lib/src/top-bar/TopBar.d.ts +1 -1
  546. package/lib/src/truncate/Truncate.d.ts +1 -1
  547. package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
  548. package/lib/story-descriptions.js +2 -0
  549. package/lib/story-descriptions.js.map +1 -0
  550. package/lib/tinykeys-DwvDXsEb.js +2 -0
  551. package/lib/tinykeys-DwvDXsEb.js.map +1 -0
  552. package/lib/translation.js +1 -1
  553. package/lib/translation.js.map +1 -1
  554. package/lib/validate.js +2 -0
  555. package/lib/validate.js.map +1 -0
  556. package/lib/vue.d.ts +418 -0
  557. package/package.json +10 -13
  558. package/lib/Calendar-ChNZdVRO.js +0 -2
  559. package/lib/Calendar-ChNZdVRO.js.map +0 -1
  560. package/lib/Component-DSU3Qp0O.js +0 -2
  561. package/lib/Component-DSU3Qp0O.js.map +0 -1
  562. package/lib/DropdownItem-Cb-7cHMg.js +0 -2
  563. package/lib/DropdownItem-Cb-7cHMg.js.map +0 -1
  564. package/lib/Fieldset.js +0 -2
  565. package/lib/Fieldset.js.map +0 -1
  566. package/lib/FormAssociatedMixin-B4Qj-CQN.js +0 -2
  567. package/lib/FormAssociatedMixin-B4Qj-CQN.js.map +0 -1
  568. package/lib/FormField-BFaVzUjk.js +0 -2
  569. package/lib/FormField-BFaVzUjk.js.map +0 -1
  570. package/lib/NavToggle-DzKbd-El.js +0 -2
  571. package/lib/NavToggle-DzKbd-El.js.map +0 -1
  572. package/lib/Popout-CYqn_dZu.js +0 -2
  573. package/lib/Popout-CYqn_dZu.js.map +0 -1
  574. package/lib/ShortcutController-BIb3WGzH.js +0 -2
  575. package/lib/ShortcutController-BIb3WGzH.js.map +0 -1
  576. package/lib/Sticky-DqnqENYN.js +0 -2
  577. package/lib/Sticky-DqnqENYN.js.map +0 -1
  578. package/lib/TextField-B955GOhe.js +0 -2
  579. package/lib/TextField-B955GOhe.js.map +0 -1
  580. package/lib/dates-CAAlPKZi.js +0 -2
  581. package/lib/dates-CAAlPKZi.js.map +0 -1
  582. package/lib/tinykeys.module-_6MZt7MP.js +0 -2
  583. package/lib/tinykeys.module-_6MZt7MP.js.map +0 -1
package/lib/vue.d.ts CHANGED
@@ -18,6 +18,31 @@ type WCProps<TWebComponent extends HTMLElement> = Partial<
18
18
  >;
19
19
 
20
20
  interface NordComponents {
21
+ "nord-accordion": DefineComponent<
22
+ WCProps<Components.Accordion> & {
23
+ /**
24
+ * Dispatched when an item is expanded or collapsed. The event includes a `value` array of the currently open item values.
25
+ */
26
+ onChange?: (event: Event) => void;
27
+ }
28
+ >;
29
+
30
+ "nord-accordion-header": DefineComponent<
31
+ WCProps<Components.AccordionHeader> & {}
32
+ >;
33
+
34
+ "nord-accordion-item": DefineComponent<
35
+ WCProps<Components.AccordionItem> & {}
36
+ >;
37
+
38
+ "nord-accordion-panel": DefineComponent<
39
+ WCProps<Components.AccordionPanel> & {}
40
+ >;
41
+
42
+ "nord-accordion-trigger": DefineComponent<
43
+ WCProps<Components.AccordionTrigger> & {}
44
+ >;
45
+
21
46
  "nord-aside": DefineComponent<
22
47
  WCProps<Components.Aside> & {
23
48
  /**
@@ -58,6 +83,35 @@ interface NordComponents {
58
83
 
59
84
  "nord-aside-trigger": DefineComponent<WCProps<Components.AsideTrigger> & {}>;
60
85
 
86
+ "nord-autocomplete": DefineComponent<
87
+ WCProps<Components.Autocomplete> & {
88
+ /**
89
+ * Dispatched when the committed value changes via user interaction.
90
+ */
91
+ onChange?: (event: Event) => void;
92
+
93
+ /**
94
+ * Dispatched when the value is cleared via the clear button or `clear()`.
95
+ */
96
+ onClear?: (event: Event) => void;
97
+
98
+ /**
99
+ * Dispatched when the listbox is closed.
100
+ */
101
+ onClose?: (event: Event) => void;
102
+
103
+ /**
104
+ * Dispatched as the user types into the input.
105
+ */
106
+ onInput?: (event: Event) => void;
107
+
108
+ /**
109
+ * Dispatched when the listbox is opened.
110
+ */
111
+ onOpen?: (event: Event) => void;
112
+ }
113
+ >;
114
+
61
115
  "nord-avatar": DefineComponent<WCProps<Components.Avatar> & {}>;
62
116
 
63
117
  "nord-badge": DefineComponent<WCProps<Components.Badge> & {}>;
@@ -79,6 +133,11 @@ interface NordComponents {
79
133
  * Dispatched when the calendar's focused date changes.
80
134
  */
81
135
  onNordFocusDate?: (event: Event) => void;
136
+
137
+ /**
138
+ * Dispatched in `range` mode when a complete range (start and end) has been selected.
139
+ */
140
+ onRangeChange?: (event: Event) => void;
82
141
  }
83
142
  >;
84
143
 
@@ -98,6 +157,65 @@ interface NordComponents {
98
157
  }
99
158
  >;
100
159
 
160
+ "nord-collapsible": DefineComponent<
161
+ WCProps<Components.Collapsible> & {
162
+ /**
163
+ * Dispatched when the collapsible is opened or closed. The event includes an `open` property reflecting the new state.
164
+ */
165
+ onToggle?: (event: Event) => void;
166
+ }
167
+ >;
168
+
169
+ "nord-collapsible-panel": DefineComponent<
170
+ WCProps<Components.CollapsiblePanel> & {}
171
+ >;
172
+
173
+ "nord-collapsible-trigger": DefineComponent<
174
+ WCProps<Components.CollapsibleTrigger> & {}
175
+ >;
176
+
177
+ "nord-combobox": DefineComponent<
178
+ WCProps<Components.Combobox> & {
179
+ /**
180
+ * Dispatched when the committed value changes via user interaction.
181
+ */
182
+ onChange?: (event: Event) => void;
183
+
184
+ /**
185
+ * Dispatched when the value is cleared via the clear button or `clear()`.
186
+ */
187
+ onClear?: (event: Event) => void;
188
+
189
+ /**
190
+ * Dispatched when the listbox is closed.
191
+ */
192
+ onClose?: (event: Event) => void;
193
+
194
+ /**
195
+ * Dispatched when the user chooses the "Create" affordance in a `creatable` combobox.
196
+ */
197
+ onCreate?: (event: Event) => void;
198
+
199
+ /**
200
+ * Dispatched as the user types into the search input.
201
+ */
202
+ onInput?: (event: Event) => void;
203
+
204
+ /**
205
+ * Dispatched when the listbox is opened.
206
+ */
207
+ onOpen?: (event: Event) => void;
208
+ }
209
+ >;
210
+
211
+ "nord-combobox-group": DefineComponent<
212
+ WCProps<Components.ComboboxGroup> & {}
213
+ >;
214
+
215
+ "nord-combobox-option": DefineComponent<
216
+ WCProps<Components.ComboboxOption> & {}
217
+ >;
218
+
101
219
  "nord-command-menu": DefineComponent<
102
220
  WCProps<Components.CommandMenu> & {
103
221
  /**
@@ -151,6 +269,30 @@ interface NordComponents {
151
269
  }
152
270
  >;
153
271
 
272
+ "nord-date-range-picker": DefineComponent<
273
+ WCProps<Components.DateRangePicker> & {
274
+ /**
275
+ * Dispatched when the committed range changes (Apply or Clear).
276
+ */
277
+ onChange?: (event: Event) => void;
278
+
279
+ /**
280
+ * Dispatched when the popout is closed.
281
+ */
282
+ onClose?: (event: Event) => void;
283
+
284
+ /**
285
+ * Dispatched live as the pending range changes inside the popout.
286
+ */
287
+ onInput?: (event: Event) => void;
288
+
289
+ /**
290
+ * Dispatched when the popout is opened.
291
+ */
292
+ onOpen?: (event: Event) => void;
293
+ }
294
+ >;
295
+
154
296
  "nord-divider": DefineComponent<WCProps<Components.Divider> & {}>;
155
297
 
156
298
  "nord-drawer": DefineComponent<WCProps<Components.Drawer> & {}>;
@@ -196,8 +338,168 @@ interface NordComponents {
196
338
 
197
339
  "nord-empty-state": DefineComponent<WCProps<Components.EmptyState> & {}>;
198
340
 
341
+ "nord-field": DefineComponent<WCProps<Components.Field> & {}>;
342
+
343
+ "nord-field-content": DefineComponent<WCProps<Components.FieldContent> & {}>;
344
+
345
+ "nord-field-description": DefineComponent<
346
+ WCProps<Components.FieldDescription> & {}
347
+ >;
348
+
349
+ "nord-field-error": DefineComponent<WCProps<Components.FieldError> & {}>;
350
+
351
+ "nord-field-group": DefineComponent<WCProps<Components.FieldGroup> & {}>;
352
+
353
+ "nord-field-label": DefineComponent<WCProps<Components.FieldLabel> & {}>;
354
+
355
+ "nord-field-legend": DefineComponent<WCProps<Components.FieldLegend> & {}>;
356
+
357
+ "nord-field-separator": DefineComponent<
358
+ WCProps<Components.FieldSeparator> & {}
359
+ >;
360
+
199
361
  "nord-fieldset": DefineComponent<WCProps<Components.Fieldset> & {}>;
200
362
 
363
+ "nord-field-set": DefineComponent<WCProps<Components.FieldSet> & {}>;
364
+
365
+ "nord-field-title": DefineComponent<WCProps<Components.FieldTitle> & {}>;
366
+
367
+ "nord-filter-add-button": DefineComponent<
368
+ WCProps<Components.FilterAddButton> & {
369
+ /**
370
+ * Dispatched when the popout is closed.
371
+ */
372
+ onClose?: (event: Event) => void;
373
+
374
+ /**
375
+ * Dispatched when the popout is opened.
376
+ */
377
+ onOpen?: (event: Event) => void;
378
+
379
+ /**
380
+ * Dispatched with the chosen option's `id` when an option is selected.
381
+ */
382
+ onSelect?: (event: Event) => void;
383
+ }
384
+ >;
385
+
386
+ "nord-filter-bar": DefineComponent<WCProps<Components.FilterBar> & {}>;
387
+
388
+ "nord-filter-date-range": DefineComponent<
389
+ WCProps<Components.FilterDateRange> & {
390
+ /**
391
+ * Dispatched when the committed range changes (Apply or clear).
392
+ */
393
+ onChange?: (event: Event) => void;
394
+
395
+ /**
396
+ * Dispatched when the chip's clear affordance is pressed.
397
+ */
398
+ onClear?: (event: Event) => void;
399
+
400
+ /**
401
+ * Dispatched when the popout is closed.
402
+ */
403
+ onClose?: (event: Event) => void;
404
+
405
+ /**
406
+ * Dispatched when the popout is opened.
407
+ */
408
+ onOpen?: (event: Event) => void;
409
+
410
+ /**
411
+ * Dispatched when the chip's remove affordance is pressed.
412
+ */
413
+ onRemove?: (event: Event) => void;
414
+ }
415
+ >;
416
+
417
+ "nord-filter-dropdown": DefineComponent<
418
+ WCProps<Components.FilterDropdown> & {
419
+ /**
420
+ * Dispatched when the committed selection changes via user interaction.
421
+ */
422
+ onChange?: (event: Event) => void;
423
+
424
+ /**
425
+ * Dispatched when the selection is cleared, before `change`.
426
+ */
427
+ onClear?: (event: Event) => void;
428
+
429
+ /**
430
+ * Dispatched when the popout is closed.
431
+ */
432
+ onClose?: (event: Event) => void;
433
+
434
+ /**
435
+ * Dispatched when the list is scrolled near its end (infinite scroll).
436
+ */
437
+ onLoadMore?: (event: Event) => void;
438
+
439
+ /**
440
+ * Dispatched when the popout is opened.
441
+ */
442
+ onOpen?: (event: Event) => void;
443
+
444
+ /**
445
+ * Dispatched when the filter is removed (only when `removable`).
446
+ */
447
+ onRemove?: (event: Event) => void;
448
+
449
+ /**
450
+ * Dispatched as the user types when `searchable` (use with `internal-search="false"` for async search).
451
+ */
452
+ onSearchChange?: (event: Event) => void;
453
+ }
454
+ >;
455
+
456
+ "nord-filter-field": DefineComponent<
457
+ WCProps<Components.FilterField> & {
458
+ /**
459
+ * Dispatched when the clear affordance is pressed.
460
+ */
461
+ onClear?: (event: Event) => void;
462
+
463
+ /**
464
+ * Dispatched when the remove affordance is pressed.
465
+ */
466
+ onRemove?: (event: Event) => void;
467
+ }
468
+ >;
469
+
470
+ "nord-filter-input": DefineComponent<
471
+ WCProps<Components.FilterInput> & {
472
+ /**
473
+ * Dispatched when the value is committed.
474
+ */
475
+ onChange?: (event: Event) => void;
476
+
477
+ /**
478
+ * Dispatched when the chip-mode popout is closed.
479
+ */
480
+ onClose?: (event: Event) => void;
481
+
482
+ /**
483
+ * Dispatched as the user types into the input.
484
+ */
485
+ onInput?: (event: Event) => void;
486
+
487
+ /**
488
+ * Dispatched when the chip-mode popout is opened.
489
+ */
490
+ onOpen?: (event: Event) => void;
491
+ }
492
+ >;
493
+
494
+ "nord-filter-reset-button": DefineComponent<
495
+ WCProps<Components.FilterResetButton> & {
496
+ /**
497
+ * Dispatched when the button is pressed to clear all active filters.
498
+ */
499
+ onReset?: (event: Event) => void;
500
+ }
501
+ >;
502
+
201
503
  "nord-footer": DefineComponent<WCProps<Components.Footer> & {}>;
202
504
 
203
505
  "nord-header": DefineComponent<WCProps<Components.Header> & {}>;
@@ -223,6 +525,34 @@ interface NordComponents {
223
525
  }
224
526
  >;
225
527
 
528
+ "nord-item": DefineComponent<WCProps<Components.Item> & {}>;
529
+
530
+ "nord-item-actions": DefineComponent<WCProps<Components.ItemActions> & {}>;
531
+
532
+ "nord-item-content": DefineComponent<WCProps<Components.ItemContent> & {}>;
533
+
534
+ "nord-item-description": DefineComponent<
535
+ WCProps<Components.ItemDescription> & {}
536
+ >;
537
+
538
+ "nord-item-footer": DefineComponent<WCProps<Components.ItemFooter> & {}>;
539
+
540
+ "nord-item-group": DefineComponent<WCProps<Components.ItemGroup> & {}>;
541
+
542
+ "nord-item-header": DefineComponent<WCProps<Components.ItemHeader> & {}>;
543
+
544
+ "nord-item-media": DefineComponent<WCProps<Components.ItemMedia> & {}>;
545
+
546
+ "nord-item-separator": DefineComponent<
547
+ WCProps<Components.ItemSeparator> & {}
548
+ >;
549
+
550
+ "nord-item-title": DefineComponent<WCProps<Components.ItemTitle> & {}>;
551
+
552
+ "nord-kbd": DefineComponent<WCProps<Components.Kbd> & {}>;
553
+
554
+ "nord-kbd-group": DefineComponent<WCProps<Components.KbdGroup> & {}>;
555
+
226
556
  "nord-layout": DefineComponent<
227
557
  WCProps<Components.Layout> & {
228
558
  /**
@@ -239,6 +569,8 @@ interface NordComponents {
239
569
 
240
570
  "nord-message": DefineComponent<WCProps<Components.Message> & {}>;
241
571
 
572
+ "nord-meter": DefineComponent<WCProps<Components.Meter> & {}>;
573
+
242
574
  "nord-modal": DefineComponent<
243
575
  WCProps<Components.Modal> & {
244
576
  /**
@@ -315,6 +647,81 @@ interface NordComponents {
315
647
  }
316
648
  >;
317
649
 
650
+ "nord-number-field": DefineComponent<
651
+ WCProps<Components.NumberField> & {
652
+ /**
653
+ * Dispatched when the value is committed (on blur, keyboard step, or pointer-up after a button hold or scrub). Carries the numeric value and a `reason`.
654
+ */
655
+ onChange?: (event: Event) => void;
656
+
657
+ /**
658
+ * Dispatched as the value changes during interaction (typing a parseable value, clearing, each step, each button tick, each wheel notch, each scrub increment).
659
+ */
660
+ onInput?: (event: Event) => void;
661
+ }
662
+ >;
663
+
664
+ "nord-otp-field": DefineComponent<
665
+ WCProps<Components.OtpField> & {
666
+ /**
667
+ * Dispatched alongside `input` when the committed value changes via user interaction.
668
+ */
669
+ onChange?: (event: Event) => void;
670
+
671
+ /**
672
+ * Dispatched after the value updates when every cell becomes filled.
673
+ */
674
+ onComplete?: (event: Event) => void;
675
+
676
+ /**
677
+ * Dispatched whenever the OTP value changes through user interaction (typing, Backspace/Delete, paste, autofill).
678
+ */
679
+ onInput?: (event: Event) => void;
680
+
681
+ /**
682
+ * Dispatched when typed or pasted text contained characters rejected by `type`.
683
+ */
684
+ onValueInvalid?: (event: Event) => void;
685
+ }
686
+ >;
687
+
688
+ "nord-outline": DefineComponent<
689
+ WCProps<Components.Outline> & {
690
+ /**
691
+ * Dispatched when the active section changes. Includes an `activeId` property.
692
+ */
693
+ onChange?: (event: Event) => void;
694
+ }
695
+ >;
696
+
697
+ "nord-outline-item": DefineComponent<WCProps<Components.OutlineItem> & {}>;
698
+
699
+ "nord-pagination": DefineComponent<WCProps<Components.Pagination> & {}>;
700
+
701
+ "nord-pagination-content": DefineComponent<
702
+ WCProps<Components.PaginationContent> & {}
703
+ >;
704
+
705
+ "nord-pagination-ellipsis": DefineComponent<
706
+ WCProps<Components.PaginationEllipsis> & {}
707
+ >;
708
+
709
+ "nord-pagination-item": DefineComponent<
710
+ WCProps<Components.PaginationItem> & {}
711
+ >;
712
+
713
+ "nord-pagination-link": DefineComponent<
714
+ WCProps<Components.PaginationLink> & {}
715
+ >;
716
+
717
+ "nord-pagination-next": DefineComponent<
718
+ WCProps<Components.PaginationNext> & {}
719
+ >;
720
+
721
+ "nord-pagination-previous": DefineComponent<
722
+ WCProps<Components.PaginationPrevious> & {}
723
+ >;
724
+
318
725
  "nord-popout": DefineComponent<
319
726
  WCProps<Components.Popout> & {
320
727
  /**
@@ -363,6 +770,8 @@ interface NordComponents {
363
770
  }
364
771
  >;
365
772
 
773
+ "nord-scroll-area": DefineComponent<WCProps<Components.ScrollArea> & {}>;
774
+
366
775
  "nord-segmented-control": DefineComponent<
367
776
  WCProps<Components.SegmentedControl> & {
368
777
  /**
@@ -461,6 +870,15 @@ interface NordComponents {
461
870
  }
462
871
  >;
463
872
 
873
+ "nord-time-picker": DefineComponent<
874
+ WCProps<Components.TimePicker> & {
875
+ /**
876
+ * Fired when the selected time changes.
877
+ */
878
+ onChange?: (event: Event) => void;
879
+ }
880
+ >;
881
+
464
882
  "nord-toast": DefineComponent<
465
883
  WCProps<Components.Toast> & {
466
884
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nordhealth/components",
3
3
  "type": "module",
4
- "version": "4.26.2",
4
+ "version": "5.0.0",
5
5
  "description": "This package includes Nord Design System Web Components",
6
6
  "author": "Nordhealth <support@nordhealth.design>",
7
7
  "license": "SEE LICENSE IN LICENSE.md",
@@ -38,18 +38,20 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@floating-ui/dom": "^1.7.5",
41
+ "@lit/context": "^1.1.6",
41
42
  "@nordhealth/icons": "^3.17.0",
43
+ "@tanstack/lit-virtual": "^3.13.30",
44
+ "@tanstack/virtual-core": "3.17.1",
42
45
  "lit": "^3.3.2",
43
46
  "qr": "^0.4.2",
44
- "tinykeys": "^1.4.0"
47
+ "tinykeys": "^4.0.0"
45
48
  },
46
49
  "devDependencies": {
47
50
  "@custom-elements-manifest/analyzer": "^0.10.10",
48
51
  "@nordhealth/css": "^4.4.1",
49
52
  "@nordhealth/fonts": "^3.0.4",
50
- "@nordhealth/themes": "^9.0.9",
51
- "@nordhealth/tokens": "^8.1.0",
52
- "@open-wc/eslint-config": "^12.0.3",
53
+ "@nordhealth/themes": "^9.1.0",
54
+ "@nordhealth/tokens": "^8.2.0",
53
55
  "@open-wc/testing-helpers": "^3.0.1",
54
56
  "@playwright/test": "1.58.0",
55
57
  "@rollup/plugin-node-resolve": "^15.3.1",
@@ -60,18 +62,12 @@
60
62
  "@storybook/addon-docs": "^10.4.6",
61
63
  "@storybook/addon-themes": "^10.4.6",
62
64
  "@storybook/web-components-vite": "^10.4.6",
65
+ "@tailwindcss/vite": "^4.2.0",
63
66
  "@types/node": "^22.19.11",
64
- "@typescript-eslint/eslint-plugin": "^8.56.0",
65
- "@typescript-eslint/parser": "^8.56.0",
66
67
  "@vitest/browser": "^4.0.18",
67
68
  "@vitest/browser-playwright": "^4.0.18",
68
69
  "axe-core": "^4.10.3",
69
70
  "concurrently": "^9.2.1",
70
- "eslint": "^8.57.1",
71
- "eslint-plugin-import": "^2.32.0",
72
- "eslint-plugin-lit": "^1.15.0",
73
- "eslint-plugin-lit-a11y": "^4.1.4",
74
- "eslint-plugin-wc": "^1.5.0",
75
71
  "glob": "^11.1.0",
76
72
  "http-server": "^14.1.1",
77
73
  "prettier": "^3.8.1",
@@ -81,6 +77,7 @@
81
77
  "rollup-plugin-minify-html-literals-v3": "^1.3.4",
82
78
  "rollup-plugin-summary": "^2.0.1",
83
79
  "storybook": "^10.4.6",
80
+ "tailwindcss": "^4.2.0",
84
81
  "tslib": "^2.8.1",
85
82
  "typescript": "~5.5.4",
86
83
  "vitest": "^4.0.18",
@@ -91,5 +88,5 @@
91
88
  "rollup": "~4.21.3"
92
89
  }
93
90
  },
94
- "gitHead": "3f129d3bee6b26dda6d61357ac15b5f0dba5aae5"
91
+ "gitHead": "2519b8c8f89f72bbb22d4e62528a58ea8c3d9150"
95
92
  }
@@ -1,2 +0,0 @@
1
- import{_ as a}from"./tslib.es6-CmLYFWVC.js";import{css as e,LitElement as n,isServer as t,html as i}from"lit";import{query as r,property as s,state as o,customElement as d}from"lit/decorators.js";import{classMap as l}from"lit/directives/class-map.js";import{repeat as c}from"lit/directives/repeat.js";import{o as h}from"./tinykeys.module-_6MZt7MP.js";import{m as u,c as v}from"./collection-Dvg2XbxV.js";import{D as p}from"./DirectionController-ChvNGESZ.js";import{E as g}from"./EventController-BBOmvfLa.js";import{D as f,i as b,p as m,a as y,s as w,e as x,b as D,g as z,d as k,f as _,h as $,j as F,k as Y,l as j,m as M,n as S,o as T}from"./dates-CAAlPKZi.js";import{o as C}from"./observe-D0n0zOfU.js";import{c as N}from"./cond-CI1KbneT.js";import{r as L}from"./number-Dg2vCfGd.js";import{s as O}from"./Component-DSU3Qp0O.js";import X from"./Icon.js";import{LocalizeController as E}from"./LocalizeController.js";import{DateSelectEvent as W}from"./DateSelectEvent.js";import"./Button.js";import"./VisuallyHidden.js";var A=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m.100342 6.92903 2.121318-2.12132 7.77818 7.77819 7.77826-7.77828 2.1213 2.12132-8.4853 8.48536c-.7811.7811-2.04743.7811-2.82848 0z" fill="currentColor"/></svg>',tags:"nordicon arrow down small caret pointing triangle chevron",title:"arrow-down-small"});var U=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m13.0712.105225 2.1213 2.121315-7.77816 7.77816 7.77826 7.7783-2.1213 2.1213-8.48539-8.4854c-.78105-.781-.78105-2.04735 0-2.82839z" fill="currentColor"/></svg>',tags:"nordicon arrow left small caret pointing triangle chevron",title:"arrow-left-small"});var I=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m6.92903.100342-2.12132 2.121318 7.77819 7.77818-7.77828 7.77826 2.12132 2.1213 8.48536-8.4853c.7811-.7811.7811-2.04743 0-2.82848z" fill="currentColor"/></svg>',tags:"nordicon arrow right small caret pointing triangle chevron",title:"arrow-right-small"});const P=a=>a.preventDefault();class B{constructor(a,e){this.hadFirstUpdate=!1,this.initialTouchX=0,this.initialTouchY=0,this.handleTouchStart=a=>{const[{pageX:e,pageY:n}]=a.changedTouches;this.initialTouchX=e,this.initialTouchY=n},this.handleTouchEnd=a=>{const[{pageX:e,pageY:n}]=a.changedTouches,{matchesGesture:t,onSwipeEnd:i}=this.options,r=e-this.initialTouchX,s=n-this.initialTouchY,o={initialX:this.initialTouchX,initialY:this.initialTouchY,pageX:e,pageY:n,distX:r,distY:s};t(o)&&(a.preventDefault(),i(o))},a.addController(this),this.events=new g(a),this.options={target:()=>a,...e}}hostUpdated(){if(!this.hadFirstUpdate){this.hadFirstUpdate=!0;const a=this.options.target();this.events.listen(a,"touchstart",this.handleTouchStart),this.events.listen(a,"touchmove",P),this.events.listen(a,"touchend",this.handleTouchEnd)}}hostDisconnected(){this.hadFirstUpdate=!1}}function H({distX:a,distY:e}){return Math.abs(a)>=70&&Math.abs(e)<=70}function R({distX:a,distY:e}){return Math.abs(e)>=70&&Math.abs(a)<=70&&e>0}const V=e`:host{--_n-calendar-box-shadow:var(--n-calendar-box-shadow, var(--n-box-shadow-popout));--_n-calendar-border-radius:var(--n-calendar-border-radius, var(--n-border-radius-s));--_n-calendar-highlight-color:var(--n-calendar-highlight-color, var(--n-color-accent));--_n-calendar-padding-block-start:var(--n-calendar-padding-block, var(--n-space-m));--_n-calendar-padding-block-end:var(--n-calendar-padding-block, var(--n-space-m));--_n-calendar-padding-inline:var(--n-calendar-padding-inline, var(--n-space-m));--_n-calendar-day-size:var(--n-calendar-day-size, var(--n-space-xl));--_n-calendar-day-font-size:var(--n-calendar-day-font-size, var(--n-font-size-m));--_n-calendar-select-label-font-size:var(--n-calendar-select-label-font-size, var(--n-font-size-xl));--_n-calendar-nav-padding-inline:var(--n-calendar-nav-padding-inline, 11px);--_n-calendar-nav-gap:var(--n-calendar-nav-gap, var(--n-space-xs));--_n-calendar-header-margin-block-end:var(--n-calendar-header-margin-block-end, var(--n-space-m));--_n-calendar-header-padding-block-end:var(--n-calendar-header-padding-block-end, 0);--_n-calendar-header-gap:var(--n-calendar-header-gap, var(--n-space-s));--_n-calendar-inline-size:var(--n-calendar-inline-size, max-content);font-feature-settings:var(--n-font-features-reduced)}:host([size='s']){--_n-calendar-day-size:var(--n-calendar-day-size, calc(var(--n-space-l) + var(--n-space-xs)));--_n-calendar-day-font-size:var(--n-calendar-day-font-size, var(--n-font-size-s));--_n-calendar-select-label-font-size:var(--n-calendar-select-label-font-size, var(--n-font-size-l));--_n-calendar-nav-padding-inline:var(--n-calendar-nav-padding-inline, var(--n-space-s));--_n-calendar-header-margin-block-end:var(--n-calendar-header-margin-block-end, var(--n-space-s));--_n-calendar-header-padding-block-end:var(--n-calendar-header-padding-block-end, var(--n-space-xs))}.n-calendar{user-select:none;background:var(--n-color-surface);box-shadow:var(--_n-calendar-box-shadow);border-radius:var(--_n-calendar-border-radius);inline-size:var(--_n-calendar-inline-size);min-inline-size:min-content;padding-block-start:var(--_n-calendar-padding-block-start);padding-block-end:var(--_n-calendar-padding-block-end);padding-inline-start:var(--_n-calendar-padding-inline);padding-inline-end:var(--_n-calendar-padding-inline)}:host([expand]){--_n-calendar-inline-size:var(--n-calendar-inline-size, 100%)}.n-calendar-table{border-collapse:collapse;border-spacing:0;color:var(--n-color-text);font-size:var(--n-font-size-m);font-weight:var(--n-font-weight);text-align:center;inline-size:100%}.n-calendar-table-header{font-size:var(--n-font-size-s);font-weight:var(--n-font-weight-active);letter-spacing:1px;padding-block-end:var(--n-space-s);text-decoration:none;text-transform:uppercase}.n-calendar-cell{text-align:center;padding:1px}.n-calendar-day{appearance:none;background:0 0;border:0;border-radius:var(--n-border-radius-s);color:var(--n-color-text);cursor:pointer;display:inline-block;font-family:var(--n-font-family);font-size:var(--_n-calendar-day-font-size);font-weight:var(--n-font-weight);font-variant-numeric:tabular-nums;block-size:var(--_n-calendar-day-size);inline-size:var(--_n-calendar-day-size);padding:0 0 1px;position:relative;text-align:center;vertical-align:middle}.n-calendar-day[aria-current=date]{box-shadow:0 0 0 1px var(--n-color-text-link);color:var(--n-color-text-link);position:relative}.n-calendar-day:hover{background:var(--n-color-active)}.n-calendar-day:focus,.n-calendar-day[aria-pressed=true]{background:var(--n-color-accent);box-shadow:none;color:var(--n-color-text-on-accent);outline:0}.n-calendar-day:active{background:var(--n-color-accent);box-shadow:none!important;color:var(--n-color-text-on-accent)}.n-calendar-day:focus{box-shadow:0 0 5px var(--n-color-accent)}.n-calendar-day:not(.is-month){box-shadow:none}.n-calendar-day:not(.is-month),.n-calendar-day[aria-disabled=true]{background:0 0;color:var(--n-color-text-weakest);cursor:default}.n-calendar-day[aria-disabled=true]{color:var(--n-color-text-weaker);text-decoration:line-through}.n-calendar-day:not(.is-month)[aria-disabled=true]{color:var(--n-color-text-weakest);text-decoration:none}.n-calendar-day[aria-disabled=true][aria-current=date]{box-shadow:0 0 0 1px var(--n-color-accent);color:var(--n-color-text-link)}.n-calendar-day[aria-disabled=true][aria-current=date]:focus{box-shadow:0 0 5px var(--n-color-accent);background:var(--n-color-accent);color:var(--n-color-text-on-accent)}.n-calendar-day[aria-disabled=true]:not([aria-current=date])::before{display:none}.n-calendar-day.is-outside{background:0 0;box-shadow:none;color:var(--n-color-text-weakest);cursor:default;pointer-events:none}.n-calendar-day.is-outside::before{display:none}.n-calendar-day.is-highlighted::after{--_n-calendar-highlight-size:5px;content:'';position:absolute;inset-inline-start:calc(50% - (var(--_n-calendar-highlight-size)/ 2));inset-block-end:var(--n-space-xs);block-size:var(--_n-calendar-highlight-size);inline-size:var(--_n-calendar-highlight-size);border-radius:var(--n-border-radius-circle);background-color:var(--_n-calendar-highlight-color)}.n-calendar-day.is-highlighted.is-month:is([aria-pressed=true],:focus):not([aria-disabled=true])::after{background-color:var(--n-color-text-on-accent)}.n-calendar-day.is-highlighted:is(:not(.is-month),.is-outside,[aria-disabled=true])::after{background-color:var(--n-color-text-weakest)}.n-calendar-header{align-items:center;display:flex;justify-content:space-between;column-gap:var(--_n-calendar-header-gap);margin-block-end:var(--_n-calendar-header-margin-block-end);padding-block-end:var(--_n-calendar-header-padding-block-end);inline-size:100%}.n-calendar-nav{display:flex;column-gap:var(--_n-calendar-nav-gap);white-space:nowrap}.n-calendar-nav nord-button{--_n-button-padding-inline:var(--_n-calendar-nav-padding-inline)}.n-calendar-select{display:inline-flex;position:relative;line-height:var(--n-line-height)}.n-calendar-select span{margin-inline-end:var(--n-space-s)}.n-calendar-select select{cursor:pointer;font-size:var(--n-font-size-l);block-size:100%;inset-inline-start:0;opacity:0;position:absolute;inset-block-start:0;inline-size:100%}.n-calendar-select select:focus+.n-calendar-select-label{box-shadow:0 0 0 2px var(--n-color-accent)}.n-calendar-select-label{display:flex;align-items:center;border-radius:var(--n-border-radius-s);color:var(--n-color-text);font-size:var(--_n-calendar-select-label-font-size);font-weight:var(--n-font-weight-active);padding-block:0;padding-inline-start:var(--n-space-s);padding-inline-end:var(--n-space-xs);pointer-events:none;position:relative;inline-size:100%}`;function q(a){return e=>{e.preventDefault(),a(e)}}X.registerIcon(I),X.registerIcon(U),X.registerIcon(A);const G=()=>!1,J=()=>!1,K="dialog-header";let Q=class extends n{constructor(){super(...arguments),this.direction=new p(this),this.swipe=new B(this,{matchesGesture:H,onSwipeEnd:({distX:a})=>this.addMonths(a<0?1:-1)}),this.shortcuts=h({ArrowRight:q((()=>this.addDays(this.direction.isLTR?1:-1))),ArrowLeft:q((()=>this.addDays(this.direction.isLTR?-1:1))),ArrowDown:q((()=>this.addDays(7))),ArrowUp:q((()=>this.addDays(-7))),Home:q((()=>this.startOfWeek())),End:q((()=>this.endOfWeek())),PageUp:q((()=>this.addMonths(-1))),PageDown:q((()=>this.addMonths(1))),"Shift+PageUp":q((()=>this.addYears(-1))),"Shift+PageDown":q((()=>this.addYears(1)))}),this.localize=new E(this,{onLangChange:()=>this.handleLangChange()}),this.value="",this.firstDayOfWeek=f.Monday,this.expand=!1,this.size="m",this.isDateDisabled=G,this.isDateHighlighted=J,this.activeFocus=!1,this.focusedDay=new Date,this.handleDaySelect=a=>{const e=b(a,m(this.min||""),m(this.max||"")),n=!this.isDateDisabled(a);e&&n&&(this.value=y(a),this.dispatchEvent(new W("change",a)))},this.handleMonthSelect=a=>{this.setMonth(Number.parseInt(a.target.value,10))},this.handleYearSelect=a=>{this.setYear(Number.parseInt(a.target.value,10))},this.handleNextMonthClick=a=>{a.preventDefault(),this.addMonths(1)},this.handlePreviousMonthClick=a=>{a.preventDefault(),this.addMonths(-1)},this.enableActiveFocus=()=>{this.activeFocus=!0},this.disableActiveFocus=a=>{const e=a.currentTarget,n=a.relatedTarget;n&&!e.contains(n)&&(this.activeFocus=!1)}}focus(a){var e;const n=null!==(e=null==a?void 0:a.target)&&void 0!==e?e:"day";"day"===n?this.focusedDayNode.focus():"month"===n&&this.monthSelectNode.focus()}render(){const a=this.getToday(),e=m(this.value),n=this.focusedDay.getMonth(),r=this.focusedDay.getFullYear(),s=m(this.min||""),o=m(this.max||""),d=s?w(s):void 0,h=o?x(o):void 0,p=a.getFullYear(),g=s?s.getFullYear():p-100,f=o?o.getFullYear():p+10;return t&&this.handleLangChange(),i`<div class="n-calendar"><div class="n-calendar-header"><div><nord-visually-hidden><h2 id="${K}" aria-live="polite" aria-atomic="true">${this.monthNames[n]}, ${this.focusedDay.getFullYear()}</h2></nord-visually-hidden><div class="n-calendar-select"><select aria-label="${this.localize.term("monthSelectLabel")}" class="n-calendar-select-month" @input="${this.handleMonthSelect}">${this.monthNames.map(((a,e)=>i`<option value="${e}" ?selected="${e===n}" ?disabled="${!b(new Date(r,e,1),d,h)}">${a}</option>`))}</select><div class="n-calendar-select-label" aria-hidden="true"><span>${this.monthNamesShort[n]}</span><nord-icon color="var(--n-color-icon)" name="arrow-down-small" size="xxs"></nord-icon></div></div><div class="n-calendar-select"><select aria-label="${this.localize.term("yearSelectLabel")}" class="n-calendar-select-year" @input="${this.handleYearSelect}">${c(L(g,f),(a=>a),(a=>i`<option ?selected="${a===r}">${a}</option>`))}</select><div class="n-calendar-select-label" aria-hidden="true"><span>${this.focusedDay.getFullYear()}</span><nord-icon color="var(--n-color-icon)" name="arrow-down-small" size="xxs"></nord-icon></div></div></div><div class="n-calendar-nav"><nord-button class="n-calendar-prev" size="${this.size}" square @click="${this.handlePreviousMonthClick}" ?disabled="${D(s,this.focusedDay)}" type="button"><nord-visually-hidden>${this.localize.term("prevMonthLabel")}</nord-visually-hidden><nord-icon name="${this.direction.isLTR?"arrow-left-small":"arrow-right-small"}" size="${"s"===this.size?"xs":"s"}"></nord-icon></nord-button><nord-button class="n-calendar-next" size="${this.size}" square @click="${this.handleNextMonthClick}" ?disabled="${D(o,this.focusedDay)}" type="button"><nord-visually-hidden>${this.localize.term("nextMonthLabel")}</nord-visually-hidden><nord-icon name="${this.direction.isLTR?"arrow-right-small":"arrow-left-small"}" size="${"s"===this.size?"xs":"s"}"></nord-icon></nord-button></div></div><table class="n-calendar-table" aria-labelledby="${K}" @focusin="${this.enableActiveFocus}" @focusout="${this.disableActiveFocus}"><thead><tr>${u(this.dayNames,this.firstDayOfWeek,((a,e)=>i`<th class="n-calendar-table-header" scope="col"><span aria-hidden="true">${this.dayNamesShort[e]}</span><nord-visually-hidden>${a}</nord-visually-hidden></th>`))}</tr></thead><tbody>${v(z(this.focusedDay,this.firstDayOfWeek),7).map((n=>i`<tr class="n-calendar-row">${n.map((n=>{const t=!b(n,s,o),r=k(n,a),d=this.isDateDisabled(n),c=k(n,e),h=D(n,this.focusedDay),u=this.isDateHighlighted(n),v=this.dateFormatShort.format(n),p=u&&"string"==typeof u?`${v}, ${u}`:v;return i`<td class="n-calendar-cell"><button type="button" tabindex="${k(n,this.focusedDay)?0:-1}" class="${l({"n-calendar-day":!0,"is-outside":t,"is-month":h,"is-highlighted":u})}" @click="${()=>this.handleDaySelect(n)}" @keydown="${this.shortcuts}" ?disabled="${t}" aria-disabled="${N(d,"true")}" aria-pressed="${c?"true":"false"}" aria-current="${N(r,"date")}" aria-label="${p}"><span aria-hidden="true">${n.getDate()}</span></button></td>`}))}</tr>`))}</tbody></table></div>`}handleValueChange(){this.setFocusedDay(m(this.value)||this.getToday())}handleFocusedDayChange(){this.activeFocus&&this.focusedDayNode.focus()}handleLangChange(){const a=this.localize.resolvedLang;this.dateFormatShort=new Intl.DateTimeFormat(a,{day:"numeric",month:"long"}),this.monthNames=_(a,"long"),this.monthNamesShort=_(a,"short"),this.dayNames=$(a,"long"),this.dayNamesShort=$(a,"narrow")}getToday(){return m(this.today||"")||new Date}addDays(a){this.setFocusedDay(F(this.focusedDay,a))}addMonths(a){this.setMonth(this.focusedDay.getMonth()+a)}addYears(a){this.setYear(this.focusedDay.getFullYear()+a)}startOfWeek(){this.setFocusedDay(Y(this.focusedDay,this.firstDayOfWeek))}endOfWeek(){this.setFocusedDay(j(this.focusedDay,this.firstDayOfWeek))}setMonth(a){const e=M(w(this.focusedDay),a),n=x(e),t=M(this.focusedDay,a);this.setFocusedDay(S(t,e,n))}setYear(a){const e=T(w(this.focusedDay),a),n=x(e),t=T(this.focusedDay,a);this.setFocusedDay(S(t,e,n))}setFocusedDay(a){this.focusedDay=S(a,m(this.min||""),m(this.max||"")),this.dispatchEvent(new W("nord-focus-date",this.focusedDay))}};Q.styles=[O,V],a([r(".n-calendar-select-month",!0)],Q.prototype,"monthSelectNode",void 0),a([r('button[tabindex="0"]')],Q.prototype,"focusedDayNode",void 0),a([s()],Q.prototype,"value",void 0),a([s({reflect:!0,type:Number,attribute:"first-day-of-week"})],Q.prototype,"firstDayOfWeek",void 0),a([s({reflect:!0})],Q.prototype,"min",void 0),a([s({reflect:!0})],Q.prototype,"max",void 0),a([s({reflect:!0})],Q.prototype,"today",void 0),a([s({reflect:!0,type:Boolean})],Q.prototype,"expand",void 0),a([s({reflect:!0})],Q.prototype,"size",void 0),a([s({attribute:!1})],Q.prototype,"isDateDisabled",void 0),a([s({attribute:!1})],Q.prototype,"isDateHighlighted",void 0),a([o()],Q.prototype,"activeFocus",void 0),a([o()],Q.prototype,"focusedDay",void 0),a([C("value")],Q.prototype,"handleValueChange",null),a([C("focusedDay","updated")],Q.prototype,"handleFocusedDayChange",null),Q=a([d("nord-calendar")],Q);var Z=Q;export{Z as C,B as S,R as i};
2
- //# sourceMappingURL=Calendar-ChNZdVRO.js.map