welcome-ui 1.0.0-beta.3 → 1.0.0-beta.4

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 (405) hide show
  1. package/dist/AXB53BZF-BxNazDnS.mjs +25 -0
  2. package/dist/AXB53BZF-KWM2jKTz.js +1 -0
  3. package/dist/Accordion.js +16 -30
  4. package/dist/Accordion.mjs +27 -515
  5. package/dist/Alert.js +37 -1
  6. package/dist/Alert.mjs +118 -5
  7. package/dist/AspectRatio.mjs +7 -7
  8. package/dist/Avatar.js +3 -3
  9. package/dist/Avatar.mjs +16 -15
  10. package/dist/BYC7LY2E-BAjGN7k_.mjs +1074 -0
  11. package/dist/BYC7LY2E-BkAEL2VD.js +1 -0
  12. package/dist/Badge.js +3 -3
  13. package/dist/Badge.mjs +10 -10
  14. package/dist/Breadcrumb.js +1 -54
  15. package/dist/Breadcrumb.mjs +7 -437
  16. package/dist/Button.js +78 -0
  17. package/dist/Button.mjs +136 -0
  18. package/dist/ButtonGroup.js +32 -0
  19. package/dist/ButtonGroup.mjs +51 -0
  20. package/dist/Card.js +17 -0
  21. package/dist/Card.mjs +29 -0
  22. package/dist/Checkbox.js +1 -0
  23. package/dist/Checkbox.mjs +6 -0
  24. package/dist/ClearButton.js +14 -0
  25. package/dist/ClearButton.mjs +26 -0
  26. package/dist/CloseButton.js +6 -0
  27. package/dist/CloseButton.mjs +15 -0
  28. package/dist/CustomInput-9aCUiD6o.js +1070 -0
  29. package/dist/CustomInput-CenfXh_H.mjs +7825 -0
  30. package/dist/DatePicker.js +1 -0
  31. package/dist/DatePicker.mjs +108 -0
  32. package/dist/DateTimePicker.js +38 -0
  33. package/dist/DateTimePicker.mjs +109 -0
  34. package/dist/DateTimePickerCommon.js +1 -0
  35. package/dist/DateTimePickerCommon.mjs +14 -0
  36. package/dist/Drawer.js +64 -0
  37. package/dist/Drawer.mjs +267 -0
  38. package/dist/DropdownMenu.js +45 -0
  39. package/dist/DropdownMenu.mjs +776 -0
  40. package/dist/Field.js +72 -0
  41. package/dist/Field.mjs +177 -0
  42. package/dist/FieldGroup.js +13 -0
  43. package/dist/FieldGroup.mjs +26 -0
  44. package/dist/FileDrop.js +46 -0
  45. package/dist/FileDrop.mjs +2325 -0
  46. package/dist/FileUpload.js +3 -0
  47. package/dist/FileUpload.mjs +88 -0
  48. package/dist/Grid.js +1 -0
  49. package/dist/Grid.mjs +57 -0
  50. package/dist/Hint.js +8 -0
  51. package/dist/Hint.mjs +22 -0
  52. package/dist/ITI7HKP4-BPa8qpnl.js +1 -0
  53. package/dist/ITI7HKP4-Couz1Z73.mjs +473 -0
  54. package/dist/Icon.js +17 -0
  55. package/dist/Icon.mjs +51 -0
  56. package/dist/IconFont.js +17 -0
  57. package/dist/IconFont.mjs +348 -0
  58. package/dist/InputText.js +8 -0
  59. package/dist/InputText.mjs +81 -0
  60. package/dist/JC64G2H7-CQsqXPS_.mjs +965 -0
  61. package/dist/JC64G2H7-YkBMNrtl.js +1 -0
  62. package/dist/KUU7WJ55-DN8gk6_R.js +1 -0
  63. package/dist/KUU7WJ55-bC4FU_j7.mjs +61 -0
  64. package/dist/LVA2YJMS-B2HZjIhJ.js +14 -0
  65. package/dist/LVA2YJMS-Dm5ieEMw.mjs +1479 -0
  66. package/dist/Label.js +35 -0
  67. package/dist/Label.mjs +78 -0
  68. package/dist/Link.js +43 -0
  69. package/dist/Link.mjs +77 -0
  70. package/dist/Loader.js +30 -0
  71. package/dist/Loader.mjs +48 -0
  72. package/dist/Logo.js +1 -0
  73. package/dist/Logo.mjs +8 -0
  74. package/dist/MTZPJQMC-5Xg78Uyy.js +1 -0
  75. package/dist/MTZPJQMC-DZ3zg4be.mjs +13 -0
  76. package/dist/Modal.js +181 -0
  77. package/dist/Modal.mjs +365 -0
  78. package/dist/NLEBE274-DvH3XTTw.js +1 -0
  79. package/dist/NLEBE274-FThuwZH_.mjs +84 -0
  80. package/dist/P2CTZE2T-5jxBu6ix.mjs +297 -0
  81. package/dist/P2CTZE2T-q8vyaGc0.js +1 -0
  82. package/dist/P4IRICAX-DF0_vmod.mjs +37 -0
  83. package/dist/P4IRICAX-nhgZ26A1.js +1 -0
  84. package/dist/Pagination.js +46 -0
  85. package/dist/Pagination.mjs +158 -0
  86. package/dist/PasswordInput.js +1 -0
  87. package/dist/PasswordInput.mjs +54 -0
  88. package/dist/Picker.js +8 -0
  89. package/dist/Picker.mjs +50 -0
  90. package/dist/Popover.js +1 -0
  91. package/dist/Popover.mjs +8 -0
  92. package/dist/QYJ6MIDR-CRK3satR.js +1 -0
  93. package/dist/QYJ6MIDR-Cy39pEs2.mjs +97 -0
  94. package/dist/Radio.js +60 -0
  95. package/dist/Radio.mjs +118 -0
  96. package/dist/RadioGroup.js +8 -0
  97. package/dist/RadioGroup.mjs +68 -0
  98. package/dist/RadioTab.js +61 -0
  99. package/dist/RadioTab.mjs +104 -0
  100. package/dist/SYRFVSLH-BpAfr7UE.js +1 -0
  101. package/dist/SYRFVSLH-DyepaZf7.mjs +48 -0
  102. package/dist/Search.js +70 -0
  103. package/dist/Search.mjs +225 -0
  104. package/dist/Select.js +122 -0
  105. package/dist/Select.mjs +1071 -0
  106. package/dist/Shape.js +23 -0
  107. package/dist/Shape.mjs +37 -0
  108. package/dist/Slider.js +190 -0
  109. package/dist/Slider.mjs +531 -0
  110. package/dist/Stack.js +1 -0
  111. package/dist/Stack.mjs +32 -0
  112. package/dist/Swiper.js +141 -0
  113. package/dist/Swiper.mjs +448 -0
  114. package/dist/System.js +1 -1
  115. package/dist/System.mjs +5 -5
  116. package/dist/Table.js +55 -0
  117. package/dist/Table.mjs +75 -0
  118. package/dist/Tabs.js +82 -0
  119. package/dist/Tabs.mjs +539 -0
  120. package/dist/Tag.js +78 -0
  121. package/dist/Tag.mjs +135 -0
  122. package/dist/Text.js +46 -0
  123. package/dist/Text.mjs +97 -0
  124. package/dist/Textarea.js +6 -0
  125. package/dist/Textarea.mjs +55 -0
  126. package/dist/TimePicker.js +4 -0
  127. package/dist/TimePicker.mjs +88 -0
  128. package/dist/Toast.js +42 -0
  129. package/dist/Toast.mjs +264 -0
  130. package/dist/Toggle.js +75 -0
  131. package/dist/Toggle.mjs +93 -0
  132. package/dist/Tooltip.js +68 -0
  133. package/dist/Tooltip.mjs +303 -0
  134. package/dist/UniversalLink.js +4 -0
  135. package/dist/UniversalLink.mjs +25 -0
  136. package/dist/VEVQD5MH-De4r89YE.mjs +20 -0
  137. package/dist/VEVQD5MH-mN1wMozH.js +1 -0
  138. package/dist/VGCJ63VH-BNLwLOaC.js +1 -0
  139. package/dist/VGCJ63VH-fv0YLRh8.mjs +186 -0
  140. package/dist/VariantIcon.js +8 -0
  141. package/dist/VariantIcon.mjs +32 -0
  142. package/dist/Welcome-BNr4uu5n.mjs +48 -0
  143. package/dist/Welcome-Dw9OaREs.js +3 -0
  144. package/dist/WelcomeLoader.js +11 -0
  145. package/dist/WelcomeLoader.mjs +9453 -0
  146. package/dist/X5NMLKT6-BzhcQu_I.js +1 -0
  147. package/dist/X5NMLKT6-DGZEtYXj.mjs +25 -0
  148. package/dist/YV4JVR4I-1ezWeCCz.mjs +341 -0
  149. package/dist/YV4JVR4I-DIthYWMj.js +15 -0
  150. package/dist/_commonjsHelpers-CXJ7dpIk.mjs +9 -0
  151. package/dist/_commonjsHelpers-DvH0V_XJ.js +1 -0
  152. package/dist/create-event-YSlay9Ef.js +1 -0
  153. package/dist/create-event-rXDe5aCQ.mjs +8 -0
  154. package/dist/downshift.esm-DAo-GJwH.js +1 -0
  155. package/dist/downshift.esm-K4YLLQXl.mjs +1085 -0
  156. package/dist/field-styles-CeV7pnOp.mjs +86 -0
  157. package/dist/field-styles-D_gf6ypV.js +63 -0
  158. package/dist/get-max-width-height-CDLBnp_J.js +1 -0
  159. package/dist/get-max-width-height-DoUro2T7.mjs +8 -0
  160. package/dist/hide-focus-rings-root-BNyva1yb.mjs +14 -0
  161. package/dist/hide-focus-rings-root-DGU4Klq5.js +5 -0
  162. package/dist/index-1C9Z0d5Q.mjs +446 -0
  163. package/dist/index-BHi0wohR.js +142 -0
  164. package/dist/index-BLom3M2B.js +2 -0
  165. package/dist/{index-WmqrMIzg.mjs → index-BYdkhqH4.mjs} +6344 -6386
  166. package/dist/index-C_r0bVmL.js +56 -0
  167. package/dist/index-CgT8GWHS.js +1 -0
  168. package/dist/index-ColyClKR.mjs +239 -0
  169. package/dist/index-CrhKWaM2.js +54 -0
  170. package/dist/index-Cs1IZBks.js +17 -0
  171. package/dist/index-DCOLdphy.mjs +184 -0
  172. package/dist/index-DHOW43M6.mjs +132 -0
  173. package/dist/index-SbQUT2mU.mjs +639 -0
  174. package/dist/index.js +5 -147
  175. package/dist/index.mjs +1448 -537
  176. package/dist/overflow-ellipsis-C2ESrF8C.js +5 -0
  177. package/dist/overflow-ellipsis-DGV5Kgt-.mjs +10 -0
  178. package/dist/radio-group-29lMl-2M.mjs +51 -0
  179. package/dist/radio-group-BpImAAmy.js +1 -0
  180. package/dist/throttle-BB1Y3bfD.js +1 -0
  181. package/dist/throttle-BDBzFeFj.mjs +13 -0
  182. package/dist/types/components/Alert/Title.d.ts +1 -1
  183. package/dist/types/components/Alert/index.d.ts +3 -3
  184. package/dist/types/components/Alert/styles.d.ts +2 -2
  185. package/dist/types/components/Avatar/index.d.ts +1 -1
  186. package/dist/types/components/Avatar/styles.d.ts +2 -2
  187. package/dist/types/components/Badge/styles.d.ts +2 -2
  188. package/dist/types/components/Card/Cover.d.ts +1 -1
  189. package/dist/types/components/Card/Cover.styles.d.ts +1 -1
  190. package/dist/types/components/Checkbox/index.d.ts +13 -0
  191. package/dist/types/components/Checkbox/styles.d.ts +3 -0
  192. package/dist/types/components/Checkbox/theme.d.ts +8 -0
  193. package/dist/types/components/ClearButton/styles.d.ts +1 -1
  194. package/dist/types/components/CloseButton/styles.d.ts +1 -1
  195. package/dist/types/components/DatePicker/index.d.ts +15 -0
  196. package/dist/types/components/DateTimePicker/index.d.ts +5 -0
  197. package/dist/types/components/DateTimePicker/styles.d.ts +1 -0
  198. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +18 -0
  199. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +17 -0
  200. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +4 -0
  201. package/dist/types/components/DateTimePickerCommon/datePickerStyles.d.ts +1 -0
  202. package/dist/types/components/DateTimePickerCommon/index.d.ts +5 -0
  203. package/dist/types/components/DateTimePickerCommon/styles.d.ts +9 -0
  204. package/dist/types/components/DateTimePickerCommon/theme.d.ts +9 -0
  205. package/dist/types/components/DateTimePickerCommon/utils.d.ts +6 -0
  206. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +31 -0
  207. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +4 -0
  208. package/dist/types/components/Drawer/AssetDrawer/styles.d.ts +3 -0
  209. package/dist/types/components/Drawer/Close.d.ts +5 -0
  210. package/dist/types/components/Drawer/Content.d.ts +4 -0
  211. package/dist/types/components/Drawer/Footer.d.ts +4 -0
  212. package/dist/types/components/Drawer/Title.d.ts +3 -0
  213. package/dist/types/components/Drawer/index.d.ts +52 -0
  214. package/dist/types/components/Drawer/styles.d.ts +10 -0
  215. package/dist/types/components/Drawer/theme.d.ts +17 -0
  216. package/dist/types/components/DropdownMenu/Arrow.d.ts +4 -0
  217. package/dist/types/components/DropdownMenu/Arrow.styled.d.ts +4 -0
  218. package/dist/types/components/DropdownMenu/Item.d.ts +4 -0
  219. package/dist/types/components/DropdownMenu/Item.styled.d.ts +1 -0
  220. package/dist/types/components/DropdownMenu/Separator.d.ts +4 -0
  221. package/dist/types/components/DropdownMenu/Separator.styled.d.ts +1 -0
  222. package/dist/types/components/DropdownMenu/index.d.ts +25 -0
  223. package/dist/types/components/DropdownMenu/styles.d.ts +1 -0
  224. package/dist/types/components/DropdownMenu/theme.d.ts +8 -0
  225. package/dist/types/components/Field/index.d.ts +26 -0
  226. package/dist/types/components/Field/styles.d.ts +21 -0
  227. package/dist/types/components/Field/utils.d.ts +5 -0
  228. package/dist/types/components/FieldGroup/index.d.ts +11 -0
  229. package/dist/types/components/FieldGroup/styles.d.ts +1 -0
  230. package/dist/types/components/FileDrop/FilePreview.d.ts +9 -0
  231. package/dist/types/components/FileDrop/Message.d.ts +7 -0
  232. package/dist/types/components/FileDrop/Preview.d.ts +3 -0
  233. package/dist/types/components/FileDrop/index.d.ts +52 -0
  234. package/dist/types/components/FileDrop/styles.d.ts +9 -0
  235. package/dist/types/components/FileDrop/theme.d.ts +9 -0
  236. package/dist/types/components/FileDrop/utils.d.ts +3 -0
  237. package/dist/types/components/FileUpload/index.d.ts +35 -0
  238. package/dist/types/components/FileUpload/styles.d.ts +1 -0
  239. package/dist/types/components/Files/index.d.ts +8 -0
  240. package/dist/types/components/Files/types.d.ts +72 -0
  241. package/dist/types/components/Grid/Item.d.ts +14 -0
  242. package/dist/types/components/Grid/index.d.ts +31 -0
  243. package/dist/types/components/Hint/index.d.ts +10 -0
  244. package/dist/types/components/Hint/styles.d.ts +4 -0
  245. package/dist/types/components/Hint/theme.d.ts +9 -0
  246. package/dist/types/components/Icon/index.d.ts +26 -0
  247. package/dist/types/components/Icon/styles.d.ts +9 -0
  248. package/dist/types/components/Icon/theme.d.ts +10 -0
  249. package/dist/types/components/IconFont/index.d.ts +311 -0
  250. package/dist/types/components/IconFont/styles.d.ts +7 -0
  251. package/dist/types/components/IconFont/unicode.json.d.ts +303 -0
  252. package/dist/types/components/InputText/index.d.ts +21 -0
  253. package/dist/types/components/InputText/styles.d.ts +3 -0
  254. package/dist/types/components/Label/index.d.ts +16 -0
  255. package/dist/types/components/Label/styles.d.ts +5 -0
  256. package/dist/types/components/Label/theme.d.ts +4 -0
  257. package/dist/types/components/Link/index.d.ts +15 -0
  258. package/dist/types/components/Link/styles.d.ts +2 -0
  259. package/dist/types/components/Link/theme.d.ts +16 -0
  260. package/dist/types/components/Link/utils.d.ts +1 -0
  261. package/dist/types/components/Loader/index.d.ts +11 -0
  262. package/dist/types/components/Loader/styles.d.ts +6 -0
  263. package/dist/types/components/Loader/theme.d.ts +8 -0
  264. package/dist/types/components/Logo/Solutions.d.ts +3 -0
  265. package/dist/types/components/Logo/Symbol.d.ts +3 -0
  266. package/dist/types/components/Logo/Welcome.d.ts +3 -0
  267. package/dist/types/components/Logo/Wui.d.ts +3 -0
  268. package/dist/types/components/Logo/index.d.ts +7 -0
  269. package/dist/types/components/Logo/styles.d.ts +1 -0
  270. package/dist/types/components/Modal/Assets/AssetWithTitle.d.ts +9 -0
  271. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -0
  272. package/dist/types/components/Modal/Assets/Iframe.d.ts +5 -0
  273. package/dist/types/components/Modal/Assets/index.d.ts +17 -0
  274. package/dist/types/components/Modal/Assets/styles.d.ts +7 -0
  275. package/dist/types/components/Modal/Close.d.ts +6 -0
  276. package/dist/types/components/Modal/Content.d.ts +16 -0
  277. package/dist/types/components/Modal/Footer.d.ts +12 -0
  278. package/dist/types/components/Modal/Header.d.ts +12 -0
  279. package/dist/types/components/Modal/index.d.ts +53 -0
  280. package/dist/types/components/Modal/styles.d.ts +11 -0
  281. package/dist/types/components/Modal/theme.d.ts +17 -0
  282. package/dist/types/components/Pagination/index.d.ts +14 -0
  283. package/dist/types/components/Pagination/styles.d.ts +7 -0
  284. package/dist/types/components/Pagination/theme.d.ts +9 -0
  285. package/dist/types/components/Pagination/utils.d.ts +7 -0
  286. package/dist/types/components/PasswordInput/ToggleButton.d.ts +9 -0
  287. package/dist/types/components/PasswordInput/index.d.ts +5 -0
  288. package/dist/types/components/Picker/index.d.ts +17 -0
  289. package/dist/types/components/Picker/styles.d.ts +2 -0
  290. package/dist/types/components/Popover/Arrow.d.ts +6 -0
  291. package/dist/types/components/Popover/Content.d.ts +9 -0
  292. package/dist/types/components/Popover/Popover.d.ts +14 -0
  293. package/dist/types/components/Popover/PopoverHover.d.ts +14 -0
  294. package/dist/types/components/Popover/Trigger.d.ts +10 -0
  295. package/dist/types/components/Popover/index.d.ts +3 -0
  296. package/dist/types/components/Popover/styles.d.ts +12 -0
  297. package/dist/types/components/Popover/theme.d.ts +8 -0
  298. package/dist/types/components/Popover/usePopover.d.ts +15 -0
  299. package/dist/types/components/Radio/index.d.ts +12 -0
  300. package/dist/types/components/Radio/styles.d.ts +7 -0
  301. package/dist/types/components/Radio/theme.d.ts +11 -0
  302. package/dist/types/components/RadioGroup/index.d.ts +17 -0
  303. package/dist/types/components/RadioGroup/styles.d.ts +4 -0
  304. package/dist/types/components/RadioTab/index.d.ts +14 -0
  305. package/dist/types/components/RadioTab/styles.d.ts +18 -0
  306. package/dist/types/components/RadioTab/theme.d.ts +7 -0
  307. package/dist/types/components/Search/index.d.ts +29 -0
  308. package/dist/types/components/Search/styles.d.ts +15 -0
  309. package/dist/types/components/Select/index.d.ts +54 -0
  310. package/dist/types/components/Select/multipleSelections.d.ts +3 -0
  311. package/dist/types/components/Select/styles.d.ts +32 -0
  312. package/dist/types/components/Select/utils.d.ts +18 -0
  313. package/dist/types/components/Shape/index.d.ts +6 -0
  314. package/dist/types/components/Shape/styles.d.ts +2 -0
  315. package/dist/types/components/Slider/Range.d.ts +17 -0
  316. package/dist/types/components/Slider/index.d.ts +27 -0
  317. package/dist/types/components/Slider/styles.d.ts +19 -0
  318. package/dist/types/components/Slider/theme.d.ts +11 -0
  319. package/dist/types/components/Stack/index.d.ts +7 -0
  320. package/dist/types/components/Swiper/index.d.ts +80 -0
  321. package/dist/types/components/Swiper/styles.d.ts +138 -0
  322. package/dist/types/components/Swiper/theme.d.ts +11 -0
  323. package/dist/types/components/Swiper/use-interval.d.ts +1 -0
  324. package/dist/types/components/Table/index.d.ts +18 -0
  325. package/dist/types/components/Table/styles.d.ts +13 -0
  326. package/dist/types/components/Table/theme.d.ts +15 -0
  327. package/dist/types/components/Tabs/ActiveBar.d.ts +13 -0
  328. package/dist/types/components/Tabs/TabList.d.ts +13 -0
  329. package/dist/types/components/Tabs/TabPanel.d.ts +11 -0
  330. package/dist/types/components/Tabs/index.d.ts +18 -0
  331. package/dist/types/components/Tabs/styles.d.ts +9 -0
  332. package/dist/types/components/Tabs/theme.d.ts +28 -0
  333. package/dist/types/components/Tabs/utils.d.ts +1 -0
  334. package/dist/types/components/Tag/index.d.ts +17 -0
  335. package/dist/types/components/Tag/styles.d.ts +15 -0
  336. package/dist/types/components/Tag/theme.d.ts +14 -0
  337. package/dist/types/components/Text/index.d.ts +25 -0
  338. package/dist/types/components/Text/styles.d.ts +2 -0
  339. package/dist/types/components/Textarea/index.d.ts +18 -0
  340. package/dist/types/components/Textarea/styles.d.ts +2 -0
  341. package/dist/types/components/Textarea/theme.d.ts +4 -0
  342. package/dist/types/components/TimePicker/index.d.ts +13 -0
  343. package/dist/types/components/TimePicker/styles.d.ts +1 -0
  344. package/dist/types/components/Toast/Growl.d.ts +12 -0
  345. package/dist/types/components/Toast/Snackbar.d.ts +18 -0
  346. package/dist/types/components/Toast/ToastWrapper.d.ts +16 -0
  347. package/dist/types/components/Toast/index.d.ts +27 -0
  348. package/dist/types/components/Toast/styles.d.ts +19 -0
  349. package/dist/types/components/Toast/theme.d.ts +22 -0
  350. package/dist/types/components/Toast/utils.d.ts +26 -0
  351. package/dist/types/components/Toggle/index.d.ts +11 -0
  352. package/dist/types/components/Toggle/styles.d.ts +12 -0
  353. package/dist/types/components/Toggle/theme.d.ts +10 -0
  354. package/dist/types/components/Tooltip/index.d.ts +11 -0
  355. package/dist/types/components/Tooltip/styles.d.ts +10 -0
  356. package/dist/types/components/Tooltip/theme.d.ts +4 -0
  357. package/dist/types/components/UniversalLink/index.d.ts +7 -0
  358. package/dist/types/components/UniversalLink/styles.d.ts +1 -0
  359. package/dist/types/components/VariantIcon/index.d.ts +11 -0
  360. package/dist/types/components/VariantIcon/styles.d.ts +4 -0
  361. package/dist/types/components/VariantIcon/theme.d.ts +10 -0
  362. package/dist/types/components/WelcomeLoader/index.d.ts +2 -0
  363. package/dist/types/components/WelcomeLoader/loader.json.d.ts +3 -0
  364. package/dist/types/components/index.d.ts +43 -1
  365. package/dist/types/index.d.ts +2 -1
  366. package/dist/types/theme/defaultFields.d.ts +39 -0
  367. package/dist/types/theme/index.d.ts +52 -2
  368. package/dist/types/theme/typography.d.ts +2 -2
  369. package/dist/types/utils/clamp.d.ts +1 -0
  370. package/dist/types/utils/create-event.d.ts +8 -0
  371. package/dist/types/utils/field-styles.d.ts +21 -0
  372. package/dist/types/utils/format-bytes.d.ts +1 -0
  373. package/dist/types/utils/get-max-width-height.d.ts +1 -0
  374. package/dist/types/utils/hex-to-rgb.d.ts +1 -0
  375. package/dist/types/utils/hex-to-rgba.d.ts +1 -0
  376. package/dist/types/utils/hide-focus-rings-root.d.ts +8 -0
  377. package/dist/types/utils/index.d.ts +1 -0
  378. package/dist/types/utils/overflow-ellipsis.d.ts +1 -0
  379. package/dist/types/utils/throttle.d.ts +5 -0
  380. package/dist/types/utils/use-copy-text.d.ts +5 -0
  381. package/dist/types/utils/use-create-portal.d.ts +4 -0
  382. package/dist/types/utils/use-fork-ref.d.ts +3 -0
  383. package/dist/types/utils/use-isomorphic-layout-effect.d.ts +2 -0
  384. package/dist/types/utils/use-viewport.d.ts +6 -0
  385. package/dist/types/utils/wrap-children.d.ts +1 -0
  386. package/dist/use-isomorphic-layout-effect-C1_Gy5Nu.js +1 -0
  387. package/dist/use-isomorphic-layout-effect-Izr-e2pi.mjs +6 -0
  388. package/dist/use-viewport-BDDjd1nl.js +1 -0
  389. package/dist/use-viewport-m3glsbna.mjs +16 -0
  390. package/dist/usePopover-CZsYHcTW.js +31 -0
  391. package/dist/usePopover-CcsC9Y-s.mjs +143 -0
  392. package/dist/wrap-children-BLDjJiiy.js +1 -0
  393. package/dist/wrap-children-aq69jtFP.mjs +12 -0
  394. package/package.json +56 -4
  395. package/dist/X5NMLKT6-BC1Q56kB.mjs +0 -1258
  396. package/dist/X5NMLKT6-vrNG8i_R.js +0 -14
  397. package/dist/index-0MPAX4B5.mjs +0 -320
  398. package/dist/index-BNA_A0oa.js +0 -155
  399. package/dist/index-BXJQXgy9.js +0 -13
  400. package/dist/index-Bwrtxit1.mjs +0 -84
  401. package/dist/index-Ct2FOeyM.js +0 -17
  402. package/dist/index-DRNn5iIc.js +0 -142
  403. package/dist/index-Du8Nrf16.mjs +0 -128
  404. package/dist/index-MifIgNHW.mjs +0 -47
  405. package/dist/index-V28zHt_Z.js +0 -68
