welcome-ui 8.0.0 → 8.1.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 (301) hide show
  1. package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
  2. package/dist/Accordion.mjs +30 -23
  3. package/dist/Alert.mjs +76 -70
  4. package/dist/AspectRatio.mjs +8 -10
  5. package/dist/Avatar.mjs +48 -47
  6. package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +173 -168
  10. package/dist/Button.mjs +72 -67
  11. package/dist/ButtonGroup.mjs +13 -12
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomInput-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
  17. package/dist/DatePicker.mjs +81 -80
  18. package/dist/DateTimePicker.mjs +67 -62
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +190 -174
  21. package/dist/DropdownMenu.mjs +389 -386
  22. package/dist/Field.mjs +104 -92
  23. package/dist/FieldGroup.mjs +12 -9
  24. package/dist/FileDrop.mjs +613 -576
  25. package/dist/FileUpload.mjs +95 -74
  26. package/dist/Files.mjs +46 -46
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
  31. package/dist/Icon.mjs +24 -24
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +159 -159
  34. package/dist/InputText.mjs +65 -57
  35. package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
  36. package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
  37. package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
  38. package/dist/Label.mjs +37 -35
  39. package/dist/Link.mjs +28 -24
  40. package/dist/Loader.mjs +20 -16
  41. package/dist/Logo.mjs +55 -42
  42. package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
  43. package/dist/Modal.mjs +272 -249
  44. package/dist/NLEBE274-oSxMftGy.mjs +84 -0
  45. package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
  46. package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
  47. package/dist/Pagination.mjs +104 -104
  48. package/dist/PasswordInput.mjs +35 -34
  49. package/dist/Picker.mjs +35 -33
  50. package/dist/Popover.mjs +100 -93
  51. package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
  52. package/dist/Radio.mjs +58 -52
  53. package/dist/RadioGroup.mjs +46 -46
  54. package/dist/RadioTab.mjs +37 -35
  55. package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
  56. package/dist/Search.mjs +175 -161
  57. package/dist/Select.mjs +885 -847
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +359 -336
  60. package/dist/Stack.mjs +22 -24
  61. package/dist/Swiper.mjs +324 -311
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +250 -245
  64. package/dist/Tag.mjs +51 -49
  65. package/dist/Text.mjs +49 -47
  66. package/dist/Textarea.mjs +39 -39
  67. package/dist/TimePicker.mjs +57 -56
  68. package/dist/Toast.mjs +144 -137
  69. package/dist/Toggle.mjs +27 -24
  70. package/dist/Tooltip.mjs +115 -111
  71. package/dist/UniversalLink.mjs +16 -16
  72. package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
  73. package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
  74. package/dist/VariantIcon.mjs +14 -22
  75. package/dist/WelcomeLoader.mjs +4863 -9223
  76. package/dist/WuiProvider.mjs +69 -58
  77. package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
  78. package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
  79. package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
  80. package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
  81. package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
  82. package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
  83. package/dist/index-5HBq1O6Z.mjs +185 -0
  84. package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
  85. package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
  86. package/dist/index-CYmF7qCH.mjs +11 -0
  87. package/dist/index-C_k-m0Rl.mjs +36 -0
  88. package/dist/index-D8v_VJ9z.mjs +26 -0
  89. package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
  90. package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
  91. package/dist/index-DpkNUfAS.mjs +11 -0
  92. package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
  93. package/dist/{index-BJAZgeHL.mjs → index-QaLwIvZS.mjs} +8 -8
  94. package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
  95. package/dist/index-i_anpNhw.mjs +66 -0
  96. package/dist/index-wl3X6EM1.mjs +16 -0
  97. package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
  98. package/dist/radio-group-C0fUHvam.mjs +52 -0
  99. package/dist/theme.mjs +1175 -1120
  100. package/dist/throttle-CW18pWlW.mjs +13 -0
  101. package/dist/types/components/Accordion/index.d.ts +1 -1
  102. package/dist/types/components/Accordion/styles.d.ts +2 -2
  103. package/dist/types/components/Accordion/theme.d.ts +1 -1
  104. package/dist/types/components/Alert/index.d.ts +2 -2
  105. package/dist/types/components/Alert/styles.d.ts +9 -9
  106. package/dist/types/components/Alert/theme.d.ts +4 -4
  107. package/dist/types/components/Avatar/index.d.ts +2 -3
  108. package/dist/types/components/Avatar/styles.d.ts +8 -8
  109. package/dist/types/components/Avatar/theme.d.ts +3 -3
  110. package/dist/types/components/Avatar/utils.d.ts +1 -1
  111. package/dist/types/components/Badge/index.d.ts +2 -2
  112. package/dist/types/components/Badge/styles.d.ts +5 -5
  113. package/dist/types/components/Badge/theme.d.ts +1 -1
  114. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  115. package/dist/types/components/Breadcrumb/index.d.ts +2 -2
  116. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  117. package/dist/types/components/Button/index.d.ts +4 -5
  118. package/dist/types/components/Button/styles.d.ts +1 -1
  119. package/dist/types/components/Button/theme.d.ts +7 -7
  120. package/dist/types/components/ButtonGroup/index.d.ts +3 -3
  121. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  122. package/dist/types/components/Card/index.d.ts +2 -3
  123. package/dist/types/components/Card/theme.d.ts +1 -1
  124. package/dist/types/components/Checkbox/index.d.ts +2 -2
  125. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  126. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  127. package/dist/types/components/ClearButton/index.d.ts +5 -6
  128. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  129. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  130. package/dist/types/components/DatePicker/index.d.ts +3 -3
  131. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  132. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  133. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  134. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  135. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  136. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  137. package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
  138. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  139. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  140. package/dist/types/components/Drawer/index.d.ts +12 -12
  141. package/dist/types/components/Drawer/styles.d.ts +5 -5
  142. package/dist/types/components/Drawer/theme.d.ts +2 -2
  143. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  144. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  145. package/dist/types/components/Field/index.d.ts +8 -8
  146. package/dist/types/components/Field/styles.d.ts +1 -1
  147. package/dist/types/components/Field/utils.d.ts +1 -1
  148. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  149. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  150. package/dist/types/components/FileDrop/index.d.ts +20 -20
  151. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  152. package/dist/types/components/FileUpload/index.d.ts +13 -13
  153. package/dist/types/components/Files/index.d.ts +5 -5
  154. package/dist/types/components/Files/types.d.ts +1 -1
  155. package/dist/types/components/Hint/index.d.ts +1 -2
  156. package/dist/types/components/Hint/theme.d.ts +1 -1
  157. package/dist/types/components/Icon/index.d.ts +3 -3
  158. package/dist/types/components/Icon/styles.d.ts +3 -3
  159. package/dist/types/components/Icon/theme.d.ts +3 -3
  160. package/dist/types/components/Icons/Sun/content.json.d.ts +2 -1
  161. package/dist/types/components/Icons/index.d.ts +2 -2
  162. package/dist/types/components/IconsFont/index.d.ts +2 -3
  163. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  164. package/dist/types/components/InputText/index.d.ts +1 -1
  165. package/dist/types/components/InputText/styles.d.ts +1 -1
  166. package/dist/types/components/Label/index.d.ts +2 -3
  167. package/dist/types/components/Label/theme.d.ts +1 -1
  168. package/dist/types/components/Link/index.d.ts +5 -5
  169. package/dist/types/components/Link/styles.d.ts +4 -4
  170. package/dist/types/components/Link/theme.d.ts +1 -1
  171. package/dist/types/components/Loader/index.d.ts +1 -1
  172. package/dist/types/components/Loader/styles.d.ts +4 -4
  173. package/dist/types/components/Loader/theme.d.ts +4 -4
  174. package/dist/types/components/Logo/Solutions.d.ts +1 -2
  175. package/dist/types/components/Logo/Symbol.d.ts +1 -2
  176. package/dist/types/components/Logo/Wui.d.ts +1 -2
  177. package/dist/types/components/Logo/index.d.ts +5 -5
  178. package/dist/types/components/Modal/Assets/Backdrop.d.ts +5 -6
  179. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
  180. package/dist/types/components/Modal/Assets/index.d.ts +9 -9
  181. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  182. package/dist/types/components/Modal/Close.d.ts +3 -4
  183. package/dist/types/components/Modal/Content.d.ts +3 -5
  184. package/dist/types/components/Modal/Footer.d.ts +1 -1
  185. package/dist/types/components/Modal/Header.d.ts +2 -2
  186. package/dist/types/components/Modal/index.d.ts +17 -17
  187. package/dist/types/components/Modal/styles.d.ts +7 -7
  188. package/dist/types/components/Modal/theme.d.ts +2 -2
  189. package/dist/types/components/Pagination/index.d.ts +2 -2
  190. package/dist/types/components/Pagination/theme.d.ts +1 -1
  191. package/dist/types/components/Pagination/utils.d.ts +1 -1
  192. package/dist/types/components/Picker/index.d.ts +1 -1
  193. package/dist/types/components/Picker/styles.d.ts +1 -1
  194. package/dist/types/components/Popover/Arrow.d.ts +1 -2
  195. package/dist/types/components/Popover/Content.d.ts +2 -3
  196. package/dist/types/components/Popover/Popover.d.ts +4 -5
  197. package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
  198. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  199. package/dist/types/components/Popover/styles.d.ts +4 -4
  200. package/dist/types/components/Popover/theme.d.ts +1 -1
  201. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  202. package/dist/types/components/Radio/index.d.ts +3 -3
  203. package/dist/types/components/Radio/styles.d.ts +5 -5
  204. package/dist/types/components/Radio/theme.d.ts +1 -1
  205. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  206. package/dist/types/components/RadioTab/index.d.ts +3 -3
  207. package/dist/types/components/RadioTab/styles.d.ts +3 -9
  208. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  209. package/dist/types/components/Search/index.d.ts +5 -5
  210. package/dist/types/components/Select/index.d.ts +11 -11
  211. package/dist/types/components/Select/styles.d.ts +6 -6
  212. package/dist/types/components/Select/utils.d.ts +11 -7
  213. package/dist/types/components/Shape/index.d.ts +1 -1
  214. package/dist/types/components/Shape/styles.d.ts +3 -3
  215. package/dist/types/components/Slider/Range.d.ts +3 -3
  216. package/dist/types/components/Slider/index.d.ts +2 -2
  217. package/dist/types/components/Slider/styles.d.ts +16 -16
  218. package/dist/types/components/Slider/theme.d.ts +1 -1
  219. package/dist/types/components/Stack/index.d.ts +1 -1
  220. package/dist/types/components/Swiper/index.d.ts +17 -18
  221. package/dist/types/components/Swiper/styles.d.ts +56 -56
  222. package/dist/types/components/Swiper/theme.d.ts +1 -1
  223. package/dist/types/components/System/index.d.ts +14 -14
  224. package/dist/types/components/Table/index.d.ts +6 -7
  225. package/dist/types/components/Table/styles.d.ts +1 -1
  226. package/dist/types/components/Table/theme.d.ts +1 -1
  227. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  228. package/dist/types/components/Tabs/TabList.d.ts +4 -4
  229. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  230. package/dist/types/components/Tabs/styles.d.ts +2 -2
  231. package/dist/types/components/Tabs/theme.d.ts +2 -2
  232. package/dist/types/components/Tag/index.d.ts +2 -3
  233. package/dist/types/components/Tag/styles.d.ts +1 -1
  234. package/dist/types/components/Tag/theme.d.ts +3 -3
  235. package/dist/types/components/Text/index.d.ts +2 -2
  236. package/dist/types/components/Textarea/index.d.ts +1 -1
  237. package/dist/types/components/Textarea/theme.d.ts +1 -1
  238. package/dist/types/components/TimePicker/index.d.ts +2 -2
  239. package/dist/types/components/Toast/Growl.d.ts +1 -1
  240. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  241. package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
  242. package/dist/types/components/Toast/index.d.ts +6 -6
  243. package/dist/types/components/Toast/styles.d.ts +16 -16
  244. package/dist/types/components/Toast/theme.d.ts +2 -2
  245. package/dist/types/components/Toast/utils.d.ts +13 -13
  246. package/dist/types/components/Toggle/index.d.ts +3 -3
  247. package/dist/types/components/Toggle/styles.d.ts +5 -4
  248. package/dist/types/components/Toggle/theme.d.ts +6 -6
  249. package/dist/types/components/Tooltip/index.d.ts +2 -2
  250. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  251. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  252. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  253. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  254. package/dist/types/components/VariantIcon/theme.d.ts +3 -3
  255. package/dist/types/components/WuiProvider/font.d.ts +3 -5
  256. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  257. package/dist/types/theme/colors.d.ts +3 -11
  258. package/dist/types/theme/dark.d.ts +1 -1
  259. package/dist/types/theme/defaultFields.d.ts +10 -10
  260. package/dist/types/theme/fonts.d.ts +5 -5
  261. package/dist/types/theme/index.d.ts +31 -31
  262. package/dist/types/theme/screens.d.ts +1 -1
  263. package/dist/types/theme/space.d.ts +1 -1
  264. package/dist/types/theme/typography.d.ts +1 -1
  265. package/dist/types/utils/field-styles.d.ts +6 -6
  266. package/dist/types/utils/index.d.ts +2 -2
  267. package/dist/types/utils/ts-utils.d.ts +1 -1
  268. package/dist/types/utils/use-copy-text.d.ts +1 -1
  269. package/dist/types/utils/use-create-portal.d.ts +1 -1
  270. package/dist/types/utils/use-viewport.d.ts +2 -2
  271. package/dist/types/utils/wrap-children.d.ts +1 -1
  272. package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
  273. package/dist/use-viewport-CWpjoHXy.mjs +16 -0
  274. package/dist/utils.mjs +96 -85
  275. package/dist/wrap-children-DBSD-X5-.mjs +9 -0
  276. package/package.json +9 -36
  277. package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
  278. package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
  279. package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
  280. package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
  281. package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
  282. package/dist/NLEBE274-C94QU78N.mjs +0 -84
  283. package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
  284. package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
  285. package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
  286. package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
  287. package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
  288. package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
  289. package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
  290. package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
  291. package/dist/index-BDeIsk2X.mjs +0 -184
  292. package/dist/index-BRDOakbf.mjs +0 -11
  293. package/dist/index-BpRjq7lj.mjs +0 -11
  294. package/dist/index-BrfXjmHY.mjs +0 -36
  295. package/dist/index-CExLVjET.mjs +0 -26
  296. package/dist/index-DEJJvyGk.mjs +0 -66
  297. package/dist/index-u1oHKa7X.mjs +0 -16
  298. package/dist/radio-group-CGC6DTFJ.mjs +0 -51
  299. package/dist/throttle-BDBzFeFj.mjs +0 -13
  300. package/dist/use-viewport-m3glsbna.mjs +0 -16
  301. package/dist/wrap-children-aq69jtFP.mjs +0 -12
