@bspk/ui 1.1.34 → 1.2.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 (961) hide show
  1. package/build.ts +75 -27
  2. package/dist/components/Accordion/Accordion.d.ts +34 -0
  3. package/dist/components/Accordion/Accordion.js +42 -0
  4. package/dist/components/Accordion/Accordion.js.map +1 -0
  5. package/dist/components/Accordion/AccordionExample.d.ts +3 -0
  6. package/dist/components/Accordion/AccordionExample.js +72 -0
  7. package/dist/components/Accordion/AccordionExample.js.map +1 -0
  8. package/dist/components/Accordion/AccordionSection.d.ts +84 -0
  9. package/dist/components/Accordion/AccordionSection.js +27 -0
  10. package/dist/components/Accordion/AccordionSection.js.map +1 -0
  11. package/dist/components/Accordion/accordion.css +74 -0
  12. package/dist/components/Accordion/accordion.css.js +79 -0
  13. package/dist/components/Accordion/index.d.ts +1 -0
  14. package/dist/components/Accordion/index.js +2 -0
  15. package/dist/components/Accordion/index.js.map +1 -0
  16. package/dist/components/Avatar/Avatar.d.ts +16 -12
  17. package/dist/components/Avatar/Avatar.js +7 -9
  18. package/dist/components/Avatar/Avatar.js.map +1 -1
  19. package/dist/components/Avatar/AvatarExample.d.ts +1 -1
  20. package/dist/components/Avatar/AvatarExample.js +11 -2
  21. package/dist/components/Avatar/AvatarExample.js.map +1 -1
  22. package/dist/components/Avatar/avatar.css +27 -1
  23. package/dist/components/Avatar/avatar.css.js +27 -2
  24. package/dist/components/AvatarGroup/AvatarGroup.d.ts +10 -12
  25. package/dist/components/AvatarGroup/AvatarGroup.js +6 -6
  26. package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
  27. package/dist/components/AvatarGroup/AvatarGroupExample.d.ts +3 -0
  28. package/dist/components/AvatarGroup/AvatarGroupExample.js +31 -0
  29. package/dist/components/AvatarGroup/AvatarGroupExample.js.map +1 -0
  30. package/dist/components/AvatarGroup/avatar-group.css +12 -1
  31. package/dist/components/AvatarGroup/avatar-group.css.js +12 -2
  32. package/dist/components/Badge/Badge.d.ts +6 -12
  33. package/dist/components/Badge/Badge.js +8 -10
  34. package/dist/components/Badge/Badge.js.map +1 -1
  35. package/dist/components/Badge/BadgeExample.d.ts +1 -1
  36. package/dist/components/Badge/BadgeExample.js +7 -38
  37. package/dist/components/Badge/BadgeExample.js.map +1 -1
  38. package/dist/components/Badge/badge.css +15 -24
  39. package/dist/components/Badge/badge.css.js +15 -25
  40. package/dist/components/BadgeDot/BadgeDot.d.ts +47 -0
  41. package/dist/components/BadgeDot/BadgeDot.js +35 -0
  42. package/dist/components/BadgeDot/BadgeDot.js.map +1 -0
  43. package/dist/components/BadgeDot/BadgeDotExample.d.ts +3 -0
  44. package/dist/components/BadgeDot/BadgeDotExample.js +16 -0
  45. package/dist/components/BadgeDot/BadgeDotExample.js.map +1 -0
  46. package/dist/components/BadgeDot/badge-dot.css +22 -0
  47. package/dist/components/BadgeDot/badge-dot.css.js +27 -0
  48. package/dist/components/BadgeDot/index.d.ts +1 -0
  49. package/dist/components/BadgeDot/index.js +2 -0
  50. package/dist/components/BadgeDot/index.js.map +1 -0
  51. package/dist/components/BannerAlert/BannerAlert.d.ts +7 -7
  52. package/dist/components/BannerAlert/BannerAlert.js +7 -5
  53. package/dist/components/BannerAlert/BannerAlert.js.map +1 -1
  54. package/dist/components/BannerAlert/BannerAlertExample.d.ts +1 -1
  55. package/dist/components/BannerAlert/BannerAlertExample.js +6 -6
  56. package/dist/components/BannerAlert/BannerAlertExample.js.map +1 -1
  57. package/dist/components/BannerAlert/banner-alert.css.js +0 -1
  58. package/dist/components/Breadcrumb/Breadcrumb.d.ts +6 -9
  59. package/dist/components/Breadcrumb/Breadcrumb.js +6 -8
  60. package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
  61. package/dist/components/Breadcrumb/BreadcrumbExample.d.ts +1 -1
  62. package/dist/components/Breadcrumb/BreadcrumbExample.js +67 -0
  63. package/dist/components/Breadcrumb/BreadcrumbExample.js.map +1 -1
  64. package/dist/components/Breadcrumb/breadcrumb.css.js +0 -1
  65. package/dist/components/Button/Button.d.ts +11 -12
  66. package/dist/components/Button/Button.js +19 -19
  67. package/dist/components/Button/Button.js.map +1 -1
  68. package/dist/components/Button/ButtonExample.d.ts +1 -1
  69. package/dist/components/Button/ButtonExample.js +8 -1
  70. package/dist/components/Button/ButtonExample.js.map +1 -1
  71. package/dist/components/Button/button.css +1 -1
  72. package/dist/components/Button/button.css.js +1 -2
  73. package/dist/components/Card/Card.d.ts +2 -6
  74. package/dist/components/Card/Card.js +2 -4
  75. package/dist/components/Card/Card.js.map +1 -1
  76. package/dist/components/Card/CardExample.d.ts +1 -1
  77. package/dist/components/Card/card.css.js +0 -1
  78. package/dist/components/Checkbox/Checkbox.d.ts +6 -8
  79. package/dist/components/Checkbox/Checkbox.js +4 -6
  80. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  81. package/dist/components/Checkbox/checkbox.css +0 -6
  82. package/dist/components/Checkbox/checkbox.css.js +0 -7
  83. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +6 -10
  84. package/dist/components/CheckboxGroup/CheckboxGroup.js +3 -5
  85. package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -1
  86. package/dist/components/CheckboxGroup/CheckboxGroupExample.d.ts +1 -1
  87. package/dist/components/CheckboxGroup/CheckboxGroupExample.js +23 -1
  88. package/dist/components/CheckboxGroup/CheckboxGroupExample.js.map +1 -1
  89. package/dist/components/CheckboxOption/CheckboxOption.d.ts +5 -17
  90. package/dist/components/CheckboxOption/CheckboxOption.js +4 -5
  91. package/dist/components/CheckboxOption/CheckboxOption.js.map +1 -1
  92. package/dist/components/ChipAssist/ChipAssist.d.ts +3 -7
  93. package/dist/components/ChipAssist/ChipAssist.js +3 -5
  94. package/dist/components/ChipAssist/ChipAssist.js.map +1 -1
  95. package/dist/components/ChipAssist/ChipAssistExample.d.ts +1 -1
  96. package/dist/components/ChipAssist/ChipAssistExample.js.map +1 -1
  97. package/dist/components/ChipFilter/ChipFilter.d.ts +3 -7
  98. package/dist/components/ChipFilter/ChipFilter.js +3 -5
  99. package/dist/components/ChipFilter/ChipFilter.js.map +1 -1
  100. package/dist/components/ChipFilter/ChipFilterExample.d.ts +2 -2
  101. package/dist/components/ChipFilter/ChipFilterExample.js.map +1 -1
  102. package/dist/components/ChipGroup/ChipGroup.d.ts +4 -8
  103. package/dist/components/ChipGroup/ChipGroup.js +3 -5
  104. package/dist/components/ChipGroup/ChipGroup.js.map +1 -1
  105. package/dist/components/ChipGroup/ChipGroupExample.d.ts +2 -2
  106. package/dist/components/ChipGroup/ChipGroupExample.js +1 -1
  107. package/dist/components/ChipGroup/ChipGroupExample.js.map +1 -1
  108. package/dist/components/ChipGroup/chip-group.css.js +0 -1
  109. package/dist/components/ChipInput/ChipInput.d.ts +3 -7
  110. package/dist/components/ChipInput/ChipInput.js +3 -5
  111. package/dist/components/ChipInput/ChipInput.js.map +1 -1
  112. package/dist/components/ChipInput/ChipInputExample.d.ts +1 -1
  113. package/dist/components/ChipInput/ChipInputExample.js.map +1 -1
  114. package/dist/components/ChipSuggestion/ChipSuggestion.d.ts +3 -7
  115. package/dist/components/ChipSuggestion/ChipSuggestion.js +3 -5
  116. package/dist/components/ChipSuggestion/ChipSuggestion.js.map +1 -1
  117. package/dist/components/ChipSuggestion/ChipSuggestionExample.d.ts +1 -1
  118. package/dist/components/ChipSuggestion/ChipSuggestionExample.js.map +1 -1
  119. package/dist/components/ChipUtility/ChipUtility.d.ts +4 -8
  120. package/dist/components/ChipUtility/ChipUtility.js +2 -5
  121. package/dist/components/ChipUtility/ChipUtility.js.map +1 -1
  122. package/dist/components/ChipUtility/ChipUtilityExample.d.ts +1 -1
  123. package/dist/components/ChipUtility/ChipUtilityExample.js +2 -0
  124. package/dist/components/ChipUtility/ChipUtilityExample.js.map +1 -1
  125. package/dist/components/ChipUtility/chip-utility.css +10 -10
  126. package/dist/components/ChipUtility/chip-utility.css.js +10 -11
  127. package/dist/components/Combobox/Combobox.d.ts +7 -11
  128. package/dist/components/Combobox/Combobox.js +8 -33
  129. package/dist/components/Combobox/Combobox.js.map +1 -1
  130. package/dist/components/Combobox/ListItems.d.ts +26 -0
  131. package/dist/components/Combobox/ListItems.js +22 -0
  132. package/dist/components/Combobox/ListItems.js.map +1 -0
  133. package/dist/components/Dialog/Dialog.d.ts +4 -10
  134. package/dist/components/Dialog/Dialog.js +11 -48
  135. package/dist/components/Dialog/Dialog.js.map +1 -1
  136. package/dist/components/Dialog/DialogExample.d.ts +1 -1
  137. package/dist/components/Dialog/DialogExample.js +3 -4
  138. package/dist/components/Dialog/DialogExample.js.map +1 -1
  139. package/dist/components/Dialog/dialog.css +67 -37
  140. package/dist/components/Dialog/dialog.css.js +67 -38
  141. package/dist/components/Divider/Divider.d.ts +3 -7
  142. package/dist/components/Divider/Divider.js +3 -5
  143. package/dist/components/Divider/Divider.js.map +1 -1
  144. package/dist/components/Divider/DividerExample.d.ts +1 -1
  145. package/dist/components/Divider/divider.css +3 -7
  146. package/dist/components/Divider/divider.css.js +3 -8
  147. package/dist/components/EmptyState/EmptyState.d.ts +3 -7
  148. package/dist/components/EmptyState/EmptyState.js +2 -4
  149. package/dist/components/EmptyState/EmptyState.js.map +1 -1
  150. package/dist/components/EmptyState/EmptyStateExample.d.ts +1 -1
  151. package/dist/components/EmptyState/EmptyStateExample.js +11 -6
  152. package/dist/components/EmptyState/EmptyStateExample.js.map +1 -1
  153. package/dist/components/ExamplePlaceholder/ExamplePlaceholder.d.ts +30 -11
  154. package/dist/components/ExamplePlaceholder/ExamplePlaceholder.js +2 -4
  155. package/dist/components/ExamplePlaceholder/ExamplePlaceholder.js.map +1 -1
  156. package/dist/components/Fab/Fab.d.ts +6 -10
  157. package/dist/components/Fab/Fab.js +19 -13
  158. package/dist/components/Fab/Fab.js.map +1 -1
  159. package/dist/components/Fab/FabExample.d.ts +1 -1
  160. package/dist/components/Fab/fab.css +1 -1
  161. package/dist/components/Fab/fab.css.js +1 -2
  162. package/dist/components/FileUpload/FileUpload.d.ts +87 -0
  163. package/dist/components/FileUpload/FileUpload.js +140 -0
  164. package/dist/components/FileUpload/FileUpload.js.map +1 -0
  165. package/dist/components/FileUpload/FileUploadExample.d.ts +3 -0
  166. package/dist/components/FileUpload/FileUploadExample.js +66 -0
  167. package/dist/components/FileUpload/FileUploadExample.js.map +1 -0
  168. package/dist/components/FileUpload/file-upload.css +20 -0
  169. package/dist/components/FileUpload/file-upload.css.js +25 -0
  170. package/dist/components/FileUpload/index.d.ts +1 -0
  171. package/dist/components/FileUpload/index.js +2 -0
  172. package/dist/components/FileUpload/index.js.map +1 -0
  173. package/dist/components/FileUploadItem/FileUploadItem.d.ts +40 -0
  174. package/dist/components/FileUploadItem/FileUploadItem.js +60 -0
  175. package/dist/components/FileUploadItem/FileUploadItem.js.map +1 -0
  176. package/dist/components/FileUploadItem/FileUploadItemExample.d.ts +3 -0
  177. package/dist/components/FileUploadItem/FileUploadItemExample.js +67 -0
  178. package/dist/components/FileUploadItem/FileUploadItemExample.js.map +1 -0
  179. package/dist/components/FileUploadItem/file-upload-item.css +40 -0
  180. package/dist/components/FileUploadItem/file-upload-item.css.js +45 -0
  181. package/dist/components/FileUploadItem/index.d.ts +1 -0
  182. package/dist/components/FileUploadItem/index.js +2 -0
  183. package/dist/components/FileUploadItem/index.js.map +1 -0
  184. package/dist/components/FormField/FormField.d.ts +10 -24
  185. package/dist/components/FormField/FormField.js +4 -7
  186. package/dist/components/FormField/FormField.js.map +1 -1
  187. package/dist/components/FormField/FormFieldExample.d.ts +4 -0
  188. package/dist/components/FormField/FormFieldExample.js +12 -0
  189. package/dist/components/FormField/FormFieldExample.js.map +1 -0
  190. package/dist/components/FormField/form-field.css.js +0 -1
  191. package/dist/components/Img/Img.d.ts +2 -6
  192. package/dist/components/Img/Img.js +1 -3
  193. package/dist/components/Img/Img.js.map +1 -1
  194. package/dist/components/InlineAlert/InlineAlert.d.ts +3 -7
  195. package/dist/components/InlineAlert/InlineAlert.js +4 -7
  196. package/dist/components/InlineAlert/InlineAlert.js.map +1 -1
  197. package/dist/components/InlineAlert/SvgWarningTwoTone.d.ts +1 -0
  198. package/dist/components/InlineAlert/SvgWarningTwoTone.js +5 -0
  199. package/dist/components/InlineAlert/SvgWarningTwoTone.js.map +1 -0
  200. package/dist/components/InlineAlert/inline-alert.css +1 -0
  201. package/dist/components/InlineAlert/inline-alert.css.js +1 -1
  202. package/dist/components/Layout/Layout.d.ts +4 -8
  203. package/dist/components/Layout/Layout.js +1 -3
  204. package/dist/components/Layout/Layout.js.map +1 -1
  205. package/dist/components/Layout/LayoutExample.d.ts +3 -0
  206. package/dist/components/Layout/LayoutExample.js +7 -0
  207. package/dist/components/Layout/LayoutExample.js.map +1 -0
  208. package/dist/components/Link/Link.d.ts +3 -7
  209. package/dist/components/Link/Link.js +2 -4
  210. package/dist/components/Link/Link.js.map +1 -1
  211. package/dist/components/Link/LinkExample.d.ts +1 -1
  212. package/dist/components/Link/LinkExample.js +7 -7
  213. package/dist/components/Link/LinkExample.js.map +1 -1
  214. package/dist/components/Link/link.css +1 -1
  215. package/dist/components/Link/link.css.js +1 -2
  216. package/dist/components/ListItem/ListItem.d.ts +9 -21
  217. package/dist/components/ListItem/ListItem.js +12 -66
  218. package/dist/components/ListItem/ListItem.js.map +1 -1
  219. package/dist/components/ListItem/ListItemButton.d.ts +2 -0
  220. package/dist/components/ListItem/ListItemButton.js +7 -0
  221. package/dist/components/ListItem/ListItemButton.js.map +1 -0
  222. package/dist/components/ListItem/ListItemExample.d.ts +2 -3
  223. package/dist/components/ListItem/ListItemExample.js +22 -41
  224. package/dist/components/ListItem/ListItemExample.js.map +1 -1
  225. package/dist/components/ListItem/list-item.css +11 -25
  226. package/dist/components/ListItem/list-item.css.js +12 -27
  227. package/dist/components/Listbox/Listbox.d.ts +7 -10
  228. package/dist/components/Listbox/Listbox.js +6 -8
  229. package/dist/components/Listbox/Listbox.js.map +1 -1
  230. package/dist/components/Menu/Menu.d.ts +27 -23
  231. package/dist/components/Menu/Menu.js +25 -32
  232. package/dist/components/Menu/Menu.js.map +1 -1
  233. package/dist/components/Menu/MenuExample.d.ts +2 -2
  234. package/dist/components/Menu/MenuExample.js +25 -2
  235. package/dist/components/Menu/MenuExample.js.map +1 -1
  236. package/dist/components/Menu/menu.css +5 -2
  237. package/dist/components/Menu/menu.css.js +5 -3
  238. package/dist/components/MenuButton/MenuButton.d.ts +3 -7
  239. package/dist/components/MenuButton/MenuButton.js +1 -3
  240. package/dist/components/MenuButton/MenuButton.js.map +1 -1
  241. package/dist/components/MenuButton/menu-button.css.js +0 -1
  242. package/dist/components/Modal/Modal.d.ts +6 -10
  243. package/dist/components/Modal/Modal.js +3 -5
  244. package/dist/components/Modal/Modal.js.map +1 -1
  245. package/dist/components/Modal/ModalExample.d.ts +1 -1
  246. package/dist/components/Modal/ModalExample.js +3 -3
  247. package/dist/components/Modal/ModalExample.js.map +1 -1
  248. package/dist/components/Modal/modal.css +6 -14
  249. package/dist/components/Modal/modal.css.js +6 -15
  250. package/dist/components/NumberField/NumberField.d.ts +5 -9
  251. package/dist/components/NumberField/NumberField.js +3 -6
  252. package/dist/components/NumberField/NumberField.js.map +1 -1
  253. package/dist/components/NumberInput/IncrementButton.d.ts +7 -0
  254. package/dist/components/NumberInput/IncrementButton.js +10 -0
  255. package/dist/components/NumberInput/IncrementButton.js.map +1 -0
  256. package/dist/components/NumberInput/NumberInput.d.ts +4 -11
  257. package/dist/components/NumberInput/NumberInput.js +22 -37
  258. package/dist/components/NumberInput/NumberInput.js.map +1 -1
  259. package/dist/components/NumberInput/NumberInputExample.d.ts +3 -0
  260. package/dist/components/NumberInput/NumberInputExample.js +5 -0
  261. package/dist/components/NumberInput/NumberInputExample.js.map +1 -0
  262. package/dist/components/NumberInput/number-input.css +8 -5
  263. package/dist/components/NumberInput/number-input.css.js +8 -6
  264. package/dist/components/OTPInput/OTPInput.d.ts +41 -0
  265. package/dist/components/OTPInput/OTPInput.js +57 -0
  266. package/dist/components/OTPInput/OTPInput.js.map +1 -0
  267. package/dist/components/OTPInput/OTPInputExample.d.ts +3 -0
  268. package/dist/components/OTPInput/OTPInputExample.js +25 -0
  269. package/dist/components/OTPInput/OTPInputExample.js.map +1 -0
  270. package/dist/components/OTPInput/index.d.ts +1 -0
  271. package/dist/components/OTPInput/index.js +2 -0
  272. package/dist/components/OTPInput/index.js.map +1 -0
  273. package/dist/components/OTPInput/otp-input.css +72 -0
  274. package/dist/components/OTPInput/otp-input.css.js +77 -0
  275. package/dist/components/PageControl/PageControl.d.ts +43 -0
  276. package/dist/components/PageControl/PageControl.js +46 -0
  277. package/dist/components/PageControl/PageControl.js.map +1 -0
  278. package/dist/components/PageControl/index.d.ts +1 -0
  279. package/dist/components/PageControl/index.js +2 -0
  280. package/dist/components/PageControl/index.js.map +1 -0
  281. package/dist/components/PageControl/page-control.css +33 -0
  282. package/dist/components/PageControl/page-control.css.js +38 -0
  283. package/dist/components/Pagination/PageInput.d.ts +5 -0
  284. package/dist/components/Pagination/PageInput.js +36 -0
  285. package/dist/components/Pagination/PageInput.js.map +1 -0
  286. package/dist/components/Pagination/PageList.d.ts +3 -0
  287. package/dist/components/Pagination/PageList.js +9 -0
  288. package/dist/components/Pagination/PageList.js.map +1 -0
  289. package/dist/components/Pagination/Pagination.d.ts +43 -0
  290. package/dist/components/Pagination/Pagination.js +49 -0
  291. package/dist/components/Pagination/Pagination.js.map +1 -0
  292. package/dist/components/Pagination/index.d.ts +1 -0
  293. package/dist/components/Pagination/index.js +2 -0
  294. package/dist/components/Pagination/index.js.map +1 -0
  295. package/dist/components/Pagination/pagination.css +31 -0
  296. package/dist/components/Pagination/pagination.css.js +36 -0
  297. package/dist/components/PasswordField/PasswordField.d.ts +31 -0
  298. package/dist/components/PasswordField/PasswordField.js +33 -0
  299. package/dist/components/PasswordField/PasswordField.js.map +1 -0
  300. package/dist/components/PasswordField/index.d.ts +1 -0
  301. package/dist/components/PasswordField/index.js +2 -0
  302. package/dist/components/PasswordField/index.js.map +1 -0
  303. package/dist/components/PasswordInput/PasswordInput.d.ts +21 -0
  304. package/dist/components/PasswordInput/PasswordInput.js +34 -0
  305. package/dist/components/PasswordInput/PasswordInput.js.map +1 -0
  306. package/dist/components/PasswordInput/index.d.ts +1 -0
  307. package/dist/components/PasswordInput/index.js +2 -0
  308. package/dist/components/PasswordInput/index.js.map +1 -0
  309. package/dist/components/PasswordInput/password-input.css +28 -0
  310. package/dist/components/PasswordInput/password-input.css.js +33 -0
  311. package/dist/components/PhoneNumberField/PhoneNumberField.d.ts +5 -9
  312. package/dist/components/PhoneNumberField/PhoneNumberField.js +3 -6
  313. package/dist/components/PhoneNumberField/PhoneNumberField.js.map +1 -1
  314. package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +6 -10
  315. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +5 -9
  316. package/dist/components/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
  317. package/dist/components/PhoneNumberInput/phone-number-input.css.js +0 -1
  318. package/dist/components/Popover/Popover.d.ts +11 -9
  319. package/dist/components/Popover/Popover.js +27 -11
  320. package/dist/components/Popover/Popover.js.map +1 -1
  321. package/dist/components/Popover/PopoverExample.d.ts +1 -1
  322. package/dist/components/Popover/PopoverExample.js +19 -3
  323. package/dist/components/Popover/PopoverExample.js.map +1 -1
  324. package/dist/components/Popover/popover.css +17 -22
  325. package/dist/components/Popover/popover.css.js +17 -23
  326. package/dist/components/Portal/Portal.d.ts +1 -5
  327. package/dist/components/Portal/Portal.js +5 -5
  328. package/dist/components/Portal/Portal.js.map +1 -1
  329. package/dist/components/ProgressBar/ProgressBar.d.ts +16 -6
  330. package/dist/components/ProgressBar/ProgressBar.js +7 -6
  331. package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
  332. package/dist/components/ProgressBar/progress-bar.css +3 -0
  333. package/dist/components/ProgressBar/progress-bar.css.js +3 -1
  334. package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -2
  335. package/dist/components/ProgressCircle/ProgressCircle.js +4 -10
  336. package/dist/components/ProgressCircle/ProgressCircle.js.map +1 -1
  337. package/dist/components/ProgressCircle/ProgressCircleSVG.d.ts +3 -0
  338. package/dist/components/ProgressCircle/ProgressCircleSVG.js +9 -0
  339. package/dist/components/ProgressCircle/ProgressCircleSVG.js.map +1 -0
  340. package/dist/components/ProgressCircle/progress-circle.css.js +0 -1
  341. package/dist/components/ProgressionStepper/ProgressionStepper.d.ts +4 -12
  342. package/dist/components/ProgressionStepper/ProgressionStepper.js +6 -8
  343. package/dist/components/ProgressionStepper/ProgressionStepper.js.map +1 -1
  344. package/dist/components/ProgressionStepper/ProgressionStepperExample.d.ts +1 -1
  345. package/dist/components/ProgressionStepper/ProgressionStepperExample.js +2 -1
  346. package/dist/components/ProgressionStepper/ProgressionStepperExample.js.map +1 -1
  347. package/dist/components/ProgressionStepper/progression-stepper.css +11 -0
  348. package/dist/components/ProgressionStepper/progression-stepper.css.js +11 -1
  349. package/dist/components/ProgressionStepperBar/ProgressionStepperBar.d.ts +2 -6
  350. package/dist/components/ProgressionStepperBar/ProgressionStepperBar.js +3 -5
  351. package/dist/components/ProgressionStepperBar/ProgressionStepperBar.js.map +1 -1
  352. package/dist/components/ProgressionStepperBar/progression-stepper-bar.css +1 -1
  353. package/dist/components/ProgressionStepperBar/progression-stepper-bar.css.js +1 -2
  354. package/dist/components/Radio/Radio.d.ts +3 -7
  355. package/dist/components/Radio/Radio.js +3 -5
  356. package/dist/components/Radio/Radio.js.map +1 -1
  357. package/dist/components/Radio/RadioExample.d.ts +1 -1
  358. package/dist/components/Radio/radio.css +1 -1
  359. package/dist/components/Radio/radio.css.js +1 -2
  360. package/dist/components/RadioGroup/RadioGroup.d.ts +9 -13
  361. package/dist/components/RadioGroup/RadioGroup.js +6 -9
  362. package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
  363. package/dist/components/RadioGroup/RadioGroupExample.d.ts +1 -1
  364. package/dist/components/RadioGroup/RadioGroupExample.js +2 -22
  365. package/dist/components/RadioGroup/RadioGroupExample.js.map +1 -1
  366. package/dist/components/RadioGroup/radio-group.css +0 -1
  367. package/dist/components/RadioGroup/radio-group.css.js +0 -2
  368. package/dist/components/RadioOption/RadioOption.d.ts +4 -17
  369. package/dist/components/RadioOption/RadioOption.js +3 -4
  370. package/dist/components/RadioOption/RadioOption.js.map +1 -1
  371. package/dist/components/RadioOption/RadioOptionExample.d.ts +1 -1
  372. package/dist/components/Rating/Rating.d.ts +39 -0
  373. package/dist/components/Rating/Rating.js +41 -0
  374. package/dist/components/Rating/Rating.js.map +1 -0
  375. package/dist/components/Rating/RatingExample.d.ts +3 -0
  376. package/dist/components/Rating/RatingExample.js +17 -0
  377. package/dist/components/Rating/RatingExample.js.map +1 -0
  378. package/dist/components/Rating/index.d.ts +1 -0
  379. package/dist/components/Rating/index.js +2 -0
  380. package/dist/components/Rating/index.js.map +1 -0
  381. package/dist/components/Rating/rating.css +65 -0
  382. package/dist/components/Rating/rating.css.js +70 -0
  383. package/dist/components/Scrim/Scrim.d.ts +3 -15
  384. package/dist/components/Scrim/Scrim.js +2 -4
  385. package/dist/components/Scrim/Scrim.js.map +1 -1
  386. package/dist/components/Scrim/scrim.css +12 -2
  387. package/dist/components/Scrim/scrim.css.js +12 -3
  388. package/dist/components/SearchBar/SearchBar.d.ts +5 -9
  389. package/dist/components/SearchBar/SearchBar.js +10 -11
  390. package/dist/components/SearchBar/SearchBar.js.map +1 -1
  391. package/dist/components/SearchBar/SearchBarExample.d.ts +1 -1
  392. package/dist/components/SearchBar/SearchBarExample.js +1 -1
  393. package/dist/components/SearchBar/SearchBarExample.js.map +1 -1
  394. package/dist/components/SearchBar/search-bar.css +1 -1
  395. package/dist/components/SearchBar/search-bar.css.js +1 -2
  396. package/dist/components/SegmentedControl/SegmentedControl.d.ts +6 -86
  397. package/dist/components/SegmentedControl/SegmentedControl.js +5 -15
  398. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
  399. package/dist/components/SegmentedControl/SegmentedControlExample.d.ts +1 -1
  400. package/dist/components/SegmentedControl/SegmentedControlExample.js +41 -20
  401. package/dist/components/SegmentedControl/SegmentedControlExample.js.map +1 -1
  402. package/dist/components/SegmentedControl/segmented-control.css +26 -73
  403. package/dist/components/SegmentedControl/segmented-control.css.js +26 -74
  404. package/dist/components/Select/Select.d.ts +5 -9
  405. package/dist/components/Select/Select.js +6 -8
  406. package/dist/components/Select/Select.js.map +1 -1
  407. package/dist/components/Select/SelectExample.d.ts +1 -1
  408. package/dist/components/Select/SelectExample.js +3 -3
  409. package/dist/components/Select/SelectExample.js.map +1 -1
  410. package/dist/components/Select/select.css +9 -8
  411. package/dist/components/Select/select.css.js +9 -9
  412. package/dist/components/SelectField/SelectField.d.ts +5 -9
  413. package/dist/components/SelectField/SelectField.js +5 -6
  414. package/dist/components/SelectField/SelectField.js.map +1 -1
  415. package/dist/components/Skeleton/Circular.d.ts +2 -0
  416. package/dist/components/Skeleton/Circular.js +6 -0
  417. package/dist/components/Skeleton/Circular.js.map +1 -0
  418. package/dist/components/Skeleton/Photo.d.ts +2 -0
  419. package/dist/components/Skeleton/Photo.js +6 -0
  420. package/dist/components/Skeleton/Photo.js.map +1 -0
  421. package/dist/components/Skeleton/Profile.d.ts +2 -0
  422. package/dist/components/Skeleton/Profile.js +6 -0
  423. package/dist/components/Skeleton/Profile.js.map +1 -0
  424. package/dist/components/Skeleton/Rectangular.d.ts +2 -0
  425. package/dist/components/Skeleton/Rectangular.js +6 -0
  426. package/dist/components/Skeleton/Rectangular.js.map +1 -0
  427. package/dist/components/Skeleton/Skeleton.d.ts +4 -12
  428. package/dist/components/Skeleton/Skeleton.js +2 -19
  429. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  430. package/dist/components/Skeleton/SkeletonExample.d.ts +1 -1
  431. package/dist/components/Skeleton/SkeletonExample.js +13 -10
  432. package/dist/components/Skeleton/SkeletonExample.js.map +1 -1
  433. package/dist/components/Skeleton/Thumbnail.d.ts +2 -0
  434. package/dist/components/Skeleton/Thumbnail.js +6 -0
  435. package/dist/components/Skeleton/Thumbnail.js.map +1 -0
  436. package/dist/components/Skeleton/index.d.ts +5 -0
  437. package/dist/components/Skeleton/index.js +5 -0
  438. package/dist/components/Skeleton/index.js.map +1 -1
  439. package/dist/components/SkeletonText/SkeletonText.d.ts +3 -7
  440. package/dist/components/SkeletonText/SkeletonText.js +2 -4
  441. package/dist/components/SkeletonText/SkeletonText.js.map +1 -1
  442. package/dist/components/SkeletonText/SkeletonTextExample.d.ts +1 -1
  443. package/dist/components/SkeletonText/SkeletonTextExample.js.map +1 -1
  444. package/dist/components/Slider/Slider.d.ts +80 -0
  445. package/dist/components/Slider/Slider.js +131 -0
  446. package/dist/components/Slider/Slider.js.map +1 -0
  447. package/dist/components/Slider/SliderExample.d.ts +3 -0
  448. package/dist/components/Slider/SliderExample.js +59 -0
  449. package/dist/components/Slider/SliderExample.js.map +1 -0
  450. package/dist/components/Slider/SliderIntervalDots.d.ts +6 -0
  451. package/dist/components/Slider/SliderIntervalDots.js +20 -0
  452. package/dist/components/Slider/SliderIntervalDots.js.map +1 -0
  453. package/dist/components/Slider/index.d.ts +1 -0
  454. package/dist/components/Slider/index.js +2 -0
  455. package/dist/components/Slider/index.js.map +1 -0
  456. package/dist/components/Slider/slider.css +122 -0
  457. package/dist/components/Slider/slider.css.js +127 -0
  458. package/dist/components/Slider/useNormalizeSliderValue.d.ts +7 -0
  459. package/dist/components/Slider/useNormalizeSliderValue.js +12 -0
  460. package/dist/components/Slider/useNormalizeSliderValue.js.map +1 -0
  461. package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.d.ts +4 -6
  462. package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.js +4 -4
  463. package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.js.map +1 -1
  464. package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.d.ts +4 -6
  465. package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.js +4 -4
  466. package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.js.map +1 -1
  467. package/dist/components/StylesProviderCartus/StylesProviderCartus.d.ts +4 -6
  468. package/dist/components/StylesProviderCartus/StylesProviderCartus.js +4 -4
  469. package/dist/components/StylesProviderCartus/StylesProviderCartus.js.map +1 -1
  470. package/dist/components/StylesProviderCentury21/StylesProviderCentury21.d.ts +4 -6
  471. package/dist/components/StylesProviderCentury21/StylesProviderCentury21.js +4 -4
  472. package/dist/components/StylesProviderCentury21/StylesProviderCentury21.js.map +1 -1
  473. package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.d.ts +4 -6
  474. package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.js +4 -4
  475. package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.js.map +1 -1
  476. package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.d.ts +4 -6
  477. package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.js +4 -4
  478. package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.js.map +1 -1
  479. package/dist/components/StylesProviderDemo/StylesProviderDemo.d.ts +25 -0
  480. package/dist/components/StylesProviderDemo/StylesProviderDemo.js +35 -0
  481. package/dist/components/StylesProviderDemo/StylesProviderDemo.js.map +1 -0
  482. package/dist/components/StylesProviderDemo/brandsCss.d.ts +2 -0
  483. package/dist/components/StylesProviderDemo/brandsCss.js +12 -0
  484. package/dist/components/StylesProviderDemo/brandsCss.js.map +1 -0
  485. package/dist/components/StylesProviderDemo/index.d.ts +1 -0
  486. package/dist/components/StylesProviderDemo/index.js +2 -0
  487. package/dist/components/StylesProviderDemo/index.js.map +1 -0
  488. package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.d.ts +4 -6
  489. package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.js +4 -4
  490. package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.js.map +1 -1
  491. package/dist/components/StylesProviderEra/StylesProviderEra.d.ts +4 -6
  492. package/dist/components/StylesProviderEra/StylesProviderEra.js +4 -4
  493. package/dist/components/StylesProviderEra/StylesProviderEra.js.map +1 -1
  494. package/dist/components/StylesProviderSothebys/StylesProviderSothebys.d.ts +4 -6
  495. package/dist/components/StylesProviderSothebys/StylesProviderSothebys.js +4 -4
  496. package/dist/components/StylesProviderSothebys/StylesProviderSothebys.js.map +1 -1
  497. package/dist/components/Switch/Switch.d.ts +3 -7
  498. package/dist/components/Switch/Switch.js +2 -4
  499. package/dist/components/Switch/Switch.js.map +1 -1
  500. package/dist/components/Switch/switch.css +1 -1
  501. package/dist/components/Switch/switch.css.js +1 -2
  502. package/dist/components/SwitchOption/SwitchOption.d.ts +5 -9
  503. package/dist/components/SwitchOption/SwitchOption.js +4 -5
  504. package/dist/components/SwitchOption/SwitchOption.js.map +1 -1
  505. package/dist/components/TabGroup/TabGroup.d.ts +5 -87
  506. package/dist/components/TabGroup/TabGroup.js +7 -22
  507. package/dist/components/TabGroup/TabGroup.js.map +1 -1
  508. package/dist/components/TabGroup/TabGroupExample.d.ts +1 -1
  509. package/dist/components/TabGroup/TabGroupExample.js +74 -70
  510. package/dist/components/TabGroup/TabGroupExample.js.map +1 -1
  511. package/dist/components/TabGroup/tab-group.css +18 -54
  512. package/dist/components/TabGroup/tab-group.css.js +18 -55
  513. package/dist/components/TabList/TabList.d.ts +129 -0
  514. package/dist/components/TabList/TabList.js +80 -0
  515. package/dist/components/TabList/TabList.js.map +1 -0
  516. package/dist/components/TabList/TabListExample.d.ts +3 -0
  517. package/dist/components/TabList/TabListExample.js +6 -0
  518. package/dist/components/TabList/TabListExample.js.map +1 -0
  519. package/dist/components/TabList/index.d.ts +1 -0
  520. package/dist/components/TabList/index.js +2 -0
  521. package/dist/components/TabList/index.js.map +1 -0
  522. package/dist/components/TabList/tab-list.css +64 -0
  523. package/dist/components/TabList/tab-list.css.js +69 -0
  524. package/dist/components/Table/Footer.d.ts +8 -0
  525. package/dist/components/Table/Footer.js +8 -0
  526. package/dist/components/Table/Footer.js.map +1 -0
  527. package/dist/components/Table/Table.d.ts +46 -30
  528. package/dist/components/Table/Table.js +73 -12
  529. package/dist/components/Table/Table.js.map +1 -1
  530. package/dist/components/Table/TableExample.d.ts +4 -0
  531. package/dist/components/Table/TableExample.js +126 -0
  532. package/dist/components/Table/TableExample.js.map +1 -0
  533. package/dist/components/Table/table.css +167 -20
  534. package/dist/components/Table/table.css.js +167 -21
  535. package/dist/components/Table/utils.d.ts +81 -0
  536. package/dist/components/Table/utils.js +89 -0
  537. package/dist/components/Table/utils.js.map +1 -0
  538. package/dist/components/Tag/Tag.d.ts +7 -35
  539. package/dist/components/Tag/Tag.js +5 -11
  540. package/dist/components/Tag/Tag.js.map +1 -1
  541. package/dist/components/Tag/TagExample.d.ts +3 -0
  542. package/dist/components/Tag/TagExample.js +14 -0
  543. package/dist/components/Tag/TagExample.js.map +1 -0
  544. package/dist/components/Tag/tag.css +7 -11
  545. package/dist/components/Tag/tag.css.js +7 -12
  546. package/dist/components/TextField/TextField.d.ts +5 -9
  547. package/dist/components/TextField/TextField.js +3 -5
  548. package/dist/components/TextField/TextField.js.map +1 -1
  549. package/dist/components/TextInput/TextInput.d.ts +17 -11
  550. package/dist/components/TextInput/TextInput.js +4 -6
  551. package/dist/components/TextInput/TextInput.js.map +1 -1
  552. package/dist/components/TextInput/TextInputExample.d.ts +1 -1
  553. package/dist/components/TextInput/TextInputExample.js +2 -0
  554. package/dist/components/TextInput/TextInputExample.js.map +1 -1
  555. package/dist/components/TextInput/text-input.css +2 -2
  556. package/dist/components/TextInput/text-input.css.js +2 -3
  557. package/dist/components/Textarea/Textarea.d.ts +4 -8
  558. package/dist/components/Textarea/Textarea.js +3 -5
  559. package/dist/components/Textarea/Textarea.js.map +1 -1
  560. package/dist/components/Textarea/TextareaExample.d.ts +1 -1
  561. package/dist/components/Textarea/TextareaExample.js +4 -1
  562. package/dist/components/Textarea/TextareaExample.js.map +1 -1
  563. package/dist/components/Textarea/textarea.css.js +0 -1
  564. package/dist/components/TextareaField/TextareaField.d.ts +5 -9
  565. package/dist/components/TextareaField/TextareaField.js +9 -12
  566. package/dist/components/TextareaField/TextareaField.js.map +1 -1
  567. package/dist/components/TextareaField/TextareaFieldExample.d.ts +1 -1
  568. package/dist/components/TextareaField/TextareaFieldExample.js +2 -1
  569. package/dist/components/TextareaField/TextareaFieldExample.js.map +1 -1
  570. package/dist/components/TimeInput/Listbox.d.ts +10 -0
  571. package/dist/components/TimeInput/Listbox.js +66 -0
  572. package/dist/components/TimeInput/Listbox.js.map +1 -0
  573. package/dist/components/TimeInput/Segment.d.ts +21 -0
  574. package/dist/components/TimeInput/Segment.js +160 -0
  575. package/dist/components/TimeInput/Segment.js.map +1 -0
  576. package/dist/components/TimeInput/TimeInput.d.ts +26 -0
  577. package/dist/components/TimeInput/TimeInput.js +66 -0
  578. package/dist/components/TimeInput/TimeInput.js.map +1 -0
  579. package/dist/components/TimeInput/TimeInputExample.d.ts +3 -0
  580. package/dist/components/TimeInput/TimeInputExample.js +4 -0
  581. package/dist/components/TimeInput/TimeInputExample.js.map +1 -0
  582. package/dist/components/TimeInput/index.d.ts +1 -0
  583. package/dist/components/TimeInput/index.js +2 -0
  584. package/dist/components/TimeInput/index.js.map +1 -0
  585. package/dist/components/TimeInput/time-input.css +138 -0
  586. package/dist/components/TimeInput/time-input.css.js +143 -0
  587. package/dist/components/ToggleOption/ToggleOption.d.ts +7 -7
  588. package/dist/components/ToggleOption/ToggleOption.js +2 -4
  589. package/dist/components/ToggleOption/ToggleOption.js.map +1 -1
  590. package/dist/components/ToggleOption/toggle-option.css +17 -12
  591. package/dist/components/ToggleOption/toggle-option.css.js +17 -13
  592. package/dist/components/Tooltip/Tooltip.d.ts +12 -11
  593. package/dist/components/Tooltip/Tooltip.js +17 -15
  594. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  595. package/dist/components/Tooltip/TooltipExample.d.ts +3 -2
  596. package/dist/components/Tooltip/TooltipExample.js +1 -1
  597. package/dist/components/Tooltip/TooltipExample.js.map +1 -1
  598. package/dist/components/Tooltip/tooltip.css.js +0 -1
  599. package/dist/components/TopNavigation/TopNavigation.d.ts +1 -5
  600. package/dist/components/TopNavigation/TopNavigation.js +1 -3
  601. package/dist/components/TopNavigation/TopNavigation.js.map +1 -1
  602. package/dist/components/TopNavigation/top-navigation.css.js +0 -1
  603. package/dist/components/Truncated/Truncated.d.ts +7 -8
  604. package/dist/components/Truncated/Truncated.js +11 -6
  605. package/dist/components/Truncated/Truncated.js.map +1 -1
  606. package/dist/components/Txt/Txt.d.ts +4 -8
  607. package/dist/components/Txt/Txt.js +2 -4
  608. package/dist/components/Txt/Txt.js.map +1 -1
  609. package/dist/components/UIProvider/UIProvider.d.ts +1 -5
  610. package/dist/components/UIProvider/UIProvider.js +2 -4
  611. package/dist/components/UIProvider/UIProvider.js.map +1 -1
  612. package/dist/constants/brands.d.ts +7 -0
  613. package/dist/{index.js → constants/brands.js} +1 -9
  614. package/dist/{index.js.map → constants/brands.js.map} +1 -1
  615. package/dist/constants/phases.d.ts +3 -0
  616. package/dist/constants/phases.js +9 -0
  617. package/dist/constants/phases.js.map +1 -0
  618. package/dist/hooks/useCheckboxGroupState.d.ts +1 -1
  619. package/dist/hooks/useCheckboxState.d.ts +1 -1
  620. package/dist/hooks/useCombobox.d.ts +4 -3
  621. package/dist/hooks/useCombobox.js +7 -7
  622. package/dist/hooks/useCombobox.js.map +1 -1
  623. package/dist/hooks/useFloating.d.ts +1 -3
  624. package/dist/hooks/useFloating.js +4 -3
  625. package/dist/hooks/useFloating.js.map +1 -1
  626. package/dist/hooks/useId.js +5 -3
  627. package/dist/hooks/useId.js.map +1 -1
  628. package/dist/hooks/useKeyNavigation.d.ts +17 -0
  629. package/dist/hooks/useKeyNavigation.js +46 -0
  630. package/dist/hooks/useKeyNavigation.js.map +1 -0
  631. package/dist/hooks/useLongPress.d.ts +2 -1
  632. package/dist/hooks/useLongPress.js +2 -1
  633. package/dist/hooks/useLongPress.js.map +1 -1
  634. package/dist/hooks/useOutsideClick.d.ts +5 -1
  635. package/dist/hooks/useOutsideClick.js +1 -1
  636. package/dist/hooks/useOutsideClick.js.map +1 -1
  637. package/dist/hooks/usePaginationState.d.ts +4 -0
  638. package/dist/hooks/usePaginationState.js +22 -0
  639. package/dist/hooks/usePaginationState.js.map +1 -0
  640. package/dist/hooks/useRadioState.d.ts +2 -2
  641. package/dist/hooks/useTimeout.d.ts +8 -5
  642. package/dist/hooks/useTimeout.js +7 -23
  643. package/dist/hooks/useTimeout.js.map +1 -1
  644. package/dist/hooks/useUIContext.d.ts +1 -1
  645. package/dist/styles/anywhere.css +14 -14
  646. package/dist/styles/anywhere.css.js +14 -15
  647. package/dist/{base.css → styles/base.css} +27 -12
  648. package/dist/{base.css.js → styles/base.css.js} +27 -13
  649. package/dist/styles/better-homes-gardens.css +12 -12
  650. package/dist/styles/better-homes-gardens.css.js +12 -13
  651. package/dist/styles/cartus.css +13 -13
  652. package/dist/styles/cartus.css.js +13 -14
  653. package/dist/styles/century-21.css +14 -14
  654. package/dist/styles/century-21.css.js +14 -15
  655. package/dist/styles/coldwell-banker.css +12 -12
  656. package/dist/styles/coldwell-banker.css.js +12 -13
  657. package/dist/{colors.css.js → styles/colors.css.js} +0 -1
  658. package/dist/styles/corcoran.css +10 -10
  659. package/dist/styles/corcoran.css.js +10 -11
  660. package/dist/styles/denali-boss.css +13 -13
  661. package/dist/styles/denali-boss.css.js +13 -14
  662. package/dist/styles/era.css +13 -13
  663. package/dist/styles/era.css.js +13 -14
  664. package/dist/styles/sothebys.css +14 -14
  665. package/dist/styles/sothebys.css.js +14 -15
  666. package/dist/{index.d.ts → types/common.d.ts} +12 -22
  667. package/dist/types/common.js +10 -0
  668. package/dist/types/common.js.map +1 -0
  669. package/{meta-types.ts → dist/types/meta.d.ts} +7 -14
  670. package/dist/types/meta.js +47 -0
  671. package/dist/types/meta.js.map +1 -0
  672. package/dist/utils/bound.d.ts +18 -0
  673. package/dist/utils/bound.js +22 -0
  674. package/dist/utils/bound.js.map +1 -0
  675. package/dist/utils/createExampleChildElement.d.ts +17 -0
  676. package/dist/utils/createExampleChildElement.js +50 -0
  677. package/dist/utils/createExampleChildElement.js.map +1 -0
  678. package/dist/utils/demo.d.ts +29 -10
  679. package/dist/utils/demo.js.map +1 -1
  680. package/dist/utils/fileUploads.d.ts +51 -0
  681. package/dist/utils/fileUploads.js +2 -0
  682. package/dist/utils/fileUploads.js.map +1 -0
  683. package/dist/utils/handleKeyDown.d.ts +12 -0
  684. package/dist/utils/handleKeyDown.js +20 -0
  685. package/dist/utils/handleKeyDown.js.map +1 -0
  686. package/dist/utils/keyboard.js +2 -2
  687. package/dist/utils/keyboard.js.map +1 -1
  688. package/dist/utils/random.d.ts +15 -0
  689. package/dist/utils/random.js +26 -0
  690. package/dist/utils/random.js.map +1 -0
  691. package/dist/utils/scrollElementIntoView.d.ts +1 -1
  692. package/dist/utils/scrollElementIntoView.js +2 -0
  693. package/dist/utils/scrollElementIntoView.js.map +1 -1
  694. package/meta.ts +15 -28
  695. package/package.json +115 -91
  696. package/src/components/Accordion/Accordion.tsx +77 -0
  697. package/src/components/Accordion/AccordionExample.tsx +87 -0
  698. package/src/components/Accordion/AccordionSection.tsx +128 -0
  699. package/src/components/Accordion/accordion.scss +105 -0
  700. package/src/components/Accordion/index.tsx +1 -0
  701. package/src/components/Avatar/Avatar.tsx +37 -18
  702. package/src/components/Avatar/AvatarExample.tsx +12 -4
  703. package/src/components/Avatar/avatar.scss +34 -1
  704. package/src/components/AvatarGroup/AvatarGroup.tsx +20 -14
  705. package/src/components/AvatarGroup/AvatarGroupExample.tsx +33 -0
  706. package/src/components/AvatarGroup/avatar-group.scss +16 -1
  707. package/src/components/Badge/Badge.tsx +16 -16
  708. package/src/components/Badge/BadgeExample.tsx +11 -66
  709. package/src/components/Badge/badge.scss +18 -25
  710. package/src/components/BadgeDot/BadgeDot.tsx +83 -0
  711. package/src/components/BadgeDot/BadgeDotExample.tsx +25 -0
  712. package/src/components/BadgeDot/badge-dot.scss +26 -0
  713. package/src/components/BadgeDot/index.tsx +1 -0
  714. package/src/components/BannerAlert/BannerAlert.tsx +10 -9
  715. package/src/components/BannerAlert/BannerAlertExample.tsx +7 -8
  716. package/src/components/Breadcrumb/Breadcrumb.tsx +15 -17
  717. package/src/components/Breadcrumb/BreadcrumbExample.tsx +68 -2
  718. package/src/components/Button/Button.tsx +44 -29
  719. package/src/components/Button/ButtonExample.tsx +8 -3
  720. package/src/components/Button/button.scss +1 -1
  721. package/src/components/Card/Card.tsx +3 -6
  722. package/src/components/Checkbox/Checkbox.tsx +27 -25
  723. package/src/components/Checkbox/checkbox.scss +0 -7
  724. package/src/components/CheckboxGroup/CheckboxGroup.tsx +65 -59
  725. package/src/components/CheckboxGroup/CheckboxGroupExample.tsx +24 -3
  726. package/src/components/CheckboxOption/CheckboxOption.tsx +7 -20
  727. package/src/components/ChipAssist/ChipAssist.tsx +11 -7
  728. package/src/components/ChipAssist/ChipAssistExample.tsx +1 -2
  729. package/src/components/ChipFilter/ChipFilter.tsx +10 -6
  730. package/src/components/ChipFilter/ChipFilterExample.tsx +1 -2
  731. package/src/components/ChipGroup/ChipGroup.tsx +4 -8
  732. package/src/components/ChipGroup/ChipGroupExample.tsx +6 -7
  733. package/src/components/ChipInput/ChipInput.tsx +3 -6
  734. package/src/components/ChipInput/ChipInputExample.tsx +1 -2
  735. package/src/components/ChipSuggestion/ChipSuggestion.tsx +3 -7
  736. package/src/components/ChipSuggestion/ChipSuggestionExample.tsx +1 -2
  737. package/src/components/ChipUtility/ChipUtility.tsx +7 -12
  738. package/src/components/ChipUtility/ChipUtilityExample.tsx +2 -2
  739. package/src/components/ChipUtility/chip-utility.scss +1 -1
  740. package/src/components/Combobox/Combobox.tsx +33 -123
  741. package/src/components/Combobox/ListItems.tsx +107 -0
  742. package/src/components/Dialog/Dialog.tsx +54 -95
  743. package/src/components/Dialog/DialogExample.tsx +4 -13
  744. package/src/components/Dialog/dialog.scss +81 -63
  745. package/src/components/Divider/Divider.tsx +5 -7
  746. package/src/components/Divider/divider.scss +3 -7
  747. package/src/components/EmptyState/EmptyState.tsx +3 -7
  748. package/src/components/EmptyState/EmptyStateExample.tsx +16 -18
  749. package/src/components/ExamplePlaceholder/ExamplePlaceholder.tsx +33 -15
  750. package/src/components/Fab/Fab.tsx +50 -40
  751. package/src/components/Fab/fab.scss +1 -1
  752. package/src/components/FileUpload/FileUpload.tsx +285 -0
  753. package/src/components/FileUpload/FileUploadExample.tsx +91 -0
  754. package/src/components/FileUpload/file-upload.scss +20 -0
  755. package/src/components/FileUpload/index.tsx +1 -0
  756. package/src/components/FileUploadItem/FileUploadItem.tsx +121 -0
  757. package/src/components/FileUploadItem/FileUploadItemExample.tsx +78 -0
  758. package/src/components/FileUploadItem/file-upload-item.scss +46 -0
  759. package/src/components/FileUploadItem/index.tsx +1 -0
  760. package/src/components/FormField/FormField.tsx +30 -42
  761. package/src/components/FormField/FormFieldExample.tsx +41 -0
  762. package/src/components/Img/Img.tsx +2 -6
  763. package/src/components/InlineAlert/InlineAlert.tsx +6 -27
  764. package/src/components/InlineAlert/SvgWarningTwoTone.tsx +18 -0
  765. package/src/components/InlineAlert/inline-alert.scss +1 -0
  766. package/src/components/Layout/Layout.tsx +4 -8
  767. package/src/components/Layout/LayoutExample.tsx +14 -0
  768. package/src/components/Link/Link.tsx +3 -7
  769. package/src/components/Link/LinkExample.tsx +7 -8
  770. package/src/components/Link/link.scss +1 -1
  771. package/src/components/ListItem/ListItem.tsx +40 -121
  772. package/src/components/ListItem/ListItemButton.tsx +6 -0
  773. package/src/components/ListItem/ListItemExample.tsx +26 -77
  774. package/src/components/ListItem/list-item.scss +11 -30
  775. package/src/components/Listbox/Listbox.tsx +14 -14
  776. package/src/components/Menu/Menu.tsx +83 -85
  777. package/src/components/Menu/MenuExample.tsx +28 -6
  778. package/src/components/Menu/menu.scss +6 -2
  779. package/src/components/MenuButton/MenuButton.tsx +3 -6
  780. package/src/components/Modal/Modal.tsx +12 -15
  781. package/src/components/Modal/ModalExample.tsx +3 -4
  782. package/src/components/Modal/modal.scss +8 -21
  783. package/src/components/NumberField/NumberField.tsx +18 -27
  784. package/src/components/NumberInput/IncrementButton.tsx +31 -0
  785. package/src/components/NumberInput/NumberInput.tsx +54 -68
  786. package/src/components/NumberInput/NumberInputExample.tsx +6 -0
  787. package/src/components/NumberInput/number-input.scss +9 -5
  788. package/src/components/OTPInput/OTPInput.tsx +121 -0
  789. package/src/components/OTPInput/OTPInputExample.tsx +26 -0
  790. package/src/components/OTPInput/index.tsx +1 -0
  791. package/src/components/OTPInput/otp-input.scss +87 -0
  792. package/src/components/PageControl/PageControl.tsx +98 -0
  793. package/src/components/PageControl/index.tsx +1 -0
  794. package/src/components/PageControl/page-control.scss +38 -0
  795. package/src/components/Pagination/PageInput.tsx +65 -0
  796. package/src/components/Pagination/PageList.tsx +21 -0
  797. package/src/components/Pagination/Pagination.tsx +104 -0
  798. package/src/components/Pagination/index.tsx +1 -0
  799. package/src/components/Pagination/pagination.scss +36 -0
  800. package/src/components/PasswordField/PasswordField.tsx +68 -0
  801. package/src/components/PasswordField/index.tsx +1 -0
  802. package/src/components/PasswordInput/PasswordInput.tsx +115 -0
  803. package/src/components/PasswordInput/index.tsx +1 -0
  804. package/src/components/PasswordInput/password-input.scss +36 -0
  805. package/src/components/PhoneNumberField/PhoneNumberField.tsx +10 -49
  806. package/src/components/PhoneNumberInput/PhoneNumberInput.tsx +20 -19
  807. package/src/components/Popover/Popover.tsx +94 -53
  808. package/src/components/Popover/PopoverExample.tsx +20 -4
  809. package/src/components/Popover/popover.scss +17 -29
  810. package/src/components/Portal/Portal.tsx +4 -6
  811. package/src/components/ProgressBar/ProgressBar.tsx +33 -9
  812. package/src/components/ProgressBar/progress-bar.scss +6 -0
  813. package/src/components/ProgressCircle/ProgressCircle.tsx +5 -43
  814. package/src/components/ProgressCircle/ProgressCircleSVG.tsx +38 -0
  815. package/src/components/ProgressionStepper/ProgressionStepper.tsx +20 -19
  816. package/src/components/ProgressionStepper/ProgressionStepperExample.tsx +3 -3
  817. package/src/components/ProgressionStepper/progression-stepper.scss +13 -0
  818. package/src/components/ProgressionStepperBar/ProgressionStepperBar.tsx +5 -8
  819. package/src/components/ProgressionStepperBar/progression-stepper-bar.scss +1 -1
  820. package/src/components/Radio/Radio.tsx +4 -10
  821. package/src/components/Radio/radio.scss +1 -1
  822. package/src/components/RadioGroup/RadioGroup.tsx +80 -82
  823. package/src/components/RadioGroup/RadioGroupExample.tsx +3 -24
  824. package/src/components/RadioGroup/radio-group.scss +0 -1
  825. package/src/components/RadioOption/RadioOption.tsx +6 -21
  826. package/src/components/Rating/Rating.tsx +100 -0
  827. package/src/components/Rating/RatingExample.tsx +18 -0
  828. package/src/components/Rating/index.tsx +1 -0
  829. package/src/components/Rating/rating.scss +85 -0
  830. package/src/components/Scrim/Scrim.tsx +5 -24
  831. package/src/components/Scrim/scrim.scss +15 -4
  832. package/src/components/SearchBar/SearchBar.tsx +18 -13
  833. package/src/components/SearchBar/SearchBarExample.tsx +9 -3
  834. package/src/components/SearchBar/search-bar.scss +1 -1
  835. package/src/components/SegmentedControl/SegmentedControl.tsx +19 -123
  836. package/src/components/SegmentedControl/SegmentedControlExample.tsx +42 -21
  837. package/src/components/SegmentedControl/segmented-control.scss +37 -89
  838. package/src/components/Select/Select.tsx +26 -34
  839. package/src/components/Select/SelectExample.tsx +4 -13
  840. package/src/components/Select/select.scss +13 -10
  841. package/src/components/SelectField/SelectField.tsx +20 -28
  842. package/src/components/Skeleton/Circular.tsx +5 -0
  843. package/src/components/Skeleton/Photo.tsx +5 -0
  844. package/src/components/Skeleton/Profile.tsx +5 -0
  845. package/src/components/Skeleton/Rectangular.tsx +5 -0
  846. package/src/components/Skeleton/Skeleton.tsx +6 -29
  847. package/src/components/Skeleton/SkeletonExample.tsx +21 -36
  848. package/src/components/Skeleton/Thumbnail.tsx +5 -0
  849. package/src/components/Skeleton/index.tsx +5 -0
  850. package/src/components/SkeletonText/SkeletonText.tsx +2 -6
  851. package/src/components/SkeletonText/SkeletonTextExample.tsx +1 -2
  852. package/src/components/Slider/Slider.tsx +281 -0
  853. package/src/components/Slider/SliderExample.tsx +63 -0
  854. package/src/components/Slider/SliderIntervalDots.tsx +35 -0
  855. package/src/components/Slider/index.tsx +1 -0
  856. package/src/components/Slider/slider.scss +121 -0
  857. package/src/components/Slider/useNormalizeSliderValue.ts +16 -0
  858. package/src/components/StylesProviderAnywhere/StylesProviderAnywhere.tsx +4 -6
  859. package/src/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.tsx +4 -6
  860. package/src/components/StylesProviderCartus/StylesProviderCartus.tsx +4 -6
  861. package/src/components/StylesProviderCentury21/StylesProviderCentury21.tsx +4 -6
  862. package/src/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.tsx +4 -6
  863. package/src/components/StylesProviderCorcoran/StylesProviderCorcoran.tsx +4 -6
  864. package/src/components/StylesProviderDemo/StylesProviderDemo.tsx +49 -0
  865. package/src/components/StylesProviderDemo/brandsCss.ts +20 -0
  866. package/src/components/StylesProviderDemo/index.tsx +1 -0
  867. package/src/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.tsx +4 -6
  868. package/src/components/StylesProviderEra/StylesProviderEra.tsx +4 -6
  869. package/src/components/StylesProviderSothebys/StylesProviderSothebys.tsx +4 -6
  870. package/src/components/Switch/Switch.tsx +3 -7
  871. package/src/components/Switch/switch.scss +1 -1
  872. package/src/components/SwitchOption/SwitchOption.tsx +6 -9
  873. package/src/components/TabGroup/TabGroup.tsx +17 -130
  874. package/src/components/TabGroup/TabGroupExample.tsx +78 -71
  875. package/src/components/TabGroup/tab-group.scss +33 -79
  876. package/src/components/TabList/TabList.tsx +239 -0
  877. package/src/components/TabList/TabListExample.tsx +7 -0
  878. package/src/components/TabList/index.tsx +1 -0
  879. package/src/components/TabList/tab-list.scss +76 -0
  880. package/src/components/Table/Footer.tsx +40 -0
  881. package/src/components/Table/Table.tsx +181 -53
  882. package/src/components/Table/TableExample.tsx +138 -0
  883. package/src/components/Table/table.scss +228 -26
  884. package/src/components/Table/utils.ts +179 -0
  885. package/src/components/Tag/Tag.tsx +11 -54
  886. package/src/components/Tag/TagExample.tsx +16 -0
  887. package/src/components/Tag/tag.scss +7 -12
  888. package/src/components/TextField/TextField.tsx +6 -27
  889. package/src/components/TextInput/TextInput.tsx +72 -54
  890. package/src/components/TextInput/TextInputExample.tsx +2 -2
  891. package/src/components/TextInput/text-input.scss +2 -1
  892. package/src/components/Textarea/Textarea.tsx +10 -11
  893. package/src/components/Textarea/TextareaExample.tsx +4 -3
  894. package/src/components/TextareaField/TextareaField.tsx +22 -39
  895. package/src/components/TextareaField/TextareaFieldExample.tsx +3 -9
  896. package/src/components/TimeInput/Listbox.tsx +95 -0
  897. package/src/components/TimeInput/Segment.tsx +221 -0
  898. package/src/components/TimeInput/TimeInput.tsx +192 -0
  899. package/src/components/TimeInput/TimeInputExample.tsx +6 -0
  900. package/src/components/TimeInput/index.tsx +1 -0
  901. package/src/components/TimeInput/time-input.scss +176 -0
  902. package/src/components/ToggleOption/ToggleOption.tsx +11 -12
  903. package/src/components/ToggleOption/toggle-option.scss +15 -11
  904. package/src/components/Tooltip/Tooltip.tsx +30 -27
  905. package/src/components/Tooltip/TooltipExample.tsx +10 -6
  906. package/src/components/TopNavigation/TopNavigation.tsx +1 -5
  907. package/src/components/Truncated/Truncated.tsx +24 -13
  908. package/src/components/Txt/Txt.tsx +3 -7
  909. package/src/components/UIProvider/UIProvider.tsx +2 -5
  910. package/src/constants/brands.ts +45 -0
  911. package/src/constants/phases.ts +11 -0
  912. package/src/global.d.ts +3 -0
  913. package/src/hooks/useCombobox.ts +9 -12
  914. package/src/hooks/useFloating.ts +5 -7
  915. package/src/hooks/useId.ts +5 -3
  916. package/src/hooks/useKeyNavigation.ts +66 -0
  917. package/src/hooks/useLongPress.ts +3 -2
  918. package/src/hooks/useOutsideClick.ts +9 -5
  919. package/src/hooks/usePaginationState.tsx +24 -0
  920. package/src/hooks/useTimeout.ts +14 -4
  921. package/src/{base.scss → styles/base.scss} +24 -8
  922. package/src/{index.ts → types/common.ts} +15 -62
  923. package/src/types/meta.ts +109 -0
  924. package/src/utils/bound.ts +30 -0
  925. package/src/utils/createExampleChildElement.tsx +83 -0
  926. package/src/utils/demo.ts +25 -17
  927. package/src/utils/fileUploads.ts +73 -0
  928. package/src/utils/handleKeyDown.ts +24 -0
  929. package/src/utils/keyboard.ts +2 -2
  930. package/src/utils/random.ts +25 -0
  931. package/src/utils/scrollElementIntoView.ts +3 -1
  932. package/tsconfig.json +12 -5
  933. package/dist/components/Chip/Chip.d.ts +0 -64
  934. package/dist/components/Chip/Chip.js +0 -33
  935. package/dist/components/Chip/Chip.js.map +0 -1
  936. package/dist/components/Chip/chip.css +0 -44
  937. package/dist/components/Chip/chip.css.js +0 -50
  938. package/dist/components/Chip/index.d.ts +0 -1
  939. package/dist/components/Chip/index.js +0 -2
  940. package/dist/components/Chip/index.js.map +0 -1
  941. package/dist/hooks/useOptionIconsInvalid.d.ts +0 -36
  942. package/dist/hooks/useOptionIconsInvalid.js +0 -21
  943. package/dist/hooks/useOptionIconsInvalid.js.map +0 -1
  944. package/dist/hooks/useValidChildren.d.ts +0 -6
  945. package/dist/hooks/useValidChildren.js +0 -30
  946. package/dist/hooks/useValidChildren.js.map +0 -1
  947. package/dist/utils/children.d.ts +0 -29
  948. package/dist/utils/children.js +0 -67
  949. package/dist/utils/children.js.map +0 -1
  950. package/dist/utils/srOnly.d.ts +0 -14
  951. package/dist/utils/srOnly.js +0 -13
  952. package/dist/utils/srOnly.js.map +0 -1
  953. package/src/components/Chip/Chip.tsx +0 -104
  954. package/src/components/Chip/chip.scss +0 -66
  955. package/src/components/Chip/index.tsx +0 -1
  956. package/src/hooks/useOptionIconsInvalid.ts +0 -58
  957. package/src/hooks/useValidChildren.ts +0 -54
  958. package/src/utils/children.ts +0 -80
  959. package/src/utils/srOnly.ts +0 -14
  960. /package/dist/{colors.css → styles/colors.css} +0 -0
  961. /package/src/{colors.scss → styles/colors.scss} +0 -0
