lizaui 12.0.20 → 12.0.21

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 (153) hide show
  1. package/dist/button-group/index.es.js +2 -2
  2. package/dist/button-v2/index.cjs.js +1 -1
  3. package/dist/button-v2/index.es.js +3 -3
  4. package/dist/chunks/{Button-DdtCMsXJ.js → Button-Bumy9bze.js} +6 -55
  5. package/dist/chunks/Button-Bumy9bze.js.map +1 -0
  6. package/dist/chunks/{Button-B-wLEikV.js → Button-CFYOfByw.js} +9 -58
  7. package/dist/chunks/Button-CFYOfByw.js.map +1 -0
  8. package/dist/chunks/{FocusScope-Txa6B8J4.js → FocusScope-4TdD5fCA.js} +2 -2
  9. package/dist/chunks/{FocusScope-Txa6B8J4.js.map → FocusScope-4TdD5fCA.js.map} +1 -1
  10. package/dist/chunks/{FocusScope-BVEv8CgQ.js → FocusScope-jSNMAXzg.js} +3 -3
  11. package/dist/chunks/{FocusScope-BVEv8CgQ.js.map → FocusScope-jSNMAXzg.js.map} +1 -1
  12. package/dist/chunks/Hidden-BY45Dc0j.js +54 -0
  13. package/dist/chunks/Hidden-BY45Dc0j.js.map +1 -0
  14. package/dist/chunks/Hidden-C55DpjMP.js +55 -0
  15. package/dist/chunks/Hidden-C55DpjMP.js.map +1 -0
  16. package/dist/chunks/{I18nProvider-Dfr8Km7j.js → I18nProvider-Coj9x7B8.js} +2 -2
  17. package/dist/chunks/{I18nProvider-Dfr8Km7j.js.map → I18nProvider-Coj9x7B8.js.map} +1 -1
  18. package/dist/chunks/{ProgressBar-D0THM7Dn.js → ProgressBar-542C1mif.js} +5 -5
  19. package/dist/chunks/{ProgressBar-D0THM7Dn.js.map → ProgressBar-542C1mif.js.map} +1 -1
  20. package/dist/chunks/{ProgressBar-BPfa9vzz.js → ProgressBar-BiKRsJ8m.js} +3 -3
  21. package/dist/chunks/{ProgressBar-BPfa9vzz.js.map → ProgressBar-BiKRsJ8m.js.map} +1 -1
  22. package/dist/chunks/SharedElementTransition-BSCoaphV.js +106 -0
  23. package/dist/chunks/{SharedElementTransition-D87oSBzB.js.map → SharedElementTransition-BSCoaphV.js.map} +1 -1
  24. package/dist/chunks/SharedElementTransition-CJVe1D_I.js +107 -0
  25. package/dist/chunks/{SharedElementTransition-BxczX23g.js.map → SharedElementTransition-CJVe1D_I.js.map} +1 -1
  26. package/dist/chunks/{VisuallyHidden-CiBoSB1U.js → VisuallyHidden-CTe1-RoI.js} +3 -39
  27. package/dist/chunks/VisuallyHidden-CTe1-RoI.js.map +1 -0
  28. package/dist/chunks/VisuallyHidden-DPJuOMsW.js +50 -0
  29. package/dist/chunks/VisuallyHidden-DPJuOMsW.js.map +1 -0
  30. package/dist/chunks/{button-group-CGyXDmwt.js → button-group-DJ5IdBp6.js} +2 -2
  31. package/dist/chunks/{button-group-CGyXDmwt.js.map → button-group-DJ5IdBp6.js.map} +1 -1
  32. package/dist/chunks/{compose-Ch-3fhek.js → compose-DOOi0Yan.js} +2 -2
  33. package/dist/chunks/{compose-Ch-3fhek.js.map → compose-DOOi0Yan.js.map} +1 -1
  34. package/dist/chunks/{focusSafely-Cxp4n3zg.js → focusSafely-CKxVSn6H.js} +39 -1
  35. package/dist/chunks/{focusSafely-Cxp4n3zg.js.map → focusSafely-CKxVSn6H.js.map} +1 -1
  36. package/dist/chunks/{focusSafely--u_yGz_7.js → focusSafely-DfEgLKh6.js} +46 -8
  37. package/dist/chunks/{focusSafely--u_yGz_7.js.map → focusSafely-DfEgLKh6.js.map} +1 -1
  38. package/dist/chunks/{number-DigQ78uS.js → number-CYgYWykt.js} +2 -2
  39. package/dist/chunks/{number-DigQ78uS.js.map → number-CYgYWykt.js.map} +1 -1
  40. package/dist/chunks/{radio-group-4o00BMkw.js → radio-group-BwXvYzSm.js} +14 -13
  41. package/dist/chunks/{radio-group-4o00BMkw.js.map → radio-group-BwXvYzSm.js.map} +1 -1
  42. package/dist/chunks/{radio-group-voOEmmYI.js → radio-group-hO2beGF6.js} +12 -11
  43. package/dist/chunks/{radio-group-voOEmmYI.js.map → radio-group-hO2beGF6.js.map} +1 -1
  44. package/dist/chunks/useControlledState-DE_m1RML.js +39 -0
  45. package/dist/chunks/useControlledState-DE_m1RML.js.map +1 -0
  46. package/dist/chunks/useControlledState-DZA25XHU.js +40 -0
  47. package/dist/chunks/useControlledState-DZA25XHU.js.map +1 -0
  48. package/dist/chunks/{useFormReset-BL4MH85g.js → useFormReset-BYRGk5vb.js} +2 -2
  49. package/dist/chunks/{useFormReset-BL4MH85g.js.map → useFormReset-BYRGk5vb.js.map} +1 -1
  50. package/dist/chunks/{useFormReset-YYNrlE-8.js → useFormReset-Bgv2ktIE.js} +2 -2
  51. package/dist/chunks/{useFormReset-YYNrlE-8.js.map → useFormReset-Bgv2ktIE.js.map} +1 -1
  52. package/dist/chunks/useHasTabbableChild-CSJ0P5QT.js +2577 -0
  53. package/dist/chunks/useHasTabbableChild-CSJ0P5QT.js.map +1 -0
  54. package/dist/chunks/useHasTabbableChild-kl2T5gEX.js +2576 -0
  55. package/dist/chunks/useHasTabbableChild-kl2T5gEX.js.map +1 -0
  56. package/dist/chunks/{useHover-_Q7y99al.js → useHover-BHCSbkLb.js} +3 -3
  57. package/dist/chunks/{useHover-_Q7y99al.js.map → useHover-BHCSbkLb.js.map} +1 -1
  58. package/dist/chunks/{useHover-COOv7KTv.js → useHover-D9f9xyxz.js} +2 -2
  59. package/dist/chunks/{useHover-COOv7KTv.js.map → useHover-D9f9xyxz.js.map} +1 -1
  60. package/dist/chunks/{useLabel-DjFU7E9u.js → useLabel-CzhH-Tov.js} +3 -22
  61. package/dist/chunks/useLabel-CzhH-Tov.js.map +1 -0
  62. package/dist/chunks/{useLabel-DgF69V6e.js → useLabel-YLbDMN-c.js} +4 -23
  63. package/dist/chunks/useLabel-YLbDMN-c.js.map +1 -0
  64. package/dist/chunks/useLabels-BiXnWBSL.js +23 -0
  65. package/dist/chunks/useLabels-BiXnWBSL.js.map +1 -0
  66. package/dist/chunks/useLabels-Bl0mJafM.js +24 -0
  67. package/dist/chunks/useLabels-Bl0mJafM.js.map +1 -0
  68. package/dist/chunks/{useMove-KCXqjWm-.js → useMove-DeuS9PRx.js} +3 -3
  69. package/dist/chunks/{useMove-KCXqjWm-.js.map → useMove-DeuS9PRx.js.map} +1 -1
  70. package/dist/chunks/{useMove-D5nRSeRO.js → useMove-Xpbmb6OD.js} +3 -3
  71. package/dist/chunks/{useMove-D5nRSeRO.js.map → useMove-Xpbmb6OD.js.map} +1 -1
  72. package/dist/chunks/{usePress-BnXPCNhr.js → usePress-Arf10jW0.js} +4 -4
  73. package/dist/chunks/{usePress-BnXPCNhr.js.map → usePress-Arf10jW0.js.map} +1 -1
  74. package/dist/chunks/{usePress-4yjnfhQ_.js → usePress-B1yQk_p8.js} +3 -3
  75. package/dist/chunks/{usePress-4yjnfhQ_.js.map → usePress-B1yQk_p8.js.map} +1 -1
  76. package/dist/chunks/{useProgressBar-DJZIQMyS.js → useProgressBar-BsO-Q5JP.js} +2 -2
  77. package/dist/chunks/{useProgressBar-DJZIQMyS.js.map → useProgressBar-BsO-Q5JP.js.map} +1 -1
  78. package/dist/chunks/{useProgressBar-D2OaXApL.js → useProgressBar-d2k0k8r0.js} +4 -4
  79. package/dist/chunks/{useProgressBar-D2OaXApL.js.map → useProgressBar-d2k0k8r0.js.map} +1 -1
  80. package/dist/chunks/{useSlot-CEcR5EcL.js → useSlot-CFaaZeQE.js} +4 -4
  81. package/dist/chunks/{useSlot-CEcR5EcL.js.map → useSlot-CFaaZeQE.js.map} +1 -1
  82. package/dist/chunks/{useSlot-YqT3Ml-j.js → useSlot-TNtJf1z8.js} +3 -3
  83. package/dist/chunks/{useSlot-YqT3Ml-j.js.map → useSlot-TNtJf1z8.js.map} +1 -1
  84. package/dist/chunks/{utils-B3shU_E6.js → utils-BCEhcDlv.js} +6 -6
  85. package/dist/chunks/{utils-B3shU_E6.js.map → utils-BCEhcDlv.js.map} +1 -1
  86. package/dist/components/icons/icons.d.ts +20 -0
  87. package/dist/components/icons/icons.d.ts.map +1 -0
  88. package/dist/components/tabs/index.d.ts +26 -0
  89. package/dist/components/tabs/index.d.ts.map +1 -0
  90. package/dist/components/tabs/tabs.d.ts +40 -0
  91. package/dist/components/tabs/tabs.d.ts.map +1 -0
  92. package/dist/components/tabs/tabs.styles.d.ts +87 -0
  93. package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
  94. package/dist/data-table/index.cjs.js +293 -2810
  95. package/dist/data-table/index.cjs.js.map +1 -1
  96. package/dist/data-table/index.es.js +207 -2724
  97. package/dist/data-table/index.es.js.map +1 -1
  98. package/dist/index.cjs.js +2 -2
  99. package/dist/index.es.js +3 -3
  100. package/dist/lib/utils/assertion.d.ts +10 -0
  101. package/dist/lib/utils/assertion.d.ts.map +1 -0
  102. package/dist/lib/utils/class-name.d.ts +8 -0
  103. package/dist/lib/utils/class-name.d.ts.map +1 -0
  104. package/dist/lib/utils/cn.d.ts +23 -0
  105. package/dist/lib/utils/cn.d.ts.map +1 -0
  106. package/dist/lib/utils/collection-prop-injection.d.ts +32 -0
  107. package/dist/lib/utils/collection-prop-injection.d.ts.map +1 -0
  108. package/dist/lib/utils/compose.d.ts +8 -0
  109. package/dist/lib/utils/compose.d.ts.map +1 -0
  110. package/dist/lib/utils/dom.d.ts +22 -0
  111. package/dist/lib/utils/dom.d.ts.map +1 -0
  112. package/dist/lib/utils/field-slots-gate.d.ts +10 -0
  113. package/dist/lib/utils/field-slots-gate.d.ts.map +1 -0
  114. package/dist/lib/utils/logger.d.ts +24 -0
  115. package/dist/lib/utils/logger.d.ts.map +1 -0
  116. package/dist/lib/utils/normalize.d.ts +6 -0
  117. package/dist/lib/utils/normalize.d.ts.map +1 -0
  118. package/dist/lib/utils/use-has-text-slot.d.ts +14 -0
  119. package/dist/lib/utils/use-has-text-slot.d.ts.map +1 -0
  120. package/dist/lizaui.css +458 -0
  121. package/dist/meter/index.cjs.js +2 -2
  122. package/dist/meter/index.es.js +4 -4
  123. package/dist/progress-bar/index.cjs.js +1 -1
  124. package/dist/progress-bar/index.es.js +2 -2
  125. package/dist/radio/index.cjs.js +1 -1
  126. package/dist/radio/index.es.js +2 -2
  127. package/dist/radio-group/index.cjs.js +1 -1
  128. package/dist/radio-group/index.es.js +2 -2
  129. package/dist/slider/index.cjs.js +8 -7
  130. package/dist/slider/index.cjs.js.map +1 -1
  131. package/dist/slider/index.es.js +10 -9
  132. package/dist/slider/index.es.js.map +1 -1
  133. package/dist/tabs/index.cjs.js +1400 -0
  134. package/dist/tabs/index.cjs.js.map +1 -0
  135. package/dist/tabs/index.es.js +1400 -0
  136. package/dist/tabs/index.es.js.map +1 -0
  137. package/dist/tabs.d.ts +2 -0
  138. package/dist/toggle-switch/index.cjs.js +8 -7
  139. package/dist/toggle-switch/index.cjs.js.map +1 -1
  140. package/dist/toggle-switch/index.es.js +8 -7
  141. package/dist/toggle-switch/index.es.js.map +1 -1
  142. package/dist/toolbar/index.cjs.js +2 -2
  143. package/dist/toolbar/index.es.js +4 -4
  144. package/package.json +6 -1
  145. package/dist/chunks/Button-B-wLEikV.js.map +0 -1
  146. package/dist/chunks/Button-DdtCMsXJ.js.map +0 -1
  147. package/dist/chunks/SharedElementTransition-BxczX23g.js +0 -12
  148. package/dist/chunks/SharedElementTransition-D87oSBzB.js +0 -13
  149. package/dist/chunks/VisuallyHidden-CiBoSB1U.js.map +0 -1
  150. package/dist/chunks/VisuallyHidden-paROiuP0.js +0 -86
  151. package/dist/chunks/VisuallyHidden-paROiuP0.js.map +0 -1
  152. package/dist/chunks/useLabel-DgF69V6e.js.map +0 -1
  153. package/dist/chunks/useLabel-DjFU7E9u.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar-D0THM7Dn.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/ProgressBar.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlot as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $43a3b93638fe5db9$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $8MuvO$useProgressBar} from \"react-aria/useProgressBar\";\nimport {clamp as $8MuvO$clamp} from \"react-stately/private/utils/number\";\nimport {filterDOMProps as $8MuvO$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $8MuvO$mergeProps} from \"react-aria/mergeProps\";\nimport $8MuvO$react, {createContext as $8MuvO$createContext, forwardRef as $8MuvO$forwardRef} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $8MuvO$createContext)(null);\nconst $6c0095e7e99364f2$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $8MuvO$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $6c0095e7e99364f2$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $8MuvO$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $8MuvO$useProgressBar)({\n ...props,\n label: label\n });\n let range = maxValue - minValue;\n // Calculate the width of the progress bar as a percentage\n let percentage = undefined;\n if (!isIndeterminate) {\n if (range === 0) percentage = 0;\n else percentage = (value - minValue) / range * 100;\n }\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-ProgressBar',\n values: {\n percentage: percentage,\n valueText: progressBarProps['aria-valuetext'],\n isIndeterminate: isIndeterminate\n }\n });\n let DOMProps = (0, $8MuvO$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $8MuvO$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $43a3b93638fe5db9$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$6c0095e7e99364f2$export$e9f3bf65a26ce129 as ProgressBarContext, $6c0095e7e99364f2$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.mjs.map\n"],"names":["$8MuvO$createContext","$8MuvO$forwardRef","$8MuvO$clamp","$8MuvO$useProgressBar","$8MuvO$filterDOMProps","$8MuvO$react","$8MuvO$mergeProps"],"mappings":";;;;;;AAyBK,MAAC,4CAA8DA,8BAAsB,IAAI;AACzF,MAAC,4CAA8DC,2BAAmB,SAAS,YAAY,OAAO,KAAK;AACpH,GAAC,OAAO,GAAG,IAAQ,0CAA2C,OAAO,KAAK,yCAAyC;AACnH,MAAI,EAAE,QAAe,GAAG,WAAqB,GAAG,WAAqB,KAAK,kBAAmC,MAAK,IAAK;AACvH,UAAYC,0CAAc,OAAO,UAAU,QAAQ;AACnD,MAAI,CAAC,UAAU,KAAK,IAAQ,0CAA2C,CAAC,MAAM,YAAY,KAAK,CAAC,MAAM,iBAAiB,CAAC;AACxH,MAAI,EAAE,kBAAoC,WAAsB,IAASC,0CAAuB;AAAA,IAC5F,GAAG;AAAA,IACH;AAAA,EACR,CAAK;AACD,MAAI,QAAQ,WAAW;AAEvB,MAAI,aAAa;AACjB,MAAI,CAAC,iBAAiB;AAClB,QAAI,UAAU,EAAG,cAAa;AAAA,QACzB,eAAc,QAAQ,YAAY,QAAQ;AAAA,EACnD;AACA,MAAI,cAAkB,wCAAyC;AAAA,IAC3D,GAAG;AAAA,IACH,kBAAkB;AAAA,IAClB,QAAQ;AAAA,MACJ;AAAA,MACA,WAAW,iBAAiB,gBAAgB;AAAA,MAC5C;AAAA,IACZ;AAAA,EACA,CAAK;AACD,MAAI,WAAeC,0CAAuB,OAAO;AAAA,IAC7C,QAAQ;AAAA,EAChB,CAAK;AACD,SAAyBC,+BAAc,cAAkB,0CAA2C,KAAK;AAAA,IACrG,GAAOC,0CAAmB,UAAU,aAAa,gBAAgB;AAAA,IACjE;AAAA,IACA,MAAM,MAAM,QAAQ;AAAA,EAC5B,GAAyBD,+BAAc,cAAkB,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,GAAG;AAAA,MACH,KAAK;AAAA,MACL,aAAa;AAAA,IACzB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ProgressBar-542C1mif.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/ProgressBar.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlot as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $43a3b93638fe5db9$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $8MuvO$useProgressBar} from \"react-aria/useProgressBar\";\nimport {clamp as $8MuvO$clamp} from \"react-stately/private/utils/number\";\nimport {filterDOMProps as $8MuvO$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $8MuvO$mergeProps} from \"react-aria/mergeProps\";\nimport $8MuvO$react, {createContext as $8MuvO$createContext, forwardRef as $8MuvO$forwardRef} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $8MuvO$createContext)(null);\nconst $6c0095e7e99364f2$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $8MuvO$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $6c0095e7e99364f2$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $8MuvO$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $8MuvO$useProgressBar)({\n ...props,\n label: label\n });\n let range = maxValue - minValue;\n // Calculate the width of the progress bar as a percentage\n let percentage = undefined;\n if (!isIndeterminate) {\n if (range === 0) percentage = 0;\n else percentage = (value - minValue) / range * 100;\n }\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-ProgressBar',\n values: {\n percentage: percentage,\n valueText: progressBarProps['aria-valuetext'],\n isIndeterminate: isIndeterminate\n }\n });\n let DOMProps = (0, $8MuvO$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $8MuvO$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $43a3b93638fe5db9$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$6c0095e7e99364f2$export$e9f3bf65a26ce129 as ProgressBarContext, $6c0095e7e99364f2$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.mjs.map\n"],"names":["$8MuvO$createContext","$8MuvO$forwardRef","$8MuvO$clamp","$8MuvO$useProgressBar","$8MuvO$filterDOMProps","$8MuvO$react","$8MuvO$mergeProps"],"mappings":";;;;;;AAyBK,MAAC,4CAA8DA,8BAAsB,IAAI;AACzF,MAAC,4CAA8DC,2BAAmB,SAAS,YAAY,OAAO,KAAK;AACpH,GAAC,OAAO,GAAG,IAAQ,0CAA2C,OAAO,KAAK,yCAAyC;AACnH,MAAI,EAAE,QAAe,GAAG,WAAqB,GAAG,WAAqB,KAAK,kBAAmC,MAAK,IAAK;AACvH,UAAYC,0CAAc,OAAO,UAAU,QAAQ;AACnD,MAAI,CAAC,UAAU,KAAK,IAAQ,0CAA2C,CAAC,MAAM,YAAY,KAAK,CAAC,MAAM,iBAAiB,CAAC;AACxH,MAAI,EAAE,kBAAoC,WAAsB,IAASC,0CAAuB;AAAA,IAC5F,GAAG;AAAA,IACH;AAAA,EACR,CAAK;AACD,MAAI,QAAQ,WAAW;AAEvB,MAAI,aAAa;AACjB,MAAI,CAAC,iBAAiB;AAClB,QAAI,UAAU,EAAG,cAAa;AAAA,QACzB,eAAc,QAAQ,YAAY,QAAQ;AAAA,EACnD;AACA,MAAI,cAAkB,wCAAyC;AAAA,IAC3D,GAAG;AAAA,IACH,kBAAkB;AAAA,IAClB,QAAQ;AAAA,MACJ;AAAA,MACA,WAAW,iBAAiB,gBAAgB;AAAA,MAC5C;AAAA,IACZ;AAAA,EACA,CAAK;AACD,MAAI,WAAeC,0CAAuB,OAAO;AAAA,IAC7C,QAAQ;AAAA,EAChB,CAAK;AACD,SAAyBC,+BAAc,cAAkB,0CAA2C,KAAK;AAAA,IACrG,GAAOC,0CAAmB,UAAU,aAAa,gBAAgB;AAAA,IACjE;AAAA,IACA,MAAM,MAAM,QAAQ;AAAA,EAC5B,GAAyBD,+BAAc,cAAkB,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,GAAG;AAAA,MACH,KAAK;AAAA,MACL,aAAa;AAAA,IACzB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const utils = require("./utils-DvHk9ofL.js");
