welcome-ui 1.0.0-beta.9 → 7.0.0-alpha.6

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 (240) hide show
  1. package/dist/{AXB53BZF-DCqNWRx3.mjs → AXB53BZF-CGoc4K3d.mjs} +3 -3
  2. package/dist/{AXB53BZF-CAQ85RSy.js → AXB53BZF-KWM2jKTz.js} +1 -1
  3. package/dist/Accordion.js +3 -3
  4. package/dist/Accordion.mjs +11 -11
  5. package/dist/Alert.js +4 -4
  6. package/dist/Alert.mjs +29 -29
  7. package/dist/AspectRatio.js +1 -1
  8. package/dist/AspectRatio.mjs +5 -5
  9. package/dist/Avatar.js +3 -3
  10. package/dist/Avatar.mjs +8 -8
  11. package/dist/{BYC7LY2E-BE1a2svb.js → BYC7LY2E-BkAEL2VD.js} +1 -1
  12. package/dist/{BYC7LY2E-BNqcw1O8.mjs → BYC7LY2E-CVjUW1dr.mjs} +4 -4
  13. package/dist/Badge.js +1 -1
  14. package/dist/Badge.mjs +5 -5
  15. package/dist/Breadcrumb.js +54 -1
  16. package/dist/Breadcrumb.mjs +438 -8
  17. package/dist/Button.js +4 -4
  18. package/dist/Button.mjs +10 -10
  19. package/dist/ButtonGroup.js +1 -1
  20. package/dist/ButtonGroup.mjs +5 -5
  21. package/dist/Card.js +2 -2
  22. package/dist/Card.mjs +4 -4
  23. package/dist/Checkbox.js +1 -1
  24. package/dist/Checkbox.mjs +1 -1
  25. package/dist/ClearButton.js +3 -3
  26. package/dist/ClearButton.mjs +10 -10
  27. package/dist/CloseButton.js +2 -2
  28. package/dist/CloseButton.mjs +6 -6
  29. package/dist/CustomInput-BCCxIle7.mjs +7826 -0
  30. package/dist/CustomInput-CDNZy-pz.js +1070 -0
  31. package/dist/DatePicker.js +1 -1
  32. package/dist/DatePicker.mjs +1 -1
  33. package/dist/DateTimePicker.js +1 -1
  34. package/dist/DateTimePicker.mjs +15 -15
  35. package/dist/DateTimePickerCommon.js +1 -1
  36. package/dist/DateTimePickerCommon.mjs +1 -1
  37. package/dist/Drawer.js +64 -1
  38. package/dist/Drawer.mjs +266 -10
  39. package/dist/DropdownMenu.js +1 -1
  40. package/dist/DropdownMenu.mjs +9 -9
  41. package/dist/Field.js +2 -2
  42. package/dist/Field.mjs +10 -10
  43. package/dist/FieldGroup.js +1 -1
  44. package/dist/FieldGroup.mjs +8 -8
  45. package/dist/FileDrop.js +46 -1
  46. package/dist/FileDrop.mjs +2324 -8
  47. package/dist/FileUpload.js +2 -2
  48. package/dist/FileUpload.mjs +10 -10
  49. package/dist/Hint.js +1 -1
  50. package/dist/Hint.mjs +6 -6
  51. package/dist/{ITI7HKP4-Couz1Z73.mjs → ITI7HKP4-BONrZ9Pq.mjs} +3 -3
  52. package/dist/Icon.js +1 -1
  53. package/dist/Icon.mjs +5 -5
  54. package/dist/{index.js → Icons.js} +6 -23
  55. package/dist/{index.mjs → Icons.mjs} +1348 -3484
  56. package/dist/{IconFont.js → IconsFont.js} +1 -1
  57. package/dist/{IconFont.mjs → IconsFont.mjs} +2 -2
  58. package/dist/InputText.js +3 -3
  59. package/dist/InputText.mjs +14 -14
  60. package/dist/{JC64G2H7-HxATiU-t.mjs → JC64G2H7-Dey-8h60.mjs} +4 -4
  61. package/dist/{JC64G2H7-VmOGyhc1.js → JC64G2H7-YkBMNrtl.js} +1 -1
  62. package/dist/{KUU7WJ55-bC4FU_j7.mjs → KUU7WJ55-3sP-w1F1.mjs} +13 -13
  63. package/dist/{LVA2YJMS-Dm5ieEMw.mjs → LVA2YJMS-qFC9J-lt.mjs} +18 -18
  64. package/dist/Label.js +35 -1
  65. package/dist/Label.mjs +76 -7
  66. package/dist/Link.js +2 -2
  67. package/dist/Link.mjs +9 -9
  68. package/dist/Loader.js +3 -3
  69. package/dist/Loader.mjs +9 -9
  70. package/dist/Logo.js +3 -1
  71. package/dist/Logo.mjs +45 -5
  72. package/dist/{MTZPJQMC-D0pYOjc_.js → MTZPJQMC-5Xg78Uyy.js} +1 -1
  73. package/dist/MTZPJQMC-C0Xe_WK4.mjs +13 -0
  74. package/dist/Modal.js +5 -5
  75. package/dist/Modal.mjs +14 -14
  76. package/dist/{NLEBE274-FThuwZH_.mjs → NLEBE274-C94QU78N.mjs} +19 -19
  77. package/dist/{P2CTZE2T-5jxBu6ix.mjs → P2CTZE2T-YPes1GXe.mjs} +28 -28
  78. package/dist/{P4IRICAX-C0oIr4wI.mjs → P4IRICAX-DzXqUYe-.mjs} +10 -10
  79. package/dist/{P4IRICAX-t3xfwWga.js → P4IRICAX-nhgZ26A1.js} +1 -1
  80. package/dist/Pagination.js +3 -3
  81. package/dist/Pagination.mjs +10 -10
  82. package/dist/PasswordInput.js +1 -1
  83. package/dist/PasswordInput.mjs +53 -5
  84. package/dist/Picker.js +2 -2
  85. package/dist/Picker.mjs +13 -13
  86. package/dist/Popover.js +31 -1
  87. package/dist/Popover.mjs +141 -5
  88. package/dist/{QYJ6MIDR-YegHsExc.mjs → QYJ6MIDR-BLLqyXdd.mjs} +12 -12
  89. package/dist/{QYJ6MIDR-T-fJ_t8N.js → QYJ6MIDR-CRK3satR.js} +1 -1
  90. package/dist/Radio.js +3 -3
  91. package/dist/Radio.mjs +16 -16
  92. package/dist/RadioGroup.js +1 -1
  93. package/dist/RadioGroup.mjs +11 -11
  94. package/dist/RadioTab.js +4 -4
  95. package/dist/RadioTab.mjs +12 -12
  96. package/dist/{SYRFVSLH-Babm193P.js → SYRFVSLH-BpAfr7UE.js} +1 -1
  97. package/dist/{SYRFVSLH-DXZgEwus.mjs → SYRFVSLH-cVmYtx36.mjs} +6 -6
  98. package/dist/Search.js +8 -8
  99. package/dist/Search.mjs +46 -46
  100. package/dist/Select.js +122 -1
  101. package/dist/Select.mjs +1070 -11
  102. package/dist/Shape.js +3 -3
  103. package/dist/Shape.mjs +5 -5
  104. package/dist/Slider.js +1 -1
  105. package/dist/Slider.mjs +3 -3
  106. package/dist/Swiper.js +2 -2
  107. package/dist/Swiper.mjs +1 -1
  108. package/dist/Table.js +1 -1
  109. package/dist/Table.mjs +1 -1
  110. package/dist/Tabs.js +8 -8
  111. package/dist/Tabs.mjs +178 -173
  112. package/dist/Tag.js +3 -3
  113. package/dist/Tag.mjs +10 -10
  114. package/dist/Text.js +1 -1
  115. package/dist/Text.mjs +4 -4
  116. package/dist/Textarea.js +1 -1
  117. package/dist/Textarea.mjs +9 -9
  118. package/dist/TimePicker.js +2 -2
  119. package/dist/TimePicker.mjs +11 -11
  120. package/dist/Toast.js +1 -1
  121. package/dist/Toast.mjs +1 -1
  122. package/dist/Toggle.js +1 -1
  123. package/dist/Toggle.mjs +7 -7
  124. package/dist/Tooltip.js +1 -1
  125. package/dist/Tooltip.mjs +10 -10
  126. package/dist/UniversalLink.js +1 -1
  127. package/dist/UniversalLink.mjs +4 -4
  128. package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +20 -0
  129. package/dist/{VEVQD5MH-Cal9SWXl.js → VEVQD5MH-mN1wMozH.js} +1 -1
  130. package/dist/{VGCJ63VH-BqPfqkK_.mjs → VGCJ63VH-B39w1tBw.mjs} +19 -19
  131. package/dist/{VGCJ63VH-Cuf7P3qW.js → VGCJ63VH-BNLwLOaC.js} +1 -1
  132. package/dist/VariantIcon.js +8 -1
  133. package/dist/VariantIcon.mjs +30 -4
  134. package/dist/WelcomeLoader.js +11 -1
  135. package/dist/WelcomeLoader.mjs +5086 -25
  136. package/dist/X5NMLKT6-uFSu0Lii.mjs +25 -0
  137. package/dist/{YV4JVR4I-1ezWeCCz.mjs → YV4JVR4I-BGfUf3Nu.mjs} +1 -1
  138. package/dist/downshift.esm-BOfUfcgd.mjs +1085 -0
  139. package/dist/downshift.esm-dvOEflhK.js +1 -0
  140. package/dist/hex-to-rgba-BIDK-3ab.mjs +11 -0
  141. package/dist/hex-to-rgba-cCYXRc5D.js +1 -0
  142. package/dist/index-23RJrN0D.js +1 -0
  143. package/dist/{index-CQyLvMJP.js → index-BHi0wohR.js} +23 -23
  144. package/dist/index-BJAZgeHL.mjs +11 -0
  145. package/dist/index-BJzGkA7x.js +1 -0
  146. package/dist/index-BLom3M2B.js +2 -0
  147. package/dist/index-BNGGwOCo.mjs +11 -0
  148. package/dist/index-BQtDgQBH.mjs +11 -0
  149. package/dist/{index-BZmKn5VO.mjs → index-BYdkhqH4.mjs} +14 -11
  150. package/dist/{index-DCOLdphy.mjs → index-CDjY0N2Z.mjs} +11 -11
  151. package/dist/index-CExLVjET.mjs +26 -0
  152. package/dist/{index-C_r0bVmL.js → index-CUtaVckz.js} +1 -1
  153. package/dist/{index-BxWjuyQw.js → index-CxDKPhvU.js} +1 -1
  154. package/dist/index-D4H6DSEx.mjs +133 -0
  155. package/dist/index-D6MJAN7T.js +1 -0
  156. package/dist/index-DEJJvyGk.mjs +66 -0
  157. package/dist/index-DTx8atxB.js +1 -0
  158. package/dist/index-Db47iJVz.js +1 -0
  159. package/dist/{index-DRa_xux4.mjs → index-RUkz9Z2V.mjs} +27 -53
  160. package/dist/index-SbQUT2mU.mjs +639 -0
  161. package/dist/index-_wqLxu7x.js +1 -0
  162. package/dist/index-gts_19_n.js +1 -0
  163. package/dist/{index-CQ1IPLlk.mjs → index-u1oHKa7X.mjs} +13 -61
  164. package/dist/{radio-group-29lMl-2M.mjs → radio-group-CGC6DTFJ.mjs} +14 -14
  165. package/dist/theme.js +18 -0
  166. package/dist/theme.mjs +1649 -0
  167. package/dist/types/components/Alert/styles.d.ts +2 -2
  168. package/dist/types/components/Avatar/styles.d.ts +2 -2
  169. package/dist/types/components/Badge/styles.d.ts +1 -1
  170. package/dist/types/components/Button/theme.d.ts +1 -1
  171. package/dist/types/components/Card/Cover.styles.d.ts +1 -1
  172. package/dist/types/components/Checkbox/index.d.ts +1 -1
  173. package/dist/types/components/ClearButton/styles.d.ts +1 -1
  174. package/dist/types/components/CloseButton/styles.d.ts +1 -1
  175. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +1 -1
  176. package/dist/types/components/Drawer/index.d.ts +2 -2
  177. package/dist/types/components/Drawer/styles.d.ts +1 -1
  178. package/dist/types/components/DropdownMenu/index.d.ts +1 -1
  179. package/dist/types/components/DropdownMenu/styles.d.ts +1 -1
  180. package/dist/types/components/Field/index.d.ts +1 -1
  181. package/dist/types/components/Field/styles.d.ts +1 -1
  182. package/dist/types/components/FileDrop/FilePreview.d.ts +1 -1
  183. package/dist/types/components/FileDrop/index.d.ts +1 -1
  184. package/dist/types/components/FileUpload/index.d.ts +1 -1
  185. package/dist/types/components/Icon/styles.d.ts +1 -1
  186. package/dist/types/components/IconsFont/_hash.d.ts +1 -0
  187. package/dist/types/components/{IconFont → IconsFont}/index.d.ts +4 -4
  188. package/dist/types/components/InputText/index.d.ts +1 -1
  189. package/dist/types/components/Logo/index.d.ts +1 -1
  190. package/dist/types/components/Modal/Assets/index.d.ts +4 -4
  191. package/dist/types/components/Modal/Assets/styles.d.ts +2 -2
  192. package/dist/types/components/Modal/index.d.ts +4 -4
  193. package/dist/types/components/Modal/styles.d.ts +2 -2
  194. package/dist/types/components/Popover/Popover.d.ts +1 -1
  195. package/dist/types/components/Popover/PopoverHover.d.ts +1 -1
  196. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  197. package/dist/types/components/Radio/index.d.ts +1 -1
  198. package/dist/types/components/RadioTab/index.d.ts +1 -1
  199. package/dist/types/components/Search/index.d.ts +1 -1
  200. package/dist/types/components/Select/index.d.ts +2 -2
  201. package/dist/types/components/Shape/styles.d.ts +1 -1
  202. package/dist/types/components/Slider/Range.d.ts +1 -1
  203. package/dist/types/components/Slider/index.d.ts +1 -1
  204. package/dist/types/components/Slider/styles.d.ts +5 -5
  205. package/dist/types/components/Tabs/TabList.d.ts +1 -1
  206. package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
  207. package/dist/types/components/Tag/index.d.ts +1 -1
  208. package/dist/types/components/Tag/styles.d.ts +1 -1
  209. package/dist/types/components/Tag/theme.d.ts +1 -1
  210. package/dist/types/components/Textarea/index.d.ts +1 -1
  211. package/dist/types/components/Toast/index.d.ts +3 -3
  212. package/dist/types/components/Toast/styles.d.ts +8 -8
  213. package/dist/utils.js +1 -0
  214. package/dist/utils.mjs +77 -0
  215. package/package.json +52 -67
  216. package/dist/CustomInput-CHhz-wtr.js +0 -1064
  217. package/dist/CustomInput-DsJYqH0X.mjs +0 -1272
  218. package/dist/MTZPJQMC-C9lHSyrL.mjs +0 -13
  219. package/dist/VEVQD5MH-DOp_qaPw.mjs +0 -20
  220. package/dist/Welcome-BNr4uu5n.mjs +0 -48
  221. package/dist/Welcome-Dw9OaREs.js +0 -3
  222. package/dist/X5NMLKT6-DGZEtYXj.mjs +0 -25
  223. package/dist/index-B8roHPE-.js +0 -64
  224. package/dist/index-BFQbRuqA.mjs +0 -165
  225. package/dist/index-BjGfAqCk.mjs +0 -209
  226. package/dist/index-Bn9aiaUQ.mjs +0 -193
  227. package/dist/index-CiYwvMF0.js +0 -8
  228. package/dist/index-Cjf3wLkx.mjs +0 -272
  229. package/dist/index-CmBs24Im.mjs +0 -413
  230. package/dist/index-D3Tnfi3U.mjs +0 -83
  231. package/dist/index-DG7ovxHW.js +0 -117
  232. package/dist/index-DHCyCfRv.js +0 -35
  233. package/dist/index-DSZG0Sqy.js +0 -54
  234. package/dist/index-DhF591OM.js +0 -42
  235. package/dist/index-gPtu0TOV.js +0 -1
  236. package/dist/types/components/index.d.ts +0 -61
  237. package/dist/types/index.d.ts +0 -3
  238. package/dist/usePopover-AbS2gpZq.mjs +0 -144
  239. package/dist/usePopover-CzPtX0h_.js +0 -31
  240. package/dist/types/components/{IconFont → IconsFont}/styles.d.ts +1 -1
