@bolio-ui/core 1.1.8 → 2.0.0-alpha.1

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 (836) hide show
  1. package/dist/Avatar/Avatar.d.ts +5 -3
  2. package/dist/Avatar/AvatarGroup.d.ts +3 -3
  3. package/dist/Avatar/AvatarSkeleton.d.ts +1 -1
  4. package/dist/Avatar/index.d.ts +5 -5
  5. package/dist/Avatar/index.js +241 -340
  6. package/dist/Badge/Badge.d.ts +7 -5
  7. package/dist/Badge/BadgeAnchor.d.ts +4 -4
  8. package/dist/Badge/index.d.ts +5 -5
  9. package/dist/Badge/index.js +236 -332
  10. package/dist/BolioUIProvider/BolioUIProvider.d.ts +2 -2
  11. package/dist/BolioUIProvider/ThemeProvider.d.ts +1 -1
  12. package/dist/BolioUIProvider/index.d.ts +2 -2
  13. package/dist/BolioUIProvider/index.js +375 -533
  14. package/dist/Breadcrumbs/Breadcrumbs.d.ts +5 -3
  15. package/dist/Breadcrumbs/BreadcrumbsItem.d.ts +4 -4
  16. package/dist/Breadcrumbs/BreadcrumbsSeparator.d.ts +3 -3
  17. package/dist/Breadcrumbs/index.d.ts +7 -7
  18. package/dist/Breadcrumbs/index.js +251 -359
  19. package/dist/Button/Button.d.ts +6 -4
  20. package/dist/Button/ButtonDrip.d.ts +1 -1
  21. package/dist/Button/ButtonIcon.d.ts +3 -3
  22. package/dist/Button/ButtonLoading.d.ts +2 -1
  23. package/dist/Button/index.d.ts +3 -3
  24. package/dist/Button/index.js +293 -408
  25. package/dist/Button/styles.d.ts +4 -4
  26. package/dist/Button/utils.d.ts +3 -3
  27. package/dist/ButtonDropdown/ButtonDropdown.d.ts +7 -5
  28. package/dist/ButtonDropdown/ButtonDropdownContext.d.ts +1 -1
  29. package/dist/ButtonDropdown/ButtonDropdownItem.d.ts +5 -5
  30. package/dist/ButtonDropdown/Icon.d.ts +2 -1
  31. package/dist/ButtonDropdown/index.d.ts +5 -5
  32. package/dist/ButtonDropdown/index.js +280 -386
  33. package/dist/ButtonDropdown/styles.d.ts +3 -3
  34. package/dist/ButtonGroup/ButtonGroup.d.ts +6 -4
  35. package/dist/ButtonGroup/ButtonGroupContext.d.ts +1 -1
  36. package/dist/ButtonGroup/index.d.ts +3 -3
  37. package/dist/ButtonGroup/index.js +195 -269
  38. package/dist/Calendar/Calendar.d.ts +17 -0
  39. package/dist/Calendar/date-utils.d.ts +7 -0
  40. package/dist/Calendar/index.d.ts +3 -0
  41. package/dist/Calendar/index.js +941 -0
  42. package/dist/Capacity/Capacity.d.ts +5 -3
  43. package/dist/Capacity/index.d.ts +2 -2
  44. package/dist/Capacity/index.js +184 -267
  45. package/dist/Card/Card.d.ts +6 -4
  46. package/dist/Card/CardContent.d.ts +3 -3
  47. package/dist/Card/CardFooter.d.ts +3 -3
  48. package/dist/Card/index.d.ts +8 -8
  49. package/dist/Card/index.js +325 -454
  50. package/dist/Card/styles.d.ts +4 -4
  51. package/dist/Checkbox/Checkbox.d.ts +7 -5
  52. package/dist/Checkbox/CheckboxGroup.d.ts +3 -3
  53. package/dist/Checkbox/CheckboxIcon.d.ts +1 -1
  54. package/dist/Checkbox/index.d.ts +5 -5
  55. package/dist/Checkbox/index.js +283 -398
  56. package/dist/Checkbox/styles.d.ts +4 -3
  57. package/dist/Code/Code.d.ts +5 -3
  58. package/dist/Code/index.d.ts +2 -2
  59. package/dist/Code/index.js +241 -326
  60. package/dist/Col/Col.d.ts +6 -7
  61. package/dist/Col/index.d.ts +2 -2
  62. package/dist/Col/index.js +44 -65
  63. package/dist/Collapse/Collapse.d.ts +5 -3
  64. package/dist/Collapse/CollapseGroup.d.ts +5 -3
  65. package/dist/Collapse/CollapseIcon.d.ts +1 -1
  66. package/dist/Collapse/index.d.ts +5 -5
  67. package/dist/Collapse/index.js +307 -432
  68. package/dist/Combobox/Combobox.d.ts +22 -0
  69. package/dist/Combobox/index.d.ts +3 -0
  70. package/dist/Combobox/index.js +859 -0
  71. package/dist/Container/Container.d.ts +9 -25
  72. package/dist/Container/index.d.ts +2 -2
  73. package/dist/Container/index.js +97 -129
  74. package/dist/CssBaseline/CssBaseline.d.ts +3 -13
  75. package/dist/CssBaseline/index.d.ts +1 -1
  76. package/dist/CssBaseline/index.js +49 -62
  77. package/dist/DatePicker/DatePicker.d.ts +18 -0
  78. package/dist/DatePicker/index.d.ts +3 -0
  79. package/dist/DatePicker/index.js +1125 -0
  80. package/dist/Description/Description.d.ts +5 -3
  81. package/dist/Description/index.d.ts +2 -2
  82. package/dist/Description/index.js +186 -266
  83. package/dist/Display/Display.d.ts +5 -3
  84. package/dist/Display/index.d.ts +2 -2
  85. package/dist/Display/index.js +187 -267
  86. package/dist/Divider/Divider.d.ts +7 -5
  87. package/dist/Divider/index.d.ts +3 -3
  88. package/dist/Divider/index.js +184 -266
  89. package/dist/Dot/Dot.d.ts +7 -5
  90. package/dist/Dot/index.d.ts +2 -2
  91. package/dist/Dot/index.js +187 -268
  92. package/dist/Drawer/Drawer.d.ts +6 -4
  93. package/dist/Drawer/DrawerWrapper.d.ts +5 -6
  94. package/dist/Drawer/helper.d.ts +2 -2
  95. package/dist/Drawer/index.d.ts +7 -7
  96. package/dist/Drawer/index.js +351 -495
  97. package/dist/Fieldset/Fieldset.d.ts +5 -3
  98. package/dist/Fieldset/FieldsetContent.d.ts +5 -3
  99. package/dist/Fieldset/FieldsetFooter.d.ts +5 -3
  100. package/dist/Fieldset/FieldsetGroup.d.ts +5 -3
  101. package/dist/Fieldset/FieldsetSubtitle.d.ts +3 -3
  102. package/dist/Fieldset/FieldsetTitle.d.ts +3 -3
  103. package/dist/Fieldset/index.d.ts +13 -13
  104. package/dist/Fieldset/index.js +290 -425
  105. package/dist/Grid/BasicItem.d.ts +7 -24
  106. package/dist/Grid/Grid.d.ts +86 -62
  107. package/dist/Grid/GridContainer.d.ts +87 -63
  108. package/dist/Grid/GridTypes.d.ts +5 -5
  109. package/dist/Grid/index.d.ts +7 -7
  110. package/dist/Grid/index.js +235 -318
  111. package/dist/Image/Image.d.ts +5 -3
  112. package/dist/Image/ImageBrowser.d.ts +7 -5
  113. package/dist/Image/ImageBrowserHttpsIcon.d.ts +1 -1
  114. package/dist/Image/ImageSkeleton.d.ts +1 -1
  115. package/dist/Image/index.d.ts +5 -5
  116. package/dist/Image/index.js +280 -391
  117. package/dist/Image/styles.d.ts +2 -2
  118. package/dist/Input/Input.d.ts +6 -4
  119. package/dist/Input/InputBlockLabel.d.ts +1 -1
  120. package/dist/Input/InputIcon.d.ts +1 -1
  121. package/dist/Input/InputIconClear.d.ts +1 -1
  122. package/dist/Input/InputLabel.d.ts +1 -1
  123. package/dist/Input/InputProps.d.ts +3 -3
  124. package/dist/Input/Password.d.ts +6 -4
  125. package/dist/Input/PasswordIcon.d.ts +1 -1
  126. package/dist/Input/index.d.ts +8 -8
  127. package/dist/Input/index.js +297 -427
  128. package/dist/Input/styles.d.ts +4 -3
  129. package/dist/Keyboard/Keyboard.d.ts +5 -3
  130. package/dist/Keyboard/index.d.ts +2 -2
  131. package/dist/Keyboard/index.js +194 -266
  132. package/dist/Link/Icon.d.ts +1 -1
  133. package/dist/Link/Link.d.ts +5 -3
  134. package/dist/Link/index.d.ts +2 -2
  135. package/dist/Link/index.js +225 -318
  136. package/dist/Loading/Loading.d.ts +7 -5
  137. package/dist/Loading/index.d.ts +2 -2
  138. package/dist/Loading/index.js +192 -272
  139. package/dist/MdxWidgets/index.js +96 -123
  140. package/dist/Modal/Modal.d.ts +6 -3
  141. package/dist/Modal/ModalAction.d.ts +6 -4
  142. package/dist/Modal/ModalContent.d.ts +5 -3
  143. package/dist/Modal/ModalContext.d.ts +2 -0
  144. package/dist/Modal/ModalSubtitle.d.ts +5 -3
  145. package/dist/Modal/ModalTitle.d.ts +5 -3
  146. package/dist/Modal/ModalWrapper.d.ts +5 -5
  147. package/dist/Modal/index.d.ts +11 -11
  148. package/dist/Modal/index.js +516 -694
  149. package/dist/Next/StyledJsxRegistry.d.ts +3 -0
  150. package/dist/Next/index.d.ts +3 -0
  151. package/dist/Next/index.js +84 -0
  152. package/dist/Note/Note.d.ts +10 -9
  153. package/dist/Note/index.d.ts +2 -2
  154. package/dist/Note/index.js +194 -275
  155. package/dist/Page/Page.d.ts +7 -5
  156. package/dist/Page/PageContent.d.ts +5 -3
  157. package/dist/Page/PageFooter.d.ts +5 -3
  158. package/dist/Page/PageHeader.d.ts +5 -3
  159. package/dist/Page/index.d.ts +9 -9
  160. package/dist/Page/index.js +253 -357
  161. package/dist/Pagination/Pagination.d.ts +5 -3
  162. package/dist/Pagination/PaginationContext.d.ts +1 -1
  163. package/dist/Pagination/PaginationEllipsis.d.ts +1 -1
  164. package/dist/Pagination/PaginationItem.d.ts +3 -3
  165. package/dist/Pagination/PaginationNext.d.ts +2 -2
  166. package/dist/Pagination/PaginationPages.d.ts +2 -2
  167. package/dist/Pagination/PaginationPrevious.d.ts +2 -2
  168. package/dist/Pagination/index.d.ts +7 -7
  169. package/dist/Pagination/index.js +307 -436
  170. package/dist/Popover/Popover.d.ts +7 -7
  171. package/dist/Popover/PopoverContext.d.ts +1 -1
  172. package/dist/Popover/PopoverItem.d.ts +5 -3
  173. package/dist/Popover/index.d.ts +5 -5
  174. package/dist/Popover/index.js +381 -486
  175. package/dist/Progress/Progress.d.ts +8 -6
  176. package/dist/Progress/index.d.ts +2 -2
  177. package/dist/Progress/index.js +191 -274
  178. package/dist/Radio/Radio.d.ts +7 -5
  179. package/dist/Radio/RadioDescription.d.ts +5 -3
  180. package/dist/Radio/RadioGroup.d.ts +5 -3
  181. package/dist/Radio/index.d.ts +7 -7
  182. package/dist/Radio/index.js +266 -381
  183. package/dist/Radio/styles.d.ts +4 -3
  184. package/dist/Rating/Rating.d.ts +10 -8
  185. package/dist/Rating/RatingIcon.d.ts +2 -1
  186. package/dist/Rating/index.d.ts +2 -2
  187. package/dist/Rating/index.js +246 -347
  188. package/dist/Row/Row.d.ts +8 -23
  189. package/dist/Row/index.d.ts +2 -2
  190. package/dist/Row/index.js +96 -128
  191. package/dist/Section/Section.d.ts +7 -5
  192. package/dist/Section/index.d.ts +2 -2
  193. package/dist/Section/index.js +182 -261
  194. package/dist/Select/Select.d.ts +8 -6
  195. package/dist/Select/SelectDropdown.d.ts +2 -2
  196. package/dist/Select/SelectIcon.d.ts +1 -1
  197. package/dist/Select/SelectIconClear.d.ts +1 -1
  198. package/dist/Select/SelectInput.d.ts +3 -1
  199. package/dist/Select/SelectMultipleValue.d.ts +1 -1
  200. package/dist/Select/SelectOption.d.ts +5 -3
  201. package/dist/Select/index.d.ts +5 -5
  202. package/dist/Select/index.js +439 -616
  203. package/dist/Select/styles.d.ts +4 -3
  204. package/dist/Shared/backdrop.d.ts +3 -3
  205. package/dist/Shared/css-transition.d.ts +1 -1
  206. package/dist/Shared/ellipsis.d.ts +1 -1
  207. package/dist/Shared/expand.d.ts +2 -2
  208. package/dist/Shared/highlight.d.ts +4 -4
  209. package/dist/Slider/Slider.d.ts +7 -5
  210. package/dist/Slider/SliderDot.d.ts +2 -2
  211. package/dist/Slider/SliderMark.d.ts +4 -3
  212. package/dist/Slider/index.d.ts +2 -2
  213. package/dist/Slider/index.js +323 -407
  214. package/dist/Slider/styles.d.ts +4 -3
  215. package/dist/Snippet/Snippet.d.ts +7 -5
  216. package/dist/Snippet/SnippetIcon.d.ts +1 -1
  217. package/dist/Snippet/index.d.ts +3 -3
  218. package/dist/Snippet/index.js +267 -406
  219. package/dist/Snippet/styles.d.ts +4 -4
  220. package/dist/Spacer/Spacer.d.ts +3 -3
  221. package/dist/Spacer/index.d.ts +2 -2
  222. package/dist/Spacer/index.js +182 -253
  223. package/dist/Spinner/Spinner.d.ts +5 -3
  224. package/dist/Spinner/index.d.ts +2 -2
  225. package/dist/Spinner/index.js +194 -278
  226. package/dist/Table/Table.d.ts +13 -24
  227. package/dist/Table/TableBody.d.ts +4 -4
  228. package/dist/Table/TableCell.d.ts +5 -5
  229. package/dist/Table/TableColumn.d.ts +2 -2
  230. package/dist/Table/TableContext.d.ts +3 -3
  231. package/dist/Table/TableHead.d.ts +4 -4
  232. package/dist/Table/TableTypes.d.ts +7 -7
  233. package/dist/Table/index.d.ts +4 -4
  234. package/dist/Table/index.js +290 -411
  235. package/dist/Tabs/Tabs.d.ts +5 -3
  236. package/dist/Tabs/TabsContext.d.ts +2 -2
  237. package/dist/Tabs/TabsItem.d.ts +5 -3
  238. package/dist/Tabs/index.d.ts +4 -4
  239. package/dist/Tabs/index.js +326 -429
  240. package/dist/Tag/Tag.d.ts +8 -6
  241. package/dist/Tag/index.d.ts +2 -2
  242. package/dist/Tag/index.js +190 -266
  243. package/dist/Text/Child.d.ts +7 -8
  244. package/dist/Text/Text.d.ts +7 -5
  245. package/dist/Text/index.d.ts +2 -2
  246. package/dist/Text/index.js +222 -297
  247. package/dist/Textarea/Textarea.d.ts +8 -6
  248. package/dist/Textarea/index.d.ts +2 -2
  249. package/dist/Textarea/index.js +231 -327
  250. package/dist/Themes/Presets/Dark.d.ts +1 -1
  251. package/dist/Themes/Presets/Default.d.ts +1 -1
  252. package/dist/Themes/Presets/Shared.d.ts +1 -1
  253. package/dist/Themes/Themes.d.ts +5 -5
  254. package/dist/Themes/index.d.ts +3 -3
  255. package/dist/Themes/index.js +44 -54
  256. package/dist/Toggle/Toggle.d.ts +8 -6
  257. package/dist/Toggle/index.d.ts +2 -2
  258. package/dist/Toggle/index.js +238 -323
  259. package/dist/Toggle/styles.d.ts +4 -3
  260. package/dist/Tooltip/Tooltip.d.ts +10 -8
  261. package/dist/Tooltip/TooltipContent.d.ts +4 -2
  262. package/dist/Tooltip/TooltipIcon.d.ts +1 -1
  263. package/dist/Tooltip/index.d.ts +2 -2
  264. package/dist/Tooltip/index.js +322 -430
  265. package/dist/Tooltip/placement.d.ts +1 -1
  266. package/dist/Tooltip/styles.d.ts +3 -3
  267. package/dist/index.d.ts +131 -125
  268. package/dist/index.js +3257 -3385
  269. package/dist/use-all-themes/all-themes-context.d.ts +2 -2
  270. package/dist/use-all-themes/index.d.ts +2 -2
  271. package/dist/use-all-themes/index.js +44 -54
  272. package/dist/use-body-scroll/index.d.ts +2 -2
  273. package/dist/use-body-scroll/index.js +85 -101
  274. package/dist/use-body-scroll/use-body-scroll.d.ts +2 -2
  275. package/dist/use-classes/index.d.ts +1 -1
  276. package/dist/use-classes/index.js +7 -14
  277. package/dist/use-classes/use-classes.d.ts +2 -2
  278. package/dist/use-click-away/index.d.ts +1 -1
  279. package/dist/use-click-away/index.js +1 -2
  280. package/dist/use-click-away/use-click-away.d.ts +1 -1
  281. package/dist/use-clipboard/index.d.ts +2 -2
  282. package/dist/use-clipboard/index.js +46 -75
  283. package/dist/use-clipboard/use-clipboard.d.ts +2 -2
  284. package/dist/use-current-state/index.d.ts +1 -1
  285. package/dist/use-current-state/index.js +44 -57
  286. package/dist/use-current-state/use-current-state.d.ts +1 -1
  287. package/dist/use-input/index.d.ts +2 -2
  288. package/dist/use-input/index.js +56 -72
  289. package/dist/use-input/use-input.d.ts +1 -1
  290. package/dist/use-keyboard/helper.d.ts +1 -1
  291. package/dist/use-keyboard/index.d.ts +3 -3
  292. package/dist/use-keyboard/index.js +13 -25
  293. package/dist/use-keyboard/use-keyboard.d.ts +4 -4
  294. package/dist/use-media-query/index.d.ts +2 -2
  295. package/dist/use-media-query/index.js +101 -134
  296. package/dist/use-media-query/use-media-query.d.ts +3 -3
  297. package/dist/use-modal/index.d.ts +2 -2
  298. package/dist/use-modal/index.js +48 -64
  299. package/dist/use-modal/use-modal.d.ts +2 -2
  300. package/dist/use-scale/index.d.ts +4 -4
  301. package/dist/use-scale/index.js +167 -237
  302. package/dist/use-scale/scale-context.d.ts +6 -6
  303. package/dist/use-scale/utils.d.ts +1 -1
  304. package/dist/use-scale/with-scale.d.ts +6 -4
  305. package/dist/use-tabs/index.d.ts +1 -1
  306. package/dist/use-tabs/index.js +48 -63
  307. package/dist/use-theme/index.d.ts +1 -1
  308. package/dist/use-theme/index.js +44 -54
  309. package/dist/use-theme/theme-context.d.ts +1 -1
  310. package/dist/use-toasts/helpers.d.ts +7 -5
  311. package/dist/use-toasts/index.d.ts +2 -2
  312. package/dist/use-toasts/index.js +67 -95
  313. package/dist/use-toasts/toast-item.d.ts +1 -1
  314. package/dist/use-toasts/use-toast.d.ts +8 -8
  315. package/dist/utils/collections.d.ts +2 -2
  316. package/dist/utils/layouts.d.ts +5 -5
  317. package/dist/utils/prop-types.d.ts +8 -8
  318. package/dist/utils/types.d.ts +1 -1
  319. package/dist/utils/use-body-scroll.d.ts +1 -1
  320. package/dist/utils/use-bolio-ui-context.d.ts +4 -4
  321. package/dist/utils/use-click-away.d.ts +1 -1
  322. package/dist/utils/use-clipboard.d.ts +1 -1
  323. package/dist/utils/use-current-state.d.ts +1 -1
  324. package/dist/utils/use-default-props.d.ts +2 -0
  325. package/dist/utils/use-drag.d.ts +2 -2
  326. package/dist/utils/use-portal.d.ts +1 -1
  327. package/dist/utils/use-real-shape.d.ts +2 -2
  328. package/dist/utils/use-ssr.d.ts +1 -1
  329. package/dist/utils/use-warning.d.ts +1 -1
  330. package/esm/Avatar/Avatar.d.ts +5 -3
  331. package/esm/Avatar/Avatar.js +25 -37
  332. package/esm/Avatar/AvatarGroup.d.ts +3 -3
  333. package/esm/Avatar/AvatarGroup.js +5 -9
  334. package/esm/Avatar/AvatarSkeleton.d.ts +1 -1
  335. package/esm/Avatar/AvatarSkeleton.js +3 -4
  336. package/esm/Avatar/helpers.js +0 -2
  337. package/esm/Avatar/index.d.ts +5 -5
  338. package/esm/Avatar/index.js +1 -0
  339. package/esm/Badge/Badge.d.ts +7 -5
  340. package/esm/Badge/Badge.js +16 -20
  341. package/esm/Badge/BadgeAnchor.d.ts +4 -4
  342. package/esm/Badge/BadgeAnchor.js +14 -20
  343. package/esm/Badge/index.d.ts +5 -5
  344. package/esm/Badge/index.js +1 -0
  345. package/esm/BolioUIProvider/BolioUIProvider.d.ts +2 -2
  346. package/esm/BolioUIProvider/BolioUIProvider.js +13 -22
  347. package/esm/BolioUIProvider/ThemeProvider.d.ts +1 -1
  348. package/esm/BolioUIProvider/ThemeProvider.js +8 -12
  349. package/esm/BolioUIProvider/index.d.ts +2 -2
  350. package/esm/BolioUIProvider/index.js +1 -0
  351. package/esm/Breadcrumbs/Breadcrumbs.d.ts +5 -3
  352. package/esm/Breadcrumbs/Breadcrumbs.js +9 -14
  353. package/esm/Breadcrumbs/BreadcrumbsItem.d.ts +4 -4
  354. package/esm/Breadcrumbs/BreadcrumbsItem.js +9 -15
  355. package/esm/Breadcrumbs/BreadcrumbsSeparator.d.ts +3 -3
  356. package/esm/Breadcrumbs/BreadcrumbsSeparator.js +4 -8
  357. package/esm/Breadcrumbs/index.d.ts +7 -7
  358. package/esm/Breadcrumbs/index.js +1 -0
  359. package/esm/Button/Button.d.ts +6 -4
  360. package/esm/Button/Button.js +36 -51
  361. package/esm/Button/ButtonDrip.d.ts +1 -1
  362. package/esm/Button/ButtonDrip.js +4 -6
  363. package/esm/Button/ButtonIcon.d.ts +3 -3
  364. package/esm/Button/ButtonIcon.js +7 -10
  365. package/esm/Button/ButtonLoading.d.ts +2 -1
  366. package/esm/Button/ButtonLoading.js +1 -3
  367. package/esm/Button/index.d.ts +3 -3
  368. package/esm/Button/index.js +1 -0
  369. package/esm/Button/styles.d.ts +4 -4
  370. package/esm/Button/styles.js +7 -7
  371. package/esm/Button/utils.d.ts +3 -3
  372. package/esm/Button/utils.js +4 -5
  373. package/esm/ButtonDropdown/ButtonDropdown.d.ts +7 -5
  374. package/esm/ButtonDropdown/ButtonDropdown.js +38 -42
  375. package/esm/ButtonDropdown/ButtonDropdownContext.d.ts +1 -1
  376. package/esm/ButtonDropdown/ButtonDropdownItem.d.ts +5 -5
  377. package/esm/ButtonDropdown/ButtonDropdownItem.js +12 -19
  378. package/esm/ButtonDropdown/Icon.d.ts +2 -1
  379. package/esm/ButtonDropdown/Icon.js +2 -4
  380. package/esm/ButtonDropdown/index.d.ts +5 -5
  381. package/esm/ButtonDropdown/index.js +1 -0
  382. package/esm/ButtonDropdown/styles.d.ts +3 -3
  383. package/esm/ButtonGroup/ButtonGroup.d.ts +6 -4
  384. package/esm/ButtonGroup/ButtonGroup.js +25 -22
  385. package/esm/ButtonGroup/ButtonGroupContext.d.ts +1 -1
  386. package/esm/ButtonGroup/index.d.ts +3 -3
  387. package/esm/ButtonGroup/index.js +1 -0
  388. package/esm/Calendar/Calendar.d.ts +17 -0
  389. package/esm/Calendar/Calendar.js +243 -0
  390. package/esm/Calendar/date-utils.d.ts +7 -0
  391. package/esm/Calendar/date-utils.js +39 -0
  392. package/esm/Calendar/index.d.ts +3 -0
  393. package/esm/Calendar/index.js +3 -0
  394. package/esm/Capacity/Capacity.d.ts +5 -3
  395. package/esm/Capacity/Capacity.js +15 -20
  396. package/esm/Capacity/index.d.ts +2 -2
  397. package/esm/Capacity/index.js +1 -0
  398. package/esm/Card/Card.d.ts +6 -4
  399. package/esm/Card/Card.js +28 -35
  400. package/esm/Card/CardContent.d.ts +3 -3
  401. package/esm/Card/CardContent.js +5 -9
  402. package/esm/Card/CardFooter.d.ts +3 -3
  403. package/esm/Card/CardFooter.js +7 -12
  404. package/esm/Card/index.d.ts +8 -8
  405. package/esm/Card/index.js +1 -0
  406. package/esm/Card/styles.d.ts +4 -4
  407. package/esm/Checkbox/Checkbox.d.ts +7 -5
  408. package/esm/Checkbox/Checkbox.js +35 -47
  409. package/esm/Checkbox/CheckboxGroup.d.ts +3 -3
  410. package/esm/Checkbox/CheckboxGroup.js +12 -20
  411. package/esm/Checkbox/CheckboxIcon.d.ts +1 -1
  412. package/esm/Checkbox/CheckboxIcon.js +11 -16
  413. package/esm/Checkbox/index.d.ts +5 -5
  414. package/esm/Checkbox/index.js +1 -0
  415. package/esm/Checkbox/styles.d.ts +4 -3
  416. package/esm/Code/Code.d.ts +5 -3
  417. package/esm/Code/Code.js +33 -36
  418. package/esm/Code/index.d.ts +2 -2
  419. package/esm/Code/index.js +1 -0
  420. package/esm/Col/Col.d.ts +6 -7
  421. package/esm/Col/Col.js +17 -18
  422. package/esm/Col/index.d.ts +2 -2
  423. package/esm/Col/index.js +1 -0
  424. package/esm/Collapse/Collapse.d.ts +5 -3
  425. package/esm/Collapse/Collapse.js +40 -41
  426. package/esm/Collapse/CollapseGroup.d.ts +5 -3
  427. package/esm/Collapse/CollapseGroup.js +11 -21
  428. package/esm/Collapse/CollapseIcon.d.ts +1 -1
  429. package/esm/Collapse/CollapseIcon.js +1 -3
  430. package/esm/Collapse/index.d.ts +5 -5
  431. package/esm/Collapse/index.js +1 -0
  432. package/esm/Combobox/Combobox.d.ts +22 -0
  433. package/esm/Combobox/Combobox.js +199 -0
  434. package/esm/Combobox/index.d.ts +3 -0
  435. package/esm/Combobox/index.js +3 -0
  436. package/esm/Container/Container.d.ts +9 -25
  437. package/esm/Container/Container.js +24 -24
  438. package/esm/Container/index.d.ts +2 -2
  439. package/esm/Container/index.js +1 -0
  440. package/esm/CssBaseline/CssBaseline.d.ts +3 -13
  441. package/esm/CssBaseline/CssBaseline.js +2 -8
  442. package/esm/CssBaseline/index.d.ts +1 -1
  443. package/esm/CssBaseline/index.js +1 -0
  444. package/esm/DatePicker/DatePicker.d.ts +18 -0
  445. package/esm/DatePicker/DatePicker.js +163 -0
  446. package/esm/DatePicker/index.d.ts +3 -0
  447. package/esm/DatePicker/index.js +3 -0
  448. package/esm/Description/Description.d.ts +5 -3
  449. package/esm/Description/Description.js +17 -20
  450. package/esm/Description/index.d.ts +2 -2
  451. package/esm/Description/index.js +1 -0
  452. package/esm/Display/Display.d.ts +5 -3
  453. package/esm/Display/Display.js +18 -21
  454. package/esm/Display/index.d.ts +2 -2
  455. package/esm/Display/index.js +1 -0
  456. package/esm/Divider/Divider.d.ts +7 -5
  457. package/esm/Divider/Divider.js +15 -20
  458. package/esm/Divider/index.d.ts +3 -3
  459. package/esm/Divider/index.js +1 -0
  460. package/esm/Dot/Dot.d.ts +7 -5
  461. package/esm/Dot/Dot.js +18 -22
  462. package/esm/Dot/index.d.ts +2 -2
  463. package/esm/Dot/index.js +1 -0
  464. package/esm/Drawer/Drawer.d.ts +6 -4
  465. package/esm/Drawer/Drawer.js +25 -33
  466. package/esm/Drawer/DrawerWrapper.d.ts +5 -6
  467. package/esm/Drawer/DrawerWrapper.js +15 -19
  468. package/esm/Drawer/helper.d.ts +2 -2
  469. package/esm/Drawer/index.d.ts +7 -7
  470. package/esm/Drawer/index.js +1 -0
  471. package/esm/Fieldset/Fieldset.d.ts +5 -3
  472. package/esm/Fieldset/Fieldset.js +29 -41
  473. package/esm/Fieldset/FieldsetContent.d.ts +5 -3
  474. package/esm/Fieldset/FieldsetContent.js +5 -9
  475. package/esm/Fieldset/FieldsetFooter.d.ts +5 -3
  476. package/esm/Fieldset/FieldsetFooter.js +5 -10
  477. package/esm/Fieldset/FieldsetGroup.d.ts +5 -3
  478. package/esm/Fieldset/FieldsetGroup.js +14 -25
  479. package/esm/Fieldset/FieldsetSubtitle.d.ts +3 -3
  480. package/esm/Fieldset/FieldsetSubtitle.js +4 -7
  481. package/esm/Fieldset/FieldsetTitle.d.ts +3 -3
  482. package/esm/Fieldset/FieldsetTitle.js +4 -7
  483. package/esm/Fieldset/index.d.ts +13 -13
  484. package/esm/Fieldset/index.js +1 -0
  485. package/esm/Grid/BasicItem.d.ts +7 -24
  486. package/esm/Grid/BasicItem.js +27 -28
  487. package/esm/Grid/Grid.d.ts +86 -62
  488. package/esm/Grid/Grid.js +16 -19
  489. package/esm/Grid/GridContainer.d.ts +87 -63
  490. package/esm/Grid/GridContainer.js +21 -24
  491. package/esm/Grid/GridTypes.d.ts +5 -5
  492. package/esm/Grid/index.d.ts +7 -7
  493. package/esm/Grid/index.js +1 -0
  494. package/esm/Image/Image.d.ts +5 -3
  495. package/esm/Image/Image.js +25 -33
  496. package/esm/Image/ImageBrowser.d.ts +7 -5
  497. package/esm/Image/ImageBrowser.js +13 -19
  498. package/esm/Image/ImageBrowserHttpsIcon.d.ts +1 -1
  499. package/esm/Image/ImageBrowserHttpsIcon.js +1 -3
  500. package/esm/Image/ImageSkeleton.d.ts +1 -1
  501. package/esm/Image/ImageSkeleton.js +3 -4
  502. package/esm/Image/helpers.js +0 -2
  503. package/esm/Image/index.d.ts +5 -5
  504. package/esm/Image/index.js +1 -0
  505. package/esm/Image/styles.d.ts +2 -2
  506. package/esm/Input/Input.d.ts +6 -4
  507. package/esm/Input/Input.js +38 -56
  508. package/esm/Input/InputBlockLabel.d.ts +1 -1
  509. package/esm/Input/InputBlockLabel.js +2 -4
  510. package/esm/Input/InputIcon.d.ts +1 -1
  511. package/esm/Input/InputIcon.js +3 -5
  512. package/esm/Input/InputIconClear.d.ts +1 -1
  513. package/esm/Input/InputIconClear.js +3 -7
  514. package/esm/Input/InputLabel.d.ts +1 -1
  515. package/esm/Input/InputLabel.js +2 -4
  516. package/esm/Input/InputProps.d.ts +3 -3
  517. package/esm/Input/Password.d.ts +6 -4
  518. package/esm/Input/Password.js +6 -15
  519. package/esm/Input/PasswordIcon.d.ts +1 -1
  520. package/esm/Input/PasswordIcon.js +0 -2
  521. package/esm/Input/index.d.ts +8 -8
  522. package/esm/Input/index.js +1 -0
  523. package/esm/Input/styles.d.ts +4 -3
  524. package/esm/Keyboard/Keyboard.d.ts +5 -3
  525. package/esm/Keyboard/Keyboard.js +25 -28
  526. package/esm/Keyboard/index.d.ts +2 -2
  527. package/esm/Keyboard/index.js +1 -0
  528. package/esm/Link/Icon.d.ts +1 -1
  529. package/esm/Link/Icon.js +1 -1
  530. package/esm/Link/Link.d.ts +5 -3
  531. package/esm/Link/Link.js +15 -18
  532. package/esm/Link/index.d.ts +2 -2
  533. package/esm/Link/index.js +1 -0
  534. package/esm/Loading/Loading.d.ts +7 -5
  535. package/esm/Loading/Loading.js +23 -26
  536. package/esm/Loading/index.d.ts +2 -2
  537. package/esm/Loading/index.js +1 -0
  538. package/esm/MdxWidgets/MockPage.js +6 -12
  539. package/esm/MdxWidgets/ParsedCodes/WaitTime.js +0 -2
  540. package/esm/MdxWidgets/index.js +1 -0
  541. package/esm/Modal/Modal.d.ts +6 -3
  542. package/esm/Modal/Modal.js +55 -50
  543. package/esm/Modal/ModalAction.d.ts +6 -4
  544. package/esm/Modal/ModalAction.js +19 -28
  545. package/esm/Modal/ModalActions.js +5 -10
  546. package/esm/Modal/ModalContent.d.ts +5 -3
  547. package/esm/Modal/ModalContent.js +5 -9
  548. package/esm/Modal/ModalContext.d.ts +2 -0
  549. package/esm/Modal/ModalSubtitle.d.ts +5 -3
  550. package/esm/Modal/ModalSubtitle.js +11 -11
  551. package/esm/Modal/ModalTitle.d.ts +5 -3
  552. package/esm/Modal/ModalTitle.js +11 -11
  553. package/esm/Modal/ModalWrapper.d.ts +5 -5
  554. package/esm/Modal/ModalWrapper.js +14 -18
  555. package/esm/Modal/index.d.ts +11 -11
  556. package/esm/Modal/index.js +1 -0
  557. package/esm/Next/StyledJsxRegistry.d.ts +3 -0
  558. package/esm/Next/StyledJsxRegistry.js +26 -0
  559. package/esm/Next/index.d.ts +3 -0
  560. package/esm/Next/index.js +4 -0
  561. package/esm/Note/Note.d.ts +10 -9
  562. package/esm/Note/Note.js +25 -29
  563. package/esm/Note/index.d.ts +2 -2
  564. package/esm/Note/index.js +1 -0
  565. package/esm/Page/Page.d.ts +7 -5
  566. package/esm/Page/Page.js +26 -34
  567. package/esm/Page/PageContent.d.ts +5 -3
  568. package/esm/Page/PageContent.js +4 -8
  569. package/esm/Page/PageFooter.d.ts +5 -3
  570. package/esm/Page/PageFooter.js +3 -7
  571. package/esm/Page/PageHeader.d.ts +5 -3
  572. package/esm/Page/PageHeader.js +7 -11
  573. package/esm/Page/index.d.ts +9 -9
  574. package/esm/Page/index.js +1 -0
  575. package/esm/Pagination/Pagination.d.ts +5 -3
  576. package/esm/Pagination/Pagination.js +44 -50
  577. package/esm/Pagination/PaginationContext.d.ts +1 -1
  578. package/esm/Pagination/PaginationEllipsis.d.ts +1 -1
  579. package/esm/Pagination/PaginationEllipsis.js +5 -9
  580. package/esm/Pagination/PaginationItem.d.ts +3 -3
  581. package/esm/Pagination/PaginationItem.js +11 -17
  582. package/esm/Pagination/PaginationNext.d.ts +2 -2
  583. package/esm/Pagination/PaginationNext.js +3 -7
  584. package/esm/Pagination/PaginationPages.d.ts +2 -2
  585. package/esm/Pagination/PaginationPages.js +9 -15
  586. package/esm/Pagination/PaginationPrevious.d.ts +2 -2
  587. package/esm/Pagination/PaginationPrevious.js +3 -7
  588. package/esm/Pagination/index.d.ts +7 -7
  589. package/esm/Pagination/index.js +1 -0
  590. package/esm/Popover/Popover.d.ts +7 -7
  591. package/esm/Popover/Popover.js +25 -29
  592. package/esm/Popover/PopoverContext.d.ts +1 -1
  593. package/esm/Popover/PopoverItem.d.ts +5 -3
  594. package/esm/Popover/PopoverItem.js +14 -24
  595. package/esm/Popover/index.d.ts +5 -5
  596. package/esm/Popover/index.js +1 -0
  597. package/esm/Progress/Progress.d.ts +8 -6
  598. package/esm/Progress/Progress.js +22 -27
  599. package/esm/Progress/index.d.ts +2 -2
  600. package/esm/Progress/index.js +1 -0
  601. package/esm/Radio/Radio.d.ts +7 -5
  602. package/esm/Radio/Radio.js +38 -53
  603. package/esm/Radio/RadioDescription.d.ts +5 -3
  604. package/esm/Radio/RadioDescription.js +5 -10
  605. package/esm/Radio/RadioGroup.d.ts +5 -3
  606. package/esm/Radio/RadioGroup.js +15 -21
  607. package/esm/Radio/index.d.ts +7 -7
  608. package/esm/Radio/index.js +1 -0
  609. package/esm/Radio/styles.d.ts +4 -3
  610. package/esm/Rating/Rating.d.ts +10 -8
  611. package/esm/Rating/Rating.js +31 -42
  612. package/esm/Rating/RatingIcon.d.ts +2 -1
  613. package/esm/Rating/RatingIcon.js +0 -2
  614. package/esm/Rating/index.d.ts +2 -2
  615. package/esm/Rating/index.js +1 -0
  616. package/esm/Row/Row.d.ts +8 -23
  617. package/esm/Row/Row.js +23 -23
  618. package/esm/Row/index.d.ts +2 -2
  619. package/esm/Row/index.js +1 -0
  620. package/esm/Section/Section.d.ts +7 -5
  621. package/esm/Section/Section.js +12 -14
  622. package/esm/Section/index.d.ts +2 -2
  623. package/esm/Section/index.js +1 -0
  624. package/esm/Select/Select.d.ts +8 -6
  625. package/esm/Select/Select.js +49 -65
  626. package/esm/Select/SelectDropdown.d.ts +2 -2
  627. package/esm/Select/SelectDropdown.js +9 -11
  628. package/esm/Select/SelectIcon.d.ts +1 -1
  629. package/esm/Select/SelectIcon.js +1 -3
  630. package/esm/Select/SelectIconClear.d.ts +1 -1
  631. package/esm/Select/SelectIconClear.js +1 -5
  632. package/esm/Select/SelectInput.d.ts +3 -1
  633. package/esm/Select/SelectInput.js +7 -4
  634. package/esm/Select/SelectMultipleValue.d.ts +1 -1
  635. package/esm/Select/SelectMultipleValue.js +3 -5
  636. package/esm/Select/SelectOption.d.ts +5 -3
  637. package/esm/Select/SelectOption.js +18 -30
  638. package/esm/Select/index.d.ts +5 -5
  639. package/esm/Select/index.js +1 -0
  640. package/esm/Select/styles.d.ts +4 -3
  641. package/esm/Shared/backdrop.d.ts +3 -3
  642. package/esm/Shared/backdrop.js +12 -19
  643. package/esm/Shared/css-transition.d.ts +1 -1
  644. package/esm/Shared/css-transition.js +20 -25
  645. package/esm/Shared/dropdown.js +16 -28
  646. package/esm/Shared/ellipsis.d.ts +1 -1
  647. package/esm/Shared/ellipsis.js +2 -4
  648. package/esm/Shared/expand.d.ts +2 -2
  649. package/esm/Shared/expand.js +19 -27
  650. package/esm/Shared/highlight.d.ts +4 -4
  651. package/esm/Shared/highlight.js +10 -13
  652. package/esm/Slider/Slider.d.ts +7 -5
  653. package/esm/Slider/Slider.js +78 -63
  654. package/esm/Slider/SliderDot.d.ts +2 -2
  655. package/esm/Slider/SliderDot.js +19 -14
  656. package/esm/Slider/SliderMark.d.ts +4 -3
  657. package/esm/Slider/SliderMark.js +3 -6
  658. package/esm/Slider/index.d.ts +2 -2
  659. package/esm/Slider/index.js +1 -0
  660. package/esm/Slider/styles.d.ts +4 -3
  661. package/esm/Snippet/Snippet.d.ts +7 -5
  662. package/esm/Snippet/Snippet.js +35 -43
  663. package/esm/Snippet/SnippetIcon.d.ts +1 -1
  664. package/esm/Snippet/SnippetIcon.js +1 -3
  665. package/esm/Snippet/index.d.ts +3 -3
  666. package/esm/Snippet/index.js +1 -0
  667. package/esm/Snippet/styles.d.ts +4 -4
  668. package/esm/Spacer/Spacer.d.ts +3 -3
  669. package/esm/Spacer/Spacer.js +13 -15
  670. package/esm/Spacer/index.d.ts +2 -2
  671. package/esm/Spacer/index.js +1 -0
  672. package/esm/Spinner/Spinner.d.ts +5 -3
  673. package/esm/Spinner/Spinner.js +10 -13
  674. package/esm/Spinner/index.d.ts +2 -2
  675. package/esm/Spinner/index.js +1 -0
  676. package/esm/Table/Table.d.ts +13 -24
  677. package/esm/Table/Table.js +36 -39
  678. package/esm/Table/TableBody.d.ts +4 -4
  679. package/esm/Table/TableBody.js +7 -12
  680. package/esm/Table/TableCell.d.ts +5 -5
  681. package/esm/Table/TableCell.js +5 -8
  682. package/esm/Table/TableColumn.d.ts +2 -2
  683. package/esm/Table/TableColumn.js +8 -14
  684. package/esm/Table/TableContext.d.ts +3 -3
  685. package/esm/Table/TableHead.d.ts +4 -4
  686. package/esm/Table/TableHead.js +4 -7
  687. package/esm/Table/TableTypes.d.ts +7 -7
  688. package/esm/Table/index.d.ts +4 -4
  689. package/esm/Table/index.js +1 -0
  690. package/esm/Tabs/Tabs.d.ts +5 -3
  691. package/esm/Tabs/Tabs.js +53 -64
  692. package/esm/Tabs/TabsContext.d.ts +2 -2
  693. package/esm/Tabs/TabsItem.d.ts +5 -3
  694. package/esm/Tabs/TabsItem.js +39 -30
  695. package/esm/Tabs/index.d.ts +4 -4
  696. package/esm/Tabs/index.js +1 -0
  697. package/esm/Tag/Tag.d.ts +8 -6
  698. package/esm/Tag/Tag.js +21 -28
  699. package/esm/Tag/index.d.ts +2 -2
  700. package/esm/Tag/index.js +1 -0
  701. package/esm/Text/Child.d.ts +7 -8
  702. package/esm/Text/Child.js +16 -20
  703. package/esm/Text/Text.d.ts +7 -5
  704. package/esm/Text/Text.js +34 -37
  705. package/esm/Text/index.d.ts +2 -2
  706. package/esm/Text/index.js +1 -0
  707. package/esm/Textarea/Textarea.d.ts +8 -6
  708. package/esm/Textarea/Textarea.js +25 -37
  709. package/esm/Textarea/index.d.ts +2 -2
  710. package/esm/Textarea/index.js +1 -0
  711. package/esm/Themes/Presets/Dark.d.ts +1 -1
  712. package/esm/Themes/Presets/Default.d.ts +1 -1
  713. package/esm/Themes/Presets/Shared.d.ts +1 -1
  714. package/esm/Themes/Themes.d.ts +5 -5
  715. package/esm/Themes/Themes.js +0 -13
  716. package/esm/Themes/index.d.ts +3 -3
  717. package/esm/Themes/index.js +1 -0
  718. package/esm/Toggle/Toggle.d.ts +8 -6
  719. package/esm/Toggle/Toggle.js +34 -36
  720. package/esm/Toggle/index.d.ts +2 -2
  721. package/esm/Toggle/index.js +1 -0
  722. package/esm/Toggle/styles.d.ts +4 -3
  723. package/esm/Tooltip/Tooltip.d.ts +10 -8
  724. package/esm/Tooltip/Tooltip.js +62 -58
  725. package/esm/Tooltip/TooltipContent.d.ts +4 -2
  726. package/esm/Tooltip/TooltipContent.js +18 -24
  727. package/esm/Tooltip/TooltipIcon.d.ts +1 -1
  728. package/esm/Tooltip/TooltipIcon.js +9 -13
  729. package/esm/Tooltip/index.d.ts +2 -2
  730. package/esm/Tooltip/index.js +1 -0
  731. package/esm/Tooltip/placement.d.ts +1 -1
  732. package/esm/Tooltip/styles.d.ts +3 -3
  733. package/esm/index.d.ts +131 -125
  734. package/esm/index.js +6 -1
  735. package/esm/use-all-themes/all-themes-context.d.ts +2 -2
  736. package/esm/use-all-themes/index.d.ts +2 -2
  737. package/esm/use-all-themes/index.js +1 -0
  738. package/esm/use-body-scroll/index.d.ts +2 -2
  739. package/esm/use-body-scroll/index.js +1 -0
  740. package/esm/use-body-scroll/use-body-scroll.d.ts +2 -2
  741. package/esm/use-body-scroll/use-body-scroll.js +5 -15
  742. package/esm/use-classes/index.d.ts +1 -1
  743. package/esm/use-classes/index.js +1 -0
  744. package/esm/use-classes/use-classes.d.ts +2 -2
  745. package/esm/use-classes/use-classes.js +0 -9
  746. package/esm/use-click-away/index.d.ts +1 -1
  747. package/esm/use-click-away/index.js +1 -0
  748. package/esm/use-click-away/use-click-away.d.ts +1 -1
  749. package/esm/use-click-away/use-click-away.js +0 -3
  750. package/esm/use-clipboard/index.d.ts +2 -2
  751. package/esm/use-clipboard/index.js +1 -0
  752. package/esm/use-clipboard/use-clipboard.d.ts +2 -2
  753. package/esm/use-clipboard/use-clipboard.js +0 -7
  754. package/esm/use-current-state/index.d.ts +1 -1
  755. package/esm/use-current-state/index.js +1 -0
  756. package/esm/use-current-state/use-current-state.d.ts +1 -1
  757. package/esm/use-current-state/use-current-state.js +5 -10
  758. package/esm/use-input/index.d.ts +2 -2
  759. package/esm/use-input/index.js +1 -0
  760. package/esm/use-input/use-input.d.ts +1 -1
  761. package/esm/use-input/use-input.js +4 -7
  762. package/esm/use-keyboard/codes.js +1 -3
  763. package/esm/use-keyboard/helper.d.ts +1 -1
  764. package/esm/use-keyboard/helper.js +1 -1
  765. package/esm/use-keyboard/index.d.ts +3 -3
  766. package/esm/use-keyboard/index.js +1 -0
  767. package/esm/use-keyboard/use-keyboard.d.ts +4 -4
  768. package/esm/use-keyboard/use-keyboard.js +11 -22
  769. package/esm/use-media-query/index.d.ts +2 -2
  770. package/esm/use-media-query/index.js +1 -0
  771. package/esm/use-media-query/use-media-query.d.ts +3 -3
  772. package/esm/use-media-query/use-media-query.js +14 -25
  773. package/esm/use-modal/index.d.ts +2 -2
  774. package/esm/use-modal/index.js +1 -0
  775. package/esm/use-modal/use-modal.d.ts +2 -2
  776. package/esm/use-modal/use-modal.js +4 -8
  777. package/esm/use-scale/index.d.ts +4 -4
  778. package/esm/use-scale/index.js +1 -0
  779. package/esm/use-scale/scale-context.d.ts +6 -6
  780. package/esm/use-scale/scale-context.js +0 -2
  781. package/esm/use-scale/utils.d.ts +1 -1
  782. package/esm/use-scale/utils.js +5 -18
  783. package/esm/use-scale/with-scale.d.ts +6 -4
  784. package/esm/use-scale/with-scale.js +47 -56
  785. package/esm/use-tabs/index.d.ts +1 -1
  786. package/esm/use-tabs/index.js +1 -0
  787. package/esm/use-tabs/use-tabs.js +4 -7
  788. package/esm/use-theme/index.d.ts +1 -1
  789. package/esm/use-theme/index.js +1 -0
  790. package/esm/use-theme/theme-context.d.ts +1 -1
  791. package/esm/use-toasts/helpers.d.ts +7 -5
  792. package/esm/use-toasts/helpers.js +0 -2
  793. package/esm/use-toasts/index.d.ts +2 -2
  794. package/esm/use-toasts/index.js +1 -0
  795. package/esm/use-toasts/toast-container.js +9 -18
  796. package/esm/use-toasts/toast-item.d.ts +1 -1
  797. package/esm/use-toasts/toast-item.js +16 -19
  798. package/esm/use-toasts/use-toast.d.ts +8 -8
  799. package/esm/use-toasts/use-toast.js +9 -32
  800. package/esm/utils/calculations.js +1 -1
  801. package/esm/utils/collections.d.ts +2 -2
  802. package/esm/utils/collections.js +0 -12
  803. package/esm/utils/color.js +4 -12
  804. package/esm/utils/layouts.d.ts +5 -5
  805. package/esm/utils/layouts.js +7 -18
  806. package/esm/utils/prop-types.d.ts +8 -8
  807. package/esm/utils/prop-types.js +0 -2
  808. package/esm/utils/types.d.ts +1 -1
  809. package/esm/utils/use-body-scroll.d.ts +1 -1
  810. package/esm/utils/use-bolio-ui-context.d.ts +4 -4
  811. package/esm/utils/use-click-anywhere.js +0 -3
  812. package/esm/utils/use-click-away.d.ts +1 -1
  813. package/esm/utils/use-clipboard.d.ts +1 -1
  814. package/esm/utils/use-context-state/create-bolio-ui-context.js +13 -21
  815. package/esm/utils/use-context-state/use-context-state.js +4 -10
  816. package/esm/utils/use-current-state.d.ts +1 -1
  817. package/esm/utils/use-default-props.d.ts +2 -0
  818. package/esm/utils/use-default-props.js +0 -5
  819. package/esm/utils/use-dom-observer.js +0 -4
  820. package/esm/utils/use-drag.d.ts +2 -2
  821. package/esm/utils/use-drag.js +6 -17
  822. package/esm/utils/use-portal.d.ts +1 -1
  823. package/esm/utils/use-portal.js +4 -12
  824. package/esm/utils/use-previous.js +0 -2
  825. package/esm/utils/use-real-shape.d.ts +2 -2
  826. package/esm/utils/use-real-shape.js +10 -18
  827. package/esm/utils/use-resize.js +0 -4
  828. package/esm/utils/use-ssr.d.ts +1 -1
  829. package/esm/utils/use-ssr.js +3 -6
  830. package/esm/utils/use-warning.d.ts +1 -1
  831. package/esm/utils/use-warning.js +0 -4
  832. package/examples/create-redwoodjs/.redwood/README.md +44 -0
  833. package/package.json +55 -26
  834. package/dist/styled-jsx.cjs.js +0 -766
  835. package/esm/styled-jsx-server.es.js +0 -5
  836. package/esm/styled-jsx.es.js +0 -757
