@nordhealth/components 4.26.2 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (545) hide show
  1. package/custom-elements.json +53898 -21499
  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/Layout.js +1 -3
  176. package/lib/Layout.js.map +1 -1
  177. package/lib/LocalizeController.js +1 -1
  178. package/lib/LocalizeController.js.map +1 -1
  179. package/lib/Message.js +1 -1
  180. package/lib/Message.js.map +1 -1
  181. package/lib/Meter.js +2 -0
  182. package/lib/Meter.js.map +1 -0
  183. package/lib/Modal.js +1 -1
  184. package/lib/Modal.js.map +1 -1
  185. package/lib/ModalController.js +1 -1
  186. package/lib/ModalController.js.map +1 -1
  187. package/lib/NavGroup.js +1 -1
  188. package/lib/NavGroup.js.map +1 -1
  189. package/lib/NavItem.js +1 -1
  190. package/lib/NavItem.js.map +1 -1
  191. package/lib/NavToggle-BY83xpx0.js +2 -0
  192. package/lib/NavToggle-BY83xpx0.js.map +1 -0
  193. package/lib/NavToggle.js +1 -1
  194. package/lib/Navigation.js +1 -1
  195. package/lib/Navigation.js.map +1 -1
  196. package/lib/Notification.js +1 -1
  197. package/lib/Notification.js.map +1 -1
  198. package/lib/NotificationGroup.js +1 -1
  199. package/lib/NotificationGroup.js.map +1 -1
  200. package/lib/NumberField.js +2 -0
  201. package/lib/NumberField.js.map +1 -0
  202. package/lib/NumberFieldEvents.js +2 -0
  203. package/lib/NumberFieldEvents.js.map +1 -0
  204. package/lib/OpenStateController-CCnZ7up6.js +2 -0
  205. package/lib/OpenStateController-CCnZ7up6.js.map +1 -0
  206. package/lib/OtpField.js +2 -0
  207. package/lib/OtpField.js.map +1 -0
  208. package/lib/OtpFieldEvents.js +2 -0
  209. package/lib/OtpFieldEvents.js.map +1 -0
  210. package/lib/Pagination.js +2 -0
  211. package/lib/Pagination.js.map +1 -0
  212. package/lib/PaginationContent.js +2 -0
  213. package/lib/PaginationContent.js.map +1 -0
  214. package/lib/PaginationEllipsis.js +2 -0
  215. package/lib/PaginationEllipsis.js.map +1 -0
  216. package/lib/PaginationItem.js +2 -0
  217. package/lib/PaginationItem.js.map +1 -0
  218. package/lib/PaginationLink.js +2 -0
  219. package/lib/PaginationLink.js.map +1 -0
  220. package/lib/PaginationNext.js +2 -0
  221. package/lib/PaginationNext.js.map +1 -0
  222. package/lib/PaginationPrevious.js +2 -0
  223. package/lib/PaginationPrevious.js.map +1 -0
  224. package/lib/Popout-DpN7PP9h.js +2 -0
  225. package/lib/Popout-DpN7PP9h.js.map +1 -0
  226. package/lib/Popout.js +1 -1
  227. package/lib/Progress.js +1 -1
  228. package/lib/Progress.js.map +1 -1
  229. package/lib/ProgressBar.js +1 -1
  230. package/lib/ProgressBar.js.map +1 -1
  231. package/lib/Qrcode.js +2 -2
  232. package/lib/Radio.js +1 -1
  233. package/lib/Radio.js.map +1 -1
  234. package/lib/Range.js +1 -1
  235. package/lib/Range.js.map +1 -1
  236. package/lib/ReadonlyMixin-BdJPGtQ3.js +2 -0
  237. package/lib/ReadonlyMixin-BdJPGtQ3.js.map +1 -0
  238. package/lib/ResizeController-14PUwRQy.js +2 -0
  239. package/lib/ResizeController-14PUwRQy.js.map +1 -0
  240. package/lib/ScrollArea.js +2 -0
  241. package/lib/ScrollArea.js.map +1 -0
  242. package/lib/SegmentedControl.js +1 -1
  243. package/lib/SegmentedControl.js.map +1 -1
  244. package/lib/SegmentedControlItem.js +23 -40
  245. package/lib/SegmentedControlItem.js.map +1 -1
  246. package/lib/Select.js +1 -1
  247. package/lib/Select.js.map +1 -1
  248. package/lib/Skeleton.js +1 -1
  249. package/lib/Skeleton.js.map +1 -1
  250. package/lib/Spinner.js +1 -1
  251. package/lib/Spinner.js.map +1 -1
  252. package/lib/Stack.js +1 -1
  253. package/lib/Stack.js.map +1 -1
  254. package/lib/StateAttributesController-BIh96sXZ.js +2 -0
  255. package/lib/StateAttributesController-BIh96sXZ.js.map +1 -0
  256. package/lib/Sticky-CZImMrGj.js +2 -0
  257. package/lib/Sticky-CZImMrGj.js.map +1 -0
  258. package/lib/Tab.js +1 -1
  259. package/lib/Tab.js.map +1 -1
  260. package/lib/TabGroup.js +1 -1
  261. package/lib/TabGroup.js.map +1 -1
  262. package/lib/TabPanel.js +1 -1
  263. package/lib/TabPanel.js.map +1 -1
  264. package/lib/Table.js +1 -1
  265. package/lib/Table.js.map +1 -1
  266. package/lib/Tag.js +1 -1
  267. package/lib/Tag.js.map +1 -1
  268. package/lib/TagGroup.js +1 -1
  269. package/lib/TagGroup.js.map +1 -1
  270. package/lib/TextField-CSKvieoG.js +2 -0
  271. package/lib/TextField-CSKvieoG.js.map +1 -0
  272. package/lib/TextSelectableMixin-Cfv__lHS.js.map +1 -1
  273. package/lib/Textarea.js +1 -1
  274. package/lib/Textarea.js.map +1 -1
  275. package/lib/TimePicker.js +2 -0
  276. package/lib/TimePicker.js.map +1 -0
  277. package/lib/Toast.js +1 -1
  278. package/lib/Toast.js.map +1 -1
  279. package/lib/ToastGroup.js +1 -1
  280. package/lib/ToastGroup.js.map +1 -1
  281. package/lib/Toggle.js +1 -1
  282. package/lib/Toggle.js.map +1 -1
  283. package/lib/Tooltip.js +1 -1
  284. package/lib/Tooltip.js.map +1 -1
  285. package/lib/TopBar.js +1 -1
  286. package/lib/TopBar.js.map +1 -1
  287. package/lib/Truncate.js +1 -1
  288. package/lib/Truncate.js.map +1 -1
  289. package/lib/VisuallyHidden.js +1 -1
  290. package/lib/bundle.js +91 -91
  291. package/lib/bundle.js.map +1 -1
  292. package/lib/combobox-context.js +2 -0
  293. package/lib/combobox-context.js.map +1 -0
  294. package/lib/context-consumer-BJVUulGf.js +7 -0
  295. package/lib/context-consumer-BJVUulGf.js.map +1 -0
  296. package/lib/context-provider-D8lrPLVi.js +12 -0
  297. package/lib/context-provider-D8lrPLVi.js.map +1 -0
  298. package/lib/context-request-event-CCRlXoeR.js +7 -0
  299. package/lib/context-request-event-CCRlXoeR.js.map +1 -0
  300. package/lib/create-context-CJ69ntlY.js +7 -0
  301. package/lib/create-context-CJ69ntlY.js.map +1 -0
  302. package/lib/currency.js +2 -0
  303. package/lib/currency.js.map +1 -0
  304. package/lib/date-adapter.js +1 -1
  305. package/lib/dates-C-ZvzXaC.js +2 -0
  306. package/lib/dates-C-ZvzXaC.js.map +1 -0
  307. package/lib/dates.js +2 -0
  308. package/lib/dates.js.map +1 -0
  309. package/lib/dismiss.js +2 -0
  310. package/lib/dismiss.js.map +1 -0
  311. package/lib/en-us.js +1 -1
  312. package/lib/en-us.js.map +1 -1
  313. package/lib/fi-fi.js +1 -1
  314. package/lib/fi-fi.js.map +1 -1
  315. package/lib/field-context.js +2 -0
  316. package/lib/field-context.js.map +1 -0
  317. package/lib/filter-chip-C97zd4PT.js +2 -0
  318. package/lib/filter-chip-C97zd4PT.js.map +1 -0
  319. package/lib/format.js +2 -0
  320. package/lib/format.js.map +1 -0
  321. package/lib/index.js +1 -1
  322. package/lib/interface-add-small-B-hv2v9J.js +2 -0
  323. package/lib/interface-add-small-B-hv2v9J.js.map +1 -0
  324. package/lib/interface-calendar-Cw2bJfbS.js +2 -0
  325. package/lib/interface-calendar-Cw2bJfbS.js.map +1 -0
  326. package/lib/interface-close-BvKnv9eh.js +2 -0
  327. package/lib/interface-close-BvKnv9eh.js.map +1 -0
  328. package/lib/interface-dropdown-small-CYvgxudU.js +2 -0
  329. package/lib/interface-dropdown-small-CYvgxudU.js.map +1 -0
  330. package/lib/interface-filter-CCsx9-u6.js +2 -0
  331. package/lib/interface-filter-CCsx9-u6.js.map +1 -0
  332. package/lib/interface-remove-small-DUaWSs90.js +2 -0
  333. package/lib/interface-remove-small-DUaWSs90.js.map +1 -0
  334. package/lib/light-dom-styles-DXsbiKU9.js +2 -0
  335. package/lib/light-dom-styles-DXsbiKU9.js.map +1 -0
  336. package/lib/localization.js +1 -1
  337. package/lib/localization.js.map +1 -1
  338. package/lib/localization10.js +2 -0
  339. package/lib/localization10.js.map +1 -0
  340. package/lib/localization11.js +2 -0
  341. package/lib/localization11.js.map +1 -0
  342. package/lib/localization12.js +2 -0
  343. package/lib/localization12.js.map +1 -0
  344. package/lib/localization13.js +2 -0
  345. package/lib/localization13.js.map +1 -0
  346. package/lib/localization14.js +2 -0
  347. package/lib/localization14.js.map +1 -0
  348. package/lib/localization15.js +2 -0
  349. package/lib/localization15.js.map +1 -0
  350. package/lib/localization16.js +2 -0
  351. package/lib/localization16.js.map +1 -0
  352. package/lib/localization17.js +2 -0
  353. package/lib/localization17.js.map +1 -0
  354. package/lib/localization18.js +2 -0
  355. package/lib/localization18.js.map +1 -0
  356. package/lib/localization19.js +2 -0
  357. package/lib/localization19.js.map +1 -0
  358. package/lib/localization2.js +1 -1
  359. package/lib/localization2.js.map +1 -1
  360. package/lib/localization20.js +2 -0
  361. package/lib/localization20.js.map +1 -0
  362. package/lib/localization21.js +2 -0
  363. package/lib/localization21.js.map +1 -0
  364. package/lib/localization22.js +2 -0
  365. package/lib/localization22.js.map +1 -0
  366. package/lib/localization3.js +1 -1
  367. package/lib/localization3.js.map +1 -1
  368. package/lib/localization4.js +1 -1
  369. package/lib/localization4.js.map +1 -1
  370. package/lib/localization5.js +1 -1
  371. package/lib/localization5.js.map +1 -1
  372. package/lib/localization6.js +1 -1
  373. package/lib/localization6.js.map +1 -1
  374. package/lib/localization7.js +1 -1
  375. package/lib/localization7.js.map +1 -1
  376. package/lib/localization8.js +1 -1
  377. package/lib/localization8.js.map +1 -1
  378. package/lib/localization9.js +1 -1
  379. package/lib/localization9.js.map +1 -1
  380. package/lib/navigation-search-CBbIGzo2.js +2 -0
  381. package/lib/navigation-search-CBbIGzo2.js.map +1 -0
  382. package/lib/paginate.js +2 -0
  383. package/lib/paginate.js.map +1 -0
  384. package/lib/parse.js +2 -0
  385. package/lib/parse.js.map +1 -0
  386. package/lib/primitives-Dj0vyf1-.js +2 -0
  387. package/lib/primitives-Dj0vyf1-.js.map +1 -0
  388. package/lib/react.d.ts +505 -0
  389. package/lib/src/accordion/Accordion.d.ts +121 -0
  390. package/lib/src/accordion/AccordionHeader.d.ts +28 -0
  391. package/lib/src/accordion/AccordionItem.d.ts +68 -0
  392. package/lib/src/accordion/AccordionPanel.d.ts +35 -0
  393. package/lib/src/accordion/AccordionTrigger.d.ts +47 -0
  394. package/lib/src/aside-drawer/AsideDrawer.d.ts +2 -0
  395. package/lib/src/aside-trigger/AsideTrigger.d.ts +2 -0
  396. package/lib/src/autocomplete/Autocomplete.d.ts +190 -0
  397. package/lib/src/autocomplete/localization.d.ts +5 -0
  398. package/lib/src/badge/Badge.d.ts +1 -1
  399. package/lib/src/banner/Banner.d.ts +3 -0
  400. package/lib/src/button-group/ButtonGroup.d.ts +1 -1
  401. package/lib/src/calendar/Calendar.d.ts +44 -0
  402. package/lib/src/calendar/DateRangeSelectEvent.d.ts +16 -0
  403. package/lib/src/collapsible/Collapsible.d.ts +69 -0
  404. package/lib/src/collapsible/CollapsiblePanel.d.ts +35 -0
  405. package/lib/src/collapsible/CollapsibleTrigger.d.ts +38 -0
  406. package/lib/src/combobox/Combobox.d.ts +131 -0
  407. package/lib/src/combobox/ComboboxBase.d.ts +421 -0
  408. package/lib/src/combobox/ComboboxEvents.d.ts +25 -0
  409. package/lib/src/combobox/ComboboxGroup.d.ts +34 -0
  410. package/lib/src/combobox/ComboboxOption.d.ts +47 -0
  411. package/lib/src/combobox/combobox-context.d.ts +18 -0
  412. package/lib/src/combobox/localization.d.ts +6 -0
  413. package/lib/src/common/controllers/ActiveDescendantController.d.ts +45 -0
  414. package/lib/src/common/controllers/CollapseController.d.ts +50 -0
  415. package/lib/src/common/controllers/FocusableWhenDisabledController.d.ts +29 -0
  416. package/lib/src/common/controllers/OpenStateController.d.ts +58 -0
  417. package/lib/src/common/controllers/RovingFocusController.d.ts +40 -0
  418. package/lib/src/common/controllers/StateAttributesController.d.ts +47 -0
  419. package/lib/src/common/controllers/TransitionStatusController.d.ts +48 -0
  420. package/lib/src/common/dates.d.ts +13 -0
  421. package/lib/src/common/light-dom-styles.d.ts +17 -0
  422. package/lib/src/common/mixins/FieldControlMixin.d.ts +60 -0
  423. package/lib/src/common/mixins/FormAssociatedMixin.d.ts +8 -25
  424. package/lib/src/common/mixins/TextSelectableMixin.d.ts +1 -0
  425. package/lib/src/common/prefers-reduced-motion.d.ts +7 -0
  426. package/lib/src/date-picker/DatePicker.d.ts +2 -0
  427. package/lib/src/date-range-picker/DateRangeChangeEvent.d.ts +27 -0
  428. package/lib/src/date-range-picker/DateRangePicker.d.ts +307 -0
  429. package/lib/src/date-range-picker/localization.d.ts +42 -0
  430. package/lib/src/dropdown/Dropdown.d.ts +1 -1
  431. package/lib/src/dropdown-group/DropdownGroup.d.ts +3 -1
  432. package/lib/src/dropdown-item/DropdownItem.d.ts +3 -1
  433. package/lib/src/dropdown-submenu/DropdownSubmenu.d.ts +2 -0
  434. package/lib/src/field/Field.d.ts +102 -0
  435. package/lib/src/field/FieldContent.d.ts +22 -0
  436. package/lib/src/field/FieldDescription.d.ts +21 -0
  437. package/lib/src/field/FieldError.d.ts +25 -0
  438. package/lib/src/field/FieldGroup.d.ts +25 -0
  439. package/lib/src/field/FieldLabel.d.ts +41 -0
  440. package/lib/src/field/FieldLegend.d.ts +20 -0
  441. package/lib/src/field/FieldSeparator.d.ts +21 -0
  442. package/lib/src/field/FieldSet.d.ts +28 -0
  443. package/lib/src/field/FieldTitle.d.ts +21 -0
  444. package/lib/src/field/field-context.d.ts +47 -0
  445. package/lib/src/fieldset/Fieldset.d.ts +12 -4
  446. package/lib/src/filter-add-button/FilterAddButton.d.ts +91 -0
  447. package/lib/src/filter-add-button/FilterAddButtonEvents.d.ts +17 -0
  448. package/lib/src/filter-add-button/localization.d.ts +4 -0
  449. package/lib/src/filter-bar/FilterBar.d.ts +37 -0
  450. package/lib/src/filter-date-range/FilterDateRange.d.ts +96 -0
  451. package/lib/src/filter-date-range/FilterDateRangeEvents.d.ts +37 -0
  452. package/lib/src/filter-date-range/localization.d.ts +11 -0
  453. package/lib/src/filter-dropdown/FilterDropdown.d.ts +247 -0
  454. package/lib/src/filter-dropdown/FilterDropdownEvents.d.ts +57 -0
  455. package/lib/src/filter-dropdown/localization.d.ts +14 -0
  456. package/lib/src/filter-field/FilterField.d.ts +89 -0
  457. package/lib/src/filter-field/FilterFieldEvents.d.ts +18 -0
  458. package/lib/src/filter-field/localization.d.ts +8 -0
  459. package/lib/src/filter-input/FilterInput.d.ts +102 -0
  460. package/lib/src/filter-input/localization.d.ts +5 -0
  461. package/lib/src/filter-reset-button/FilterResetButton.d.ts +50 -0
  462. package/lib/src/filter-reset-button/localization.d.ts +4 -0
  463. package/lib/src/index.d.ts +59 -0
  464. package/lib/src/input/Input.d.ts +2 -1
  465. package/lib/src/item/Item.d.ts +44 -0
  466. package/lib/src/item/ItemActions.d.ts +20 -0
  467. package/lib/src/item/ItemContent.d.ts +22 -0
  468. package/lib/src/item/ItemDescription.d.ts +20 -0
  469. package/lib/src/item/ItemFooter.d.ts +20 -0
  470. package/lib/src/item/ItemGroup.d.ts +22 -0
  471. package/lib/src/item/ItemHeader.d.ts +20 -0
  472. package/lib/src/item/ItemMedia.d.ts +28 -0
  473. package/lib/src/item/ItemSeparator.d.ts +21 -0
  474. package/lib/src/item/ItemTitle.d.ts +19 -0
  475. package/lib/src/kbd/Kbd.d.ts +54 -0
  476. package/lib/src/kbd/KbdGroup.d.ts +22 -0
  477. package/lib/src/layout/Layout.d.ts +2 -2
  478. package/lib/src/localization/en-us.d.ts +85 -0
  479. package/lib/src/localization/translation.d.ts +85 -0
  480. package/lib/src/meter/Meter.d.ts +76 -0
  481. package/lib/src/nav-group/NavGroup.d.ts +2 -0
  482. package/lib/src/nav-item/NavItem.d.ts +2 -0
  483. package/lib/src/nav-toggle/NavToggle.d.ts +3 -1
  484. package/lib/src/notification-group/NotificationGroup.d.ts +2 -0
  485. package/lib/src/number-field/NumberField.d.ts +377 -0
  486. package/lib/src/number-field/NumberFieldEvents.d.ts +37 -0
  487. package/lib/src/number-field/currency.d.ts +24 -0
  488. package/lib/src/number-field/format.d.ts +8 -0
  489. package/lib/src/number-field/localization.d.ts +6 -0
  490. package/lib/src/number-field/parse.d.ts +44 -0
  491. package/lib/src/number-field/validate.d.ts +24 -0
  492. package/lib/src/otp-field/OtpField.d.ts +177 -0
  493. package/lib/src/otp-field/OtpFieldEvents.d.ts +38 -0
  494. package/lib/src/otp-field/localization.d.ts +4 -0
  495. package/lib/src/pagination/Pagination.d.ts +51 -0
  496. package/lib/src/pagination/PaginationContent.d.ts +27 -0
  497. package/lib/src/pagination/PaginationEllipsis.d.ts +27 -0
  498. package/lib/src/pagination/PaginationItem.d.ts +24 -0
  499. package/lib/src/pagination/PaginationLink.d.ts +30 -0
  500. package/lib/src/pagination/PaginationNext.d.ts +24 -0
  501. package/lib/src/pagination/PaginationPrevious.d.ts +24 -0
  502. package/lib/src/pagination/localization.d.ts +4 -0
  503. package/lib/src/pagination/paginate.d.ts +20 -0
  504. package/lib/src/popout/Popout.d.ts +9 -0
  505. package/lib/src/scroll-area/ScrollArea.d.ts +101 -0
  506. package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +2 -0
  507. package/lib/src/storybook-utils/dates.d.ts +2 -0
  508. package/lib/src/storybook-utils/dismiss.d.ts +1 -0
  509. package/lib/src/storybook-utils/story-descriptions.d.ts +2 -0
  510. package/lib/src/tab-group/TabGroup.d.ts +2 -0
  511. package/lib/src/tab-panel/TabPanel.d.ts +2 -0
  512. package/lib/src/tag-group/TagGroup.d.ts +2 -0
  513. package/lib/src/time-picker/TimePicker.d.ts +105 -0
  514. package/lib/src/time-picker/localization.d.ts +4 -0
  515. package/lib/src/toast-group/ToastGroup.d.ts +11 -0
  516. package/lib/story-descriptions.js +2 -0
  517. package/lib/story-descriptions.js.map +1 -0
  518. package/lib/translation.js +1 -1
  519. package/lib/translation.js.map +1 -1
  520. package/lib/validate.js +2 -0
  521. package/lib/validate.js.map +1 -0
  522. package/lib/vue.d.ts +407 -0
  523. package/package.json +9 -12
  524. package/lib/Calendar-ChNZdVRO.js +0 -2
  525. package/lib/Calendar-ChNZdVRO.js.map +0 -1
  526. package/lib/Component-DSU3Qp0O.js +0 -2
  527. package/lib/Component-DSU3Qp0O.js.map +0 -1
  528. package/lib/DropdownItem-Cb-7cHMg.js +0 -2
  529. package/lib/DropdownItem-Cb-7cHMg.js.map +0 -1
  530. package/lib/Fieldset.js +0 -2
  531. package/lib/Fieldset.js.map +0 -1
  532. package/lib/FormAssociatedMixin-B4Qj-CQN.js +0 -2
  533. package/lib/FormAssociatedMixin-B4Qj-CQN.js.map +0 -1
  534. package/lib/FormField-BFaVzUjk.js +0 -2
  535. package/lib/FormField-BFaVzUjk.js.map +0 -1
  536. package/lib/NavToggle-DzKbd-El.js +0 -2
  537. package/lib/NavToggle-DzKbd-El.js.map +0 -1
  538. package/lib/Popout-CYqn_dZu.js +0 -2
  539. package/lib/Popout-CYqn_dZu.js.map +0 -1
  540. package/lib/Sticky-DqnqENYN.js +0 -2
  541. package/lib/Sticky-DqnqENYN.js.map +0 -1
  542. package/lib/TextField-B955GOhe.js +0 -2
  543. package/lib/TextField-B955GOhe.js.map +0 -1
  544. package/lib/dates-CAAlPKZi.js +0 -2
  545. package/lib/dates-CAAlPKZi.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * `Intl.NumberFormat` helpers, ported from Base UI's `utils/formatNumber.ts`.