@@ -1,15 +1,16 @@
1
- import { Size } from './theme';
1
+ import { CheckboxProps } from '../Checkbox';
2
2
  import { ToggleOptions } from './index';
3
+ import { Size } from './theme';
3
4
  import * as Ariakit from '@ariakit/react';
4
5
  export declare const Toggle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Ariakit.CheckboxOptions<"input"> & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
5
- ref?: import('react').Ref<HTMLInputElement>;
6
+ ref?: ((instance: HTMLInputElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLInputElement> | null | undefined;
6
7
  }, keyof Ariakit.CheckboxOptions<T>> & {
7
8
  [index: `data-${string}`]: unknown;
8
9
  }, ToggleOptions>> & string & Omit<(props: Ariakit.CheckboxProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>, keyof import('react').Component<any, {}, any>>;
9
10
  export declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
10
- onClick: React.MouseEventHandler<HTMLInputElement>;
11
+ onClick: CheckboxProps["onClick"];
11
12
  }>> & string;
12
13
  export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
13
- checked: boolean;
14
+ checked?: boolean;
14
15
  size: Size;
15
16
  }>> & string;
@@ -1,11 +1,11 @@
1
1
  import { CSSObject } from '@xstyled/styled-components';
2
- import { ThemeValues } from '../../theme';
3
- export type Size = 'xs' | 'sm' | 'md';
4
- type State = 'default' | 'checked' | 'disabled';
2
+ import { ThemeValues } from '../theme';
3
+ export type Size = 'md' | 'sm' | 'xs';
5
4
  export type ThemeToggles = {
6
- after: Record<State | 'sizes', CSSObject>;
7
- icon: Record<'sizes' | 'position', CSSObject>;
8
- item: Record<State | 'sizes', CSSObject>;
5
+ after: Record<'sizes' | State, CSSObject>;
6
+ icon: Record<'position' | 'sizes', CSSObject>;
7
+ item: Record<'sizes' | State, CSSObject>;
9
8
  };