@@ -1,250 +1,206 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
4
5
 
5
- var styledJsx_cjs = require('../styled-jsx.cjs.js');
6
+ var _JSXStyle = require('styled-jsx/style');
6
7
  var React = require('react');
7
8
  var reactDom = require('react-dom');
8
9
 
9
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
11
 
12
+ var _JSXStyle__default = /*#__PURE__*/_interopDefaultLegacy(_JSXStyle);
11
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
14
 
13
- function ownKeys(object, enumerableOnly) {
14
- var keys = Object.keys(object);
15
-
16
- if (Object.getOwnPropertySymbols) {
17
- var symbols = Object.getOwnPropertySymbols(object);
18
- enumerableOnly && (symbols = symbols.filter(function (sym) {
19
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
20
- })), keys.push.apply(keys, symbols);
21
- }
22
-
23
- return keys;
24
- }
25
-
26
- function _objectSpread2(target) {
27
- for (var i = 1; i < arguments.length; i++) {
28
- var source = null != arguments[i] ? arguments[i] : {};
29
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
30
- _defineProperty(target, key, source[key]);
31
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
32
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
33
- });
34
- }
35
-
36
- return target;
37
- }
38
-
39
- function _typeof(obj) {
40
- "@babel/helpers - typeof";
41
-
42
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
43
- return typeof obj;
44
- } : function (obj) {
45
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
46
- }, _typeof(obj);
47
- }
48
-
49
- function _defineProperty(obj, key, value) {
50
- if (key in obj) {
51
- Object.defineProperty(obj, key, {
52
- value: value,
53
- enumerable: true,
54
- configurable: true,
55
- writable: true
56
- });
57
- } else {
58
- obj[key] = value;
59
- }
60
-
61
- return obj;
15
+ function _arrayLikeToArray(r, a) {
16
+ (null == a || a > r.length) && (a = r.length);
17
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
18
+ return n;
62
19
  }
63
-
64
- function _extends() {
65
- _extends = Object.assign ? Object.assign.bind() : function (target) {
66
- for (var i = 1; i < arguments.length; i++) {
67
- var source = arguments[i];
68
-
69
- for (var key in source) {
70
- if (Object.prototype.hasOwnProperty.call(source, key)) {
71
- target[key] = source[key];
72
- }
73
- }
74
- }
75
-
76
- return target;
77
- };
78
- return _extends.apply(this, arguments);
20
+ function _arrayWithHoles(r) {
21
+ if (Array.isArray(r)) return r;
79
22
  }
80
-
81
- function _objectWithoutPropertiesLoose(source, excluded) {
82
- if (source == null) return {};
83
- var target = {};
84
- var sourceKeys = Object.keys(source);
85
- var key, i;
86
-
87
- for (i = 0; i < sourceKeys.length; i++) {
88
- key = sourceKeys[i];
89
- if (excluded.indexOf(key) >= 0) continue;
90
- target[key] = source[key];
91
- }
92
-
93
- return target;
23
+ function _arrayWithoutHoles(r) {
24
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
94
25
  }
95
-
96
- function _objectWithoutProperties(source, excluded) {
97
- if (source == null) return {};
98
-
99
- var target = _objectWithoutPropertiesLoose(source, excluded);
100
-
101
- var key, i;
102
-
103
- if (Object.getOwnPropertySymbols) {
104
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
105
-
106
- for (i = 0; i < sourceSymbolKeys.length; i++) {
107
- key = sourceSymbolKeys[i];
108
- if (excluded.indexOf(key) >= 0) continue;
109
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
110
- target[key] = source[key];
111
- }
112
- }
113
-
114
- return target;
115
- }
116
-
117
- function _slicedToArray(arr, i) {
118
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
119
- }
120
-
121
- function _toConsumableArray(arr) {
122
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
123
- }
124
-
125
- function _arrayWithoutHoles(arr) {
126
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
127
- }
128
-
129
- function _arrayWithHoles(arr) {
130
- if (Array.isArray(arr)) return arr;
131
- }
132
-
133
- function _iterableToArray(iter) {
134
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
135
- }
136
-
137
- function _iterableToArrayLimit(arr, i) {
138
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
139
-
140
- if (_i == null) return;
141
- var _arr = [];
142
- var _n = true;
143
- var _d = false;
144
-
145
- var _s, _e;
146
-
147
- try {
148
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
149
- _arr.push(_s.value);
150
-
151
- if (i && _arr.length === i) break;
152
- }
153
- } catch (err) {
154
- _d = true;
155
- _e = err;
156
- } finally {
157
- try {
158
- if (!_n && _i["return"] != null) _i["return"]();
159
- } finally {
160
- if (_d) throw _e;
161
- }
162
- }
163
-
164
- return _arr;
165
- }
166
-
167
- function _unsupportedIterableToArray(o, minLen) {
168
- if (!o) return;
169
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
170
- var n = Object.prototype.toString.call(o).slice(8, -1);
171
- if (n === "Object" && o.constructor) n = o.constructor.name;
172
- if (n === "Map" || n === "Set") return Array.from(o);
173
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
174
- }
175
-
176
- function _arrayLikeToArray(arr, len) {
177
- if (len == null || len > arr.length) len = arr.length;
178
-
179
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
180
-
181
- return arr2;
182
- }
183
-
184
- function _nonIterableSpread() {
185
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
186
- }
187
-
188
- function _nonIterableRest() {
189
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
190
- }
191
-
192
- function _createForOfIteratorHelper(o, allowArrayLike) {
193
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
194
-
195
- if (!it) {
196
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
197
- if (it) o = it;
198
- var i = 0;
199
-
200
- var F = function () {};
201
-
26
+ function _createForOfIteratorHelper(r, e) {
27
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
28
+ if (!t) {
29
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
30
+ t && (r = t);
31
+ var n = 0,
32
+ F = function () {};
202
33
  return {
203
34
  s: F,
204
35
  n: function () {
205
- if (i >= o.length) return {
206
- done: true
207
- };
208
- return {
209
- done: false,
210
- value: o[i++]
36
+ return n >= r.length ? {
37
+ done: !0
38
+ } : {
39
+ done: !1,
40
+ value: r[n++]
211
41
  };
212
42
  },
213
- e: function (e) {
214
- throw e;
43
+ e: function (r) {
44
+ throw r;
215
45
  },
216
46
  f: F
217
47
  };
218
48
  }
219
-
220
49
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
221
50
  }
222
-
223
- var normalCompletion = true,
224
- didErr = false,
225
- err;
51
+ var o,
52
+ a = !0,
53
+ u = !1;
226
54
  return {
227
55
  s: function () {
228
- it = it.call(o);
56
+ t = t.call(r);
229
57
  },
230
58
  n: function () {
231
- var step = it.next();
232
- normalCompletion = step.done;
233
- return step;
59
+ var r = t.next();
60
+ return a = r.done, r;
234
61
  },
235
- e: function (e) {
236
- didErr = true;
237
- err = e;
62
+ e: function (r) {
63
+ u = !0, o = r;
238
64
  },
239
65
  f: function () {
240
66
  try {
241
- if (!normalCompletion && it.return != null) it.return();
67
+ a || null == t.return || t.return();
242
68
  } finally {
243
- if (didErr) throw err;
69
+ if (u) throw o;
244
70
  }
245
71
  }
246
72
  };
247
73
  }
74
+ function _defineProperty(e, r, t) {
75
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
76
+ value: t,
77
+ enumerable: !0,
78
+ configurable: !0,
79
+ writable: !0
80
+ }) : e[r] = t, e;
81
+ }
82
+ function _extends() {
83
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
84
+ for (var e = 1; e < arguments.length; e++) {
85
+ var t = arguments[e];
86
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
87
+ }
88
+ return n;
89
+ }, _extends.apply(null, arguments);
90
+ }
91
+ function _iterableToArray(r) {
92
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
93
+ }
94
+ function _iterableToArrayLimit(r, l) {
95
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
96
+ if (null != t) {
97
+ var e,
98
+ n,
99
+ i,
100
+ u,
101
+ a = [],
102
+ f = !0,
103
+ o = !1;
104
+ try {
105
+ if (i = (t = t.call(r)).next, 0 === l) {
106
+ if (Object(t) !== t) return;
107
+ f = !1;
108
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
109
+ } catch (r) {
110
+ o = !0, n = r;
111
+ } finally {
112
+ try {
113
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
114
+ } finally {
115
+ if (o) throw n;
116
+ }
117
+ }
118
+ return a;
119
+ }
120
+ }
121
+ function _nonIterableRest() {
122
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
123
+ }
124
+ function _nonIterableSpread() {
125
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
126
+ }
127
+ function ownKeys(e, r) {
128
+ var t = Object.keys(e);
129
+ if (Object.getOwnPropertySymbols) {
130
+ var o = Object.getOwnPropertySymbols(e);
131
+ r && (o = o.filter(function (r) {
132
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
133
+ })), t.push.apply(t, o);
134
+ }
135
+ return t;
136
+ }
137
+ function _objectSpread2(e) {
138
+ for (var r = 1; r < arguments.length; r++) {
139
+ var t = null != arguments[r] ? arguments[r] : {};
140
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
141
+ _defineProperty(e, r, t[r]);
142
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
143
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
144
+ });
145
+ }
146
+ return e;
147
+ }
148
+ function _objectWithoutProperties(e, t) {
149
+ if (null == e) return {};
150
+ var o,
151
+ r,
152
+ i = _objectWithoutPropertiesLoose(e, t);
153
+ if (Object.getOwnPropertySymbols) {
154
+ var n = Object.getOwnPropertySymbols(e);
155
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
156
+ }
157
+ return i;
158
+ }
159
+ function _objectWithoutPropertiesLoose(r, e) {
160
+ if (null == r) return {};
161
+ var t = {};
162
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
163
+ if (-1 !== e.indexOf(n)) continue;
164
+ t[n] = r[n];
165
+ }
166
+ return t;
167
+ }
168
+ function _slicedToArray(r, e) {
169
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
170
+ }
171
+ function _toConsumableArray(r) {
172
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
173
+ }
174
+ function _toPrimitive(t, r) {
175
+ if ("object" != typeof t || !t) return t;
176
+ var e = t[Symbol.toPrimitive];
177
+ if (void 0 !== e) {
178
+ var i = e.call(t, r || "default");
179
+ if ("object" != typeof i) return i;
180
+ throw new TypeError("@@toPrimitive must return a primitive value.");
181
+ }
182
+ return ("string" === r ? String : Number)(t);
183
+ }
184
+ function _toPropertyKey(t) {
185
+ var i = _toPrimitive(t, "string");
186
+ return "symbol" == typeof i ? i : i + "";
187
+ }
188
+ function _typeof(o) {
189
+ "@babel/helpers - typeof";
190
+
191
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
192
+ return typeof o;
193
+ } : function (o) {
194
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
195
+ }, _typeof(o);
196
+ }
197
+ function _unsupportedIterableToArray(r, a) {
198
+ if (r) {
199
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
200
+ var t = {}.toString.call(r).slice(8, -1);
201
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
202
+ }
203
+ }
248
204
 