@@ -14,4 +14,4 @@
14
14
  -webkit-font-smoothing: antialiased;
15
15
  -moz-osx-font-smoothing: grayscale;
16
16
  }
17
- `),Uc=a,Jc={...s},Kc=o=>{const t=o.replace(/_(\w)/g,(c,n)=>n.toUpperCase());return`${t.charAt(0).toUpperCase()}${t.substr(1)}`},Rc=Object.keys(Jc),Gc=Rc.reduce((o,t)=>{const c=Kc(t);return o[c]=n=>{const r=n.className||"";return F.createElement(a,{...n,className:`${r} wui-icon-font`,"data-testid":n.dataTestId&&`icon-font-${n.dataTestId}`,name:t})},o},{});exports.IconFont=Gc;exports.IconFontStyled=Uc;
17
+ `),Uc=a,Jc={...s},Kc=o=>{const t=o.replace(/_(\w)/g,(c,n)=>n.toUpperCase());return`${t.charAt(0).toUpperCase()}${t.substr(1)}`},Rc=Object.keys(Jc),Gc=Rc.reduce((o,t)=>{const c=Kc(t);return o[c]=n=>{const r=n.className||"";return F.createElement(a,{...n,className:`${r} wui-icon-font`,"data-testid":n.dataTestId&&`icon-font-${n.dataTestId}`,name:t})},o},{});exports.IconsFont=Gc;exports.IconsFontStyled=Uc;
@@ -343,6 +343,6 @@ const s = F.i(
343
343
  }, o;
344
344
  }, {});
345
345
  export {
346
- Wc as IconFont,
347
- Vc as IconFontStyled
346
+ Wc as IconsFont,
347
+ Vc as IconsFontStyled
348
348
  };