9
+ type State = 'checked' | 'default' | 'disabled';
10
10
  export declare const getToggles: (theme: ThemeValues) => ThemeToggles;
11
11
  export {};
@@ -3,9 +3,9 @@ import { CreateWuiProps } from '../System';
3
3
  import * as Ariakit from '@ariakit/react';
4
4
  export type TooltipOptions = {
5
5
  children: React.ReactNode;
6
- content: string | JSX.Element;
6
+ content: JSX.Element | string;
7
7
  fixed?: boolean;
8
8
  withArrow?: boolean;
9
- } & Pick<Ariakit.TooltipStoreProps, 'placement'> & Pick<Ariakit.TooltipOptions, 'gutter'>;
9
+ } & Pick<Ariakit.TooltipOptions, 'gutter'> & Pick<Ariakit.TooltipStoreProps, 'placement'>;
10
10
  export type TooltipProps = CreateWuiProps<'div', TooltipOptions>;
11
11
  export declare const Tooltip: import('../System').CreateWuiComponent<"div", TooltipProps>;
@@ -2,7 +2,7 @@ import { TooltipProps } from './index';
2
2
  type FadeIn = {
3
3
  fixed?: boolean;
4
4
  placement?: TooltipProps['placement'];
5
- popoverHeight: number;
5
+ popoverHeight?: number;
6
6
  withArrow?: boolean;
7
7
  };