249
205
  var defaultFont = {
250
206
  sans: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
@@ -430,12 +386,10 @@ var deepDuplicable = function deepDuplicable(source, target) {
430
386
  if (!isObject(target) || !isObject(source)) return source;
431
387
  var sourceKeys = Object.keys(source);
432
388
  var result = {};
433
-
434
389
  for (var _i = 0, _sourceKeys = sourceKeys; _i < _sourceKeys.length; _i++) {
435
390
  var key = _sourceKeys[_i];
436
391
  var sourceValue = source[key];
437
392
  var targetValue = target[key];
438
-
439
393
  if (Array.isArray(sourceValue) && Array.isArray(targetValue)) {
440
394
  result[key] = targetValue.concat(sourceValue);
441
395
  } else if (isObject(sourceValue) && isObject(targetValue)) {
@@ -446,18 +400,14 @@ var deepDuplicable = function deepDuplicable(source, target) {
446
400
  result[key] = sourceValue;
447
401
  }
448
402
  }
449
-
450
403
  return result;
451
404
  };
452
-
453
405
  var getPresets = function getPresets() {
454
406
  return [lightTheme, darkTheme];
455
407
  };
456
-
457
408
  var getPresetStaticTheme = function getPresetStaticTheme() {
458
409
  return lightTheme;
459
410
  };
460
-
461
411
  var isAvailableThemeType = function isAvailableThemeType(type) {
462
412
  if (!type) return false;
463
413
  var presetThemes = getPresets();
@@ -466,37 +416,30 @@ var isAvailableThemeType = function isAvailableThemeType(type) {
466
416
  });
467
417
  return !hasType;
468
418
  };
469
-
470
419
  var isPresetTheme = function isPresetTheme(themeOrType) {
471
420
  if (!themeOrType) return false;
472
421
  var isType = typeof themeOrType === 'string';
473
422
  var type = isType ? themeOrType : themeOrType.type;
474
423
  return !isAvailableThemeType(type);
475
424
  };
476
-
477
425
  var hasUserCustomTheme = function hasUserCustomTheme() {
478
426
  var themes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
479
427
  return !!themes.find(function (item) {
480
428
  return isAvailableThemeType(item.type);
481
429
  });
482
430
  };
483
-
484
431
  var create = function create(base, custom) {
485
432
  if (!isAvailableThemeType(custom.type)) {
486
433
  throw new Error('Duplicate or unavailable theme type');
487
434
  }
488
-
489
435
  return deepDuplicable(base, custom);
490
436
  };
491
-
492
437
  var createFromDark = function createFromDark(custom) {
493
438
  return create(darkTheme, custom);
494
439
  };
495
-
496
440
  var createFromLight = function createFromLight(custom) {
497
441
  return create(lightTheme, custom);
498
442
  };
499
-
500
443
  var Themes = {
501
444
  isPresetTheme: isPresetTheme,
502
445
  isAvailableThemeType: isAvailableThemeType,
@@ -519,26 +462,22 @@ var useTheme = useTheme$1;
519
462
 
520
463
  var useCurrentState = function useCurrentState(initialState) {
521
464
  var _useState = React.useState(function () {
522
- return typeof initialState === 'function' ? initialState() : initialState;
523
- }),
524
- _useState2 = _slicedToArray(_useState, 2),
525
- state = _useState2[0],
526
- setState = _useState2[1];
527
-
465
+ return typeof initialState === 'function' ? initialState() : initialState;
466
+ }),
467
+ _useState2 = _slicedToArray(_useState, 2),
468
+ state = _useState2[0],
469
+ setState = _useState2[1];
528
470
  var ref = React.useRef(initialState);
529
471
  React.useEffect(function () {
530
472
  ref.current = state;
531
473
  }, [state]);
532
-
533
474
  var setValue = function setValue(val) {
534
475
  var result = typeof val === 'function' ? val(ref.current) : val;
535
476
  ref.current = result;
536
477
  setState(result);
537
478
  };
538
-
539
479
  return [state, setValue, ref];
540
480
  };