package/dist/index.mjs CHANGED
@@ -1,75 +1,118 @@
1
1
  "use client";
2
- import m, { css as g, rpxTransformers as k, defaultTheme as D, th as d, system as p, keyframes as v } from "@xstyled/styled-components";
3
- import { h as f, a as S } from "./index-MifIgNHW.mjs";
4
- import { Accordion as Ze, useAccordion as Je } from "./Accordion.mjs";
5
- import { L as T } from "./index-0MPAX4B5.mjs";
6
- import { A as Qe } from "./index-0MPAX4B5.mjs";
7
- import { AspectRatio as er } from "./AspectRatio.mjs";
8
- import { Avatar as or } from "./Avatar.mjs";
9
- import { Badge as nr } from "./Badge.mjs";
10
- import { Box as C } from "./Box.mjs";
11
- import { Breadcrumb as lr, BreadcrumbComponent as sr } from "./Breadcrumb.mjs";
12
- import u, { Children as W, cloneElement as _ } from "react";
13
- import { shouldForwardProp as z, forwardRef as h } from "./System.mjs";
14
- import { componentSystem as dr, filterSystemProps as cr, system as ur, wrapperSystem as gr } from "./System.mjs";
15
- import { B as R } from "./X5NMLKT6-BC1Q56kB.mjs";
16
- import { S as U } from "./index-Du8Nrf16.mjs";
17
- import { C as w } from "./index-Bwrtxit1.mjs";
18
- import { Flex as br } from "./Flex.mjs";
19
- import { WuiProvider as hr } from "./WuiProvider.mjs";
20
- function y(r, e) {
21
- if (typeof r != "object" || r === null) return e;
22
- if (typeof e != "object" || e === null) return r;
23
- const t = { ...r };
2
+ import { Accordion as Qe, useAccordion as er } from "./Accordion.mjs";
3
+ import { Alert as or } from "./Alert.mjs";
4
+ import { AspectRatio as nr } from "./AspectRatio.mjs";
5
+ import { Avatar as lr } from "./Avatar.mjs";
6
+ import { Badge as dr } from "./Badge.mjs";
7
+ import { Box as cr } from "./Box.mjs";
8
+ import { h as m } from "./index-1C9Z0d5Q.mjs";
9
+ import { a as ur, B as mr } from "./index-1C9Z0d5Q.mjs";
10
+ import { Button as pr, StyledButton as fr } from "./Button.mjs";
11
+ import { ButtonGroup as xr } from "./ButtonGroup.mjs";
12
+ import { Card as yr, CardComponent as kr } from "./Card.mjs";
13
+ import { a as wr } from "./index-DCOLdphy.mjs";
14
+ import { ClearButton as vr, StyledClearButton as Tr } from "./ClearButton.mjs";
15
+ import { CloseButton as $r } from "./CloseButton.mjs";
16
+ import { DatePicker as Ar } from "./DatePicker.mjs";
17
+ import { DateTimePicker as Er } from "./DateTimePicker.mjs";
18
+ import { AssetDrawer as zr, Drawer as Lr, DrawerBackdrop as Ir, Trigger as Hr, useDrawer as Ur } from "./Drawer.mjs";
19
+ import { DropdownMenu as Pr, useDropdownMenu as Mr } from "./DropdownMenu.mjs";
20
+ import { Field as Gr, IconGroupWrapper as Or, IconWrapper as Vr, getBaseType as Yr } from "./Field.mjs";
21
+ import { FieldGroup as Xr, StyledFieldGroup as Kr } from "./FieldGroup.mjs";
22
+ import { FileDrop as jr, ImagePreview as qr } from "./FileDrop.mjs";
23
+ import { g as eo, a as ro, b as oo, c as to } from "./index-DHOW43M6.mjs";
24
+ import { FileUpload as ao } from "./FileUpload.mjs";
25
+ import { Flex as io } from "./Flex.mjs";
26
+ import { Grid as co } from "./Grid.mjs";
27
+ import { Hint as uo, StyledHint as mo } from "./Hint.mjs";
28
+ import { Icon as po, StyledIcon as fo } from "./Icon.mjs";
29
+ import { InputText as xo } from "./InputText.mjs";
30
+ import { Label as yo, StyledLabel as ko } from "./Label.mjs";
31
+ import { Link as wo } from "./Link.mjs";
32
+ import { Loader as vo } from "./Loader.mjs";
33
+ import { W as Do, a as $o, S as Wo, b as Ao } from "./Welcome-BNr4uu5n.mjs";
34
+ import { AssetModal as Eo, Modal as Ro, useModal as zo } from "./Modal.mjs";
35
+ import { Pagination as Io } from "./Pagination.mjs";
36
+ import { PasswordInput as Uo } from "./PasswordInput.mjs";
37
+ import { Picker as Po } from "./Picker.mjs";
38
+ import { P as No, a as Go, u as Oo, b as Vo } from "./usePopover-CcsC9Y-s.mjs";
39
+ import { Radio as Jo } from "./Radio.mjs";
40
+ import { RadioGroup as Ko } from "./RadioGroup.mjs";
41
+ import { RadioTab as jo } from "./RadioTab.mjs";
42
+ import { Search as Qo, StyledSearch as et } from "./Search.mjs";
43
+ import { Select as ot, StyledSelect as tt } from "./Select.mjs";
44
+ import { Shape as at } from "./Shape.mjs";
45
+ import { Slider as it, SliderComponent as dt, ensureMinMax as st, round as ct, thumbWidth as gt } from "./Slider.mjs";
46
+ import { Stack as mt } from "./Stack.mjs";
47
+ import { StyledSwiper as pt, Swiper as ft, useSwiper as ht } from "./Swiper.mjs";
48
+ import { Table as Ct, TableComponent as yt } from "./Table.mjs";
49
+ import { Tab as Ft, TabComponent as wt, useTab as St } from "./Tabs.mjs";
50
+ import { StyledTag as Tt, Tag as Dt } from "./Tag.mjs";
51
+ import { Text as Wt } from "./Text.mjs";
52
+ import { Textarea as Bt } from "./Textarea.mjs";
53
+ import { TimePicker as Rt } from "./TimePicker.mjs";
54
+ import { Notifications as Lt, Toast as It, dismiss as Ht, remove as Ut, toast as _t, useToast as Pt } from "./Toast.mjs";
55
+ import { Toggle as Nt } from "./Toggle.mjs";
56
+ import { Tooltip as Ot } from "./Tooltip.mjs";
57
+ import { VariantIcon as Yt } from "./VariantIcon.mjs";
58
+ import { WelcomeLoader as Xt } from "./WelcomeLoader.mjs";
59
+ import { WuiProvider as Zt } from "./WuiProvider.mjs";
60
+ import { css as h, rpxTransformers as F, defaultTheme as w } from "@xstyled/styled-components";
61
+ import { useState as S, useCallback as v } from "react";
62
+ import { g as T } from "./_commonjsHelpers-CXJ7dpIk.mjs";
63
+ function f(o, e) {
64
+ if (typeof o != "object" || o === null) return e;
65
+ if (typeof e != "object" || e === null) return o;
66
+ const r = { ...o };
24
67
  for (const n in e)
25
- e.hasOwnProperty(n) && (t[n] = y(t[n], e[n]));
26
- return t;
68
+ e.hasOwnProperty(n) && (r[n] = f(r[n], e[n]));
69
+ return r;
27
70
  }
28
- const N = (r) => {
29
- const { borderWidths: e, colors: t, fontSizes: n, radii: a, space: s, texts: c, transitions: l } = r;
71
+ const D = (o) => {
72
+ const { borderWidths: e, colors: r, fontSizes: n, radii: a, space: i, texts: d, transitions: l } = o;
30
73
  return {
31
- padding: s.lg,
74
+ padding: i.lg,
32
75
  wrapper: {
33
- backgroundColor: t["neutral-10"],
76
+ backgroundColor: r["neutral-10"],
34
77
  transition: l.medium,
35
- border: `${e.sm} solid ${t["neutral-30"]}`,
78
+ border: `${e.sm} solid ${r["neutral-30"]}`,
36
79
  borderRadius: a.md
37
80
  },
38
81
  icon: {
39
- color: t["neutral-90"]
82
+ color: r["neutral-90"]
40
83
  },
41
84
  content: {
42
85
  fontSize: n.sm
43
86
  },
44
- title: c.h5
87
+ title: d.h5
45
88
  };
46
- }, I = (r) => {
47
- const { borderWidths: e, colors: t, fontSizes: n, fontWeights: a, radii: s, space: c } = r, l = (i) => ({
48
- backgroundColor: t[`${i}-10`],
49
- borderColor: t[`${i}-10`],
50
- color: t[`${i}-90`]
89
+ }, $ = (o) => {
90
+ const { borderWidths: e, colors: r, fontSizes: n, fontWeights: a, radii: i, space: d } = o, l = (s) => ({
91
+ backgroundColor: r[`${s}-10`],
92
+ borderColor: r[`${s}-10`],
93
+ color: r[`${s}-90`]
51
94
  });
52
95
  return {
53
96
  default: {
54
- backgroundColor: t["neutral-10"],
55
- borderColor: t["neutral-30"],
56
- borderRadius: s.lg,
97
+ backgroundColor: r["neutral-10"],
98
+ borderColor: r["neutral-30"],
99
+ borderRadius: i.lg,
57
100
  borderStyle: "solid",
58
101
  borderWidth: e.sm,
59
- color: t["neutral-80"],
102
+ color: r["neutral-80"],
60
103
  fontSize: n.sm
61
104
  },
62
105
  title: {
63
106
  default: {
64
- color: t["neutral-90"],
107
+ color: r["neutral-90"],
65
108
  fontWeight: a.medium
66
109
  },
67
110
  sizes: {
68
111
  sm: {
69
- marginBottom: c.xs
112
+ marginBottom: d.xs
70
113
  },
71
114
  md: {
72
- marginBottom: c.sm
115
+ marginBottom: d.sm
73
116
  }
74
117
  }
75
118
  },
@@ -78,21 +121,21 @@ const N = (r) => {
78
121
  info: l("blue"),
79
122
  success: l("green"),
80
123
  beige: {
81
- backgroundColor: t["beige-20"],
82
- borderColor: t["beige-20"],
83
- color: t["beige-80"]
124
+ backgroundColor: r["beige-20"],
125
+ borderColor: r["beige-20"],
126
+ color: r["beige-80"]
84
127
  },
85
128
  sizes: {
86
129
  sm: {
87
- padding: c.lg
130
+ padding: d.lg
88
131
  },
89
132
  md: {
90
- padding: c.xl
133
+ padding: d.xl
91
134
  }
92
135
  }
93
136
  };
94
- }, O = (r) => {
95
- const { colors: e, fontWeights: t, toRem: n } = r;
137
+ }, W = (o) => {
138
+ const { colors: e, fontWeights: r, toRem: n } = o;
96
139
  return {
97
140
  sizes: {
98
141
  sm: n(20),
@@ -103,15 +146,15 @@ const N = (r) => {
103
146
  },
104
147
  text: {
105
148
  color: e["neutral-90"],
106
- fontWeight: t.bold
149
+ fontWeight: r.bold
107
150
  }
108
151
  };
109
- }, L = (r) => {
110
- const { colors: e, fontWeights: t, space: n, texts: a, toRem: s } = r;
152
+ }, A = (o) => {
153
+ const { colors: e, fontWeights: r, space: n, texts: a, toRem: i } = o;
111
154
  return {
112
155
  default: {
113
156
  ...a.xs,
114
- fontWeight: t.medium
157
+ fontWeight: r.medium
115
158
  },
116
159
  variants: {
117
160
  default: {
@@ -136,22 +179,22 @@ const N = (r) => {
136
179
  sizes: {
137
180
  sm: {
138
181
  padding: n.xxs,
139
- height: s(16),
140
- borderRadius: s(14)
182
+ height: i(16),
183
+ borderRadius: i(14)
141
184
  },
142
185
  md: {
143
186
  padding: n.xs,
144
- height: s(20),
145
- borderRadius: s(14)
187
+ height: i(20),
188
+ borderRadius: i(14)
146
189
  }
147
190
  }
148
191
  };
149
- }, H = (r) => {
150
- const { colors: e, space: t, texts: n } = r;
192
+ }, B = (o) => {
193
+ const { colors: e, space: r, texts: n } = o;
151
194
  return {
152
195
  list: {
153
196
  ...n["subtitle-sm"],
154
- padding: `${t.sm} 0`
197
+ padding: `${r.sm} 0`
155
198
  },
156
199
  item: {
157
200
  default: {
@@ -166,13 +209,13 @@ const N = (r) => {
166
209
  }
167
210
  },
168
211
  separator: {
169
- padding: `0 ${t.xs}`,
212
+ padding: `0 ${r.xs}`,
170
213
  color: e["neutral-50"]
171
214
  }
172
215
  };
173
- }, G = (r) => {
174
- const { colors: e, focus: t, fontWeights: n, radii: a, space: s, texts: c, toRem: l } = r, i = {
175
- ...c.xs,
216
+ }, E = (o) => {
217
+ const { colors: e, focus: r, fontWeights: n, radii: a, space: i, texts: d, toRem: l } = o, s = {
218
+ ...d.xs,
176
219
  color: e["neutral-10"],
177
220
  fontWeight: n.bold,
178
221
  letterSpacing: 0,
@@ -180,24 +223,24 @@ const N = (r) => {
180
223
  };
181
224
  return {
182
225
  primary: {
183
- ...i,
184
- color: r.colors["neutral-90"],
226
+ ...s,
227
+ color: o.colors["neutral-90"],
185
228
  backgroundColor: e["primary-40"],
186
229
  borderColor: e["primary-40"]
187
230
  },
188
231
  secondary: {
189
- ...i,
232
+ ...s,
190
233
  backgroundColor: e["neutral-90"],
191
234
  borderColor: e["neutral-90"]
192
235
  },
193
236
  tertiary: {
194
- ...i,
237
+ ...s,
195
238
  color: e["neutral-90"],
196
239
  backgroundColor: "transparent",
197
240
  borderColor: e["neutral-90"]
198
241
  },
199
242
  ghost: {
200
- ...i,
243
+ ...s,
201
244
  color: e["neutral-90"],
202
245
  backgroundColor: "transparent",
203
246
  borderColor: "transparent"
@@ -229,10 +272,10 @@ const N = (r) => {
229
272
  borderColor: "transparent"
230
273
  },
231
274
  tertiary: {
232
- backgroundColor: f(e["neutral-90"], 0.1)
275
+ backgroundColor: m(e["neutral-90"], 0.1)
233
276
  },
234
277
  ghost: {
235
- backgroundColor: f(e["neutral-90"], 0.1)
278
+ backgroundColor: m(e["neutral-90"], 0.1)
236
279
  },
237
280
  danger: {
238
281
  primary: {
@@ -248,14 +291,14 @@ const N = (r) => {
248
291
  }
249
292
  },
250
293
  focus: {
251
- primary: { ...t(e["primary-20"]) },
252
- secondary: { ...t(e["neutral-40"]) },
253
- tertiary: { ...t(e["neutral-40"]) },
254
- ghost: { ...t(e["neutral-40"]) },
294
+ primary: { ...r(e["primary-20"]) },
295
+ secondary: { ...r(e["neutral-40"]) },
296
+ tertiary: { ...r(e["neutral-40"]) },
297
+ ghost: { ...r(e["neutral-40"]) },
255
298
  danger: {
256
- primary: { ...t(e["red-40"]) },
257
- tertiary: { ...t(e["red-40"]) },
258
- ghost: { ...t(e["red-40"]) }
299
+ primary: { ...r(e["red-40"]) },
300
+ tertiary: { ...r(e["red-40"]) },
301
+ ghost: { ...r(e["red-40"]) }
259
302
  }
260
303
  },
261
304
  active: {
@@ -268,10 +311,10 @@ const N = (r) => {
268
311
  borderColor: e["neutral-50"]
269
312
  },
270
313
  tertiary: {
271
- backgroundColor: f(e["neutral-90"], 0.4)
314
+ backgroundColor: m(e["neutral-90"], 0.4)
272
315
  },
273
316
  ghost: {
274
- backgroundColor: f(e["neutral-90"], 0.4)
317
+ backgroundColor: m(e["neutral-90"], 0.4)
275
318
  },
276
319
  danger: {
277
320
  primary: {
@@ -287,32 +330,32 @@ const N = (r) => {
287
330
  }
288
331
  },
289
332
  disabled: {
290
- ...i,
333
+ ...s,
291
334
  color: e["beige-70"],
292
335
  backgroundColor: e["beige-40"],
293
336
  borderColor: e["beige-40"],
294
- "&:focus": { ...t(e["beige-10"]) }
337
+ "&:focus": { ...r(e["beige-10"]) }
295
338
  },
296
339
  sizes: {
297
340
  xs: {
298
341
  height: l(24),
299
- padding: `${s.xs} ${s.sm}`
342
+ padding: `${i.xs} ${i.sm}`
300
343
  },
301
344
  sm: {
302
345
  height: l(32),
303
- padding: `${s.sm} ${s.md}`
346
+ padding: `${i.sm} ${i.md}`
304
347
  },
305
348
  md: {
306
- ...c.sm,
349
+ ...d.sm,
307
350
  fontWeight: n.bold,
308
351
  height: l(40),
309
- padding: `${s.sm} ${s.lg}`
352
+ padding: `${i.sm} ${i.lg}`
310
353
  },
311
354
  lg: {
312
- ...c.sm,
355
+ ...d.sm,
313
356
  fontWeight: n.bold,
314
357
  height: l(48),
315
- padding: `${s.md} ${s.xl}`
358
+ padding: `${i.md} ${i.xl}`
316
359
  }
317
360
  },
318
361
  icon: {
@@ -330,17 +373,922 @@ const N = (r) => {
330
373
  }
331
374
  }
332
375
  };
333
- }, P = (r) => {
334
- const { borderWidths: e, colors: t } = r;
376
+ }, R = (o) => {
377
+ const { borderWidths: e, colors: r } = o;
335
378
  return {
336
379
  default: {
337
- backgroundColor: t["neutral-10"],
380
+ backgroundColor: r["neutral-10"],
338
381
  borderStyle: "solid",
339
382
  borderWidth: e.sm,
340
- borderColor: t["neutral-30"]
383
+ borderColor: r["neutral-30"]
341
384
  }
342
385
  };
343
- }, M = {
386
+ }, z = (o) => {
387
+ const { colors: e, fontWeights: r } = o;
388
+ return {
389
+ item: {
390
+ selected: {
391
+ color: e["neutral-90"],
392
+ fontWeight: r.bold,
393
+ backgroundColor: e["primary-40"],
394
+ outline: "none"
395
+ },
396
+ today: {
397
+ color: e["neutral-90"],
398
+ fontWeight: r.bold
399
+ }
400
+ }
401
+ };
402
+ }, L = (o) => {
403
+ const { colors: e, radii: r, toRem: n } = o;
404
+ return {
405
+ default: {
406
+ width: n(16),
407
+ height: n(16),
408
+ flexShrink: 0,
409
+ borderRadius: r.sm
410
+ },
411
+ disabled: {
412
+ borderColor: e["beige-60"]
413
+ },
414
+ checked: {
415
+ color: e["neutral-90"],
416
+ backgroundColor: e["primary-40"],
417
+ borderColor: e["primary-40"]
418
+ }
419
+ };
420
+ }, I = (o) => {
421
+ const { colors: e, space: r, toRem: n } = o;
422
+ return {
423
+ backdrop: {
424
+ backgroundColor: e.overlay,
425
+ zIndex: 999
426
+ },
427
+ default: {
428
+ zIndex: 999
429
+ },
430
+ closeButton: {},
431
+ title: {
432
+ margin: 0,
433
+ backgroundColor: e["neutral-10"],
434
+ padding: `${r.xl} ${r["5xl"]} ${r.xl} ${r.xl}`
435
+ },
436
+ content: {
437
+ padding: `${r.xl}`
438
+ },
439
+ footer: {
440
+ backgroundColor: e["neutral-10"],
441
+ padding: `${r.xl}`
442
+ },
443
+ sizes: {
444
+ horizontal: {
445
+ sm: { width: n(400) },
446
+ md: { width: n(550) },
447
+ lg: { width: n(680) }
448
+ },
449
+ vertical: {
450
+ sm: { height: n(400) },
451
+ md: { height: n(550) },
452
+ lg: { height: n(680) }
453
+ }
454
+ }
455
+ };
456
+ }, H = (o) => {
457
+ const { colors: e, fontSizes: r, radii: n, toRem: a } = o, i = e["beige-30"];
458
+ return {
459
+ inner: {
460
+ fontSize: r.sm,
461
+ minWidth: a(130),
462
+ borderRadius: n.md
463
+ },
464
+ item: {
465
+ backgroundColor: "transparent",
466
+ color: e["beige-70"],
467
+ "&:hover": {
468
+ backgroundColor: e["beige-30"],
469
+ color: e["neutral-90"]
470
+ },
471
+ "&:focus": {
472
+ backgroundColor: e["beige-30"],
473
+ color: e["neutral-90"]
474
+ },
475
+ "&[disabled]": {
476
+ backgroundColor: "transparent",
477
+ color: e["beige-40"],
478
+ cursor: "not-allowed"
479
+ }
480
+ },
481
+ separator: {
482
+ backgroundColor: i
483
+ }
484
+ };
485
+ }, U = (o) => {
486
+ const { colors: e, toRem: r } = o;
487
+ return {
488
+ default: {
489
+ minHeight: r(200),
490
+ borderStyle: "dashed"
491
+ },
492
+ dragAccept: {},
493
+ dragReject: {},
494
+ disabled: {
495
+ backgroundColor: e["beige-30"]
496
+ }
497
+ };
498
+ }, _ = (o) => {
499
+ const { colors: e, texts: r } = o;
500
+ return {
501
+ default: {
502
+ ...r.xs,
503
+ color: e["neutral-60"]
504
+ },
505
+ danger: {
506
+ color: e["red-70"]
507
+ },
508
+ success: {
509
+ color: e["green-70"]
510
+ },
511
+ warning: {
512
+ color: e["orange-70"]
513
+ }
514
+ };
515
+ }, P = (o) => {
516
+ const { colors: e, fontSizes: r, fontWeights: n } = o;
517
+ return {
518
+ color: e["neutral-60"],
519
+ fontSize: r.sm,
520
+ fontWeight: n.medium
521
+ };
522
+ }, M = (o) => {
523
+ const { colors: e, fontWeights: r, icons: n, space: a, transitions: i } = o;
524
+ return {
525
+ default: {
526
+ color: e["neutral-90"],
527
+ fontWeight: r.medium,
528
+ transition: i.medium
529
+ },
530
+ withExternalLink: {
531
+ backgroundSize: `calc(100% - ${n.sm} - ${a.sm}) 50%`
532
+ },
533
+ disabled: {
534
+ color: e["neutral-50"],
535
+ backgroundImage: `linear-gradient(0deg, ${e["neutral-30"]}, ${e["neutral-30"]} 100%)`
536
+ },
537
+ primary: {
538
+ default: {},
539
+ hover: {}
540
+ },
541
+ secondary: {
542
+ default: {
543
+ backgroundImage: `linear-gradient(0deg, ${e["neutral-90"]}, ${e["neutral-90"]} 100%)`
544
+ },
545
+ hover: {
546
+ color: e["neutral-10"]
547
+ }
548
+ }
549
+ };
550
+ }, N = ({ toRem: o }) => ({
551
+ xs: o(8),
552
+ sm: o(10),
553
+ md: o(15),
554
+ lg: o(20)
555
+ }), G = ({ toRem: o }) => ({
556
+ xs: o(12),
557
+ sm: o(16),
558
+ md: o(24),
559
+ lg: o(32),
560
+ xl: o(48),
561
+ xxl: o(64)
562
+ }), O = (o) => {
563
+ const { colors: e, radii: r, space: n, toRem: a } = o;
564
+ return {
565
+ backdrop: {
566
+ backgroundColor: e.overlay,
567
+ zIndex: 999
568
+ },
569
+ default: {
570
+ zIndex: 999,
571
+ borderRadius: r.md
572
+ },
573
+ header: {
574
+ backgroundColor: e["neutral-10"],
575
+ borderTopLeftRadius: r.md,
576
+ borderTopRightRadius: r.md,
577
+ paddingTop: n.xxl,
578
+ paddingRight: n["3xl"],
579
+ paddingBottom: n.xxl,
580
+ paddingLeft: n.xxl,
581
+ subtitle: {
582
+ color: e["neutral-70"],
583
+ variant: "sm",
584
+ margin: 0
585
+ }
586
+ },
587
+ body: {
588
+ color: e["neutral-90"],
589
+ paddingRight: n["3xl"],
590
+ paddingBottom: n.xxl,
591
+ paddingLeft: n.xxl
592
+ },
593
+ footer: {
594
+ backgroundColor: e["neutral-10"],
595
+ borderTop: `solid ${e["neutral-30"]}`,
596
+ borderBottomLeftRadius: r.md,
597
+ borderBottomRightRadius: r.md,
598
+ children: {
599
+ paddingRight: n.xxl,
600
+ paddingLeft: n.xxl,
601
+ paddingTop: n.lg,
602
+ paddingBottom: n.xl
603
+ },
604
+ information: {
605
+ backgroundColor: e["beige-20"],
606
+ paddingRight: n.xxl,
607
+ paddingLeft: n.xxl,
608
+ paddingTop: n.xl,
609
+ paddingBottom: n.xxl
610
+ }
611
+ },
612
+ gutter: a(32),
613
+ sizes: {
614
+ xs: {
615
+ width: a(320)
616
+ },
617
+ sm: {
618
+ width: a(450)
619
+ },
620
+ md: {
621
+ width: a(600)
622
+ },
623
+ lg: {
624
+ width: a(730)
625
+ },
626
+ auto: {}
627
+ },
628
+ cover: {}
629
+ };
630
+ }, V = (o) => {
631
+ const { colors: e, focus: r, fontSizes: n, fontWeights: a, toRem: i } = o;
632
+ return {
633
+ default: {
634
+ width: i(32),
635
+ height: i(32),
636
+ color: e["neutral-90"],
637
+ fontWeight: a.bold,
638
+ fontSize: n.xs
639
+ },
640
+ item: {
641
+ "&:hover, &:focus": {
642
+ backgroundColor: e["neutral-30"]
643
+ },
644
+ "&:focus": { ...r(e["neutral-60"]) }
645
+ },
646
+ active: {
647
+ backgroundColor: e["neutral-90"],
648
+ color: e["neutral-10"],
649
+ "&:hover, &:focus": {
650
+ backgroundColor: e["neutral-90"]
651
+ }
652
+ },
653
+ disabled: {
654
+ backgroundColor: e["beige-40"],
655
+ color: e["beige-70"]
656
+ }
657
+ };
658
+ }, Y = (o) => {
659
+ const { borderWidths: e, colors: r, space: n, texts: a, toRem: i } = o;
660
+ return {
661
+ default: {
662
+ ...a.sm,
663
+ backgroundColor: r["neutral-90"],
664
+ color: r["neutral-10"],
665
+ maxWidth: i(700),
666
+ zIndex: 1
667
+ },
668
+ content: {
669
+ display: "block",
670
+ padding: n.md
671
+ },
672
+ title: {
673
+ ...a.h6,
674
+ padding: `${n.md} ${n.md} ${n.xs}`,
675
+ color: r["neutral-10"],
676
+ borderBottomColor: r["neutral-70"],
677
+ borderBottomWidth: e.sm,
678
+ borderBottomStyle: "solid"
679
+ }
680
+ };
681
+ }, J = (o) => {
682
+ const { colors: e, toRem: r } = o;
683
+ return {
684
+ default: {
685
+ width: r(16),
686
+ height: r(16)
687
+ },
688
+ checked: {
689
+ color: e["neutral-90"],
690
+ borderColor: e["primary-40"]
691
+ },
692
+ checkedCenteredColor: {
693
+ default: e["primary-40"],
694
+ disabled: e["beige-60"]
695
+ }
696
+ };
697
+ }, X = (o) => {
698
+ const { colors: e } = o;
699
+ return {
700
+ default: {
701
+ "&:hover": {
702
+ backgroundColor: e["beige-30"]
703
+ }
704
+ },
705
+ checked: {
706
+ backgroundColor: e["primary-40"],
707
+ color: o.colors["neutral-90"],
708
+ borderColor: e["primary-40"],
709
+ "&:hover": {
710
+ backgroundColor: e["primary-30"]
711
+ }
712
+ }
713
+ };
714
+ }, K = (o) => {
715
+ const { borderWidths: e, colors: r } = o;
716
+ return {
717
+ default: {
718
+ backgroundColor: r["beige-40"],
719
+ backgroundImage: `linear-gradient(${r["primary-40"]}, ${r["primary-40"]})`
720
+ },
721
+ selector: {
722
+ backgroundColor: r["neutral-90"],
723
+ borderRadius: "50%",
724
+ border: `${e.md} solid`,
725
+ disabled: {
726
+ backgroundColor: r["beige-60"]
727
+ }
728
+ },
729
+ output: {
730
+ tooltip: {
731
+ backgroundColor: r["neutral-90"],
732
+ border: `${e.sm} solid ${r["neutral-70"]}}`,
733
+ color: r["neutral-10"]
734
+ }
735
+ },
736
+ focused: {
737
+ outline: `${e.md} solid ${r["primary-40"]}`,
738
+ disabled: {
739
+ outline: "none"
740
+ }
741
+ },
742
+ disabled: {
743
+ backgroundImage: `linear-gradient(${r["beige-60"]}, ${r["beige-60"]})`
744
+ },
745
+ rangeInput: {
746
+ disabled: {
747
+ backgroundColor: r["beige-60"]
748
+ }
749
+ }
750
+ };
751
+ }, Z = (o) => {
752
+ const { colors: e } = o;
753
+ return {
754
+ navigation: {
755
+ bullet: {
756
+ active: { backgroundColor: e["primary-40"] },
757
+ default: { backgroundColor: e["beige-40"] }
758
+ }
759
+ }
760
+ };
761
+ }, j = (o) => {
762
+ const { borderWidths: e, colors: r, fontWeights: n, space: a } = o;
763
+ return {
764
+ th: {
765
+ color: r["neutral-60"],
766
+ fontWeight: n.medium,
767
+ textAlign: "left",
768
+ borderBottomColor: r["neutral-90"],
769
+ borderBottomWidth: e.sm,
770
+ borderBottomStyle: "solid"
771
+ },
772
+ td: {
773
+ textAlign: "left",
774
+ padding: a.xl
775
+ },
776
+ tr: {
777
+ default: {
778
+ borderBottomColor: r["neutral-30"],
779
+ borderBottomWidth: e.sm,
780
+ borderBottomStyle: "solid"
781
+ },
782
+ danger: {
783
+ backgroundColor: r["red-10"],
784
+ color: r["red-70"]
785
+ },
786
+ warning: {
787
+ backgroundColor: r["orange-10"],
788
+ color: r["orange-80"]
789
+ },
790
+ info: {
791
+ backgroundColor: r["blue-10"],
792
+ color: r["blue-70"]
793
+ },
794
+ success: {
795
+ backgroundColor: r["green-10"],
796
+ color: r["green-70"]
797
+ },
798
+ clickable: {
799
+ cursor: "pointer"
800
+ }
801
+ }
802
+ };
803
+ }, q = (o) => {
804
+ const { borderWidths: e, colors: r, fontSizes: n, fontWeights: a, lineHeights: i, space: d } = o;
805
+ return {
806
+ tabsBorder: {
807
+ horizontal: {
808
+ boxShadow: `inset 0 -${e.sm} 0 ${r["neutral-30"]}`
809
+ },
810
+ vertical: {
811
+ boxShadow: `inset -${e.sm} 0 0 ${r["neutral-30"]}`
812
+ }
813
+ },
814
+ item: {
815
+ default: {
816
+ color: r["neutral-70"],
817
+ fontWeight: a.medium,
818
+ textDecoration: "none",
819
+ lineHeight: i.md
820
+ },
821
+ active: {
822
+ color: r["neutral-90"]
823
+ },
824
+ focus: {
825
+ color: r["neutral-90"]
826
+ },
827
+ disabled: {
828
+ color: r["neutral-50"]
829
+ },
830
+ size: {
831
+ sm: {
832
+ fontSize: n.sm
833
+ },
834
+ md: {
835
+ fontSize: n.md
836
+ }
837
+ }
838
+ },
839
+ panel: {
840
+ vertical: {
841
+ "&:focus": {
842
+ outline: "none"
843
+ }
844
+ },
845
+ horizontal: {
846
+ marginTop: d.xl,
847
+ "&:focus": {
848
+ outline: "none"
849
+ }
850
+ }
851
+ },
852
+ activeBar: {
853
+ horizontal: {
854
+ background: r["primary-40"],
855
+ height: e.md
856
+ },
857
+ vertical: {
858
+ background: r["primary-40"],
859
+ width: e.md
860
+ }
861
+ },
862
+ icon: {
863
+ maxWidth: d.lg,
864
+ maxHeight: d.lg
865
+ },
866
+ badge: {
867
+ maxHeight: d.lg
868
+ }
869
+ };
870
+ }, Q = (o) => {
871
+ const { colors: e, fontSizes: r, fontWeights: n, radii: a, space: i, toRem: d } = o, l = {
872
+ xs: d(20),
873
+ sm: d(24),
874
+ md: d(32)
875
+ }, s = (u) => ({
876
+ backgroundColor: e[`${u}-10`],
877
+ color: e[`${u}-90`]
878
+ }), t = (u) => ({
879
+ backgroundColor: e[`${u}-20`]
880
+ }), c = (u) => ({
881
+ backgroundColor: e[`${u}-${u === "green" ? "30" : "40"}`],
882
+ color: e["neutral-90"]
883
+ }), g = (u) => ({
884
+ backgroundColor: e[`${u}-${u === "green" ? "40" : "50"}`]
885
+ });
886
+ return {
887
+ default: {
888
+ fontWeight: n.medium,
889
+ borderRadius: a.md
890
+ },
891
+ variants: {
892
+ default: {
893
+ backgroundColor: e["beige-20"],
894
+ color: e["beige-90"]
895
+ },
896
+ primary: {
897
+ color: o.colors["neutral-90"],
898
+ backgroundColor: e["primary-40"]
899
+ },
900
+ success: s("green"),
901
+ danger: s("red"),
902
+ warning: s("orange"),
903
+ info: s("blue"),
904
+ teal: c("teal"),
905
+ blue: c("blue"),
906
+ orange: c("orange"),
907
+ pink: c("pink"),
908
+ green: c("green"),
909
+ violet: c("violet")
910
+ },
911
+ hover: {
912
+ default: {
913
+ backgroundColor: e["beige-30"]
914
+ },
915
+ primary: {
916
+ backgroundColor: e["primary-50"]
917
+ },
918
+ success: t("green"),
919
+ danger: t("red"),
920
+ warning: t("orange"),
921
+ info: t("blue"),
922
+ teal: g("teal"),
923
+ blue: g("blue"),
924
+ orange: g("orange"),
925
+ pink: g("pink"),
926
+ green: g("green"),
927
+ violet: g("violet")
928
+ },
929
+ sizes: {
930
+ xs: {
931
+ padding: `${i.xxs} ${i.xs}`,
932
+ height: l.xs,
933
+ fontSize: r.xs,
934
+ gap: i.xs,
935
+ borderRadius: a.sm
936
+ },
937
+ sm: {
938
+ padding: `${i.xs} ${i.sm}`,
939
+ height: l.sm,
940
+ fontSize: r.xs,
941
+ gap: i.xs
942
+ },
943
+ md: {
944
+ padding: `${i.xs} ${i.sm}`,
945
+ height: l.md,
946
+ fontSize: r.sm,
947
+ gap: i.sm
948
+ }
949
+ },
950
+ icon: {
951
+ xs: d(12),
952
+ sm: d(12),
953
+ md: d(16)
954
+ },
955
+ shape: {
956
+ xs: {
957
+ width: l.xs,
958
+ height: l.xs
959
+ },
960
+ sm: {
961
+ width: l.sm,
962
+ height: l.sm
963
+ },
964
+ md: {
965
+ width: l.md,
966
+ height: l.md
967
+ }
968
+ }
969
+ };
970
+ }, ee = (o) => {
971
+ const { space: e, toRem: r } = o;
972
+ return {
973
+ minHeight: r(130),
974
+ padding: e.md
975
+ };
976
+ }, re = (o, e) => {
977
+ const { toEm: r, toRem: n } = e, a = n;
978
+ return {
979
+ h0: a(65),
980
+ h1: a(45),
981
+ h2: a(36),
982
+ h3: a(26),
983
+ h4: a(20),
984
+ h5: a(16),
985
+ h6: a(14),
986
+ lg: a(18),
987
+ md: a(16),
988
+ sm: a(14),
989
+ "subtitle-md": a(13),
990
+ "subtitle-sm": a(11),
991
+ xs: a(12)
992
+ };
993
+ }, oe = ({
994
+ defaultLineHeight: o,
995
+ toRem: e
996
+ }) => ({
997
+ html: o,
998
+ h0: e(72),
999
+ h1: e(48),
1000
+ h2: e(40),
1001
+ h3: e(32),
1002
+ h4: e(24),
1003
+ h5: e(18),
1004
+ h6: e(16),
1005
+ lg: e(24),
1006
+ md: e(18),
1007
+ sm: e(18),
1008
+ xs: e(14),
1009
+ "subtitle-md": o,
1010
+ "subtitle-sm": o
1011
+ }), te = {
1012
+ regular: 400,
1013
+ medium: 500,
1014
+ bold: 600
1015
+ }, ne = ({
1016
+ defaultLetterSpacing: o,
1017
+ toRem: e
1018
+ }) => ({
1019
+ html: o,
1020
+ h0: e(-1.7),
1021
+ h1: e(-1.2),
1022
+ h2: e(-1),
1023
+ h3: e(-0.9),
1024
+ h4: e(-0.6),
1025
+ h5: e(-0.5),
1026
+ h6: e(-0.5),
1027
+ lg: o,
1028
+ md: o,
1029
+ sm: o,
1030
+ xs: e(-0.2),
1031
+ "subtitle-md": e(-0.2),
1032
+ "subtitle-sm": e(-0.2)
1033
+ }), ae = (o) => {
1034
+ const { fontWeights: e } = o;
1035
+ return {
1036
+ h0: e.bold,
1037
+ h1: e.bold,
1038
+ h2: e.bold,
1039
+ h3: e.bold,
1040
+ h4: e.bold,
1041
+ h5: e.bold,
1042
+ h6: e.bold,
1043
+ lg: e.regular,
1044
+ md: e.regular,
1045
+ sm: e.regular,
1046
+ "subtitle-md": e.bold,
1047
+ "subtitle-sm": e.medium,
1048
+ xs: e.regular
1049
+ };
1050
+ }, le = (o) => {
1051
+ const { fonts: e } = o;
1052
+ return {
1053
+ h0: e.headings,
1054
+ h1: e.headings,
1055
+ h2: e.headings,
1056
+ h3: e.headings,
1057
+ h4: e.headings,
1058
+ h5: e.headings,
1059
+ h6: e.headings,
1060
+ "subtitle-md": e.headings,
1061
+ "subtitle-sm": e.headings
1062
+ };
1063
+ }, ie = () => ({
1064
+ "subtitle-md": "uppercase",
1065
+ "subtitle-sm": "uppercase"
1066
+ }), de = (o) => {
1067
+ const { colors: e } = o;
1068
+ return {
1069
+ h0: e["neutral-90"],
1070
+ h1: e["neutral-90"],
1071
+ h2: e["neutral-90"],
1072
+ h3: e["neutral-90"],
1073
+ h4: e["neutral-90"],
1074
+ h5: e["neutral-90"],
1075
+ h6: e["neutral-90"]
1076
+ };
1077
+ }, C = (o) => {
1078
+ const {
1079
+ fontSizes: e,
1080
+ letterSpacings: r,
1081
+ lineHeights: n,
1082
+ textsFontColors: a,
1083
+ textsFontFamily: i,
1084
+ textsFontWeights: d,
1085
+ textsTextTransform: l
1086
+ } = o;
1087
+ return Object.keys(e).reduce((s, t) => ({
1088
+ ...s,
1089
+ [t]: {
1090
+ color: a[t],
1091
+ fontFamily: i[t] || void 0,
1092
+ fontWeight: d[t],
1093
+ fontSize: e[t],
1094
+ lineHeight: n[t] || n.lg,
1095
+ letterSpacing: r[t] || void 0,
1096
+ textTransform: l[t] || void 0
1097
+ }
1098
+ }), {});
1099
+ }, se = (o, e, r) => ({
1100
+ texts: [o, "sans-serif"].join(", "),
1101
+ headings: [e, "sans-serif"].join(", "),
1102
+ icons: r
1103
+ }), ce = (o) => {
1104
+ const { borderWidths: e, colors: r, fontWeights: n, radii: a, space: i } = o;
1105
+ return {
1106
+ default: {
1107
+ paddingLeft: i.sm,
1108
+ paddingRight: i.sm
1109
+ },
1110
+ top: {
1111
+ paddingTop: i.lg
1112
+ },
1113
+ bottom: {
1114
+ paddingBottom: i.lg
1115
+ },
1116
+ growls: {
1117
+ default: {
1118
+ ...C(o).sm,
1119
+ borderWidth: e.sm,
1120
+ borderStyle: "solid",
1121
+ borderRadius: a.lg,
1122
+ maxWidth: 340
1123
+ },
1124
+ title: {
1125
+ fontWeight: n.bold,
1126
+ color: r["neutral-90"]
1127
+ }
1128
+ },
1129
+ snackbar: {
1130
+ default: {
1131
+ borderRadius: a.lg
1132
+ },
1133
+ separator: {
1134
+ default: {
1135
+ borderLeft: "1px solid",
1136
+ borderLeftColor: r["neutral-30"]
1137
+ },
1138
+ danger: {
1139
+ borderLeftColor: r["red-20"]
1140
+ },
1141
+ warning: {
1142
+ borderLeftColor: r["orange-20"]
1143
+ },
1144
+ info: {
1145
+ borderLeftColor: r["blue-30"]
1146
+ },
1147
+ success: {
1148
+ borderLeftColor: r["green-30"]
1149
+ }
1150
+ }
1151
+ }
1152
+ };
1153
+ }, ge = "0.32rem !important", ue = "0.12rem ! important", me = (o) => {
1154
+ const { borderWidths: e, colors: r, focus: n, toRem: a } = o;
1155
+ return {
1156
+ item: {
1157
+ default: {
1158
+ backgroundColor: r["neutral-10"],
1159
+ borderColor: r["neutral-30"],
1160
+ borderWidth: e.sm,
1161
+ borderStyle: "solid",
1162
+ borderRadius: a(16),
1163
+ "&:focus": {
1164
+ borderColor: r["primary-30"],
1165
+ ...n(r["primary-30"])
1166
+ }
1167
+ },
1168
+ sizes: {
1169
+ xs: {
1170
+ width: a(28),
1171
+ height: a(16),
1172
+ marginTop: ge
1173
+ },
1174
+ sm: {
1175
+ width: a(36),
1176
+ height: a(20),
1177
+ marginTop: ue
1178
+ },
1179
+ md: {
1180
+ width: a(44),
1181
+ height: a(24),
1182
+ marginTop: "0 !important"
1183
+ }
1184
+ },
1185
+ checked: {
1186
+ backgroundColor: r["primary-40"],
1187
+ borderColor: r["primary-40"]
1188
+ },
1189
+ disabled: {
1190
+ borderColor: r["beige-60"],
1191
+ backgroundColor: r["beige-40"]
1192
+ }
1193
+ },
1194
+ after: {
1195
+ default: {
1196
+ backgroundColor: r["neutral-10"],
1197
+ borderColor: r["neutral-50"],
1198
+ borderWidth: e.sm,
1199
+ borderStyle: "solid",
1200
+ borderRadius: "50%"
1201
+ },
1202
+ checked: {
1203
+ backgroundColor: r["neutral-10"],
1204
+ borderColor: r["neutral-10"]
1205
+ },
1206
+ disabled: {
1207
+ borderColor: "transparent",
1208
+ backgroundColor: r["beige-60"]
1209
+ },
1210
+ sizes: {
1211
+ xs: {
1212
+ width: a(12),
1213
+ height: a(12)
1214
+ },
1215
+ sm: {
1216
+ width: a(16),
1217
+ height: a(16)
1218
+ },
1219
+ md: {
1220
+ width: a(20),
1221
+ height: a(20)
1222
+ }
1223
+ }
1224
+ },
1225
+ icon: {
1226
+ position: {
1227
+ xs: {
1228
+ left: "2px",
1229
+ right: "2px"
1230
+ },
1231
+ sm: {
1232
+ left: "4px",
1233
+ right: "4px"
1234
+ },
1235
+ md: {
1236
+ left: "4px",
1237
+ right: "4px"
1238
+ }
1239
+ },
1240
+ sizes: {
1241
+ xs: {
1242
+ width: a(10),
1243
+ height: a(10),
1244
+ fontSize: a(10)
1245
+ },
1246
+ sm: {
1247
+ width: a(12),
1248
+ height: a(12),
1249
+ fontSize: a(12)
1250
+ },
1251
+ md: {
1252
+ width: a(16),
1253
+ height: a(16),
1254
+ fontSize: a(16)
1255
+ }
1256
+ }
1257
+ }
1258
+ };
1259
+ }, be = (o) => {
1260
+ const { borderWidths: e, colors: r, fontSizes: n, fontWeights: a, radii: i, space: d, toRem: l } = o;
1261
+ return {
1262
+ maxWidth: l(200),
1263
+ backgroundColor: r["neutral-90"],
1264
+ color: r["neutral-10"],
1265
+ padding: `${d.xs} ${d.sm}`,
1266
+ fontSize: n.sm,
1267
+ fontWeight: a.medium,
1268
+ border: `${e.sm} solid ${r["neutral-60"]}`,
1269
+ borderRadius: i.md,
1270
+ boxSizing: "border-box"
1271
+ };
1272
+ }, pe = (o) => {
1273
+ const { colors: e } = o;
1274
+ return {
1275
+ default: {
1276
+ color: e["neutral-90"]
1277
+ },
1278
+ danger: {
1279
+ color: e["red-70"]
1280
+ },
1281
+ success: {
1282
+ color: e["green-60"]
1283
+ },
1284
+ warning: {
1285
+ color: e["orange-60"]
1286
+ },
1287
+ info: {
1288
+ color: e["blue-60"]
1289
+ }
1290
+ };
1291
+ }, fe = {
344
1292
  "beige-10": "#FBF9F7",
345
1293
  "beige-20": "#F6F3EF",
346
1294
  "beige-30": "#EAE4DE",
@@ -446,221 +1394,94 @@ const N = (r) => {
446
1394
  "yellow-70": "#846A01",
447
1395
  "yellow-80": "#604D00",
448
1396
  "yellow-90": "#423500"
449
- }, E = (r) => ({
450
- ...r,
451
- "primary-10": r["yellow-10"],
452
- "primary-20": r["yellow-20"],
453
- "primary-30": r["yellow-30"],
454
- "primary-40": r["yellow-40"],
455
- "primary-50": r["yellow-50"],
456
- "primary-60": r["yellow-60"],
457
- "primary-70": r["yellow-70"],
458
- "primary-80": r["yellow-80"],
459
- "primary-90": r["yellow-90"],
460
- "secondary-blue": r["blue-40"],
461
- "secondary-green": r["green-30"],
462
- "secondary-orange": r["red-orange-40"],
463
- "secondary-pink": r["pink-40"],
464
- "secondary-teal": r["teal-40"],
465
- "secondary-violet": r["violet-40"],
1397
+ }, y = (o) => ({
1398
+ ...o,
1399
+ "primary-10": o["yellow-10"],
1400
+ "primary-20": o["yellow-20"],
1401
+ "primary-30": o["yellow-30"],
1402
+ "primary-40": o["yellow-40"],
1403
+ "primary-50": o["yellow-50"],
1404
+ "primary-60": o["yellow-60"],
1405
+ "primary-70": o["yellow-70"],
1406
+ "primary-80": o["yellow-80"],
1407
+ "primary-90": o["yellow-90"],
1408
+ "secondary-blue": o["blue-40"],
1409
+ "secondary-green": o["green-30"],
1410
+ "secondary-orange": o["red-orange-40"],
1411
+ "secondary-pink": o["pink-40"],
1412
+ "secondary-teal": o["teal-40"],
1413
+ "secondary-violet": o["violet-40"],
466
1414
  overlay: "rgba(0, 0, 0, 0.55)"
467
- }), x = E(M), Y = Object.keys(x).reduce((r, e) => {
468
- if (e.startsWith("secondary-") || e === "overlay") return r;
469
- const t = 100 - Number(e.slice(-2)), n = e.slice(0, e.length - 2);
470
- return {
471
- ...r,
472
- [e]: x[`${n}${t}`]
473
- };
474
- }, {}), j = {
475
- ...x,
476
- ...E(Y)
477
- }, Oe = {
478
- colors: j
479
- }, q = (r) => ({
1415
+ }), p = y(fe), he = Object.keys(p).reduce((o, e) => {
1416
+ if (e.startsWith("secondary-") || e === "overlay") return o;
1417
+ const r = 100 - Number(e.slice(-2)), n = e.slice(0, e.length - 2);
1418
+ return {
1419
+ ...o,
1420
+ [e]: p[`${n}${r}`]
1421
+ };
1422
+ }, {}), xe = {
1423
+ ...p,
1424
+ ...y(he)
1425
+ }, Xe = {
1426
+ colors: xe
1427
+ }, Ce = (o) => ({
480
1428
  "welcome-font": [
481
1429
  {
482
- url: `${r.fontsUrl}/welcome-font-regular`,
1430
+ url: `${o.fontsUrl}/welcome-font-regular`,
483
1431
  weight: "400"
484
1432
  },
485
1433
  {
486
- url: `${r.fontsUrl}/welcome-font-medium`,
1434
+ url: `${o.fontsUrl}/welcome-font-medium`,
487
1435
  weight: "500"
488
1436
  },
489
1437
  {
490
- url: `${r.fontsUrl}/welcome-font-bold`,
1438
+ url: `${o.fontsUrl}/welcome-font-bold`,
491
1439
  weight: "600"
492
1440
  },
493
1441
  {
494
- url: `${r.fontsUrl}/welcome-font-regular-italic`,
1442
+ url: `${o.fontsUrl}/welcome-font-regular-italic`,
495
1443
  style: "italic",
496
1444
  weight: "400"
497
1445
  },
498
1446
  {
499
- url: `${r.fontsUrl}/welcome-font-medium-italic`,
1447
+ url: `${o.fontsUrl}/welcome-font-medium-italic`,
500
1448
  style: "italic",
501
1449
  weight: "500"
502
1450
  },
503
1451
  {
504
- url: `${r.fontsUrl}/welcome-font-bold-italic`,
1452
+ url: `${o.fontsUrl}/welcome-font-bold-italic`,
505
1453
  style: "italic",
506
1454
  weight: "600"
507
1455
  }
508
1456
  ],
509
1457
  "welcome-icon-font": [
510
1458
  {
511
- url: `${r.fontsUrl}/icon-font/__ICON_FONT_HASH__/welcome-icon-font`,
1459
+ url: `${o.fontsUrl}/icon-font/__ICON_FONT_HASH__/welcome-icon-font`,
512
1460
  display: "block"
513
1461
  }
514
1462
  ],
515
1463
  "work-sans": [
516
1464
  {
517
- url: `${r.fontsUrl}/work-sans-variable`,
1465
+ url: `${o.fontsUrl}/work-sans-variable`,
518
1466
  isVariable: !0,
519
1467
  stretch: "75% 125%",
520
1468
  weight: "100 1000"
521
1469
  }
522
1470
  ]
523
- }), V = (r, e) => {
524
- const { toEm: t, toRem: n } = e, a = n;
525
- return {
526
- h0: a(65),
527
- h1: a(45),
528
- h2: a(36),
529
- h3: a(26),
530
- h4: a(20),
531
- h5: a(16),
532
- h6: a(14),
533
- lg: a(18),
534
- md: a(16),
535
- sm: a(14),
536
- "subtitle-md": a(13),
537
- "subtitle-sm": a(11),
538
- xs: a(12)
539
- };
540
- }, Z = ({
541
- defaultLineHeight: r,
542
- toRem: e
543
- }) => ({
544
- html: r,
545
- h0: e(72),
546
- h1: e(48),
547
- h2: e(40),
548
- h3: e(32),
549
- h4: e(24),
550
- h5: e(18),
551
- h6: e(16),
552
- lg: e(24),
553
- md: e(18),
554
- sm: e(18),
555
- xs: e(14),
556
- "subtitle-md": r,
557
- "subtitle-sm": r
558
- }), J = {
559
- regular: 400,
560
- medium: 500,
561
- bold: 600
562
- }, K = ({
563
- defaultLetterSpacing: r,
564
- toRem: e
565
- }) => ({
566
- html: r,
567
- h0: e(-1.7),
568
- h1: e(-1.2),
569
- h2: e(-1),
570
- h3: e(-0.9),
571
- h4: e(-0.6),
572
- h5: e(-0.5),
573
- h6: e(-0.5),
574
- lg: r,
575
- md: r,
576
- sm: r,
577
- xs: e(-0.2),
578
- "subtitle-md": e(-0.2),
579
- "subtitle-sm": e(-0.2)
580
- }), Q = (r) => {
581
- const { fontWeights: e } = r;
582
- return {
583
- h0: e.bold,
584
- h1: e.bold,
585
- h2: e.bold,
586
- h3: e.bold,
587
- h4: e.bold,
588
- h5: e.bold,
589
- h6: e.bold,
590
- lg: e.regular,
591
- md: e.regular,
592
- sm: e.regular,
593
- "subtitle-md": e.bold,
594
- "subtitle-sm": e.medium,
595
- xs: e.regular
596
- };
597
- }, X = (r) => {
598
- const { fonts: e } = r;
599
- return {
600
- h0: e.headings,
601
- h1: e.headings,
602
- h2: e.headings,
603
- h3: e.headings,
604
- h4: e.headings,
605
- h5: e.headings,
606
- h6: e.headings,
607
- "subtitle-md": e.headings,
608
- "subtitle-sm": e.headings
609
- };
610
- }, ee = () => ({
611
- "subtitle-md": "uppercase",
612
- "subtitle-sm": "uppercase"
613
- }), re = (r) => {
614
- const { colors: e } = r;
615
- return {
616
- h0: e["neutral-90"],
617
- h1: e["neutral-90"],
618
- h2: e["neutral-90"],
619
- h3: e["neutral-90"],
620
- h4: e["neutral-90"],
621
- h5: e["neutral-90"],
622
- h6: e["neutral-90"]
623
- };
624
- }, oe = (r) => {
625
- const {
626
- fontSizes: e,
627
- letterSpacings: t,
628
- lineHeights: n,
629
- textsFontColors: a,
630
- textsFontFamily: s,
631
- textsFontWeights: c,
632
- textsTextTransform: l
633
- } = r;
634
- return Object.keys(e).reduce((i, o) => ({
635
- ...i,
636
- [o]: {
637
- color: a[o],
638
- fontFamily: s[o] || void 0,
639
- fontWeight: c[o],
640
- fontSize: e[o],
641
- lineHeight: n[o] || n.lg,
642
- letterSpacing: t[o] || void 0,
643
- textTransform: l[o] || void 0
644
- }
645
- }), {});
646
- }, te = (r, e, t) => ({
647
- texts: [r, "sans-serif"].join(", "),
648
- headings: [e, "sans-serif"].join(", "),
649
- icons: t
650
- }), F = {
1471
+ }), b = {
651
1472
  primary: "ease",
652
1473
  secondary: "linear",
653
1474
  tertiary: "cubic-bezier(0.41, 0.094, 0.54, 0.07)"
654
- }, ne = {
655
- slow: `500ms ${F.tertiary}`,
656
- medium: `300ms ${F.primary}`,
657
- fast: `100ms ${F.secondary}`
658
- }, ae = ({ colors: r }) => ({
659
- default: g`
1475
+ }, ye = {
1476
+ slow: `500ms ${b.tertiary}`,
1477
+ medium: `300ms ${b.primary}`,
1478
+ fast: `100ms ${b.secondary}`
1479
+ }, ke = ({ colors: o }) => ({
1480
+ default: h`
660
1481
  background-image: linear-gradient(
661
1482
  0deg,
662
- ${r["primary-40"]},
663
- ${r["primary-40"]} 100%
1483
+ ${o["primary-40"]},
1484
+ ${o["primary-40"]} 100%
664
1485
  );
665
1486
  background-repeat: no-repeat;
666
1487
  background-size: 100% 50%;
@@ -670,24 +1491,24 @@ const N = (r) => {
670
1491
  background-size 250ms,
671
1492
  color 250ms;
672
1493
  `,
673
- hover: g`
1494
+ hover: h`
674
1495
  opacity: 1;
675
1496
  background-position-y: 100%;
676
1497
  background-size: 100% 100%;
677
1498
  `
678
- }), le = (r) => ({
1499
+ }), Fe = (o) => ({
679
1500
  none: "0",
680
- sm: r.toRem(2),
681
- md: r.toRem(4),
682
- lg: r.toRem(8),
683
- xl: r.toRem(16),
684
- xxl: r.toRem(24),
1501
+ sm: o.toRem(2),
1502
+ md: o.toRem(4),
1503
+ lg: o.toRem(8),
1504
+ xl: o.toRem(16),
1505
+ xxl: o.toRem(24),
685
1506
  full: "100%"
686
- }), se = {
1507
+ }), we = {
687
1508
  sm: "1px",
688
1509
  md: "2px",
689
1510
  lg: "3px"
690
- }, ie = {
1511
+ }, Se = {
691
1512
  xs: 0,
692
1513
  sm: 480,
693
1514
  md: 736,
@@ -696,277 +1517,367 @@ const N = (r) => {
696
1517
  xxl: 1440,
697
1518
  "3xl": 1620,
698
1519
  "4xl": 1920
699
- }, de = {
1520
+ }, ve = {
700
1521
  sm: "1px 2px 4px 0 rgba(0,0,0,0.05)",
701
1522
  md: "3px 4px 10px 0 rgba(0,0,0,0.07)"
702
- }, ce = (r) => ({
703
- xxs: r.toRem(2),
704
- xs: r.toRem(4),
705
- sm: r.toRem(8),
706
- md: r.toRem(12),
707
- lg: r.toRem(16),
708
- xl: r.toRem(24),
709
- xxl: r.toRem(32),
710
- "3xl": r.toRem(48),
711
- "4xl": r.toRem(64),
712
- "5xl": r.toRem(96),
713
- "6xl": r.toRem(128),
714
- "7xl": r.toRem(192)
715
- }), ue = (r) => ({
716
- backgroundColor: r.colors["primary-40"],
717
- color: r.colors["neutral-90"]
718
- }), ge = ({ colors: r }) => {
719
- function e(t = r["primary-40"]) {
1523
+ }, Te = (o) => ({
1524
+ xxs: o.toRem(2),
1525
+ xs: o.toRem(4),
1526
+ sm: o.toRem(8),
1527
+ md: o.toRem(12),
1528
+ lg: o.toRem(16),
1529
+ xl: o.toRem(24),
1530
+ xxl: o.toRem(32),
1531
+ "3xl": o.toRem(48),
1532
+ "4xl": o.toRem(64),
1533
+ "5xl": o.toRem(96),
1534
+ "6xl": o.toRem(128),
1535
+ "7xl": o.toRem(192)
1536
+ }), De = (o) => ({
1537
+ backgroundColor: o.colors["primary-40"],
1538
+ color: o.colors["neutral-90"]
1539
+ }), $e = ({ colors: o }) => {
1540
+ function e(r = o["primary-40"]) {
720
1541
  return {
721
- boxShadow: `0 0 0 2px ${t}`
1542
+ boxShadow: `0 0 0 2px ${r}`
722
1543
  };
723
1544
  }
724
1545
  return e;
725
- }, me = "work-sans", be = 16, pe = "-0.019rem", he = 1.15, fe = "https://cdn.welcome-ui.com/fonts", Fe = "welcome-font", xe = "welcome-icon-font", Le = (r = {}) => {
726
- const {
727
- defaultFontFamily: e = me,
728
- defaultFontSize: t = be,
729
- defaultLetterSpacing: n = pe,
730
- defaultLineHeight: a = he,
731
- fontsUrl: s = fe,
732
- headingFontFamily: c = Fe,
733
- iconFontFamily: l = xe,
734
- ...i
735
- } = r;
736
- let o = {};
737
- return o.transformers = { ...k }, o.toEm = (b) => `${b / t}em`, o.toRem = (b) => `${b / t}rem`, o.toPx = (b) => `${b * t}px`, o.colors = x, o.fontsUrl = s, o.fontFaces = q(o), o.fontSizes = V("rem", o), o.defaultLineHeight = a, o.defaultLetterSpacing = n, o.lineHeights = Z(o), o.fontWeights = J, o.letterSpacings = K(o), o.fonts = te(e, c, l), o.borderWidths = se, o.screens = ie, o.space = ce(o), o.inset = o.space, o.radii = le(o), o.transitions = ne, o.timingFunction = F, o.shadows = de, o = y(o, i), o.selection = ue(o), o.underline = ae(o), o.focus = ge(o), o.textsFontWeights = Q(o), o.textsFontFamily = X(o), o.textsFontColors = re(o), o.textsTextTransform = ee(), o.texts = oe(o), o.accordions = N(o), o.alerts = I(o), o.avatars = O(o), o.badges = L(o), o.breadcrumbs = H(o), o.buttons = G(o), o.cards = P(o), o.states = D.states, o = y(o, i), o;
738
- }, ye = (r, e = "square") => g`
739
- width: ${d(`buttons.sizes.${r}.height`)};
740
- padding: 0;
741
- ${e === "circle" && g`
742
- border-radius: ${d(`buttons.sizes.${r}.height`)};
743
- `};
744
- `, A = m(R).withConfig({ shouldForwardProp: z })(
745
- ({ danger: r, disabled: e, shape: t, size: n = "md", variant: a = "primary" }) => g`
746
- ${d(`buttons.${a}`)};
747
- ${r && g`
748
- ${d(`buttons.danger.${a}`)};
749
- `}
750
- position: relative;
751
- display: inline-flex;
752
- align-items: center;
753
- justify-content: center;
754
- width: auto;
755
- ${d(`buttons.sizes.${n}`)};
756
- text-decoration: none;
757
- text-align: center;
758
- white-space: nowrap;
759
- cursor: pointer;
760
- outline: none !important; /* important for firefox */
761
- border-width: sm;
762
- border-style: solid;
763
- appearance: none;
764
- overflow: hidden;
765
- transition: medium;
766
- ${t && ye(n, t)};
767
- ${p};
768
-
769
- & > svg.wui-icon,
770
- & > i.wui-icon-font {
771
- font-weight: initial;
772
-
773
- &:only-child {
774
- width: ${d(`buttons.icon.only.${n}`)};
775
- height: ${d(`buttons.icon.only.${n}`)};
776
- font-size: ${d(`buttons.icon.only.${n}`)};
777
- }
778
- &:not(:only-child) {
779
- width: ${d(`buttons.icon.default.${n}`)};
780
- height: ${d(`buttons.icon.default.${n}`)};
781
- font-size: ${d(`buttons.icon.default.${n}`)};
1546
+ }, We = (o) => {
1547
+ const { borderWidths: e, colors: r, focus: n, fontSizes: a, fontWeights: i, radii: d, space: l, toRem: s } = o;
1548
+ return {
1549
+ default: {
1550
+ color: r["neutral-90"],
1551
+ fontSize: a.sm,
1552
+ /* Can't use 16 because that's a valid line-height value (16em) */
1553
+ lineHeight: "1rem",
1554
+ fontWeight: i.regular,
1555
+ backgroundColor: r["neutral-10"],
1556
+ borderColor: r["neutral-30"],
1557
+ borderWidth: e.sm,
1558
+ borderStyle: "solid",
1559
+ outline: "none",
1560
+ borderRadius: d.md
1561
+ },
1562
+ hover: {
1563
+ default: {
1564
+ borderColor: r["neutral-40"]
1565
+ },
1566
+ transparency: {
1567
+ borderColor: r["neutral-20"]
782
1568
  }
783
- }
784
-
785
- & > *:not(:only-child):not(:last-child) {
786
- margin-right: sm;
787
- }
788
-
789
- ${!e && g`
790
- [${S}] &:focus {
791
- box-shadow: none;
792
- }
793
- &:focus {
794
- ${d(`buttons.focus.${a}`)};
795
- ${r && g`
796
- ${d(`buttons.focus.danger.${a}`)};
797
- `}
798
- }
799
- &:hover {
800
- ${d(`buttons.hover.${a}`)};
801
- ${r && g`
802
- ${d(`buttons.hover.danger.${a}`)};
803
- `}
804
- }
805
- &:active {
806
- ${d(`buttons.active.${a}`)};
807
- ${r && g`
808
- ${d(`buttons.active.danger.${a}`)};
809
- `}
810
- }
811
- `};
812
-
813
- &[disabled] {
814
- cursor: not-allowed;
815
- }
816
- `
817
- ), $ = h(
818
- ({
819
- children: r,
820
- danger: e,
821
- dataTestId: t,
822
- disabled: n,
823
- isLoading: a,
824
- size: s = "md",
825
- variant: c = "primary",
826
- ...l
827
- }, i) => {
828
- const o = n || a;
829
- return /* @__PURE__ */ u.createElement(
830
- A,
831
- {
832
- danger: e,
833
- "data-loading": a,
834
- "data-testid": t,
835
- disabled: o,
836
- ref: i,
837
- size: s,
838
- variant: o ? "disabled" : c,
839
- ...l
840
- },
841
- a && /* @__PURE__ */ u.createElement("div", null, /* @__PURE__ */ u.createElement(
842
- C,
843
- {
844
- alignItems: "center",
845
- bottom: 0,
846
- display: "flex",
847
- justifyContent: "center",
848
- left: 0,
849
- m: 0,
850
- position: "absolute",
851
- right: 0,
852
- top: 0
853
- },
854
- /* @__PURE__ */ u.createElement(T, { size: "xs" })
855
- ), /* @__PURE__ */ u.createElement(C, { opacity: "0" }, r)),
856
- !a && r
857
- );
858
- }
859
- );
860
- $.displayName = "Button";
861
- const He = A, $e = m.div`
862
- display: inline-flex;
863
- flex-wrap: wrap;
864
- align-items: center;
865
- margin-top: -3px;
866
-
867
- > * {
868
- margin-top: 3px;
869
-
870
- &:not(:only-child) {
871
- &:not(:last-child) {
872
- border-right-color: rgba(255, 255, 255, 0.4);
873
- }
874
-
875
- &:first-child {
876
- border-top-right-radius: 0;
877
- border-bottom-right-radius: 0;
878
- }
879
-
880
- &:last-child {
881
- border-top-left-radius: 0;
882
- border-bottom-left-radius: 0;
883
- }
884
-
885
- &:not(:last-child):not(:first-child) {
886
- border-radius: 0;
1569
+ },
1570
+ variants: {
1571
+ danger: {
1572
+ borderColor: r["red-70"]
1573
+ },
1574
+ success: {
1575
+ borderColor: r["green-60"]
1576
+ },
1577
+ warning: {
1578
+ borderColor: r["orange-60"]
1579
+ }
1580
+ },
1581
+ focused: {
1582
+ default: {
1583
+ ...n(r["primary-20"]),
1584
+ borderColor: r["primary-40"]
1585
+ },
1586
+ danger: { ...n(r["red-30"]) },
1587
+ warning: { ...n(r["orange-20"]) },
1588
+ success: { ...n(r["green-30"]) }
1589
+ },
1590
+ sizes: {
1591
+ xs: {
1592
+ height: s(24),
1593
+ paddingTop: l.xs,
1594
+ paddingRight: l.sm,
1595
+ paddingBottom: l.xs,
1596
+ paddingLeft: l.sm
1597
+ },
1598
+ sm: {
1599
+ height: s(32),
1600
+ paddingTop: l.sm,
1601
+ paddingRight: l.md,
1602
+ paddingBottom: l.sm,
1603
+ paddingLeft: l.md
1604
+ },
1605
+ md: {
1606
+ height: s(40),
1607
+ paddingTop: l.md,
1608
+ paddingRight: l.md,
1609
+ paddingBottom: l.md,
1610
+ paddingLeft: l.md
1611
+ },
1612
+ lg: {
1613
+ height: s(48),
1614
+ paddingTop: l.lg,
1615
+ paddingRight: l.md,
1616
+ paddingBottom: l.lg,
1617
+ paddingLeft: l.md
1618
+ }
1619
+ },
1620
+ iconPlacement: {
1621
+ xs: {
1622
+ left: s(8),
1623
+ right: s(8)
1624
+ },
1625
+ sm: {
1626
+ left: s(12),
1627
+ right: s(12)
1628
+ },
1629
+ md: {
1630
+ left: s(12),
1631
+ right: s(12)
1632
+ },
1633
+ lg: {
1634
+ left: s(12),
1635
+ right: s(12)
1636
+ }
1637
+ },
1638
+ checkableField: {
1639
+ checked: {
1640
+ color: "neutral-90"
1641
+ // not hex color, only color from browser because is on a content svg
1642
+ },
1643
+ disabled: {
1644
+ opacity: 0.4
1645
+ }
1646
+ },
1647
+ disabled: {
1648
+ backgroundColor: r["beige-40"],
1649
+ color: r["beige-70"],
1650
+ cursor: "not-allowed"
1651
+ },
1652
+ placeholder: {
1653
+ color: r["neutral-50"]
1654
+ },
1655
+ checkablelabel: {
1656
+ default: {},
1657
+ checked: {
1658
+ color: r["neutral-90"],
1659
+ "-webkit-text-stroke": "0.04em"
1660
+ }
1661
+ },
1662
+ select: {
1663
+ default: {
1664
+ maxHeight: s(155),
1665
+ borderRadius: d.md
1666
+ },
1667
+ existing: {
1668
+ color: r["beige-40"],
1669
+ cursor: "not-allowed"
1670
+ },
1671
+ highlighted: {
1672
+ backgroundColor: r["beige-20"],
1673
+ cursor: "default"
1674
+ },
1675
+ selectedAndHighlighted: {
1676
+ backgroundImage: "linear-gradient(0deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08) 100%)"
1677
+ },
1678
+ selected: {
1679
+ color: r["neutral-90"],
1680
+ fontWeight: i.bold
1681
+ },
1682
+ disabled: {
1683
+ color: r["beige-60"],
1684
+ cursor: "not-allowed"
887
1685
  }
1686
+ },
1687
+ fieldset: {
1688
+ "border-width": "0"
888
1689
  }
1690
+ };
1691
+ }, Ae = "work-sans", Be = 16, Ee = "-0.019rem", Re = 1.15, ze = "https://cdn.welcome-ui.com/fonts", Le = "welcome-font", Ie = "welcome-icon-font", Ke = (o = {}) => {
1692
+ const {
1693
+ defaultFontFamily: e = Ae,
1694
+ defaultFontSize: r = Be,
1695
+ defaultLetterSpacing: n = Ee,
1696
+ defaultLineHeight: a = Re,
1697
+ fontsUrl: i = ze,
1698
+ headingFontFamily: d = Le,
1699
+ iconFontFamily: l = Ie,
1700
+ ...s
1701
+ } = o;
1702
+ let t = {};
1703
+ return t.transformers = { ...F }, t.toEm = (c) => `${c / r}em`, t.toRem = (c) => `${c / r}rem`, t.toPx = (c) => `${c * r}px`, t.colors = p, t.fontsUrl = i, t.fontFaces = Ce(t), t.fontSizes = re("rem", t), t.defaultLineHeight = a, t.defaultLetterSpacing = n, t.lineHeights = oe(t), t.fontWeights = te, t.letterSpacings = ne(t), t.fonts = se(e, d, l), t.borderWidths = we, t.screens = Se, t.space = Te(t), t.inset = t.space, t.radii = Fe(t), t.transitions = ye, t.timingFunction = b, t.shadows = ve, t = f(t, s), t.selection = De(t), t.underline = ke(t), t.focus = $e(t), t.textsFontWeights = ae(t), t.textsFontFamily = le(t), t.textsFontColors = de(t), t.textsTextTransform = ie(), t.texts = C(t), t.defaultField = We(t), t.icons = G(t), t.accordions = D(t), t.alerts = $(t), t.avatars = W(t), t.badges = A(t), t.breadcrumbs = B(t), t.buttons = E(t), t.cards = R(t), t.checkboxes = L(t), t.dateTimePickerCommon = z(t), t.drawers = I(t), t.dropdownMenu = H(t), t.fileDrops = U(t), t.hints = _(t), t.labels = P(t), t.links = M(t), t.loaders = N(t), t.modals = O(t), t.pagination = V(t), t.popovers = Y(t), t.radios = J(t), t.radiosTab = X(t), t.sliders = K(t), t.swipers = Z(t), t.tables = j(t), t.tabs = q(t), t.tags = Q(t), t.textareas = ee(t), t.toasts = ce(t), t.toggles = me(t), t.tooltips = be(t), t.variantIcon = pe(t), t.states = w.states, t = f(t, s), t;
1704
+ };
1705
+ var He = function() {
1706
+ var o = document.getSelection();
1707
+ if (!o.rangeCount)
1708
+ return function() {
1709
+ };
1710
+ for (var e = document.activeElement, r = [], n = 0; n < o.rangeCount; n++)
1711
+ r.push(o.getRangeAt(n));
1712
+ switch (e.tagName.toUpperCase()) {
1713
+ case "INPUT":
1714
+ case "TEXTAREA":
1715
+ e.blur();
1716
+ break;
1717
+ default:
1718
+ e = null;
1719
+ break;
889
1720
  }
890
-
891
- ${p};
892
- `, Ge = h(
893
- ({ children: r, dataTestId: e, disabled: t, size: n, variant: a }, s) => {
894
- function c(l) {
895
- return W.toArray(l).filter(Boolean).map((i) => _(i, {
896
- ...i.props,
897
- disabled: t || i.props.disabled,
898
- size: n || i.props.size,
899
- variant: a || i.props.variant
900
- }));
1721
+ return o.removeAllRanges(), function() {
1722
+ o.type === "Caret" && o.removeAllRanges(), o.rangeCount || r.forEach(function(a) {
1723
+ o.addRange(a);
1724
+ }), e && e.focus();
1725
+ };
1726
+ }, Ue = He, x = {
1727
+ "text/plain": "Text",
1728
+ "text/html": "Url",
1729
+ default: "Text"
1730
+ }, _e = "Copy to clipboard: #{key}, Enter";
1731
+ function Pe(o) {
1732
+ var e = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
1733
+ return o.replace(/#{\s*key\s*}/g, e);
1734
+ }
1735
+ function Me(o, e) {
1736
+ var r, n, a, i, d, l, s = !1;
1737
+ e || (e = {}), r = e.debug || !1;
1738
+ try {
1739
+ a = Ue(), i = document.createRange(), d = document.getSelection(), l = document.createElement("span"), l.textContent = o, l.ariaHidden = "true", l.style.all = "unset", l.style.position = "fixed", l.style.top = 0, l.style.clip = "rect(0, 0, 0, 0)", l.style.whiteSpace = "pre", l.style.webkitUserSelect = "text", l.style.MozUserSelect = "text", l.style.msUserSelect = "text", l.style.userSelect = "text", l.addEventListener("copy", function(c) {
1740
+ if (c.stopPropagation(), e.format)
1741
+ if (c.preventDefault(), typeof c.clipboardData > "u") {
1742
+ r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
1743
+ var g = x[e.format] || x.default;
1744
+ window.clipboardData.setData(g, o);
1745
+ } else
1746
+ c.clipboardData.clearData(), c.clipboardData.setData(e.format, o);
1747
+ e.onCopy && (c.preventDefault(), e.onCopy(c.clipboardData));
1748
+ }), document.body.appendChild(l), i.selectNodeContents(l), d.addRange(i);
1749
+ var t = document.execCommand("copy");
1750
+ if (!t)
1751
+ throw new Error("copy command was unsuccessful");
1752
+ s = !0;
1753
+ } catch (c) {
1754
+ r && console.error("unable to copy using execCommand: ", c), r && console.warn("trying IE specific stuff");
1755
+ try {
1756
+ window.clipboardData.setData(e.format || "text", o), e.onCopy && e.onCopy(window.clipboardData), s = !0;
1757
+ } catch (g) {
1758
+ r && console.error("unable to copy using clipboardData: ", g), r && console.error("falling back to prompt"), n = Pe("message" in e ? e.message : _e), window.prompt(n, o);
901
1759
  }
902
- return /* @__PURE__ */ u.createElement($e, { "data-testid": e, ref: s }, c(r));
903
- }
904
- ), Ce = m(U)`
905
- ${d("cards.cover")};
906
-
907
- ${p};
908
- `, we = ({ src: r, ...e }) => /* @__PURE__ */ u.createElement(Ce, { ...e }, /* @__PURE__ */ u.createElement("img", { src: r })), Ee = m.divBox`
909
- overflow: 'hidden';
910
- border-radius: md;
911
- ${d("cards.default")};
912
- background-size: cover;
913
- background-position: center;
914
-
915
- ${p};
916
- `, Ae = m.divBox`
917
- padding: lg;
918
-
919
- ${p};
920
- `, Be = h(({ children: r, ...e }, t) => /* @__PURE__ */ u.createElement(Ee, { ref: t, ...e }, r)), Pe = Object.assign(Be, {
921
- Body: Ae,
922
- Cover: we
923
- }), ke = v`
924
- from {
925
- opacity: 0;
1760
+ } finally {
1761
+ d && (typeof d.removeRange == "function" ? d.removeRange(i) : d.removeAllRanges()), l && document.body.removeChild(l), a();
926
1762
  }
927
- to {
928
- opacity: 1;
929
- }
930
- `, De = g`
931
- ${ke}
932
- `, B = m($)`
933
- pointer-events: auto;
934
- animation: ${d("transitions.medium")};
935
- animation-name: ${De};
936
- `, Me = h(
937
- ({ size: r = "xs", ...e }, t) => /* @__PURE__ */ u.createElement(B, { ref: t, shape: "circle", size: r, title: "Clear", variant: "ghost", ...e }, /* @__PURE__ */ u.createElement(w, { size: "xxs" }))
938
- ), Ye = B, ve = m($)`
939
- & > svg:only-child {
940
- width: ${d("space.md")};
941
- height: ${d("space.md")};
942
- }
943
- `, je = h((r, e) => /* @__PURE__ */ u.createElement(ve, { ref: e, shape: "circle", size: "sm", title: "Close", variant: "ghost", ...r }, /* @__PURE__ */ u.createElement(w, { size: "lg" })));
1763
+ return s;
1764
+ }
1765
+ var Ne = Me;
1766
+ const Ge = /* @__PURE__ */ T(Ne);
1767
+ function Ze(o, e) {
1768
+ const [r, n] = S();
1769
+ return [v(() => {
1770
+ let i;
1771
+ typeof o == "number" || typeof o == "string" ? i = o.toString() : o.current instanceof HTMLInputElement ? i = o.current.value : o.current instanceof HTMLElement && (i = o.current.textContent);
1772
+ const d = Ge(i);
1773
+ n(d), e && setTimeout(n, e);
1774
+ }, [o, e]), r];
1775
+ }
944
1776
  export {
945
- Ze as Accordion,
946
- Qe as Alert,
947
- er as AspectRatio,
948
- or as Avatar,
949
- nr as Badge,
950
- C as Box,
951
- lr as Breadcrumb,
952
- sr as BreadcrumbComponent,
953
- $ as Button,
954
- Ge as ButtonGroup,
955
- Pe as Card,
956
- Be as CardComponent,
957
- Me as ClearButton,
958
- je as CloseButton,
959
- br as Flex,
960
- He as StyledButton,
961
- Ye as StyledClearButton,
962
- hr as WuiProvider,
963
- dr as componentSystem,
964
- Le as createTheme,
965
- Oe as darkTheme,
966
- cr as filterSystemProps,
967
- h as forwardRef,
968
- z as shouldForwardProp,
969
- ur as system,
970
- Je as useAccordion,
971
- gr as wrapperSystem
1777
+ Qe as Accordion,
1778
+ or as Alert,
1779
+ nr as AspectRatio,
1780
+ zr as AssetDrawer,
1781
+ Eo as AssetModal,
1782
+ lr as Avatar,
1783
+ dr as Badge,
1784
+ cr as Box,
1785
+ ur as Breadcrumb,
1786
+ mr as BreadcrumbComponent,
1787
+ pr as Button,
1788
+ xr as ButtonGroup,
1789
+ yr as Card,
1790
+ kr as CardComponent,
1791
+ wr as Checkbox,
1792
+ vr as ClearButton,
1793
+ $r as CloseButton,
1794
+ Ar as DatePicker,
1795
+ Er as DateTimePicker,
1796
+ Lr as Drawer,
1797
+ Ir as DrawerBackdrop,
1798
+ Pr as DropdownMenu,
1799
+ Gr as Field,
1800
+ Xr as FieldGroup,
1801
+ jr as FileDrop,
1802
+ ao as FileUpload,
1803
+ io as Flex,
1804
+ co as Grid,
1805
+ uo as Hint,
1806
+ po as Icon,
1807
+ Or as IconGroupWrapper,
1808
+ Vr as IconWrapper,
1809
+ qr as ImagePreview,
1810
+ xo as InputText,
1811
+ yo as Label,
1812
+ wo as Link,
1813
+ vo as Loader,
1814
+ Do as Logo,
1815
+ Ro as Modal,
1816
+ Lt as Notifications,
1817
+ Io as Pagination,
1818
+ Uo as PasswordInput,
1819
+ Po as Picker,
1820
+ No as Popover,
1821
+ Go as PopoverHover,
1822
+ Jo as Radio,
1823
+ Ko as RadioGroup,
1824
+ jo as RadioTab,
1825
+ Qo as Search,
1826
+ ot as Select,
1827
+ at as Shape,
1828
+ it as Slider,
1829
+ dt as SliderComponent,
1830
+ $o as SolutionsSymbol,
1831
+ mt as Stack,
1832
+ fr as StyledButton,
1833
+ Tr as StyledClearButton,
1834
+ Kr as StyledFieldGroup,
1835
+ mo as StyledHint,
1836
+ fo as StyledIcon,
1837
+ ko as StyledLabel,
1838
+ et as StyledSearch,
1839
+ tt as StyledSelect,
1840
+ pt as StyledSwiper,
1841
+ Tt as StyledTag,
1842
+ ft as Swiper,
1843
+ Wo as Symbol,
1844
+ Ft as Tab,
1845
+ wt as TabComponent,
1846
+ Ct as Table,
1847
+ yt as TableComponent,
1848
+ Dt as Tag,
1849
+ Wt as Text,
1850
+ Bt as Textarea,
1851
+ Rt as TimePicker,
1852
+ It as Toast,
1853
+ Nt as Toggle,
1854
+ Ot as Tooltip,
1855
+ Hr as Trigger,
1856
+ Yt as VariantIcon,
1857
+ Xt as WelcomeLoader,
1858
+ Ao as WelcomeUILogo,
1859
+ Zt as WuiProvider,
1860
+ Ke as createTheme,
1861
+ Xe as darkTheme,
1862
+ Ht as dismiss,
1863
+ st as ensureMinMax,
1864
+ Yr as getBaseType,
1865
+ eo as getFileIcon,
1866
+ ro as getFileName,
1867
+ oo as getFileSize,
1868
+ to as getMimeType,
1869
+ Ut as remove,
1870
+ ct as round,
1871
+ gt as thumbWidth,
1872
+ _t as toast,
1873
+ er as useAccordion,
1874
+ Ze as useCopyText,
1875
+ Ur as useDrawer,
1876
+ Mr as useDropdownMenu,
1877
+ zo as useModal,
1878
+ Oo as usePopover,
1879
+ Vo as usePopoverHover,
1880
+ ht as useSwiper,
1881
+ St as useTab,
1882
+ Pt as useToast
972
1883
  };