welcome-ui 1.0.0-beta.8 → 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 (231) 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} +1346 -3475
  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/Badge/styles.d.ts +1 -1
  168. package/dist/types/components/Button/theme.d.ts +1 -1
  169. package/dist/types/components/Checkbox/index.d.ts +1 -1
  170. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +1 -1
  171. package/dist/types/components/Drawer/index.d.ts +2 -2
  172. package/dist/types/components/Drawer/styles.d.ts +1 -1
  173. package/dist/types/components/DropdownMenu/index.d.ts +1 -1
  174. package/dist/types/components/Field/index.d.ts +1 -1
  175. package/dist/types/components/Field/styles.d.ts +1 -1
  176. package/dist/types/components/FileDrop/FilePreview.d.ts +1 -1
  177. package/dist/types/components/FileDrop/index.d.ts +1 -1
  178. package/dist/types/components/FileUpload/index.d.ts +1 -1
  179. package/dist/types/components/Icon/styles.d.ts +1 -1
  180. package/dist/types/components/IconsFont/_hash.d.ts +1 -0
  181. package/dist/types/components/{IconFont → IconsFont}/index.d.ts +4 -4
  182. package/dist/types/components/InputText/index.d.ts +1 -1
  183. package/dist/types/components/Logo/index.d.ts +1 -1
  184. package/dist/types/components/Modal/Assets/index.d.ts +2 -2
  185. package/dist/types/components/Modal/Assets/styles.d.ts +1 -1
  186. package/dist/types/components/Modal/index.d.ts +4 -4
  187. package/dist/types/components/Popover/Popover.d.ts +1 -1
  188. package/dist/types/components/Popover/PopoverHover.d.ts +1 -1
  189. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  190. package/dist/types/components/Radio/index.d.ts +1 -1
  191. package/dist/types/components/RadioTab/index.d.ts +1 -1
  192. package/dist/types/components/Search/index.d.ts +1 -1
  193. package/dist/types/components/Select/index.d.ts +2 -2
  194. package/dist/types/components/Slider/Range.d.ts +1 -1
  195. package/dist/types/components/Slider/index.d.ts +1 -1
  196. package/dist/types/components/Tabs/TabList.d.ts +1 -1
  197. package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
  198. package/dist/types/components/Tag/index.d.ts +1 -1
  199. package/dist/types/components/Tag/styles.d.ts +1 -1
  200. package/dist/types/components/Tag/theme.d.ts +1 -1
  201. package/dist/types/components/Textarea/index.d.ts +1 -1
  202. package/dist/types/components/Toast/index.d.ts +1 -1
  203. package/dist/types/components/Toast/styles.d.ts +4 -4
  204. package/dist/utils.js +1 -0
  205. package/dist/utils.mjs +77 -0
  206. package/package.json +52 -67
  207. package/dist/CustomInput-CHhz-wtr.js +0 -1064
  208. package/dist/CustomInput-DsJYqH0X.mjs +0 -1272
  209. package/dist/MTZPJQMC-C9lHSyrL.mjs +0 -13
  210. package/dist/VEVQD5MH-DOp_qaPw.mjs +0 -20
  211. package/dist/Welcome-BNr4uu5n.mjs +0 -48
  212. package/dist/Welcome-Dw9OaREs.js +0 -3
  213. package/dist/X5NMLKT6-DGZEtYXj.mjs +0 -25
  214. package/dist/index-B8roHPE-.js +0 -64
  215. package/dist/index-BFQbRuqA.mjs +0 -165
  216. package/dist/index-BjGfAqCk.mjs +0 -209
  217. package/dist/index-Bn9aiaUQ.mjs +0 -193
  218. package/dist/index-CiYwvMF0.js +0 -8
  219. package/dist/index-Cjf3wLkx.mjs +0 -272
  220. package/dist/index-CmBs24Im.mjs +0 -413
  221. package/dist/index-D3Tnfi3U.mjs +0 -83
  222. package/dist/index-DG7ovxHW.js +0 -117
  223. package/dist/index-DHCyCfRv.js +0 -35
  224. package/dist/index-DSZG0Sqy.js +0 -54
  225. package/dist/index-DhF591OM.js +0 -42
  226. package/dist/index-gPtu0TOV.js +0 -1
  227. package/dist/types/components/index.d.ts +0 -60
  228. package/dist/types/index.d.ts +0 -3
  229. package/dist/usePopover-AbS2gpZq.mjs +0 -144
  230. package/dist/usePopover-CzPtX0h_.js +0 -31
  231. package/dist/types/components/{IconFont → IconsFont}/styles.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");require("./Icon.js");const B=require("./index-BPeIa2mR.js"),L=require("./index-BNwz4P5j.js"),N=require("./System.js"),i=require("@xstyled/styled-components"),j=require("./hide-focus-rings-root-DGU4Klq5.js"),u=5,S=3;function m(t,e){return Array.from({length:t},(s,c)=>e(c))}function z(t,e){return t.reduce((s,c,l)=>{const n=[];return n.push(...s),n.push(...c),c.length&&l<t.length-1&&n.push(e),n},[])}function F(t,e){if(t<u)return"before";if(t>=u&&t<=e-u+1)return"center";if(t>e-u+1)return"after"}function G({page:t,pageCount:e,rangeDisplay:s}){return r.useMemo(()=>{if(e<=s||e<=u+1)return m(e,a=>a+1);const c=F(t,e),l=c==="before"?m(u,a=>a+1):[1],n=c==="center"?m(S,a=>a+t-1):[],d=c==="after"?m(u,a=>a+e-u+1):[e];return z([l,n,d],"-")},[t,e,s])}const M=i.nav(i.system),_=i.ul`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),i=require("@xstyled/styled-components"),B=require("./hide-focus-rings-root-DGU4Klq5.js");require("./Icon.js");const L=require("./index-BPeIa2mR.js"),N=require("./index-BNwz4P5j.js"),j=require("./System.js"),u=5,S=3;function m(t,e){return Array.from({length:t},(s,c)=>e(c))}function z(t,e){return t.reduce((s,c,l)=>{const n=[];return n.push(...s),n.push(...c),c.length&&l<t.length-1&&n.push(e),n},[])}function F(t,e){if(t<u)return"before";if(t>=u&&t<=e-u+1)return"center";if(t>e-u+1)return"after"}function G({page:t,pageCount:e,rangeDisplay:s}){return r.useMemo(()=>{if(e<=s||e<=u+1)return m(e,a=>a+1);const c=F(t,e),l=c==="before"?m(u,a=>a+1):[1],n=c==="center"?m(S,a=>a+t-1):[],d=c==="after"?m(u,a=>a+e-u+1):[e];return z([l,n,d],"-")},[t,e,s])}const M=i.nav(i.system),_=i.ul`