541
-
542
481
  var useCurrentState$1 = useCurrentState;
543
482
 
544
483
  var getId = function getId() {
@@ -550,21 +489,17 @@ var pickChildByProps = function pickChildByProps(children, key, value) {
550
489
  var withoutPropChildren = React__default["default"].Children.map(children, function (item) {
551
490
  if (! /*#__PURE__*/React__default["default"].isValidElement(item)) return null;
552
491
  if (!item.props) return item;
553
-
554
492
  if (isArray) {
555
493
  if (value.includes(item.props[key])) {
556
494
  target.push(item);
557
495
  return null;
558
496
  }
559
-
560
497
  return item;
561
498
  }
562
-
563
499
  if (item.props[key] === value) {
564
500
  target.push(item);
565
501
  return null;
566
502
  }
567
-
568
503
  return item;
569
504
  });
570
505
  var targetChildren = target.length >= 0 ? target : undefined;
@@ -589,11 +524,10 @@ function SelectIconComponent() {
589
524
  }, /*#__PURE__*/React__default["default"].createElement("path", {
590
525
  d: "M6 9l6 6 6-6",
591
526
  className: "jsx-2742933678"
592
- }), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
527
+ }), /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
593
528
  id: "2742933678"
594
529
  }, "svg.jsx-2742933678{color:inherit;stroke:currentColor;-webkit-transition:all 200ms ease;transition:all 200ms ease;width:1.214em;height:1.214em;}"));
595
530
  }
596
-
597
531
  SelectIconComponent.displayName = 'BolioUISelectIcon';
598
532
  var SelectIcon = /*#__PURE__*/React__default["default"].memo(SelectIconComponent);
599
533
  var SelectIcon$1 = SelectIcon;
@@ -609,10 +543,9 @@ var useSelectContext = function useSelectContext() {
609
543
 
610
544
  var useSSR = function useSSR() {
611
545
  var _useState = React.useState(false),
612
- _useState2 = _slicedToArray(_useState, 2),
613
- browser = _useState2[0],
614
- setBrowser = _useState2[1];
615
-
546
+ _useState2 = _slicedToArray(_useState, 2),
547
+ browser = _useState2[0],
548
+ setBrowser = _useState2[1];
616
549
  React.useEffect(function () {
617
550
  setBrowser(isBrowser());
618
551
  }, []);
@@ -621,7 +554,6 @@ var useSSR = function useSSR() {
621
554
  isServer: !browser
622
555
  };
623
556
  };
624
-
625
557
  var useSSR$1 = useSSR;
626
558
 
627
559
  var createElement = function createElement(id) {
@@ -629,35 +561,28 @@ var createElement = function createElement(id) {
629
561
  el.setAttribute('id', id);
630
562
  return el;
631
563
  };
632
-
633
564
  var usePortal = function usePortal() {
634
565
  var selectId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getId();
635
566
  var getContainer = arguments.length > 1 ? arguments[1] : undefined;
636
567
  var id = "bolio-ui-".concat(selectId);
637
-
638
568
  var _useSSR = useSSR$1(),
639
- isBrowser = _useSSR.isBrowser;
640
-
569
+ isBrowser = _useSSR.isBrowser;
641
570
  var _useState = React.useState(isBrowser ? createElement(id) : null),
642
- _useState2 = _slicedToArray(_useState, 2),
643
- elSnapshot = _useState2[0],
644
- setElSnapshot = _useState2[1];
645
-
571
+ _useState2 = _slicedToArray(_useState, 2),
572
+ elSnapshot = _useState2[0],
573
+ setElSnapshot = _useState2[1];
646
574
  React.useEffect(function () {
647
575
  var customContainer = getContainer ? getContainer() : null;
648
576
  var parentElement = customContainer || document.body;
649
577
  var hasElement = parentElement.querySelector("#".concat(id));
650
578
  var el = hasElement || createElement(id);
651
-
652
579
  if (!hasElement) {
653
580
  parentElement.appendChild(el);
654
581
  }
655
-
656
582
  setElSnapshot(el);
657
583
  }, []);
658
584
  return elSnapshot;
659
585
  };
660
-
661
586
  var usePortal$1 = usePortal;
662
587
 
663
588
  var useResize = function useResize(callback) {
@@ -666,18 +591,15 @@ var useResize = function useResize(callback) {
666
591
  var fn = function fn() {
667
592
  return callback();
668
593
  };
669
-
670
594
  if (immediatelyInvoke) {
671
595
  fn();
672
596
  }
673
-
674
597
  window.addEventListener('resize', fn);
675
598
  return function () {
676
599
  return window.removeEventListener('resize', fn);
677
600
  };
678
601
  }, []);
679
602
  };
680
-
681
603
  var useResize$1 = useResize;
682
604
 
683
605
  var _excluded$6 = ["children", "className", "visible", "enterTime", "leaveTime", "clearTime", "name"];
@@ -689,48 +611,43 @@ var defaultProps$2 = {
689
611
  className: '',
690
612
  name: 'transition'
691
613
  };
692
-
693
614
  function CssTransition(_ref) {
694
615
  var children = _ref.children,
695
- className = _ref.className,
696
- visible = _ref.visible,
697
- enterTime = _ref.enterTime,
698
- leaveTime = _ref.leaveTime,
699
- clearTime = _ref.clearTime,
700
- name = _ref.name,
701
- props = _objectWithoutProperties(_ref, _excluded$6);
702
-
616
+ className = _ref.className,
617
+ visible = _ref.visible,
618
+ enterTime = _ref.enterTime,
619
+ leaveTime = _ref.leaveTime,
620
+ clearTime = _ref.clearTime,
621
+ name = _ref.name,
622
+ props = _objectWithoutProperties(_ref, _excluded$6);
703
623
  var _useState = React.useState(''),
704
- _useState2 = _slicedToArray(_useState, 2),
705
- classes = _useState2[0],
706
- setClasses = _useState2[1];
707
-
624
+ _useState2 = _slicedToArray(_useState, 2),
625
+ classes = _useState2[0],
626
+ setClasses = _useState2[1];
708
627
  var _useState3 = React.useState(visible),
709
- _useState4 = _slicedToArray(_useState3, 2),
710
- renderable = _useState4[0],
711
- setRenderable = _useState4[1];
712
-
628
+ _useState4 = _slicedToArray(_useState3, 2),
629
+ renderable = _useState4[0],
630
+ setRenderable = _useState4[1];
713
631
  React.useEffect(function () {
714
632
  var statusClassName = visible ? 'enter' : 'leave';
715
633
  var time = visible ? enterTime : leaveTime;
716
-
717
634
  if (visible && !renderable) {
718
635
  setRenderable(true);
719
636
  }
637
+ setClasses("".concat(name, "-").concat(statusClassName));
720
638
 
721
- setClasses("".concat(name, "-").concat(statusClassName)); // set class to active
722
-
639
+ // set class to active
723
640
  var timer = setTimeout(function () {
724
641
  setClasses("".concat(name, "-").concat(statusClassName, " ").concat(name, "-").concat(statusClassName, "-active"));
725
642
  clearTimeout(timer);
726
- }, time); // remove classess when animation over
643
+ }, time);
727
644
 
645
+ // remove classess when animation over
728
646
  var clearClassesTimer = setTimeout(function () {
729
647
  if (!visible) {
730
648
  setClasses('');
731
649
  setRenderable(false);
732
650
  }
733
-
734
651
  clearTimeout(clearClassesTimer);
735
652
  }, time + clearTime);
736
653
  return function () {
@@ -739,11 +656,11 @@ function CssTransition(_ref) {
739
656
  };
740
657
  }, [visible, renderable]);
741
658
  if (! /*#__PURE__*/React__default["default"].isValidElement(children) || !renderable) return null;
742
- return /*#__PURE__*/React__default["default"].cloneElement(children, _objectSpread2(_objectSpread2({}, props), {}, {
743
- className: "".concat(children.props.className, " ").concat(className, " ").concat(classes)
659
+ var element = children;
660
+ return /*#__PURE__*/React__default["default"].cloneElement(element, _objectSpread2(_objectSpread2({}, props), {}, {
661
+ className: "".concat(element.props.className, " ").concat(className, " ").concat(classes)
744
662
  }));
745
663
  }
746
-
747
664
  CssTransition.defaultProps = defaultProps$2;
748
665
  CssTransition.displayName = 'BolioUICssTransition';
749
666
 
@@ -752,14 +669,12 @@ var useClickAnyWhere = function useClickAnyWhere(handler) {
752
669
  var callback = function callback(event) {
753
670
  return handler(event);
754
671
  };
755
-
756
672
  document.addEventListener('click', callback);
757
673
  return function () {
758
674
  return document.removeEventListener('click', callback);
759
675
  };
760
676
  }, [handler]);
761
677
  };
762
-
763
678
  var useClickAnyWhere$1 = useClickAnyWhere;
764
679
 
765
680
  var useDOMObserver = function useDOMObserver(ref) {
@@ -772,12 +687,10 @@ var useDOMObserver = function useDOMObserver(ref) {
772
687
  React.useEffect(function () {
773
688
  if (!ref || !ref.current) return;
774
689
  var unmount = false;
775
-
776
690
  var done = function done() {
777
691
  if (unmount) return;
778
692
  callback.apply(void 0, arguments);
779
693
  };
780
-
781
694
  var observer = new MutationObserver(done);
782
695
  observer.observe(ref.current, config);
783
696
  return function () {
@@ -786,25 +699,20 @@ var useDOMObserver = function useDOMObserver(ref) {
786
699
  };
787
700
  }, [ref]);
788
701
  };
789
-
790
702
  var useDOMObserver$1 = useDOMObserver;
791
703
 
792
704
  var warningStack = {};
793
-
794
705
  var useWarning = function useWarning(message, component) {
795
706
  var tag = component ? " [".concat(component, "]") : ' ';
796
707
  var log = "[Bolio UI]".concat(tag, ": ").concat(message);
797
708
  if (typeof console === 'undefined') return;
798
709
  if (warningStack[log]) return;
799
710
  warningStack[log] = true;
800
-
801
711
  if (process.env.NODE_ENV !== 'production') {
802
712
  return console.error(log);
803
713
  }
804
-
805
714
  console.warn(log);
806
715
  };
807
-
808
716
  var useWarning$1 = useWarning;
809
717
 
810
718
  var getElementOffset = function getElementOffset(el) {
@@ -812,11 +720,9 @@ var getElementOffset = function getElementOffset(el) {
812
720
  top: 0,
813
721
  left: 0
814
722
  };
815
-
816
723
  var _el$getBoundingClient = el.getBoundingClientRect(),
817
- top = _el$getBoundingClient.top,
818
- left = _el$getBoundingClient.left;
819
-
724
+ top = _el$getBoundingClient.top,
725
+ left = _el$getBoundingClient.left;
820
726
  return {
821
727
  top: top,
822
728
  left: left
@@ -830,16 +736,13 @@ var defaultRect$1 = {
830
736
  height: 0,
831
737
  elementTop: -1000
832
738
  };
833
-
834
739
  var getRectFromDOMWithContainer = function getRectFromDOMWithContainer(domRect, getContainer) {
835
740
  if (!domRect) return defaultRect$1;
836
741
  var container = getContainer ? getContainer() : null;
837
742
  var scrollElement = container || document.documentElement;
838
-
839
743
  var _getElementOffset = getElementOffset(container),
840
- offsetTop = _getElementOffset.top,
841
- offsetLeft = _getElementOffset.left;
842
-
744
+ offsetTop = _getElementOffset.top,
745
+ offsetLeft = _getElementOffset.left;
843
746
  return _objectSpread2(_objectSpread2({}, domRect), {}, {
844
747
  width: domRect.width || domRect.right - domRect.left,
845
748
  height: domRect.height || domRect.top - domRect.bottom,
@@ -858,40 +761,32 @@ var classObjectToString = function classObjectToString(className) {
858
761
  var keys = Object.keys(className);
859
762
  var len = keys.length;
860
763
  var str = '';
861
-
862
764
  for (var index = 0; index < len; index++) {
863
765
  var key = keys[index];
864
766
  var val = className[keys[index]];
865
767
  if (!val) continue;
866
768
  str = str ? "".concat(str, " ").concat(String(key)) : String(key);
867
769
  }
868
-
869
770
  return str;
870
771
  };
871
-
872
772
  var isObjectClassName = function isObjectClassName(value) {
873
773
  return _typeof(value) === 'object' && !Array.isArray(value);
874
774
  };
875
-
876
775
  var useClasses = function useClasses() {
877
776
  var len = arguments.length;
878
777
  var classes = '';
879
778
  if (len === 0) return classes;
880
-
881
779
  for (var index = 0; index < len; index++) {
882
780
  var val = index < 0 || arguments.length <= index ? undefined : arguments[index];
883
781
  if (!val) continue;
884
-
885
782
  if (isObjectClassName(val)) {
886
783
  classes += " ".concat(classObjectToString(val));
887
784
  } else {
888
785
  classes += " ".concat(String(val).trim());
889
786
  }
890
787
  }
891
-
892
788
  return classes.trim();
893
789
  };
894
-
895
790
  var useClasses$1 = useClasses;
896
791
 
897
792
  var defaultRect = {
@@ -902,40 +797,34 @@ var defaultRect = {
902
797
  };
903
798
  var Dropdown = /*#__PURE__*/React__default["default"].memo(function (_ref) {
904
799
  var children = _ref.children,
905
- parent = _ref.parent,
906
- visible = _ref.visible,
907
- disableMatchWidth = _ref.disableMatchWidth,
908
- getPopupContainer = _ref.getPopupContainer;
800
+ parent = _ref.parent,
801
+ visible = _ref.visible,
802
+ disableMatchWidth = _ref.disableMatchWidth,
803
+ getPopupContainer = _ref.getPopupContainer;
909
804
  var el = usePortal$1('dropdown', getPopupContainer);
910
-
911
805
  var _useState = React.useState(defaultRect),
912
- _useState2 = _slicedToArray(_useState, 2),
913
- rect = _useState2[0],
914
- setRect = _useState2[1];
915
-
806
+ _useState2 = _slicedToArray(_useState, 2),
807
+ rect = _useState2[0],
808
+ setRect = _useState2[1];
916
809
  var classes = useClasses$1('dropdown', disableMatchWidth ? 'disable-match' : 'width-match');
917
810
  if (!parent) return null;
918
- /* istanbul ignore next */
919
811
 
812
+ /* istanbul ignore next */
920
813
  if (process.env.NODE_ENV !== 'production') {
921
814
  if (getPopupContainer && getPopupContainer()) {
922
815
  var _el = getPopupContainer();
923
-
924
816
  var style = window.getComputedStyle(_el);
925
-
926
817
  if (style.position === 'static') {
927
818
  useWarning$1('The element specified by "getPopupContainer" must have "position" set.');
928
819
  }
929
820
  }
930
821
  }
931
-
932
822
  var updateRect = function updateRect() {
933
823
  var _getRefRect = getRefRect(parent, getPopupContainer),
934
- top = _getRefRect.top,
935
- left = _getRefRect.left,
936
- right = _getRefRect.right,
937
- nativeWidth = _getRefRect.width;
938
-
824
+ top = _getRefRect.top,
825
+ left = _getRefRect.left,
826
+ right = _getRefRect.right,
827
+ nativeWidth = _getRefRect.width;
939
828
  setRect({
940
829
  top: top,
941
830
  left: left,
@@ -943,13 +832,11 @@ var Dropdown = /*#__PURE__*/React__default["default"].memo(function (_ref) {
943
832
  width: nativeWidth
944
833
  });
945
834
  };
946
-
947
835
  useResize$1(updateRect);
948
836
  useClickAnyWhere$1(function () {
949
837
  var _getRefRect2 = getRefRect(parent, getPopupContainer),
950
- top = _getRefRect2.top,
951
- left = _getRefRect2.left;
952
-
838
+ top = _getRefRect2.top,
839
+ left = _getRefRect2.left;
953
840
  var shouldUpdatePosition = top !== rect.top || left !== rect.left;
954
841
  if (!shouldUpdatePosition) return;
955
842
  updateRect();
@@ -961,31 +848,27 @@ var Dropdown = /*#__PURE__*/React__default["default"].memo(function (_ref) {
961
848
  if (!parent || !parent.current) return;
962
849
  parent.current.addEventListener('mouseenter', updateRect);
963
850
  /* istanbul ignore next */
964
-
965
851
  return function () {
966
852
  if (!parent || !parent.current) return;
967
853
  parent.current.removeEventListener('mouseenter', updateRect);
968
854
  };
969
855
  }, [parent]);
970
-
971
856
  var clickHandler = function clickHandler(event) {
972
857
  event.stopPropagation();
973
858
  event.nativeEvent.stopImmediatePropagation();
974
859
  event.preventDefault();
975
860
  };
976
-
977
861
  var mouseDownHandler = function mouseDownHandler(event) {
978
862
  event.preventDefault();
979
863
  };
980
-
981
864
  if (!el) return null;
982
- return /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement(CssTransition, {
865
+ return /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React__default["default"].createElement(CssTransition, {
983
866
  visible: visible
984
867
  }, /*#__PURE__*/React__default["default"].createElement("div", {
985
868
  onClick: clickHandler,
986
869
  onMouseDown: mouseDownHandler,
987
- className: styledJsx_cjs.style.dynamic([["1644673105", [rect.top + 2, rect.left, rect.width, rect.width]]]) + " " + (classes || "")
988
- }, children, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
870
+ className: _JSXStyle__default["default"].dynamic([["1644673105", [rect.top + 2, rect.left, rect.width, rect.width]]]) + " " + (classes || "")
871
+ }, children, /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
989
872
  id: "1644673105",
990
873
  dynamic: [rect.top + 2, rect.left, rect.width, rect.width]
991
874
  }, ".dropdown.__jsx-style-dynamic-selector{position:absolute;top:".concat(rect.top + 2, "px;left:").concat(rect.left, "px;z-index:1100;}.width-match.__jsx-style-dynamic-selector{width:").concat(rect.width, "px;}.disable-match.__jsx-style-dynamic-selector{min-width:").concat(rect.width, "px;}")))), el);
@@ -994,19 +877,17 @@ var Dropdown$1 = Dropdown;
994
877
 
995
878
  var SelectDropdown = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, dropdownRef) {
996
879
  var visible = _ref.visible,
997
- children = _ref.children,
998
- _ref$className = _ref.className,
999
- className = _ref$className === void 0 ? '' : _ref$className,
1000
- _ref$dropdownStyle = _ref.dropdownStyle,
1001
- dropdownStyle = _ref$dropdownStyle === void 0 ? {} : _ref$dropdownStyle,
1002
- disableMatchWidth = _ref.disableMatchWidth,
1003
- getPopupContainer = _ref.getPopupContainer;
880
+ children = _ref.children,
881
+ _ref$className = _ref.className,
882
+ className = _ref$className === void 0 ? '' : _ref$className,
883
+ _ref$dropdownStyle = _ref.dropdownStyle,
884
+ dropdownStyle = _ref$dropdownStyle === void 0 ? {} : _ref$dropdownStyle,
885
+ disableMatchWidth = _ref.disableMatchWidth,
886
+ getPopupContainer = _ref.getPopupContainer;
1004
887
  var theme = useTheme();
1005
888
  var internalDropdownRef = React.useRef(null);
1006
-
1007
889
  var _useSelectContext = useSelectContext(),
1008
- ref = _useSelectContext.ref;
1009
-
890
+ ref = _useSelectContext.ref;
1010
891
  var classes = useClasses$1('select-dropdown', className);
1011
892
  React.useImperativeHandle(dropdownRef, function () {
1012
893
  return internalDropdownRef.current;
@@ -1019,8 +900,8 @@ var SelectDropdown = /*#__PURE__*/React__default["default"].forwardRef(function
1019
900
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1020
901
  ref: internalDropdownRef,
1021
902
  style: dropdownStyle,
1022
- className: styledJsx_cjs.style.dynamic([["2113247935", [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.accents_2]]]) + " " + (classes || "")
1023
- }, children, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
903
+ className: _JSXStyle__default["default"].dynamic([["2113247935", [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.accents_2]]]) + " " + (classes || "")
904
+ }, children, /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1024
905
  id: "2113247935",
1025
906
  dynamic: [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.accents_2]
1026
907
  }, ".select-dropdown.__jsx-style-dynamic-selector{border-radius:".concat(theme.layout.radius, ";box-shadow:").concat(theme.expressiveness.shadowLarge, ";background-color:").concat(theme.palette.accents_2, ";max-height:17em;overflow-y:auto;overflow-anchor:none;padding:0.38em 0;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;}"))));
@@ -1029,11 +910,9 @@ SelectDropdown.displayName = 'BolioUISelectDropdown';
1029
910
  var SelectDropdown$1 = SelectDropdown;
1030
911
 
1031
912
  var ScalePropKeys = ['width', 'height', 'padding', 'margin', 'w', 'h', 'paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom', 'pl', 'pr', 'pt', 'pb', 'marginLeft', 'marginRight', 'marginTop', 'marginBottom', 'ml', 'mr', 'mt', 'mb', 'px', 'py', 'mx', 'my', 'font', 'unit', 'scale'];
1032
-
1033
913
  var defaultDynamicLayoutPipe = function defaultDynamicLayoutPipe(scale1x) {
1034
914
  return "".concat(scale1x);
1035
915
  };
1036
-
1037
916
  var defaultContext = {
1038
917
  getScaleProps: function getScaleProps() {
1039
918
  return undefined;
@@ -1069,15 +948,12 @@ var generateGetScaleProps = function generateGetScaleProps(props) {
1069
948
  var getScaleProps = function getScaleProps(keyOrKeys) {
1070
949
  if (!Array.isArray(keyOrKeys)) return props[keyOrKeys];
1071
950
  var value = undefined;
1072
-
1073
951
  var _iterator = _createForOfIteratorHelper(keyOrKeys),
1074
- _step;
1075
-
952
+ _step;
1076
953
  try {
1077
954
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
1078
955
  var key = _step.value;
1079
956
  var currentValue = props[key];
1080
-
1081
957
  if (typeof currentValue !== 'undefined') {
1082
958
  value = currentValue;
1083
959
  }
@@ -1087,24 +963,19 @@ var generateGetScaleProps = function generateGetScaleProps(props) {
1087
963
  } finally {
1088
964
  _iterator.f();
1089
965
  }
1090
-
1091
966
  return value;
1092
967
  };
1093
-
1094
968
  return getScaleProps;
1095
969
  };
1096
970
  var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
1097
971
  var getAllScaleProps = function getAllScaleProps() {
1098
972
  var scaleProps = {};
1099
-
1100
973
  var _iterator2 = _createForOfIteratorHelper(ScalePropKeys),
1101
- _step2;
1102
-
974
+ _step2;
1103
975
  try {
1104
976
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1105
977
  var key = _step2.value;
1106
978
  var value = props[key];
1107
-
1108
979
  if (typeof value !== 'undefined') {
1109
980
  scaleProps[key] = value;
1110
981
  }
@@ -1114,66 +985,60 @@ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
1114
985
  } finally {
1115
986
  _iterator2.f();
1116
987
  }
1117
-
1118
988
  return scaleProps;
1119
989
  };
1120
-
1121
990
  return getAllScaleProps;
1122
991
  };
1123
992
 
1124
993
  var _excluded$5 = ["children"],
1125
- _excluded2 = ["paddingLeft", "pl", "paddingRight", "pr", "paddingTop", "pt", "paddingBottom", "pb", "marginTop", "mt", "marginRight", "mr", "marginBottom", "mb", "marginLeft", "ml", "px", "py", "mx", "my", "width", "height", "font", "w", "h", "margin", "padding", "unit", "scale"];
1126
-
994
+ _excluded2 = ["paddingLeft", "pl", "paddingRight", "pr", "paddingTop", "pt", "paddingBottom", "pb", "marginTop", "mt", "marginRight", "mr", "marginBottom", "mb", "marginLeft", "ml", "px", "py", "mx", "my", "width", "height", "font", "w", "h", "margin", "padding", "unit", "scale"];
1127
995
  var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
1128
996
  if (scale === 1) return scale;
1129
997
  var diff = Math.abs((scale - 1) / 2);
1130
998
  return scale > 1 ? 1 + diff : 1 - diff;
1131
- }; // eslint-disable-next-line @typescript-eslint/ban-types
999
+ };
1132
1000
 
1001
+ /* eslint-disable @typescript-eslint/ban-types */
1133
1002
 
1134
- var withScale = function withScale(Render) {
1003
+ function withScale(Render) {
1135
1004
  var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1136
- var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32, _ref33;
1137
-
1005
+ var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
1138
1006
  var children = _ref.children,
1139
- props = _objectWithoutProperties(_ref, _excluded$5);
1140
-
1007
+ props = _objectWithoutProperties(_ref, _excluded$5);
1141
1008
  var _useTheme = useTheme(),
1142
- layout = _useTheme.layout;
1143
-
1009
+ layout = _useTheme.layout;
1144
1010
  var paddingLeft = props.paddingLeft,
1145
- pl = props.pl,
1146
- paddingRight = props.paddingRight,
1147
- pr = props.pr,
1148
- paddingTop = props.paddingTop,
1149
- pt = props.pt,
1150
- paddingBottom = props.paddingBottom,
1151
- pb = props.pb,
1152
- marginTop = props.marginTop,
1153
- mt = props.mt,
1154
- marginRight = props.marginRight,
1155
- mr = props.mr,
1156
- marginBottom = props.marginBottom,
1157
- mb = props.mb,
1158
- marginLeft = props.marginLeft,
1159
- ml = props.ml,
1160
- px = props.px,
1161
- py = props.py,
1162
- mx = props.mx,
1163
- my = props.my,
1164
- width = props.width,
1165
- height = props.height,
1166
- font = props.font,
1167
- w = props.w,
1168
- h = props.h,
1169
- margin = props.margin,
1170
- padding = props.padding,
1171
- _props$unit = props.unit,
1172
- unit = _props$unit === void 0 ? layout.unit : _props$unit,
1173
- _props$scale = props.scale,
1174
- scale = _props$scale === void 0 ? 1 : _props$scale,
1175
- innerProps = _objectWithoutProperties(props, _excluded2);
1176
-
1011
+ pl = props.pl,
1012
+ paddingRight = props.paddingRight,
1013
+ pr = props.pr,
1014
+ paddingTop = props.paddingTop,
1015
+ pt = props.pt,
1016
+ paddingBottom = props.paddingBottom,
1017
+ pb = props.pb,
1018
+ marginTop = props.marginTop,
1019
+ mt = props.mt,
1020
+ marginRight = props.marginRight,
1021
+ mr = props.mr,
1022
+ marginBottom = props.marginBottom,
1023
+ mb = props.mb,
1024
+ marginLeft = props.marginLeft,
1025
+ ml = props.ml,
1026
+ px = props.px,
1027
+ py = props.py,
1028
+ mx = props.mx,
1029
+ my = props.my,
1030
+ width = props.width,
1031
+ height = props.height,
1032
+ font = props.font,
1033
+ w = props.w,
1034
+ h = props.h,
1035
+ margin = props.margin,
1036
+ padding = props.padding,
1037
+ _props$unit = props.unit,
1038
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1039
+ _props$scale = props.scale,
1040
+ scale = _props$scale === void 0 ? 1 : _props$scale,
1041
+ innerProps = _objectWithoutProperties(props, _excluded2);
1177
1042
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1178
1043
  return function (scale1x, defaultValue) {
1179
1044
  // 0 means disable scale and the default value is 0
@@ -1181,20 +1046,16 @@ var withScale = function withScale(Render) {
1181
1046
  scale1x = 1;
1182
1047
  defaultValue = defaultValue || 0;
1183
1048
  }
1184
-
1185
1049
  var factor = reduceScaleCoefficient(scale) * scale1x;
1186
-
1187
1050
  if (typeof attrValue === 'undefined') {
1188
1051
  if (typeof defaultValue !== 'undefined') return "".concat(defaultValue);
1189
1052
  return "calc(".concat(factor, " * ").concat(unit, ")");
1190
1053
  }
1191
-
1192
1054
  if (!isCSSNumberValue(attrValue)) return "".concat(attrValue);
1193
1055
  var customFactor = factor * Number(attrValue);
1194
1056
  return "calc(".concat(customFactor, " * ").concat(unit, ")");
1195
1057
  };
1196
1058
  };
1197
-
1198
1059
  var value = {
1199
1060
  unit: unit,
1200
1061
  SCALES: {
@@ -1202,14 +1063,14 @@ var withScale = function withScale(Render) {
1202
1063
  pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1203
1064
  pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1204
1065
  pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1205
- px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
1206
- py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
1207
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1208
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1209
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1210
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1211
- mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
1212
- my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
1066
+ px: makeScaleHandler((_ref0 = (_ref1 = (_ref10 = (_ref11 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref11 !== void 0 ? _ref11 : paddingRight) !== null && _ref10 !== void 0 ? _ref10 : pl) !== null && _ref1 !== void 0 ? _ref1 : pr) !== null && _ref0 !== void 0 ? _ref0 : padding),
1067
+ py: makeScaleHandler((_ref12 = (_ref13 = (_ref14 = (_ref15 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref15 !== void 0 ? _ref15 : paddingBottom) !== null && _ref14 !== void 0 ? _ref14 : pt) !== null && _ref13 !== void 0 ? _ref13 : pb) !== null && _ref12 !== void 0 ? _ref12 : padding),
1068
+ mt: makeScaleHandler((_ref16 = (_ref17 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref17 !== void 0 ? _ref17 : my) !== null && _ref16 !== void 0 ? _ref16 : margin),
1069
+ mr: makeScaleHandler((_ref18 = (_ref19 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref19 !== void 0 ? _ref19 : mx) !== null && _ref18 !== void 0 ? _ref18 : margin),
1070
+ mb: makeScaleHandler((_ref20 = (_ref21 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref21 !== void 0 ? _ref21 : my) !== null && _ref20 !== void 0 ? _ref20 : margin),
1071
+ ml: makeScaleHandler((_ref22 = (_ref23 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref23 !== void 0 ? _ref23 : mx) !== null && _ref22 !== void 0 ? _ref22 : margin),
1072
+ mx: makeScaleHandler((_ref24 = (_ref25 = (_ref26 = (_ref27 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref27 !== void 0 ? _ref27 : marginRight) !== null && _ref26 !== void 0 ? _ref26 : ml) !== null && _ref25 !== void 0 ? _ref25 : mr) !== null && _ref24 !== void 0 ? _ref24 : margin),
1073
+ my: makeScaleHandler((_ref28 = (_ref29 = (_ref30 = (_ref31 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref31 !== void 0 ? _ref31 : marginBottom) !== null && _ref30 !== void 0 ? _ref30 : mt) !== null && _ref29 !== void 0 ? _ref29 : mb) !== null && _ref28 !== void 0 ? _ref28 : margin),
1213
1074
  width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1214
1075
  height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1215
1076
  font: makeScaleHandler(font)
@@ -1225,9 +1086,7 @@ var withScale = function withScale(Render) {
1225
1086
  });
1226
1087
  ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
1227
1088
  return ScaleFC;
1228
- };
1229
-
1230
- var withScale$1 = withScale;
1089
+ }
1231
1090
 
1232
1091
  var useScale = useScale$1;
1233
1092
 
@@ -1240,10 +1099,8 @@ var defaultProps$1 = {
1240
1099
  xl: false,
1241
1100
  className: ''
1242
1101
  };
1243
-
1244
1102
  var getItemLayout = function getItemLayout(val) {
1245
1103
  var display = val === 0 ? 'display: none;' : 'display: inherit;';
1246
-
1247
1104
  if (typeof val === 'number') {
1248
1105
  var width = 100 / 12 * val;
1249
1106
  var ratio = width > 100 ? '100%' : width < 0 ? '0' : "".concat(width, "%");
@@ -1254,7 +1111,6 @@ var getItemLayout = function getItemLayout(val) {
1254
1111
  basis: ratio
1255
1112
  };
1256
1113
  }
1257
-
1258
1114
  return {
1259
1115
  grow: 1,
1260
1116
  display: display,
@@ -1262,26 +1118,28 @@ var getItemLayout = function getItemLayout(val) {
1262
1118
  basis: '0'
1263
1119
  };
1264
1120
  };
1265
-
1266
- function GridBasicItem(_ref) {
1267
- var xs = _ref.xs,
1268
- sm = _ref.sm,
1269
- md = _ref.md,
1270
- lg = _ref.lg,
1271
- xl = _ref.xl,
1272
- justify = _ref.justify,
1273
- direction = _ref.direction,
1274
- alignItems = _ref.alignItems,
1275
- alignContent = _ref.alignContent,
1276
- children = _ref.children,
1277
- className = _ref.className,
1278
- props = _objectWithoutProperties(_ref, _excluded$4);
1279
-
1121
+ var GridBasicItem = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
1122
+ var _ref$xs = _ref.xs,
1123
+ xs = _ref$xs === void 0 ? defaultProps$1.xs : _ref$xs,
1124
+ _ref$sm = _ref.sm,
1125
+ sm = _ref$sm === void 0 ? defaultProps$1.sm : _ref$sm,
1126
+ _ref$md = _ref.md,
1127
+ md = _ref$md === void 0 ? defaultProps$1.md : _ref$md,
1128
+ _ref$lg = _ref.lg,
1129
+ lg = _ref$lg === void 0 ? defaultProps$1.lg : _ref$lg,
1130
+ _ref$xl = _ref.xl,
1131
+ xl = _ref$xl === void 0 ? defaultProps$1.xl : _ref$xl,
1132
+ justify = _ref.justify,
1133
+ direction = _ref.direction,
1134
+ alignItems = _ref.alignItems,
1135
+ alignContent = _ref.alignContent,
1136
+ children = _ref.children,
1137
+ _ref$className = _ref.className,
1138
+ className = _ref$className === void 0 ? defaultProps$1.className : _ref$className,
1139
+ props = _objectWithoutProperties(_ref, _excluded$4);
1280
1140
  var theme = useTheme();
1281
-
1282
1141
  var _useScale = useScale(),
1283
- SCALES = _useScale.SCALES;
1284
-
1142
+ SCALES = _useScale.SCALES;
1285
1143
  var classes = React.useMemo(function () {
1286
1144
  var aligns = {
1287
1145
  justify: justify,
@@ -1309,86 +1167,81 @@ function GridBasicItem(_ref) {
1309
1167
  xl: getItemLayout(xl)
1310
1168
  };
1311
1169
  }, [xs, sm, md, lg, xl]);
1312
- return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
1313
- className: styledJsx_cjs.style.dynamic([["568430467", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || useClasses$1('item', classes, className) || "")
1314
- }), children, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1315
- id: "568430467",
1170
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends({
1171
+ ref: ref
1172
+ }, props, {
1173
+ className: _JSXStyle__default["default"].dynamic([["2387327819", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || useClasses$1('item', classes, className) || "")
1174
+ }), children, /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1175
+ id: "2387327819",
1316
1176
  dynamic: [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]
1317
1177
  }, ".item.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(1, 'inherit'), ";height:").concat(SCALES.height(1, 'auto'), ";}.justify.__jsx-style-dynamic-selector{-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";}.direction.__jsx-style-dynamic-selector{-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";}.alignContent.__jsx-style-dynamic-selector{-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";}.alignItems.__jsx-style-dynamic-selector{-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";}.xs.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xs.grow, ";-webkit-flex-grow:").concat(layout.xs.grow, ";-ms-flex-positive:").concat(layout.xs.grow, ";flex-grow:").concat(layout.xs.grow, ";max-width:").concat(layout.xs.width, ";-webkit-flex-basis:").concat(layout.xs.basis, ";-ms-flex-preferred-size:").concat(layout.xs.basis, ";flex-basis:").concat(layout.xs.basis, ";").concat(layout.xs.display, ";}@media only screen and (min-width:").concat(theme.breakpoints.sm.min, "){.sm.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.sm.grow, ";-webkit-flex-grow:").concat(layout.sm.grow, ";-ms-flex-positive:").concat(layout.sm.grow, ";flex-grow:").concat(layout.sm.grow, ";max-width:").concat(layout.sm.width, ";-webkit-flex-basis:").concat(layout.sm.basis, ";-ms-flex-preferred-size:").concat(layout.sm.basis, ";flex-basis:").concat(layout.sm.basis, ";").concat(layout.sm.display, ";}}@media only screen and (min-width:").concat(theme.breakpoints.md.min, "){.md.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.md.grow, ";-webkit-flex-grow:").concat(layout.md.grow, ";-ms-flex-positive:").concat(layout.md.grow, ";flex-grow:").concat(layout.md.grow, ";max-width:").concat(layout.md.width, ";-webkit-flex-basis:").concat(layout.md.basis, ";-ms-flex-preferred-size:").concat(layout.md.basis, ";flex-basis:").concat(layout.md.basis, ";").concat(layout.md.display, ";}}@media only screen and (min-width:").concat(theme.breakpoints.lg.min, "){.lg.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.lg.grow, ";-webkit-flex-grow:").concat(layout.lg.grow, ";-ms-flex-positive:").concat(layout.lg.grow, ";flex-grow:").concat(layout.lg.grow, ";max-width:").concat(layout.lg.width, ";-webkit-flex-basis:").concat(layout.lg.basis, ";-ms-flex-preferred-size:").concat(layout.lg.basis, ";flex-basis:").concat(layout.lg.basis, ";").concat(layout.lg.display, ";}}@media only screen and (min-width:").concat(theme.breakpoints.xl.min, "){.xl.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xl.grow, ";-webkit-flex-grow:").concat(layout.xl.grow, ";-ms-flex-positive:").concat(layout.xl.grow, ";flex-grow:").concat(layout.xl.grow, ";max-width:").concat(layout.xl.width, ";-webkit-flex-basis:").concat(layout.xl.basis, ";-ms-flex-preferred-size:").concat(layout.xl.basis, ";flex-basis:").concat(layout.xl.basis, ";").concat(layout.xl.display, ";}}")));
1318
- }
1319
-
1320
- GridBasicItem.defaultProps = defaultProps$1;
1178
+ });
1321
1179
  GridBasicItem.displayName = 'BolioUIGridBasicItem';
1180
+ var GridBasicItem$1 = GridBasicItem;
1322
1181
 
1323
1182
  var _excluded$3 = ["children", "className"];
1324
-
1325
- function GridComponent(_ref) {
1183
+ var GridComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
1326
1184
  var children = _ref.children,
1327
- _ref$className = _ref.className,
1328
- className = _ref$className === void 0 ? '' : _ref$className,
1329
- props = _objectWithoutProperties(_ref, _excluded$3);
1330
-
1185
+ _ref$className = _ref.className,
1186
+ className = _ref$className === void 0 ? '' : _ref$className,
1187
+ props = _objectWithoutProperties(_ref, _excluded$3);
1331
1188
  var _useScale = useScale(),
1332
- SCALES = _useScale.SCALES;
1333
-
1189
+ SCALES = _useScale.SCALES;
1334
1190
  var gridGapUnit = 'var(--grid-gap-unit)';
1335
1191
  var _styles$className = {
1336
- styles: /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1337
- id: "2935018504",
1338
- dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, gridGapUnit), SCALES.pr(0, gridGapUnit), SCALES.pb(0, gridGapUnit), SCALES.pl(0, gridGapUnit)]
1339
- }, "div.__jsx-style-dynamic-selector{margin:".concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";box-sizing:border-box;padding:").concat(SCALES.pt(0, gridGapUnit), " ").concat(SCALES.pr(0, gridGapUnit), " ").concat(SCALES.pb(0, gridGapUnit), " ").concat(SCALES.pl(0, gridGapUnit), ";}")),
1340
- className: styledJsx_cjs.style.dynamic([["2935018504", [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, gridGapUnit), SCALES.pr(0, gridGapUnit), SCALES.pb(0, gridGapUnit), SCALES.pl(0, gridGapUnit)]]])
1341
- },
1342
- resolveClassName = _styles$className.className,
1343
- styles = _styles$className.styles;
1192
+ styles: /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1193
+ id: "2935018504",
1194
+ dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, gridGapUnit), SCALES.pr(0, gridGapUnit), SCALES.pb(0, gridGapUnit), SCALES.pl(0, gridGapUnit)]
1195
+ }, "div.__jsx-style-dynamic-selector{margin:".concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";box-sizing:border-box;padding:").concat(SCALES.pt(0, gridGapUnit), " ").concat(SCALES.pr(0, gridGapUnit), " ").concat(SCALES.pb(0, gridGapUnit), " ").concat(SCALES.pl(0, gridGapUnit), ";}")),
1196
+ className: _JSXStyle__default["default"].dynamic([["2935018504", [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, gridGapUnit), SCALES.pr(0, gridGapUnit), SCALES.pb(0, gridGapUnit), SCALES.pl(0, gridGapUnit)]]])
1197
+ },
1198
+ resolveClassName = _styles$className.className,
1199
+ styles = _styles$className.styles;
1344
1200
  var classes = useClasses$1(resolveClassName, className);
1345
- return /*#__PURE__*/React__default["default"].createElement(GridBasicItem, _extends({
1201
+ return /*#__PURE__*/React__default["default"].createElement(GridBasicItem$1, _extends({
1202
+ ref: ref,
1346
1203
  className: classes
1347
1204
  }, props), children, styles);
1348
- }
1349
-
1205
+ });
1350
1206
  GridComponent.displayName = 'BolioUIGrid';
1351
- var Grid = withScale$1(GridComponent);
1207
+ var Grid = withScale(GridComponent);
1352
1208
  var Grid$1 = Grid;
1353
1209
 
1354
1210
  var _excluded$2 = ["gap", "wrap", "children", "className"];
1355
-
1356
- function GridContainerComponent(_ref) {
1211
+ var GridContainerComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
1357
1212
  var _ref$gap = _ref.gap,
1358
- gap = _ref$gap === void 0 ? 0 : _ref$gap,
1359
- _ref$wrap = _ref.wrap,
1360
- wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
1361
- children = _ref.children,
1362
- _ref$className = _ref.className,
1363
- className = _ref$className === void 0 ? '' : _ref$className,
1364
- props = _objectWithoutProperties(_ref, _excluded$2);
1365
-
1213
+ gap = _ref$gap === void 0 ? 0 : _ref$gap,
1214
+ _ref$wrap = _ref.wrap,
1215
+ wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
1216
+ children = _ref.children,
1217
+ _ref$className = _ref.className,
1218
+ className = _ref$className === void 0 ? '' : _ref$className,
1219
+ props = _objectWithoutProperties(_ref, _excluded$2);
1366
1220
  var _useScale = useScale(),
1367
- unit = _useScale.unit,
1368
- SCALES = _useScale.SCALES;
1369
-
1221
+ unit = _useScale.unit,
1222
+ SCALES = _useScale.SCALES;
1370
1223
  var gapUnit = React.useMemo(function () {
1371
1224
  return "calc(".concat(gap, " * ").concat(unit, " * 1/3)");
1372
1225
  }, [gap, unit]);
1373
1226
  var gridConMargin = 'calc(-1 * var(--grid-gap-unit))';
1374
1227
  var gridConWidth = 'calc(100% + var(--grid-gap-unit) * 2)';
1375
1228
  var _styles$className = {
1376
- styles: /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1377
- id: "1072081127",
1378
- dynamic: [gapUnit, gridConMargin, gridConWidth, wrap, SCALES.width(1, gridConWidth), SCALES.mt(0, gridConMargin), SCALES.mr(0, gridConMargin), SCALES.mb(0, gridConMargin), SCALES.ml(0, gridConMargin)]
1379
- }, "div.__jsx-style-dynamic-selector{--grid-gap-unit:".concat(gapUnit, ";--grid-container-margin:").concat(gridConMargin, ";--grid-container-width:").concat(gridConWidth, ";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";box-sizing:border-box;}")),
1380
- className: styledJsx_cjs.style.dynamic([["1072081127", [gapUnit, gridConMargin, gridConWidth, wrap, SCALES.width(1, gridConWidth), SCALES.mt(0, gridConMargin), SCALES.mr(0, gridConMargin), SCALES.mb(0, gridConMargin), SCALES.ml(0, gridConMargin)]]])
1381
- },
1382
- resolveClassName = _styles$className.className,
1383
- styles = _styles$className.styles;
1229
+ styles: /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1230
+ id: "1260828266",
1231
+ dynamic: [gapUnit, gridConMargin, gridConWidth, wrap, SCALES.width(1, gridConWidth), SCALES.mt(0, gridConMargin), SCALES.mr(0, gridConMargin), SCALES.mb(0, gridConMargin), SCALES.ml(0, gridConMargin)]
1232
+ }, "div.__jsx-style-dynamic-selector{--grid-gap-unit:".concat(gapUnit, ";--grid-container-margin:").concat(gridConMargin, ";--grid-container-width:").concat(gridConWidth, ";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";box-sizing:border-box;}")),
1233
+ className: _JSXStyle__default["default"].dynamic([["1260828266", [gapUnit, gridConMargin, gridConWidth, wrap, SCALES.width(1, gridConWidth), SCALES.mt(0, gridConMargin), SCALES.mr(0, gridConMargin), SCALES.mb(0, gridConMargin), SCALES.ml(0, gridConMargin)]]])
1234
+ },
1235
+ resolveClassName = _styles$className.className,
1236
+ styles = _styles$className.styles;
1384
1237
  var classes = useClasses$1(resolveClassName, className);
1385
- return /*#__PURE__*/React__default["default"].createElement(GridBasicItem, _extends({
1238
+ return /*#__PURE__*/React__default["default"].createElement(GridBasicItem$1, _extends({
1239
+ ref: ref,
1386
1240
  className: classes
1387
1241
  }, props), children, styles);
1388
- }
1389
-
1242
+ });
1390
1243
  GridContainerComponent.displayName = 'BolioUIGridContainer';
1391
- var GridContainer = withScale$1(GridContainerComponent);
1244
+ var GridContainer = withScale(GridContainerComponent);
1392
1245
  var GridContainer$1 = GridContainer;
1393
1246
 
1394
1247
  Grid$1.Container = GridContainer$1;
@@ -1396,17 +1249,15 @@ Grid$1.Container = GridContainer$1;
1396
1249
  function SelectIconClear(_ref) {
1397
1250
  var onClick = _ref.onClick;
1398
1251
  var theme = useTheme();
1399
-
1400
1252
  var clickHandler = function clickHandler(event) {
1401
1253
  event.preventDefault();
1402
1254
  event.stopPropagation();
1403
1255
  event.nativeEvent.stopImmediatePropagation();
1404
1256
  onClick && onClick(event);
1405
1257
  };
1406
-
1407
1258
  return /*#__PURE__*/React__default["default"].createElement("div", {
1408
1259
  onClick: clickHandler,
1409
- className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]]) + " " + "clear-icon"
1260
+ className: _JSXStyle__default["default"].dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]]) + " " + "clear-icon"
1410
1261
  }, /*#__PURE__*/React__default["default"].createElement("svg", {
1411
1262
  viewBox: "0 0 24 24",
1412
1263
  stroke: "currentColor",
@@ -1415,37 +1266,35 @@ function SelectIconClear(_ref) {
1415
1266
  strokeLinejoin: "round",
1416
1267
  fill: "none",
1417
1268
  shapeRendering: "geometricPrecision",
1418
- className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
1269
+ className: _JSXStyle__default["default"].dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
1419
1270
  }, /*#__PURE__*/React__default["default"].createElement("path", {
1420
1271
  d: "M18 6L6 18",
1421
- className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
1272
+ className: _JSXStyle__default["default"].dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
1422
1273
  }), /*#__PURE__*/React__default["default"].createElement("path", {
1423
1274
  d: "M6 6l12 12",
1424
- className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
1425
- })), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1275
+ className: _JSXStyle__default["default"].dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
1276
+ })), /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1426
1277
  id: "3218630561",