8
8
  export declare const FadeIn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, FadeIn>> & string;
@@ -1,4 +1,4 @@
1
1
  import { CSSObject } from '@xstyled/styled-components';
2
- import { ThemeValues } from '../../theme';
2
+ import { ThemeValues } from '../theme';
3
3
  export type ThemeTooltips = CSSObject;
4
4
  export declare const getTooltips: (theme: ThemeValues) => ThemeTooltips;
@@ -1,5 +1,5 @@
1
- import { Size, Variant } from './theme';
2
1
  import { CreateWuiProps } from '../System';
2
+ import { Size, Variant } from './theme';
3
3
  export interface VariantIconOptions {
4
4
  icon?: JSX.Element;
5
5
  size?: Size;
@@ -1,4 +1,4 @@
1
1
  import { VariantIconOptions } from '.';
2
2
  export declare const VariantIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
3
- variant: VariantIconOptions["variant"] | string;
3
+ variant: string | VariantIconOptions["variant"];
4
4
  }>> & string;
@@ -1,6 +1,6 @@
1
1
  import { CSSObject } from '@xstyled/styled-components';
2
- import { ThemeValues } from '../../theme';
3
- export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
4
- export type Variant = 'danger' | 'warning' | 'success' | 'info' | 'default' | 'ai';
2
+ import { ThemeValues } from '../theme';
3
+ export type Size = 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxl';
5
4
  export type ThemeVariantIcon = Record<Variant, CSSObject>;