package/dist/InputText.js CHANGED
@@ -1,8 +1,8 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),I=require("./System.js"),W=require("./ClearButton.js"),E=require("./Field.js"),f=require("./field-styles-D_gf6ypV.js"),$=require("./create-event-YSlay9Ef.js"),o=require("@xstyled/styled-components"),C=o("input").withConfig({shouldForwardProp:I.shouldForwardProp})(({iconPlacement:n,isClearable:l,size:i,transparent:e,variant:t})=>o.css`
2
- ${f.defaultFieldStyles({size:i,variant:t,transparent:e,isClearable:l,iconPlacement:n})};
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),I=require("./field-styles-D_gf6ypV.js"),W=require("./create-event-YSlay9Ef.js"),o=require("@xstyled/styled-components"),f=require("./System.js"),$=require("./ClearButton.js"),E=require("./Field.js"),C=o("input").withConfig({shouldForwardProp:f.shouldForwardProp})(({iconPlacement:n,isClearable:l,size:i,transparent:e,variant:t})=>o.css`
2
+ ${I.defaultFieldStyles({size:i,variant:t,transparent:e,isClearable:l,iconPlacement:n})};
3
3
  text-overflow: ellipsis;
4
4
 
5
5
  ${o.system};
6
6
  `),N=o.div`
7
7
  position: relative;
8
- `,y=I.forwardRef(({autoFocus:n,dataTestId:l,disabled:i,icon:e,iconPlacement:t="left",isClearable:u,name:c,onBlur:h,onChange:p,onFocus:m,onKeyDown:q,placeholder:v,size:d="md",transparent:S,type:x="text",value:a,variant:w,...F},T)=>{const g=u&&t==="right",z=e&&t,s=f.FIELD_ICON_SIZE[d],R=()=>{const B=$.createEvent({name:c,value:""});p&&p(B)};return r.createElement(N,null,r.createElement(C,{autoFocus:n,"data-testid":l,disabled:i,iconPlacement:!!e&&t,id:c,isClearable:u,name:c,onBlur:h,onChange:p,onFocus:m,onKeyDown:q,placeholder:v,ref:T,size:d,transparent:S,type:x,value:a,variant:w,...F}),z&&!g&&r.createElement(E.IconWrapper,{iconPlacement:t,size:s},r.cloneElement(e,{...e.props,size:s})),u&&r.createElement(E.IconGroupWrapper,{size:s},a&&r.createElement(W.ClearButton,{onClick:R}),t==="right"&&r.cloneElement(e,{...e.props,size:s})))});y.displayName="InputText";exports.InputText=y;
8
+ `,y=f.forwardRef(({autoFocus:n,dataTestId:l,disabled:i,icon:e,iconPlacement:t="left",isClearable:u,name:c,onBlur:h,onChange:p,onFocus:m,onKeyDown:q,placeholder:v,size:d="md",transparent:S,type:x="text",value:a,variant:w,...F},T)=>{const g=u&&t==="right",z=e&&t,s=I.FIELD_ICON_SIZE[d],R=()=>{const B=W.createEvent({name:c,value:""});p&&p(B)};return r.createElement(N,null,r.createElement(C,{autoFocus:n,"data-testid":l,disabled:i,iconPlacement:!!e&&t,id:c,isClearable:u,name:c,onBlur:h,onChange:p,onFocus:m,onKeyDown:q,placeholder:v,ref:T,size:d,transparent:S,type:x,value:a,variant:w,...F}),z&&!g&&r.createElement(E.IconWrapper,{iconPlacement:t,size:s},r.cloneElement(e,{...e.props,size:s})),u&&r.createElement(E.IconGroupWrapper,{size:s},a&&r.createElement($.ClearButton,{onClick:R}),t==="right"&&r.cloneElement(e,{...e.props,size:s})))});y.displayName="InputText";exports.InputText=y;
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import r from "react";
3
- import { shouldForwardProp as S, forwardRef as T } from "./System.mjs";
4
- import { ClearButton as W } from "./ClearButton.mjs";
5
- import { IconWrapper as $, IconGroupWrapper as g } from "./Field.mjs";
6
- import { d as B, F as N } from "./field-styles-CeV7pnOp.mjs";
7
- import { c as k } from "./create-event-rXDe5aCQ.mjs";
8
- import c, { css as A, system as C } from "@xstyled/styled-components";
9
- const D = c("input").withConfig({ shouldForwardProp: S })(
10
- ({ iconPlacement: s, isClearable: p, size: l, transparent: t, variant: e }) => A`
11
- ${B({
3
+ import { d as S, F as T } from "./field-styles-CeV7pnOp.mjs";
4
+ import { c as W } from "./create-event-rXDe5aCQ.mjs";
5
+ import c, { css as $, system as g } from "@xstyled/styled-components";
6
+ import { shouldForwardProp as B, forwardRef as N } from "./System.mjs";
7
+ import { ClearButton as k } from "./ClearButton.mjs";
8
+ import { IconWrapper as A, IconGroupWrapper as C } from "./Field.mjs";
9
+ const D = c("input").withConfig({ shouldForwardProp: B })(
10
+ ({ iconPlacement: s, isClearable: p, size: l, transparent: t, variant: e }) => $`
11
+ ${S({
12
12
  size: l,
13
13
  variant: e,
14
14
  transparent: t,
@@ -17,11 +17,11 @@ const D = c("input").withConfig({ shouldForwardProp: S })(
17
17
  })};
18
18
  text-overflow: ellipsis;
19
19
 
20
- ${C};
20
+ ${g};
21
21
  `
22
22
  ), G = c.div`
23
23
  position: relative;
24
- `, L = T(
24
+ `, L = N(
25
25
  ({
26
26
  autoFocus: s,
27
27
  dataTestId: p,
@@ -42,8 +42,8 @@ const D = c("input").withConfig({ shouldForwardProp: S })(
42
42
  variant: _,
43
43
  ...v
44
44
  }, w) => {
45
- const y = n && e === "right", z = t && e, o = N[a], F = () => {
46
- const R = k({
45
+ const y = n && e === "right", z = t && e, o = T[a], F = () => {
46
+ const R = W({
47
47
  name: i,
48
48
  value: ""
49
49
  });
@@ -72,7 +72,7 @@ const D = c("input").withConfig({ shouldForwardProp: S })(
72
72
  variant: _,
73
73
  ...v
74
74
  }
75
- ), z && !y && /* @__PURE__ */ r.createElement($, { iconPlacement: e, size: o }, r.cloneElement(t, { ...t.props, size: o })), n && /* @__PURE__ */ r.createElement(g, { size: o }, d && /* @__PURE__ */ r.createElement(W, { onClick: F }), e === "right" && r.cloneElement(t, { ...t.props, size: o })));
75
+ ), z && !y && /* @__PURE__ */ r.createElement(A, { iconPlacement: e, size: o }, r.cloneElement(t, { ...t.props, size: o })), n && /* @__PURE__ */ r.createElement(C, { size: o }, d && /* @__PURE__ */ r.createElement(k, { onClick: F }), e === "right" && r.cloneElement(t, { ...t.props, size: o })));
76
76
  }
77
77
  );
78
78
  L.displayName = "InputText";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { I as P, Q as q, Z as C, c as Z, f as W, b as K, F as L, m, h as D, a as y, a4 as pe, aa as ht, y as mt, G as Qe, ag as bt, ah as Et, a8 as Se, ai as xt, e as Ue, aj as yt, _ as we, E as Q, ak as Pt, j as Ze, al as Be, am as te, an as ge, ao as qe, ap as St, aq as wt, a6 as Ft, x as Dt, W as Je, l as Ot, u as ve, ar as Tt, as as re, v as At, M as Rt, s as Ct, at as _t } from "./LVA2YJMS-Dm5ieEMw.mjs";
3
- import { g as jt, h as Lt, e as Ht, f as et, u as Fe, i as Nt, D as Mt, j as Vt, k as It } from "./VGCJ63VH-BqPfqkK_.mjs";
4
- import { a as $t, u as B, d as kt } from "./YV4JVR4I-1ezWeCCz.mjs";
2
+ import { I as P, Q as q, Z as C, c as Z, f as W, h as K, F as L, t as m, d as D, g as y, a4 as pe, aa as ht, y as mt, G as Qe, ag as bt, ah as Et, a8 as Se, ai as xt, b as Ue, aj as yt, _ as we, E as Q, ak as Pt, e as Ze, al as Be, am as te, an as ge, ao as qe, ap as St, aq as wt, a6 as Ft, x as Dt, W as Je, k as Ot, u as ve, ar as Tt, as as re, r as At, M as Rt, q as Ct, at as _t } from "./LVA2YJMS-qFC9J-lt.mjs";
3
+ import { g as jt, h as Lt, e as Ht, f as et, a as Fe, i as Nt, D as Mt, j as Vt, k as It } from "./VGCJ63VH-B39w1tBw.mjs";
4
+ import { a as $t, u as B, d as kt } from "./YV4JVR4I-BGfUf3Nu.mjs";
5
5
  import { useRef as H, useEffect as F, isValidElement as Bt, useCallback as le, createContext as De, useContext as Oe, useState as X, useMemo as qt } from "react";
6
- import { r as Ee } from "./index-BZmKn5VO.mjs";
6
+ import { r as Ee } from "./index-BYdkhqH4.mjs";
7
7
  function Wt(e = {}) {
8
8
  return jt(e);
9
9
  }
@@ -1 +1 @@
1
- "use client";"use strict";const t=require("./LVA2YJMS-B2HZjIhJ.js"),R=require("./VGCJ63VH-Cuf7P3qW.js"),T=require("./YV4JVR4I-DIthYWMj.js"),d=require("react"),ne=require("./index-CQyLvMJP.js");function Pe(e={}){return R.createDisclosureStore(e)}function we(e,r,n){return R.useDisclosureStoreProps(e,r,n)}function Fe(e={}){const[r,n]=T.useStore(Pe,e);return we(r,n,e)}function je(e,...r){if(!e)return!1;const n=e.getAttribute("data-backdrop");return n==null?!1:n===""||n==="true"||!r.length?!0:r.some(o=>n===o)}var ee=new WeakMap;function W(e,r,n){ee.has(e)||ee.set(e,new Map);const o=ee.get(e),s=o.get(r);if(!s)return o.set(r,n()),()=>{var i;(i=o.get(r))==null||i(),o.delete(r)};const u=n(),c=()=>{u(),s(),o.delete(r)};return o.set(r,c),()=>{o.get(r)===c&&(u(),o.set(r,s))}}function ue(e,r,n){return W(e,r,()=>{const s=e.getAttribute(r);return e.setAttribute(r,n),()=>{s==null?e.removeAttribute(r):e.setAttribute(r,s)}})}function k(e,r,n){return W(e,r,()=>{const s=r in e,u=e[r];return e[r]=n,()=>{s?e[r]=u:delete e[r]}})}function oe(e,r){return e?W(e,"style",()=>{const o=e.style.cssText;return Object.assign(e.style,r),()=>{e.style.cssText=o}}):()=>{}}function Xe(e,r,n){return e?W(e,r,()=>{const s=e.style.getPropertyValue(r);return e.style.setProperty(r,n),()=>{s?e.style.setProperty(r,s):e.style.removeProperty(r)}}):()=>{}}var ze=["SCRIPT","STYLE"];function se(e){return`__ariakit-dialog-snapshot-${e}`}function Ge(e,r){const n=t.getDocument(r),o=se(e);if(!n.body[o])return!0;do{if(r===n.body)return!1;if(r[o])return!0;if(!r.parentElement)return!1;r=r.parentElement}while(!0)}function Je(e,r,n){return ze.includes(r.tagName)||!Ge(e,r)?!1:!n.some(o=>o&&t.contains(r,o))}function ie(e,r,n,o){for(let s of r){if(!(s!=null&&s.isConnected))continue;const u=r.some(l=>!l||l===s?!1:l.contains(s)),c=t.getDocument(s),i=s;for(;s.parentElement&&s!==c.body;){if(o==null||o(s.parentElement,i),!u)for(const l of s.parentElement.children)Je(e,l,r)&&n(l,i);s=s.parentElement}}}function Ke(e,r){const{body:n}=t.getDocument(r[0]),o=[];return ie(e,r,u=>{o.push(k(u,se(e),!0))}),t.chain(k(n,se(e),!0),()=>{for(const u of o)u()})}function $(e="",r=!1){return`__ariakit-dialog-${r?"ancestor":"outside"}${e?`-${e}`:""}`}function Ue(e,r=""){return t.chain(k(e,$(),!0),k(e,$(r),!0))}function Oe(e,r=""){return t.chain(k(e,$("",!0),!0),k(e,$(r,!0),!0))}function ae(e,r){const n=$(r,!0);if(e[n])return!0;const o=$(r);do{if(e[o])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function he(e,r){const n=[],o=r.map(u=>u==null?void 0:u.id);return ie(e,r,u=>{je(u,...o)||n.unshift(Ue(u,e))},(u,c)=>{c.hasAttribute("data-dialog")&&c.id!==e||n.unshift(Oe(u,e))}),()=>{for(const u of n)u()}}var Qe="div",Ze=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];t.createHook(function(r){return r});var U=t.forwardRef2(function(r){return t.createElement(Qe,r)});Object.assign(U,Ze.reduce((e,r)=>(e[r]=t.forwardRef2(function(o){return t.createElement(r,o)}),e),{}));function et({store:e,backdrop:r,alwaysVisible:n,hidden:o}){const s=d.useRef(null),u=R.useDisclosureStore({disclosure:e}),c=T.useStoreState(e,"contentElement");d.useEffect(()=>{const x=s.current,h=c;x&&h&&(x.style.zIndex=getComputedStyle(h).zIndex)},[c]),t.useSafeLayoutEffect(()=>{const x=c==null?void 0:c.id;if(!x)return;const h=s.current;if(h)return Oe(h,x)},[c]);const i=R.useDisclosureContent({ref:s,store:u,role:"presentation","data-backdrop":(c==null?void 0:c.id)||"",alwaysVisible:n,hidden:o??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!r)return null;if(d.isValidElement(r))return t.jsxRuntimeExports.jsx(U,t.__spreadProps(t.__spreadValues({},i),{render:r}));const l=typeof r!="boolean"?r:"div";return t.jsxRuntimeExports.jsx(U,t.__spreadProps(t.__spreadValues({},i),{render:t.jsxRuntimeExports.jsx(l,{})}))}function tt(e,...r){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return n==null?!1:r.length?n===""?!1:r.some(o=>n===o):!0}function rt(e){return ue(e,"aria-hidden","true")}function Te(){return"inert"in HTMLElement.prototype}function Ce(e,r){if(!("style"in e))return t.noop;if(Te())return k(e,"inert",!0);const o=t.getAllTabbableIn(e,!0).map(s=>{if(r!=null&&r.some(c=>c&&t.contains(c,s)))return t.noop;const u=W(s,"focus",()=>(s.focus=t.noop,()=>{delete s.focus}));return t.chain(ue(s,"tabindex","-1"),u)});return t.chain(...o,rt(e),oe(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function nt(e,r){const n=[],o=r.map(u=>u==null?void 0:u.id);return ie(e,r,u=>{je(u,...o)||tt(u,...o)||n.unshift(Ce(u,r))},u=>{u.hasAttribute("role")&&(r.some(c=>c&&t.contains(c,u))||n.unshift(ue(u,"role","none")))}),()=>{for(const u of n)u()}}function ot({attribute:e,contentId:r,contentElement:n,enabled:o}){const[s,u]=t.useForceUpdate(),c=d.useCallback(()=>{if(!o||!n)return!1;const{body:i}=t.getDocument(n),l=i.getAttribute(e);return!l||l===r},[s,o,n,e,r]);return d.useEffect(()=>{if(!o||!r||!n)return;const{body:i}=t.getDocument(n);if(c())return i.setAttribute(e,r),()=>i.removeAttribute(e);const l=new MutationObserver(()=>ne.reactDomExports.flushSync(u));return l.observe(i,{attributeFilter:[e]}),()=>l.disconnect()},[s,o,r,n,c,e]),c}function st(e){const r=e.getBoundingClientRect().left;return Math.round(r)+e.scrollLeft?"paddingLeft":"paddingRight"}function ut(e,r,n){const o=ot({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:r,enabled:n});d.useEffect(()=>{if(!o()||!e)return;const s=t.getDocument(e),u=t.getWindow(e),{documentElement:c,body:i}=s,l=c.style.getPropertyValue("--scrollbar-width"),x=l?Number.parseInt(l):u.innerWidth-c.clientWidth,h=()=>Xe(c,"--scrollbar-width",`${x}px`),D=st(c),p=()=>oe(i,{overflow:"hidden",[D]:`${x}px`}),A=()=>{var L,H;const{scrollX:C,scrollY:I,visualViewport:P}=u,f=(L=P==null?void 0:P.offsetLeft)!=null?L:0,b=(H=P==null?void 0:P.offsetTop)!=null?H:0,E=oe(i,{position:"fixed",overflow:"hidden",top:`${-(I-Math.floor(b))}px`,left:`${-(C-Math.floor(f))}px`,right:"0",[D]:`${x}px`});return()=>{E(),process.env.NODE_ENV!=="test"&&u.scrollTo({left:C,top:I,behavior:"instant"})}},V=t.isApple()&&!t.isMac();return t.chain(h(),V?A():p())},[o,e])}var Se=d.createContext({});function it(e){const r=d.useContext(Se),[n,o]=d.useState([]),s=d.useCallback(i=>{var l;return o(x=>[...x,i]),t.chain((l=r.add)==null?void 0:l.call(r,i),()=>{o(x=>x.filter(h=>h!==i))})},[r]);t.useSafeLayoutEffect(()=>T.sync(e,["open","contentElement"],i=>{var l;if(i.open&&i.contentElement)return(l=r.add)==null?void 0:l.call(r,e)}),[e,r]);const u=d.useMemo(()=>({store:e,add:s}),[e,s]);return{wrapElement:d.useCallback(i=>t.jsxRuntimeExports.jsx(Se.Provider,{value:u,children:i}),[u]),nestedDialogs:n}}function at(e){const r=d.useRef();return d.useEffect(()=>{if(!e){r.current=null;return}const n=o=>{r.current=o.target};return t.addGlobalEventListener("mousedown",n,!0)},[e]),r}function ct(e){return e.tagName==="HTML"?!0:t.contains(t.getDocument(e).body,e)}function lt(e,r){if(!e)return!1;if(t.contains(e,r))return!0;const n=r.getAttribute("aria-activedescendant");if(n){const o=t.getDocument(e).getElementById(n);if(o)return t.contains(e,o)}return!1}function ft(e,r){if(!("clientY"in e))return!1;const n=r.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}function te({store:e,type:r,listener:n,capture:o,domReady:s}){const u=t.useEvent(n),c=T.useStoreState(e,"open"),i=d.useRef(!1);t.useSafeLayoutEffect(()=>{if(!c||!s)return;const{contentElement:l}=e.getState();if(!l)return;const x=()=>{i.current=!0};return l.addEventListener("focusin",x,!0),()=>l.removeEventListener("focusin",x,!0)},[e,c,s]),d.useEffect(()=>{if(!c)return;const l=x=>{const{contentElement:h,disclosureElement:D}=e.getState(),p=x.target;!h||!p||!ct(p)||t.contains(h,p)||lt(D,p)||p.hasAttribute("data-focus-trap")||ft(x,h)||i.current&&!ae(p,h.id)||t.isSafariFocusAncestor(p)||u(x)};return t.addGlobalEventListener(r,l,o)},[c,o])}function re(e,r){return typeof e=="function"?e(r):!!e}function dt(e,r,n){const o=T.useStoreState(e,"open"),s=at(o),u={store:e,domReady:n,capture:!0};te(t.__spreadProps(t.__spreadValues({},u),{type:"click",listener:c=>{const{contentElement:i}=e.getState(),l=s.current;l&&t.isVisible(l)&&ae(l,i==null?void 0:i.id)&&re(r,c)&&e.hide()}})),te(t.__spreadProps(t.__spreadValues({},u),{type:"focusin",listener:c=>{const{contentElement:i}=e.getState();i&&c.target!==t.getDocument(i)&&re(r,c)&&e.hide()}})),te(t.__spreadProps(t.__spreadValues({},u),{type:"contextmenu",listener:c=>{re(r,c)&&e.hide()}}))}function pt(e,r){const o=t.getDocument(e).createElement("button");return o.type="button",o.tabIndex=-1,o.textContent="Dismiss popup",Object.assign(o.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),o.addEventListener("click",r),e.prepend(o),()=>{o.removeEventListener("click",r),o.remove()}}var gt="div",Ae=t.createHook(function(r){var n=r,{autoFocusOnShow:o=!0}=n,s=t.__objRest(n,["autoFocusOnShow"]);return s=t.useWrapElement(s,u=>t.jsxRuntimeExports.jsx(t.FocusableContext.Provider,{value:o,children:u}),[o]),s});t.forwardRef2(function(r){const n=Ae(r);return t.createElement(gt,n)});var _e=d.createContext(0);function mt({level:e,children:r}){const n=d.useContext(_e),o=Math.max(Math.min(e||n+1,6),1);return t.jsxRuntimeExports.jsx(_e.Provider,{value:o,children:r})}var Et="span",Ve=t.createHook(function(r){return r=t.__spreadProps(t.__spreadValues({},r),{style:t.__spreadValues({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},r.style)}),r});t.forwardRef2(function(r){const n=Ve(r);return t.createElement(Et,n)});var vt="span",xt=t.createHook(function(r){return r=t.__spreadProps(t.__spreadValues({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},r),{style:t.__spreadValues({position:"fixed",top:0,left:0},r.style)}),r=Ve(r),r}),K=t.forwardRef2(function(r){const n=xt(r);return t.createElement(vt,n)}),ye=d.createContext(null),bt="div";function ht(e){return t.getDocument(e).body}function St(e,r){return r?typeof r=="function"?r(e):r:t.getDocument(e).createElement("div")}function _t(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}function N(e){queueMicrotask(()=>{e==null||e.focus()})}var Le=t.createHook(function(r){var n=r,{preserveTabOrder:o,preserveTabOrderAnchor:s,portalElement:u,portalRef:c,portal:i=!0}=n,l=t.__objRest(n,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const x=d.useRef(null),h=t.useMergeRefs(x,l.ref),D=d.useContext(ye),[p,A]=d.useState(null),[V,L]=d.useState(null),H=d.useRef(null),C=d.useRef(null),I=d.useRef(null),P=d.useRef(null);return t.useSafeLayoutEffect(()=>{const f=x.current;if(!f||!i){A(null);return}const b=St(f,u);if(!b){A(null);return}const E=b.isConnected;if(E||(D||ht(f)).appendChild(b),b.id||(b.id=f.id?`portal/${f.id}`:_t()),A(b),t.setRef(c,b),!E)return()=>{b.remove(),t.setRef(c,null)}},[i,u,D,c]),t.useSafeLayoutEffect(()=>{if(!i||!o||!s)return;const b=t.getDocument(s).createElement("span");return b.style.position="fixed",s.insertAdjacentElement("afterend",b),L(b),()=>{b.remove(),L(null)}},[i,o,s]),d.useEffect(()=>{if(!p||!o)return;let f=0;const b=E=>{if(!t.isFocusEventOutside(E))return;const g=E.type==="focusin";if(cancelAnimationFrame(f),g)return t.restoreFocusIn(p);f=requestAnimationFrame(()=>{t.disableFocusIn(p,!0)})};return p.addEventListener("focusin",b,!0),p.addEventListener("focusout",b,!0),()=>{cancelAnimationFrame(f),p.removeEventListener("focusin",b,!0),p.removeEventListener("focusout",b,!0)}},[p,o]),l=t.useWrapElement(l,f=>{if(f=t.jsxRuntimeExports.jsx(ye.Provider,{value:p||D,children:f}),!i)return f;if(!p)return t.jsxRuntimeExports.jsx("span",{ref:h,id:l.id,style:{position:"fixed"},hidden:!0});f=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[o&&p&&t.jsxRuntimeExports.jsx(K,{ref:C,"data-focus-trap":l.id,className:"__focus-trap-inner-before",onFocus:E=>{t.isFocusEventOutside(E,p)?N(t.getNextTabbable()):N(H.current)}}),f,o&&p&&t.jsxRuntimeExports.jsx(K,{ref:I,"data-focus-trap":l.id,className:"__focus-trap-inner-after",onFocus:E=>{t.isFocusEventOutside(E,p)?N(t.getPreviousTabbable()):N(P.current)}})]}),p&&(f=ne.reactDomExports.createPortal(f,p));let b=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[o&&p&&t.jsxRuntimeExports.jsx(K,{ref:H,"data-focus-trap":l.id,className:"__focus-trap-outer-before",onFocus:E=>{!(E.relatedTarget===P.current)&&t.isFocusEventOutside(E,p)?N(C.current):N(t.getPreviousTabbable())}}),o&&t.jsxRuntimeExports.jsx("span",{"aria-owns":p==null?void 0:p.id,style:{position:"fixed"}}),o&&p&&t.jsxRuntimeExports.jsx(K,{ref:P,"data-focus-trap":l.id,className:"__focus-trap-outer-after",onFocus:E=>{if(t.isFocusEventOutside(E,p))N(I.current);else{const g=t.getNextTabbable();if(g===C.current){requestAnimationFrame(()=>{var Y;return(Y=t.getNextTabbable())==null?void 0:Y.focus()});return}N(g)}}})]});return V&&o&&(b=ne.reactDomExports.createPortal(b,V)),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[b,f]})},[p,D,i,l.id,o,V]),l=t.__spreadProps(t.__spreadValues({},l),{ref:h}),l});t.forwardRef2(function(r){const n=Le(r);return t.createElement(bt,n)});var yt="div",Re=t.isSafari();function Rt(e){const r=t.getActiveElement();return!r||e&&t.contains(e,r)?!1:!!t.isFocusable(r)}function De(e,r=!1){if(!e)return null;const n="current"in e?e.current:e;return n?r?t.isFocusable(n)?n:null:n:null}var He=t.createHook(function(r){var n=r,{store:o,open:s,onClose:u,focusable:c=!0,modal:i=!0,portal:l=!!i,backdrop:x=!!i,hideOnEscape:h=!0,hideOnInteractOutside:D=!0,getPersistentElements:p,preventBodyScroll:A=!!i,autoFocusOnShow:V=!0,autoFocusOnHide:L=!0,initialFocus:H,finalFocus:C,unmountOnHide:I,unstable_treeSnapshotKey:P}=n,f=t.__objRest(n,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const b=R.useDialogProviderContext(),E=d.useRef(null),g=Fe({store:o||b,open:s,setOpen(a){if(a)return;const v=E.current;if(!v)return;const S=new Event("close",{bubbles:!1,cancelable:!0});u&&v.addEventListener("close",u,{once:!0}),v.dispatchEvent(S),S.defaultPrevented&&g.setOpen(!0)}}),{portalRef:Y,domReady:_}=t.usePortalRef(l,f.portalRef),Me=f.preserveTabOrder,Q=T.useStoreState(g,a=>Me&&!i&&a.mounted),j=t.useId(f.id),w=T.useStoreState(g,"open"),F=T.useStoreState(g,"mounted"),M=T.useStoreState(g,"contentElement"),ke=R.isHidden(F,f.hidden,f.alwaysVisible);ut(M,j,A&&!ke),dt(g,D,_);const{wrapElement:ce,nestedDialogs:le}=it(g);f=t.useWrapElement(f,ce,[ce]),t.useSafeLayoutEffect(()=>{if(!w)return;const a=E.current,v=t.getActiveElement(a,!0);v&&v.tagName!=="BODY"&&(a&&t.contains(a,v)||g.setDisclosureElement(v))},[g,w]),Re&&d.useEffect(()=>{if(!F)return;const{disclosureElement:a}=g.getState();if(!a||!t.isButton(a))return;const v=()=>{let S=!1;const m=()=>{S=!0},y={capture:!0,once:!0};a.addEventListener("focusin",m,y),t.queueBeforeEvent(a,"mouseup",()=>{a.removeEventListener("focusin",m,!0),!S&&t.focusIfNeeded(a)})};return a.addEventListener("mousedown",v),()=>{a.removeEventListener("mousedown",v)}},[g,F]),d.useEffect(()=>{if(!F||!_)return;const a=E.current;if(!a)return;const v=t.getWindow(a),S=v.visualViewport||v,m=()=>{var y,O;const q=(O=(y=v.visualViewport)==null?void 0:y.height)!=null?O:v.innerHeight;a.style.setProperty("--dialog-viewport-height",`${q}px`)};return m(),S.addEventListener("resize",m),()=>{S.removeEventListener("resize",m)}},[F,_]),d.useEffect(()=>{if(!i||!F||!_)return;const a=E.current;if(!(!a||a.querySelector("[data-dialog-dismiss]")))return pt(a,g.hide)},[g,i,F,_]),t.useSafeLayoutEffect(()=>{if(!Te()||w||!F||!_)return;const a=E.current;if(a)return Ce(a)},[w,F,_]);const X=w&&_;t.useSafeLayoutEffect(()=>{if(!j||!X)return;const a=E.current;return Ke(j,[a])},[j,X,P]);const fe=t.useEvent(p);t.useSafeLayoutEffect(()=>{if(!j||!X)return;const{disclosureElement:a}=g.getState(),v=E.current,S=fe()||[],m=[v,...S,...le.map(y=>y.getState().contentElement)];return i?t.chain(he(j,m),nt(j,m)):he(j,[a,...m])},[j,g,X,fe,le,i,P]);const de=!!V,pe=t.useBooleanEvent(V),[Ie,$e]=d.useState(!1);d.useEffect(()=>{if(!w||!de||!_||!(M!=null&&M.isConnected))return;const a=De(H,!0)||M.querySelector("[data-autofocus=true],[autofocus]")||t.getFirstTabbableIn(M,!0,l&&Q)||M,v=t.isFocusable(a);pe(v?a:null)&&($e(!0),queueMicrotask(()=>{a.focus(),Re&&a.scrollIntoView({block:"nearest",inline:"nearest"})}))},[w,de,_,M,H,l,Q,pe]);const z=!!L,ge=t.useBooleanEvent(L),[G,me]=d.useState(!1);d.useEffect(()=>{if(w)return me(!0),()=>me(!1)},[w]);const B=d.useCallback((a,v=!0)=>{const{disclosureElement:S}=g.getState();if(Rt(a))return;let m=De(C)||S;if(m!=null&&m.id){const O=t.getDocument(m),q=`[aria-activedescendant="${m.id}"]`,J=O.querySelector(q);J&&(m=J)}if(m&&!t.isFocusable(m)){const O=m.closest("[data-dialog]");if(O!=null&&O.id){const q=t.getDocument(O),J=`[aria-controls~="${O.id}"]`,be=q.querySelector(J);be&&(m=be)}}const y=m&&t.isFocusable(m);if(!y&&v){requestAnimationFrame(()=>B(a,!1));return}ge(y?m:null)&&y&&(m==null||m.focus())},[g,C,ge]),Z=d.useRef(!1);t.useSafeLayoutEffect(()=>{if(w||!G||!z)return;const a=E.current;Z.current=!0,B(a)},[w,G,_,z,B]),d.useEffect(()=>{if(!G||!z)return;const a=E.current;return()=>{if(Z.current){Z.current=!1;return}B(a)}},[G,z,B]);const Ee=t.useBooleanEvent(h);d.useEffect(()=>{if(!_||!F)return;const a=v=>{if(v.key!=="Escape"||v.defaultPrevented)return;const S=E.current;if(!S||ae(S))return;const m=v.target;if(!m)return;const{disclosureElement:y}=g.getState();!!(m.tagName==="BODY"||t.contains(S,m)||!y||t.contains(y,m))&&Ee(v)&&g.hide()};return t.addGlobalEventListener("keydown",a,!0)},[g,_,F,Ee]),f=t.useWrapElement(f,a=>t.jsxRuntimeExports.jsx(mt,{level:i?1:void 0,children:a}),[i]);const ve=f.hidden,xe=f.alwaysVisible;f=t.useWrapElement(f,a=>x?t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(et,{store:g,backdrop:x,hidden:ve,alwaysVisible:xe}),a]}):a,[g,x,ve,xe]);const[Be,qe]=d.useState(),[We,Ye]=d.useState();return f=t.useWrapElement(f,a=>t.jsxRuntimeExports.jsx(R.DialogScopedContextProvider,{value:g,children:t.jsxRuntimeExports.jsx(R.DialogHeadingContext.Provider,{value:qe,children:t.jsxRuntimeExports.jsx(R.DialogDescriptionContext.Provider,{value:Ye,children:a})})}),[g]),f=t.__spreadProps(t.__spreadValues({id:j,"data-dialog":"",role:"dialog",tabIndex:c?-1:void 0,"aria-labelledby":Be,"aria-describedby":We},f),{ref:t.useMergeRefs(E,f.ref)}),f=Ae(t.__spreadProps(t.__spreadValues({},f),{autoFocusOnShow:Ie})),f=R.useDisclosureContent(t.__spreadValues({store:g},f)),f=t.useFocusable(t.__spreadProps(t.__spreadValues({},f),{focusable:c})),f=Le(t.__spreadProps(t.__spreadValues({portal:l},f),{portalRef:Y,preserveTabOrder:Q})),f});function Ne(e,r=R.useDialogProviderContext){return t.forwardRef2(function(o){const s=r(),u=o.store||s;return T.useStoreState(u,i=>!o.unmountOnHide||(i==null?void 0:i.mounted)||!!o.open)?t.jsxRuntimeExports.jsx(e,t.__spreadValues({},o)):null})}var Dt=Ne(t.forwardRef2(function(r){const n=He(r);return t.createElement(yt,n)}),R.useDialogProviderContext);exports.Dialog=Dt;exports.Role=U;exports.createDialogComponent=Ne;exports.createDialogStore=Pe;exports.useDialog=He;exports.useDialogStore=Fe;exports.useDialogStoreProps=we;
1
+ "use client";"use strict";const t=require("./LVA2YJMS-B2HZjIhJ.js"),R=require("./VGCJ63VH-BNLwLOaC.js"),T=require("./YV4JVR4I-DIthYWMj.js"),d=require("react"),ne=require("./index-BHi0wohR.js");function Pe(e={}){return R.createDisclosureStore(e)}function we(e,r,n){return R.useDisclosureStoreProps(e,r,n)}function Fe(e={}){const[r,n]=T.useStore(Pe,e);return we(r,n,e)}function je(e,...r){if(!e)return!1;const n=e.getAttribute("data-backdrop");return n==null?!1:n===""||n==="true"||!r.length?!0:r.some(o=>n===o)}var ee=new WeakMap;function W(e,r,n){ee.has(e)||ee.set(e,new Map);const o=ee.get(e),s=o.get(r);if(!s)return o.set(r,n()),()=>{var i;(i=o.get(r))==null||i(),o.delete(r)};const u=n(),c=()=>{u(),s(),o.delete(r)};return o.set(r,c),()=>{o.get(r)===c&&(u(),o.set(r,s))}}function ue(e,r,n){return W(e,r,()=>{const s=e.getAttribute(r);return e.setAttribute(r,n),()=>{s==null?e.removeAttribute(r):e.setAttribute(r,s)}})}function k(e,r,n){return W(e,r,()=>{const s=r in e,u=e[r];return e[r]=n,()=>{s?e[r]=u:delete e[r]}})}function oe(e,r){return e?W(e,"style",()=>{const o=e.style.cssText;return Object.assign(e.style,r),()=>{e.style.cssText=o}}):()=>{}}function Xe(e,r,n){return e?W(e,r,()=>{const s=e.style.getPropertyValue(r);return e.style.setProperty(r,n),()=>{s?e.style.setProperty(r,s):e.style.removeProperty(r)}}):()=>{}}var ze=["SCRIPT","STYLE"];function se(e){return`__ariakit-dialog-snapshot-${e}`}function Ge(e,r){const n=t.getDocument(r),o=se(e);if(!n.body[o])return!0;do{if(r===n.body)return!1;if(r[o])return!0;if(!r.parentElement)return!1;r=r.parentElement}while(!0)}function Je(e,r,n){return ze.includes(r.tagName)||!Ge(e,r)?!1:!n.some(o=>o&&t.contains(r,o))}function ie(e,r,n,o){for(let s of r){if(!(s!=null&&s.isConnected))continue;const u=r.some(l=>!l||l===s?!1:l.contains(s)),c=t.getDocument(s),i=s;for(;s.parentElement&&s!==c.body;){if(o==null||o(s.parentElement,i),!u)for(const l of s.parentElement.children)Je(e,l,r)&&n(l,i);s=s.parentElement}}}function Ke(e,r){const{body:n}=t.getDocument(r[0]),o=[];return ie(e,r,u=>{o.push(k(u,se(e),!0))}),t.chain(k(n,se(e),!0),()=>{for(const u of o)u()})}function $(e="",r=!1){return`__ariakit-dialog-${r?"ancestor":"outside"}${e?`-${e}`:""}`}function Ue(e,r=""){return t.chain(k(e,$(),!0),k(e,$(r),!0))}function Oe(e,r=""){return t.chain(k(e,$("",!0),!0),k(e,$(r,!0),!0))}function ae(e,r){const n=$(r,!0);if(e[n])return!0;const o=$(r);do{if(e[o])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function he(e,r){const n=[],o=r.map(u=>u==null?void 0:u.id);return ie(e,r,u=>{je(u,...o)||n.unshift(Ue(u,e))},(u,c)=>{c.hasAttribute("data-dialog")&&c.id!==e||n.unshift(Oe(u,e))}),()=>{for(const u of n)u()}}var Qe="div",Ze=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];t.createHook(function(r){return r});var U=t.forwardRef2(function(r){return t.createElement(Qe,r)});Object.assign(U,Ze.reduce((e,r)=>(e[r]=t.forwardRef2(function(o){return t.createElement(r,o)}),e),{}));function et({store:e,backdrop:r,alwaysVisible:n,hidden:o}){const s=d.useRef(null),u=R.useDisclosureStore({disclosure:e}),c=T.useStoreState(e,"contentElement");d.useEffect(()=>{const x=s.current,h=c;x&&h&&(x.style.zIndex=getComputedStyle(h).zIndex)},[c]),t.useSafeLayoutEffect(()=>{const x=c==null?void 0:c.id;if(!x)return;const h=s.current;if(h)return Oe(h,x)},[c]);const i=R.useDisclosureContent({ref:s,store:u,role:"presentation","data-backdrop":(c==null?void 0:c.id)||"",alwaysVisible:n,hidden:o??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!r)return null;if(d.isValidElement(r))return t.jsxRuntimeExports.jsx(U,t.__spreadProps(t.__spreadValues({},i),{render:r}));const l=typeof r!="boolean"?r:"div";return t.jsxRuntimeExports.jsx(U,t.__spreadProps(t.__spreadValues({},i),{render:t.jsxRuntimeExports.jsx(l,{})}))}function tt(e,...r){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return n==null?!1:r.length?n===""?!1:r.some(o=>n===o):!0}function rt(e){return ue(e,"aria-hidden","true")}function Te(){return"inert"in HTMLElement.prototype}function Ce(e,r){if(!("style"in e))return t.noop;if(Te())return k(e,"inert",!0);const o=t.getAllTabbableIn(e,!0).map(s=>{if(r!=null&&r.some(c=>c&&t.contains(c,s)))return t.noop;const u=W(s,"focus",()=>(s.focus=t.noop,()=>{delete s.focus}));return t.chain(ue(s,"tabindex","-1"),u)});return t.chain(...o,rt(e),oe(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function nt(e,r){const n=[],o=r.map(u=>u==null?void 0:u.id);return ie(e,r,u=>{je(u,...o)||tt(u,...o)||n.unshift(Ce(u,r))},u=>{u.hasAttribute("role")&&(r.some(c=>c&&t.contains(c,u))||n.unshift(ue(u,"role","none")))}),()=>{for(const u of n)u()}}function ot({attribute:e,contentId:r,contentElement:n,enabled:o}){const[s,u]=t.useForceUpdate(),c=d.useCallback(()=>{if(!o||!n)return!1;const{body:i}=t.getDocument(n),l=i.getAttribute(e);return!l||l===r},[s,o,n,e,r]);return d.useEffect(()=>{if(!o||!r||!n)return;const{body:i}=t.getDocument(n);if(c())return i.setAttribute(e,r),()=>i.removeAttribute(e);const l=new MutationObserver(()=>ne.reactDomExports.flushSync(u));return l.observe(i,{attributeFilter:[e]}),()=>l.disconnect()},[s,o,r,n,c,e]),c}function st(e){const r=e.getBoundingClientRect().left;return Math.round(r)+e.scrollLeft?"paddingLeft":"paddingRight"}function ut(e,r,n){const o=ot({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:r,enabled:n});d.useEffect(()=>{if(!o()||!e)return;const s=t.getDocument(e),u=t.getWindow(e),{documentElement:c,body:i}=s,l=c.style.getPropertyValue("--scrollbar-width"),x=l?Number.parseInt(l):u.innerWidth-c.clientWidth,h=()=>Xe(c,"--scrollbar-width",`${x}px`),D=st(c),p=()=>oe(i,{overflow:"hidden",[D]:`${x}px`}),A=()=>{var L,H;const{scrollX:C,scrollY:I,visualViewport:P}=u,f=(L=P==null?void 0:P.offsetLeft)!=null?L:0,b=(H=P==null?void 0:P.offsetTop)!=null?H:0,E=oe(i,{position:"fixed",overflow:"hidden",top:`${-(I-Math.floor(b))}px`,left:`${-(C-Math.floor(f))}px`,right:"0",[D]:`${x}px`});return()=>{E(),process.env.NODE_ENV!=="test"&&u.scrollTo({left:C,top:I,behavior:"instant"})}},V=t.isApple()&&!t.isMac();return t.chain(h(),V?A():p())},[o,e])}var Se=d.createContext({});function it(e){const r=d.useContext(Se),[n,o]=d.useState([]),s=d.useCallback(i=>{var l;return o(x=>[...x,i]),t.chain((l=r.add)==null?void 0:l.call(r,i),()=>{o(x=>x.filter(h=>h!==i))})},[r]);t.useSafeLayoutEffect(()=>T.sync(e,["open","contentElement"],i=>{var l;if(i.open&&i.contentElement)return(l=r.add)==null?void 0:l.call(r,e)}),[e,r]);const u=d.useMemo(()=>({store:e,add:s}),[e,s]);return{wrapElement:d.useCallback(i=>t.jsxRuntimeExports.jsx(Se.Provider,{value:u,children:i}),[u]),nestedDialogs:n}}function at(e){const r=d.useRef();return d.useEffect(()=>{if(!e){r.current=null;return}const n=o=>{r.current=o.target};return t.addGlobalEventListener("mousedown",n,!0)},[e]),r}function ct(e){return e.tagName==="HTML"?!0:t.contains(t.getDocument(e).body,e)}function lt(e,r){if(!e)return!1;if(t.contains(e,r))return!0;const n=r.getAttribute("aria-activedescendant");if(n){const o=t.getDocument(e).getElementById(n);if(o)return t.contains(e,o)}return!1}function ft(e,r){if(!("clientY"in e))return!1;const n=r.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}function te({store:e,type:r,listener:n,capture:o,domReady:s}){const u=t.useEvent(n),c=T.useStoreState(e,"open"),i=d.useRef(!1);t.useSafeLayoutEffect(()=>{if(!c||!s)return;const{contentElement:l}=e.getState();if(!l)return;const x=()=>{i.current=!0};return l.addEventListener("focusin",x,!0),()=>l.removeEventListener("focusin",x,!0)},[e,c,s]),d.useEffect(()=>{if(!c)return;const l=x=>{const{contentElement:h,disclosureElement:D}=e.getState(),p=x.target;!h||!p||!ct(p)||t.contains(h,p)||lt(D,p)||p.hasAttribute("data-focus-trap")||ft(x,h)||i.current&&!ae(p,h.id)||t.isSafariFocusAncestor(p)||u(x)};return t.addGlobalEventListener(r,l,o)},[c,o])}function re(e,r){return typeof e=="function"?e(r):!!e}function dt(e,r,n){const o=T.useStoreState(e,"open"),s=at(o),u={store:e,domReady:n,capture:!0};te(t.__spreadProps(t.__spreadValues({},u),{type:"click",listener:c=>{const{contentElement:i}=e.getState(),l=s.current;l&&t.isVisible(l)&&ae(l,i==null?void 0:i.id)&&re(r,c)&&e.hide()}})),te(t.__spreadProps(t.__spreadValues({},u),{type:"focusin",listener:c=>{const{contentElement:i}=e.getState();i&&c.target!==t.getDocument(i)&&re(r,c)&&e.hide()}})),te(t.__spreadProps(t.__spreadValues({},u),{type:"contextmenu",listener:c=>{re(r,c)&&e.hide()}}))}function pt(e,r){const o=t.getDocument(e).createElement("button");return o.type="button",o.tabIndex=-1,o.textContent="Dismiss popup",Object.assign(o.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),o.addEventListener("click",r),e.prepend(o),()=>{o.removeEventListener("click",r),o.remove()}}var gt="div",Ae=t.createHook(function(r){var n=r,{autoFocusOnShow:o=!0}=n,s=t.__objRest(n,["autoFocusOnShow"]);return s=t.useWrapElement(s,u=>t.jsxRuntimeExports.jsx(t.FocusableContext.Provider,{value:o,children:u}),[o]),s});t.forwardRef2(function(r){const n=Ae(r);return t.createElement(gt,n)});var _e=d.createContext(0);function mt({level:e,children:r}){const n=d.useContext(_e),o=Math.max(Math.min(e||n+1,6),1);return t.jsxRuntimeExports.jsx(_e.Provider,{value:o,children:r})}var Et="span",Ve=t.createHook(function(r){return r=t.__spreadProps(t.__spreadValues({},r),{style:t.__spreadValues({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},r.style)}),r});t.forwardRef2(function(r){const n=Ve(r);return t.createElement(Et,n)});var vt="span",xt=t.createHook(function(r){return r=t.__spreadProps(t.__spreadValues({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},r),{style:t.__spreadValues({position:"fixed",top:0,left:0},r.style)}),r=Ve(r),r}),K=t.forwardRef2(function(r){const n=xt(r);return t.createElement(vt,n)}),ye=d.createContext(null),bt="div";function ht(e){return t.getDocument(e).body}function St(e,r){return r?typeof r=="function"?r(e):r:t.getDocument(e).createElement("div")}function _t(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}function N(e){queueMicrotask(()=>{e==null||e.focus()})}var Le=t.createHook(function(r){var n=r,{preserveTabOrder:o,preserveTabOrderAnchor:s,portalElement:u,portalRef:c,portal:i=!0}=n,l=t.__objRest(n,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const x=d.useRef(null),h=t.useMergeRefs(x,l.ref),D=d.useContext(ye),[p,A]=d.useState(null),[V,L]=d.useState(null),H=d.useRef(null),C=d.useRef(null),I=d.useRef(null),P=d.useRef(null);return t.useSafeLayoutEffect(()=>{const f=x.current;if(!f||!i){A(null);return}const b=St(f,u);if(!b){A(null);return}const E=b.isConnected;if(E||(D||ht(f)).appendChild(b),b.id||(b.id=f.id?`portal/${f.id}`:_t()),A(b),t.setRef(c,b),!E)return()=>{b.remove(),t.setRef(c,null)}},[i,u,D,c]),t.useSafeLayoutEffect(()=>{if(!i||!o||!s)return;const b=t.getDocument(s).createElement("span");return b.style.position="fixed",s.insertAdjacentElement("afterend",b),L(b),()=>{b.remove(),L(null)}},[i,o,s]),d.useEffect(()=>{if(!p||!o)return;let f=0;const b=E=>{if(!t.isFocusEventOutside(E))return;const g=E.type==="focusin";if(cancelAnimationFrame(f),g)return t.restoreFocusIn(p);f=requestAnimationFrame(()=>{t.disableFocusIn(p,!0)})};return p.addEventListener("focusin",b,!0),p.addEventListener("focusout",b,!0),()=>{cancelAnimationFrame(f),p.removeEventListener("focusin",b,!0),p.removeEventListener("focusout",b,!0)}},[p,o]),l=t.useWrapElement(l,f=>{if(f=t.jsxRuntimeExports.jsx(ye.Provider,{value:p||D,children:f}),!i)return f;if(!p)return t.jsxRuntimeExports.jsx("span",{ref:h,id:l.id,style:{position:"fixed"},hidden:!0});f=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[o&&p&&t.jsxRuntimeExports.jsx(K,{ref:C,"data-focus-trap":l.id,className:"__focus-trap-inner-before",onFocus:E=>{t.isFocusEventOutside(E,p)?N(t.getNextTabbable()):N(H.current)}}),f,o&&p&&t.jsxRuntimeExports.jsx(K,{ref:I,"data-focus-trap":l.id,className:"__focus-trap-inner-after",onFocus:E=>{t.isFocusEventOutside(E,p)?N(t.getPreviousTabbable()):N(P.current)}})]}),p&&(f=ne.reactDomExports.createPortal(f,p));let b=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[o&&p&&t.jsxRuntimeExports.jsx(K,{ref:H,"data-focus-trap":l.id,className:"__focus-trap-outer-before",onFocus:E=>{!(E.relatedTarget===P.current)&&t.isFocusEventOutside(E,p)?N(C.current):N(t.getPreviousTabbable())}}),o&&t.jsxRuntimeExports.jsx("span",{"aria-owns":p==null?void 0:p.id,style:{position:"fixed"}}),o&&p&&t.jsxRuntimeExports.jsx(K,{ref:P,"data-focus-trap":l.id,className:"__focus-trap-outer-after",onFocus:E=>{if(t.isFocusEventOutside(E,p))N(I.current);else{const g=t.getNextTabbable();if(g===C.current){requestAnimationFrame(()=>{var Y;return(Y=t.getNextTabbable())==null?void 0:Y.focus()});return}N(g)}}})]});return V&&o&&(b=ne.reactDomExports.createPortal(b,V)),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[b,f]})},[p,D,i,l.id,o,V]),l=t.__spreadProps(t.__spreadValues({},l),{ref:h}),l});t.forwardRef2(function(r){const n=Le(r);return t.createElement(bt,n)});var yt="div",Re=t.isSafari();function Rt(e){const r=t.getActiveElement();return!r||e&&t.contains(e,r)?!1:!!t.isFocusable(r)}function De(e,r=!1){if(!e)return null;const n="current"in e?e.current:e;return n?r?t.isFocusable(n)?n:null:n:null}var He=t.createHook(function(r){var n=r,{store:o,open:s,onClose:u,focusable:c=!0,modal:i=!0,portal:l=!!i,backdrop:x=!!i,hideOnEscape:h=!0,hideOnInteractOutside:D=!0,getPersistentElements:p,preventBodyScroll:A=!!i,autoFocusOnShow:V=!0,autoFocusOnHide:L=!0,initialFocus:H,finalFocus:C,unmountOnHide:I,unstable_treeSnapshotKey:P}=n,f=t.__objRest(n,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const b=R.useDialogProviderContext(),E=d.useRef(null),g=Fe({store:o||b,open:s,setOpen(a){if(a)return;const v=E.current;if(!v)return;const S=new Event("close",{bubbles:!1,cancelable:!0});u&&v.addEventListener("close",u,{once:!0}),v.dispatchEvent(S),S.defaultPrevented&&g.setOpen(!0)}}),{portalRef:Y,domReady:_}=t.usePortalRef(l,f.portalRef),Me=f.preserveTabOrder,Q=T.useStoreState(g,a=>Me&&!i&&a.mounted),j=t.useId(f.id),w=T.useStoreState(g,"open"),F=T.useStoreState(g,"mounted"),M=T.useStoreState(g,"contentElement"),ke=R.isHidden(F,f.hidden,f.alwaysVisible);ut(M,j,A&&!ke),dt(g,D,_);const{wrapElement:ce,nestedDialogs:le}=it(g);f=t.useWrapElement(f,ce,[ce]),t.useSafeLayoutEffect(()=>{if(!w)return;const a=E.current,v=t.getActiveElement(a,!0);v&&v.tagName!=="BODY"&&(a&&t.contains(a,v)||g.setDisclosureElement(v))},[g,w]),Re&&d.useEffect(()=>{if(!F)return;const{disclosureElement:a}=g.getState();if(!a||!t.isButton(a))return;const v=()=>{let S=!1;const m=()=>{S=!0},y={capture:!0,once:!0};a.addEventListener("focusin",m,y),t.queueBeforeEvent(a,"mouseup",()=>{a.removeEventListener("focusin",m,!0),!S&&t.focusIfNeeded(a)})};return a.addEventListener("mousedown",v),()=>{a.removeEventListener("mousedown",v)}},[g,F]),d.useEffect(()=>{if(!F||!_)return;const a=E.current;if(!a)return;const v=t.getWindow(a),S=v.visualViewport||v,m=()=>{var y,O;const q=(O=(y=v.visualViewport)==null?void 0:y.height)!=null?O:v.innerHeight;a.style.setProperty("--dialog-viewport-height",`${q}px`)};return m(),S.addEventListener("resize",m),()=>{S.removeEventListener("resize",m)}},[F,_]),d.useEffect(()=>{if(!i||!F||!_)return;const a=E.current;if(!(!a||a.querySelector("[data-dialog-dismiss]")))return pt(a,g.hide)},[g,i,F,_]),t.useSafeLayoutEffect(()=>{if(!Te()||w||!F||!_)return;const a=E.current;if(a)return Ce(a)},[w,F,_]);const X=w&&_;t.useSafeLayoutEffect(()=>{if(!j||!X)return;const a=E.current;return Ke(j,[a])},[j,X,P]);const fe=t.useEvent(p);t.useSafeLayoutEffect(()=>{if(!j||!X)return;const{disclosureElement:a}=g.getState(),v=E.current,S=fe()||[],m=[v,...S,...le.map(y=>y.getState().contentElement)];return i?t.chain(he(j,m),nt(j,m)):he(j,[a,...m])},[j,g,X,fe,le,i,P]);const de=!!V,pe=t.useBooleanEvent(V),[Ie,$e]=d.useState(!1);d.useEffect(()=>{if(!w||!de||!_||!(M!=null&&M.isConnected))return;const a=De(H,!0)||M.querySelector("[data-autofocus=true],[autofocus]")||t.getFirstTabbableIn(M,!0,l&&Q)||M,v=t.isFocusable(a);pe(v?a:null)&&($e(!0),queueMicrotask(()=>{a.focus(),Re&&a.scrollIntoView({block:"nearest",inline:"nearest"})}))},[w,de,_,M,H,l,Q,pe]);const z=!!L,ge=t.useBooleanEvent(L),[G,me]=d.useState(!1);d.useEffect(()=>{if(w)return me(!0),()=>me(!1)},[w]);const B=d.useCallback((a,v=!0)=>{const{disclosureElement:S}=g.getState();if(Rt(a))return;let m=De(C)||S;if(m!=null&&m.id){const O=t.getDocument(m),q=`[aria-activedescendant="${m.id}"]`,J=O.querySelector(q);J&&(m=J)}if(m&&!t.isFocusable(m)){const O=m.closest("[data-dialog]");if(O!=null&&O.id){const q=t.getDocument(O),J=`[aria-controls~="${O.id}"]`,be=q.querySelector(J);be&&(m=be)}}const y=m&&t.isFocusable(m);if(!y&&v){requestAnimationFrame(()=>B(a,!1));return}ge(y?m:null)&&y&&(m==null||m.focus())},[g,C,ge]),Z=d.useRef(!1);t.useSafeLayoutEffect(()=>{if(w||!G||!z)return;const a=E.current;Z.current=!0,B(a)},[w,G,_,z,B]),d.useEffect(()=>{if(!G||!z)return;const a=E.current;return()=>{if(Z.current){Z.current=!1;return}B(a)}},[G,z,B]);const Ee=t.useBooleanEvent(h);d.useEffect(()=>{if(!_||!F)return;const a=v=>{if(v.key!=="Escape"||v.defaultPrevented)return;const S=E.current;if(!S||ae(S))return;const m=v.target;if(!m)return;const{disclosureElement:y}=g.getState();!!(m.tagName==="BODY"||t.contains(S,m)||!y||t.contains(y,m))&&Ee(v)&&g.hide()};return t.addGlobalEventListener("keydown",a,!0)},[g,_,F,Ee]),f=t.useWrapElement(f,a=>t.jsxRuntimeExports.jsx(mt,{level:i?1:void 0,children:a}),[i]);const ve=f.hidden,xe=f.alwaysVisible;f=t.useWrapElement(f,a=>x?t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(et,{store:g,backdrop:x,hidden:ve,alwaysVisible:xe}),a]}):a,[g,x,ve,xe]);const[Be,qe]=d.useState(),[We,Ye]=d.useState();return f=t.useWrapElement(f,a=>t.jsxRuntimeExports.jsx(R.DialogScopedContextProvider,{value:g,children:t.jsxRuntimeExports.jsx(R.DialogHeadingContext.Provider,{value:qe,children:t.jsxRuntimeExports.jsx(R.DialogDescriptionContext.Provider,{value:Ye,children:a})})}),[g]),f=t.__spreadProps(t.__spreadValues({id:j,"data-dialog":"",role:"dialog",tabIndex:c?-1:void 0,"aria-labelledby":Be,"aria-describedby":We},f),{ref:t.useMergeRefs(E,f.ref)}),f=Ae(t.__spreadProps(t.__spreadValues({},f),{autoFocusOnShow:Ie})),f=R.useDisclosureContent(t.__spreadValues({store:g},f)),f=t.useFocusable(t.__spreadProps(t.__spreadValues({},f),{focusable:c})),f=Le(t.__spreadProps(t.__spreadValues({portal:l},f),{portalRef:Y,preserveTabOrder:Q})),f});function Ne(e,r=R.useDialogProviderContext){return t.forwardRef2(function(o){const s=r(),u=o.store||s;return T.useStoreState(u,i=>!o.unmountOnHide||(i==null?void 0:i.mounted)||!!o.open)?t.jsxRuntimeExports.jsx(e,t.__spreadValues({},o)):null})}var Dt=Ne(t.forwardRef2(function(r){const n=He(r);return t.createElement(yt,n)}),R.useDialogProviderContext);exports.Dialog=Dt;exports.Role=U;exports.createDialogComponent=Ne;exports.createDialogStore=Pe;exports.useDialog=He;exports.useDialogStore=Fe;exports.useDialogStoreProps=we;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as F, _ as d, l as p, o as I, d as O, e as N, p as x, q as j, r as Y, s as H, t as _, h as L, j as V, a as T, v as z, f as G, b as J } from "./LVA2YJMS-Dm5ieEMw.mjs";
2
+ import { c as F, _ as d, k as p, l as I, a as O, b as N, m as x, n as Y, o as j, q as H, p as _, d as L, e as V, g as T, r as z, f as G, h as J } from "./LVA2YJMS-qFC9J-lt.mjs";
3
3
  import { useRef as C, useState as D, useEffect as Q } from "react";
