@bspk/ui 1.3.3 → 1.3.5

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 (806) hide show
  1. package/build.ts +41 -10
  2. package/dist/components/Avatar/Avatar.d.ts +3 -3
  3. package/dist/components/Avatar/Avatar.js +8 -8
  4. package/dist/components/Avatar/Avatar.js.map +1 -1
  5. package/dist/components/Avatar/AvatarExample.js +1 -1
  6. package/dist/components/Avatar/AvatarExample.js.map +1 -1
  7. package/dist/components/Avatar/avatar.css +5 -1
  8. package/dist/components/Avatar/avatar.css.js +5 -1
  9. package/dist/components/AvatarGroup/AvatarGroup.d.ts +12 -7
  10. package/dist/components/AvatarGroup/AvatarGroup.js +6 -7
  11. package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
  12. package/dist/components/AvatarGroup/AvatarGroupExample.js +36 -9
  13. package/dist/components/AvatarGroup/AvatarGroupExample.js.map +1 -1
  14. package/dist/components/AvatarGroup/Overflow.d.ts +11 -0
  15. package/dist/components/AvatarGroup/Overflow.js +37 -0
  16. package/dist/components/AvatarGroup/Overflow.js.map +1 -0
  17. package/dist/components/AvatarGroup/avatar-group.css +27 -13
  18. package/dist/components/AvatarGroup/avatar-group.css.js +27 -13
  19. package/dist/components/Badge/BadgeExample.js +1 -1
  20. package/dist/components/Badge/BadgeExample.js.map +1 -1
  21. package/dist/components/BadgeDot/BadgeDotExample.js +1 -1
  22. package/dist/components/BadgeDot/BadgeDotExample.js.map +1 -1
  23. package/dist/components/Breadcrumb/Breadcrumb.d.ts +4 -23
  24. package/dist/components/Breadcrumb/Breadcrumb.js +3 -7
  25. package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
  26. package/dist/components/Breadcrumb/BreadcumbDropdown.d.ts +27 -0
  27. package/dist/components/Breadcrumb/BreadcumbDropdown.js +68 -0
  28. package/dist/components/Breadcrumb/BreadcumbDropdown.js.map +1 -0
  29. package/dist/components/Button/Button.d.ts +7 -3
  30. package/dist/components/Button/Button.js +2 -2
  31. package/dist/components/Button/Button.js.map +1 -1
  32. package/dist/components/Button/button.css +5 -5
  33. package/dist/components/Button/button.css.js +5 -5
  34. package/dist/components/Calendar/Calendar.d.ts +33 -0
  35. package/dist/components/{CalendarPicker/CalendarPicker.js → Calendar/Calendar.js} +30 -34
  36. package/dist/components/Calendar/Calendar.js.map +1 -0
  37. package/dist/components/Calendar/CalendarExample.d.ts +4 -0
  38. package/dist/components/Calendar/CalendarExample.js +29 -0
  39. package/dist/components/Calendar/CalendarExample.js.map +1 -0
  40. package/dist/components/{CalendarPicker/calendar-picker.css → Calendar/calendar.css} +16 -16
  41. package/dist/components/{CalendarPicker/calendar-picker.css.js → Calendar/calendar.css.js} +16 -16
  42. package/dist/components/Calendar/index.d.ts +1 -0
  43. package/dist/components/Calendar/index.js +2 -0
  44. package/dist/components/Calendar/index.js.map +1 -0
  45. package/dist/components/Card/Card.d.ts +2 -1
  46. package/dist/components/Card/Card.js +2 -2
  47. package/dist/components/Card/Card.js.map +1 -1
  48. package/dist/components/Checkbox/Checkbox.d.ts +5 -3
  49. package/dist/components/Checkbox/Checkbox.js +2 -2
  50. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  51. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +10 -29
  52. package/dist/components/CheckboxGroup/CheckboxGroup.js +19 -9
  53. package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -1
  54. package/dist/components/CheckboxGroup/CheckboxGroupExample.js +3 -0
  55. package/dist/components/CheckboxGroup/CheckboxGroupExample.js.map +1 -1
  56. package/dist/components/CheckboxGroup/checkbox-group.css +7 -0
  57. package/dist/components/{DateField/date-field.css.js → CheckboxGroup/checkbox-group.css.js} +4 -5
  58. package/dist/components/CheckboxGroupField/CheckboxGroupField.d.ts +15 -0
  59. package/dist/components/CheckboxGroupField/CheckboxGroupField.js +17 -0
  60. package/dist/components/CheckboxGroupField/CheckboxGroupField.js.map +1 -0
  61. package/dist/components/CheckboxGroupField/index.d.ts +1 -0
  62. package/dist/components/CheckboxGroupField/index.js +2 -0
  63. package/dist/components/CheckboxGroupField/index.js.map +1 -0
  64. package/dist/components/CheckboxOption/CheckboxOption.d.ts +3 -2
  65. package/dist/components/CheckboxOption/CheckboxOption.js +2 -2
  66. package/dist/components/CheckboxOption/CheckboxOption.js.map +1 -1
  67. package/dist/components/{ChipUtility/ChipUtility.d.ts → Chip/Chip.d.ts} +6 -6
  68. package/dist/components/Chip/Chip.js +25 -0
  69. package/dist/components/Chip/Chip.js.map +1 -0
  70. package/dist/components/Chip/ChipExample.d.ts +4 -0
  71. package/dist/components/{ChipUtility/ChipUtilityExample.js → Chip/ChipExample.js} +2 -2
  72. package/dist/components/Chip/ChipExample.js.map +1 -0
  73. package/dist/components/{ChipUtility/chip-utility.css → Chip/chip.css} +10 -10
  74. package/dist/components/{ChipUtility/chip-utility.css.js → Chip/chip.css.js} +10 -10
  75. package/dist/components/Chip/index.d.ts +1 -0
  76. package/dist/components/Chip/index.js +2 -0
  77. package/dist/components/Chip/index.js.map +1 -0
  78. package/dist/components/ChipGroup/ChipGroup.d.ts +8 -7
  79. package/dist/components/ChipGroup/ChipGroup.js +5 -4
  80. package/dist/components/ChipGroup/ChipGroup.js.map +1 -1
  81. package/dist/components/ChipGroup/ChipGroupExample.js +4 -31
  82. package/dist/components/ChipGroup/ChipGroupExample.js.map +1 -1
  83. package/dist/components/DatePicker/DatePicker.d.ts +50 -0
  84. package/dist/components/DatePicker/DatePicker.js +133 -0
  85. package/dist/components/DatePicker/DatePicker.js.map +1 -0
  86. package/dist/components/DatePicker/DatePickerExample.d.ts +3 -0
  87. package/dist/components/DatePicker/DatePickerExample.js +10 -0
  88. package/dist/components/DatePicker/DatePickerExample.js.map +1 -0
  89. package/dist/components/{DateInput/date-input.css → DatePicker/date-picker.css} +2 -3
  90. package/dist/components/{DateInput/date-input.css.js → DatePicker/date-picker.css.js} +2 -3
  91. package/dist/components/DatePicker/index.d.ts +1 -0
  92. package/dist/components/DatePicker/index.js +2 -0
  93. package/dist/components/DatePicker/index.js.map +1 -0
  94. package/dist/components/DatePickerField/DatePickerField.d.ts +15 -0
  95. package/dist/components/DatePickerField/DatePickerField.js +17 -0
  96. package/dist/components/DatePickerField/DatePickerField.js.map +1 -0
  97. package/dist/components/DatePickerField/index.d.ts +1 -0
  98. package/dist/components/DatePickerField/index.js +2 -0
  99. package/dist/components/DatePickerField/index.js.map +1 -0
  100. package/dist/components/Drawer/Drawer.d.ts +1 -1
  101. package/dist/components/Drawer/Drawer.js +1 -1
  102. package/dist/components/Drawer/DrawerExample.js +3 -3
  103. package/dist/components/Drawer/DrawerExample.js.map +1 -1
  104. package/dist/components/EmptyState/EmptyState.d.ts +1 -1
  105. package/dist/components/EmptyState/EmptyState.js +1 -1
  106. package/dist/components/Fab/Fab.d.ts +3 -3
  107. package/dist/components/Fab/Fab.js +1 -1
  108. package/dist/components/Fab/Fab.js.map +1 -1
  109. package/dist/components/Field/Field.d.ts +58 -0
  110. package/dist/components/Field/Field.js +70 -0
  111. package/dist/components/Field/Field.js.map +1 -0
  112. package/dist/components/Field/FieldDescription.d.ts +7 -0
  113. package/dist/components/Field/FieldDescription.js +9 -0
  114. package/dist/components/Field/FieldDescription.js.map +1 -0
  115. package/dist/components/Field/FieldError.d.ts +5 -0
  116. package/dist/components/Field/FieldError.js +8 -0
  117. package/dist/components/Field/FieldError.js.map +1 -0
  118. package/dist/components/Field/FieldExample.d.ts +5 -0
  119. package/dist/components/Field/FieldExample.js +10 -0
  120. package/dist/components/Field/FieldExample.js.map +1 -0
  121. package/dist/components/Field/FieldLabel.d.ts +15 -0
  122. package/dist/components/Field/FieldLabel.js +8 -0
  123. package/dist/components/Field/FieldLabel.js.map +1 -0
  124. package/dist/components/Field/field.css +36 -0
  125. package/dist/components/Field/field.css.js +41 -0
  126. package/dist/components/Field/index.d.ts +5 -0
  127. package/dist/components/Field/index.js +6 -0
  128. package/dist/components/Field/index.js.map +1 -0
  129. package/dist/components/Field/utils.d.ts +39 -0
  130. package/dist/components/Field/utils.js +35 -0
  131. package/dist/components/Field/utils.js.map +1 -0
  132. package/dist/components/FormField/FormField.d.ts +33 -17
  133. package/dist/components/FormField/FormField.js +10 -18
  134. package/dist/components/FormField/FormField.js.map +1 -1
  135. package/dist/components/FormField/FormFieldExample.d.ts +10 -4
  136. package/dist/components/FormField/FormFieldExample.js +97 -9
  137. package/dist/components/FormField/FormFieldExample.js.map +1 -1
  138. package/dist/components/Img/Img.d.ts +1 -1
  139. package/dist/components/Img/Img.js +1 -1
  140. package/dist/components/InlineAlert/InlineAlert.d.ts +4 -4
  141. package/dist/components/InlineAlert/InlineAlert.js +3 -3
  142. package/dist/components/InlineAlert/InlineAlert.js.map +1 -1
  143. package/dist/components/Input/Input.d.ts +37 -0
  144. package/dist/components/Input/Input.js +48 -0
  145. package/dist/components/Input/Input.js.map +1 -0
  146. package/dist/components/Input/InputElement.d.ts +77 -0
  147. package/dist/components/{TextInput/TextInput.js → Input/InputElement.js} +17 -16
  148. package/dist/components/Input/InputElement.js.map +1 -0
  149. package/dist/components/Input/InputExample.d.ts +8 -0
  150. package/dist/components/{TextInput/TextInputExample.js → Input/InputExample.js} +20 -9
  151. package/dist/components/Input/InputExample.js.map +1 -0
  152. package/dist/components/Input/index.d.ts +2 -0
  153. package/dist/components/Input/index.js +3 -0
  154. package/dist/components/Input/index.js.map +1 -0
  155. package/dist/components/{TextInput/text-input.css → Input/input.css} +23 -23
  156. package/dist/components/{TextInput/text-input.css.js → Input/input.css.js} +23 -23
  157. package/dist/components/InputField/InputField.d.ts +15 -0
  158. package/dist/components/InputField/InputField.js +17 -0
  159. package/dist/components/InputField/InputField.js.map +1 -0
  160. package/dist/components/InputField/index.d.ts +1 -0
  161. package/dist/components/InputField/index.js +2 -0
  162. package/dist/components/InputField/index.js.map +1 -0
  163. package/dist/components/{NumberInput → InputNumber}/IncrementButton.js.map +1 -1
  164. package/dist/components/InputNumber/InputNumber.d.ts +74 -0
  165. package/dist/components/{NumberInput/NumberInput.js → InputNumber/InputNumber.js} +40 -13
  166. package/dist/components/InputNumber/InputNumber.js.map +1 -0
  167. package/dist/components/InputNumber/InputNumberExample.d.ts +3 -0
  168. package/dist/components/{NumberInput/NumberInputExample.js → InputNumber/InputNumberExample.js} +2 -2
  169. package/dist/components/InputNumber/InputNumberExample.js.map +1 -0
  170. package/dist/components/InputNumber/index.d.ts +1 -0
  171. package/dist/components/InputNumber/index.js +2 -0
  172. package/dist/components/InputNumber/index.js.map +1 -0
  173. package/dist/components/{NumberInput/number-input.css → InputNumber/input-number.css} +21 -21
  174. package/dist/components/{NumberInput/number-input.css.js → InputNumber/input-number.css.js} +21 -21
  175. package/dist/components/InputNumberField/InputNumberField.d.ts +15 -0
  176. package/dist/components/InputNumberField/InputNumberField.js +17 -0
  177. package/dist/components/InputNumberField/InputNumberField.js.map +1 -0
  178. package/dist/components/InputNumberField/index.d.ts +1 -0
  179. package/dist/components/InputNumberField/index.js +2 -0
  180. package/dist/components/InputNumberField/index.js.map +1 -0
  181. package/dist/components/InputPhone/InputPhone.d.ts +57 -0
  182. package/dist/components/InputPhone/InputPhone.js +161 -0
  183. package/dist/components/InputPhone/InputPhone.js.map +1 -0
  184. package/dist/components/InputPhone/InputPhoneExample.d.ts +4 -0
  185. package/dist/components/InputPhone/InputPhoneExample.js +7 -0
  186. package/dist/components/InputPhone/InputPhoneExample.js.map +1 -0
  187. package/dist/components/InputPhone/index.d.ts +1 -0
  188. package/dist/components/InputPhone/index.js +2 -0
  189. package/dist/components/InputPhone/index.js.map +1 -0
  190. package/dist/components/InputPhone/input-phone.css +42 -0
  191. package/dist/components/InputPhone/input-phone.css.js +47 -0
  192. package/dist/components/InputPhoneField/InputPhoneField.d.ts +15 -0
  193. package/dist/components/InputPhoneField/InputPhoneField.js +17 -0
  194. package/dist/components/InputPhoneField/InputPhoneField.js.map +1 -0
  195. package/dist/components/InputPhoneField/index.d.ts +1 -0
  196. package/dist/components/InputPhoneField/index.js +2 -0
  197. package/dist/components/InputPhoneField/index.js.map +1 -0
  198. package/dist/components/Layout/Layout.d.ts +3 -3
  199. package/dist/components/Layout/Layout.js +1 -1
  200. package/dist/components/Layout/Layout.js.map +1 -1
  201. package/dist/components/Link/Link.d.ts +1 -1
  202. package/dist/components/Link/Link.js +1 -1
  203. package/dist/components/ListItem/ListItem.d.ts +20 -11
  204. package/dist/components/ListItem/ListItem.js +3 -3
  205. package/dist/components/ListItem/ListItem.js.map +1 -1
  206. package/dist/components/ListItem/ListItemExample.js +3 -3
  207. package/dist/components/ListItem/ListItemExample.js.map +1 -1
  208. package/dist/components/ListItem/list-item.css +5 -1
  209. package/dist/components/ListItem/list-item.css.js +5 -1
  210. package/dist/components/Menu/Menu.d.ts +9 -2
  211. package/dist/components/Menu/Menu.js +2 -2
  212. package/dist/components/Menu/Menu.js.map +1 -1
  213. package/dist/components/Menu/MenuExample.js +2 -2
  214. package/dist/components/Menu/MenuExample.js.map +1 -1
  215. package/dist/components/Modal/Modal.d.ts +1 -1
  216. package/dist/components/Modal/Modal.js +1 -1
  217. package/dist/components/Modal/ModalExample.js +1 -1
  218. package/dist/components/Modal/ModalExample.js.map +1 -1
  219. package/dist/components/Pagination/PageInput.js +2 -2
  220. package/dist/components/Pagination/PageInput.js.map +1 -1
  221. package/dist/components/Password/Password.d.ts +43 -0
  222. package/dist/components/Password/Password.js +63 -0
  223. package/dist/components/Password/Password.js.map +1 -0
  224. package/dist/components/Password/index.d.ts +1 -0
  225. package/dist/components/Password/index.js +2 -0
  226. package/dist/components/Password/index.js.map +1 -0
  227. package/dist/components/Password/password.css +21 -0
  228. package/dist/components/Password/password.css.js +26 -0
  229. package/dist/components/PasswordField/PasswordField.d.ts +8 -24
  230. package/dist/components/PasswordField/PasswordField.js +7 -23
  231. package/dist/components/PasswordField/PasswordField.js.map +1 -1
  232. package/dist/components/Popover/Popover.d.ts +3 -3
  233. package/dist/components/Popover/Popover.js +1 -1
  234. package/dist/components/Popover/PopoverExample.js +2 -2
  235. package/dist/components/Popover/PopoverExample.js.map +1 -1
  236. package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
  237. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  238. package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -1
  239. package/dist/components/ProgressCircle/ProgressCircle.js +1 -1
  240. package/dist/components/ProgressCircle/progress-circle.css +2 -0
  241. package/dist/components/ProgressCircle/progress-circle.css.js +2 -0
  242. package/dist/components/ProgressionStepper/ProgressionStepper.d.ts +1 -1
  243. package/dist/components/ProgressionStepper/ProgressionStepper.js +3 -2
  244. package/dist/components/ProgressionStepper/ProgressionStepper.js.map +1 -1
  245. package/dist/components/ProgressionStepper/ProgressionStepperExample.js +2 -2
  246. package/dist/components/ProgressionStepper/ProgressionStepperExample.js.map +1 -1
  247. package/dist/components/Radio/Radio.d.ts +2 -2
  248. package/dist/components/Radio/Radio.js.map +1 -1
  249. package/dist/components/RadioGroup/RadioGroup.d.ts +7 -36
  250. package/dist/components/RadioGroup/RadioGroup.js +15 -9
  251. package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
  252. package/dist/components/RadioGroup/radio-group.css +2 -1
  253. package/dist/components/RadioGroup/radio-group.css.js +2 -1
  254. package/dist/components/RadioGroupField/RadioGroupField.d.ts +15 -0
  255. package/dist/components/RadioGroupField/RadioGroupField.js +17 -0
  256. package/dist/components/RadioGroupField/RadioGroupField.js.map +1 -0
  257. package/dist/components/RadioGroupField/index.d.ts +1 -0
  258. package/dist/components/RadioGroupField/index.js +2 -0
  259. package/dist/components/RadioGroupField/index.js.map +1 -0
  260. package/dist/components/SearchBar/SearchBar.d.ts +7 -16
  261. package/dist/components/SearchBar/SearchBar.js +7 -7
  262. package/dist/components/SearchBar/SearchBar.js.map +1 -1
  263. package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  264. package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
  265. package/dist/components/Select/Select.d.ts +47 -35
  266. package/dist/components/Select/Select.js +52 -23
  267. package/dist/components/Select/Select.js.map +1 -1
  268. package/dist/components/Select/SelectExample.js +36 -9
  269. package/dist/components/Select/SelectExample.js.map +1 -1
  270. package/dist/components/SelectField/SelectField.d.ts +6 -26
  271. package/dist/components/SelectField/SelectField.js +5 -27
  272. package/dist/components/SelectField/SelectField.js.map +1 -1
  273. package/dist/components/Skeleton/SkeletonExample.js +2 -2
  274. package/dist/components/Skeleton/SkeletonExample.js.map +1 -1
  275. package/dist/components/SkeletonText/SkeletonText.js +1 -1
  276. package/dist/components/SkeletonText/SkeletonText.js.map +1 -1
  277. package/dist/components/Slider/slider.css +1 -0
  278. package/dist/components/Slider/slider.css.js +1 -0
  279. package/dist/components/Snackbar/Snackbar.d.ts +72 -14
  280. package/dist/components/Snackbar/Snackbar.js +38 -9
  281. package/dist/components/Snackbar/Snackbar.js.map +1 -1
  282. package/dist/components/Snackbar/SnackbarExample.d.ts +1 -1
  283. package/dist/components/Snackbar/SnackbarExample.js +5 -3
  284. package/dist/components/Snackbar/SnackbarExample.js.map +1 -1
  285. package/dist/components/Snackbar/snackbar.css +31 -2
  286. package/dist/components/Snackbar/snackbar.css.js +31 -2
  287. package/dist/components/StylesProviderDemo/StylesProviderDemo.d.ts +1 -1
  288. package/dist/components/StylesProviderDemo/StylesProviderDemo.js +3 -1
  289. package/dist/components/StylesProviderDemo/StylesProviderDemo.js.map +1 -1
  290. package/dist/components/StylesProviderDemo/exampleCss.d.ts +1 -0
  291. package/dist/components/StylesProviderDemo/exampleCss.js +1900 -0
  292. package/dist/components/StylesProviderDemo/exampleCss.js.map +1 -0
  293. package/dist/components/Switch/Switch.d.ts +5 -3
  294. package/dist/components/Switch/Switch.js +2 -2
  295. package/dist/components/Switch/Switch.js.map +1 -1
  296. package/dist/components/SwitchOption/SwitchOption.js +1 -1
  297. package/dist/components/SwitchOption/SwitchOption.js.map +1 -1
  298. package/dist/components/TabGroup/TabGroup.d.ts +2 -2
  299. package/dist/components/TabGroup/TabGroup.js +3 -3
  300. package/dist/components/TabGroup/TabGroup.js.map +1 -1
  301. package/dist/components/TabList/TabList.d.ts +6 -3
  302. package/dist/components/TabList/TabList.js +6 -4
  303. package/dist/components/TabList/TabList.js.map +1 -1
  304. package/dist/components/Tag/Tag.d.ts +1 -1
  305. package/dist/components/Tag/Tag.js +1 -1
  306. package/dist/components/Textarea/Textarea.d.ts +20 -32
  307. package/dist/components/Textarea/Textarea.js +29 -11
  308. package/dist/components/Textarea/Textarea.js.map +1 -1
  309. package/dist/components/Textarea/textarea.css +24 -10
  310. package/dist/components/Textarea/textarea.css.js +24 -10
  311. package/dist/components/TextareaField/TextareaField.d.ts +6 -30
  312. package/dist/components/TextareaField/TextareaField.js +5 -31
  313. package/dist/components/TextareaField/TextareaField.js.map +1 -1
  314. package/dist/components/TimePicker/Listbox.d.ts +15 -0
  315. package/dist/components/{TimeInput → TimePicker}/Listbox.js +2 -2
  316. package/dist/components/TimePicker/Listbox.js.map +1 -0
  317. package/dist/components/TimePicker/Segment.d.ts +21 -0
  318. package/dist/components/{TimeInput → TimePicker}/Segment.js +2 -1
  319. package/dist/components/TimePicker/Segment.js.map +1 -0
  320. package/dist/components/TimePicker/TimePicker.d.ts +36 -0
  321. package/dist/components/TimePicker/TimePicker.js +139 -0
  322. package/dist/components/TimePicker/TimePicker.js.map +1 -0
  323. package/dist/components/TimePicker/TimePickerExample.d.ts +3 -0
  324. package/dist/components/TimePicker/TimePickerExample.js +6 -0
  325. package/dist/components/TimePicker/TimePickerExample.js.map +1 -0
  326. package/dist/components/TimePicker/index.d.ts +1 -0
  327. package/dist/components/TimePicker/index.js +2 -0
  328. package/dist/components/TimePicker/index.js.map +1 -0
  329. package/dist/components/{TimeInput/time-input.css → TimePicker/time-picker.css} +28 -26
  330. package/dist/components/{TimeInput/time-input.css.js → TimePicker/time-picker.css.js} +28 -26
  331. package/dist/components/TimePicker/utils.d.ts +11 -0
  332. package/dist/components/TimePicker/utils.js +35 -0
  333. package/dist/components/TimePicker/utils.js.map +1 -0
  334. package/dist/components/TimePickerField/TimePickerField.d.ts +15 -0
  335. package/dist/components/TimePickerField/TimePickerField.js +17 -0
  336. package/dist/components/TimePickerField/TimePickerField.js.map +1 -0
  337. package/dist/components/TimePickerField/index.d.ts +1 -0
  338. package/dist/components/TimePickerField/index.js +2 -0
  339. package/dist/components/TimePickerField/index.js.map +1 -0
  340. package/dist/components/ToggleOption/ToggleOption.d.ts +3 -3
  341. package/dist/components/ToggleOption/ToggleOption.js +4 -3
  342. package/dist/components/ToggleOption/ToggleOption.js.map +1 -1
  343. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  344. package/dist/components/Tooltip/Tooltip.js +1 -1
  345. package/dist/components/Tooltip/TooltipExample.js +2 -2
  346. package/dist/components/Tooltip/TooltipExample.js.map +1 -1
  347. package/dist/components/Truncated/Truncated.d.ts +2 -2
  348. package/dist/components/Truncated/Truncated.js.map +1 -1
  349. package/dist/components/Txt/Txt.d.ts +3 -3
  350. package/dist/components/Txt/Txt.js +1 -1
  351. package/dist/components/Txt/Txt.js.map +1 -1
  352. package/dist/constants/brands.d.ts +1 -1
  353. package/dist/constants/brands.js +4 -0
  354. package/dist/constants/brands.js.map +1 -1
  355. package/dist/hooks/useArrowNavigation.d.ts +0 -2
  356. package/dist/hooks/useArrowNavigation.js +0 -2
  357. package/dist/hooks/useArrowNavigation.js.map +1 -1
  358. package/dist/hooks/useCheckboxGroupState.d.ts +8 -11
  359. package/dist/hooks/useCheckboxGroupState.js +8 -11
  360. package/dist/hooks/useCheckboxGroupState.js.map +1 -1
  361. package/dist/hooks/useCheckboxState.d.ts +1 -1
  362. package/dist/hooks/useCheckboxState.js +1 -1
  363. package/dist/hooks/useContainerWidth.d.ts +1 -1
  364. package/dist/hooks/useContainerWidth.js +1 -1
  365. package/dist/hooks/useFloating.js +8 -7
  366. package/dist/hooks/useFloating.js.map +1 -1
  367. package/dist/hooks/useModalState.d.ts +1 -1
  368. package/dist/hooks/useModalState.js +1 -1
  369. package/dist/hooks/useOutsideClick.d.ts +1 -1
  370. package/dist/hooks/useOutsideClick.js +1 -1
  371. package/dist/hooks/useRadioState.d.ts +2 -2
  372. package/dist/hooks/useRadioState.js +1 -1
  373. package/dist/hooks/useTimeout.d.ts +1 -1
  374. package/dist/styles/base.css +7 -0
  375. package/dist/styles/base.css.js +7 -0
  376. package/dist/types/common.d.ts +29 -10
  377. package/dist/types/common.js.map +1 -1
  378. package/dist/types/meta.d.ts +1 -0
  379. package/dist/types/meta.js.map +1 -1
  380. package/dist/utils/demo.d.ts +1 -0
  381. package/dist/utils/demo.js.map +1 -1
  382. package/meta.ts +5 -4
  383. package/package.json +37 -39
  384. package/src/components/Avatar/Avatar.tsx +10 -11
  385. package/src/components/Avatar/AvatarExample.tsx +1 -1
  386. package/src/components/Avatar/avatar.scss +6 -1
  387. package/src/components/AvatarGroup/AvatarGroup.tsx +21 -25
  388. package/src/components/AvatarGroup/AvatarGroupExample.tsx +35 -9
  389. package/src/components/AvatarGroup/Overflow.tsx +91 -0
  390. package/src/components/AvatarGroup/avatar-group.scss +34 -14
  391. package/src/components/Badge/BadgeExample.tsx +1 -1
  392. package/src/components/BadgeDot/BadgeDotExample.tsx +1 -1
  393. package/src/components/Breadcrumb/Breadcrumb.tsx +5 -56
  394. package/src/components/Breadcrumb/BreadcumbDropdown.tsx +135 -0
  395. package/src/components/Button/Button.tsx +9 -3
  396. package/src/components/Button/button.scss +5 -5
  397. package/src/components/Calendar/Calendar.rtl.test.tsx +22 -0
  398. package/src/components/{CalendarPicker/CalendarPicker.tsx → Calendar/Calendar.tsx} +86 -87
  399. package/src/components/Calendar/CalendarExample.tsx +31 -0
  400. package/src/components/{CalendarPicker/calendar-picker.scss → Calendar/calendar.scss} +1 -1
  401. package/src/components/Calendar/index.tsx +1 -0
  402. package/src/components/Card/Card.tsx +3 -2
  403. package/src/components/Checkbox/Checkbox.tsx +28 -26
  404. package/src/components/CheckboxGroup/CheckboxGroup.tsx +77 -81
  405. package/src/components/CheckboxGroup/CheckboxGroupExample.tsx +3 -0
  406. package/src/components/CheckboxGroup/checkbox-group.scss +8 -0
  407. package/src/components/CheckboxGroupField/CheckboxGroupField.rtl.test.tsx +27 -0
  408. package/src/components/CheckboxGroupField/CheckboxGroupField.tsx +37 -0
  409. package/src/components/CheckboxGroupField/index.tsx +1 -0
  410. package/src/components/CheckboxOption/CheckboxOption.tsx +4 -1
  411. package/src/components/{ChipUtility/ChipUtility.rtl.test.tsx → Chip/Chip.rtl.test.tsx} +5 -5
  412. package/src/components/{ChipUtility/ChipUtility.tsx → Chip/Chip.tsx} +26 -28
  413. package/src/components/{ChipUtility/ChipUtilityExample.tsx → Chip/ChipExample.tsx} +3 -3
  414. package/src/components/{ChipUtility/chip-utility.scss → Chip/chip.scss} +1 -1
  415. package/src/components/Chip/index.tsx +1 -0
  416. package/src/components/ChipGroup/ChipGroup.rtl.test.tsx +7 -7
  417. package/src/components/ChipGroup/ChipGroup.tsx +8 -7
  418. package/src/components/ChipGroup/ChipGroupExample.tsx +38 -138
  419. package/src/components/DatePicker/DatePicker.rtl.test.tsx +17 -0
  420. package/src/components/DatePicker/DatePicker.tsx +227 -0
  421. package/src/components/DatePicker/DatePickerExample.tsx +12 -0
  422. package/src/components/{DateInput/date-input.scss → DatePicker/date-picker.scss} +2 -3
  423. package/src/components/DatePicker/index.tsx +1 -0
  424. package/src/components/DatePickerField/DatePickerField.rtl.test.tsx +17 -0
  425. package/src/components/DatePickerField/DatePickerField.tsx +37 -0
  426. package/src/components/DatePickerField/index.tsx +1 -0
  427. package/src/components/Drawer/Drawer.tsx +1 -1
  428. package/src/components/Drawer/DrawerExample.tsx +2 -2
  429. package/src/components/EmptyState/EmptyState.tsx +1 -1
  430. package/src/components/Fab/Fab.tsx +3 -3
  431. package/src/components/Field/Field.rtl.test.tsx +23 -0
  432. package/src/components/Field/Field.tsx +110 -0
  433. package/src/components/Field/FieldDescription.tsx +15 -0
  434. package/src/components/Field/FieldError.tsx +19 -0
  435. package/src/components/Field/FieldExample.tsx +21 -0
  436. package/src/components/Field/FieldLabel.tsx +38 -0
  437. package/src/components/Field/field.scss +43 -0
  438. package/src/components/Field/index.tsx +5 -0
  439. package/src/components/Field/utils.ts +79 -0
  440. package/src/components/FormField/FormField.rtl.test.tsx +11 -21
  441. package/src/components/FormField/FormField.tsx +49 -61
  442. package/src/components/FormField/FormFieldExample.tsx +275 -38
  443. package/src/components/Img/Img.tsx +1 -1
  444. package/src/components/InlineAlert/InlineAlert.tsx +5 -5
  445. package/src/components/{MenuButton/MenuButton.rtl.test.tsx → Input/Input.rtl.test.tsx} +3 -3
  446. package/src/components/Input/Input.tsx +99 -0
  447. package/src/components/{TextInput/TextInput.tsx → Input/InputElement.tsx} +69 -77
  448. package/src/components/Input/InputExample.tsx +57 -0
  449. package/src/components/Input/index.tsx +2 -0
  450. package/src/components/{TextInput/text-input.scss → Input/input.scss} +7 -7
  451. package/src/components/InputField/InputField.rtl.test.tsx +15 -0
  452. package/src/components/InputField/InputField.tsx +37 -0
  453. package/src/components/InputField/index.tsx +1 -0
  454. package/src/components/{NumberInput/NumberInput.rtl.test.tsx → InputNumber/InputNumber.rtl.test.tsx} +3 -3
  455. package/src/components/{NumberInput/NumberInput.tsx → InputNumber/InputNumber.tsx} +48 -30
  456. package/src/components/{NumberInput/NumberInputExample.tsx → InputNumber/InputNumberExample.tsx} +2 -2
  457. package/src/components/InputNumber/index.tsx +1 -0
  458. package/src/components/{NumberInput/number-input.scss → InputNumber/input-number.scss} +1 -1
  459. package/src/components/InputNumberField/InputNumberField.rtl.test.tsx +17 -0
  460. package/src/components/InputNumberField/InputNumberField.tsx +37 -0
  461. package/src/components/InputNumberField/index.tsx +1 -0
  462. package/src/components/InputPhone/InputPhone.rtl.test.tsx +17 -0
  463. package/src/components/InputPhone/InputPhone.tsx +290 -0
  464. package/src/components/InputPhone/InputPhoneExample.tsx +9 -0
  465. package/src/components/InputPhone/index.tsx +1 -0
  466. package/src/components/{PhoneNumberInput/phone-number-input.scss → InputPhone/input-phone.scss} +13 -18
  467. package/src/components/InputPhoneField/InputPhoneField.rtl.test.tsx +17 -0
  468. package/src/components/InputPhoneField/InputPhoneField.tsx +37 -0
  469. package/src/components/InputPhoneField/index.tsx +1 -0
  470. package/src/components/Layout/Layout.tsx +3 -3
  471. package/src/components/Link/Link.tsx +1 -1
  472. package/src/components/ListItem/ListItem.tsx +32 -14
  473. package/src/components/ListItem/ListItemExample.tsx +3 -3
  474. package/src/components/ListItem/list-item.scss +6 -1
  475. package/src/components/Menu/Menu.tsx +10 -2
  476. package/src/components/Menu/MenuExample.tsx +2 -1
  477. package/src/components/Modal/Modal.tsx +1 -1
  478. package/src/components/Modal/ModalExample.tsx +4 -6
  479. package/src/components/Pagination/PageInput.tsx +2 -2
  480. package/src/components/{CalendarPicker/CalendarPicker.rtl.test.tsx → Password/Password.rtl.test.tsx} +4 -4
  481. package/src/components/Password/Password.tsx +113 -0
  482. package/src/components/Password/index.tsx +1 -0
  483. package/src/components/Password/password.scss +31 -0
  484. package/src/components/PasswordField/PasswordField.rtl.test.tsx +4 -11
  485. package/src/components/PasswordField/PasswordField.tsx +13 -43
  486. package/src/components/Popover/Popover.tsx +2 -2
  487. package/src/components/Popover/PopoverExample.tsx +2 -2
  488. package/src/components/ProgressBar/ProgressBar.tsx +1 -1
  489. package/src/components/ProgressCircle/ProgressCircle.tsx +1 -1
  490. package/src/components/ProgressCircle/progress-circle.scss +2 -0
  491. package/src/components/ProgressionStepper/ProgressionStepper.tsx +9 -14
  492. package/src/components/ProgressionStepper/ProgressionStepperExample.tsx +2 -2
  493. package/src/components/Radio/Radio.tsx +15 -16
  494. package/src/components/RadioGroup/RadioGroup.rtl.test.tsx +4 -5
  495. package/src/components/RadioGroup/RadioGroup.tsx +63 -85
  496. package/src/components/RadioGroup/radio-group.scss +3 -1
  497. package/src/components/RadioGroupField/RadioGroupField.rtl.test.tsx +27 -0
  498. package/src/components/RadioGroupField/RadioGroupField.tsx +37 -0
  499. package/src/components/RadioGroupField/index.tsx +1 -0
  500. package/src/components/SearchBar/SearchBar.rtl.test.tsx +3 -3
  501. package/src/components/SearchBar/SearchBar.tsx +10 -21
  502. package/src/components/SegmentedControl/SegmentedControl.tsx +1 -1
  503. package/src/components/Select/Select.rtl.test.tsx +6 -5
  504. package/src/components/Select/Select.tsx +68 -57
  505. package/src/components/Select/SelectExample.tsx +36 -14
  506. package/src/components/SelectField/SelectField.rtl.test.tsx +9 -6
  507. package/src/components/SelectField/SelectField.tsx +10 -44
  508. package/src/components/Skeleton/SkeletonExample.tsx +1 -3
  509. package/src/components/SkeletonText/SkeletonText.tsx +1 -1
  510. package/src/components/Slider/slider.scss +1 -0
  511. package/src/components/Snackbar/Snackbar.tsx +124 -28
  512. package/src/components/Snackbar/SnackbarExample.tsx +9 -3
  513. package/src/components/Snackbar/snackbar.scss +48 -16
  514. package/src/components/StylesProviderDemo/StylesProviderDemo.tsx +5 -2
  515. package/src/components/StylesProviderDemo/exampleCss.ts +1899 -0
  516. package/src/components/Switch/Switch.rtl.test.tsx +3 -1
  517. package/src/components/Switch/Switch.tsx +5 -3
  518. package/src/components/SwitchOption/SwitchOption.rtl.test.tsx +3 -1
  519. package/src/components/SwitchOption/SwitchOption.tsx +1 -1
  520. package/src/components/TabGroup/TabGroup.tsx +2 -2
  521. package/src/components/TabList/TabList.tsx +16 -6
  522. package/src/components/Tag/Tag.tsx +1 -1
  523. package/src/components/Textarea/Textarea.rtl.test.tsx +1 -1
  524. package/src/components/Textarea/Textarea.tsx +40 -41
  525. package/src/components/Textarea/textarea.scss +41 -19
  526. package/src/components/TextareaField/TextareaField.rtl.test.tsx +4 -11
  527. package/src/components/TextareaField/TextareaField.tsx +13 -65
  528. package/src/components/{TimeInput → TimePicker}/Listbox.tsx +5 -5
  529. package/src/components/{TimeInput → TimePicker}/Segment.tsx +8 -5
  530. package/src/components/{TextInput/TextInput.rtl.test.tsx → TimePicker/TimePicker.rtl.test.tsx} +3 -3
  531. package/src/components/{TimeInput/TimeInput.tsx → TimePicker/TimePicker.tsx} +117 -70
  532. package/src/components/TimePicker/TimePickerExample.tsx +8 -0
  533. package/src/components/TimePicker/index.tsx +1 -0
  534. package/src/components/{TimeInput/time-input.scss → TimePicker/time-picker.scss} +7 -5
  535. package/src/components/TimePicker/utils.test.tsx +26 -0
  536. package/src/components/TimePicker/utils.ts +44 -0
  537. package/src/components/TimePickerField/TimePickerField.rtl.test.tsx +17 -0
  538. package/src/components/TimePickerField/TimePickerField.tsx +37 -0
  539. package/src/components/TimePickerField/index.tsx +1 -0
  540. package/src/components/ToggleOption/ToggleOption.tsx +29 -23
  541. package/src/components/Tooltip/Tooltip.tsx +1 -1
  542. package/src/components/Tooltip/TooltipExample.tsx +7 -9
  543. package/src/components/Truncated/Truncated.tsx +2 -2
  544. package/src/components/Txt/Txt.tsx +3 -3
  545. package/src/constants/brands.ts +5 -1
  546. package/src/hooks/useArrowNavigation.ts +0 -2
  547. package/src/hooks/useCheckboxGroupState.ts +8 -11
  548. package/src/hooks/useCheckboxState.ts +1 -1
  549. package/src/hooks/useContainerWidth.tsx +1 -1
  550. package/src/hooks/useFloating.ts +8 -7
  551. package/src/hooks/useModalState.ts +1 -1
  552. package/src/hooks/useOutsideClick.ts +1 -1
  553. package/src/hooks/useRadioState.ts +1 -1
  554. package/src/hooks/useTimeout.ts +1 -1
  555. package/src/styles/base.scss +7 -0
  556. package/src/types/common.ts +39 -10
  557. package/src/types/meta.ts +1 -0
  558. package/src/utils/demo.ts +1 -0
  559. package/dist/components/CalendarPicker/CalendarPicker.d.ts +0 -32
  560. package/dist/components/CalendarPicker/CalendarPicker.js.map +0 -1
  561. package/dist/components/CalendarPicker/CalendarPickerExample.d.ts +0 -3
  562. package/dist/components/CalendarPicker/CalendarPickerExample.js +0 -17
  563. package/dist/components/CalendarPicker/CalendarPickerExample.js.map +0 -1
  564. package/dist/components/CalendarPicker/index.d.ts +0 -1
  565. package/dist/components/CalendarPicker/index.js +0 -2
  566. package/dist/components/CalendarPicker/index.js.map +0 -1
  567. package/dist/components/ChipAssist/ChipAssist.d.ts +0 -24
  568. package/dist/components/ChipAssist/ChipAssist.js +0 -26
  569. package/dist/components/ChipAssist/ChipAssist.js.map +0 -1
  570. package/dist/components/ChipAssist/ChipAssistExample.d.ts +0 -4
  571. package/dist/components/ChipAssist/ChipAssistExample.js +0 -32
  572. package/dist/components/ChipAssist/ChipAssistExample.js.map +0 -1
  573. package/dist/components/ChipAssist/index.d.ts +0 -1
  574. package/dist/components/ChipAssist/index.js +0 -2
  575. package/dist/components/ChipAssist/index.js.map +0 -1
  576. package/dist/components/ChipFilter/ChipFilter.d.ts +0 -40
  577. package/dist/components/ChipFilter/ChipFilter.js +0 -31
  578. package/dist/components/ChipFilter/ChipFilter.js.map +0 -1
  579. package/dist/components/ChipFilter/ChipFilterExample.d.ts +0 -3
  580. package/dist/components/ChipFilter/ChipFilterExample.js +0 -62
  581. package/dist/components/ChipFilter/ChipFilterExample.js.map +0 -1
  582. package/dist/components/ChipFilter/index.d.ts +0 -1
  583. package/dist/components/ChipFilter/index.js +0 -2
  584. package/dist/components/ChipFilter/index.js.map +0 -1
  585. package/dist/components/ChipInput/ChipInput.d.ts +0 -31
  586. package/dist/components/ChipInput/ChipInput.js +0 -27
  587. package/dist/components/ChipInput/ChipInput.js.map +0 -1
  588. package/dist/components/ChipInput/ChipInputExample.d.ts +0 -4
  589. package/dist/components/ChipInput/ChipInputExample.js +0 -47
  590. package/dist/components/ChipInput/ChipInputExample.js.map +0 -1
  591. package/dist/components/ChipInput/index.d.ts +0 -1
  592. package/dist/components/ChipInput/index.js +0 -2
  593. package/dist/components/ChipInput/index.js.map +0 -1
  594. package/dist/components/ChipSuggestion/ChipSuggestion.d.ts +0 -17
  595. package/dist/components/ChipSuggestion/ChipSuggestion.js +0 -19
  596. package/dist/components/ChipSuggestion/ChipSuggestion.js.map +0 -1
  597. package/dist/components/ChipSuggestion/ChipSuggestionExample.d.ts +0 -4
  598. package/dist/components/ChipSuggestion/ChipSuggestionExample.js +0 -24
  599. package/dist/components/ChipSuggestion/ChipSuggestionExample.js.map +0 -1
  600. package/dist/components/ChipSuggestion/index.d.ts +0 -1
  601. package/dist/components/ChipSuggestion/index.js +0 -2
  602. package/dist/components/ChipSuggestion/index.js.map +0 -1
  603. package/dist/components/ChipUtility/ChipUtility.js +0 -25
  604. package/dist/components/ChipUtility/ChipUtility.js.map +0 -1
  605. package/dist/components/ChipUtility/ChipUtilityExample.d.ts +0 -4
  606. package/dist/components/ChipUtility/ChipUtilityExample.js.map +0 -1
  607. package/dist/components/ChipUtility/index.d.ts +0 -1
  608. package/dist/components/ChipUtility/index.js +0 -2
  609. package/dist/components/ChipUtility/index.js.map +0 -1
  610. package/dist/components/DateField/DateField.d.ts +0 -32
  611. package/dist/components/DateField/DateField.js +0 -34
  612. package/dist/components/DateField/DateField.js.map +0 -1
  613. package/dist/components/DateField/DateFieldExample.d.ts +0 -4
  614. package/dist/components/DateField/DateFieldExample.js +0 -11
  615. package/dist/components/DateField/DateFieldExample.js.map +0 -1
  616. package/dist/components/DateField/date-field.css +0 -8
  617. package/dist/components/DateField/index.d.ts +0 -1
  618. package/dist/components/DateField/index.js +0 -2
  619. package/dist/components/DateField/index.js.map +0 -1
  620. package/dist/components/DateInput/DateInput.d.ts +0 -39
  621. package/dist/components/DateInput/DateInput.js +0 -103
  622. package/dist/components/DateInput/DateInput.js.map +0 -1
  623. package/dist/components/DateInput/DateInputExample.d.ts +0 -4
  624. package/dist/components/DateInput/DateInputExample.js +0 -14
  625. package/dist/components/DateInput/DateInputExample.js.map +0 -1
  626. package/dist/components/DateInput/index.d.ts +0 -1
  627. package/dist/components/DateInput/index.js +0 -2
  628. package/dist/components/DateInput/index.js.map +0 -1
  629. package/dist/components/FormField/form-field.css +0 -17
  630. package/dist/components/FormField/form-field.css.js +0 -22
  631. package/dist/components/ListItemMenu/ListItemMenu.d.ts +0 -146
  632. package/dist/components/ListItemMenu/ListItemMenu.js +0 -159
  633. package/dist/components/ListItemMenu/ListItemMenu.js.map +0 -1
  634. package/dist/components/ListItemMenu/index.d.ts +0 -1
  635. package/dist/components/ListItemMenu/index.js +0 -2
  636. package/dist/components/ListItemMenu/index.js.map +0 -1
  637. package/dist/components/MenuButton/MenuButton.d.ts +0 -19
  638. package/dist/components/MenuButton/MenuButton.js +0 -20
  639. package/dist/components/MenuButton/MenuButton.js.map +0 -1
  640. package/dist/components/MenuButton/index.d.ts +0 -1
  641. package/dist/components/MenuButton/index.js +0 -2
  642. package/dist/components/MenuButton/index.js.map +0 -1
  643. package/dist/components/MenuButton/menu-button.css +0 -16
  644. package/dist/components/MenuButton/menu-button.css.js +0 -21
  645. package/dist/components/NumberField/NumberField.d.ts +0 -33
  646. package/dist/components/NumberField/NumberField.js +0 -35
  647. package/dist/components/NumberField/NumberField.js.map +0 -1
  648. package/dist/components/NumberField/index.d.ts +0 -1
  649. package/dist/components/NumberField/index.js +0 -2
  650. package/dist/components/NumberField/index.js.map +0 -1
  651. package/dist/components/NumberInput/NumberInput.d.ts +0 -63
  652. package/dist/components/NumberInput/NumberInput.js.map +0 -1
  653. package/dist/components/NumberInput/NumberInputExample.d.ts +0 -3
  654. package/dist/components/NumberInput/NumberInputExample.js.map +0 -1
  655. package/dist/components/NumberInput/index.d.ts +0 -1
  656. package/dist/components/NumberInput/index.js +0 -2
  657. package/dist/components/NumberInput/index.js.map +0 -1
  658. package/dist/components/PasswordInput/PasswordInput.d.ts +0 -21
  659. package/dist/components/PasswordInput/PasswordInput.js +0 -34
  660. package/dist/components/PasswordInput/PasswordInput.js.map +0 -1
  661. package/dist/components/PasswordInput/index.d.ts +0 -1
  662. package/dist/components/PasswordInput/index.js +0 -2
  663. package/dist/components/PasswordInput/index.js.map +0 -1
  664. package/dist/components/PasswordInput/password-input.css +0 -28
  665. package/dist/components/PasswordInput/password-input.css.js +0 -33
  666. package/dist/components/PhoneNumberField/PhoneNumberField.d.ts +0 -14
  667. package/dist/components/PhoneNumberField/PhoneNumberField.js +0 -16
  668. package/dist/components/PhoneNumberField/PhoneNumberField.js.map +0 -1
  669. package/dist/components/PhoneNumberField/index.d.ts +0 -1
  670. package/dist/components/PhoneNumberField/index.js +0 -2
  671. package/dist/components/PhoneNumberField/index.js.map +0 -1
  672. package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +0 -37
  673. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +0 -83
  674. package/dist/components/PhoneNumberInput/PhoneNumberInput.js.map +0 -1
  675. package/dist/components/PhoneNumberInput/PhoneNumberInputExample.d.ts +0 -4
  676. package/dist/components/PhoneNumberInput/PhoneNumberInputExample.js +0 -5
  677. package/dist/components/PhoneNumberInput/PhoneNumberInputExample.js.map +0 -1
  678. package/dist/components/PhoneNumberInput/index.d.ts +0 -1
  679. package/dist/components/PhoneNumberInput/index.js +0 -2
  680. package/dist/components/PhoneNumberInput/index.js.map +0 -1
  681. package/dist/components/PhoneNumberInput/phone-number-input.css +0 -46
  682. package/dist/components/PhoneNumberInput/phone-number-input.css.js +0 -51
  683. package/dist/components/SelectField/SelectFieldExample.d.ts +0 -23
  684. package/dist/components/SelectField/SelectFieldExample.js +0 -13
  685. package/dist/components/SelectField/SelectFieldExample.js.map +0 -1
  686. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +0 -90
  687. package/dist/components/SnackbarProvider/SnackbarProvider.js +0 -115
  688. package/dist/components/SnackbarProvider/SnackbarProvider.js.map +0 -1
  689. package/dist/components/SnackbarProvider/SnackbarProviderExample.d.ts +0 -4
  690. package/dist/components/SnackbarProvider/SnackbarProviderExample.js +0 -59
  691. package/dist/components/SnackbarProvider/SnackbarProviderExample.js.map +0 -1
  692. package/dist/components/SnackbarProvider/index.d.ts +0 -1
  693. package/dist/components/SnackbarProvider/index.js +0 -2
  694. package/dist/components/SnackbarProvider/index.js.map +0 -1
  695. package/dist/components/SnackbarProvider/snackbar-provider-example.css +0 -15
  696. package/dist/components/SnackbarProvider/snackbar-provider-example.css.js +0 -20
  697. package/dist/components/SnackbarProvider/snackbar-provider.css +0 -15
  698. package/dist/components/SnackbarProvider/snackbar-provider.css.js +0 -20
  699. package/dist/components/TextField/TextField.d.ts +0 -31
  700. package/dist/components/TextField/TextField.js +0 -33
  701. package/dist/components/TextField/TextField.js.map +0 -1
  702. package/dist/components/TextField/TextFieldExample.d.ts +0 -3
  703. package/dist/components/TextField/TextFieldExample.js +0 -6
  704. package/dist/components/TextField/TextFieldExample.js.map +0 -1
  705. package/dist/components/TextField/index.d.ts +0 -1
  706. package/dist/components/TextField/index.js +0 -2
  707. package/dist/components/TextField/index.js.map +0 -1
  708. package/dist/components/TextInput/TextInput.d.ts +0 -78
  709. package/dist/components/TextInput/TextInput.js.map +0 -1
  710. package/dist/components/TextInput/TextInputExample.d.ts +0 -3
  711. package/dist/components/TextInput/TextInputExample.js.map +0 -1
  712. package/dist/components/TextInput/index.d.ts +0 -1
  713. package/dist/components/TextInput/index.js +0 -2
  714. package/dist/components/TextInput/index.js.map +0 -1
  715. package/dist/components/TextareaField/TextareaFieldExample.d.ts +0 -3
  716. package/dist/components/TextareaField/TextareaFieldExample.js +0 -10
  717. package/dist/components/TextareaField/TextareaFieldExample.js.map +0 -1
  718. package/dist/components/TimeInput/Listbox.d.ts +0 -15
  719. package/dist/components/TimeInput/Listbox.js.map +0 -1
  720. package/dist/components/TimeInput/Segment.d.ts +0 -20
  721. package/dist/components/TimeInput/Segment.js.map +0 -1
  722. package/dist/components/TimeInput/TimeInput.d.ts +0 -24
  723. package/dist/components/TimeInput/TimeInput.js +0 -115
  724. package/dist/components/TimeInput/TimeInput.js.map +0 -1
  725. package/dist/components/TimeInput/TimeInputExample.d.ts +0 -3
  726. package/dist/components/TimeInput/TimeInputExample.js +0 -4
  727. package/dist/components/TimeInput/TimeInputExample.js.map +0 -1
  728. package/dist/components/TimeInput/index.d.ts +0 -1
  729. package/dist/components/TimeInput/index.js +0 -2
  730. package/dist/components/TimeInput/index.js.map +0 -1
  731. package/dist/hooks/useSnackbarContext.d.ts +0 -1
  732. package/dist/hooks/useSnackbarContext.js +0 -16
  733. package/dist/hooks/useSnackbarContext.js.map +0 -1
  734. package/dist/utils/snackbarContext.d.ts +0 -38
  735. package/dist/utils/snackbarContext.js +0 -3
  736. package/dist/utils/snackbarContext.js.map +0 -1
  737. package/src/components/CalendarPicker/CalendarPickerExample.tsx +0 -24
  738. package/src/components/CalendarPicker/index.tsx +0 -1
  739. package/src/components/ChipAssist/ChipAssist.rtl.test.tsx +0 -16
  740. package/src/components/ChipAssist/ChipAssist.tsx +0 -37
  741. package/src/components/ChipAssist/ChipAssistExample.tsx +0 -34
  742. package/src/components/ChipAssist/index.tsx +0 -1
  743. package/src/components/ChipFilter/ChipFilter.rtl.test.tsx +0 -15
  744. package/src/components/ChipFilter/ChipFilter.tsx +0 -75
  745. package/src/components/ChipFilter/ChipFilterExample.tsx +0 -63
  746. package/src/components/ChipFilter/index.tsx +0 -1
  747. package/src/components/ChipInput/ChipInput.rtl.test.tsx +0 -16
  748. package/src/components/ChipInput/ChipInput.tsx +0 -47
  749. package/src/components/ChipInput/ChipInputExample.tsx +0 -49
  750. package/src/components/ChipInput/index.tsx +0 -1
  751. package/src/components/ChipSuggestion/ChipSuggestion.rtl.test.tsx +0 -19
  752. package/src/components/ChipSuggestion/ChipSuggestion.tsx +0 -22
  753. package/src/components/ChipSuggestion/ChipSuggestionExample.tsx +0 -26
  754. package/src/components/ChipSuggestion/index.tsx +0 -1
  755. package/src/components/ChipUtility/index.tsx +0 -1
  756. package/src/components/DateField/DateField.rtl.test.tsx +0 -24
  757. package/src/components/DateField/DateField.tsx +0 -58
  758. package/src/components/DateField/DateFieldExample.tsx +0 -13
  759. package/src/components/DateField/date-field.scss +0 -8
  760. package/src/components/DateField/index.tsx +0 -1
  761. package/src/components/DateInput/DateInput.rtl.test.tsx +0 -17
  762. package/src/components/DateInput/DateInput.tsx +0 -198
  763. package/src/components/DateInput/DateInputExample.tsx +0 -17
  764. package/src/components/DateInput/index.tsx +0 -1
  765. package/src/components/FormField/form-field.scss +0 -19
  766. package/src/components/ListItemMenu/ListItemMenu.tsx +0 -359
  767. package/src/components/ListItemMenu/index.tsx +0 -1
  768. package/src/components/MenuButton/MenuButton.tsx +0 -29
  769. package/src/components/MenuButton/index.tsx +0 -1
  770. package/src/components/MenuButton/menu-button.scss +0 -16
  771. package/src/components/NumberField/NumberField.rtl.test.tsx +0 -24
  772. package/src/components/NumberField/NumberField.tsx +0 -70
  773. package/src/components/NumberField/index.tsx +0 -1
  774. package/src/components/NumberInput/index.tsx +0 -1
  775. package/src/components/PasswordInput/PasswordInput.rtl.test.tsx +0 -15
  776. package/src/components/PasswordInput/PasswordInput.tsx +0 -115
  777. package/src/components/PasswordInput/index.tsx +0 -1
  778. package/src/components/PasswordInput/password-input.scss +0 -36
  779. package/src/components/PhoneNumberField/PhoneNumberField.rtl.test.tsx +0 -24
  780. package/src/components/PhoneNumberField/PhoneNumberField.tsx +0 -41
  781. package/src/components/PhoneNumberField/index.tsx +0 -1
  782. package/src/components/PhoneNumberInput/PhoneNumberInput.rtl.test.tsx +0 -17
  783. package/src/components/PhoneNumberInput/PhoneNumberInput.tsx +0 -186
  784. package/src/components/PhoneNumberInput/PhoneNumberInputExample.tsx +0 -8
  785. package/src/components/PhoneNumberInput/index.tsx +0 -1
  786. package/src/components/SelectField/SelectFieldExample.tsx +0 -16
  787. package/src/components/SnackbarProvider/SnackbarProvider.tsx +0 -160
  788. package/src/components/SnackbarProvider/SnackbarProviderExample.tsx +0 -127
  789. package/src/components/SnackbarProvider/index.tsx +0 -1
  790. package/src/components/SnackbarProvider/snackbar-provider-example.scss +0 -17
  791. package/src/components/SnackbarProvider/snackbar-provider.scss +0 -15
  792. package/src/components/TextField/TextField.rtl.test.tsx +0 -24
  793. package/src/components/TextField/TextField.tsx +0 -67
  794. package/src/components/TextField/TextFieldExample.tsx +0 -8
  795. package/src/components/TextField/index.tsx +0 -1
  796. package/src/components/TextInput/TextInputExample.tsx +0 -44
  797. package/src/components/TextInput/index.tsx +0 -1
  798. package/src/components/TextareaField/TextareaFieldExample.tsx +0 -13
  799. package/src/components/TimeInput/TimeInput.rtl.test.tsx +0 -15
  800. package/src/components/TimeInput/TimeInputExample.tsx +0 -6
  801. package/src/components/TimeInput/index.tsx +0 -1
  802. package/src/hooks/useSnackbarContext.ts +0 -18
  803. package/src/utils/snackbarContext.tsx +0 -43
  804. /package/dist/components/{NumberInput → InputNumber}/IncrementButton.d.ts +0 -0
  805. /package/dist/components/{NumberInput → InputNumber}/IncrementButton.js +0 -0
  806. /package/src/components/{NumberInput → InputNumber}/IncrementButton.tsx +0 -0