3
- const useLabel = require("./useLabel-DjFU7E9u.js");
4
- const useProgressBar = require("./useProgressBar-DJZIQMyS.js");
3
+ const useLabel = require("./useLabel-CzhH-Tov.js");
4
+ const useProgressBar = require("./useProgressBar-BsO-Q5JP.js");
5
5
  const number = require("./number-DDpsLN2d.js");
6
6
  const filterDOMProps = require("./filterDOMProps-JgzPXl3Q.js");
7
7
  const React = require("react");
@@ -47,4 +47,4 @@ const $6c0095e7e99364f2$export$c17561cb55d4db30 = /* @__PURE__ */ React.forwardR
47
47
  });
48
48
  exports.$6c0095e7e99364f2$export$c17561cb55d4db30 = $6c0095e7e99364f2$export$c17561cb55d4db30;
49
49
  exports.$6c0095e7e99364f2$export$e9f3bf65a26ce129 = $6c0095e7e99364f2$export$e9f3bf65a26ce129;
50
- //# sourceMappingURL=ProgressBar-BPfa9vzz.js.map
50
+ //# sourceMappingURL=ProgressBar-BiKRsJ8m.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar-BPfa9vzz.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/ProgressBar.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlot as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $43a3b93638fe5db9$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $8MuvO$useProgressBar} from \"react-aria/useProgressBar\";\nimport {clamp as $8MuvO$clamp} from \"react-stately/private/utils/number\";\nimport {filterDOMProps as $8MuvO$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $8MuvO$mergeProps} from \"react-aria/mergeProps\";\nimport $8MuvO$react, {createContext as $8MuvO$createContext, forwardRef as $8MuvO$forwardRef} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $8MuvO$createContext)(null);\nconst $6c0095e7e99364f2$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $8MuvO$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $6c0095e7e99364f2$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $8MuvO$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $8MuvO$useProgressBar)({\n ...props,\n label: label\n });\n let range = maxValue - minValue;\n // Calculate the width of the progress bar as a percentage\n let percentage = undefined;\n if (!isIndeterminate) {\n if (range === 0) percentage = 0;\n else percentage = (value - minValue) / range * 100;\n }\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-ProgressBar',\n values: {\n percentage: percentage,\n valueText: progressBarProps['aria-valuetext'],\n isIndeterminate: isIndeterminate\n }\n });\n let DOMProps = (0, $8MuvO$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $8MuvO$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $43a3b93638fe5db9$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$6c0095e7e99364f2$export$e9f3bf65a26ce129 as ProgressBarContext, $6c0095e7e99364f2$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.mjs.map\n"],"names":["$8MuvO$createContext","$8MuvO$forwardRef","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$8MuvO$clamp","$7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8","$8MuvO$useProgressBar","$7230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AAkBG,SAAAA,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,GAAG;AAAA,MACH,KAAK;AAAA,MACL,aAAa;AAAA,IACzB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ProgressBar-BiKRsJ8m.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/ProgressBar.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlot as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $43a3b93638fe5db9$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $8MuvO$useProgressBar} from \"react-aria/useProgressBar\";\nimport {clamp as $8MuvO$clamp} from \"react-stately/private/utils/number\";\nimport {filterDOMProps as $8MuvO$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $8MuvO$mergeProps} from \"react-aria/mergeProps\";\nimport $8MuvO$react, {createContext as $8MuvO$createContext, forwardRef as $8MuvO$forwardRef} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $8MuvO$createContext)(null);\nconst $6c0095e7e99364f2$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $8MuvO$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $6c0095e7e99364f2$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $8MuvO$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $8MuvO$useProgressBar)({\n ...props,\n label: label\n });\n let range = maxValue - minValue;\n // Calculate the width of the progress bar as a percentage\n let percentage = undefined;\n if (!isIndeterminate) {\n if (range === 0) percentage = 0;\n else percentage = (value - minValue) / range * 100;\n }\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-ProgressBar',\n values: {\n percentage: percentage,\n valueText: progressBarProps['aria-valuetext'],\n isIndeterminate: isIndeterminate\n }\n });\n let DOMProps = (0, $8MuvO$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $8MuvO$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $8MuvO$react).createElement((0, $43a3b93638fe5db9$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$6c0095e7e99364f2$export$e9f3bf65a26ce129 as ProgressBarContext, $6c0095e7e99364f2$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.mjs.map\n"],"names":["$8MuvO$createContext","$8MuvO$forwardRef","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$8MuvO$clamp","$7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8","$8MuvO$useProgressBar","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$8MuvO$filterDOMProps","$8MuvO$react","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$8MuvO$mergeProps","$43a3b93638fe5db9$export$75b6ee27786ba447"],"mappings":";;;;;;;AAyBK,MAAC,4CAA8DA,sBAAAA,cAAsB,IAAI;AACzF,MAAC,4CAA8DC,sBAAAA,WAAmB,SAAS,YAAY,OAAO,KAAK;AACpH,GAAC,OAAO,GAAG,IAAQC,MAAAA,0CAA2C,OAAO,KAAK,yCAAyC;AACnH,MAAI,EAAE,QAAe,GAAG,WAAqB,GAAG,WAAqB,KAAK,kBAAmC,MAAK,IAAK;AACvH,UAAYC,OAAAA,0CAAc,OAAO,UAAU,QAAQ;AACnD,MAAI,CAAC,UAAU,KAAK,IAAQC,MAAAA,0CAA2C,CAAC,MAAM,YAAY,KAAK,CAAC,MAAM,iBAAiB,CAAC;AACxH,MAAI,EAAE,kBAAoC,WAAsB,IAASC,yDAAuB;AAAA,IAC5F,GAAG;AAAA,IACH;AAAA,EACR,CAAK;AACD,MAAI,QAAQ,WAAW;AAEvB,MAAI,aAAa;AACjB,MAAI,CAAC,iBAAiB;AAClB,QAAI,UAAU,EAAG,cAAa;AAAA,QACzB,eAAc,QAAQ,YAAY,QAAQ;AAAA,EACnD;AACA,MAAI,cAAkBC,8CAAyC;AAAA,IAC3D,GAAG;AAAA,IACH,kBAAkB;AAAA,IAClB,QAAQ;AAAA,MACJ;AAAA,MACA,WAAW,iBAAiB,gBAAgB;AAAA,MAC5C;AAAA,IACZ;AAAA,EACA,CAAK;AACD,MAAI,WAAeC,eAAAA,0CAAuB,OAAO;AAAA,IAC7C,QAAQ;AAAA,EAChB,CAAK;AACD,SAAyBC,sBAAc,cAAkBC,MAAAA,0CAA2C,KAAK;AAAA,IACrG,GAAOC,MAAAA,0CAAmB,UAAU,aAAa,gBAAgB;AAAA,IACjE;AAAA,IACA,MAAM,MAAM,QAAQ;AAAA,EAC5B,GAAyBF,sBAAc,cAAkBG,SAAAA,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,GAAG;AAAA,MACH,KAAK;AAAA,MACL,aAAa;AAAA,IACzB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ const utils = require("./utils-DvHk9ofL.js");
3
+ const ReactDOM = require("react-dom");
4
+ const React = require("react");
5
+ const $792f28e438b9ad5f$var$SharedElementContext = /* @__PURE__ */ React.createContext(null);
6
+ function $792f28e438b9ad5f$export$758399f318e6385a(props) {
7
+ let ref = React.useRef({});
8
+ return /* @__PURE__ */ React.createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {
9
+ value: ref
10
+ }, props.children);
11
+ }
12
+ const $792f28e438b9ad5f$export$c34620ff8881d89f = /* @__PURE__ */ React.forwardRef(function SharedElement(props, ref) {
13
+ let { name, isVisible = true, children, className, style, render, ...divProps } = props;
14
+ let [state, setState] = React.useState(isVisible ? "visible" : "hidden");
15
+ let scopeRef = React.useContext($792f28e438b9ad5f$var$SharedElementContext);
16
+ if (!scopeRef) throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");
17
+ if (isVisible && state === "hidden") setState("visible");
18
+ ref = utils.$03e8ab2d84d7657a$export$4338b53315abf666(ref);
19
+ utils.$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
20
+ let element = ref.current;
21
+ let scope = scopeRef.current;
22
+ let prevSnapshot = scope[name];
23
+ let frame = null;
24
+ if (element && isVisible && prevSnapshot) {
25
+ setState("visible");
26
+ let animations = element.getAnimations();
27
+ let values = prevSnapshot.style.map(([property, prevValue]) => {
28
+ let value = element.style[property];
29
+ if (property === "translate") {
30
+ let prevRect = prevSnapshot.rect;
31
+ let currentItem = element.getBoundingClientRect();
32
+ let deltaX = prevRect.left - currentItem?.left;
33
+ let deltaY = prevRect.top - currentItem?.top;
34
+ element.style.translate = `${deltaX}px ${deltaY}px`;
35
+ } else element.style[property] = prevValue;
36
+ return [
37
+ property,
38
+ value
39
+ ];
40
+ });
41
+ for (let a of element.getAnimations()) if (!animations.includes(a)) a.cancel();
42
+ frame = requestAnimationFrame(() => {
43
+ frame = null;
44
+ for (let [property, value] of values) element.style[property] = value;
45
+ });
46
+ delete scope[name];
47
+ } else if (element && isVisible && !prevSnapshot) {
48
+ queueMicrotask(() => ReactDOM.flushSync(() => setState("entering")));
49
+ frame = requestAnimationFrame(() => {
50
+ frame = null;
51
+ setState("visible");
52
+ });
53
+ } else if (element && !isVisible)
54
+ queueMicrotask(() => {
55
+ if (scope[name]) {
56
+ delete scope[name];
57
+ ReactDOM.flushSync(() => setState("exiting"));
58
+ Promise.all(element.getAnimations().map((a) => a.finished)).then(() => setState("hidden")).catch(() => {
59
+ });
60
+ } else
61
+ setState("hidden");
62
+ });
63
+ return () => {
64
+ if (frame != null) cancelAnimationFrame(frame);
65
+ if (element && element.isConnected && !element.hasAttribute("data-exiting")) {
66
+ let style2 = window.getComputedStyle(element);
67
+ if (style2.transitionProperty !== "none") {
68
+ let transitionProperty = style2.transitionProperty.split(/\s*,\s*/);
69
+ scope[name] = {
70
+ rect: element.getBoundingClientRect(),
71
+ style: transitionProperty.map((p) => [
72
+ p,
73
+ style2[p]
74
+ ])
75
+ };
76
+ }
77
+ }
78
+ };
79
+ }, [
80
+ ref,
81
+ scopeRef,
82
+ name,
83
+ isVisible
84
+ ]);
85
+ let renderProps = utils.$7230ffa83bc0c2cf$export$4d86445c2cf5e3({
86
+ children,
87
+ className,
88
+ style,
89
+ render,
90
+ values: {
91
+ isEntering: state === "entering",
92
+ isExiting: state === "exiting"
93
+ }
94
+ });
95
+ if (state === "hidden") return null;
96
+ return /* @__PURE__ */ React.createElement(utils.$7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
97
+ ...divProps,
98
+ ...renderProps,
99
+ ref,
100
+ "data-entering": state === "entering" || void 0,
101
+ "data-exiting": state === "exiting" || void 0
102
+ });
103
+ });
104
+ exports.$792f28e438b9ad5f$export$758399f318e6385a = $792f28e438b9ad5f$export$758399f318e6385a;
105
+ exports.$792f28e438b9ad5f$export$c34620ff8881d89f = $792f28e438b9ad5f$export$c34620ff8881d89f;
106
+ //# sourceMappingURL=SharedElementTransition-BSCoaphV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SharedElementTransition-D87oSBzB.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/SharedElementTransition.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {flushSync as $3Lq00$flushSync} from \"react-dom\";\nimport $3Lq00$react, {createContext as $3Lq00$createContext, useRef as $3Lq00$useRef, forwardRef as $3Lq00$forwardRef, useState as $3Lq00$useState, useContext as $3Lq00$useContext} from \"react\";\nimport {useLayoutEffect as $3Lq00$useLayoutEffect} from \"react-aria/private/utils/useLayoutEffect\";\nimport {useObjectRef as $3Lq00$useObjectRef} from \"react-aria/useObjectRef\";\n\n/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nconst $792f28e438b9ad5f$var$SharedElementContext = /*#__PURE__*/ (0, $3Lq00$createContext)(null);\nfunction $792f28e438b9ad5f$export$758399f318e6385a(props) {\n let ref = (0, $3Lq00$useRef)({});\n return /*#__PURE__*/ (0, $3Lq00$react).createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {\n value: ref\n }, props.children);\n}\nconst $792f28e438b9ad5f$export$c34620ff8881d89f = /*#__PURE__*/ (0, $3Lq00$forwardRef)(function SharedElement(props, ref) {\n let { name: name, isVisible: isVisible = true, children: children, className: className, style: style, render: render, ...divProps } = props;\n let [state, setState] = (0, $3Lq00$useState)(isVisible ? 'visible' : 'hidden');\n let scopeRef = (0, $3Lq00$useContext)($792f28e438b9ad5f$var$SharedElementContext);\n if (!scopeRef) throw new Error('<SharedElement> must be rendered inside a <SharedElementTransition>');\n if (isVisible && state === 'hidden') setState('visible');\n ref = (0, $3Lq00$useObjectRef)(ref);\n (0, $3Lq00$useLayoutEffect)(()=>{\n let element = ref.current;\n let scope = scopeRef.current;\n let prevSnapshot = scope[name];\n let frame = null;\n if (element && isVisible && prevSnapshot) {\n // Element is transitioning from a previous instance.\n setState('visible');\n let animations = element.getAnimations();\n // Set properties to animate from.\n let values = prevSnapshot.style.map(([property, prevValue])=>{\n let value = element.style[property];\n if (property === 'translate') {\n let prevRect = prevSnapshot.rect;\n let currentItem = element.getBoundingClientRect();\n let deltaX = prevRect.left - currentItem?.left;\n let deltaY = prevRect.top - currentItem?.top;\n element.style.translate = `${deltaX}px ${deltaY}px`;\n } else element.style[property] = prevValue;\n return [\n property,\n value\n ];\n });\n // Cancel any new animations triggered by these properties.\n for (let a of element.getAnimations())if (!animations.includes(a)) a.cancel();\n // Remove overrides after one frame to animate to the current values.\n frame = requestAnimationFrame(()=>{\n frame = null;\n for (let [property, value] of values)element.style[property] = value;\n });\n delete scope[name];\n } else if (element && isVisible && !prevSnapshot) {\n // No previous instance exists, apply the entering state.\n queueMicrotask(()=>(0, $3Lq00$flushSync)(()=>setState('entering')));\n frame = requestAnimationFrame(()=>{\n frame = null;\n setState('visible');\n });\n } else if (element && !isVisible) // Wait until layout effects finish, and check if a snapshot still exists.\n // If so, no new SharedElement consumed it, so enter the exiting state.\n queueMicrotask(()=>{\n if (scope[name]) {\n delete scope[name];\n (0, $3Lq00$flushSync)(()=>setState('exiting'));\n Promise.all(element.getAnimations().map((a)=>a.finished)).then(()=>setState('hidden')).catch(()=>{});\n } else // Snapshot was consumed by another instance, unmount.\n setState('hidden');\n });\n return ()=>{\n if (frame != null) cancelAnimationFrame(frame);\n if (element && element.isConnected && !element.hasAttribute('data-exiting')) {\n // On unmount, store a snapshot of the rectangle and computed style for transitioning properties.\n let style = window.getComputedStyle(element);\n if (style.transitionProperty !== 'none') {\n let transitionProperty = style.transitionProperty.split(/\\s*,\\s*/);\n scope[name] = {\n rect: element.getBoundingClientRect(),\n style: transitionProperty.map((p)=>[\n p,\n style[p]\n ])\n };\n }\n }\n };\n }, [\n ref,\n scopeRef,\n name,\n isVisible\n ]);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n children: children,\n className: className,\n style: style,\n render: render,\n values: {\n isEntering: state === 'entering',\n isExiting: state === 'exiting'\n }\n });\n if (state === 'hidden') return null;\n return /*#__PURE__*/ (0, $3Lq00$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...divProps,\n ...renderProps,\n ref: ref,\n \"data-entering\": state === 'entering' || undefined,\n \"data-exiting\": state === 'exiting' || undefined\n });\n});\n\n\nexport {$792f28e438b9ad5f$export$758399f318e6385a as SharedElementTransition, $792f28e438b9ad5f$export$c34620ff8881d89f as SharedElement};\n//# sourceMappingURL=SharedElementTransition.mjs.map\n"],"names":["$3Lq00$createContext","$3Lq00$useRef","$3Lq00$react"],"mappings":";;AAqBA,MAAM,6CAA+DA,8BAAsB,IAAI;AAC/F,SAAS,0CAA0C,OAAO;AACtD,MAAI,MAAUC,OAAe,EAAE;AAC/B,SAAyBC,+BAAc,cAAc,2CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,EACf,GAAO,MAAM,QAAQ;AACrB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"SharedElementTransition-BSCoaphV.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/SharedElementTransition.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {flushSync as $3Lq00$flushSync} from \"react-dom\";\nimport $3Lq00$react, {createContext as $3Lq00$createContext, useRef as $3Lq00$useRef, forwardRef as $3Lq00$forwardRef, useState as $3Lq00$useState, useContext as $3Lq00$useContext} from \"react\";\nimport {useLayoutEffect as $3Lq00$useLayoutEffect} from \"react-aria/private/utils/useLayoutEffect\";\nimport {useObjectRef as $3Lq00$useObjectRef} from \"react-aria/useObjectRef\";\n\n/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nconst $792f28e438b9ad5f$var$SharedElementContext = /*#__PURE__*/ (0, $3Lq00$createContext)(null);\nfunction $792f28e438b9ad5f$export$758399f318e6385a(props) {\n let ref = (0, $3Lq00$useRef)({});\n return /*#__PURE__*/ (0, $3Lq00$react).createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {\n value: ref\n }, props.children);\n}\nconst $792f28e438b9ad5f$export$c34620ff8881d89f = /*#__PURE__*/ (0, $3Lq00$forwardRef)(function SharedElement(props, ref) {\n let { name: name, isVisible: isVisible = true, children: children, className: className, style: style, render: render, ...divProps } = props;\n let [state, setState] = (0, $3Lq00$useState)(isVisible ? 'visible' : 'hidden');\n let scopeRef = (0, $3Lq00$useContext)($792f28e438b9ad5f$var$SharedElementContext);\n if (!scopeRef) throw new Error('<SharedElement> must be rendered inside a <SharedElementTransition>');\n if (isVisible && state === 'hidden') setState('visible');\n ref = (0, $3Lq00$useObjectRef)(ref);\n (0, $3Lq00$useLayoutEffect)(()=>{\n let element = ref.current;\n let scope = scopeRef.current;\n let prevSnapshot = scope[name];\n let frame = null;\n if (element && isVisible && prevSnapshot) {\n // Element is transitioning from a previous instance.\n setState('visible');\n let animations = element.getAnimations();\n // Set properties to animate from.\n let values = prevSnapshot.style.map(([property, prevValue])=>{\n let value = element.style[property];\n if (property === 'translate') {\n let prevRect = prevSnapshot.rect;\n let currentItem = element.getBoundingClientRect();\n let deltaX = prevRect.left - currentItem?.left;\n let deltaY = prevRect.top - currentItem?.top;\n element.style.translate = `${deltaX}px ${deltaY}px`;\n } else element.style[property] = prevValue;\n return [\n property,\n value\n ];\n });\n // Cancel any new animations triggered by these properties.\n for (let a of element.getAnimations())if (!animations.includes(a)) a.cancel();\n // Remove overrides after one frame to animate to the current values.\n frame = requestAnimationFrame(()=>{\n frame = null;\n for (let [property, value] of values)element.style[property] = value;\n });\n delete scope[name];\n } else if (element && isVisible && !prevSnapshot) {\n // No previous instance exists, apply the entering state.\n queueMicrotask(()=>(0, $3Lq00$flushSync)(()=>setState('entering')));\n frame = requestAnimationFrame(()=>{\n frame = null;\n setState('visible');\n });\n } else if (element && !isVisible) // Wait until layout effects finish, and check if a snapshot still exists.\n // If so, no new SharedElement consumed it, so enter the exiting state.\n queueMicrotask(()=>{\n if (scope[name]) {\n delete scope[name];\n (0, $3Lq00$flushSync)(()=>setState('exiting'));\n Promise.all(element.getAnimations().map((a)=>a.finished)).then(()=>setState('hidden')).catch(()=>{});\n } else // Snapshot was consumed by another instance, unmount.\n setState('hidden');\n });\n return ()=>{\n if (frame != null) cancelAnimationFrame(frame);\n if (element && element.isConnected && !element.hasAttribute('data-exiting')) {\n // On unmount, store a snapshot of the rectangle and computed style for transitioning properties.\n let style = window.getComputedStyle(element);\n if (style.transitionProperty !== 'none') {\n let transitionProperty = style.transitionProperty.split(/\\s*,\\s*/);\n scope[name] = {\n rect: element.getBoundingClientRect(),\n style: transitionProperty.map((p)=>[\n p,\n style[p]\n ])\n };\n }\n }\n };\n }, [\n ref,\n scopeRef,\n name,\n isVisible\n ]);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n children: children,\n className: className,\n style: style,\n render: render,\n values: {\n isEntering: state === 'entering',\n isExiting: state === 'exiting'\n }\n });\n if (state === 'hidden') return null;\n return /*#__PURE__*/ (0, $3Lq00$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...divProps,\n ...renderProps,\n ref: ref,\n \"data-entering\": state === 'entering' || undefined,\n \"data-exiting\": state === 'exiting' || undefined\n });\n});\n\n\nexport {$792f28e438b9ad5f$export$758399f318e6385a as SharedElementTransition, $792f28e438b9ad5f$export$c34620ff8881d89f as SharedElement};\n//# sourceMappingURL=SharedElementTransition.mjs.map\n"],"names":["$3Lq00$createContext","$3Lq00$useRef","$3Lq00$react","$3Lq00$forwardRef","$3Lq00$useState","$3Lq00$useContext","$3Lq00$useObjectRef","$3Lq00$useLayoutEffect","$3Lq00$flushSync","style","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$7230ffa83bc0c2cf$export$df3a06d6289f983e"],"mappings":";;;;AAqBA,MAAM,6CAA+DA,sBAAAA,cAAsB,IAAI;AAC/F,SAAS,0CAA0C,OAAO;AACtD,MAAI,MAAUC,MAAAA,OAAe,EAAE;AAC/B,SAAyBC,sBAAc,cAAc,2CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,EACf,GAAO,MAAM,QAAQ;AACrB;AACK,MAAC,4CAA8DC,sBAAAA,WAAmB,SAAS,cAAc,OAAO,KAAK;AACtH,MAAI,EAAE,MAAY,YAAuB,MAAM,UAAoB,WAAsB,OAAc,QAAgB,GAAG,SAAQ,IAAK;AACvI,MAAI,CAAC,OAAO,QAAQ,IAAQC,MAAA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AAc;AAAA,IACzC,gBAAgB,UAAU,aAAa;AAAA,EAC/C,CAAK;AACL,CAAC;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,107 @@
1
+ import { f as $03e8ab2d84d7657a$export$4338b53315abf666, g as $c4867b2f328c2698$export$e5c5a5f917a5871c, b as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, c as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BCEhcDlv.js";
2
+ import { flushSync } from "react-dom";
3
+ import React__default, { useRef, createContext, forwardRef, useState, useContext } from "react";
4
+ const $792f28e438b9ad5f$var$SharedElementContext = /* @__PURE__ */ createContext(null);
5
+ function $792f28e438b9ad5f$export$758399f318e6385a(props) {
6
+ let ref = useRef({});
7
+ return /* @__PURE__ */ React__default.createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {
8
+ value: ref
9
+ }, props.children);
10
+ }
11
+ const $792f28e438b9ad5f$export$c34620ff8881d89f = /* @__PURE__ */ forwardRef(function SharedElement(props, ref) {
12
+ let { name, isVisible = true, children, className, style, render, ...divProps } = props;
13
+ let [state, setState] = useState(isVisible ? "visible" : "hidden");
14
+ let scopeRef = useContext($792f28e438b9ad5f$var$SharedElementContext);
15
+ if (!scopeRef) throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");
16
+ if (isVisible && state === "hidden") setState("visible");
17
+ ref = $03e8ab2d84d7657a$export$4338b53315abf666(ref);
18
+ $c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
19
+ let element = ref.current;
20
+ let scope = scopeRef.current;
21
+ let prevSnapshot = scope[name];
22
+ let frame = null;
23
+ if (element && isVisible && prevSnapshot) {
24
+ setState("visible");
25
+ let animations = element.getAnimations();
26
+ let values = prevSnapshot.style.map(([property, prevValue]) => {
27
+ let value = element.style[property];
28
+ if (property === "translate") {
29
+ let prevRect = prevSnapshot.rect;
30
+ let currentItem = element.getBoundingClientRect();
31
+ let deltaX = prevRect.left - currentItem?.left;
32
+ let deltaY = prevRect.top - currentItem?.top;
33
+ element.style.translate = `${deltaX}px ${deltaY}px`;
34
+ } else element.style[property] = prevValue;
35
+ return [
36
+ property,
37
+ value
38
+ ];
39
+ });
40
+ for (let a of element.getAnimations()) if (!animations.includes(a)) a.cancel();
41
+ frame = requestAnimationFrame(() => {
42
+ frame = null;
43
+ for (let [property, value] of values) element.style[property] = value;
44
+ });
45
+ delete scope[name];
46
+ } else if (element && isVisible && !prevSnapshot) {
47
+ queueMicrotask(() => flushSync(() => setState("entering")));
48
+ frame = requestAnimationFrame(() => {
49
+ frame = null;
50
+ setState("visible");
51
+ });
52
+ } else if (element && !isVisible)
53
+ queueMicrotask(() => {
54
+ if (scope[name]) {
55
+ delete scope[name];
56
+ flushSync(() => setState("exiting"));
57
+ Promise.all(element.getAnimations().map((a) => a.finished)).then(() => setState("hidden")).catch(() => {
58
+ });
59
+ } else
60
+ setState("hidden");
61
+ });
62
+ return () => {
63
+ if (frame != null) cancelAnimationFrame(frame);
64
+ if (element && element.isConnected && !element.hasAttribute("data-exiting")) {
65
+ let style2 = window.getComputedStyle(element);
66
+ if (style2.transitionProperty !== "none") {
67
+ let transitionProperty = style2.transitionProperty.split(/\s*,\s*/);
68
+ scope[name] = {
69
+ rect: element.getBoundingClientRect(),
70
+ style: transitionProperty.map((p) => [
71
+ p,
72
+ style2[p]
73
+ ])
74
+ };
75
+ }
76
+ }
77
+ };
78
+ }, [
79
+ ref,
80
+ scopeRef,
81
+ name,
82
+ isVisible
83
+ ]);
84
+ let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
85
+ children,
86
+ className,
87
+ style,
88
+ render,
89
+ values: {
90
+ isEntering: state === "entering",
91
+ isExiting: state === "exiting"
92
+ }
93
+ });
94
+ if (state === "hidden") return null;
95
+ return /* @__PURE__ */ React__default.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
96
+ ...divProps,
97
+ ...renderProps,
98
+ ref,
99
+ "data-entering": state === "entering" || void 0,
100
+ "data-exiting": state === "exiting" || void 0
101
+ });
102
+ });
103
+ export {
104
+ $792f28e438b9ad5f$export$758399f318e6385a as $,
105
+ $792f28e438b9ad5f$export$c34620ff8881d89f as a
106
+ };
107
+ //# sourceMappingURL=SharedElementTransition-CJVe1D_I.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SharedElementTransition-BxczX23g.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/SharedElementTransition.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {flushSync as $3Lq00$flushSync} from \"react-dom\";\nimport $3Lq00$react, {createContext as $3Lq00$createContext, useRef as $3Lq00$useRef, forwardRef as $3Lq00$forwardRef, useState as $3Lq00$useState, useContext as $3Lq00$useContext} from \"react\";\nimport {useLayoutEffect as $3Lq00$useLayoutEffect} from \"react-aria/private/utils/useLayoutEffect\";\nimport {useObjectRef as $3Lq00$useObjectRef} from \"react-aria/useObjectRef\";\n\n/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nconst $792f28e438b9ad5f$var$SharedElementContext = /*#__PURE__*/ (0, $3Lq00$createContext)(null);\nfunction $792f28e438b9ad5f$export$758399f318e6385a(props) {\n let ref = (0, $3Lq00$useRef)({});\n return /*#__PURE__*/ (0, $3Lq00$react).createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {\n value: ref\n }, props.children);\n}\nconst $792f28e438b9ad5f$export$c34620ff8881d89f = /*#__PURE__*/ (0, $3Lq00$forwardRef)(function SharedElement(props, ref) {\n let { name: name, isVisible: isVisible = true, children: children, className: className, style: style, render: render, ...divProps } = props;\n let [state, setState] = (0, $3Lq00$useState)(isVisible ? 'visible' : 'hidden');\n let scopeRef = (0, $3Lq00$useContext)($792f28e438b9ad5f$var$SharedElementContext);\n if (!scopeRef) throw new Error('<SharedElement> must be rendered inside a <SharedElementTransition>');\n if (isVisible && state === 'hidden') setState('visible');\n ref = (0, $3Lq00$useObjectRef)(ref);\n (0, $3Lq00$useLayoutEffect)(()=>{\n let element = ref.current;\n let scope = scopeRef.current;\n let prevSnapshot = scope[name];\n let frame = null;\n if (element && isVisible && prevSnapshot) {\n // Element is transitioning from a previous instance.\n setState('visible');\n let animations = element.getAnimations();\n // Set properties to animate from.\n let values = prevSnapshot.style.map(([property, prevValue])=>{\n let value = element.style[property];\n if (property === 'translate') {\n let prevRect = prevSnapshot.rect;\n let currentItem = element.getBoundingClientRect();\n let deltaX = prevRect.left - currentItem?.left;\n let deltaY = prevRect.top - currentItem?.top;\n element.style.translate = `${deltaX}px ${deltaY}px`;\n } else element.style[property] = prevValue;\n return [\n property,\n value\n ];\n });\n // Cancel any new animations triggered by these properties.\n for (let a of element.getAnimations())if (!animations.includes(a)) a.cancel();\n // Remove overrides after one frame to animate to the current values.\n frame = requestAnimationFrame(()=>{\n frame = null;\n for (let [property, value] of values)element.style[property] = value;\n });\n delete scope[name];\n } else if (element && isVisible && !prevSnapshot) {\n // No previous instance exists, apply the entering state.\n queueMicrotask(()=>(0, $3Lq00$flushSync)(()=>setState('entering')));\n frame = requestAnimationFrame(()=>{\n frame = null;\n setState('visible');\n });\n } else if (element && !isVisible) // Wait until layout effects finish, and check if a snapshot still exists.\n // If so, no new SharedElement consumed it, so enter the exiting state.\n queueMicrotask(()=>{\n if (scope[name]) {\n delete scope[name];\n (0, $3Lq00$flushSync)(()=>setState('exiting'));\n Promise.all(element.getAnimations().map((a)=>a.finished)).then(()=>setState('hidden')).catch(()=>{});\n } else // Snapshot was consumed by another instance, unmount.\n setState('hidden');\n });\n return ()=>{\n if (frame != null) cancelAnimationFrame(frame);\n if (element && element.isConnected && !element.hasAttribute('data-exiting')) {\n // On unmount, store a snapshot of the rectangle and computed style for transitioning properties.\n let style = window.getComputedStyle(element);\n if (style.transitionProperty !== 'none') {\n let transitionProperty = style.transitionProperty.split(/\\s*,\\s*/);\n scope[name] = {\n rect: element.getBoundingClientRect(),\n style: transitionProperty.map((p)=>[\n p,\n style[p]\n ])\n };\n }\n }\n };\n }, [\n ref,\n scopeRef,\n name,\n isVisible\n ]);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n children: children,\n className: className,\n style: style,\n render: render,\n values: {\n isEntering: state === 'entering',\n isExiting: state === 'exiting'\n }\n });\n if (state === 'hidden') return null;\n return /*#__PURE__*/ (0, $3Lq00$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...divProps,\n ...renderProps,\n ref: ref,\n \"data-entering\": state === 'entering' || undefined,\n \"data-exiting\": state === 'exiting' || undefined\n });\n});\n\n\nexport {$792f28e438b9ad5f$export$758399f318e6385a as SharedElementTransition, $792f28e438b9ad5f$export$c34620ff8881d89f as SharedElement};\n//# sourceMappingURL=SharedElementTransition.mjs.map\n"],"names":["$3Lq00$createContext","$3Lq00$useRef","$3Lq00$react"],"mappings":";;;AAqBA,MAAM,6CAA+DA,sBAAAA,cAAsB,IAAI;AAC/F,SAAS,0CAA0C,OAAO;AACtD,MAAI,MAAUC,MAAAA,OAAe,EAAE;AAC/B,SAAyBC,sBAAc,cAAc,2CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,EACf,GAAO,MAAM,QAAQ;AACrB;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"SharedElementTransition-CJVe1D_I.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/SharedElementTransition.mjs"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {flushSync as $3Lq00$flushSync} from \"react-dom\";\nimport $3Lq00$react, {createContext as $3Lq00$createContext, useRef as $3Lq00$useRef, forwardRef as $3Lq00$forwardRef, useState as $3Lq00$useState, useContext as $3Lq00$useContext} from \"react\";\nimport {useLayoutEffect as $3Lq00$useLayoutEffect} from \"react-aria/private/utils/useLayoutEffect\";\nimport {useObjectRef as $3Lq00$useObjectRef} from \"react-aria/useObjectRef\";\n\n/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nconst $792f28e438b9ad5f$var$SharedElementContext = /*#__PURE__*/ (0, $3Lq00$createContext)(null);\nfunction $792f28e438b9ad5f$export$758399f318e6385a(props) {\n let ref = (0, $3Lq00$useRef)({});\n return /*#__PURE__*/ (0, $3Lq00$react).createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {\n value: ref\n }, props.children);\n}\nconst $792f28e438b9ad5f$export$c34620ff8881d89f = /*#__PURE__*/ (0, $3Lq00$forwardRef)(function SharedElement(props, ref) {\n let { name: name, isVisible: isVisible = true, children: children, className: className, style: style, render: render, ...divProps } = props;\n let [state, setState] = (0, $3Lq00$useState)(isVisible ? 'visible' : 'hidden');\n let scopeRef = (0, $3Lq00$useContext)($792f28e438b9ad5f$var$SharedElementContext);\n if (!scopeRef) throw new Error('<SharedElement> must be rendered inside a <SharedElementTransition>');\n if (isVisible && state === 'hidden') setState('visible');\n ref = (0, $3Lq00$useObjectRef)(ref);\n (0, $3Lq00$useLayoutEffect)(()=>{\n let element = ref.current;\n let scope = scopeRef.current;\n let prevSnapshot = scope[name];\n let frame = null;\n if (element && isVisible && prevSnapshot) {\n // Element is transitioning from a previous instance.\n setState('visible');\n let animations = element.getAnimations();\n // Set properties to animate from.\n let values = prevSnapshot.style.map(([property, prevValue])=>{\n let value = element.style[property];\n if (property === 'translate') {\n let prevRect = prevSnapshot.rect;\n let currentItem = element.getBoundingClientRect();\n let deltaX = prevRect.left - currentItem?.left;\n let deltaY = prevRect.top - currentItem?.top;\n element.style.translate = `${deltaX}px ${deltaY}px`;\n } else element.style[property] = prevValue;\n return [\n property,\n value\n ];\n });\n // Cancel any new animations triggered by these properties.\n for (let a of element.getAnimations())if (!animations.includes(a)) a.cancel();\n // Remove overrides after one frame to animate to the current values.\n frame = requestAnimationFrame(()=>{\n frame = null;\n for (let [property, value] of values)element.style[property] = value;\n });\n delete scope[name];\n } else if (element && isVisible && !prevSnapshot) {\n // No previous instance exists, apply the entering state.\n queueMicrotask(()=>(0, $3Lq00$flushSync)(()=>setState('entering')));\n frame = requestAnimationFrame(()=>{\n frame = null;\n setState('visible');\n });\n } else if (element && !isVisible) // Wait until layout effects finish, and check if a snapshot still exists.\n // If so, no new SharedElement consumed it, so enter the exiting state.\n queueMicrotask(()=>{\n if (scope[name]) {\n delete scope[name];\n (0, $3Lq00$flushSync)(()=>setState('exiting'));\n Promise.all(element.getAnimations().map((a)=>a.finished)).then(()=>setState('hidden')).catch(()=>{});\n } else // Snapshot was consumed by another instance, unmount.\n setState('hidden');\n });\n return ()=>{\n if (frame != null) cancelAnimationFrame(frame);\n if (element && element.isConnected && !element.hasAttribute('data-exiting')) {\n // On unmount, store a snapshot of the rectangle and computed style for transitioning properties.\n let style = window.getComputedStyle(element);\n if (style.transitionProperty !== 'none') {\n let transitionProperty = style.transitionProperty.split(/\\s*,\\s*/);\n scope[name] = {\n rect: element.getBoundingClientRect(),\n style: transitionProperty.map((p)=>[\n p,\n style[p]\n ])\n };\n }\n }\n };\n }, [\n ref,\n scopeRef,\n name,\n isVisible\n ]);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n children: children,\n className: className,\n style: style,\n render: render,\n values: {\n isEntering: state === 'entering',\n isExiting: state === 'exiting'\n }\n });\n if (state === 'hidden') return null;\n return /*#__PURE__*/ (0, $3Lq00$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...divProps,\n ...renderProps,\n ref: ref,\n \"data-entering\": state === 'entering' || undefined,\n \"data-exiting\": state === 'exiting' || undefined\n });\n});\n\n\nexport {$792f28e438b9ad5f$export$758399f318e6385a as SharedElementTransition, $792f28e438b9ad5f$export$c34620ff8881d89f as SharedElement};\n//# sourceMappingURL=SharedElementTransition.mjs.map\n"],"names":["$3Lq00$createContext","$3Lq00$useRef","$3Lq00$react","$3Lq00$forwardRef","$3Lq00$useState","$3Lq00$useContext","$3Lq00$useObjectRef","$3Lq00$useLayoutEffect","$3Lq00$flushSync","style"],"mappings":";;;AAqBA,MAAM,6CAA+DA,8BAAsB,IAAI;AAC/F,SAAS,0CAA0C,OAAO;AACtD,MAAI,MAAUC,OAAe,EAAE;AAC/B,SAAyBC,+BAAc,cAAc,2CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,EACf,GAAO,MAAM,QAAQ;AACrB;AACK,MAAC,4CAA8DC,2BAAmB,SAAS,cAAc,OAAO,KAAK;AACtH,MAAI,EAAE,MAAY,YAAuB,MAAM,UAAoB,WAAsB,OAAc,QAAgB,GAAG,SAAQ,IAAK;AACvI,MAAI,CAAC,OAAO,QAAQ,IAAQC,SAAiB,YAAY,YAAY,QAAQ;AAC7E,MAAI,WAAeC,WAAmB,0CAA0C;AAChF,MAAI,CAAC,SAAU,OAAM,IAAI,MAAM,qEAAqE;AACpG,MAAI,aAAa,UAAU,SAAU,UAAS,SAAS;AACvD,QAAUC,0CAAqB,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Aa,EAAG,IAAI,CAAC,MAAI,EAAE,QAAQ,CAAC,EAAE,KAAK,MAAI,SAAS,QAAQ,CAAC,EAAE,MAAM,MAAI;AAAA,UAAC,CAAC;AAAA,QACvG;AACA,mBAAS,QAAQ;AAAA,MACrB,CAAC;AACD,WAAO,MAAI;AACP,UAAI,SAAS,KAAM,sBAAqB,KAAK;AAC7C,UAAI,WAAW,QAAQ,eAAe,CAAC,QAAQ,aAAa,cAAc,GAAG;AAEzE,YAAIC,SAAQ,OAAO,iBAAiB,OAAO;AAC3C,YAAIA,OAAM,uBAAuB,QAAQ;AACrC,cAAI,qBAAqBA,OAAM,mBAAmB,MAAM,SAAS;AACjE,gBAAM,IAAI,IAAI;AAAA,YACV,MAAM,QAAQ,sBAAqB;AAAA,YACnC,OAAO,mBAAmB,IAAI,CAAC,MAAI;AAAA,cAC3B;AAAA,cACAA,OAAM,CAAC;AAAA,YACvC,CAA6B;AAAA,UAC7B;AAAA,QACgB;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ,GAAG;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AACD,MAAI,cAAkB,wCAAyC;AAAA,IAC3D;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,MACJ,YAAY,UAAU;AAAA,MACtB,WAAW,UAAU;AAAA,IACjC;AAAA,EACA,CAAK;AACD,MAAI,UAAU,SAAU,QAAO;AAC/B,SAAyBP,+BAAc,cAAkB,0CAA2C,KAAK;AAAA,IACrG,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,IACA,iBAAiB,UAAU,cAAc;AAAA,IACzC,gBAAgB,UAAU,aAAa;AAAA,EAC/C,CAAK;AACL,CAAC;","x_google_ignoreList":[0]}
@@ -1,42 +1,7 @@
1
1
  "use strict";