1427
1278
  dynamic: [theme.palette.accents_5, theme.palette.foreground]
1428
1279
  }, ".clear-icon.__jsx-style-dynamic-selector{padding:0 0 0 0.5em;margin:0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;cursor:pointer;box-sizing:border-box;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;color:".concat(theme.palette.accents_5, ";visibility:visible;opacity:1;}.clear-icon.__jsx-style-dynamic-selector:hover{color:").concat(theme.palette.foreground, ";}svg.__jsx-style-dynamic-selector{color:currentColor;width:1em;height:1em;}")));
1429
1280
  }
1430
-
1431
1281
  var MemoSelectIconClear = /*#__PURE__*/React__default["default"].memo(SelectIconClear);
1432
1282
  var SelectClearIcon = MemoSelectIconClear;
1433
1283
 
1434
1284
  function SelectMultipleValue(_ref) {
1435
1285
  var disabled = _ref.disabled,
1436
- onClear = _ref.onClear,
1437
- children = _ref.children;
1286
+ onClear = _ref.onClear,
1287
+ children = _ref.children;
1438
1288
  var theme = useTheme();
1439
1289
  return /*#__PURE__*/React__default["default"].createElement(Grid$1, null, /*#__PURE__*/React__default["default"].createElement("div", {
1440
- className: styledJsx_cjs.style.dynamic([["81854150", [theme.layout.radius, theme.palette.accents_3, disabled ? theme.palette.accents_5 : theme.palette.accents_7]]]) + " " + "item"
1290
+ className: _JSXStyle__default["default"].dynamic([["81854150", [theme.layout.radius, theme.palette.accents_3, disabled ? theme.palette.accents_5 : theme.palette.accents_7]]]) + " " + "item"
1441
1291
  }, children, !!onClear && /*#__PURE__*/React__default["default"].createElement(SelectClearIcon, {
1442
1292
  onClick: onClear
1443
- })), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1293
+ })), /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1444
1294
  id: "81854150",
1445
1295
  dynamic: [theme.layout.radius, theme.palette.accents_3, disabled ? theme.palette.accents_5 : theme.palette.accents_7]
1446
1296
  }, ".item.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;justify-items:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0 0.5em;font-size:var(--select-font-size);height:calc(var(--select-font-size) * 2);border-radius:".concat(theme.layout.radius, ";background-color:").concat(theme.palette.accents_3, ";color:").concat(disabled ? theme.palette.accents_5 : theme.palette.accents_7, ";}.item.__jsx-style-dynamic-selector>div:not(.clear-icon),.item.__jsx-style-dynamic-selector>div:not(.clear-icon):hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}")));
1447
1297
  }
1448
-
1449
1298
  SelectMultipleValue.displayName = 'BolioUISelectMultipleValue';
1450
1299
 
1451
1300
  var getColors = function getColors(palette, status, disabled) {
@@ -1513,21 +1362,22 @@ var getColors = function getColors(palette, status, disabled) {
1513
1362
 
1514
1363
  var Ellipsis = function Ellipsis(_ref) {
1515
1364
  var children = _ref.children,
1516
- height = _ref.height;
1365
+ height = _ref.height;
1517
1366
  return /*#__PURE__*/React__default["default"].createElement("span", {
1518
- className: styledJsx_cjs.style.dynamic([["822089635", [height]]])
1519
- }, children, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1367
+ className: _JSXStyle__default["default"].dynamic([["822089635", [height]]])
1368
+ }, children, /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1520
1369
  id: "822089635",
1521
1370
  dynamic: [height]
1522
1371
  }, "span.__jsx-style-dynamic-selector{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:".concat(height, ";min-width:0;}")));
1523
1372
  };
1524
-
1525
1373
  var Ellipsis$1 = /*#__PURE__*/React__default["default"].memo(Ellipsis);
1526
1374
 
1527
1375
  var SelectInput = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, inputRef) {
1528
1376
  var visible = _ref.visible,
1529
- onBlur = _ref.onBlur,
1530
- onFocus = _ref.onFocus;
1377
+ onBlur = _ref.onBlur,
1378
+ onFocus = _ref.onFocus,
1379
+ ariaLabel = _ref.ariaLabel,
1380
+ ariaLabelledby = _ref.ariaLabelledby;
1531
1381
  var ref = React.useRef(null);
1532
1382
  React.useImperativeHandle(inputRef, function () {
1533
1383
  return ref.current;
@@ -1535,7 +1385,6 @@ var SelectInput = /*#__PURE__*/React__default["default"].forwardRef(function (_r
1535
1385
  React.useEffect(function () {
1536
1386
  if (visible) {
1537
1387
  var _ref$current;
1538
-
1539
1388
  (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.focus();
1540
1389
  }
1541
1390
  }, [visible]);
@@ -1544,20 +1393,22 @@ var SelectInput = /*#__PURE__*/React__default["default"].forwardRef(function (_r
1544
1393
  type: "search",
1545
1394
  role: "combobox",
1546
1395
  "aria-haspopup": "listbox",
1396
+ "aria-label": ariaLabel,
1397
+ "aria-labelledby": ariaLabelledby,
1547
1398
  readOnly: true,
1548
1399
  unselectable: "on",
1549
1400
  "aria-expanded": visible,
1550
1401
  onBlur: onBlur,
1551
1402
  onFocus: onFocus,
1552
1403
  className: "jsx-2813108835"
1553
- }), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1404
+ }), /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1554
1405
  id: "2813108835"
1555
1406
  }, "input.jsx-2813108835{position:fixed;top:-10000px;left:-10000px;opacity:0;z-index:-1;width:0;height:0;padding:0;font-size:0;border:none;}"));
1556
1407
  });
1557
1408
  SelectInput.displayName = 'BolioUISelectInput';
1558
1409
  var SelectInput$1 = SelectInput;
1559
1410
 