2
2
  list-style-type: none;
3
3
  padding: 0;
4
4
  margin: 0;
@@ -31,7 +31,7 @@
31
31
  transition: none;
32
32
  }
33
33
 
34
- [${j.hideFocusRingsDataAttribute}] &:focus {
34
+ [${B.hideFocusRingsDataAttribute}] &:focus {
35
35
  box-shadow: none;
36
36
  }
37
37
  `,y=i.aBox(t=>i.css`
@@ -43,4 +43,4 @@
43
43
  `),J=i.aBox(t=>i.css`
44
44
  ${R};
45
45
  ${t["aria-current"]&&i.th("paginations.active")}
46
- `),K=N.forwardRef(({"aria-label":t,dataTestId:e,getHref:s,leftArrow:c,onChange:l,page:n,pageCount:d,rangeDisplay:a=5,rightArrow:k,...v},q)=>{const P=G({page:n,pageCount:d,rangeDisplay:a}),x=r.useRef(null),$=r.useRef(null),h=n===1,E=n===d,A=r.useCallback(o=>{o.preventDefault();const f=n-1;f===1&&x.current.focus(),l(f)},[n,l]),D=r.useCallback(o=>{o.preventDefault();const f=n+1;f===d&&$.current.focus(),l(f)},[n,d,l]);return r.createElement(M,{"aria-label":t,"data-testid":e,ref:q,role:"navigation",...v},r.createElement(_,null,r.createElement(b,null,r.createElement(y,{"aria-disabled":h,"data-testid":e?`${e}-arrow-prev`:void 0,href:s?s(h?n:n-1):"",onClick:h?void 0:A,ref:x},c||r.createElement(B.LeftIcon,{size:"sm"}))),P.map((o,f)=>o==="-"?r.createElement(b,{key:`${f}-`},r.createElement(O,null,"...")):r.createElement(b,{key:o},r.createElement(J,{"aria-current":o===n,"data-testid":e?`${e}-${o}`:void 0,href:s?s(o):"",onClick:w=>{w.preventDefault(),l(o)}},o))),r.createElement(b,null,r.createElement(y,{"aria-disabled":E,"data-testid":e?`${e}-arrow-next`:void 0,href:s?s(E?n:n+1):"",onClick:E?void 0:D,ref:$},k||r.createElement(L.RightIcon,{size:"sm"})))))});exports.Pagination=K;
46
+ `),K=j.forwardRef(({"aria-label":t,dataTestId:e,getHref:s,leftArrow:c,onChange:l,page:n,pageCount:d,rangeDisplay:a=5,rightArrow:k,...v},q)=>{const P=G({page:n,pageCount:d,rangeDisplay:a}),x=r.useRef(null),$=r.useRef(null),h=n===1,E=n===d,A=r.useCallback(o=>{o.preventDefault();const f=n-1;f===1&&x.current.focus(),l(f)},[n,l]),D=r.useCallback(o=>{o.preventDefault();const f=n+1;f===d&&$.current.focus(),l(f)},[n,d,l]);return r.createElement(M,{"aria-label":t,"data-testid":e,ref:q,role:"navigation",...v},r.createElement(_,null,r.createElement(b,null,r.createElement(y,{"aria-disabled":h,"data-testid":e?`${e}-arrow-prev`:void 0,href:s?s(h?n:n-1):"",onClick:h?void 0:A,ref:x},c||r.createElement(L.LeftIcon,{size:"sm"}))),P.map((o,f)=>o==="-"?r.createElement(b,{key:`${f}-`},r.createElement(O,null,"...")):r.createElement(b,{key:o},r.createElement(J,{"aria-current":o===n,"data-testid":e?`${e}-${o}`:void 0,href:s?s(o):"",onClick:w=>{w.preventDefault(),l(o)}},o))),r.createElement(b,null,r.createElement(y,{"aria-disabled":E,"data-testid":e?`${e}-arrow-next`:void 0,href:s?s(E?n:n+1):"",onClick:E?void 0:D,ref:$},k||r.createElement(N.RightIcon,{size:"sm"})))))});exports.Pagination=K;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import i, { useMemo as j, useRef as y, useCallback as R } from "react";
3
+ import m, { system as z, th as E, css as h } from "@xstyled/styled-components";
4
+ import { h as G } from "./hide-focus-rings-root-BNyva1yb.mjs";
3
5
  import "./Icon.mjs";
4
- import { L as z } from "./index-BpRjq7lj.mjs";
5
- import { R as G } from "./index-BRDOakbf.mjs";
6
- import { forwardRef as F } from "./System.mjs";
7
- import m, { system as M, th as E, css as h } from "@xstyled/styled-components";
8
- import { h as S } from "./hide-focus-rings-root-BNyva1yb.mjs";
6
+ import { L as F } from "./index-BpRjq7lj.mjs";
7
+ import { R as M } from "./index-BRDOakbf.mjs";
8
+ import { forwardRef as S } from "./System.mjs";
9
9
  const a = 5, q = 3;
10
10
  function d(e, t) {
11
11
  return Array.from({ length: e }, (r, s) => t(s));
@@ -29,7 +29,7 @@ function O({ page: e, pageCount: t, rangeDisplay: r }) {
29
29
  return J([c, n, u], "-");
30
30
  }, [e, t, r]);
31
31
  }
32
- const Q = m.nav(M), U = m.ul`
32
+ const Q = m.nav(z), U = m.ul`
33
33
  list-style-type: none;
34
34
  padding: 0;
35
35
  margin: 0;
@@ -62,7 +62,7 @@ const Q = m.nav(M), U = m.ul`
62
62
  transition: none;
63
63
  }
64
64
 
65
- [${S}] &:focus {
65
+ [${G}] &:focus {
66
66
  box-shadow: none;
67
67
  }
68
68
  `, p = m.aBox(
@@ -78,7 +78,7 @@ const Q = m.nav(M), U = m.ul`
78
78
  ${A};
79
79
  ${e["aria-current"] && E("paginations.active")}
80
80
  `
81
- ), g = F(
81
+ ), g = S(
82
82
  ({
83
83
  "aria-label": e,
84
84
  dataTestId: t,
@@ -124,7 +124,7 @@ const Q = m.nav(M), U = m.ul`
124
124
  onClick: x ? void 0 : B,
125
125
  ref: k
126
126
  },
127
- s || /* @__PURE__ */ i.createElement(z, { size: "sm" })
127
+ s || /* @__PURE__ */ i.createElement(F, { size: "sm" })
128
128
  )), w.map(
129
129
  (o, f) => o === "-" ? (
130
130
  // eslint-disable-next-line react/no-array-index-key
@@ -150,7 +150,7 @@ const Q = m.nav(M), U = m.ul`
150
150
  onClick: $ ? void 0 : N,
151
151
  ref: v
152
152
  },
153
- D || /* @__PURE__ */ i.createElement(G, { size: "sm" })
153
+ D || /* @__PURE__ */ i.createElement(M, { size: "sm" })
154
154
  )))