@@ -0,0 +1,35 @@
1
+ import { format, isValid, parse } from 'date-fns';
2
+ export const MINUTE_OPTIONS = ['00', '05', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55'];
3
+ export const HOUR_OPTIONS = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
4
+ export const MERIDIEM_OPTIONS = ['AM', 'PM'];
5
+ export function stringValueToParts(timeString) {
6
+ // Parse the 24-hour time string into a Date object
7
+ // 'HH:mm' is the format for 24-hour time (e.g., '14:30')
8
+ // new Date() provides a base date for parsing, which is necessary
9
+ // but the date part won't affect the time parsing here.
10
+ const dateObj = parse(timeString, 'HH:mm', new Date());
11
+ const isValidDate = isValid(dateObj);
12
+ // Extract hours, minutes, and AM/PM using format
13
+ return {
14
+ hours: isValidDate ? format(dateObj, 'hh') : undefined,
15
+ minutes: isValidDate ? format(dateObj, 'mm') : undefined,
16
+ meridiem: isValidDate ? format(dateObj, 'a') : 'AM',
17
+ str: timeString,
18
+ };
19
+ }
20
+ export function partsToStringValue(hours, minutes, meridiem) {
21
+ if (typeof hours === 'undefined' || typeof minutes === 'undefined') {
22
+ return '';
23
+ }
24
+ const minutesNumber = Number(minutes);
25
+ let hours24 = Number(hours);
26
+ if (meridiem === 'PM' && hours24 < 12) {
27
+ hours24 += 12;
28
+ }
29
+ else if (meridiem === 'AM' && hours24 === 12) {
30
+ hours24 = 0;
31
+ }
32
+ // Format the date object back to a 24-hour time string
33
+ return `${hours24.toString().padStart(2, '0')}:${minutesNumber.toString().padStart(2, '0')}`;
34
+ }
35
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/TimePicker/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACvG,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACrG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAI7C,MAAM,UAAU,kBAAkB,CAAC,UAAkB;IACjD,mDAAmD;IACnD,yDAAyD;IACzD,kEAAkE;IAClE,wDAAwD;IAExD,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IAEvD,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAErC,iDAAiD;IACjD,OAAO;QACH,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;QACtD,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;QACxD,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAE,MAAM,CAAC,OAAO,EAAE,GAAG,CAAc,CAAC,CAAC,CAAC,IAAI;QACjE,GAAG,EAAE,UAAU;KAClB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAAyB,EAAE,OAA2B,EAAE,QAAkB;IACzG,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;QACjE,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAEtC,IAAI,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,GAAG,EAAE,EAAE,CAAC;QACpC,OAAO,IAAI,EAAE,CAAC;IAClB,CAAC;SAAM,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC;QAC7C,OAAO,GAAG,CAAC,CAAC;IAChB,CAAC;IAED,uDAAuD;IACvD,OAAO,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,aAAa,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AACjG,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { FormFieldControlProps } from '-/components/FormField';
2
+ import { TimePickerProps } from '-/components/TimePicker';
3
+ export type TimePickerFieldProps = FormFieldControlProps<TimePickerProps>;
4
+ /**
5
+ * A field wrapper for the TimePicker component.
6
+ *
7
+ * This component takes properties from the FormField and TimePicker components.
8
+ *
9
+ * @name TimePickerField
10
+ * @phase UXReview
11
+ *
12
+ * @generated
13
+ */
14
+ export declare function TimePickerField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: TimePickerFieldProps): import("react/jsx-runtime").JSX.Element;
15
+ /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FormField } from '../FormField';
3
+ import { TimePicker } from '../TimePicker';
4
+ /**
5
+ * A field wrapper for the TimePicker component.
6
+ *
7
+ * This component takes properties from the FormField and TimePicker components.
8
+ *
9
+ * @name TimePickerField
10
+ * @phase UXReview
11
+ *
12
+ * @generated
13
+ */
14
+ export function TimePickerField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, style: style, children: _jsx(TimePicker, { ...controlProps }) }));
16
+ }
17
+ //# sourceMappingURL=TimePickerField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimePickerField.js","sourceRoot":"","sources":["../../../src/components/TimePickerField/TimePickerField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AAItE;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACI;IACnB,OAAO,CACH,KAAC,SAAS,IACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,YAEZ,KAAC,UAAU,OAAK,YAAY,GAAI,GACxB,CACf,CAAC;AACN,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './TimePickerField';
@@ -0,0 +1,2 @@
1
+ export * from './TimePickerField';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TimePickerField/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import './toggle-option.scss';
2
2
  import { ReactElement } from 'react';