4
4
  var W = "button";
5
5
  function M(n) {
@@ -14,27 +14,27 @@ var X = Symbol("command"), Z = F(
14
14
  Q(() => {
15
15
  c.current && R(p(c.current));
16
16
  }, []);
17
- const [v, k] = D(!1), f = C(!1), y = I(r), [E, w] = O(r, X, !0), P = r.onKeyDown, U = N((e) => {
18
- P == null || P(e);
17
+ const [w, k] = D(!1), f = C(!1), y = I(r), [E, U] = O(r, X, !0), g = r.onKeyDown, v = N((e) => {
18
+ g == null || g(e);
19
19
  const s = e.currentTarget;
20
- if (e.defaultPrevented || E || y || !x(e) || j(s) || s.isContentEditable) return;
20
+ if (e.defaultPrevented || E || y || !x(e) || Y(s) || s.isContentEditable) return;
21
21
  const u = m && e.key === "Enter", i = o && e.key === " ", l = e.key === "Enter" && !m, q = e.key === " " && !o;
22
22
  if (l || q) {
23
23
  e.preventDefault();
24
24
  return;
25
25
  }
26
26
  if (u || i) {
27
- const g = M(e);
27
+ const b = M(e);
28
28
  if (u) {
29
- if (!g) {
29
+ if (!b) {
30
30
  e.preventDefault();
31
31
  const A = e, B = d(A, ["view"]), S = () => _(s, B);
32
- Y() ? H(s, "keyup", S) : queueMicrotask(S);
32
+ j() ? H(s, "keyup", S) : queueMicrotask(S);
33
33
  }
34
- } else i && (f.current = !0, g || (e.preventDefault(), k(!0)));
34
+ } else i && (f.current = !0, b || (e.preventDefault(), k(!0)));
35
35
  }
36
- }), b = r.onKeyUp, h = N((e) => {
37
- if (b == null || b(e), e.defaultPrevented || E || y || e.metaKey) return;
36
+ }), P = r.onKeyUp, h = N((e) => {
37
+ if (P == null || P(e), e.defaultPrevented || E || y || e.metaKey) return;
38
38
  const s = o && e.key === " ";
39
39
  if (f.current && s && (f.current = !1, !M(e))) {
40
40
  e.preventDefault(), k(!1);
@@ -43,11 +43,11 @@ var X = Symbol("command"), Z = F(
43
43
  }
44
44
  });
45
45
  return r = L(T(T({
46
- "data-active": v || void 0,
46
+ "data-active": w || void 0,
47
47
  type: K ? "button" : void 0
48
- }, w), r), {
48
+ }, U), r), {
49
49
  ref: V(c, r.ref),
50
- onKeyDown: U,
50
+ onKeyDown: v,
51
51
  onKeyUp: h
52
52
  }), r = z(r), r;
53
53
  }
@@ -1420,7 +1420,7 @@ export {
1420
1420
  wn as Y,
1421
1421
  ee as Z,
1422
1422
  St as _,
1423
- P as a,
1423
+ qn as a,
1424
1424
  _n as a0,
1425
1425
  mn as a1,
1426
1426
  yn as a2,
@@ -1451,27 +1451,27 @@ export {
1451
1451
  Jn as ar,
1452
1452
  q as as,
1453
1453
  Zr as at,
1454
- Kr as b,
1454
+ N as b,
1455
1455
  Ur as c,
1456
- qn as d,
1457
- N as e,
1456
+ L as d,
1457
+ Ke as e,
1458
1458
  Br as f,
1459
- Dr as g,
1460
- L as h,
1459
+ P as g,
1460
+ Kr as h,
1461
1461
  hn as i,
1462
- Ke as j,
1463
- Vr as k,
1464
- Cr as l,
1465
- U as m,
1466
- Hn as n,
1467
- _r as o,
1468
- vt as p,
1469
- Ye as q,
1470
- Fn as r,
1471
- ke as s,
1472
- Nn as t,
1462
+ Vr as j,
1463
+ Cr as k,
1464
+ _r as l,
1465
+ vt as m,
1466
+ Ye as n,
1467
+ Fn as o,
1468
+ Nn as p,
1469
+ ke as q,
1470
+ cn as r,
1471
+ Dr as s,
1472
+ U as t,
1473
1473
  Bn as u,
1474
- cn as v,
1474
+ Hn as v,
1475
1475
  Gn as w,
1476
1476
  $n as x,
1477
1477
  Yn as y,
package/dist/Label.js CHANGED
@@ -1 +1,35 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");require("./Icon.js");const e=require("./index-DHCyCfRv.js");require("./index-CiYwvMF0.js");require("./System.js");require("./wrap-children-BLDjJiiy.js");exports.Label=e.Label;exports.StyledLabel=e.StyledLabel;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),y=require("./wrap-children-BLDjJiiy.js"),e=require("@xstyled/styled-components"),s=require("./System.js");require("./Icon.js");const f=require("./index-BJzGkA7x.js"),b=require("./VariantIcon.js"),o=e("label").withConfig({shouldForwardProp:s.shouldForwardProp})(({required:r})=>e.css`
2
+ position: relative;
3
+ display: flex;
4
+ flex-shrink: 0;
5
+ max-width: 100%;
6
+ align-items: center;
7
+ line-height: lg;
8
+ ${e.th("labels")};
9
+ ${e.system};
10
+ user-select: none;
11
+
12
+ > * {
13
+ &:not(:last-child) {
14
+ margin-right: sm;
15
+ }
16
+
17
+ :last-child {
18
+ ${r&&w};
19
+ }
20
+ }
21
+ `),w=e.css`
22
+ &::after {
23
+ content: '*';
24
+ margin-left: xs;
25
+ /* It prevents the element to shift the layout and it allows us to put it properly on top with super */
26
+ line-height: 0;
27
+ vertical-align: super;
28
+ font-size: subtitle-sm;
29
+ font-weight: bold;
30
+ color: primary-40;
31
+ }
32
+ `,q=e.div`
33
+ display: inline-flex;
34
+ margin-right: xs;
35
+ `,a=s.forwardRef(({checkableField:r,children:c,dataTestId:u,disabled:l,disabledIcon:i,icon:d,variant:n,withDisabledIcon:h=!0,...m},p)=>{const g=y.wrapChildren(c);return t.createElement(o,{"data-testid":u,disabled:l,disabledIcon:i,ref:p,variant:n,...m},!r&&t.createElement(b.VariantIcon,{icon:d,size:"sm",variant:n}),l&&h&&t.createElement(q,null,i||t.createElement(f.LockIcon,{size:"sm"})),g)});a.displayName="Label";const x=o;exports.Label=a;exports.StyledLabel=x;
package/dist/Label.mjs CHANGED
@@ -1,10 +1,79 @@
1
- import "react";
1
+ "use client";
2
+ import e from "react";
3
+ import { w as u } from "./wrap-children-aq69jtFP.mjs";
4
+ import o, { css as s, th as g, system as y } from "@xstyled/styled-components";
5
+ import { shouldForwardProp as w, forwardRef as b } from "./System.mjs";
2
6
  import "./Icon.mjs";
3
- import { L as e, S as l } from "./index-D3Tnfi3U.mjs";
4
- import "./index-DRa_xux4.mjs";
5
- import "./System.mjs";
6
- import "./wrap-children-aq69jtFP.mjs";
7
+ import { L as x } from "./index-BQtDgQBH.mjs";
8
+ import { VariantIcon as L } from "./VariantIcon.mjs";
9
+ const n = o("label").withConfig({ shouldForwardProp: w })(
10
+ ({ required: t }) => s`
11
+ position: relative;
12
+ display: flex;
13
+ flex-shrink: 0;
14
+ max-width: 100%;
15
+ align-items: center;
16
+ line-height: lg;
17
+ ${g("labels")};
18
+ ${y};
19
+ user-select: none;
20
+
21
+ > * {
22
+ &:not(:last-child) {
23
+ margin-right: sm;
24
+ }
25
+
26
+ :last-child {
27
+ ${t && E};
28
+ }
29
+ }
30
+ `
31
+ ), E = s`
32
+ &::after {
33
+ content: '*';
34
+ margin-left: xs;
35
+ /* It prevents the element to shift the layout and it allows us to put it properly on top with super */
36
+ line-height: 0;
37
+ vertical-align: super;
38
+ font-size: subtitle-sm;
39
+ font-weight: bold;
40
+ color: primary-40;
41
+ }
42
+ `, _ = o.div`
43
+ display: inline-flex;
44
+ margin-right: xs;
45
+ `, $ = b(
46
+ ({
47
+ checkableField: t,
48
+ children: a,
49
+ dataTestId: m,
50
+ disabled: l,
51
+ disabledIcon: r,
52
+ icon: c,
53
+ variant: i,
54
+ withDisabledIcon: p = !0,
55
+ ...f
56
+ }, h) => {
57
+ const d = u(a);
58
+ return /* @__PURE__ */ e.createElement(
59
+ n,
60
+ {
61
+ "data-testid": m,
62
+ disabled: l,
63
+ disabledIcon: r,
64
+ ref: h,
65
+ variant: i,
66
+ ...f
67
+ },
68
+ !t && /* @__PURE__ */ e.createElement(L, { icon: c, size: "sm", variant: i }),
69
+ l && p && /* @__PURE__ */ e.createElement(_, null, r || /* @__PURE__ */ e.createElement(x, { size: "sm" })),
70
+ d
71
+ );
72
+ }
73
+ );
74
+ $.displayName = "Label";
75
+ const q = n;
7
76
  export {
8
- e as Label,
9
- l as StyledLabel
77
+ $ as Label,
78
+ q as StyledLabel
10
79
  };
package/dist/Link.js CHANGED
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react");require("./Icon.js");const y=require("./index-BAD1dszB.js"),c=require("./System.js"),e=require("@xstyled/styled-components"),f=require("./UniversalLink.js"),k=e(f.UniversalLink).withConfig({shouldForwardProp:c.shouldForwardProp})(({isExternal:t,variant:n="primary"})=>e.css`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),e=require("@xstyled/styled-components"),y=require("./UniversalLink.js"),c=require("./System.js");require("./Icon.js");const f=require("./index-BAD1dszB.js"),k=e(y.UniversalLink).withConfig({shouldForwardProp:c.shouldForwardProp})(({isExternal:t,variant:n="primary"})=>e.css`
2
2
  display: inline-flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -40,4 +40,4 @@
40
40
  & > *:not(:only-child):not(:last-child) {
41
41
  margin-right: xs;
42
42
  }
43
- `),u=t=>{var n,r,s;return(t==null?void 0:t.type)==="span"||((n=t==null?void 0:t.props)==null?void 0:n.as)==="span"||((r=t==null?void 0:t.props)==null?void 0:r.tagName)==="span"||((s=t==null?void 0:t.props)==null?void 0:s["data-wui-link"])===!0},p=t=>typeof t=="object"?u(t):typeof t=="string",a=({children:t,isExternal:n})=>i.createElement("span",{className:"wui-text"},t,n&&i.createElement(y.ExternalLinkIcon,{mb:"-2px",ml:"sm",size:"sm"})),l=c.forwardRef((t,n)=>{const{children:r,dataTestId:s,disabled:h,isExternal:o,variant:m="primary",...x}=t,g=p(r)?i.createElement(a,{isExternal:o},r):i.Children.map(r,d=>p(d)?i.createElement(a,{isExternal:o},d):d);return i.createElement(k,{"data-testid":s,disabled:h,isExternal:o,ref:n,variant:m,...x},g)});l.displayName="Link";exports.Link=l;
43
+ `),u=t=>{var n,r,s;return(t==null?void 0:t.type)==="span"||((n=t==null?void 0:t.props)==null?void 0:n.as)==="span"||((r=t==null?void 0:t.props)==null?void 0:r.tagName)==="span"||((s=t==null?void 0:t.props)==null?void 0:s["data-wui-link"])===!0},p=t=>typeof t=="object"?u(t):typeof t=="string",a=({children:t,isExternal:n})=>i.createElement("span",{className:"wui-text"},t,n&&i.createElement(f.ExternalLinkIcon,{mb:"-2px",ml:"sm",size:"sm"})),l=c.forwardRef((t,n)=>{const{children:r,dataTestId:s,disabled:h,isExternal:o,variant:m="primary",...x}=t,g=p(r)?i.createElement(a,{isExternal:o},r):i.Children.map(r,d=>p(d)?i.createElement(a,{isExternal:o},d):d);return i.createElement(k,{"data-testid":s,disabled:h,isExternal:o,ref:n,variant:m,...x},g)});l.displayName="Link";exports.Link=l;
package/dist/Link.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import i from "react";
3
+ import h, { css as x, th as e, typography as g, system as y } from "@xstyled/styled-components";
4
+ import { UniversalLink as k } from "./UniversalLink.mjs";
5
+ import { shouldForwardProp as $, forwardRef as w } from "./System.mjs";
3
6
  import "./Icon.mjs";
4
- import { E as h } from "./index-DqBUFsqP.mjs";
5
- import { shouldForwardProp as x, forwardRef as g } from "./System.mjs";
6
- import y, { css as k, th as e, typography as $, system as w } from "@xstyled/styled-components";
7
- import { UniversalLink as E } from "./UniversalLink.mjs";
8
- const L = y(E).withConfig({ shouldForwardProp: x })(
9
- ({ isExternal: t, variant: n = "primary" }) => k`
7
+ import { E } from "./index-DqBUFsqP.mjs";
8
+ const L = h(k).withConfig({ shouldForwardProp: $ })(
9
+ ({ isExternal: t, variant: n = "primary" }) => x`
10
10
  display: inline-flex;
11
11
  flex-direction: row;
12
12
  align-items: center;
@@ -24,7 +24,7 @@ const L = y(E).withConfig({ shouldForwardProp: x })(
24
24
  ${e("links.default")};
25
25
  ${e(`links.${n}.default`)};
26
26
  ${t && e("links.withExternalLink")};
27
- ${$};
27
+ ${g};
28
28
  }
29
29
 
30
30
  &:hover,
@@ -43,7 +43,7 @@ const L = y(E).withConfig({ shouldForwardProp: x })(
43
43
  pointer-events: none;
44
44
  }
45
45
 
46
- ${w};
46
+ ${y};
47
47
 
48
48
  & > *:not(:only-child):not(:last-child) {
49
49
  margin-right: xs;
@@ -57,7 +57,7 @@ const L = y(E).withConfig({ shouldForwardProp: x })(
57
57
  ((n = t == null ? void 0 : t.props) == null ? void 0 : n.as) === "span" || // <FormattedMessage />
58
58
  ((r = t == null ? void 0 : t.props) == null ? void 0 : r.tagName) === "span" || ((o = t == null ? void 0 : t.props) == null ? void 0 : o["data-wui-link"]) === !0
59
59
  );
60
- }, a = (t) => typeof t == "object" ? W(t) : typeof t == "string", d = ({ children: t, isExternal: n }) => /* @__PURE__ */ i.createElement("span", { className: "wui-text" }, t, n && /* @__PURE__ */ i.createElement(h, { mb: "-2px", ml: "sm", size: "sm" })), b = g((t, n) => {
60
+ }, a = (t) => typeof t == "object" ? W(t) : typeof t == "string", d = ({ children: t, isExternal: n }) => /* @__PURE__ */ i.createElement("span", { className: "wui-text" }, t, n && /* @__PURE__ */ i.createElement(E, { mb: "-2px", ml: "sm", size: "sm" })), b = w((t, n) => {
61
61
  const { children: r, dataTestId: o, disabled: m, isExternal: s, variant: c = "primary", ...l } = t, f = a(r) ? /* @__PURE__ */ i.createElement(d, { isExternal: s }, r) : i.Children.map(r, (p) => a(p) ? /* @__PURE__ */ i.createElement(d, { isExternal: s }, p) : p);
62
62
  return /* @__PURE__ */ i.createElement(
63
63
  L,
package/dist/Loader.js CHANGED
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),d=require("./Box.js"),s=require("./System.js"),a=require("@xstyled/styled-components"),m=require("./Shape.js"),u=a.keyframes`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),a=require("@xstyled/styled-components"),d=require("./Shape.js"),s=require("./System.js"),m=require("./Box.js"),u=a.keyframes`
2
2
  0%, 100% {
3
3
  opacity: .5;
4
4
  transform: scale3d(.8, .8, 1);
@@ -9,7 +9,7 @@
9
9
  }
10
10
  `,h=a.css`
11
11
  animation: ${u} 1.5s cubic-bezier(0.86, 0, 0.07, 1) infinite;
12
- `,c=a(m.Shape).withConfig({shouldForwardProp:s.shouldForwardProp})(({size:o,theme:r})=>{var n;const e=((n=r.loaders)==null?void 0:n[o])||o,t=typeof e=="number"?r.toRem(e):e;return a.css`
12
+ `,c=a(d.Shape).withConfig({shouldForwardProp:s.shouldForwardProp})(({size:o,theme:r})=>{var n;const e=((n=r.loaders)==null?void 0:n[o])||o,t=typeof e=="number"?r.toRem(e):e;return a.css`
13
13
  width: ${t};
14
14
  height: ${t};
15
15
  background-color: currentColor;
@@ -27,4 +27,4 @@
27
27
  &:nth-child(3) {
28
28
  animation-delay: 0.25s;
29
29
  }
30
- `}),l=s.forwardRef(({color:o,dataTestId:r,size:e="sm",...t},n)=>i.createElement(d.Box,{color:o,"data-testid":r,display:"flex",ref:n,...t},i.createElement(c,{shape:"circle",size:e}),i.createElement(c,{shape:"circle",size:e}),i.createElement(c,{shape:"circle",size:e})));l.displayName="Loader";exports.Loader=l;
30
+ `}),l=s.forwardRef(({color:o,dataTestId:r,size:e="sm",...t},n)=>i.createElement(m.Box,{color:o,"data-testid":r,display:"flex",ref:n,...t},i.createElement(c,{shape:"circle",size:e}),i.createElement(c,{shape:"circle",size:e}),i.createElement(c,{shape:"circle",size:e})));l.displayName="Loader";exports.Loader=l;
package/dist/Loader.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import i from "react";
3
- import { Box as l } from "./Box.mjs";
4
- import { shouldForwardProp as m, forwardRef as s } from "./System.mjs";
5
- import d, { keyframes as f, css as c, system as p } from "@xstyled/styled-components";
6
- import { Shape as h } from "./Shape.mjs";
7
- const u = f`
3
+ import l, { keyframes as m, css as c, system as s } from "@xstyled/styled-components";
4
+ import { Shape as d } from "./Shape.mjs";
5
+ import { shouldForwardProp as f, forwardRef as p } from "./System.mjs";
6
+ import { Box as h } from "./Box.mjs";
7
+ const u = m`
8
8
  0%, 100% {
9
9
  opacity: .5;
10
10
  transform: scale3d(.8, .8, 1);
@@ -15,7 +15,7 @@ const u = f`
15
15
  }
16
16
  `, y = c`
17
17
  animation: ${u} 1.5s cubic-bezier(0.86, 0, 0.07, 1) infinite;
18
- `, n = d(h).withConfig({ shouldForwardProp: m })(
18
+ `, n = l(d).withConfig({ shouldForwardProp: f })(
19
19
  ({ size: a, theme: o }) => {
20
20
  var r;
21
21
  const e = ((r = o.loaders) == null ? void 0 : r[a]) || a, t = typeof e == "number" ? o.toRem(e) : e;
@@ -23,7 +23,7 @@ const u = f`
23
23
  width: ${t};
24
24
  height: ${t};
25
25
  background-color: currentColor;
26
- ${p}
26
+ ${s}
27
27
  ${y};
28
28
  &:not(:first-child) {
29
29
  margin-left: calc(${t} / 2);
@@ -39,8 +39,8 @@ const u = f`
39
39
  }
40
40
  `;
41
41
  }
42
- ), $ = s(
43
- ({ color: a, dataTestId: o, size: e = "sm", ...t }, r) => /* @__PURE__ */ i.createElement(l, { color: a, "data-testid": o, display: "flex", ref: r, ...t }, /* @__PURE__ */ i.createElement(n, { shape: "circle", size: e }), /* @__PURE__ */ i.createElement(n, { shape: "circle", size: e }), /* @__PURE__ */ i.createElement(n, { shape: "circle", size: e }))
42
+ ), $ = p(
43
+ ({ color: a, dataTestId: o, size: e = "sm", ...t }, r) => /* @__PURE__ */ i.createElement(h, { color: a, "data-testid": o, display: "flex", ref: r, ...t }, /* @__PURE__ */ i.createElement(n, { shape: "circle", size: e }), /* @__PURE__ */ i.createElement(n, { shape: "circle", size: e }), /* @__PURE__ */ i.createElement(n, { shape: "circle", size: e }))
44
44
  );
45
45
  $.displayName = "Loader";
46
46
  export {