155
155
  );
156
156
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");require("./InputText.js");require("./System.js");const e=require("./index-gPtu0TOV.js");exports.PasswordInput=e.PasswordInput;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./Icon.js");const a=require("./index-D6MJAN7T.js"),p=require("./Button.js"),d=require("./InputText.js"),m=require("./System.js"),w=({dataTestId:t,isHidden:n,onClick:r,title:o})=>e.createElement(p.Button,{"aria-controls":"password","aria-expanded":`${!n}`,dataTestId:t&&`${t}-action`,onClick:r,shape:"circle",size:"xs",title:o,variant:"ghost"},n?e.createElement(a.ShowIcon,null):e.createElement(a.HideIcon,null)),i=m.forwardRef(({dataTestId:t,title:n,...r},o)=>{const[s,u]=e.useState("password"),c=s==="password",l=()=>{u(c?"text":"password")};return e.createElement(d.InputText,{...r,dataTestId:t,icon:e.createElement(w,{dataTestId:t,isHidden:c,onClick:l,title:n}),iconPlacement:"right",ref:o,type:s})});i.displayName="PasswordInput";exports.PasswordInput=i;
@@ -1,7 +1,55 @@
1
- import "react";
2
- import "./InputText.mjs";
3
- import "./System.mjs";
4
- import { P as i } from "./index-CQ1IPLlk.mjs";
1
+ "use client";
2
+ import t, { useState as i } from "react";
3
+ import "./Icon.mjs";
4
+ import { S as l, H as m } from "./index-u1oHKa7X.mjs";
5
+ import { Button as u } from "./Button.mjs";
6
+ import { InputText as d } from "./InputText.mjs";
7
+ import { forwardRef as f } from "./System.mjs";
8
+ const w = ({
9
+ dataTestId: e,
10
+ isHidden: o,
11
+ onClick: r,
12
+ title: n
13
+ }) => /* @__PURE__ */ t.createElement(
14
+ u,
15
+ {
16
+ "aria-controls": "password",
17
+ "aria-expanded": `${!o}`,
18
+ dataTestId: e && `${e}-action`,
19
+ onClick: r,
20
+ shape: "circle",
21
+ size: "xs",
22
+ title: n,
23
+ variant: "ghost"
24
+ },
25
+ o ? /* @__PURE__ */ t.createElement(l, null) : /* @__PURE__ */ t.createElement(m, null)
26
+ ), x = f(
27
+ ({ dataTestId: e, title: o, ...r }, n) => {
28
+ const [a, c] = i("password"), s = a === "password", p = () => {
29
+ c(s ? "text" : "password");
30
+ };
31
+ return /* @__PURE__ */ t.createElement(
32
+ d,
33
+ {
34
+ ...r,
35
+ dataTestId: e,
36
+ icon: /* @__PURE__ */ t.createElement(
37
+ w,
38
+ {
39
+ dataTestId: e,
40
+ isHidden: s,
41
+ onClick: p,
42
+ title: o
43
+ }
44
+ ),
45
+ iconPlacement: "right",
46
+ ref: n,
47
+ type: a
48
+ }
49
+ );
50
+ }
51
+ );
52
+ x.displayName = "PasswordInput";
5
53
  export {
6
- i as PasswordInput
54
+ x as PasswordInput
7
55
  };
package/dist/Picker.js CHANGED
@@ -1,8 +1,8 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),k=require("./index-DHCyCfRv.js"),E=require("./FieldGroup.js"),P=require("./Box.js"),n=require("./System.js"),s=require("@xstyled/styled-components"),$=require("./NLEBE274-DvH3XTTw.js"),a=require("./radio-group-BpImAAmy.js"),R=s($.Radio).withConfig({shouldForwardProp:n.shouldForwardProp})`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),s=require("@xstyled/styled-components"),n=require("./System.js"),k=require("./NLEBE274-DvH3XTTw.js"),E=require("./Label.js"),P=require("./FieldGroup.js"),$=require("./Box.js"),a=require("./radio-group-BpImAAmy.js"),R=s(k.Radio).withConfig({shouldForwardProp:n.shouldForwardProp})`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
5
5
  opacity: 0;
6
6
 
7
7
  ${s.system};
8
- `,u=n.forwardRef(({dataTestId:o,label:d,name:i,onChange:c,options:p,required:m,value:l,...y},f)=>{const q=a.useRadioStore({defaultValue:l}),b=r=>{r.stopPropagation(),c&&c(r)};return e.createElement(E.FieldGroup,{...y,as:a.RadioGroup,dataTestId:o,mb:0,ref:f,required:m,store:q},e.createElement(P.Box,{display:"flex",flexWrap:"wrap"},p.map(({element:r,value:t})=>e.createElement(k.Label,{checkableField:!0,dataTestId:o&&`${o}-item-${i}-${t}`,key:`${d}-${i}-${t}`,onClick:b},e.createElement(R,{name:i,value:t}),e.createElement(r,{selected:l===t})))))});u.displayName="Picker";exports.Picker=u;
8
+ `,u=n.forwardRef(({dataTestId:o,label:d,name:i,onChange:c,options:p,required:m,value:l,...y},f)=>{const q=a.useRadioStore({defaultValue:l}),b=r=>{r.stopPropagation(),c&&c(r)};return e.createElement(P.FieldGroup,{...y,as:a.RadioGroup,dataTestId:o,mb:0,ref:f,required:m,store:q},e.createElement($.Box,{display:"flex",flexWrap:"wrap"},p.map(({element:r,value:t})=>e.createElement(E.Label,{checkableField:!0,dataTestId:o&&`${o}-item-${i}-${t}`,key:`${d}-${i}-${t}`,onClick:b},e.createElement(R,{name:i,value:t}),e.createElement(r,{selected:l===t})))))});u.displayName="Picker";exports.Picker=u;
package/dist/Picker.mjs CHANGED
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  import e from "react";
3
- import { L as u } from "./index-D3Tnfi3U.mjs";
4
- import { FieldGroup as R } from "./FieldGroup.mjs";
5
- import { Box as $ } from "./Box.mjs";
6
- import { shouldForwardProp as k, forwardRef as y } from "./System.mjs";
7
- import E, { system as b } from "@xstyled/styled-components";
8
- import { R as w } from "./NLEBE274-FThuwZH_.mjs";
9
- import { u as x, R as P } from "./radio-group-29lMl-2M.mjs";
10
- const _ = E(w).withConfig({ shouldForwardProp: k })`
3
+ import u, { system as R } from "@xstyled/styled-components";
4
+ import { shouldForwardProp as $, forwardRef as k } from "./System.mjs";
5
+ import { R as y } from "./NLEBE274-C94QU78N.mjs";
6
+ import { Label as E } from "./Label.mjs";
7
+ import { FieldGroup as b } from "./FieldGroup.mjs";
8
+ import { Box as w } from "./Box.mjs";
9
+ import { u as x, R as P } from "./radio-group-CGC6DTFJ.mjs";
10
+ const _ = u(y).withConfig({ shouldForwardProp: $ })`
11
11
  position: absolute;