5
+ export type Variant = 'ai' | 'danger' | 'default' | 'info' | 'success' | 'warning';
6
6
  export declare const getVariantIcon: (theme: ThemeValues) => ThemeVariantIcon;
@@ -1,5 +1,5 @@
1
1
  import { css } from '@xstyled/styled-components';
2
- import { ThemeValues } from '../../theme';
2
+ import { ThemeValues } from '../theme';
3
3
  type FontVariation = {
4
4
  display?: FontDisplay;
5
5
  extensions?: string[];
@@ -9,8 +9,6 @@ type FontVariation = {
9
9
  url: string;
10
10
  weight?: string;
11
11
  };
12
- export declare function getSource(url: FontVariation['url'], extensions: FontVariation['extensions'], isVariable: FontVariation['isVariable']): string;
13
- export declare const fonts: () => ({ theme }: {
14
- theme: ThemeValues;
15
- }) => ReturnType<typeof css>;
12
+ export declare function getSource(url: FontVariation['url'], extensions: FontVariation['extensions'], isVariable: FontVariation['isVariable']): string | undefined;
13
+ export declare const fonts: (theme: ThemeValues) => null | ReturnType<typeof css>;
16
14
  export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ThemeValues } from '../../theme';
2
+ import { ThemeValues } from '../theme';
3
3
  export interface WuiProviderProps {
4
4
  children?: React.ReactNode;
5
5
  hasGlobalStyle?: boolean;
@@ -100,6 +100,7 @@ declare const palette: {
100
100
  'yellow-90': string;
101
101
  };
102
102
  export declare const getColors: (systemColors: typeof palette) => {
103
+ overlay: string;
103
104
  'primary-10': string;
104
105
  'primary-20': string;
105
106
  'primary-30': string;
@@ -115,7 +116,6 @@ export declare const getColors: (systemColors: typeof palette) => {
115
116
  'secondary-pink': string;
116
117
  'secondary-teal': string;
117
118
  'secondary-violet': string;
118
- overlay: string;
119
119
  'beige-10': string;
120
120
  'beige-20': string;
121
121
  'beige-30': string;
@@ -217,6 +217,7 @@ export declare const getColors: (systemColors: typeof palette) => {
217
217
  'yellow-90': string;
218
218
  };
219
219
  export declare const colors: {
220
+ overlay: string;
220
221
  'primary-10': string;
221
222
  'primary-20': string;
222
223
  'primary-30': string;
@@ -232,7 +233,6 @@ export declare const colors: {
232
233
  'secondary-pink': string;
233
234
  'secondary-teal': string;
234
235
  'secondary-violet': string;
235
- overlay: string;
236
236
  'beige-10': string;
237
237
  'beige-20': string;
238
238
  'beige-30': string;
@@ -334,13 +334,5 @@ export declare const colors: {
334
334
  'yellow-90': string;
335
335
  };
336
336
  export type ThemeColors = typeof colors;
337
- declare const enum SecondaryColors {
338
- 'blue' = 0,
339
- 'green' = 1,
340
- 'orange' = 2,
341
- 'pink' = 3,
342
- 'teal' = 4,
343
- 'violet' = 5
344
- }
345
- export type ThemeSecondaryColors = keyof typeof SecondaryColors;
337
+ export type ThemeSecondaryColors = 'blue' | 'green' | 'orange' | 'pink' | 'teal' | 'violet';
346
338
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ThemeValues } from '.';
2
2
  type RecursivePartial<T> = {
3
- [P in keyof T]?: T[P] | RecursivePartial<T[P]>;
3
+ [P in keyof T]?: RecursivePartial<T[P]> | T[P];
4
4
  };
5
5
  export declare const colorsDark: ThemeValues['colors'];
6
6
  export declare const darkTheme: RecursivePartial<ThemeValues>;
@@ -1,11 +1,6 @@
1
1
  import { CSSObject } from '@xstyled/styled-components';
2
- import { DefaultFieldStylesProps } from '../utils/field-styles';
3
2
  import { ThemeValues } from '.';
4
- type VariantsTheme = {
5
- danger: CSSObject;
6
- success: CSSObject;
7
- warning: CSSObject;
8
- };
3
+ import { Size } from '../utils/field-styles';
9
4
  export type ThemeDefaultFields = {
10
5
  checkableField: {
11
6
  checked: CSSObject;
@@ -18,11 +13,11 @@ export type ThemeDefaultFields = {
18
13
  default: CSSObject;
19
14
  disabled: CSSObject;
20
15
  fieldset: CSSObject;
21
- focused: VariantsTheme & {
16
+ focused: {
22
17
  default: CSSObject;
23
- };
18
+ } & VariantsTheme;
24
19
  hover: CSSObject;
25
- iconPlacement: Record<DefaultFieldStylesProps['size'], CSSObject>;
20
+ iconPlacement: Record<Size, CSSObject>;
26
21
  placeholder: CSSObject;
27
22
  select: {
28
23
  default: CSSObject;
@@ -32,8 +27,13 @@ export type ThemeDefaultFields = {
32
27
  selected: CSSObject;
33
28
  selectedAndHighlighted: CSSObject;
34
29
  };
35
- sizes: Record<DefaultFieldStylesProps['size'], CSSObject>;
30
+ sizes: Record<Size, CSSObject>;
36
31
  variants: VariantsTheme;
37
32
  };
33
+ type VariantsTheme = {
34
+ danger: CSSObject;
35
+ success: CSSObject;
36
+ warning: CSSObject;
37
+ };
38
38
  export declare const getDefaultFields: (theme: ThemeValues) => ThemeDefaultFields;
39
39
  export {};
@@ -1,4 +1,9 @@
1
1
  import { ThemeValues } from '.';
2
+ export type ThemeFontFaces = {
3
+ 'welcome-font': FontFace[];
4
+ 'welcome-icon-font': FontFace[];
5
+ 'work-sans': FontFace[];
6
+ };
2
7
  type FontFace = {
3
8
  display?: FontDisplay;
4
9
  extensions?: string[];
@@ -9,10 +14,5 @@ type FontFace = {
9
14
  url: string;
10
15
  weight?: string;
11
16
  };
12
- export type ThemeFontFaces = {
13
- 'welcome-font': FontFace[];
14
- 'welcome-icon-font': FontFace[];
15
- 'work-sans': FontFace[];
16
- };
17
17
  export declare const fontFaces: (theme: ThemeValues) => ThemeFontFaces;
18
18
  export {};
@@ -6,16 +6,16 @@ import { ThemeBadges } from '../components/Badge/theme';
6
6
  import { ThemeBreadcrumbs } from '../components/Breadcrumb/theme';
7
7
  import { ThemeButtons } from '../components/Button/theme';
8
8
  import { ThemeCards } from '../components/Card/theme';
9
- import { ThemeDateTimePickerCommon } from '../components/DateTimePickerCommon/theme';
10
9
  import { ThemeCheckboxes } from '../components/Checkbox/theme';
10
+ import { ThemeDateTimePickerCommon } from '../components/DateTimePickerCommon/theme';
11
11
  import { ThemeDrawers } from '../components/Drawer/theme';
12
12
  import { ThemeDropdownMenu } from '../components/DropdownMenu/theme';
13
13
  import { ThemeFileDrops } from '../components/FileDrop/theme';
14
14
  import { ThemeHints } from '../components/Hint/theme';
15
+ import { ThemeIcons } from '../components/Icon/theme';
15
16
  import { ThemeLabels } from '../components/Label/theme';
16
17
  import { ThemeLinks } from '../components/Link/theme';
17
18
  import { ThemeLoaders } from '../components/Loader/theme';
18
- import { ThemeIcons } from '../components/Icon/theme';
19
19
  import { ThemeModals } from '../components/Modal/theme';
20
20
  import { ThemePagination } from '../components/Pagination/theme';
21
21
  import { ThemePopovers } from '../components/Popover/theme';
@@ -31,24 +31,33 @@ import { ThemeToasts } from '../components/Toast/theme';
31
31
  import { ThemeToggles } from '../components/Toggle/theme';
32
32
  import { ThemeTooltips } from '../components/Tooltip/theme';
33
33
  import { ThemeVariantIcon } from '../components/VariantIcon/theme';
34
- import { darkTheme } from './dark';
34
+ import { ThemeBorderWidths } from './borders';
35
35
  import { ThemeColors } from './colors';
36
+ import { ThemeDefaultFields } from './defaultFields';
37
+ import { ThemeFocus } from './focus';
36
38
  import { ThemeFontFaces } from './fonts';
37
- import { ThemeFonts, ThemeFontSizes, ThemeFontWeights, ThemeLetterSpacings, ThemeLineHeights, ThemeTexts, ThemeTextsFontColors, ThemeTextsFontFamily, ThemeTextsFontWeights, ThemeTextsTextTransform } from './typography';
38
- import { ThemeTimingFunction, ThemeTransitions } from './transitions';
39
- import { ThemeUnderline } from './underline';
40
39
  import { ThemeRadii } from './radii';
41
- import { ThemeBorderWidths } from './borders';
42
40
  import { ThemeScreens } from './screens';
41
+ import { ThemeSelection } from './selection';
43
42
  import { ThemeShadows } from './shadows';
44
43
  import { ThemeSpace } from './space';
45
- import { ThemeSelection } from './selection';
46
- import { ThemeFocus } from './focus';
47
- import { ThemeDefaultFields } from './defaultFields';
48
- type OverrideKeys = 'colors' | 'radii' | 'borderWidths' | 'fontSizes' | 'lineHeights' | 'fontWeights' | 'letterSpacings' | 'fonts' | 'sizes' | 'screens' | 'space' | 'shadows' | 'texts';
49
- type XStyledTheme = Omit<XStyledDefaultTheme, OverrideKeys>;
50
- type StyledComponentsTheme = Omit<StyledComponentDefaultTheme, OverrideKeys>;
51
- export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
44
+ import { ThemeTimingFunction, ThemeTransitions } from './transitions';
45
+ import { ThemeFonts, ThemeFontSizes, ThemeFontWeights, ThemeLetterSpacings, ThemeLineHeights, ThemeTexts, ThemeTextsFontColors, ThemeTextsFontFamily, ThemeTextsFontWeights, ThemeTextsTextTransform } from './typography';
46
+ import { ThemeUnderline } from './underline';
47
+ import { darkTheme } from './dark';
48
+ export type ThemeColorTokens = keyof ThemeColors;
49
+ export type ThemeFontsUrl = 'https://cdn.welcome-ui.com/fonts' | 'https://cdn.welcometothejungle.com/fonts' | string;
50
+ export type ThemeProps = {
51
+ [param: string]: unknown;
52
+ defaultFontFamily?: string;
53
+ defaultFontSize?: number;
54
+ defaultLetterSpacing?: string;
55
+ defaultLineHeight?: number;
56
+ fontsUrl?: ThemeFontsUrl;
57
+ headingFontFamily?: string;
58
+ iconFontFamily?: string;
59
+ };
60
+ export interface ThemeValues extends Omit<XStyledTheme, 'transitions'>, StyledComponentsTheme {
52
61
  accordions: ThemeAccordions;
53
62
  alerts: ThemeAlerts;
54
63
  avatars: ThemeAvatars;
@@ -68,10 +77,10 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
68
77
  fileDrops: ThemeFileDrops;
69
78
  focus: ThemeFocus;
70
79
  fontFaces: ThemeFontFaces;
71
- fontSizes: ThemeFontSizes;
72
- fontWeights: ThemeFontWeights;
73
80
  fonts: ThemeFonts;
81
+ fontSizes: ThemeFontSizes;
74
82
  fontsUrl: ThemeFontsUrl;
83
+ fontWeights: ThemeFontWeights;
75
84
  hints: ThemeHints;
76
85
  icons: ThemeIcons;
77
86
  inset: ThemeSpace;
@@ -102,12 +111,12 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
102
111
  textsFontWeights: ThemeTextsFontWeights;
103
112
  textsTextTransform: ThemeTextsTextTransform;
104
113
  timingFunction: ThemeTimingFunction;
105
- toEm: (int: number) => string;
106
- toPx: (int: number) => string;
107
- toRem: (int: number) => string;
108
114
  toasts: ThemeToasts;
115
+ toEm: (int: number) => string;
109
116
  toggles: ThemeToggles;
110
117
  tooltips: ThemeTooltips;
118
+ toPx: (int: number) => string;
119
+ toRem: (int: number) => string;
111
120
  transformers: {
112
121
  border: (value: CSSScalar) => CSSScalar;
113
122
  px: (value: CSSScalar) => CSSScalar;
@@ -116,17 +125,8 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
116
125
  underline: ThemeUnderline;
117
126
  variantIcon: ThemeVariantIcon;
118
127
  }
119
- export type ThemeFontsUrl = 'https://cdn.welcome-ui.com/fonts' | 'https://cdn.welcometothejungle.com/fonts' | string;
120
- export type ThemeColorTokens = keyof ThemeColors;
121
- export type ThemeProps = {
122
- [param: string]: unknown;
123
- defaultFontFamily?: string;
124
- defaultFontSize?: number;
125
- defaultLetterSpacing?: string;
126
- defaultLineHeight?: number;
127
- fontsUrl?: ThemeFontsUrl;
128
- headingFontFamily?: string;
129
- iconFontFamily?: string;
130
- };
128
+ type OverrideKeys = 'borderWidths' | 'colors' | 'fonts' | 'fontSizes' | 'fontWeights' | 'letterSpacings' | 'lineHeights' | 'radii' | 'screens' | 'shadows' | 'sizes' | 'space' | 'texts';
129
+ type StyledComponentsTheme = Omit<StyledComponentDefaultTheme, OverrideKeys>;
130
+ type XStyledTheme = Omit<XStyledDefaultTheme, OverrideKeys>;
131
131
  export declare const createTheme: (options?: ThemeProps) => ThemeValues;
132
132
  export { darkTheme };
@@ -1,6 +1,6 @@
1
1
  export type ThemeScreens = {
2
- [key: string]: number;
3
2
  [key: number]: number;
3
+ [key: string]: number;
4
4
  '3xl': number;
5
5
  '4xl': number;
6
6
  lg: number;
@@ -1,7 +1,7 @@
1
1
  import { ThemeValues } from '.';
2
2
  export type ThemeSpace = {
3
- [key: string]: string;
4
3
  [key: number]: string;
4
+ [key: string]: string;
5
5
  '3xl': string;
6
6
  '4xl': string;
7
7
  '5xl': string;
@@ -127,7 +127,7 @@ export type ThemeTexts = {
127
127
  export declare const getTexts: (theme: ThemeValues) => ThemeTexts;
128
128
  export type ThemeFonts = {
129
129
  headings: string;
130
- icons: string;
130
+ icons?: string;
131
131
  texts: string;
132
132
  };
133
133
  export declare const getFonts: (defaultFontFamily: ThemeProps["defaultFontFamily"], headingFontFamily: ThemeProps["headingFontFamily"], iconFontFamily: ThemeProps["iconFontFamily"]) => ThemeFonts;
@@ -1,17 +1,17 @@
1
1
  import { css } from '@xstyled/styled-components';
2
2
  export type DefaultFieldIconSize = 'sm' | 'xs';
3
- export type Size = 'xs' | 'sm' | 'md' | 'lg';
3
+ export type Size = 'lg' | 'md' | 'sm' | 'xs';
4
4
  export declare const FIELD_ICON_SIZE: {
5
5
  [key in Size]: DefaultFieldIconSize;
6
6
  };
7
- export type DefaultFieldStylesProps = Partial<{
7
+ export type DefaultFieldStylesProps = {
8
8
  hasIcon?: boolean;
9
- iconPlacement?: 'right' | 'left' | 'both';
9
+ iconPlacement?: 'both' | 'left' | 'right';
10
10
  isClearable?: boolean;
11
- size: Size;
11
+ size?: Size;
12
12
  transparent?: boolean;
13
- variant: 'danger' | 'success' | 'warning';
14
- }>;
13
+ variant?: 'danger' | 'success' | 'warning';
14
+ };
15
15
  type DefaultFieldStyles = (args: DefaultFieldStylesProps) => ReturnType<typeof css>;
16
16
  export declare const defaultFieldStyles: DefaultFieldStyles;
17
17
  export {};
@@ -1,10 +1,10 @@
1
+ export * from './field-styles';
1
2
  export * from './format-bytes';
2
3
  export * from './hex-to-rgba';
3
- export * from './field-styles';
4
4
  export * from './overflow-ellipsis';
5
5
  export * from './throttle';
6
+ export * from './ts-utils';
6
7
  export * from './use-copy-text';
7
8
  export * from './use-fork-ref';
8
9
  export * from './use-isomorphic-layout-effect';
9
10
  export * from './use-viewport';
10
- export * from './ts-utils';
@@ -16,4 +16,4 @@
16
16
  * const bg: color = 'yellow'
17
17
  * const bg: color = '#FFF'
18
18
  */
19
- export type LiteralUnion<T, U = string> = T | (U & Record<never, never>);
19
+ export type LiteralUnion<T, U = string> = (Record<never, never> & U) | T;
@@ -1,4 +1,4 @@
1
- type Content = React.RefObject<HTMLElement | HTMLInputElement> | number | string;
1
+ type Content = number | React.RefObject<HTMLElement | HTMLInputElement> | string;
2
2
  type Timeout = number;
3
3
  type useCopyTextReturn = [() => void, boolean];
4
4
  export declare function useCopyText(content: Content, timeout: Timeout): useCopyTextReturn;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Hook that mimic the React createPortal function in order to make it SSR friendly
3
3
  */
4
- export declare function useCreatePortal(disable?: boolean): ((children: React.ReactNode) => any) | ((children: React.ReactNode, container?: Element | DocumentFragment, key?: string | null) => import('react').ReactPortal);
4
+ export declare function useCreatePortal(disable?: boolean): ((children: React.ReactNode) => unknown) | ((children: React.ReactNode, container?: DocumentFragment | Element, key?: null | string) => import('react').ReactPortal);
@@ -1,6 +1,6 @@
1
1
  type Size = {
2
- height: number;
3
- width: number;
2
+ height: number | undefined;
3
+ width: number | undefined;
4
4
  };
5
5
  export declare function useViewportSize(): Size;
6
6
  export {};
@@ -1 +1 @@
1
- export declare const wrapChildren: (children?: string | JSX.Element) => unknown;
1
+ export declare const wrapChildren: (children?: JSX.Element | string) => unknown;
@@ -3,12 +3,13 @@ import { useMemo as e } from "react";
3
3
  function o(u, n) {
4
4
  typeof u == "function" ? u(n) : u && (u.current = n);
5
5
  }
6
- function l(u, n) {
7
- return e(() => u == null && n == null ? null : (t) => {
6
+ function s(u, n) {
7
+ return e(() => u == null && n == null ? () => {
8
+ } : (t) => {
8
9
  o(u, t), o(n, t);
9
10
  }, [u, n]);
10
11
  }
11
12
  export {
12
13
  o as s,
13
- l as u
14
+ s as u
14
15
  };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import { useState as n } from "react";
3
+ import { u as o } from "./use-isomorphic-layout-effect-Izr-e2pi.mjs";
4
+ function w() {
5
+ const [t, e] = n({ height: void 0, width: void 0 });
6
+ return o(() => {
7
+ e({ height: window.innerHeight, width: window.innerWidth });
8
+ function i() {
9
+ e({ height: window.innerHeight, width: window.innerWidth });
10
+ }
11
+ return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
12
+ }, []), t;
13
+ }
14
+ export {
15
+ w as u
16
+ };