1560
- var _excluded$1 = ["children", "type", "disabled", "initialValue", "value", "icon", "onChange", "pure", "multiple", "clearable", "placeholder", "className", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "getPopupContainer", "onDropdownVisibleChange"];
1411
+ var _excluded$1 = ["children", "type", "disabled", "initialValue", "value", "icon", "onChange", "pure", "multiple", "clearable", "placeholder", "className", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "getPopupContainer", "onDropdownVisibleChange", "aria-label", "aria-labelledby"];
1561
1412
  var defaultProps = {
1562
1413
  disabled: false,
1563
1414
  type: 'default',
@@ -1571,62 +1422,57 @@ var defaultProps = {
1571
1422
  };
1572
1423
  var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, selectRef) {
1573
1424
  var children = _ref.children,
1574
- _ref$type = _ref.type,
1575
- type = _ref$type === void 0 ? 'default' : _ref$type,
1576
- _ref$disabled = _ref.disabled,
1577
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1578
- init = _ref.initialValue,
1579
- customValue = _ref.value,
1580
- _ref$icon = _ref.icon,
1581
- Icon = _ref$icon === void 0 ? SelectIcon$1 : _ref$icon,
1582
- onChange = _ref.onChange,
1583
- _ref$pure = _ref.pure,
1584
- pure = _ref$pure === void 0 ? false : _ref$pure,
1585
- _ref$multiple = _ref.multiple,
1586
- multiple = _ref$multiple === void 0 ? false : _ref$multiple,
1587
- _ref$clearable = _ref.clearable,
1588
- clearable = _ref$clearable === void 0 ? true : _ref$clearable,
1589
- placeholder = _ref.placeholder,
1590
- _ref$className = _ref.className,
1591
- className = _ref$className === void 0 ? '' : _ref$className,
1592
- dropdownClassName = _ref.dropdownClassName,
1593
- dropdownStyle = _ref.dropdownStyle,
1594
- _ref$disableMatchWidt = _ref.disableMatchWidth,
1595
- disableMatchWidth = _ref$disableMatchWidt === void 0 ? false : _ref$disableMatchWidt,
1596
- getPopupContainer = _ref.getPopupContainer,
1597
- _ref$onDropdownVisibl = _ref.onDropdownVisibleChange,
1598
- onDropdownVisibleChange = _ref$onDropdownVisibl === void 0 ? function () {} : _ref$onDropdownVisibl,
1599
- props = _objectWithoutProperties(_ref, _excluded$1);
1600
-
1425
+ _ref$type = _ref.type,
1426
+ type = _ref$type === void 0 ? 'default' : _ref$type,
1427
+ _ref$disabled = _ref.disabled,
1428
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1429
+ init = _ref.initialValue,
1430
+ customValue = _ref.value,
1431
+ _ref$icon = _ref.icon,
1432
+ Icon = _ref$icon === void 0 ? SelectIcon$1 : _ref$icon,
1433
+ onChange = _ref.onChange,
1434
+ _ref$pure = _ref.pure,
1435
+ pure = _ref$pure === void 0 ? false : _ref$pure,
1436
+ _ref$multiple = _ref.multiple,
1437
+ multiple = _ref$multiple === void 0 ? false : _ref$multiple,
1438
+ _ref$clearable = _ref.clearable,
1439
+ clearable = _ref$clearable === void 0 ? true : _ref$clearable,
1440
+ placeholder = _ref.placeholder,
1441
+ _ref$className = _ref.className,
1442
+ className = _ref$className === void 0 ? '' : _ref$className,
1443
+ dropdownClassName = _ref.dropdownClassName,
1444
+ dropdownStyle = _ref.dropdownStyle,
1445
+ _ref$disableMatchWidt = _ref.disableMatchWidth,
1446
+ disableMatchWidth = _ref$disableMatchWidt === void 0 ? false : _ref$disableMatchWidt,
1447
+ getPopupContainer = _ref.getPopupContainer,
1448
+ _ref$onDropdownVisibl = _ref.onDropdownVisibleChange,
1449
+ onDropdownVisibleChange = _ref$onDropdownVisibl === void 0 ? function () {} : _ref$onDropdownVisibl,
1450
+ ariaLabel = _ref['aria-label'],
1451
+ ariaLabelledby = _ref['aria-labelledby'],
1452
+ props = _objectWithoutProperties(_ref, _excluded$1);
1601
1453
  var theme = useTheme();
1602
-
1603
1454
  var _useScale = useScale(),
1604
- SCALES = _useScale.SCALES;
1605
-
1455
+ SCALES = _useScale.SCALES;
1606
1456
  var ref = React.useRef(null);
1607
1457
  var inputRef = React.useRef(null);
1608
1458
  var dropdownRef = React.useRef(null);
1609
-
1610
1459
  var _useState = React.useState(false),
1611
- _useState2 = _slicedToArray(_useState, 2),
1612
- visible = _useState2[0],
1613
- setVisible = _useState2[1];
1614
-
1460
+ _useState2 = _slicedToArray(_useState, 2),
1461
+ visible = _useState2[0],
1462
+ setVisible = _useState2[1];
1615
1463
  var _useState3 = React.useState(false),
1616
- _useState4 = _slicedToArray(_useState3, 2),
1617
- selectFocus = _useState4[0],
1618
- setSelectFocus = _useState4[1];
1619
-
1464
+ _useState4 = _slicedToArray(_useState3, 2),
1465
+ selectFocus = _useState4[0],
1466
+ setSelectFocus = _useState4[1];
1620
1467
  var _useCurrentState = useCurrentState$1(function () {
1621
- if (!multiple) return init;
1622
- if (Array.isArray(init)) return init;
1623
- return typeof init === 'undefined' ? [] : [init];
1624
- }),
1625
- _useCurrentState2 = _slicedToArray(_useCurrentState, 3),
1626
- value = _useCurrentState2[0],
1627
- setValue = _useCurrentState2[1],
1628
- valueRef = _useCurrentState2[2];
1629
-
1468
+ if (!multiple) return init;
1469
+ if (Array.isArray(init)) return init;
1470
+ return typeof init === 'undefined' ? [] : [init];
1471
+ }),
1472
+ _useCurrentState2 = _slicedToArray(_useCurrentState, 3),
1473
+ value = _useCurrentState2[0],
1474
+ setValue = _useCurrentState2[1],
1475
+ valueRef = _useCurrentState2[2];
1630
1476
  var isEmpty = React.useMemo(function () {
1631
1477
  if (!Array.isArray(value)) return !value;
1632
1478
  return value.length === 0;
@@ -1634,12 +1480,10 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1634
1480
  var colors = React.useMemo(function () {
1635
1481
  return getColors(theme.palette, type, disabled);
1636
1482
  }, [theme.palette, type, disabled]);
1637
-
1638
1483
  var updateVisible = function updateVisible(next) {
1639
1484
  onDropdownVisibleChange(next);
1640
1485
  setVisible(next);
1641
1486
  };
1642
-
1643
1487
  var updateValue = function updateValue(next) {
1644
1488
  setValue(function (last) {
1645
1489
  if (!Array.isArray(last)) return next;
@@ -1649,12 +1493,10 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1649
1493
  });
1650
1494
  });
1651
1495
  onChange && onChange(valueRef.current);
1652
-
1653
1496
  if (!multiple) {
1654
1497
  updateVisible(false);
1655
1498
  }
1656
1499
  };
1657
-
1658
1500
  var initialValue = React.useMemo(function () {
1659
1501
  return {
1660
1502
  value: value,
@@ -1665,7 +1507,6 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1665
1507
  disableAll: disabled
1666
1508
  };
1667
1509
  }, [visible, disabled, ref, value, multiple]);
1668
-
1669
1510
  var clickHandler = function clickHandler(event) {
1670
1511
  event.stopPropagation();
1671
1512
  event.nativeEvent.stopImmediatePropagation();
@@ -1674,14 +1515,12 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1674
1515
  updateVisible(!visible);
1675
1516
  event.preventDefault();
1676
1517
  };
1677
-
1678
1518
  var mouseDownHandler = function mouseDownHandler(event) {
1679
1519
  /* istanbul ignore next */
1680
1520
  if (visible) {
1681
1521
  event.preventDefault();
1682
1522
  }
1683
1523
  };
1684
-
1685
1524
  React.useEffect(function () {
1686
1525
  if (customValue === undefined) return;
1687
1526
  setValue(customValue);
@@ -1690,26 +1529,22 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1690
1529
  return {
1691
1530
  focus: function focus() {
1692
1531
  var _inputRef$current;
1693
-
1694
1532
  return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
1695
1533
  },
1696
1534
  blur: function blur() {
1697
1535
  var _inputRef$current2;
1698
-
1699
1536
  return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
1700
1537
  },
1701
1538
  scrollTo: function scrollTo(options) {
1702
1539
  var _dropdownRef$current;
1703
-
1704
1540
  return (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.scrollTo(options);
1705
1541
  }
1706
1542
  };
1707
1543
  }, [inputRef, dropdownRef]);
1708
1544
  var selectedChild = React.useMemo(function () {
1709
1545
  var _pickChildByProps = pickChildByProps(children, 'value', value),
1710
- _pickChildByProps2 = _slicedToArray(_pickChildByProps, 2),
1711
- optionChildren = _pickChildByProps2[1];
1712
-
1546
+ _pickChildByProps2 = _slicedToArray(_pickChildByProps, 2),
1547
+ optionChildren = _pickChildByProps2[1];
1713
1548
  return React__default["default"].Children.map(optionChildren, function (child) {
1714
1549
  if (! /*#__PURE__*/React__default["default"].isValidElement(child)) return null;
1715
1550
  var el = /*#__PURE__*/React__default["default"].cloneElement(child, {
@@ -1724,12 +1559,10 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1724
1559
  }, el);
1725
1560
  });
1726
1561
  }, [value, children, multiple]);
1727
-
1728
1562
  var onInputBlur = function onInputBlur() {
1729
1563
  updateVisible(false);
1730
1564
  setSelectFocus(false);
1731
1565
  };
1732
-
1733
1566
  var classes = useClasses$1('select', {
1734
1567
  active: selectFocus || visible,
1735
1568
  multiple: multiple
@@ -1741,20 +1574,22 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1741
1574
  onClick: clickHandler,
1742
1575
  onMouseDown: mouseDownHandler
1743
1576
  }, props, {
1744
- className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + (props && props.className != null && props.className || classes || "")
1577
+ className: _JSXStyle__default["default"].dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + (props && props.className != null && props.className || classes || "")
1745
1578
  }), /*#__PURE__*/React__default["default"].createElement(SelectInput$1, {
1746
1579
  ref: inputRef,
1580
+ ariaLabel: ariaLabel || (typeof placeholder === 'string' ? placeholder : undefined),
1581
+ ariaLabelledby: ariaLabelledby,
1747
1582
  visible: visible,
1748
1583
  onBlur: onInputBlur,
1749
1584
  onFocus: function onFocus() {
1750
1585
  return setSelectFocus(true);
1751
1586
  }
1752
1587
  }), isEmpty && /*#__PURE__*/React__default["default"].createElement("span", {
1753
- className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "value placeholder"
1588
+ className: _JSXStyle__default["default"].dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "value placeholder"
1754
1589
  }, /*#__PURE__*/React__default["default"].createElement(Ellipsis$1, {
1755
1590
  height: "var(--select-height)"
1756
1591
  }, placeholder)), value && !multiple && /*#__PURE__*/React__default["default"].createElement("span", {
1757
- className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "value"
1592
+ className: _JSXStyle__default["default"].dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "value"
1758
1593
  }, selectedChild), value && multiple && /*#__PURE__*/React__default["default"].createElement(Grid$1.Container, {
1759
1594
  gap: 0.5
1760
1595
  }, selectedChild), /*#__PURE__*/React__default["default"].createElement(SelectDropdown$1, {
@@ -1765,47 +1600,42 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1765
1600
  disableMatchWidth: disableMatchWidth,
1766
1601
  getPopupContainer: getPopupContainer
1767
1602
  }, children), !pure && /*#__PURE__*/React__default["default"].createElement("div", {
1768
- className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "icon"
1603
+ className: _JSXStyle__default["default"].dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "icon"
1769
1604
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
1770
- className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]])
1771
- })), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1605
+ className: _JSXStyle__default["default"].dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]])
1606
+ })), /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1772
1607
  id: "12953029",
1773
1608
  dynamic: [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]
1774
1609
  }, ".select.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;position:relative;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";max-width:90vw;overflow:hidden;-webkit-transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;border:1px solid ").concat(colors.borderColor, ";border-radius:").concat(theme.layout.radius, ";background-color:").concat(colors.bgColor, ";--select-font-size:").concat(SCALES.font(0.875), ";--select-height:").concat(SCALES.height(2.25), ";min-width:11.5em;width:").concat(SCALES.width(1, 'initial'), ";height:var(--select-height);padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.multiple.__jsx-style-dynamic-selector{height:auto;min-height:var(--select-height);padding:").concat(SCALES.pt(0.334), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0.334), " ").concat(SCALES.pl(0.667), ";}.select.active.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover{border-color:").concat(colors.hoverBorder, ";background-color:").concat(colors.hoverBgColor, ";}.select.active.icon.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover .icon.__jsx-style-dynamic-selector{color:").concat(colors.color, ";}.value.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0;margin-right:1.25em;font-size:var(--select-font-size);color:").concat(colors.color, ";width:calc(100% - 1.25em);}.value.__jsx-style-dynamic-selector>div,.value.__jsx-style-dynamic-selector>div:hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}.placeholder.__jsx-style-dynamic-selector{color:").concat(colors.color, ";font-size:").concat(SCALES.font(0.775), ";}.icon.__jsx-style-dynamic-selector{position:absolute;right:").concat(theme.layout.gapQuarter, ";font-size:var(--select-font-size);top:50%;bottom:0;-webkit-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);-ms-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);pointer-events:none;-webkit-transition:-webkit-transform 200ms ease;-webkit-transition:transform 200ms ease;transition:transform 200ms ease;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:").concat(colors.color, ";}"))));
1775
1610
  });
1776
1611
  SelectComponent.defaultProps = defaultProps;
1777
1612
  SelectComponent.displayName = 'BolioUISelect';
1778
- var Select = withScale$1(SelectComponent);
1613
+ var Select = withScale(SelectComponent);
1779
1614
  var Select$1 = Select;
1780
1615
 
1781
1616
  var _excluded = ["value", "className", "children", "disabled", "divider", "label", "preventAllEvents"];
1782
-
1783
1617
  function SelectOptionComponent(_ref) {
1784
1618
  var _ref$value = _ref.value,
1785
- identValue = _ref$value === void 0 ? '' : _ref$value,
1786
- _ref$className = _ref.className,
1787
- className = _ref$className === void 0 ? '' : _ref$className,
1788
- children = _ref.children,
1789
- _ref$disabled = _ref.disabled,
1790
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1791
- _ref$divider = _ref.divider,
1792
- divider = _ref$divider === void 0 ? false : _ref$divider,
1793
- _ref$label = _ref.label,
1794
- label = _ref$label === void 0 ? false : _ref$label,
1795
- _ref$preventAllEvents = _ref.preventAllEvents,
1796
- preventAllEvents = _ref$preventAllEvents === void 0 ? false : _ref$preventAllEvents,
1797
- props = _objectWithoutProperties(_ref, _excluded);
1798
-
1619
+ identValue = _ref$value === void 0 ? '' : _ref$value,
1620
+ _ref$className = _ref.className,
1621
+ className = _ref$className === void 0 ? '' : _ref$className,
1622
+ children = _ref.children,
1623
+ _ref$disabled = _ref.disabled,
1624
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1625
+ _ref$divider = _ref.divider,
1626
+ divider = _ref$divider === void 0 ? false : _ref$divider,
1627
+ _ref$label = _ref.label,
1628
+ label = _ref$label === void 0 ? false : _ref$label,
1629
+ _ref$preventAllEvents = _ref.preventAllEvents,
1630
+ preventAllEvents = _ref$preventAllEvents === void 0 ? false : _ref$preventAllEvents,
1631
+ props = _objectWithoutProperties(_ref, _excluded);
1799
1632
  var theme = useTheme();
1800
-
1801
1633
  var _useScale = useScale(),
1802
- SCALES = _useScale.SCALES;
1803
-
1634
+ SCALES = _useScale.SCALES;
1804
1635
  var _useSelectContext = useSelectContext(),
1805
- updateValue = _useSelectContext.updateValue,
1806
- value = _useSelectContext.value,
1807
- disableAll = _useSelectContext.disableAll;
1808
-
1636
+ updateValue = _useSelectContext.updateValue,
1637
+ value = _useSelectContext.value,
1638
+ disableAll = _useSelectContext.disableAll;
1809
1639
  var isDisabled = React.useMemo(function () {
1810
1640
  return disabled || disableAll;
1811
1641
  }, [disabled, disableAll]);
@@ -1816,19 +1646,15 @@ function SelectOptionComponent(_ref) {
1816
1646
  divider: divider,
1817
1647
  label: label
1818
1648
  }, className);
1819
-
1820
1649
  if (!isLabel && identValue === undefined) {
1821
1650
  // eslint-disable-next-line react-hooks/rules-of-hooks
1822
1651
  useWarning$1('The props "value" is required.', 'Select Option');
1823
1652
  }
1824
-
1825
1653
  var selected = React.useMemo(function () {
1826
1654
  if (!value) return false;
1827
-
1828
1655
  if (typeof value === 'string') {
1829
1656
  return identValue === value;
1830
1657
  }
1831
-
1832
1658
  return value.includes("".concat(identValue));
1833
1659
  }, [identValue, value]);
1834
1660
  var bgColor = React.useMemo(function () {
@@ -1843,7 +1669,6 @@ function SelectOptionComponent(_ref) {
1843
1669
  if (isDisabled) return theme.palette.accents_4;
1844
1670
  return selected ? theme.palette.foreground : theme.palette.accents_5;
1845
1671
  }, [selected, isDisabled, theme.palette]);
1846
-
1847
1672
  var clickHandler = function clickHandler(event) {
1848
1673
  if (preventAllEvents) return;
1849
1674
  event.stopPropagation();
@@ -1852,21 +1677,19 @@ function SelectOptionComponent(_ref) {
1852
1677
  if (isDisabled || isLabel) return;
1853
1678
  updateValue && updateValue(identValue);
1854
1679
  };
1855
-
1856
1680
  return /*#__PURE__*/React__default["default"].createElement("div", _extends({
1857
1681
  onClick: clickHandler
1858
1682
  }, props, {
1859
- className: styledJsx_cjs.style.dynamic([["345093284", [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme.palette.accents_7, theme.palette.accents_3, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme.palette.accents_7, theme.palette.accents_3, SCALES.font(0.875), SCALES.width(1, '100%')]]]) + " " + (props && props.className != null && props.className || classes || "")
1683
+ className: _JSXStyle__default["default"].dynamic([["345093284", [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme.palette.accents_7, theme.palette.accents_3, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme.palette.accents_7, theme.palette.accents_3, SCALES.font(0.875), SCALES.width(1, '100%')]]]) + " " + (props && props.className != null && props.className || classes || "")
1860
1684
  }), /*#__PURE__*/React__default["default"].createElement(Ellipsis$1, {
1861
1685
  height: SCALES.height(2.25)
1862
- }, children), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1686
+ }, children), /*#__PURE__*/React__default["default"].createElement(_JSXStyle__default["default"], {
1863
1687
  id: "345093284",
1864
1688
  dynamic: [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme.palette.accents_7, theme.palette.accents_3, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme.palette.accents_7, theme.palette.accents_3, SCALES.font(0.875), SCALES.width(1, '100%')]
1865
1689
  }, ".option.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;max-width:100%;box-sizing:border-box;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:normal;background-color:".concat(bgColor, ";color:").concat(color, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;cursor:").concat(isDisabled ? 'not-allowed' : 'pointer', ";-webkit-transition:background 0.2s ease 0s,border-color 0.2s ease 0s;transition:background 0.2s ease 0s,border-color 0.2s ease 0s;--select-font-size:").concat(SCALES.font(0.75), ";font-size:var(--select-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(2.25), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.667), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.option.__jsx-style-dynamic-selector:hover{background-color:").concat(hoverBgColor, ";color:").concat(theme.palette.accents_7, ";}.divider.__jsx-style-dynamic-selector{line-height:0;overflow:hidden;border-top:1px solid ").concat(theme.palette.accents_3, ";width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0.5), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0.5), " ").concat(SCALES.ml(0), ";}.label.__jsx-style-dynamic-selector{color:").concat(theme.palette.accents_7, ";border-bottom:1px solid ").concat(theme.palette.accents_3, ";text-transform:capitalize;cursor:default;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, '100%'), ";font-weight:500;}")));
1866
1690
  }
1867
-
1868
1691
  SelectOptionComponent.displayName = 'BolioUISelectOption';
1869
- var SelectOption = withScale$1(SelectOptionComponent);
1692
+ var SelectOption = withScale(SelectOptionComponent);
1870
1693
  var SelectOption$1 = SelectOption;
1871
1694
 
1872
1695
  Select$1.Option = SelectOption$1;