12
12
  top: 0;
13
13
  left: 0;
14
14
  opacity: 0;
15
15
 
16
- ${b};
17
- `, h = y(
16
+ ${R};
17
+ `, h = k(
18
18
  ({ dataTestId: r, label: m, name: i, onChange: a, options: s, required: c, value: l, ...p }, f) => {
19
19
  const d = x({ defaultValue: l }), n = (o) => {
20
20
  o.stopPropagation(), a && a(o);
21
21
  };
22
22
  return /* @__PURE__ */ e.createElement(
23
- R,
23
+ b,
24
24
  {
25
25
  ...p,
26
26
  as: P,
@@ -30,8 +30,8 @@ const _ = E(w).withConfig({ shouldForwardProp: k })`
30
30
  required: c,
31
31
  store: d
32
32
  },
33
- /* @__PURE__ */ e.createElement($, { display: "flex", flexWrap: "wrap" }, s.map(({ element: o, value: t }) => /* @__PURE__ */ e.createElement(
34
- u,
33
+ /* @__PURE__ */ e.createElement(w, { display: "flex", flexWrap: "wrap" }, s.map(({ element: o, value: t }) => /* @__PURE__ */ e.createElement(
34
+ E,
35
35
  {
36
36
  checkableField: !0,
37
37
  dataTestId: r && `${r}-item-${i}-${t}`,
package/dist/Popover.js CHANGED
@@ -1 +1,31 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./usePopover-CzPtX0h_.js");exports.Popover=e.Popover;exports.PopoverHover=e.PopoverHover;exports.usePopover=e.usePopover;exports.usePopoverHover=e.usePopoverHover;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),o=require("@xstyled/styled-components"),u=require("./QYJ6MIDR-CRK3satR.js"),a=require("./BYC7LY2E-BkAEL2VD.js"),l=require("./System.js");require("./Icon.js");const f=require("./index-C1FV1q-F.js"),g=require("./Box.js"),P=require("./Button.js"),h=o(u.PopoverArrow)`
2
+ color: ${o.th("popovers.default.backgroundColor")};
3
+ `,w=o.svgBox(({$transform:t})=>o.css`
4
+ transform: ${t};
5
+ `),v=o.div`
6
+ ${o.th("popovers.content")};
7
+ `,p=o.h6`
8
+ margin: 0;
9
+ ${o.th("popovers.title")};
10
+ `,m=o(a.Popover)(({$withCloseButton:t})=>o.css`
11
+ ${o.th("popovers.default")};
12
+ outline: none;
13
+ opacity: 0;
14
+ transition: opacity 150ms ease-in-out;
15
+ ${o.system};
16
+
17
+ /* on open popover for animation */
18
+ &[data-enter] {
19
+ opacity: 1;
20
+ }
21
+
22
+ ${t&&o.css`
23
+ ${p} {
24
+ padding-right: 50;
25
+ }
26
+ `}
27
+ `);o(u.PopoverDisclosure)`
28
+ ${o.system};
29
+ `;const C=o(a.HovercardAnchor)`
30
+ ${o.system};
31
+ `,$=l.forwardRef(({as:t,store:r,...e},s)=>n.createElement(u.PopoverDisclosure,{ref:s,render:t?c=>n.createElement(t,{...c}):void 0,store:r,...e})),E=l.forwardRef(({as:t,store:r,...e},s)=>n.createElement(C,{store:r,...e,forwardedAs:t,ref:s})),H={top:"rotateZ(180deg)",right:"rotateZ(-90deg)",bottom:"rotateZ(360deg)",left:"rotateZ(90deg)"},y=({store:t})=>{const r=t.useState("currentPlacement"),[e]=r.split("-"),s=H[e];return n.createElement(h,{store:t},n.createElement(w,{$transform:s,h:30,w:30,xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M7 30L15 22L23 30H7Z",fill:"currentColor",fillRule:"nonzero",id:"stroke"}),n.createElement("path",{d:"M8 30L15 23L22 30H8Z",fill:"currentColor",fillRule:"nonzero"})))},d=({children:t,onClose:r,store:e})=>{const s=()=>{r&&r(),e==null||e.hide()},{withCloseButton:c}=e;return n.createElement(g.Box,{position:"relative"},n.createElement(y,{store:e}),t,c&&n.createElement(P.Button,{flex:"0 0 auto",ml:"md",onClick:s,position:"absolute",right:1,shape:"square",size:"xs",top:1,variant:"secondary"},n.createElement(f.CrossIcon,null)))},B=l.forwardRef(({children:t,onClose:r,store:e,...s},c)=>{const{withCloseButton:i}=e;return n.createElement(m,{$withCloseButton:i,ref:c,store:e,...s},n.createElement(d,{onClose:r,store:e},t))}),q=Object.assign(B,{Content:v,Title:p,Trigger:$}),T=l.forwardRef(({children:t,onClose:r,store:e,...s},c)=>{const{withCloseButton:i}=e;return n.createElement(m,{as:a.Hovercard,store:e,...s,$withCloseButton:i,ref:c},n.createElement(d,{onClose:r,store:e},t))}),R=Object.assign(T,{Content:v,Title:p,Trigger:E}),b=({animated:t=150,withCloseButton:r=!1,...e}={})=>({...a.usePopoverStore({animated:t,...e}),withCloseButton:r}),x=({animated:t=150,hideTimeout:r=300,showTimeout:e=500,withCloseButton:s=!1,...c}={})=>({...a.useHovercardStore({animated:t,hideTimeout:r,showTimeout:e,...c}),withCloseButton:s});exports.Popover=q;exports.PopoverHover=R;exports.usePopover=b;exports.usePopoverHover=x;
package/dist/Popover.mjs CHANGED
@@ -1,8 +1,144 @@
1
1
  "use client";
2
- import { P as r, a as s, u as v, b as a } from "./usePopover-AbS2gpZq.mjs";
2
+ import r from "react";
3
+ import a, { th as l, css as p, system as m } from "@xstyled/styled-components";
4
+ import { P as h, a as v } from "./QYJ6MIDR-BLLqyXdd.mjs";
5
+ import { P, H as $, a as C, u as w, b as E } from "./BYC7LY2E-CVjUW1dr.mjs";
6
+ import { forwardRef as i } from "./System.mjs";
7
+ import "./Icon.mjs";
8
+ import { C as H } from "./index-C7zM96J_.mjs";
9
+ import { Box as B } from "./Box.mjs";
10
+ import { Button as T } from "./Button.mjs";
11
+ const b = a(h)`
12
+ color: ${l("popovers.default.backgroundColor")};
13
+ `, x = a.svgBox(
14
+ ({ $transform: t }) => p`
15
+ transform: ${t};
16
+ `
17
+ ), d = a.div`
18
+ ${l("popovers.content")};
19
+ `, u = a.h6`
20
+ margin: 0;
21
+ ${l("popovers.title")};
22
+ `, f = a(P)(
23
+ ({ $withCloseButton: t }) => p`
24
+ ${l("popovers.default")};
25
+ outline: none;
26
+ opacity: 0;
27
+ transition: opacity 150ms ease-in-out;
28
+ ${m};
29
+
30
+ /* on open popover for animation */
31
+ &[data-enter] {
32
+ opacity: 1;
33
+ }
34
+
35
+ ${t && p`
36
+ ${u} {
37
+ padding-right: 50;
38
+ }
39
+ `}
40
+ `
41
+ );
42
+ a(v)`
43
+ ${m};
44
+ `;
45
+ const y = a($)`
46
+ ${m};
47
+ `, Z = i(
48
+ ({ as: t, store: o, ...e }, n) => /* @__PURE__ */ r.createElement(
49
+ v,
50
+ {
51
+ ref: n,
52
+ render: t ? (s) => /* @__PURE__ */ r.createElement(t, { ...s }) : void 0,
53
+ store: o,
54
+ ...e
55
+ }
56
+ )
57
+ ), A = i(
58
+ ({ as: t, store: o, ...e }, n) => /* @__PURE__ */ r.createElement(y, { store: o, ...e, forwardedAs: t, ref: n })
59
+ ), L = {
60
+ top: "rotateZ(180deg)",
61
+ right: "rotateZ(-90deg)",
62
+ bottom: "rotateZ(360deg)",
63
+ left: "rotateZ(90deg)"
64
+ }, R = ({ store: t }) => {
65
+ const o = t.useState("currentPlacement"), [e] = o.split("-"), n = L[e];
66
+ return /* @__PURE__ */ r.createElement(b, { store: t }, /* @__PURE__ */ r.createElement(x, { $transform: n, h: 30, w: 30, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ r.createElement("path", { d: "M7 30L15 22L23 30H7Z", fill: "currentColor", fillRule: "nonzero", id: "stroke" }), /* @__PURE__ */ r.createElement("path", { d: "M8 30L15 23L22 30H8Z", fill: "currentColor", fillRule: "nonzero" })));
67
+ }, g = ({ children: t, onClose: o, store: e }) => {
68
+ const n = () => {
69
+ o && o(), e == null || e.hide();
70
+ }, { withCloseButton: s } = e;
71
+ return /* @__PURE__ */ r.createElement(B, { position: "relative" }, /* @__PURE__ */ r.createElement(R, { store: e }), t, s && /* @__PURE__ */ r.createElement(
72
+ T,
73
+ {
74
+ flex: "0 0 auto",
75
+ ml: "md",
76
+ onClick: n,
77
+ position: "absolute",
78
+ right: 1,
79
+ shape: "square",
80
+ size: "xs",
81
+ top: 1,
82
+ variant: "secondary"
83
+ },
84
+ /* @__PURE__ */ r.createElement(H, null)
85
+ ));
86
+ }, _ = i(
87
+ ({ children: t, onClose: o, store: e, ...n }, s) => {
88
+ const { withCloseButton: c } = e;
89
+ return /* @__PURE__ */ r.createElement(f, { $withCloseButton: c, ref: s, store: e, ...n }, /* @__PURE__ */ r.createElement(g, { onClose: o, store: e }, t));
90
+ }
91
+ ), G = Object.assign(_, {
92
+ Content: d,
93
+ Title: u,
94
+ Trigger: Z
95
+ }), k = i(
96
+ ({ children: t, onClose: o, store: e, ...n }, s) => {
97
+ const { withCloseButton: c } = e;
98
+ return /* @__PURE__ */ r.createElement(
99
+ f,
100
+ {
101
+ as: C,
102
+ store: e,
103
+ ...n,
104
+ $withCloseButton: c,
105
+ ref: s
106
+ },
107
+ /* @__PURE__ */ r.createElement(g, { onClose: o, store: e }, t)
108
+ );
109
+ }
110
+ ), J = Object.assign(k, {
111
+ Content: d,
112
+ Title: u,
113
+ Trigger: A
114
+ }), K = ({
115
+ animated: t = 150,
116
+ withCloseButton: o = !1,
117
+ ...e
118
+ } = {}) => ({
119
+ ...w({
120
+ animated: t,
121
+ ...e
122
+ }),
123
+ withCloseButton: o
124
+ }), N = ({
125
+ animated: t = 150,
126
+ hideTimeout: o = 300,
127
+ showTimeout: e = 500,
128
+ withCloseButton: n = !1,
129
+ ...s
130
+ } = {}) => ({
131
+ ...E({
132
+ animated: t,
133
+ hideTimeout: o,
134
+ showTimeout: e,
135
+ ...s
136
+ }),
137
+ withCloseButton: n
138
+ });
3
139
  export {
4
- r as Popover,
5
- s as PopoverHover,
6
- v as usePopover,
7
- a as usePopoverHover
140
+ G as Popover,
141
+ J as PopoverHover,
142
+ K as usePopover,
143
+ N as usePopoverHover
8
144
  };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { u as g, b as j, P as C } from "./MTZPJQMC-C9lHSyrL.mjs";
3
- import { c as v, _ as f, h as m, j as x, a as c, f as P, b as h, i as w, m as l, z as N, F as V, G as z, e as R, E as O } from "./LVA2YJMS-Dm5ieEMw.mjs";
2
+ import { u as E, b as C, P as N } from "./MTZPJQMC-C0Xe_WK4.mjs";
3
+ import { c as v, _ as f, d as m, e as x, g as c, f as P, h, i as w, t as l, z as V, F as j, G as z, b as R, E as O } from "./LVA2YJMS-qFC9J-lt.mjs";
4
4
  import { useMemo as T, useState as W } from "react";
5
- import { u as M } from "./AXB53BZF-DCqNWRx3.mjs";
5
+ import { u as M } from "./AXB53BZF-CGoc4K3d.mjs";
6
6
  var H = "div", _ = v(
7
7
  function(t) {
8
8
  var r = t, { store: e } = r, o = f(r, ["store"]);
9
- const n = g();
9
+ const n = E();
10
10
  return e = e || n, o = m(c({}, o), {
11
11
  ref: x(e == null ? void 0 : e.setAnchorElement, o.ref)
12
12
  }), o;
@@ -16,7 +16,7 @@ P(function(t) {
16
16
  const r = _(t);
17
17
  return h(H, r);
18
18
  });
19
- var E = "M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z", L = "div", d = 30, a = d / 2, B = {
19
+ var g = "M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z", L = "div", d = 30, a = d / 2, B = {
20
20
  top: `rotate(180 ${a} ${a})`,
21
21
  right: `rotate(-90 ${a} ${a})`,
22
22
  bottom: `rotate(0 ${a} ${a})`,
@@ -24,7 +24,7 @@ var E = "M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,
24
24
  };
25
25
  function F(u) {
26
26
  const [t, r] = W(), e = u.useState("contentElement");
27
- return V(() => {
27
+ return j(() => {
28
28
  if (!e) return;
29
29
  const n = z(e).getComputedStyle(e);
30
30
  r(n);
@@ -33,7 +33,7 @@ function F(u) {
33
33
  var G = v(
34
34
  function(t) {
35
35
  var r = t, { store: e, size: o = d } = r, n = f(r, ["store", "size"]);
36
- const p = j();
36
+ const p = C();
37
37
  e = e || p, w(
38
38
  e,
39
39
  process.env.NODE_ENV !== "production" && "PopoverArrow must be wrapped in a Popover component."
@@ -42,8 +42,8 @@ var G = v(
42
42
  (k) => k.currentPlacement.split("-")[0]
43
43
  ), s = F(e), y = (s == null ? void 0 : s.getPropertyValue("background-color")) || "none", A = (s == null ? void 0 : s.getPropertyValue(`border-${i}-color`)) || "none", S = (s == null ? void 0 : s.getPropertyValue(`border-${i}-width`)) || "0px", $ = Number.parseInt(S) * 2 * (d / o), b = B[i], D = T(
44
44
  () => /* @__PURE__ */ l.jsx("svg", { display: "block", viewBox: "0 0 30 30", children: /* @__PURE__ */ l.jsxs("g", { transform: b, children: [
45
- /* @__PURE__ */ l.jsx("path", { fill: "none", d: E }),
46
- /* @__PURE__ */ l.jsx("path", { stroke: "none", d: E })
45
+ /* @__PURE__ */ l.jsx("path", { fill: "none", d: g }),
46
+ /* @__PURE__ */ l.jsx("path", { stroke: "none", d: g })
47
47
  ] }) }),
48
48
  [b]
49
49
  );
@@ -63,14 +63,14 @@ var G = v(
63
63
  stroke: A,
64
64
  strokeWidth: $
65
65
  }, n.style)
66
- }), N(n);
66
+ }), V(n);
67
67
  }
68
68
  ), X = P(function(t) {
69
69
  const r = G(t);
70
70
  return h(L, r);
71
71
  }), I = "button", U = v(function(t) {
72
72
  var r = t, { store: e } = r, o = f(r, ["store"]);
73
- const n = g();
73
+ const n = E();
74
74
  e = e || n, w(
75
75
  e,
76
76
  process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
@@ -80,7 +80,7 @@ var G = v(
80
80
  });
81
81
  return o = O(
82
82
  o,
83
- (s) => /* @__PURE__ */ l.jsx(C, { value: e, children: s }),
83
+ (s) => /* @__PURE__ */ l.jsx(N, { value: e, children: s }),
84
84
  [e]
85
85
  ), o = m(c({}, o), {
86
86
  onClick: i
@@ -1 +1 @@
1
- "use client";"use strict";const l=require("./MTZPJQMC-D0pYOjc_.js"),e=require("./LVA2YJMS-B2HZjIhJ.js"),f=require("react"),R=require("./AXB53BZF-CAQ85RSy.js");var V="div",m=e.createHook(function(s){var t=s,{store:o}=t,r=e.__objRest(t,["store"]);const n=l.usePopoverProviderContext();return o=o||n,r=e.__spreadProps(e.__spreadValues({},r),{ref:e.useMergeRefs(o==null?void 0:o.setAnchorElement,r.ref)}),r});e.forwardRef2(function(s){const t=m(s);return e.createElement(V,t)});var P="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z",j="div",d=30,a=d/2,y={top:`rotate(180 ${a} ${a})`,right:`rotate(-90 ${a} ${a})`,bottom:`rotate(0 ${a} ${a})`,left:`rotate(90 ${a} ${a})`};function S(c){const[s,t]=f.useState(),o=c.useState("contentElement");return e.useSafeLayoutEffect(()=>{if(!o)return;const n=e.getWindow(o).getComputedStyle(o);t(n)},[o]),s}var _=e.createHook(function(s){var t=s,{store:o,size:r=d}=t,n=e.__objRest(t,["store","size"]);const p=l.usePopoverContext();o=o||p,e.invariant(o,process.env.NODE_ENV!=="production"&&"PopoverArrow must be wrapped in a Popover component.");const i=o.useState(A=>A.currentPlacement.split("-")[0]),u=S(o),x=(u==null?void 0:u.getPropertyValue("background-color"))||"none",E=(u==null?void 0:u.getPropertyValue(`border-${i}-color`))||"none",w=(u==null?void 0:u.getPropertyValue(`border-${i}-width`))||"0px",b=Number.parseInt(w)*2*(d/r),v=y[i],g=f.useMemo(()=>e.jsxRuntimeExports.jsx("svg",{display:"block",viewBox:"0 0 30 30",children:e.jsxRuntimeExports.jsxs("g",{transform:v,children:[e.jsxRuntimeExports.jsx("path",{fill:"none",d:P}),e.jsxRuntimeExports.jsx("path",{stroke:"none",d:P})]})}),[v]);return n=e.__spreadProps(e.__spreadValues({children:g,"aria-hidden":!0},n),{ref:e.useMergeRefs(o.setArrowElement,n.ref),style:e.__spreadValues({position:"absolute",fontSize:r,width:"1em",height:"1em",pointerEvents:"none",fill:x,stroke:E,strokeWidth:b},n.style)}),e.removeUndefinedValues(n)}),D=e.forwardRef2(function(s){const t=_(s);return e.createElement(j,t)}),$="button",h=e.createHook(function(s){var t=s,{store:o}=t,r=e.__objRest(t,["store"]);const n=l.usePopoverProviderContext();o=o||n,e.invariant(o,process.env.NODE_ENV!=="production"&&"PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component.");const p=r.onClick,i=e.useEvent(u=>{o==null||o.setAnchorElement(u.currentTarget),p==null||p(u)});return r=e.useWrapElement(r,u=>e.jsxRuntimeExports.jsx(l.PopoverScopedContextProvider,{value:o,children:u}),[o]),r=e.__spreadProps(e.__spreadValues({},r),{onClick:i}),r=m(e.__spreadValues({store:o},r)),r=R.useDialogDisclosure(e.__spreadValues({store:o},r)),r}),k=e.forwardRef2(function(s){const t=h(s);return e.createElement($,t)});exports.PopoverArrow=D;exports.PopoverDisclosure=k;exports.usePopoverArrow=_;exports.usePopoverDisclosure=h;
1
+ "use client";"use strict";const l=require("./MTZPJQMC-5Xg78Uyy.js"),e=require("./LVA2YJMS-B2HZjIhJ.js"),f=require("react"),R=require("./AXB53BZF-KWM2jKTz.js");var V="div",m=e.createHook(function(s){var t=s,{store:o}=t,r=e.__objRest(t,["store"]);const n=l.usePopoverProviderContext();return o=o||n,r=e.__spreadProps(e.__spreadValues({},r),{ref:e.useMergeRefs(o==null?void 0:o.setAnchorElement,r.ref)}),r});e.forwardRef2(function(s){const t=m(s);return e.createElement(V,t)});var P="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z",j="div",d=30,a=d/2,y={top:`rotate(180 ${a} ${a})`,right:`rotate(-90 ${a} ${a})`,bottom:`rotate(0 ${a} ${a})`,left:`rotate(90 ${a} ${a})`};function S(c){const[s,t]=f.useState(),o=c.useState("contentElement");return e.useSafeLayoutEffect(()=>{if(!o)return;const n=e.getWindow(o).getComputedStyle(o);t(n)},[o]),s}var _=e.createHook(function(s){var t=s,{store:o,size:r=d}=t,n=e.__objRest(t,["store","size"]);const p=l.usePopoverContext();o=o||p,e.invariant(o,process.env.NODE_ENV!=="production"&&"PopoverArrow must be wrapped in a Popover component.");const i=o.useState(A=>A.currentPlacement.split("-")[0]),u=S(o),x=(u==null?void 0:u.getPropertyValue("background-color"))||"none",E=(u==null?void 0:u.getPropertyValue(`border-${i}-color`))||"none",w=(u==null?void 0:u.getPropertyValue(`border-${i}-width`))||"0px",b=Number.parseInt(w)*2*(d/r),v=y[i],g=f.useMemo(()=>e.jsxRuntimeExports.jsx("svg",{display:"block",viewBox:"0 0 30 30",children:e.jsxRuntimeExports.jsxs("g",{transform:v,children:[e.jsxRuntimeExports.jsx("path",{fill:"none",d:P}),e.jsxRuntimeExports.jsx("path",{stroke:"none",d:P})]})}),[v]);return n=e.__spreadProps(e.__spreadValues({children:g,"aria-hidden":!0},n),{ref:e.useMergeRefs(o.setArrowElement,n.ref),style:e.__spreadValues({position:"absolute",fontSize:r,width:"1em",height:"1em",pointerEvents:"none",fill:x,stroke:E,strokeWidth:b},n.style)}),e.removeUndefinedValues(n)}),D=e.forwardRef2(function(s){const t=_(s);return e.createElement(j,t)}),$="button",h=e.createHook(function(s){var t=s,{store:o}=t,r=e.__objRest(t,["store"]);const n=l.usePopoverProviderContext();o=o||n,e.invariant(o,process.env.NODE_ENV!=="production"&&"PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component.");const p=r.onClick,i=e.useEvent(u=>{o==null||o.setAnchorElement(u.currentTarget),p==null||p(u)});return r=e.useWrapElement(r,u=>e.jsxRuntimeExports.jsx(l.PopoverScopedContextProvider,{value:o,children:u}),[o]),r=e.__spreadProps(e.__spreadValues({},r),{onClick:i}),r=m(e.__spreadValues({store:o},r)),r=R.useDialogDisclosure(e.__spreadValues({store:o},r)),r}),k=e.forwardRef2(function(s){const t=h(s);return e.createElement($,t)});exports.PopoverArrow=D;exports.PopoverDisclosure=k;exports.usePopoverArrow=_;exports.usePopoverDisclosure=h;
package/dist/Radio.js CHANGED
@@ -1,5 +1,5 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),x=require("./Hint.js"),u=require("./System.js"),e=require("@xstyled/styled-components"),y=require("./Box.js"),$=require("./index-DHCyCfRv.js"),k=require("./field-styles-D_gf6ypV.js"),E=require("./NLEBE274-DvH3XTTw.js"),q=e(E.Radio).withConfig({shouldForwardProp:u.shouldForwardProp})(({order:t="-1",size:o,variant:i})=>e.css`
2
- ${k.defaultFieldStyles({size:o,variant:i})};
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),e=require("@xstyled/styled-components"),x=require("./field-styles-D_gf6ypV.js"),y=require("./Box.js"),u=require("./System.js"),$=require("./Label.js"),k=require("./NLEBE274-DvH3XTTw.js"),E=require("./Hint.js"),q=e(k.Radio).withConfig({shouldForwardProp:u.shouldForwardProp})(({order:t="-1",size:o,variant:i})=>e.css`
2
+ ${x.defaultFieldStyles({size:o,variant:i})};
3
3
  ${e.th("radios.default")}
4
4
  position: relative;
5
5
  padding: 0;
@@ -57,4 +57,4 @@
57
57
  `,C=e.div`
58
58
  display: flex;
59
59
  flex-direction: column;
60
- `,m=u.forwardRef(({dataTestId:t,disabled:o,disabledIcon:i,flexDirection:f,hint:a,label:l,maxWidth:p,onChange:s,onClick:d,variant:c,...b},h)=>{const g=n=>{n.stopPropagation(),d&&d(n),s&&s(n)};return r.createElement(w,{alignItems:"flex-start",checkableField:!0,disabled:o,disabledIcon:i,flexDirection:"column",maxWidth:p,onClick:g,variant:c,withDisabledIcon:!1},r.createElement(L,{flexDirection:f},r.createElement(R,null,r.createElement(q,{"data-testid":t,disabled:o,label:l,ref:h,variant:c,...b})),r.createElement(C,null,r.createElement("div",{"data-testid":t?`${t}-label`:void 0},l),a&&r.createElement(x.Hint,{"data-testid":t?`${t}-hint`:void 0,mt:"0"},a))))});m.displayName="Radio";exports.Radio=m;
60
+ `,m=u.forwardRef(({dataTestId:t,disabled:o,disabledIcon:i,flexDirection:f,hint:a,label:l,maxWidth:p,onChange:s,onClick:d,variant:c,...b},h)=>{const g=n=>{n.stopPropagation(),d&&d(n),s&&s(n)};return r.createElement(w,{alignItems:"flex-start",checkableField:!0,disabled:o,disabledIcon:i,flexDirection:"column",maxWidth:p,onClick:g,variant:c,withDisabledIcon:!1},r.createElement(L,{flexDirection:f},r.createElement(R,null,r.createElement(q,{"data-testid":t,disabled:o,label:l,ref:h,variant:c,...b})),r.createElement(C,null,r.createElement("div",{"data-testid":t?`${t}-label`:void 0},l),a&&r.createElement(E.Hint,{"data-testid":t?`${t}-hint`:void 0,mt:"0"},a))))});m.displayName="Radio";exports.Radio=m;
package/dist/Radio.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import t from "react";
3
- import { Hint as $ } from "./Hint.mjs";
4
- import { shouldForwardProp as x, forwardRef as k } from "./System.mjs";
5
- import o, { css as w, th as i, system as f } from "@xstyled/styled-components";
6
- import { Box as y } from "./Box.mjs";
7
- import { L as E } from "./index-D3Tnfi3U.mjs";
8
- import { d as R } from "./field-styles-CeV7pnOp.mjs";
9
- import { R as C } from "./NLEBE274-FThuwZH_.mjs";
10
- const L = o(C).withConfig({ shouldForwardProp: x })(
11
- ({ order: e = "-1", size: r, variant: a }) => w`
12
- ${R({ size: r, variant: a })};
3
+ import o, { css as $, th as i, system as f } from "@xstyled/styled-components";
4
+ import { d as x } from "./field-styles-CeV7pnOp.mjs";
5
+ import { Box as k } from "./Box.mjs";
6
+ import { shouldForwardProp as w, forwardRef as y } from "./System.mjs";
7
+ import { Label as E } from "./Label.mjs";
8
+ import { R } from "./NLEBE274-C94QU78N.mjs";
9
+ import { Hint as C } from "./Hint.mjs";
10
+ const L = o(R).withConfig({ shouldForwardProp: w })(
11
+ ({ order: e = "-1", size: r, variant: a }) => $`
12
+ ${x({ size: r, variant: a })};
13
13
  ${i("radios.default")}
14
14
  position: relative;
15
15
  padding: 0;
@@ -57,7 +57,7 @@ const L = o(C).withConfig({ shouldForwardProp: x })(
57
57
  position: relative;
58
58
  align-items: center;
59
59
  display: flex;
60
- `, v = o(y)`
60
+ `, v = o(k)`
61
61
  display: flex;
62
62
  align-items: flex-start;
63
63
  gap: sm;
@@ -68,13 +68,13 @@ const L = o(C).withConfig({ shouldForwardProp: x })(
68
68
  `, D = o.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
- `, H = k(
71
+ `, H = y(
72
72
  ({
73
73
  dataTestId: e,
74
74
  disabled: r,
75
75
  disabledIcon: a,
76
76
  flexDirection: p,
77
- hint: l,
77
+ hint: n,
78
78
  label: d,
79
79
  maxWidth: u,
80
80
  onChange: s,
@@ -82,8 +82,8 @@ const L = o(C).withConfig({ shouldForwardProp: x })(
82
82
  variant: c,
83
83
  ...b
84
84
  }, h) => {
85
- const g = (n) => {
86
- n.stopPropagation(), m && m(n), s && s(n);
85
+ const g = (l) => {
86
+ l.stopPropagation(), m && m(l), s && s(l);
87
87
  };
88
88
  return /* @__PURE__ */ t.createElement(
89
89
  _,
@@ -108,7 +108,7 @@ const L = o(C).withConfig({ shouldForwardProp: x })(
108
108
  variant: c,
109
109
  ...b
110
110
  }
111
- )), /* @__PURE__ */ t.createElement(D, null, /* @__PURE__ */ t.createElement("div", { "data-testid": e ? `${e}-label` : void 0 }, d), l && /* @__PURE__ */ t.createElement($, { "data-testid": e ? `${e}-hint` : void 0, mt: "0" }, l)))
111
+ )), /* @__PURE__ */ t.createElement(D, null, /* @__PURE__ */ t.createElement("div", { "data-testid": e ? `${e}-label` : void 0 }, d), n && /* @__PURE__ */ t.createElement(C, { "data-testid": e ? `${e}-hint` : void 0, mt: "0" }, n)))
112
112
  );
113
113
  }
114
114
  );
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),$=require("./FieldGroup.js"),x=require("./Radio.js"),S=require("./System.js"),t=require("@xstyled/styled-components"),d=require("./radio-group-BpImAAmy.js"),w=t.divBox(({flexDirection:r})=>t.css`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),t=require("@xstyled/styled-components"),$=require("./FieldGroup.js"),x=require("./Radio.js"),S=require("./System.js"),d=require("./radio-group-BpImAAmy.js"),w=t.divBox(({flexDirection:r})=>t.css`
2
2
  display: flex;
3
3
  flex-direction: ${r};
4
4
  flex-wrap: wrap;
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import t from "react";
3
- import { FieldGroup as x } from "./FieldGroup.mjs";
4
- import { Radio as y } from "./Radio.mjs";
5
- import { forwardRef as b } from "./System.mjs";
6
- import G, { css as _, system as w } from "@xstyled/styled-components";
7
- import { u as E, R as V } from "./radio-group-29lMl-2M.mjs";
8
- const h = G.divBox(
9
- ({ flexDirection: a }) => _`
3
+ import x, { css as y, system as b } from "@xstyled/styled-components";
4
+ import { FieldGroup as G } from "./FieldGroup.mjs";
5
+ import { Radio as _ } from "./Radio.mjs";
6
+ import { forwardRef as w } from "./System.mjs";
7
+ import { u as E, R as V } from "./radio-group-CGC6DTFJ.mjs";
8
+ const h = x.divBox(
9
+ ({ flexDirection: a }) => y`
10
10
  display: flex;
11
11
  flex-direction: ${a};
12
12
  flex-wrap: wrap;
13
13
  gap: md;
14
14
 
15
- ${w};
15
+ ${b};
16
16
  `
17
- ), k = b(
17
+ ), k = w(
18
18
  ({
19
19
  dataTestId: a,
20
20
  flexDirection: i,
@@ -24,7 +24,7 @@ const h = G.divBox(
24
24
  name: u,
25
25
  onChange: r,
26
26
  options: f = [],
27
- renderOption: c = y,
27
+ renderOption: c = _,
28
28
  required: p,
29
29
  value: v,
30
30
  ...d
@@ -33,7 +33,7 @@ const h = G.divBox(
33
33
  d.disabled || (l.setValue(e), r == null || r(e));
34
34
  };
35
35
  return /* @__PURE__ */ t.createElement(
36
- x,
36
+ G,
37
37
  {
38
38
  as: V,
39
39
  dataTestId: a,