2
- const React = require("react");
3
2
  const utils = require("./utils-DvHk9ofL.js");
4
- const useHover = require("./useHover-COOv7KTv.js");
5
- const $3e6197669829fe11$var$useEarlyEffect = typeof document !== "undefined" || parseInt(React.version, 10) >= 19 ? React["useInsertionEffect"] ?? React.useLayoutEffect : () => {
6
- };
7
- function $3e6197669829fe11$export$40bfa8c7b0832715(value, defaultValue, onChange) {
8
- let [stateValue, setStateValue] = React.useState(value || defaultValue);
9
- let valueRef = React.useRef(stateValue);
10
- let isControlledRef = React.useRef(value !== void 0);
11
- let isControlled = value !== void 0;
12
- React.useEffect(() => {
13
- let wasControlled = isControlledRef.current;
14
- if (wasControlled !== isControlled && process.env.NODE_ENV !== "production") ;
15
- isControlledRef.current = isControlled;
16
- }, [
17
- isControlled
18
- ]);
19
- let currentValue = isControlled ? value : stateValue;
20
- $3e6197669829fe11$var$useEarlyEffect(() => {
21
- valueRef.current = currentValue;
22
- });
23
- let [, forceUpdate] = React.useReducer(() => ({}), {});
24
- let setValue = React.useCallback((value2, ...args) => {
25
- let newValue = typeof value2 === "function" ? value2(valueRef.current) : value2;
26
- if (!Object.is(valueRef.current, newValue)) {
27
- valueRef.current = newValue;
28
- setStateValue(newValue);
29
- forceUpdate();
30
- onChange?.(newValue, ...args);
31
- }
32
- }, [
33
- onChange
34
- ]);
35
- return [
36
- currentValue,
37
- setValue
38
- ];
39
- }
3
+ const useHover = require("./useHover-D9f9xyxz.js");
4
+ const React = require("react");
40
5
  const $ea3928288112382f$var$styles = {
41
6
  border: 0,
42
7
  clip: "rect(0 0 0 0)",
@@ -79,7 +44,6 @@ function $ea3928288112382f$export$439d29a4e110a164(props) {
79
44
  let { visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);
80
45
  return /* @__PURE__ */ React.createElement(Element, utils.$bbaa08b3cd72f041$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children);
81
46
  }
82
- exports.$3e6197669829fe11$export$40bfa8c7b0832715 = $3e6197669829fe11$export$40bfa8c7b0832715;
83
47
  exports.$ea3928288112382f$export$439d29a4e110a164 = $ea3928288112382f$export$439d29a4e110a164;
84
48
  exports.$ea3928288112382f$export$a966af930f325cab = $ea3928288112382f$export$a966af930f325cab;
85
- //# sourceMappingURL=VisuallyHidden-CiBoSB1U.js.map
49
+ //# sourceMappingURL=VisuallyHidden-CTe1-RoI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisuallyHidden-CTe1-RoI.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs"],"sourcesContent":["import {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusWithin as $2c9edc598a03d523$export$420e68273165f4ec} from \"../interactions/useFocusWithin.mjs\";\nimport $48drk$react, {useState as $48drk$useState, useMemo as $48drk$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $ea3928288112382f$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $ea3928288112382f$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $48drk$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $2c9edc598a03d523$export$420e68273165f4ec)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $48drk$useMemo)(()=>{\n if (isFocused) // oxlint-disable-next-line react/react-compiler\n return style;\n else if (style) return {\n ...$ea3928288112382f$var$styles,\n ...style\n };\n else return $ea3928288112382f$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $ea3928288112382f$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $48drk$react).createElement(Element, (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$ea3928288112382f$export$a966af930f325cab as useVisuallyHidden, $ea3928288112382f$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.mjs.map\n"],"names":["$48drk$useState","$2c9edc598a03d523$export$420e68273165f4ec","$48drk$useMemo","$48drk$react","$bbaa08b3cd72f041$export$9d1611c77c2fe928"],"mappings":";;;;AAiBA,MAAM,+BAA+B;AAAA,EACjC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAChB;AACA,SAAS,0CAA0C,QAAQ,IAAI;AAC3D,MAAI,EAAE,OAAc,YAAwB,IAAK;AACjD,MAAI,CAAC,WAAW,UAAU,IAAQA,MAAAA,SAAiB,KAAK;AACxD,MAAI,EAAE,iBAAkC,IAASC,SAAAA,0CAA2C;AAAA,IACxF,YAAY,CAAC;AAAA,IACb,qBAAqB,CAAC,QAAM,WAAW,GAAG;AAAA,EAClD,CAAK;AAED,MAAI,iBAAqBC,MAAAA,QAAgB,MAAI;AACzC,QAAI;AACJ,aAAO;AAAA,aACE,MAAO,QAAO;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,IACf;AAAA,QACa,QAAO;AAAA,EAEhB,GAAG;AAAA,IACC;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,qBAAqB;AAAA,MACjB,GAAG;AAAA,MACH,OAAO;AAAA,IACnB;AAAA,EACA;AACA;AACA,SAAS,0CAA0C,OAAO;AAEtD,MAAI,EAAE,UAAoB,aAAa,UAAU,OAAO,aAA0B,OAAc,GAAG,WAAU,IAAK;AAClH,MAAI,EAAE,wBAA6C,0CAA0C,KAAK;AAClG,SAAyBC,sBAAc,cAAc,SAAaC,MAAAA,0CAA2C,YAAY,mBAAmB,GAAG,QAAQ;AAC3J;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,50 @@
1
+ import { d as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-BCEhcDlv.js";
2
+ import { d as $2c9edc598a03d523$export$420e68273165f4ec } from "./useHover-BHCSbkLb.js";
3
+ import React__default, { useState, useMemo } from "react";
4
+ const $ea3928288112382f$var$styles = {
5
+ border: 0,
6
+ clip: "rect(0 0 0 0)",
7
+ clipPath: "inset(50%)",
8
+ height: "1px",
9
+ margin: "-1px",
10
+ overflow: "hidden",
11
+ padding: 0,
12
+ position: "absolute",
13
+ width: "1px",
14
+ whiteSpace: "nowrap"
15
+ };
16
+ function $ea3928288112382f$export$a966af930f325cab(props = {}) {
17
+ let { style, isFocusable } = props;
18
+ let [isFocused, setFocused] = useState(false);
19
+ let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec({
20
+ isDisabled: !isFocusable,
21
+ onFocusWithinChange: (val) => setFocused(val)
22
+ });
23
+ let combinedStyles = useMemo(() => {
24
+ if (isFocused)
25
+ return style;
26
+ else if (style) return {
27
+ ...$ea3928288112382f$var$styles,
28
+ ...style
29
+ };
30
+ else return $ea3928288112382f$var$styles;
31
+ }, [
32
+ isFocused
33
+ ]);
34
+ return {
35
+ visuallyHiddenProps: {
36
+ ...focusWithinProps,
37
+ style: combinedStyles
38
+ }
39
+ };
40
+ }
41
+ function $ea3928288112382f$export$439d29a4e110a164(props) {
42
+ let { children, elementType: Element = "div", isFocusable, style, ...otherProps } = props;
43
+ let { visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);
44
+ return /* @__PURE__ */ React__default.createElement(Element, $bbaa08b3cd72f041$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children);
45
+ }
46
+ export {
47
+ $ea3928288112382f$export$439d29a4e110a164 as $,
48
+ $ea3928288112382f$export$a966af930f325cab as a
49
+ };
50
+ //# sourceMappingURL=VisuallyHidden-DPJuOMsW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisuallyHidden-DPJuOMsW.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs"],"sourcesContent":["import {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusWithin as $2c9edc598a03d523$export$420e68273165f4ec} from \"../interactions/useFocusWithin.mjs\";\nimport $48drk$react, {useState as $48drk$useState, useMemo as $48drk$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $ea3928288112382f$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $ea3928288112382f$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $48drk$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $2c9edc598a03d523$export$420e68273165f4ec)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $48drk$useMemo)(()=>{\n if (isFocused) // oxlint-disable-next-line react/react-compiler\n return style;\n else if (style) return {\n ...$ea3928288112382f$var$styles,\n ...style\n };\n else return $ea3928288112382f$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $ea3928288112382f$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $48drk$react).createElement(Element, (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$ea3928288112382f$export$a966af930f325cab as useVisuallyHidden, $ea3928288112382f$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.mjs.map\n"],"names":["$48drk$useState","$48drk$useMemo","$48drk$react"],"mappings":";;;AAiBA,MAAM,+BAA+B;AAAA,EACjC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAChB;AACA,SAAS,0CAA0C,QAAQ,IAAI;AAC3D,MAAI,EAAE,OAAc,YAAwB,IAAK;AACjD,MAAI,CAAC,WAAW,UAAU,IAAQA,SAAiB,KAAK;AACxD,MAAI,EAAE,iBAAkC,IAAS,0CAA2C;AAAA,IACxF,YAAY,CAAC;AAAA,IACb,qBAAqB,CAAC,QAAM,WAAW,GAAG;AAAA,EAClD,CAAK;AAED,MAAI,iBAAqBC,QAAgB,MAAI;AACzC,QAAI;AACJ,aAAO;AAAA,aACE,MAAO,QAAO;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,IACf;AAAA,QACa,QAAO;AAAA,EAEhB,GAAG;AAAA,IACC;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,qBAAqB;AAAA,MACjB,GAAG;AAAA,MACH,OAAO;AAAA,IACnB;AAAA,EACA;AACA;AACA,SAAS,0CAA0C,OAAO;AAEtD,MAAI,EAAE,UAAoB,aAAa,UAAU,OAAO,aAA0B,OAAc,GAAG,WAAU,IAAK;AAClH,MAAI,EAAE,wBAA6C,0CAA0C,KAAK;AAClG,SAAyBC,+BAAc,cAAc,SAAa,0CAA2C,YAAY,mBAAmB,GAAG,QAAQ;AAC3J;","x_google_ignoreList":[0]}
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import React__default, { createContext, Children, useContext, isValidElement } from "react";
4
4
  import { t as tv } from "./tv-CBcwbOk5.js";
5
- import { c as composeSlotClassName } from "./compose-Ch-3fhek.js";
5
+ import { c as composeSlotClassName } from "./compose-DOOi0Yan.js";
6
6
  const buttonGroupVariants = tv({
7
7
  defaultVariants: {
8
8
  fullWidth: false,
@@ -199,4 +199,4 @@ export {
199
199
  ButtonGroupContext as c,
200
200
  buttonGroupVariants as d
201
201
  };
202
- //# sourceMappingURL=button-group-CGyXDmwt.js.map
202
+ //# sourceMappingURL=button-group-DJ5IdBp6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group-CGyXDmwt.js","sources":["../../src/components/button-group/button-group.styles.ts","../../src/components/button-group/button-group.tsx"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonGroupVariants = tv(\n\t{\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\torientation: \"horizontal\",\n\t\t},\n\t\tslots: {\n\t\t\tbase: \"button-group-v2\",\n\t\t\tseparator: \"button-group-v2__separator\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: {},\n\t\t\t\ttrue: {\n\t\t\t\t\tbase: \"button-group-v2--full-width\",\n\t\t\t\t},\n\t\t\t},\n\t\t\torientation: {\n\t\t\t\thorizontal: {\n\t\t\t\t\tbase: \"button-group-v2--horizontal\",\n\t\t\t\t},\n\t\t\t\tvertical: {\n\t\t\t\t\tbase: \"button-group-v2--vertical\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;\n","\"use client\";\n\nimport type { ComponentPropsWithRef } from \"react\";\nimport type { ButtonV2RootProps } from \"../button-v2/button-v2\";\nimport type { ButtonGroupVariants } from \"./button-group.styles\";\n\nimport React, { Children, createContext, isValidElement, useContext, useMemo } from \"react\";\nimport { buttonGroupVariants } from \"./button-group.styles\";\n\nimport { composeSlotClassName } from \"../button-v2/compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Context\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonGroupContext = {\n\tslots?: ReturnType<typeof buttonGroupVariants>;\n\tsize?: ButtonV2RootProps[\"size\"];\n\tvariant?: ButtonV2RootProps[\"variant\"];\n\tisDisabled?: ButtonV2RootProps[\"isDisabled\"];\n\tfullWidth?: ButtonV2RootProps[\"fullWidth\"];\n};\n\nconst ButtonGroupContext = createContext<ButtonGroupContext>({});\n\n// Property name to mark direct children of ButtonGroup\nexport const BUTTON_GROUP_CHILD = \"__button_group_child\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupRootProps\n\textends Omit<ComponentPropsWithRef<\"div\">, \"className\">, Pick<ButtonV2RootProps, \"size\" | \"variant\">, ButtonGroupVariants {\n\t/** The orientation of the button group */\n\torientation?: \"horizontal\" | \"vertical\";\n\t/** Whether all buttons in the group are disabled */\n\tisDisabled?: boolean;\n\t/** Custom className */\n\tclassName?: string;\n}\n\nconst ButtonGroupRoot = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\torientation = \"horizontal\",\n\tsize,\n\tvariant,\n\t...rest\n}: ButtonGroupRootProps) => {\n\tconst slots = useMemo(() => buttonGroupVariants({ fullWidth, orientation }), [fullWidth, orientation]);\n\n\t// Wrap only direct children with context provider\n\tconst wrappedChildren = Children.map(children as React.ReactNode, (child) => {\n\t\tif (!isValidElement(child)) {\n\t\t\treturn child;\n\t\t}\n\n\t\t// Clone the child and add the special prop\n\t\treturn React.cloneElement(child, {\n\t\t\t[BUTTON_GROUP_CHILD]: true,\n\t\t} as any);\n\t});\n\n\treturn (\n\t\t<ButtonGroupContext value={{ slots, size, variant, isDisabled, fullWidth }}>\n\t\t\t<div role=\"group\" className={composeSlotClassName(slots.base, className)} data-slot=\"button-group\" {...rest}>\n\t\t\t\t{wrappedChildren}\n\t\t\t</div>\n\t\t</ButtonGroupContext>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Separator\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupSeparatorProps extends ComponentPropsWithRef<\"span\"> {\n\tclassName?: string;\n}\n\nconst ButtonGroupSeparator = ({ className, ...props }: ButtonGroupSeparatorProps) => {\n\tconst { slots } = useContext(ButtonGroupContext);\n\n\treturn <span aria-hidden=\"true\" className={composeSlotClassName(slots?.separator, className)} data-slot=\"button-group-separator\" {...props} />;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonGroupContext, ButtonGroupRoot, ButtonGroupSeparator };\n\nexport type { ButtonGroupRootProps, ButtonGroupSeparatorProps };\n"],"names":["buttonGroupVariants","tv","defaultVariants","fullWidth","orientation","slots","base","separator","variants","false","true","horizontal","vertical","twMerge","ButtonGroupContext","createContext","BUTTON_GROUP_CHILD","ButtonGroupRoot","t0","$","_c","children","className","isDisabled","rest","size","t1","variant","undefined","t2","t3","Children","map","_temp","wrappedChildren","t4","t5","composeSlotClassName","t6","t7","ButtonGroupSeparator","props","useContext","child","isValidElement","React","cloneElement"],"mappings":";;;;;AAIO,MAAMA,sBAAsBC,GAClC;AAAA,EACCC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,aAAa;AAAA,EAAA;AAAA,EAEdC,OAAO;AAAA,IACNC,MAAM;AAAA,IACNC,WAAW;AAAA,EAAA;AAAA,EAEZC,UAAU;AAAA,IACTL,WAAW;AAAA,MACVM,OAAO,CAAA;AAAA,MACPC,MAAM;AAAA,QACLJ,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,IAEDF,aAAa;AAAA,MACZO,YAAY;AAAA,QACXL,MAAM;AAAA,MAAA;AAAA,MAEPM,UAAU;AAAA,QACTN,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,EACD;AAEF,GACA;AAAA,EAAEO,SAAS;AAAM,CAClB;ACVA,MAAMC,qBAAqBC,cAAkC,CAAA,CAAE;AAGxD,MAAMC,qBAAqB;AAelC,MAAMC,kBAAkBC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAnB;AAAA,MAAAoB;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAR,SAAAD,IAAA;AAAC,KAAA;AAAA,MAAAG;AAAAA,MAAAC;AAAAA,MAAAnB;AAAAA,MAAAoB;AAAAA,MAAAnB,aAAAsB;AAAAA,MAAAD;AAAAA,MAAAE;AAAAA,MAAA,GAAAH;AAAAA,IA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B,EAAA,CAAA;AAAA,EAAA;AAC/E,QAAA;AAAA,IAAAd;AAAAA,EAAAA,IAAkBqC,WAAW5B,kBAAkB;AAEiB,QAAAY,KAAArB,OAAKE;AAAW,MAAAsB;AAAA,MAAAV,EAAA,CAAA,MAAAG,aAAAH,SAAAO,IAAA;AAArCG,SAAAQ,qBAAqBX,IAAkBJ,SAAS;AAACH,WAAAG;AAAAH,WAAAO;AAAAP,WAAAU;AAAAA,EAAA,OAAA;AAAAA,SAAAV,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAW;AAAA,MAAAX,EAAA,CAAA,MAAAsB,SAAAtB,SAAAU,IAAA;AAArFC,uCAAkB,eAAA,QAAkB,WAAAD,IAA6D,aAAA,0BAAwB,GAAKY,MAAAA,CAAK;AAAItB,WAAAsB;AAAAtB,WAAAU;AAAAV,WAAAW;AAAAA,EAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AAAA,SAAvIW;AAAuI;AA3CvH,SAAAG,MAAAU,OAAA;AActB,MAAI,CAACC,eAAeD,KAAK,GAAC;AAAA,WAClBA;AAAAA,EAAK;AACZ,SAGME,eAAKC,aAAcH,OAAO;AAAA,IAAA,CAC/B3B,kBAAkB,GAAG;AAAA,EAAA,CACf;AAAC;"}
1
+ {"version":3,"file":"button-group-DJ5IdBp6.js","sources":["../../src/components/button-group/button-group.styles.ts","../../src/components/button-group/button-group.tsx"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonGroupVariants = tv(\n\t{\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\torientation: \"horizontal\",\n\t\t},\n\t\tslots: {\n\t\t\tbase: \"button-group-v2\",\n\t\t\tseparator: \"button-group-v2__separator\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: {},\n\t\t\t\ttrue: {\n\t\t\t\t\tbase: \"button-group-v2--full-width\",\n\t\t\t\t},\n\t\t\t},\n\t\t\torientation: {\n\t\t\t\thorizontal: {\n\t\t\t\t\tbase: \"button-group-v2--horizontal\",\n\t\t\t\t},\n\t\t\t\tvertical: {\n\t\t\t\t\tbase: \"button-group-v2--vertical\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;\n","\"use client\";\n\nimport type { ComponentPropsWithRef } from \"react\";\nimport type { ButtonV2RootProps } from \"../button-v2/button-v2\";\nimport type { ButtonGroupVariants } from \"./button-group.styles\";\n\nimport React, { Children, createContext, isValidElement, useContext, useMemo } from \"react\";\nimport { buttonGroupVariants } from \"./button-group.styles\";\n\nimport { composeSlotClassName } from \"../button-v2/compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Context\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonGroupContext = {\n\tslots?: ReturnType<typeof buttonGroupVariants>;\n\tsize?: ButtonV2RootProps[\"size\"];\n\tvariant?: ButtonV2RootProps[\"variant\"];\n\tisDisabled?: ButtonV2RootProps[\"isDisabled\"];\n\tfullWidth?: ButtonV2RootProps[\"fullWidth\"];\n};\n\nconst ButtonGroupContext = createContext<ButtonGroupContext>({});\n\n// Property name to mark direct children of ButtonGroup\nexport const BUTTON_GROUP_CHILD = \"__button_group_child\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupRootProps\n\textends Omit<ComponentPropsWithRef<\"div\">, \"className\">, Pick<ButtonV2RootProps, \"size\" | \"variant\">, ButtonGroupVariants {\n\t/** The orientation of the button group */\n\torientation?: \"horizontal\" | \"vertical\";\n\t/** Whether all buttons in the group are disabled */\n\tisDisabled?: boolean;\n\t/** Custom className */\n\tclassName?: string;\n}\n\nconst ButtonGroupRoot = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\torientation = \"horizontal\",\n\tsize,\n\tvariant,\n\t...rest\n}: ButtonGroupRootProps) => {\n\tconst slots = useMemo(() => buttonGroupVariants({ fullWidth, orientation }), [fullWidth, orientation]);\n\n\t// Wrap only direct children with context provider\n\tconst wrappedChildren = Children.map(children as React.ReactNode, (child) => {\n\t\tif (!isValidElement(child)) {\n\t\t\treturn child;\n\t\t}\n\n\t\t// Clone the child and add the special prop\n\t\treturn React.cloneElement(child, {\n\t\t\t[BUTTON_GROUP_CHILD]: true,\n\t\t} as any);\n\t});\n\n\treturn (\n\t\t<ButtonGroupContext value={{ slots, size, variant, isDisabled, fullWidth }}>\n\t\t\t<div role=\"group\" className={composeSlotClassName(slots.base, className)} data-slot=\"button-group\" {...rest}>\n\t\t\t\t{wrappedChildren}\n\t\t\t</div>\n\t\t</ButtonGroupContext>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonGroup Separator\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonGroupSeparatorProps extends ComponentPropsWithRef<\"span\"> {\n\tclassName?: string;\n}\n\nconst ButtonGroupSeparator = ({ className, ...props }: ButtonGroupSeparatorProps) => {\n\tconst { slots } = useContext(ButtonGroupContext);\n\n\treturn <span aria-hidden=\"true\" className={composeSlotClassName(slots?.separator, className)} data-slot=\"button-group-separator\" {...props} />;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonGroupContext, ButtonGroupRoot, ButtonGroupSeparator };\n\nexport type { ButtonGroupRootProps, ButtonGroupSeparatorProps };\n"],"names":["buttonGroupVariants","tv","defaultVariants","fullWidth","orientation","slots","base","separator","variants","false","true","horizontal","vertical","twMerge","ButtonGroupContext","createContext","BUTTON_GROUP_CHILD","ButtonGroupRoot","t0","$","_c","children","className","isDisabled","rest","size","t1","variant","undefined","t2","t3","Children","map","_temp","wrappedChildren","t4","t5","composeSlotClassName","t6","t7","ButtonGroupSeparator","props","useContext","child","isValidElement","React","cloneElement"],"mappings":";;;;;AAIO,MA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MAAAX,EAAA,CAAA,MAAAsB,SAAAtB,SAAAU,IAAA;AAArFC,uCAAkB,eAAA,QAAkB,WAAAD,IAA6D,aAAA,0BAAwB,GAAKY,MAAAA,CAAK;AAAItB,WAAAsB;AAAAtB,WAAAU;AAAAV,WAAAW;AAAAA,EAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AAAA,SAAvIW;AAAuI;AA3CvH,SAAAG,MAAAU,OAAA;AActB,MAAI,CAACC,eAAeD,KAAK,GAAC;AAAA,WAClBA;AAAAA,EAAK;AACZ,SAGME,eAAKC,aAAcH,OAAO;AAAA,IAAA,CAC/B3B,kBAAkB,GAAG;AAAA,EAAA,CACf;AAAC;"}
@@ -1,4 +1,4 @@
1
- import { e as $7230ffa83bc0c2cf$export$c245e6201fed2f75 } from "./utils-B3shU_E6.js";
1
+ import { e as $7230ffa83bc0c2cf$export$c245e6201fed2f75 } from "./utils-BCEhcDlv.js";
2
2
  import { cx } from "tailwind-variants";
3
3
  function composeTwRenderProps(className, tailwind) {
4
4
  return $7230ffa83bc0c2cf$export$c245e6201fed2f75(className, (className2, renderProps) => {
@@ -17,4 +17,4 @@ export {
17
17
  composeTwRenderProps as a,
18
18
  composeSlotClassName as c
19
19
  };
20
- //# sourceMappingURL=compose-Ch-3fhek.js.map
20
+ //# sourceMappingURL=compose-DOOi0Yan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compose-Ch-3fhek.js","sources":["../../src/components/button-v2/compose.ts"],"sourcesContent":["import { composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\n\nexport function composeTwRenderProps<T>(\n\tclassName: string | ((v: T) => string) | undefined,\n\ttailwind?: string | ((v: T) => string | undefined),\n): string | ((v: T) => string) {\n\treturn composeRenderProps(className, (className, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = className ?? \"\";\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nexport const composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n"],"names":["composeTwRenderProps","className","tailwind","composeRenderProps","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants"],"mappings":";;AAGO,SAASA,qBACfC,WACAC,UAC8B;AAC9B,SAAOC,0CAAmBF,WAAW,CAACA,YAAWG,gBAAwB;AACxE,UAAMC,KAAK,OAAOH,aAAa,aAAcA,SAASE,WAAW,KAAK,KAAOF,YAAY;AACzF,UAAMI,MAAML,cAAa;AACzB,WAAOM,GAAGF,IAAIC,GAAG,KAAK;AAAA,EACvB,CAAC;AACF;AAEO,MAAME,uBAAuBA,CACnCC,QACAR,WACAS,aACwB;AACxB,SAAO,OAAOD,WAAW,aAAaA,OAAO;AAAA,IAAE,GAAgB,CAAA;AAAA,IAAKR;AAAAA,EAAAA,CAAW,IAAIA;AACpF;"}
1
+ {"version":3,"file":"compose-DOOi0Yan.js","sources":["../../src/components/button-v2/compose.ts"],"sourcesContent":["import { composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\n\nexport function composeTwRenderProps<T>(\n\tclassName: string | ((v: T) => string) | undefined,\n\ttailwind?: string | ((v: T) => string | undefined),\n): string | ((v: T) => string) {\n\treturn composeRenderProps(className, (className, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = className ?? \"\";\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nexport const composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n"],"names":["composeTwRenderProps","className","tailwind","composeRenderProps","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants"],"mappings":";;AAGO,SAASA,qBACfC,WACAC,UAC8B;AAC9B,SAAOC,0CAAmBF,WAAW,CAACA,YAAWG,gBAAwB;AACxE,UAAMC,KAAK,OAAOH,aAAa,aAAcA,SAASE,WAAW,KAAK,KAAOF,YAAY;AACzF,UAAMI,MAAML,cAAa;AACzB,WAAOM,GAAGF,IAAIC,GAAG,KAAK;AAAA,EACvB,CAAC;AACF;AAEO,MAAME,uBAAuBA,CACnCC,QACAR,WACAS,aACwB;AACxB,SAAO,OAAOD,WAAW,aAAaA,OAAO;AAAA,IAAE,GAAgB,CAAA;AAAA,IAAKR;AAAAA,EAAAA,CAAW,IAAIA;AACpF;"}