3
+ import { ListItemProps } from '-/components/ListItem';
3
4
  import { CommonProps } from '-/types/common';
4
5
  export type ToggleOptionControlProps<T extends {
5
6
  'aria-label'?: string;
6
7
  }> = Omit<T, 'aria-label'> & Pick<ToggleOptionProps, 'description' | 'label'>;
7
- export type ToggleOptionProps = CommonProps<'disabled' | 'readOnly'> & {
8
+ export type ToggleOptionProps = CommonProps<'disabled' | 'readOnly'> & Omit<ListItemProps, 'as' | 'label' | 'leading' | 'subtext' | 'trailing'> & {
8
9
  /**
9
10
  * The label of the option. Also used as the aria-label of the control.
10
11
  *
@@ -15,7 +16,6 @@ export type ToggleOptionProps = CommonProps<'disabled' | 'readOnly'> & {
15
16
  * The description of the option.
16
17
  *
17
18
  * @type multiline
18
- * @type multiline
19
19
  */
20
20
  description?: string;
21
21
  /** The control element to use. */
@@ -27,5 +27,5 @@ export type ToggleOptionProps = CommonProps<'disabled' | 'readOnly'> & {
27
27
  * @name ToggleOption
28
28
  * @phase Utility
29
29
  */
30
- export declare function ToggleOption({ label, description, children, disabled, readOnly }: ToggleOptionProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function ToggleOption({ label, description, children, disabled, readOnly, ...props }: ToggleOptionProps): import("react/jsx-runtime").JSX.Element;
31
31
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -1,12 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import './toggle-option.css.js';
3
+ import { ListItem } from '../ListItem';
3
4
  /**
4
5
  * A utility component that wraps a checkbox, radio, and switch.
5
6
  *
6
7
  * @name ToggleOption
7
8
  * @phase Utility
8
9
  */
9
- export function ToggleOption({ label, description, children, disabled, readOnly }) {
10
- return (_jsxs("label", { "aria-disabled": !!disabled || !!readOnly || undefined, "data-bspk": "toggle-option", children: [_jsx("span", { "data-control": true, children: children }), _jsx("span", { "data-label": true, children: label }), description && _jsx("span", { "data-description": true, children: description })] }));
10
+ export function ToggleOption({ label, description, children, disabled, readOnly, ...props }) {
11
+ return (_jsx(ListItem, { ...props, as: "label", "data-disabled": disabled, "data-readonly": readOnly, label: label, leading: children, subText: description, width: "hug" }));
11
12
  }
12
13
  //# sourceMappingURL=ToggleOption.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleOption.js","sourceRoot":"","sources":["../../../src/components/ToggleOption/ToggleOption.tsx"],"names":[],"mappings":";AAAA,OAAO,sBAAsB,CAAC;AAyB9B;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAqB;IAChG,OAAO,CACH,kCAAsB,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,IAAI,SAAS,eAAY,eAAe,aAClF,+CAAoB,QAAQ,GAAQ,EACpC,6CAAkB,KAAK,GAAQ,EAC9B,WAAW,IAAI,mDAAwB,WAAW,GAAQ,IACvD,CACX,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"ToggleOption.js","sourceRoot":"","sources":["../../../src/components/ToggleOption/ToggleOption.tsx"],"names":[],"mappings":";AAAA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAiB,MAAM,uBAAuB,CAAC;AAwBhE;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAqB;IAC1G,OAAO,CACH,KAAC,QAAQ,OACD,KAAK,EACT,EAAE,EAAC,OAAO,mBACK,QAAQ,mBACR,QAAQ,EACvB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,KAAK,GACb,CACL,CAAC;AACN,CAAC"}
@@ -39,7 +39,7 @@ export type TooltipProps = {
39
39
  * import { Tooltip } from '@bspk/ui/Tooltip';
40
40
  * import { Button } from '@bspk/ui/Button';
41
41
  *
42
- * export function Example() {
42
+ * function Example() {
43
43
  * return (
44
44
  * <Tooltip label="I explain what this button does" placement="top">
45
45
  * {(triggerProps) => <Button {...triggerProps}>Click me</Button>}
@@ -11,7 +11,7 @@ import { useId } from '../../hooks/useId';
11
11
  * import { Tooltip } from '@bspk/ui/Tooltip';
12
12
  * import { Button } from '@bspk/ui/Button';
13
13
  *
14
- * export function Example() {
14
+ * function Example() {
15
15
  * return (
16
16
  * <Tooltip label="I explain what this button does" placement="top">
17
17
  * {(triggerProps) => <Button {...triggerProps}>Click me</Button>}
@@ -1,8 +1,8 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Button } from '../Button';
3
3
  export const TooltipExample = {
4
4
  render: ({ props: state, Component }) => {
5
- return (_jsx(_Fragment, { children: _jsx(Component, { ...state, label: `Hover over me ${state.label || ''}`, placement: [state.placement].flat()[0] || 'top', children: (triggerProps) => _jsx(Button, { ...triggerProps, label: "Hover over me", variant: "secondary" }) }) }));
5
+ return (_jsx(Component, { ...state, label: `Hover over me ${state.label || ''}`, placement: [state.placement].flat()[0] || 'top', children: (triggerProps) => _jsx(Button, { ...triggerProps, label: "Hover over me", variant: "secondary" }) }));
6
6
  },
7
7
  };
8
8
  //# sourceMappingURL=TooltipExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipExample.js","sourceRoot":"","sources":["../../../src/components/Tooltip/TooltipExample.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,MAAM,CAAC,MAAM,cAAc,GAAmC;IAC1D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;QACpC,OAAO,CACH,4BACI,KAAC,SAAS,OACF,KAAK,EACT,KAAK,EAAE,iBAAiB,KAAK,CAAC,KAAK,IAAI,EAAE,EAAE,EAC3C,SAAS,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAE9C,CAAC,YAAY,EAAE,EAAE,CAAC,KAAC,MAAM,OAAK,YAAY,EAAE,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,WAAW,GAAG,GACjF,GACb,CACN,CAAC;IACN,CAAC;CACJ,CAAC"}
1
+ {"version":3,"file":"TooltipExample.js","sourceRoot":"","sources":["../../../src/components/Tooltip/TooltipExample.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,MAAM,CAAC,MAAM,cAAc,GAAmC;IAC1D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;QACpC,OAAO,CACH,KAAC,SAAS,OACF,KAAK,EACT,KAAK,EAAE,iBAAiB,KAAK,CAAC,KAAK,IAAI,EAAE,EAAE,EAC3C,SAAS,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAE9C,CAAC,YAAY,EAAE,EAAE,CAAC,KAAC,MAAM,OAAK,YAAY,EAAE,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,WAAW,GAAG,GACjF,CACf,CAAC;IACN,CAAC;CACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import './truncated.scss';
2
2
  import { ElementType } from 'react';
3
3
  import { ElementConstructorProps } from '-/types/common';
4
- export type TruncatedProps<As extends ElementType = 'span'> = {
4
+ export type TruncatedProps<As extends ElementType = ElementType> = {
5
5
  /**
6
6
  * The element type to render as.
7
7
  *
@@ -31,4 +31,4 @@ export type TruncatedProps<As extends ElementType = 'span'> = {
31
31
  * @name Truncated
32
32
  * @phase Utility
33
33
  */
34
- export declare function Truncated<As extends ElementType = 'span'>({ children, label, ...props }: ElementConstructorProps<As, 'children'> & TruncatedProps<As>): import("react/jsx-runtime").JSX.Element;
34
+ export declare function Truncated<As extends ElementType = ElementType>({ children, label, ...props }: ElementConstructorProps<As, 'children'> & TruncatedProps<As>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Truncated.js","sourceRoot":"","sources":["../../../src/components/Truncated/Truncated.tsx"],"names":[],"mappings":";AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAuB,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AA4B5D;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAkC,EACvD,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACmD;IAC3D,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAEvD,MAAM,IAAI,GAAG,CAAC,YAAiC,EAAE,EAAE,CAAC,CAChD,kBACQ,KAAK,uBACS,WAAW,EAC7B,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,KAC3B,YAAY,EAChB,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,YAEtC,QAAQ,GACN,CACV,CAAC;IAEF,OAAO,WAAW,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,IAAI,QAAQ,YAAG,IAAI,GAAW,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxF,CAAC"}
1
+ {"version":3,"file":"Truncated.js","sourceRoot":"","sources":["../../../src/components/Truncated/Truncated.tsx"],"names":[],"mappings":";AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAuB,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AA4B5D;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAuC,EAC5D,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACmD;IAC3D,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAEvD,MAAM,IAAI,GAAG,CAAC,YAAiC,EAAE,EAAE,CAAC,CAChD,kBACQ,KAAK,uBACS,WAAW,EAC7B,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,KAC3B,YAAY,EAChB,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,YAEtC,QAAQ,GACN,CACV,CAAC;IAEF,OAAO,WAAW,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,IAAI,QAAQ,YAAG,IAAI,GAAW,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { ElementType } from 'react';
2
2
  import { ElementProps } from '-/types/common';
3
3
  import { TxtVariant } from '-/utils/txtVariants';
4
- export type TxtProps<As extends ElementType = 'span'> = {
4
+ export type TxtProps<As extends ElementType = ElementType> = {
5
5
  /**
6
6
  * The element type to render as.
7
7
  *
@@ -45,12 +45,12 @@ export type TxtProps<As extends ElementType = 'span'> = {
45
45
  * @example
46
46
  * import { Txt } from '@bspk/ui/Txt';
47
47
  *
48
- * export function Example() {
48
+ * function Example() {
49
49
  * return <Txt>Example Txt</Txt>;
50
50
  * }
51
51
  *
52
52
  * @name Txt
53
53
  * @phase UXReview
54
54
  */
55
- export declare function Txt<As extends ElementType = 'span'>({ children, as, variant, style: styleProp, skeletonLines, inherit, ...containerProps }: ElementProps<TxtProps<As>, As>): import("react/jsx-runtime").JSX.Element | null;
55
+ export declare function Txt<As extends ElementType = ElementType>({ children, as, variant, style: styleProp, skeletonLines, inherit, ...containerProps }: ElementProps<TxtProps<As>, As>): import("react/jsx-runtime").JSX.Element | null;
56
56
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -6,7 +6,7 @@ import { SkeletonText } from '../SkeletonText';
6
6
  * @example
7
7
  * import { Txt } from '@bspk/ui/Txt';
8
8
  *
9
- * export function Example() {
9
+ * function Example() {
10
10
  * return <Txt>Example Txt</Txt>;
11
11
  * }
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Txt.js","sourceRoot":"","sources":["../../../src/components/Txt/Txt.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AA2CzD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,GAAG,CAAkC,EACjD,QAAQ,EACR,EAAE,EACF,OAAO,GAAG,WAAW,EACrB,KAAK,EAAE,SAAS,EAChB,aAAa,GAAG,CAAC,EACjB,OAAO,EACP,GAAG,cAAc,EACY;IAC7B,MAAM,OAAO,GAAG,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAErC,IAAI,CAAC,OAAO;QAAE,OAAO,aAAa,CAAC,CAAC,CAAC,KAAC,YAAY,IAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAErG,MAAM,EAAE,GAAgB,EAAE,IAAI,MAAM,CAAC;IAErC,OAAO,CACH,KAAC,EAAE,OACK,cAAc,eACR,KAAK,EACf,KAAK,EAAE;YACH,GAAG,SAAS;YACZ,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,OAAO,GAAG;SAClD,YAEA,OAAO,GACP,CACR,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"Txt.js","sourceRoot":"","sources":["../../../src/components/Txt/Txt.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AA2CzD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,GAAG,CAAuC,EACtD,QAAQ,EACR,EAAE,EACF,OAAO,GAAG,WAAW,EACrB,KAAK,EAAE,SAAS,EAChB,aAAa,GAAG,CAAC,EACjB,OAAO,EACP,GAAG,cAAc,EACY;IAC7B,MAAM,OAAO,GAAG,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAErC,IAAI,CAAC,OAAO;QAAE,OAAO,aAAa,CAAC,CAAC,CAAC,KAAC,YAAY,IAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAErG,MAAM,EAAE,GAAgB,EAAE,IAAI,MAAM,CAAC;IAErC,OAAO,CACH,KAAC,EAAE,OACK,cAAc,eACR,KAAK,EACf,KAAK,EAAE;YACH,GAAG,SAAS;YACZ,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,OAAO,GAAG;SAClD,YAEA,OAAO,GACP,CACR,CAAC;AACN,CAAC"}
@@ -3,5 +3,5 @@ export declare const BRANDS: {
3
3
  /** The title of the brand. */
4
4
  title: string;
5
5
  /** The slug of the brand, used in URLs and identifiers. */
6
- slug: Brand;
6
+ slug: Brand | 'example';
7
7
  }[];
@@ -35,5 +35,9 @@ export const BRANDS = [
35
35
  title: "Sotheby's",
36
36
  slug: 'sothebys',
37
37
  },
38
+ {
39
+ title: 'Example',
40
+ slug: 'example',
41
+ },
38
42
  ];
39
43
  //# sourceMappingURL=brands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"brands.js","sourceRoot":"","sources":["../../src/constants/brands.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAKb;IACF;QACI,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,UAAU;KACnB;IACD;QACI,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,sBAAsB;KAC/B;IACD;QACI,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,YAAY;KACrB;IACD;QACI,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,iBAAiB;KAC1B;IACD;QACI,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,UAAU;KACnB;IACD;QACI,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,aAAa;KACtB;IACD;QACI,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,KAAK;KACd;IACD;QACI,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,UAAU;KACnB;CACK,CAAC"}
1
+ {"version":3,"file":"brands.js","sourceRoot":"","sources":["../../src/constants/brands.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAKb;IACF;QACI,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,UAAU;KACnB;IACD;QACI,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,sBAAsB;KAC/B;IACD;QACI,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,YAAY;KACrB;IACD;QACI,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,iBAAiB;KAC1B;IACD;QACI,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,UAAU;KACnB;IACD;QACI,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,aAAa;KACtB;IACD;QACI,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,KAAK;KACd;IACD;QACI,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,UAAU;KACnB;IACD;QACI,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;KAClB;CACK,CAAC"}
@@ -32,9 +32,7 @@ type UseArrowNavigationProps = {
32
32
  * A hook to manage arrow key navigation for a list of elements.
33
33
  *
34
34
  * @example
35
- * ```tsx
36
35
  * const { activeElementId, setActiveElementId, arrowKeyCallbacks } = useArrowNavigation(['id1', 'id2', 'id3']);
37
- * ```;
38
36
  *
39
37
  * @returns An object containing:
40
38
  *
@@ -5,9 +5,7 @@ const ARROW_KEYS = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'];
5
5
  * A hook to manage arrow key navigation for a list of elements.
6
6
  *
7
7
  * @example
8
- * ```tsx
9
8
  * const { activeElementId, setActiveElementId, arrowKeyCallbacks } = useArrowNavigation(['id1', 'id2', 'id3']);
10
- * ```;
11
9
  *
12
10
  * @returns An object containing:
13
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useArrowNavigation.js","sourceRoot":"","sources":["../../src/hooks/useArrowNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7C,MAAM,UAAU,GAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AA8BxF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,kBAAkB,CAAC,EAC/B,GAAG,GAAG,EAAE,EACR,QAAQ,EACR,UAAU,GAAG;IACT,SAAS,EAAE,CAAC,CAAC;IACb,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC,CAAC;IACX,SAAS,EAAE,CAAC;CACf,EACD,eAAe,GACO;IAKtB,MAAM,CAAC,eAAe,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAgB,eAAe,IAAI,IAAI,CAAC,CAAC;IAEnG,SAAS,CAAC,GAAG,EAAE;QACX,yEAAyE;QACzE,IAAI,eAAe,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC;YAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1F,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC;IAE3B,MAAM,kBAAkB,GAAG,CAAC,EAAiB,EAAE,EAAE;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rB,IAAI,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC;gBAC5B,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;gBAElC,IAAI,eAAe,EAAE,CAAC;oBAClB,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;oBAC5C,SAAS,GAAG,CAAC,YAAY,GAAG,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;oBACjE,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC;gBAC5B,CAAC;gBAED,IACI,OAAO,QAAQ,KAAK,UAAU;oBAC9B,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,KAAK,KAAK;oBAEtE,OAAO;gBACX,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,kBAAkB,CAAC,MAAM,CAAC,CAAC;YAC/B,CAAC;SACJ,CAAC,CACW;KACpB,CAAC;AACN,CAAC"}
@@ -3,22 +3,19 @@ import { CheckboxProps } from '-/components/Checkbox';
3
3
  * A hook to manage the state of a group of checkboxes. Used alongside the CheckboxGroup component.
4
4
  *
5
5
  * @example
6
- * import { Checkbox } from "@bspk/ui/Checkbox";
7
- * import { useCheckboxGroupState } from "@bspk/ui/hooks/useCheckboxGroupState";
8
- *
9
- * export function Example() {
10
- * const allValues = ["Red", "Orange", "Yellow", "Green"];
11
- *
12
- * const { allCheckboxProps, checkboxProps, values } = useCheckboxGroupState(allValues, "fruits");
6
+ * import { Checkbox } from '@bspk/ui/Checkbox';
7
+ * import { useCheckboxGroupState } from '@bspk/ui/hooks/useCheckboxGroupState';
13
8
  *
9
+ * function Example() {
10
+ * const allValues = ['Red', 'Orange', 'Yellow', 'Green'];
11
+ * const { allCheckboxProps, checkboxProps, values } = useCheckboxGroupState(allValues, 'fruits');
14
12
  * return (
15
- * <>
16
- * <pre>Selected Values: {values.join(", ")}</pre>
17
- * <Checkbox aria-label="All" {...allCheckboxProps} />
13
+ * <div>
14
+ * <pre>Selected Values: {values.join(', ')}</pre> <Checkbox aria-label="All" {...allCheckboxProps} />{' '}
18
15
  * {allValues.map((value) => (
19
16
  * <Checkbox key={value} aria-label={value} {...checkboxProps(value)} />
20
17
  * ))}
21
- * </>
18
+ * </div>
22
19
  * );
23
20
  * }
24
21
  *
@@ -3,22 +3,19 @@ import { useCallback, useMemo, useState } from 'react';
3
3
  * A hook to manage the state of a group of checkboxes. Used alongside the CheckboxGroup component.
4
4
  *
5
5
  * @example
6
- * import { Checkbox } from "@bspk/ui/Checkbox";
7
- * import { useCheckboxGroupState } from "@bspk/ui/hooks/useCheckboxGroupState";
8
- *
9
- * export function Example() {
10
- * const allValues = ["Red", "Orange", "Yellow", "Green"];
11
- *
12
- * const { allCheckboxProps, checkboxProps, values } = useCheckboxGroupState(allValues, "fruits");
6
+ * import { Checkbox } from '@bspk/ui/Checkbox';
7
+ * import { useCheckboxGroupState } from '@bspk/ui/hooks/useCheckboxGroupState';
13
8
  *
9
+ * function Example() {
10
+ * const allValues = ['Red', 'Orange', 'Yellow', 'Green'];
11
+ * const { allCheckboxProps, checkboxProps, values } = useCheckboxGroupState(allValues, 'fruits');
14
12
  * return (
15
- * <>
16
- * <pre>Selected Values: {values.join(", ")}</pre>
17
- * <Checkbox aria-label="All" {...allCheckboxProps} />
13
+ * <div>
14
+ * <pre>Selected Values: {values.join(', ')}</pre> <Checkbox aria-label="All" {...allCheckboxProps} />{' '}
18
15
  * {allValues.map((value) => (
19
16
  * <Checkbox key={value} aria-label={value} {...checkboxProps(value)} />
20
17
  * ))}
21
- * </>
18
+ * </div>
22
19
  * );
23
20
  * }
24
21
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useCheckboxGroupState.js","sourceRoot":"","sources":["../../src/hooks/useCheckboxGroupState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,M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AM,CAAC,CACjC,CAAC;IAEF,MAAM,aAAa,GAAG,WAAW,CAC7B,CAAC,KAAa,EAAkE,EAAE,CAAC,CAAC;QAChF,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC/B,IAAI;QACJ,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC;QAClD,KAAK;KACR,CAAC,EACF,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAC9B,CAAC;IAEF,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAG/B,EAAE;QACA,OAAO;YACH,OAAO,EAAE,SAAS,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM;YAC3C,aAAa,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM;YACpE,IAAI;YACJ,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,KAAK,EAAE,KAAK;SACf,CAAC;IACN,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IAEhD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC/E,CAAC;AAED,sDAAsD"}
@@ -6,7 +6,7 @@ import { CheckboxProps } from '-/components/Checkbox';
6
6
  * import { Checkbox } from '@bspk/ui/Checkbox';
7
7
  * import { useCheckboxState } from '@bspk/ui/hooks/useCheckboxState';
8
8
  *
9
- * export function Example() {
9
+ * function Example() {
10
10
  * const { checkboxProps } = useCheckboxState('fruits');
11
11
  * return <Checkbox aria-label="cherry" {...checkboxProps('cherry')} />;
12
12
  * }
@@ -6,7 +6,7 @@ import { useState } from 'react';
6
6
  * import { Checkbox } from '@bspk/ui/Checkbox';
7
7
  * import { useCheckboxState } from '@bspk/ui/hooks/useCheckboxState';
8
8
  *
9
- * export function Example() {
9
+ * function Example() {
10
10
  * const { checkboxProps } = useCheckboxState('fruits');
11
11
  * return <Checkbox aria-label="cherry" {...checkboxProps('cherry')} />;
12
12
  * }
@@ -4,7 +4,7 @@
4
4
  * @example
5
5
  * import { useRef } from 'react';
6
6
  * import { useContainerWidth } from '@bspk/ui/hooks/useContainerWidth';
7
- * export function Example() {
7
+ * function Example() {
8
8
  * const containerRef = useRef<HTMLDivElement>(null);
9
9
  * const width = useContainerWidth(containerRef);
10
10
  * return <div ref={containerRef}>Width: {width}px</div>;
@@ -5,7 +5,7 @@ import { useState, useLayoutEffect } from 'react';
5
5
  * @example
6
6
  * import { useRef } from 'react';
7
7
  * import { useContainerWidth } from '@bspk/ui/hooks/useContainerWidth';
8
- * export function Example() {
8
+ * function Example() {
9
9
  * const containerRef = useRef<HTMLDivElement>(null);
10
10
  * const width = useContainerWidth(containerRef);
11
11
  * return <div ref={containerRef}>Width: {width}px</div>;
@@ -73,13 +73,14 @@ export function useFloating({ placement = 'bottom-start', arrowRef, strategy = '
73
73
  arrowRef?.current && arrow({ element: arrowRef.current, padding: 8 }),
74
74
  offset(offsetOptions),
75
75
  flip(),
76
- size({
77
- apply({ rects, elements }) {
78
- Object.assign(elements.floating.style, {
79
- width: refWidth ? `${rects.reference.width}px` : undefined,
80
- });
81
- },
82
- }),
76
+ refWidth &&
77
+ size({
78
+ apply({ rects, elements }) {
79
+ Object.assign(elements.floating.style, {
80
+ width: `${rects.reference.width}px`,
81
+ });
82
+ },
83
+ }),
83
84
  ],
84
85
  }).then((value) => {
85
86
  setFloatingStyles(() => ({
@@ -1 +1 @@
1
- {"version":3,"file":"useFloating.js","sourceRoot":"","sources":["../../src/hooks/useFloating.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAOH,eA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BAEP,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC5C,CAAC,CAAC,CAAC;QACP,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,CAAC,EAAE;QACC,eAAe;QACf,eAAe;QACf,gBAAgB;QAChB,eAAe;QACf,IAAI;QACJ,SAAS;QACT,QAAQ;QACR,QAAQ;QACR,aAAa;QACb,QAAQ;KACX,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,OAAO,EAAE,CAAC;QAEV,OAAO,GAAG,EAAE;YACR,eAAe,CAAC,KAAK,EAAE,CAAC;YACxB,eAAe,CAAC,KAAK,EAAE,CAAC;QAC5B,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;IAEtD,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,IAAI,IAAI,gBAAgB,KAAK,IAAI,IAAI,eAAe,KAAK,IAAI;YAAE,OAAO;QAE1E,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;QAEvE,OAAO,GAAG,EAAE;YACR,OAAO,EAAE,CAAC;QACd,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAEvD,OAAO;QACH,QAAQ,EAAE;YACN,SAAS,EAAE,gBAAgB;YAC3B,QAAQ,EAAE,eAAe;YACzB,YAAY,EAAE,mBAAmB;YACjC,WAAW,EAAE,kBAAkB;SAClC;QACD,cAAc;QACd,cAAc;QACd,gBAAgB,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS;KACtD,CAAC;AACN,CAAC;AAED,sDAAsD"}
@@ -5,7 +5,7 @@
5
5
  * import { Modal } from '@bspk/ui/Modal';
6
6
  * import { useModalState } from '@bspk/ui/hooks/useModalState';
7
7
  *
8
- * export function Example() {
8
+ * function Example() {
9
9
  * const modalProps = useModalState(false);
10
10
  * return <Modal {...modalProps}>...</Modal>
11
11
  * }
@@ -6,7 +6,7 @@ import { useEffect, useState } from 'react';
6
6
  * import { Modal } from '@bspk/ui/Modal';
7
7
  * import { useModalState } from '@bspk/ui/hooks/useModalState';
8
8
  *
9
- * export function Example() {
9
+ * function Example() {
10
10
  * const modalProps = useModalState(false);
11
11
  * return <Modal {...modalProps}>...</Modal>
12
12
  * }
@@ -6,7 +6,7 @@
6
6
  * import { useOutsideClick } from '@bspk/ui/hooks/useOutsideClick';
7
7
  * import React, { useRef, useState } from 'react';
8
8
  *
9
- * export function Example() {
9
+ * function Example() {
10
10
  * const [isOpen, setIsOpen] = useState(false);
11
11
  * const containerRef = useRef<HTMLDivElement>(null);
12
12
  *
@@ -7,7 +7,7 @@ import { useEffect } from 'react';
7
7
  * import { useOutsideClick } from '@bspk/ui/hooks/useOutsideClick';
8
8
  * import React, { useRef, useState } from 'react';
9
9
  *
10
- * export function Example() {
10
+ * function Example() {
11
11
  * const [isOpen, setIsOpen] = useState(false);
12
12
  * const containerRef = useRef<HTMLDivElement>(null);
13
13
  *
@@ -6,7 +6,7 @@ import { RadioProps } from '-/components/Radio';
6
6
  * import { Radio } from '@bspk/ui/Radio';
7
7
  * import { useRadioState } from '@bspk/ui/hooks/useRadioState';
8
8
  *
9
- * export function Example() {
9
+ * function Example() {
10
10
  * const { radioProps } = useRadioState('fruits');
11
11
  * return <Radio aria-label="cherry" {...radioProps('cherry')} />;
12
12
  * }
@@ -18,6 +18,6 @@ import { RadioProps } from '-/components/Radio';
18
18
  export declare function useRadioState(name: string, externalState?: [value: string | undefined, onChange: (next: string) => void]): {
19
19
  radioProps: (radioValue: string) => Pick<RadioProps, "checked" | "name" | "onChange" | "value">;
20
20
  value: string | undefined;
21
- setValue: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
21
+ setValue: (next: string) => void;
22
22
  };
23
23
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -6,7 +6,7 @@ import { useState } from 'react';
6
6
  * import { Radio } from '@bspk/ui/Radio';
7
7
  * import { useRadioState } from '@bspk/ui/hooks/useRadioState';
8
8
  *
9
- * export function Example() {
9
+ * function Example() {
10
10
  * const { radioProps } = useRadioState('fruits');
11
11
  * return <Radio aria-label="cherry" {...radioProps('cherry')} />;
12
12
  * }
@@ -10,7 +10,7 @@ type TimeoutHook = {
10
10
  * import { useTimeout } from '@bspk/ui/hooks/useTimeout';
11
11
  * import { useEffect } from 'react';
12
12
  *
13
- * export function MyComponent() {
13
+ * function MyComponent() {
14
14
  * const timeout = useTimeout();
15
15
  *
16
16
  * const handleClick = () => {
@@ -93,6 +93,10 @@
93
93
  padding: 0;
94
94
  }
95
95
 
96
+ ol {
97
+ list-style-position: inside;
98
+ }
99
+
96
100
  :root {
97
101
  --z-index-snackbar: 1200;
98
102
  --z-index-focus: 9999;
@@ -105,6 +109,9 @@
105
109
  --z-index-navbar: 700;
106
110
  --z-index-footer: 600;
107
111
  --list-item-height: var(--spacing-sizing-13);
112
+ --button-border-width: 1px;
113
+ --button-border-type: solid;
114
+ --button-border-radius: var(--radius-sm);
108
115
  }
109
116
 
110
117
  @media (prefers-reduced-motion) {
@@ -96,6 +96,10 @@ style.appendChild(document.createTextNode(`/**
96
96
  padding: 0;
97
97
  }
98
98
 
99
+ ol {
100
+ list-style-position: inside;
101
+ }
102
+
99
103
  :root {
100
104
  --z-index-snackbar: 1200;
101
105
  --z-index-focus: 9999;
@@ -108,6 +112,9 @@ style.appendChild(document.createTextNode(`/**
108
112
  --z-index-navbar: 700;
109
113
  --z-index-footer: 600;
110
114
  --list-item-height: var(--spacing-sizing-13);
115
+ --button-border-width: 1px;
116
+ --button-border-type: solid;
117
+ --button-border-radius: var(--radius-sm);
111
118
  }
112
119
 
113
120
  @media (prefers-reduced-motion) {