3
+ * The formatter is cached keyed by `JSON.stringify({ locale, options })` so we
4
+ * don't allocate a new `Intl.NumberFormat` on every render/parse.
5
+ */
6
+ export declare function getFormatter(locale?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): Intl.NumberFormat;
7
+ export declare function formatNumber(value: number | null, locale?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
8
+ export declare function formatNumberMaxPrecision(value: number | null, locale?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
@@ -0,0 +1,6 @@
1
+ declare const numberFieldLocalization: {
2
+ increaseLabel: string;
3
+ decreaseLabel: string;
4
+ roleDescription: string;
5
+ };
6
+ export default numberFieldLocalization;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Locale-aware numeric parser, ported verbatim from Base UI's
3
+ * `number-field/utils/parse.ts` (and the symbol tables from
4
+ * `number-field/utils/constants.ts`). The design system has no equivalent
5
+ * number parser (`common/number.ts` only wraps an index), so the whole module
6
+ * is copied here rather than re-exported.
7
+ *
8
+ * It strips bidi/format control characters, normalises unicode +/- signs,
9
+ * replaces locale group/decimal/currency/unit/percent/permille symbols, maps
10
+ * non-ASCII numerals (Arabic, Persian, Han, fullwidth) to ASCII, keeps only the
11
+ * last `.` as the decimal point, guards against `Infinity`, then `parseFloat`s,
12
+ * shifting the decimal for `%`/`‰` formats.
13
+ */
14
+ export declare const HAN_NUMERALS: string[];
15
+ export declare const HAN_NUMERAL_TO_DIGIT: Record<string, string>;
16
+ export declare const ARABIC_NUMERALS: string[];
17
+ export declare const PERSIAN_NUMERALS: string[];
18
+ export declare const FULLWIDTH_NUMERALS: string[];
19
+ export declare const PERCENTAGES: string[];
20
+ export declare const PERMILLE: string[];
21
+ export declare const UNICODE_MINUS_SIGNS: string[];
22
+ export declare const UNICODE_PLUS_SIGNS: string[];
23
+ export declare const FULLWIDTH_DECIMAL = "\uFF0E";
24
+ export declare const FULLWIDTH_GROUP = "\uFF0C";
25
+ export declare const ARABIC_RE: RegExp;
26
+ export declare const PERSIAN_RE: RegExp;
27
+ export declare const FULLWIDTH_RE: RegExp;
28
+ export declare const HAN_RE: RegExp;
29
+ export declare const PERCENT_RE: RegExp;
30
+ export declare const PERMILLE_RE: RegExp;
31
+ export declare const ARABIC_DETECT_RE: RegExp;
32
+ export declare const PERSIAN_DETECT_RE: RegExp;
33
+ export declare const HAN_DETECT_RE: RegExp;
34
+ export declare const FULLWIDTH_DETECT_RE: RegExp;
35
+ export declare const BASE_NON_NUMERIC_SYMBOLS: readonly [".", ",", ".", ",", "٫", "٬"];
36
+ export declare const SPACE_SEPARATOR_RE: RegExp;
37
+ export declare const PLUS_SIGNS_WITH_ASCII: string[];
38
+ export declare const MINUS_SIGNS_WITH_ASCII: string[];
39
+ export declare const ANY_MINUS_RE: RegExp;
40
+ export declare const ANY_PLUS_RE: RegExp;
41
+ export declare const ANY_MINUS_DETECT_RE: RegExp;
42
+ export declare const ANY_PLUS_DETECT_RE: RegExp;
43
+ export declare function getNumberLocaleDetails(locale?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): Partial<Record<keyof Intl.NumberFormatPartTypeRegistry, string | undefined>>;
44
+ export declare function parseNumber(formattedNumber: string, locale?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): number | null;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Numeric validation/clamping/snapping, ported from Base UI's
3
+ * `number-field/utils/validate.ts`. Snapping happens BEFORE clamping so
4
+ * non-step-aligned boundaries stay reachable.
5
+ */
6
+ type NumberFormatOptionsWithRounding = Intl.NumberFormatOptions & {
7
+ roundingIncrement?: number | undefined;
8
+ roundingMode?: string | undefined;
9
+ roundingPriority?: string | undefined;
10
+ };
11
+ export declare function clamp(val: number, min?: number, max?: number): number;
12
+ export declare function hasNumberFormatRoundingOptions(format?: NumberFormatOptionsWithRounding): format is NumberFormatOptionsWithRounding;
13
+ export declare function removeFloatingPointErrors(value: number, format?: NumberFormatOptionsWithRounding): number;
14
+ export declare function toValidatedNumber(value: number | null, { step, minWithDefault, maxWithDefault, minWithZeroDefault, format, snapOnStep, small, clamp: shouldClamp, }: {
15
+ step: number | undefined;
16
+ minWithDefault: number;
17
+ maxWithDefault: number;
18
+ minWithZeroDefault: number;
19
+ format: NumberFormatOptionsWithRounding | undefined;
20
+ snapOnStep: boolean;
21
+ small: boolean;
22
+ clamp: boolean;
23
+ }): number | null;
24
+ export {};
@@ -0,0 +1,177 @@
1
+ import type { PropertyValues } from 'lit';
2
+ import { LitElement, nothing } from 'lit';
3
+ export { OtpFieldCompleteEvent, OtpFieldInvalidEvent } from './OtpFieldEvents.js';
4
+ /** The character sets the field accepts, mirroring Base UI's `validationType`. */
5
+ export type OtpFieldType = 'numeric' | 'alphanumeric';
6
+ declare const OtpField_base: (new (...args: any[]) => import("../common/mixins/SizeMixin.js").SizeMixinInterface) & (new (...args: any[]) => import("../common/mixins/FieldControlMixin.js").FieldControlMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & typeof LitElement;
7
+ /**
8
+ * OTP Field is a segmented one-time-code input: it renders `length` individual
9
+ * character cells plus a visually-hidden input that holds the full value, enabling
10
+ * SMS / keychain autofill and native `pattern`/`required` validation. Typing fills
11
+ * and auto-advances, Backspace clears and moves back, the arrow keys navigate, and
12
+ * pasting a code distributes its characters across the cells.
13
+ *
14
+ * OTP Field is a control only — it has no built-in label, hint or error. Compose
15
+ * it inside a [Field](/components/field/) with a [Field Label](/components/field-label/)
16
+ * (connected with `for`) to give it an accessible name, helper text and an error
17
+ * message, exactly like a native input.
18
+ *
19
+ * @status draft
20
+ * @category form
21
+ * @lightDom true
22
+ *
23
+ * @fires {NordEvent} input - Dispatched whenever the OTP value changes through user interaction (typing, Backspace/Delete, paste, autofill).
24
+ * @fires {NordEvent} change - Dispatched alongside `input` when the committed value changes via user interaction.
25
+ * @fires {OtpFieldCompleteEvent} complete - Dispatched after the value updates when every cell becomes filled.
26
+ * @fires {OtpFieldInvalidEvent} value-invalid - Dispatched when typed or pasted text contained characters rejected by `type`.
27
+ *
28
+ * @localization characterLabel - Per-cell accessible label, given the 1-based cell position and total cell count.
29
+ *
30
+ * @attr {boolean} data-invalid - Present while the field is invalid (mirrors the \`invalid\` property). Style hook for the whole control.
31
+ * @attr {boolean} data-focused - Present while any cell has focus. Style hook for focus-within treatments.
32
+ *
33
+ * @cssprop [--n-otp-field-gap=var(--n-space-s)] - Gap between cells (and between groups when `group-size` is used).
34
+ * @cssprop [--n-otp-field-cell-size=var(--n-space-xl)] - Controls the block-size and inline-size of each square cell. When unset, size maps to the shared control block sizes.
35
+ * @cssprop [--n-otp-field-background=var(--n-color-surface)] - Cell background.
36
+ * @cssprop [--n-otp-field-border-color=var(--n-color-border-strong)] - Cell border color (resting).
37
+ * @cssprop [--n-otp-field-border-radius=var(--n-border-radius-s)] - Cell corner radius.
38
+ * @cssprop [--n-otp-field-font-size=var(--n-font-size-m)] - Cell character font size.
39
+ */
40
+ export default class OtpField extends OtpField_base {
41
+ /** Stable, unique id base for light-DOM ARIA wiring of this instance. */
42
+ private otpId;
43
+ private localize;
44
+ private formData;
45
+ /** Reflects `invalid` to `data-invalid` and focus-within to `data-focused`. */
46
+ private stateAttributes;
47
+ /** Re-renders when the host's forwarded ARIA labelling attributes change. */
48
+ private ariaObserver?;
49
+ /** Index + value to focus once the async value update has applied. */
50
+ private pendingFocus;
51
+ /** Value to fire `complete` for once the async value update has applied. */
52
+ private pendingComplete;
53
+ /** Whether any cell currently holds focus (drives roving tabindex + data-focused). */
54
+ private focused;
55
+ /** The cell index that currently has (or last had) focus. */
56
+ private focusedIndex;
57
+ /**
58
+ * The number of OTP cells. Must be a positive integer.
59
+ */
60
+ length: number;
61
+ /**
62
+ * Controls the allowed characters, `inputmode` and `pattern`. `numeric` accepts
63
+ * digits; `alphanumeric` accepts letters and digits.
64
+ */
65
+ type: OtpFieldType;
66
+ /**
67
+ * Prevents the user from changing the value while keeping navigation and focus.
68
+ */
69
+ readonly: boolean;
70
+ /**
71
+ * Obscures each cell (renders `type="password"`) for use on shared screens.
72
+ */
73
+ mask: boolean;
74
+ /**
75
+ * Placeholder character or string shown in every empty cell.
76
+ */
77
+ placeholder?: string;
78
+ /**
79
+ * Marks the field invalid, applying error styling and `aria-invalid` to every
80
+ * cell and the hidden input. Pair with a `nord-field-error` in the Field.
81
+ */
82
+ invalid: boolean;
83
+ protected get ownInvalid(): boolean;
84
+ /**
85
+ * The autocomplete token applied to the first cell and the hidden input (all
86
+ * other cells get `autocomplete="off"`). Defaults to `one-time-code` to enable
87
+ * SMS / keychain OTP autofill.
88
+ */
89
+ autocomplete: string;
90
+ /**
91
+ * Renders a decorative separator after every N cells (for example, `3` shows
92
+ * `123-456`). `0` disables grouping. The separator is `aria-hidden` and does
93
+ * not affect the value or navigation.
94
+ */
95
+ groupSize: number;
96
+ /**
97
+ * Whether every cell is filled (`value.length === length`). Read-only and
98
+ * derived from `value`; reflected as the `complete` attribute so consumers can
99
+ * style the completed state.
100
+ */
101
+ get complete(): boolean;
102
+ /** Backing store for the normalized value. */
103
+ private _value;
104
+ /**
105
+ * The OTP value, for example `'123456'`. Whitespace is stripped, characters are
106
+ * filtered by `type`, and the result is clamped to `length`. Set programmatically
107
+ * to prefill.
108
+ */
109
+ get value(): string;
110
+ set value(next: string);
111
+ /** The validation config for the current `type`. */
112
+ private get config();
113
+ /** Whether `length` is a usable positive integer. */
114
+ private get hasValidLength();
115
+ /** The index of the cell that is currently tabbable (roving tabindex). */
116
+ private get activeIndex();
117
+ connectedCallback(): void;
118
+ disconnectedCallback(): void;
119
+ protected createRenderRoot(): this;
120
+ /** Re-normalize the value when `length` or `type` changes (e.g. clamps it). */
121
+ protected renormalize(): void;
122
+ /**
123
+ * Flush queued focus/complete once the value update has actually applied.
124
+ * Runs from `updated()` (after every render) rather than a value observer so
125
+ * it also fires for a re-paste that completes an already-complete value (the
126
+ * value text is unchanged, so a value observer would not run).
127
+ */
128
+ private flushPending;
129
+ /** Live list of the rendered cell inputs, in DOM order. */
130
+ private get cells();
131
+ /** Focus a cell by index (clamped), then select its content. */
132
+ private focusInput;
133
+ /** Queue a focus to run once the value update applies (Lit renders async). */
134
+ private queueFocusInput;
135
+ /** Focus the field by moving focus into its active cell. */
136
+ focus(options?: FocusOptions): void;
137
+ /**
138
+ * Commit a new value, firing `input` + `change` (and queuing `complete` when
139
+ * the field becomes filled). Returns the committed value, or `null` if nothing
140
+ * changed.
141
+ */
142
+ private setValue;
143
+ /** The reason for the in-flight `setValue`, used to detect re-paste completion. */
144
+ private lastReason;
145
+ /** Report rejected characters to consumers via `value-invalid`. */
146
+ private reportInvalid;
147
+ /**
148
+ * Re-select a cell on mousedown so clicking an already-focused filled cell
149
+ * re-selects its character (typing then replaces it) instead of dropping a
150
+ * caret. Mirrors Base UI's OTPFieldInput onMouseDown.
151
+ */
152
+ private handleMousedown;
153
+ private handleInput;
154
+ private handleKeydown;
155
+ private handlePaste;
156
+ private handleFocus;
157
+ private handleBlur;
158
+ /** The browser focuses the hidden input during autofill — redirect to cell 0. */
159
+ private handleHiddenFocus;
160
+ /** SMS autofill writes the whole code into the hidden input. */
161
+ private handleHiddenInput;
162
+ /** Resolve the effective text direction from the host or document. */
163
+ private resolveDirection;
164
+ /** preventDefault + stopPropagation, like Base UI's `stopEvent`. */
165
+ private stopEvent;
166
+ /** The id for a given cell — derived so cell ids stay unique and never collide with the host id. */
167
+ private cellId;
168
+ render(): import("lit").TemplateResult<1> | typeof nothing;
169
+ private renderCell;
170
+ /** Mirror state to host data-* attributes and flush queued focus/complete. */
171
+ protected updated(changed: PropertyValues): void;
172
+ }
173
+ declare global {
174
+ interface HTMLElementTagNameMap {
175
+ 'nord-otp-field': OtpField;
176
+ }
177
+ }
@@ -0,0 +1,38 @@
1
+ import { NordEvent } from '../common/events.js';
2
+ /**
3
+ * Dispatched after the value update applies when every OTP cell becomes filled
4
+ * (`value.length === length`), or when a complete value is pasted while the
5
+ * field is already complete. Carries the completed value so consumers can react
6
+ * to completion (for example, submitting the owning form).
7
+ *
8
+ * Fired after `input`/`change` so the committed value is already readable on the
9
+ * host, mirroring Base UI's `onValueComplete`-after-`onValueChange` ordering.
10
+ */
11
+ export declare class OtpFieldCompleteEvent extends NordEvent {
12
+ /** The completed OTP value, e.g. `'123456'`. */
13
+ readonly value: string;
14
+ static eventName: string;
15
+ constructor(
16
+ /** The completed OTP value, e.g. `'123456'`. */
17
+ value: string);
18
+ /** Convenience accessor mirroring `CustomEvent.detail`. */
19
+ get detail(): string;
20
+ }
21
+ /**
22
+ * Dispatched when typed or pasted text contained characters rejected by the
23
+ * field's `type` normalization (for example, letters typed into a `numeric`
24
+ * field). Carries the raw attempted string before normalization.
25
+ *
26
+ * Named `value-invalid` rather than `invalid` so it does not collide with the
27
+ * native `HTMLInputElement` `invalid` event.
28
+ */
29
+ export declare class OtpFieldInvalidEvent extends NordEvent {
30
+ /** The raw text the user attempted to enter, before normalization. */
31
+ readonly value: string;
32
+ static eventName: string;
33
+ constructor(
34
+ /** The raw text the user attempted to enter, before normalization. */
35
+ value: string);
36
+ /** Convenience accessor mirroring `CustomEvent.detail`. */
37
+ get detail(): string;
38
+ }
@@ -0,0 +1,4 @@
1
+ declare const otpFieldLocalization: {
2
+ characterLabel: (position: number, total: number) => string;
3
+ };
4
+ export default otpFieldLocalization;
@@ -0,0 +1,51 @@
1
+ import { LitElement } from 'lit';
2
+ import { LocalizeController } from '../localization/LocalizeController.js';
3
+ declare const Pagination_base: typeof LitElement;
4
+ /**
5
+ * Pagination is the navigation root for a paginated collection. It is
6
+ * composition-first: it owns no page state, renders no controls, and emits no
7
+ * events. Your app owns the page state, URL/query syncing, cursors and any data
8
+ * fetching; Nord supplies the semantic/layout primitives, the styling and the
9
+ * `paginate()` math utility for building the page window.
10
+ *
11
+ * As a root it is a `navigation` landmark — it sets `role="navigation"` and a
12
+ * default accessible label so screen-reader users can jump to it. Compose the
13
+ * lower-level primitives inside it:
14
+ *
15
+ * - [Pagination Content](/components/pagination-content/) — the list row.
16
+ * - [Pagination Item](/components/pagination-item/) — a slot in the row.
17
+ * - [Pagination Link](/components/pagination-link/) — a page link (set `current`).
18
+ * - [Pagination Previous](/components/pagination-previous/) — the previous control.
19
+ * - [Pagination Next](/components/pagination-next/) — the next control.
20
+ * - [Pagination Ellipsis](/components/pagination-ellipsis/) — the collapsed-pages marker.
21
+ *
22
+ * Bring your own interactive element — an `<a>` (e.g. a framework `<Link>` /
23
+ * `<NuxtLink>`) or a `nord-button` — and own its `href`, navigation and
24
+ * `disabled` state. See the framework adapters in the docs.
25
+ *
26
+ * @status draft
27
+ * @category navigation
28
+ * @lightDom true
29
+ *
30
+ * @localization label - Accessible label for the pagination navigation landmark.
31
+ *
32
+ * @cssprop [--n-pagination-gap=var(--n-space-xs)] - Controls the spacing between pagination controls.
33
+ *
34
+ * @slot - Default slot for the composed pagination primitives.
35
+ */
36
+ export default class Pagination extends Pagination_base {
37
+ protected localize: LocalizeController<"nord-pagination">;
38
+ /**
39
+ * Dims the pagination and disables interaction while results are loading.
40
+ */
41
+ loading: boolean;
42
+ connectedCallback(): void;
43
+ protected updated(): void;
44
+ protected createRenderRoot(): this;
45
+ }
46
+ declare global {
47
+ interface HTMLElementTagNameMap {
48
+ 'nord-pagination': Pagination;
49
+ }
50
+ }
51
+ export {};
@@ -0,0 +1,27 @@
1
+ import { LitElement } from 'lit';
2
+ declare const PaginationContent_base: typeof LitElement;
3
+ /**
4
+ * The list container for composed [Pagination](/components/pagination/) controls.
5
+ * Lays its [Pagination Item](/components/pagination-item/) children out in a row.
6
+ *
7
+ * Place it inside [Pagination](/components/pagination/), which is already the
8
+ * `navigation` landmark (it sets `role="navigation"` and an accessible label).
9
+ * Do not add your own `<nav>` wrapper — a second landmark around the same
10
+ * controls would be a duplicate that screen-reader users have to wade through.
11
+ *
12
+ * @status draft
13
+ * @category navigation
14
+ * @lightDom true
15
+ *
16
+ * @slot - Default slot for Pagination Item children.
17
+ */
18
+ export default class PaginationContent extends PaginationContent_base {
19
+ connectedCallback(): void;
20
+ protected createRenderRoot(): this;
21
+ }
22
+ declare global {
23
+ interface HTMLElementTagNameMap {
24
+ 'nord-pagination-content': PaginationContent;
25
+ }
26
+ }
27
+ export {};
@@ -0,0 +1,27 @@
1
+ import { LitElement } from 'lit';
2
+ import '../visually-hidden/VisuallyHidden.js';
3
+ declare const PaginationEllipsis_base: typeof LitElement;
4
+ /**
5
+ * The collapsed-pages marker (…) in a composed [Pagination](/components/pagination/).
6
+ * The glyph is decorative; a visually-hidden label gives it meaning for
7
+ * assistive tech. Set `label` to localise it.
8
+ *
9
+ * @status draft
10
+ * @category navigation
11
+ * @lightDom true
12
+ *
13
+ * @cssprop [--n-pagination-gap=var(--n-space-xs)] - Inherited spacing token used by the pagination row.
14
+ */
15
+ export default class PaginationEllipsis extends PaginationEllipsis_base {
16
+ /** The visually-hidden label announced for the collapsed pages. */
17
+ label: string;
18
+ connectedCallback(): void;
19
+ protected createRenderRoot(): this;
20
+ render(): import("lit").TemplateResult<1>;
21
+ }
22
+ declare global {
23
+ interface HTMLElementTagNameMap {
24
+ 'nord-pagination-ellipsis': PaginationEllipsis;
25
+ }
26
+ }
27
+ export {};
@@ -0,0 +1,24 @@
1
+ import { LitElement } from 'lit';
2
+ declare const PaginationItem_base: typeof LitElement;
3
+ /**
4
+ * A single slot in a composed [Pagination Content](/components/pagination-content/)
5
+ * row. Wrap each control — a [Pagination Link](/components/pagination-link/),
6
+ * [Pagination Previous](/components/pagination-previous/), [Pagination Next](/components/pagination-next/)
7
+ * or [Pagination Ellipsis](/components/pagination-ellipsis/) — in its own item.
8
+ *
9
+ * @status draft
10
+ * @category navigation
11
+ * @lightDom true
12
+ *
13
+ * @slot - Default slot for a single pagination control.
14
+ */
15
+ export default class PaginationItem extends PaginationItem_base {
16
+ connectedCallback(): void;
17
+ protected createRenderRoot(): this;
18
+ }
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ 'nord-pagination-item': PaginationItem;
22
+ }
23
+ }
24
+ export {};
@@ -0,0 +1,30 @@
1
+ import { LitElement } from 'lit';
2
+ declare const PaginationLink_base: typeof LitElement;
3
+ /**
4
+ * A page link in a composed [Pagination](/components/pagination/). A layout
5
+ * wrapper around your own interactive element — provide an `<a>` (e.g. a
6
+ * framework `<Link>` for crawlable, SSR-friendly links) or a `nord-button`. Set
7
+ * `current` on the link for the active page; it mirrors `aria-current="page"`
8
+ * onto the interactive child so assistive tech announces it.
9
+ *
10
+ * @status draft
11
+ * @category navigation
12
+ * @lightDom true
13
+ *
14
+ * @slot - Default slot for the page link or button.
15
+ */
16
+ export default class PaginationLink extends PaginationLink_base {
17
+ /** Marks this as the current page, mirroring `aria-current="page"` onto the child. */
18
+ current: boolean;
19
+ connectedCallback(): void;
20
+ protected createRenderRoot(): this;
21
+ protected updated(): void;
22
+ private ownsAriaCurrent;
23
+ private syncCurrent;
24
+ }
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ 'nord-pagination-link': PaginationLink;
28
+ }
29
+ }
30
+ export {};
@@ -0,0 +1,24 @@
1
+ import { LitElement } from 'lit';
2
+ declare const PaginationNext_base: typeof LitElement;
3
+ /**
4
+ * The "next page" control in a composed [Pagination](/components/pagination/). A
5
+ * layout wrapper around your own interactive element — provide an `<a>` (e.g. a
6
+ * framework `<Link>`) or a `nord-button` with its own icon, label and
7
+ * navigation, and disable it when there is no next page.
8
+ *
9
+ * @status draft
10
+ * @category navigation
11
+ * @lightDom true
12
+ *
13
+ * @slot - Default slot for the next-page link or button.
14
+ */
15
+ export default class PaginationNext extends PaginationNext_base {
16
+ connectedCallback(): void;
17
+ protected createRenderRoot(): this;
18
+ }
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ 'nord-pagination-next': PaginationNext;
22
+ }
23
+ }
24
+ export {};
@@ -0,0 +1,24 @@
1
+ import { LitElement } from 'lit';
2
+ declare const PaginationPrevious_base: typeof LitElement;
3
+ /**
4
+ * The "previous page" control in a composed [Pagination](/components/pagination/).
5
+ * A layout wrapper around your own interactive element — provide an `<a>`
6
+ * (e.g. a framework `<Link>`) or a `nord-button` with its own icon, label and
7
+ * navigation, and disable it when there is no previous page.
8
+ *
9
+ * @status draft
10
+ * @category navigation
11
+ * @lightDom true
12
+ *
13
+ * @slot - Default slot for the previous-page link or button.
14
+ */
15
+ export default class PaginationPrevious extends PaginationPrevious_base {
16
+ connectedCallback(): void;
17
+ protected createRenderRoot(): this;
18
+ }
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ 'nord-pagination-previous': PaginationPrevious;
22
+ }
23
+ }
24
+ export {};
@@ -0,0 +1,4 @@
1
+ declare const paginationLocalization: {
2
+ label: string;
3
+ };
4
+ export default paginationLocalization;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The ellipsis marker returned by {@link paginate} in place of a page number.
3
+ */
4
+ export declare const ELLIPSIS: "…";
5
+ export type PaginationToken = number | typeof ELLIPSIS;
6
+ /**
7
+ * Builds the sequence of page numbers (and ellipsis markers) to render for a
8
+ * numbered pager, keeping the window centred on the current page and collapsing
9
+ * long gaps into a single {@link ELLIPSIS}.
10
+ *
11
+ * Ported from the Provet Cloud frontend `paginate()` util (which is itself based
12
+ * on https://gist.github.com/kottenator/9d936eb3e4e3c3e02598), with the lodash
13
+ * `clamp`/`range` dependencies inlined.
14
+ *
15
+ * @param currentPage 1-based current page.
16
+ * @param pageCount Total number of pages.
17
+ * @param pagesShown Maximum number of page tokens to show (min 7).
18
+ * @returns An array of 1-based page numbers interleaved with `ELLIPSIS`.
19
+ */
20
+ export declare function paginate(currentPage: number, pageCount: number, pagesShown?: number): PaginationToken[];
@@ -37,6 +37,15 @@ export default class Popout extends Popout_base {
37
37
  * Set to true to always display the popout as a floating overlay, even on smaller viewports.
38
38
  */
39
39
  alwaysFloating: boolean;
40
+ /**
41
+ * Set to true when the consuming component owns the `open` state and drives
42
+ * the popout itself (e.g. via its own trigger `@click` and `show()`/`hide()`).
43
+ * The popout stays presentational — positioning, top layer, light dismiss and
44
+ * transitions all still work — but it does NOT attach its own click-to-toggle
45
+ * listener to the `aria-controls` trigger, avoiding a competing second toggle
46
+ * on the same click.
47
+ */
48
+ controlled: boolean;
40
49
  /**
41
50
  * Show the popout.
42
51
  * A promise that resolves to a `TransitionEvent` when the popout's show animation ends or is cancelled.