@@ -0,0 +1,43 @@
1
+ import './page-control.scss';
2
+ export type PageControlProps = {
3
+ /**
4
+ * The current page number.
5
+ *
6
+ * @example
7
+ * 1;
8
+ *
9
+ * @required
10
+ */
11
+ value: number;
12
+ /**
13
+ * The total number of pages.
14
+ *
15
+ * @example
16
+ * 5;
17
+ *
18
+ * @required
19
+ */
20
+ numPages: number;
21
+ /**
22
+ * The variant of the page-control.
23
+ *
24
+ * @default flat
25
+ */
26
+ variant?: 'flat' | 'floating';
27
+ };
28
+ /**
29
+ * A visual indicator that displays a series of dots representing the number of pages or elements within a moving
30
+ * carousel or flow. The active page is often differentiated with a usage of a high contrasting color.
31
+ *
32
+ * @example
33
+ * import { PageControl } from '@bspk/ui/PageControl';
34
+ *
35
+ * function Example() {
36
+ * return <PageControl value={1} numPages={3} />;
37
+ * }
38
+ *
39
+ * @name PageControl
40
+ * @phase UXReview
41
+ */
42
+ export declare function PageControl({ value, numPages, variant }: PageControlProps): import("react/jsx-runtime").JSX.Element | null;
43
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './page-control.css.js';
3
+ const MAX_DOT_COUNT = 5;
4
+ /**
5
+ * A visual indicator that displays a series of dots representing the number of pages or elements within a moving
6
+ * carousel or flow. The active page is often differentiated with a usage of a high contrasting color.
7
+ *
8
+ * @example
9
+ * import { PageControl } from '@bspk/ui/PageControl';
10
+ *
11
+ * function Example() {
12
+ * return <PageControl value={1} numPages={3} />;
13
+ * }
14
+ *
15
+ * @name PageControl
16
+ * @phase UXReview
17
+ */
18
+ export function PageControl({ value, numPages, variant = 'flat' }) {
19
+ if (numPages < 2)
20
+ return null;
21
+ return (_jsx("span", { "aria-label": `Page ${value} of ${numPages}`, "data-bspk": "page-control", "data-variant": variant || undefined, role: "img", children: getDots(value, numPages).map(({ page, size }, index) => (_jsx("span", { "aria-hidden": "true", "data-active": page === Number(value) || undefined, "data-dot": page, "data-size": size, role: "presentation" }, index + 1))) }));
22
+ }
23
+ function getDots(currentPage, totalPages) {
24
+ if (totalPages <= MAX_DOT_COUNT) {
25
+ return Array.from({ length: totalPages }, (_, i) => ({
26
+ size: 'medium',
27
+ page: i + 1,
28
+ }));
29
+ }
30
+ const start = Math.max(1, Math.min(currentPage - 2, totalPages - 4));
31
+ const dots = Array.from({ length: MAX_DOT_COUNT }, (_, i) => {
32
+ const page = start + i;
33
+ let size = 'medium';
34
+ if (i === 0 && page > 1)
35
+ size = page > 1 ? 'x-small' : 'small';
36
+ if (i === 1 && page > 2)
37
+ size = 'small';
38
+ if (i === 3 && page < totalPages - 1)
39
+ size = 'small';
40
+ if (i === 4 && page < totalPages)
41
+ size = page < totalPages ? 'x-small' : 'small';
42
+ return { page, size };
43
+ });
44
+ return dots;
45
+ }
46
+ //# sourceMappingURL=PageControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageControl.js","sourceRoot":"","sources":["../../../src/components/PageControl/PageControl.tsx"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAC;AAE7B,MAAM,aAAa,GAAG,CAAU,CAAC;AAgCjC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,EAAoB;IAC/E,IAAI,QAAQ,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAE9B,OAAO,CACH,6BACgB,QAAQ,KAAK,OAAO,QAAQ,EAAE,eAChC,cAAc,kBACV,OAAO,IAAI,SAAS,EAClC,IAAI,EAAC,KAAK,YAET,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CACrD,8BACgB,MAAM,iBACL,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,SAAS,cACtC,IAAI,eACH,IAAI,EAEf,IAAI,EAAC,cAAc,IADd,KAAK,GAAG,CAAC,CAEhB,CACL,CAAC,GACC,CACV,CAAC;AACN,CAAC;AAED,SAAS,OAAO,CAAC,WAAmB,EAAE,UAAkB;IACpD,IAAI,UAAU,IAAI,aAAa,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACjD,IAAI,EAAE,QAAmB;YACzB,IAAI,EAAE,CAAC,GAAG,CAAC;SACd,CAAC,CAAC,CAAC;IACR,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IAErE,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACxD,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC,CAAC;QACvB,IAAI,IAAI,GAAY,QAAQ,CAAC;QAE7B,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,GAAG,CAAC;YAAE,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/D,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,GAAG,CAAC;YAAE,IAAI,GAAG,OAAO,CAAC;QACxC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,GAAG,UAAU,GAAG,CAAC;YAAE,IAAI,GAAG,OAAO,CAAC;QACrD,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,GAAG,UAAU;YAAE,IAAI,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;QAEjF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AAChB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './PageControl';
@@ -0,0 +1,2 @@
1
+ export * from './PageControl';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/PageControl/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,33 @@
1
+ [data-bspk=page-control] {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ border-radius: var(--radius-full);
6
+ border: 1px solid var(--stroke-neutral-low);
7
+ padding: var(--spacing-sizing-02);
8
+ gap: var(--spacing-sizing-02);
9
+ width: fit-content;
10
+ background-color: var(--surface-neutral-t1-base);
11
+ }
12
+ [data-bspk=page-control] [data-dot] {
13
+ background-color: var(--surface-neutral-t3-low);
14
+ border-radius: var(--radius-full);
15
+ width: var(--spacing-sizing-02);
16
+ height: var(--spacing-sizing-02);
17
+ }
18
+ [data-bspk=page-control] [data-dot][data-active] {
19
+ background-color: var(--foreground-brand-primary);
20
+ }
21
+ [data-bspk=page-control] [data-dot][data-size=x-small] {
22
+ width: var(--spacing-sizing-01);
23
+ height: var(--spacing-sizing-01);
24
+ }
25
+ [data-bspk=page-control] [data-dot][data-size=small] {
26
+ width: 6px;
27
+ height: 6px;
28
+ }
29
+ [data-bspk=page-control][data-variant=floating] {
30
+ box-shadow: var(--drop-shadow-float);
31
+ }
32
+
33
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -0,0 +1,38 @@
1
+ /** * This file is generated by the build script.
2
+ * Do not edit this file directly. */
3
+ const style = document.createElement('style');
4
+ style.appendChild(document.createTextNode(`[data-bspk=page-control] {
5
+ display: flex;
6
+ flex-direction: row;
7
+ align-items: center;
8
+ border-radius: var(--radius-full);
9
+ border: 1px solid var(--stroke-neutral-low);
10
+ padding: var(--spacing-sizing-02);
11
+ gap: var(--spacing-sizing-02);
12
+ width: fit-content;
13
+ background-color: var(--surface-neutral-t1-base);
14
+ }
15
+ [data-bspk=page-control] [data-dot] {
16
+ background-color: var(--surface-neutral-t3-low);
17
+ border-radius: var(--radius-full);
18
+ width: var(--spacing-sizing-02);
19
+ height: var(--spacing-sizing-02);
20
+ }
21
+ [data-bspk=page-control] [data-dot][data-active] {
22
+ background-color: var(--foreground-brand-primary);
23
+ }
24
+ [data-bspk=page-control] [data-dot][data-size=x-small] {
25
+ width: var(--spacing-sizing-01);
26
+ height: var(--spacing-sizing-01);
27
+ }
28
+ [data-bspk=page-control] [data-dot][data-size=small] {
29
+ width: 6px;
30
+ height: 6px;
31
+ }
32
+ [data-bspk=page-control][data-variant=floating] {
33
+ box-shadow: var(--drop-shadow-float);
34
+ }
35
+
36
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
37
+ `));
38
+ document.head.appendChild(style);
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { PaginationProps } from './Pagination';
3
+ type PageInputProps = Pick<PaginationProps, 'numPages' | 'onChange' | 'value'>;
4
+ export declare const PageInput: FC<PageInputProps>;
5
+ export {};
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { TextInput } from '../TextInput';
4
+ import { Txt } from '../Txt';
5
+ export const PageInput = ({ numPages, onChange, value }) => {
6
+ const [page, setPage] = useState(String(value));
7
+ useEffect(() => {
8
+ const stringValue = String(value);
9
+ if (stringValue !== page) {
10
+ setPage(stringValue);
11
+ }
12
+ // eslint-disable-next-line react-hooks/exhaustive-deps
13
+ }, [value]);
14
+ const handleChange = (val) => {
15
+ const pageNumber = parseInt(val, 10);
16
+ const isValidPageNumber = !isNaN(pageNumber) && pageNumber >= 1 && pageNumber <= numPages;
17
+ if (isValidPageNumber || val === '') {
18
+ setPage(val);
19
+ }
20
+ };
21
+ const handleSubmit = () => {
22
+ const pageNumber = parseInt(page, 10);
23
+ if (!isNaN(pageNumber) && pageNumber >= 1 && pageNumber <= numPages) {
24
+ onChange(pageNumber);
25
+ }
26
+ else {
27
+ setPage(String(value));
28
+ }
29
+ };
30
+ const pageCountMessage = `of ${numPages}`;
31
+ return (_jsx("form", { onSubmit: (e) => {
32
+ e.preventDefault();
33
+ handleSubmit();
34
+ }, style: { display: 'contents' }, children: _jsxs("div", { "data-bspk": "page-input", children: [_jsx(TextInput, { "aria-label": "Page input", name: "page-input", onBlur: handleSubmit, onChange: handleChange, showClearButton: false, size: "small", value: page }), _jsx(Txt, { variant: "body-small", children: pageCountMessage })] }) }));
35
+ };
36
+ //# sourceMappingURL=PageInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageInput.js","sourceRoot":"","sources":["../../../src/components/Pagination/PageInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAIvC,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAS,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAExD,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAElC,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;YACvB,OAAO,CAAC,WAAW,CAAC,CAAC;QACzB,CAAC;QACD,uDAAuD;IAC3D,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE;QACjC,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACrC,MAAM,iBAAiB,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,UAAU,IAAI,CAAC,IAAI,UAAU,IAAI,QAAQ,CAAC;QAE1F,IAAI,iBAAiB,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,CAAC;QACjB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAEtC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,UAAU,IAAI,CAAC,IAAI,UAAU,IAAI,QAAQ,EAAE,CAAC;YAClE,QAAQ,CAAC,UAAU,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAG,MAAM,QAAQ,EAAE,CAAC;IAE1C,OAAO,CACH,eACI,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACZ,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,YAAY,EAAE,CAAC;QACnB,CAAC,EACD,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,YAE9B,4BAAe,YAAY,aACvB,KAAC,SAAS,kBACK,YAAY,EACvB,IAAI,EAAC,YAAY,EACjB,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,YAAY,EACtB,eAAe,EAAE,KAAK,EACtB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAI,GACb,EAEF,KAAC,GAAG,IAAC,OAAO,EAAC,YAAY,YAAE,gBAAgB,GAAO,IAChD,GACH,CACV,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PaginationProps } from './Pagination';
2
+ export type PageListProps = Pick<PaginationProps, 'numPages' | 'onChange' | 'value'>;
3
+ export declare function PageList({ numPages, onChange, value }: PageListProps): import("react/jsx-runtime").JSX.Element[];
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button } from '../Button';
3
+ export function PageList({ numPages, onChange, value }) {
4
+ return Array.from({ length: numPages }, (_, index) => {
5
+ const page = index + 1;
6
+ return (_jsx(Button, { "aria-label": `Page ${page}`, label: String(page), onClick: () => onChange(page), owner: "pagination", size: "small", variant: value === page ? 'primary' : 'tertiary' }, page));
7
+ });
8
+ }
9
+ //# sourceMappingURL=PageList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageList.js","sourceRoot":"","sources":["../../../src/components/Pagination/PageList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,MAAM,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAiB;IACjE,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;QACjD,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC,CAAC;QACvB,OAAO,CACH,KAAC,MAAM,kBACS,QAAQ,IAAI,EAAE,EAE1B,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EACnB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC7B,KAAK,EAAC,YAAY,EAClB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,IAL3C,IAAI,CAMX,CACL,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,43 @@
1
+ import './pagination.scss';
2
+ import { AriaAttributes } from 'react';
3
+ export type PaginationProps = {
4
+ /**
5
+ * The number of pages to display in the pagination component.
6
+ *
7
+ * @default 1
8
+ */
9
+ numPages: number;
10
+ /**
11
+ * The current page number.
12
+ *
13
+ * @default 1
14
+ */
15
+ value: number;
16
+ /** Called when the page changes. */
17
+ onChange: (newPageNumber: number) => void;
18
+ };
19
+ /**
20
+ * A navigation component that allows customers to move between a range of listed content within a page into smaller
21
+ * multiple micro pages.
22
+ *
23
+ * @example
24
+ * import { Pagination } from '@bspk/ui/Pagination';
25
+ * import { usePaginationState } from '@bspk/ui/hooks/usePaginationState';
26
+ *
27
+ * function Example() {
28
+ * const numPages = 10;
29
+ *
30
+ * const { currentPage, setCurrentPage } = usePaginationState(numPages);
31
+ *
32
+ * return (
33
+ * <Pagination value={currentPage} onChange={setCurrentPage} numPages={numPages}>
34
+ * Example Pagination
35
+ * </Pagination>
36
+ * );
37
+ * }
38
+ *
39
+ * @name Pagination
40
+ * @phase UXReview
41
+ */
42
+ export declare function Pagination({ numPages, value, onChange, ...ariaProps }: AriaAttributes & PaginationProps): import("react/jsx-runtime").JSX.Element;
43
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -0,0 +1,49 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SvgIcon } from '@bspk/icons/SvgIcon';
3
+ import './pagination.css.js';
4
+ import { PageInput } from './PageInput';
5
+ import { PageList } from './PageList';
6
+ import { Button } from '../Button';
7
+ // After this point the manual input renders. With equal or fewer pages the individual page buttons render instead.
8
+ const INPUT_TYPE_THRESHOLD = 7;
9
+ /**
10
+ * A navigation component that allows customers to move between a range of listed content within a page into smaller
11
+ * multiple micro pages.
12
+ *
13
+ * @example
14
+ * import { Pagination } from '@bspk/ui/Pagination';
15
+ * import { usePaginationState } from '@bspk/ui/hooks/usePaginationState';
16
+ *
17
+ * function Example() {
18
+ * const numPages = 10;
19
+ *
20
+ * const { currentPage, setCurrentPage } = usePaginationState(numPages);
21
+ *
22
+ * return (
23
+ * <Pagination value={currentPage} onChange={setCurrentPage} numPages={numPages}>
24
+ * Example Pagination
25
+ * </Pagination>
26
+ * );
27
+ * }
28
+ *
29
+ * @name Pagination
30
+ * @phase UXReview
31
+ */
32
+ export function Pagination({ numPages, value, onChange, ...ariaProps }) {
33
+ const nextPage = () => {
34
+ if (value < numPages) {
35
+ onChange(value + 1);
36
+ }
37
+ };
38
+ const previousPage = () => {
39
+ if (value > 1) {
40
+ onChange(value - 1);
41
+ }
42
+ };
43
+ const isFirstPage = value === 1;
44
+ const isLastPage = value === numPages;
45
+ const isOutOfBoundsValue = value < 1 || value > numPages;
46
+ const isOneOrFewerPages = numPages <= 1;
47
+ return (_jsxs("span", { "data-bspk": "pagination", role: "group", ...ariaProps, children: [_jsx(Button, { disabled: isOutOfBoundsValue || isOneOrFewerPages || isFirstPage, icon: _jsx(SvgIcon, { name: "ChevronLeft" }), iconOnly: true, label: isFirstPage ? 'First page' : `Previous page (${value - 1})`, onClick: previousPage, owner: "pagination", size: "small", variant: "tertiary" }), numPages > INPUT_TYPE_THRESHOLD ? (_jsx(PageInput, { numPages: numPages, onChange: onChange, value: value })) : (_jsx(PageList, { numPages: numPages, onChange: onChange, value: value })), _jsx(Button, { disabled: isOutOfBoundsValue || isOneOrFewerPages || isLastPage, icon: _jsx(SvgIcon, { name: "ChevronRight" }), iconOnly: true, label: isLastPage ? 'Last page' : `Next page (${value + 1})`, onClick: nextPage, owner: "pagination", size: "small", variant: "tertiary" })] }));
48
+ }
49
+ //# sourceMappingURL=Pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,mHAAmH;AACnH,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAoB/B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAoC;IACpG,MAAM,QAAQ,GAAG,GAAG,EAAE;QAClB,IAAI,KAAK,GAAG,QAAQ,EAAE,CAAC;YACnB,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACZ,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,KAAK,CAAC,CAAC;IAChC,MAAM,UAAU,GAAG,KAAK,KAAK,QAAQ,CAAC;IACtC,MAAM,kBAAkB,GAAG,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,QAAQ,CAAC;IACzD,MAAM,iBAAiB,GAAG,QAAQ,IAAI,CAAC,CAAC;IAExC,OAAO,CACH,6BAAgB,YAAY,EAAC,IAAI,EAAC,OAAO,KAAK,SAAS,aACnD,KAAC,MAAM,IACH,QAAQ,EAAE,kBAAkB,IAAI,iBAAiB,IAAI,WAAW,EAChE,IAAI,EAAE,KAAC,OAAO,IAAC,IAAI,EAAC,aAAa,GAAG,EACpC,QAAQ,QACR,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,kBAAkB,KAAK,GAAG,CAAC,GAAG,EAClE,OAAO,EAAE,YAAY,EACrB,KAAK,EAAC,YAAY,EAClB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,UAAU,GACpB,EAED,QAAQ,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAC/B,KAAC,SAAS,IAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAI,CACtE,CAAC,CAAC,CAAC,CACA,KAAC,QAAQ,IAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAI,CACrE,EAED,KAAC,MAAM,IACH,QAAQ,EAAE,kBAAkB,IAAI,iBAAiB,IAAI,UAAU,EAC/D,IAAI,EAAE,KAAC,OAAO,IAAC,IAAI,EAAC,cAAc,GAAG,EACrC,QAAQ,QACR,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,KAAK,GAAG,CAAC,GAAG,EAC5D,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAC,YAAY,EAClB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,UAAU,GACpB,IACC,CACV,CAAC;AACN,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './Pagination';
@@ -0,0 +1,2 @@
1
+ export * from './Pagination';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Pagination/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,31 @@
1
+ [data-bspk=pagination] {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ justify-content: center;
6
+ gap: var(--spacing-sizing-01);
7
+ flex: 1;
8
+ }
9
+ [data-bspk=pagination] [data-bspk=page-input] {
10
+ display: flex;
11
+ flex-direction: row;
12
+ align-items: center;
13
+ justify-content: center;
14
+ gap: var(--spacing-sizing-01);
15
+ }
16
+ [data-bspk=pagination] [data-bspk=page-input] [data-bspk=txt] {
17
+ color: var(--foreground-neutral-on-surface-variant-02);
18
+ text-wrap: nowrap;
19
+ }
20
+ [data-bspk=pagination] [data-bspk=page-input] [data-bspk=text-input] {
21
+ width: var(--spacing-sizing-12);
22
+ }
23
+ [data-bspk=pagination] [data-bspk=page-input] [data-bspk=text-input] input {
24
+ text-align: center;
25
+ flex: 1;
26
+ }
27
+ [data-bspk=pagination] button[data-bspk-owner=pagination][data-bspk=button][data-size=small] {
28
+ padding: 6px 0;
29
+ }
30
+
31
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -0,0 +1,36 @@
1
+ /** * This file is generated by the build script.
2
+ * Do not edit this file directly. */
3
+ const style = document.createElement('style');
4
+ style.appendChild(document.createTextNode(`[data-bspk=pagination] {
5
+ display: flex;
6
+ flex-direction: row;
7
+ align-items: center;
8
+ justify-content: center;
9
+ gap: var(--spacing-sizing-01);
10
+ flex: 1;
11
+ }
12
+ [data-bspk=pagination] [data-bspk=page-input] {
13
+ display: flex;
14
+ flex-direction: row;
15
+ align-items: center;
16
+ justify-content: center;
17
+ gap: var(--spacing-sizing-01);
18
+ }
19
+ [data-bspk=pagination] [data-bspk=page-input] [data-bspk=txt] {
20
+ color: var(--foreground-neutral-on-surface-variant-02);
21
+ text-wrap: nowrap;
22
+ }
23
+ [data-bspk=pagination] [data-bspk=page-input] [data-bspk=text-input] {
24
+ width: var(--spacing-sizing-12);
25
+ }
26
+ [data-bspk=pagination] [data-bspk=page-input] [data-bspk=text-input] input {
27
+ text-align: center;
28
+ flex: 1;
29
+ }
30
+ [data-bspk=pagination] button[data-bspk-owner=pagination][data-bspk=button][data-size=small] {
31
+ padding: 6px 0;
32
+ }
33
+
34
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
35
+ `));
36
+ document.head.appendChild(style);
@@ -0,0 +1,31 @@
1
+ import { FormFieldWrapProps } from '-/components/FormField';
2
+ import { PasswordInputProps } from '-/components/PasswordInput';
3
+ export type PasswordFieldProps = FormFieldWrapProps<PasswordInputProps>;
4
+ /**
5
+ * A text input that allows users to enter text, numbers or symbols in a singular line.
6
+ *
7
+ * This component takes properties from the FormField and PasswordInput components.
8
+ *
9
+ * @example
10
+ * import { useState } from 'react';
11
+ * import { PasswordField } from '@bspk/ui/PasswordField';
12
+ *
13
+ * export function Example() {
14
+ * const [value, setValue] = useState<string>('');
15
+ *
16
+ * return (
17
+ * <PasswordField
18
+ * controlId="Example controlId"
19
+ * label="Example label"
20
+ * name="Example name"
21
+ * onChange={setValue}
22
+ * value={value}
23
+ * />
24
+ * );
25
+ * }
26
+ *
27
+ * @name PasswordField
28
+ * @phase QA
29
+ */
30
+ export declare function PasswordField({ controlId, errorMessage, helperText, invalid, label, labelTrailing, required, ...inputProps }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
31
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FormField } from '../FormField';
3
+ import { PasswordInput } from '../PasswordInput';
4
+ /**
5
+ * A text input that allows users to enter text, numbers or symbols in a singular line.
6
+ *
7
+ * This component takes properties from the FormField and PasswordInput components.
8
+ *
9
+ * @example
10
+ * import { useState } from 'react';
11
+ * import { PasswordField } from '@bspk/ui/PasswordField';
12
+ *
13
+ * export function Example() {
14
+ * const [value, setValue] = useState<string>('');
15
+ *
16
+ * return (
17
+ * <PasswordField
18
+ * controlId="Example controlId"
19
+ * label="Example label"
20
+ * name="Example name"
21
+ * onChange={setValue}
22
+ * value={value}
23
+ * />
24
+ * );
25
+ * }
26
+ *
27
+ * @name PasswordField
28
+ * @phase QA
29
+ */
30
+ export function PasswordField({ controlId, errorMessage, helperText, invalid, label, labelTrailing, required, ...inputProps }) {
31
+ return (_jsx(FormField, { controlId: controlId, "data-bspk": "password-field", errorMessage: errorMessage, helperText: helperText, invalid: invalid, label: label, labelTrailing: labelTrailing, required: required, children: (fieldProps) => (_jsx(PasswordInput, { ...inputProps, ...fieldProps, "aria-label": label, id: controlId, invalid: invalid, required: required, value: inputProps.value ?? '' })) }));
32
+ }
33
+ //# sourceMappingURL=PasswordField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PasswordField.js","sourceRoot":"","sources":["../../../src/components/PasswordField/PasswordField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAsB,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAsB,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,aAAa,CAAC,EAC1B,SAAS,EACT,YAAY,EACZ,UAAU,EACV,OAAO,EACP,KAAK,EACL,aAAa,EACb,QAAQ,EACR,GAAG,UAAU,EACI;IACjB,OAAO,CACH,KAAC,SAAS,IACN,SAAS,EAAE,SAAS,eACV,gBAAgB,EAC1B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,YAEjB,CAAC,UAAU,EAAE,EAAE,CAAC,CACb,KAAC,aAAa,OACN,UAAU,KACV,UAAU,gBACF,KAAK,EACjB,EAAE,EAAE,SAAS,EACb,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE,GAC/B,CACL,GACO,CACf,CAAC;AACN,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './PasswordField';
@@ -0,0 +1,2 @@
1
+ export * from './PasswordField';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/PasswordField/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import './password-input.scss';
2
+ import { TextInputProps } from '-/components/TextInput';
3
+ export type PasswordInputProps = Pick<TextInputProps, 'aria-describedby' | 'aria-errormessage' | 'aria-label' | 'containerRef' | 'disabled' | 'id' | 'inputProps' | 'inputRef' | 'invalid' | 'name' | 'onChange' | 'readOnly' | 'required' | 'size' | 'value'>;
4
+ /**
5
+ * An input field that is specifically built with a show/hide toggle for entering security passwords.
6
+ *
7
+ * @example
8
+ * import { PasswordInput } from '@bspk/ui/PasswordInput';
9
+ * import { useState } from 'react';
10
+ *
11
+ * function Example() {
12
+ * const [value, setValue] = useState('');
13
+ *
14
+ * return <PasswordInput value={value} onChange={setValue} aria-label="password" name="password" />;
15
+ * }
16
+ *
17
+ * @name PasswordInput
18
+ * @phase QA
19
+ */
20
+ export declare function PasswordInput({ disabled, readOnly, size, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-errormessage': ariaErrorMessage, inputProps, inputRef, name, onChange, required, value, containerRef, id, invalid, ...props }: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
21
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import './password-input.css.js';
4
+ import { Button } from '../Button';
5
+ import { TextInput } from '../TextInput';
6
+ /**
7
+ * An input field that is specifically built with a show/hide toggle for entering security passwords.
8
+ *
9
+ * @example
10
+ * import { PasswordInput } from '@bspk/ui/PasswordInput';
11
+ * import { useState } from 'react';
12
+ *
13
+ * function Example() {
14
+ * const [value, setValue] = useState('');
15
+ *
16
+ * return <PasswordInput value={value} onChange={setValue} aria-label="password" name="password" />;
17
+ * }
18
+ *
19
+ * @name PasswordInput
20
+ * @phase QA
21
+ */
22
+ export function PasswordInput({ disabled, readOnly, size = 'medium', 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-errormessage': ariaErrorMessage, inputProps, inputRef, name, onChange, required, value, containerRef, id, invalid, ...props }) {
23
+ const [isShowingPassword, setIsShowingPassword] = useState(false);
24
+ const togglePasswordVisibility = () => {
25
+ if (disabled || readOnly)
26
+ return;
27
+ setIsShowingPassword((prev) => !prev);
28
+ };
29
+ return (_jsx("div", { ...props, "data-bspk": "password-input", children: _jsx(TextInput, { "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, "aria-label": ariaLabel, autoComplete: "off", containerRef: containerRef, disabled: disabled, id: id, inputProps: inputProps, inputRef: inputRef, invalid: invalid, leading: !isShowingPassword && (_jsx(_Fragment, { children: Array.from({ length: value?.length || 0 }, (_, i) => (_jsx("span", {}, i))) })), name: name, onChange: onChange, onClick: (e) => {
30
+ e.currentTarget?.querySelector('input')?.focus();
31
+ }, owner: "password-input", readOnly: readOnly, required: required, showClearButton: false, size: size, trailing: !disabled &&
32
+ !readOnly && (_jsx(Button, { label: isShowingPassword ? 'Hide' : 'Show', onClick: togglePasswordVisibility, variant: "tertiary" })), type: isShowingPassword ? 'text' : 'password', value: value }) }));
33
+ }
34
+ //# sourceMappingURL=PasswordInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PasswordInput.js","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAkB,MAAM,wBAAwB,CAAC;AAqBnE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,aAAa,CAAC,EAC1B,QAAQ,EACR,QAAQ,EACR,IAAI,GAAG,QAAQ,EACf,YAAY,EAAE,SAAS,EACvB,kBAAkB,EAAE,eAAe,EACnC,mBAAmB,EAAE,gBAAgB,EACrC,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,EAAE,EACF,OAAO,EACP,GAAG,KAAK,EACS;IACjB,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElE,MAAM,wBAAwB,GAAG,GAAG,EAAE;QAClC,IAAI,QAAQ,IAAI,QAAQ;YAAE,OAAO;QACjC,oBAAoB,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC;IAEF,OAAO,CACH,iBAAS,KAAK,eAAY,gBAAgB,YACtC,KAAC,SAAS,wBACY,eAAe,uBACd,gBAAgB,gBACvB,SAAS,EACrB,YAAY,EAAC,KAAK,EAClB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,EAAE,EACN,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,OAAO,EACH,CAAC,iBAAiB,IAAI,CAClB,4BACK,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClD,iBAAW,CAAC,CAAI,CACnB,CAAC,GACH,CACN,EAEL,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gBACV,CAAC,CAAC,aAA6B,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC;YACtE,CAAC,EACD,KAAK,EAAC,gBAAgB,EACtB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,KAAK,EACtB,IAAI,EAAE,IAAI,EACV,QAAQ,EACJ,CAAC,QAAQ;gBACT,CAAC,QAAQ,IAAI,CACT,KAAC,MAAM,IACH,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAC1C,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAC,UAAU,GACpB,CACL,EAEL,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,EAC7C,KAAK,EAAE,KAAK,GACd,GACA,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './PasswordInput';
@@ -0,0 +1,2 @@
1
+ export * from './PasswordInput';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/PasswordInput/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,28 @@
1
+ [data-bspk=password-input] {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ width: 100%;
6
+ }
7
+ [data-bspk=password-input] [data-bspk=text-input] {
8
+ padding-right: 0;
9
+ }
10
+ [data-bspk=password-input] [data-bspk=text-input] [data-bspk=button] {
11
+ font: var(--button-font);
12
+ height: 100%;
13
+ }
14
+ [data-bspk=password-input] [data-disabled] [data-toggle-visibility-button],
15
+ [data-bspk=password-input] [data-readonly] [data-toggle-visibility-button] {
16
+ cursor: default;
17
+ }
18
+ [data-bspk=password-input][data-size=small] {
19
+ --button-font: var(--labels-small);
20
+ }
21
+ [data-bspk=password-input][data-size=medium] {
22
+ --button-font: var(--labels-base);
23
+ }
24
+ [data-bspk=password-input][data-size=large] {
25
+ --button-font: var(--labels-large);
26
+ }
27
+
28
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */