lizaui 10.0.49 → 10.0.52

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 (114) hide show
  1. package/dist/button-group/index.cjs.js +1 -1
  2. package/dist/button-group/index.es.js +2 -2
  3. package/dist/button-v2/index.cjs.js +4 -3
  4. package/dist/button-v2/index.cjs.js.map +1 -1
  5. package/dist/button-v2/index.es.js +3 -2
  6. package/dist/button-v2/index.es.js.map +1 -1
  7. package/dist/chunks/{Button-Dsh7R-oX.js → Button-DdN0ubzW.js} +4 -4
  8. package/dist/chunks/{Button-Dsh7R-oX.js.map → Button-DdN0ubzW.js.map} +1 -1
  9. package/dist/chunks/{Button-C0-RVnrA.js → Button-aderR-2u.js} +4 -4
  10. package/dist/chunks/{Button-C0-RVnrA.js.map → Button-aderR-2u.js.map} +1 -1
  11. package/dist/chunks/Label-CSmRiAOy.js +49 -0
  12. package/dist/chunks/Label-CSmRiAOy.js.map +1 -0
  13. package/dist/chunks/Label-T_ViIqMZ.js +48 -0
  14. package/dist/chunks/Label-T_ViIqMZ.js.map +1 -0
  15. package/dist/chunks/SelectionIndicator-DvQlqitV.js +758 -0
  16. package/dist/chunks/SelectionIndicator-DvQlqitV.js.map +1 -0
  17. package/dist/chunks/SelectionIndicator-DxCsECgs.js +759 -0
  18. package/dist/chunks/SelectionIndicator-DxCsECgs.js.map +1 -0
  19. package/dist/chunks/{VisuallyHidden-COrd12qH.js → VisuallyHidden-CRMo1zLW.js} +3 -3
  20. package/dist/chunks/{VisuallyHidden-COrd12qH.js.map → VisuallyHidden-CRMo1zLW.js.map} +1 -1
  21. package/dist/chunks/{VisuallyHidden-DF25vRLz.js → VisuallyHidden-DxL2gjic.js} +3 -3
  22. package/dist/chunks/{VisuallyHidden-DF25vRLz.js.map → VisuallyHidden-DxL2gjic.js.map} +1 -1
  23. package/dist/chunks/{button-group-DjqguHq3.js → button-group-DSmnyr9N.js} +4 -19
  24. package/dist/chunks/button-group-DSmnyr9N.js.map +1 -0
  25. package/dist/chunks/{button-group-BTVWVcEG.js → button-group-DvhBi6Lg.js} +3 -18
  26. package/dist/chunks/button-group-DvhBi6Lg.js.map +1 -0
  27. package/dist/chunks/compose-BAW756h2.js +20 -0
  28. package/dist/chunks/compose-BAW756h2.js.map +1 -0
  29. package/dist/chunks/compose-C8aAEsRP.js +19 -0
  30. package/dist/chunks/compose-C8aAEsRP.js.map +1 -0
  31. package/dist/chunks/context-B-8aWyYY.js +95 -0
  32. package/dist/chunks/context-B-8aWyYY.js.map +1 -0
  33. package/dist/chunks/context-oeiEaT4j.js +96 -0
  34. package/dist/chunks/context-oeiEaT4j.js.map +1 -0
  35. package/dist/chunks/radio-group-Bl1xmXrP.js +761 -0
  36. package/dist/chunks/radio-group-Bl1xmXrP.js.map +1 -0
  37. package/dist/chunks/radio-group-CCyvXDSv.js +760 -0
  38. package/dist/chunks/radio-group-CCyvXDSv.js.map +1 -0
  39. package/dist/chunks/{useFocusRing-DFly-l-g.js → useFocusRing-BNfEYIMH.js} +35 -35
  40. package/dist/chunks/{useFocusRing-DFly-l-g.js.map → useFocusRing-BNfEYIMH.js.map} +1 -1
  41. package/dist/chunks/{useFocusRing-DH6-ymf9.js → useFocusRing-CwfE0JXl.js} +2 -2
  42. package/dist/chunks/{useFocusRing-DH6-ymf9.js.map → useFocusRing-CwfE0JXl.js.map} +1 -1
  43. package/dist/chunks/{useFormReset-DW_ijBSV.js → useFormReset-D8TXu53Y.js} +2 -2
  44. package/dist/chunks/{useFormReset-DW_ijBSV.js.map → useFormReset-D8TXu53Y.js.map} +1 -1
  45. package/dist/chunks/{useFormReset-ZB95vRmT.js → useFormReset-X1nnvh3g.js} +2 -2
  46. package/dist/chunks/{useFormReset-ZB95vRmT.js.map → useFormReset-X1nnvh3g.js.map} +1 -1
  47. package/dist/chunks/{useMove-KAH1a5_O.js → useMove-DFDV8VoD.js} +3 -94
  48. package/dist/chunks/useMove-DFDV8VoD.js.map +1 -0
  49. package/dist/chunks/{useMove-5_TrLveR.js → useMove-TZew7CPz.js} +5 -96
  50. package/dist/chunks/useMove-TZew7CPz.js.map +1 -0
  51. package/dist/chunks/{usePress-DD9Ac1Tu.js → usePress-CZNWH-HG.js} +3 -3
  52. package/dist/chunks/{usePress-DD9Ac1Tu.js.map → usePress-CZNWH-HG.js.map} +1 -1
  53. package/dist/chunks/{usePress-zwQ6-tiU.js → usePress-DH-8bL_r.js} +3 -3
  54. package/dist/chunks/{usePress-zwQ6-tiU.js.map → usePress-DH-8bL_r.js.map} +1 -1
  55. package/dist/chunks/{utils-5jY_THv2.js → utils-BmiPcRjW.js} +50 -1
  56. package/dist/chunks/utils-BmiPcRjW.js.map +1 -0
  57. package/dist/chunks/{utils-CrM80n1D.js → utils-BnifjggO.js} +59 -10
  58. package/dist/chunks/utils-BnifjggO.js.map +1 -0
  59. package/dist/components/index.d.ts +4 -0
  60. package/dist/components/index.d.ts.map +1 -1
  61. package/dist/components/pagination/pagination.d.ts.map +1 -1
  62. package/dist/components/radio/index.d.ts +20 -0
  63. package/dist/components/radio/index.d.ts.map +1 -0
  64. package/dist/components/radio/radio.d.ts +20 -0
  65. package/dist/components/radio/radio.d.ts.map +1 -0
  66. package/dist/components/radio/radio.styles.d.ts +190 -0
  67. package/dist/components/radio/radio.styles.d.ts.map +1 -0
  68. package/dist/components/radio-group/index.d.ts +14 -0
  69. package/dist/components/radio-group/index.d.ts.map +1 -0
  70. package/dist/components/radio-group/radio-group.d.ts +15 -0
  71. package/dist/components/radio-group/radio-group.d.ts.map +1 -0
  72. package/dist/components/radio-group/radio-group.styles.d.ts +58 -0
  73. package/dist/components/radio-group/radio-group.styles.d.ts.map +1 -0
  74. package/dist/components/ui/confirmation.d.ts +2 -1
  75. package/dist/components/ui/confirmation.d.ts.map +1 -1
  76. package/dist/data-table/index.cjs.js +33 -779
  77. package/dist/data-table/index.cjs.js.map +1 -1
  78. package/dist/data-table/index.es.js +9 -755
  79. package/dist/data-table/index.es.js.map +1 -1
  80. package/dist/index.cjs.js +14 -2
  81. package/dist/index.cjs.js.map +1 -1
  82. package/dist/index.es.js +14 -2
  83. package/dist/index.es.js.map +1 -1
  84. package/dist/pagination/index.cjs.js +47 -47
  85. package/dist/pagination/index.cjs.js.map +1 -1
  86. package/dist/pagination/index.es.js +47 -47
  87. package/dist/pagination/index.es.js.map +1 -1
  88. package/dist/radio/index.cjs.js +333 -0
  89. package/dist/radio/index.cjs.js.map +1 -0
  90. package/dist/radio/index.es.js +333 -0
  91. package/dist/radio/index.es.js.map +1 -0
  92. package/dist/radio-group/index.cjs.js +10 -0
  93. package/dist/radio-group/index.cjs.js.map +1 -0
  94. package/dist/radio-group/index.es.js +11 -0
  95. package/dist/radio-group/index.es.js.map +1 -0
  96. package/dist/radio-group.d.ts +2 -0
  97. package/dist/radio.d.ts +2 -0
  98. package/dist/slider/index.cjs.js +14 -54
  99. package/dist/slider/index.cjs.js.map +1 -1
  100. package/dist/slider/index.es.js +8 -48
  101. package/dist/slider/index.es.js.map +1 -1
  102. package/dist/toggle-switch/index.cjs.js +5 -5
  103. package/dist/toggle-switch/index.es.js +5 -5
  104. package/dist/ui/index.cjs.js +71 -67
  105. package/dist/ui/index.cjs.js.map +1 -1
  106. package/dist/ui/index.es.js +71 -67
  107. package/dist/ui/index.es.js.map +1 -1
  108. package/package.json +12 -2
  109. package/dist/chunks/button-group-BTVWVcEG.js.map +0 -1
  110. package/dist/chunks/button-group-DjqguHq3.js.map +0 -1
  111. package/dist/chunks/useMove-5_TrLveR.js.map +0 -1
  112. package/dist/chunks/useMove-KAH1a5_O.js.map +0 -1
  113. package/dist/chunks/utils-5jY_THv2.js.map +0 -1
  114. package/dist/chunks/utils-CrM80n1D.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const buttonGroup = require("../chunks/button-group-DjqguHq3.js");
3
+ const buttonGroup = require("../chunks/button-group-DSmnyr9N.js");
4
4
  const ButtonGroup = Object.assign(buttonGroup.ButtonGroupRoot, {
5
5
  Root: buttonGroup.ButtonGroupRoot,
6
6
  Separator: buttonGroup.ButtonGroupSeparator
@@ -1,5 +1,5 @@
1
- import { B as ButtonGroupRoot, a as ButtonGroupSeparator } from "../chunks/button-group-BTVWVcEG.js";
2
- import { b, c, d } from "../chunks/button-group-BTVWVcEG.js";
1
+ import { B as ButtonGroupRoot, a as ButtonGroupSeparator } from "../chunks/button-group-DvhBi6Lg.js";
2
+ import { b, c, d } from "../chunks/button-group-DvhBi6Lg.js";
3
3
  const ButtonGroup = Object.assign(ButtonGroupRoot, {
4
4
  Root: ButtonGroupRoot,
5
5
  Separator: ButtonGroupSeparator
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const buttonGroup = require("../chunks/button-group-DjqguHq3.js");
3
+ const buttonGroup = require("../chunks/button-group-DSmnyr9N.js");
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  const React = require("react");
6
- const Button = require("../chunks/Button-Dsh7R-oX.js");
6
+ const Button = require("../chunks/Button-DdN0ubzW.js");
7
7
  const tv = require("../chunks/tv-CLVUgvdm.js");
8
8
  const useRipple = require("../chunks/use-ripple-CP--kOgy.js");
9
+ const compose = require("../chunks/compose-C8aAEsRP.js");
9
10
  const buttonV2Variants = tv.tv({
10
11
  base: "button-v2",
11
12
  defaultVariants: {
@@ -81,7 +82,7 @@ const ButtonV2Root = ({
81
82
  y: event.clientY - rect.top
82
83
  });
83
84
  }, [finalIsDisabled, onPointerDown, onPress]);
84
- return /* @__PURE__ */ jsxRuntime.jsx(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: buttonGroup.composeTwRenderProps(className, styles), "data-slot": "button", isDisabled: finalIsDisabled, onPointerDown: handlePointerDown, slot, style, ...rest, children: (renderProps) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
85
+ return /* @__PURE__ */ jsxRuntime.jsx(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: compose.composeTwRenderProps(className, styles), "data-slot": "button", isDisabled: finalIsDisabled, onPointerDown: handlePointerDown, slot, style, ...rest, children: (renderProps) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
85
86
  typeof children === "function" ? children({
86
87
  ...renderProps,
87
88
  defaultChildren: void 0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../src/components/button-v2/button-v2.styles.ts","../../src/components/button-v2/button-v2.tsx","../../src/components/button-v2/index.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonV2Variants = tv(\n\t{\n\t\tbase: \"button-v2\",\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\tisIconOnly: false,\n\t\t\tsize: \"md\",\n\t\t\tvariant: \"primary\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: \"\",\n\t\t\t\ttrue: \"button-v2--full-width\",\n\t\t\t},\n\t\t\tisIconOnly: {\n\t\t\t\ttrue: \"button-v2--icon-only\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tlg: \"button-v2--lg\",\n\t\t\t\tmd: \"button-v2--md\",\n\t\t\t\tsm: \"button-v2--sm\",\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\t\"danger\": \"button-v2--danger\",\n\t\t\t\t\"danger-soft\": \"button-v2--danger-soft\",\n\t\t\t\t\"ghost\": \"button-v2--ghost\",\n\t\t\t\t\"outline\": \"button-v2--outline\",\n\t\t\t\t\"primary\": \"button-v2--primary\",\n\t\t\t\t\"secondary\": \"button-v2--secondary\",\n\t\t\t\t\"tertiary\": \"button-v2--tertiary\",\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonV2Variants = VariantProps<typeof buttonV2Variants>;\n","\"use client\";\n\nimport type { ButtonProps as ButtonPrimitiveProps } from \"react-aria-components\";\nimport type { ButtonV2Variants } from \"./button-v2.styles\";\nimport type { PointerEventHandler } from \"react\";\n\nimport { useCallback, useContext } from \"react\";\nimport { Button as ButtonPrimitive } from \"react-aria-components\";\nimport { buttonV2Variants } from \"./button-v2.styles\";\n\nimport { BUTTON_GROUP_CHILD, ButtonGroupContext } from \"../button-group/button-group\";\nimport Ripple from \"../ripple/ripple\";\nimport { useRipple } from \"../ripple/use-ripple\";\nimport { composeTwRenderProps } from \"./compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonV2 Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonV2RootProps extends ButtonPrimitiveProps, ButtonV2Variants {\n\t[BUTTON_GROUP_CHILD]?: boolean;\n}\n\nconst ButtonV2Root = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\tisIconOnly,\n\tonPointerDown,\n\tsize,\n\tslot,\n\tstyle,\n\tvariant,\n\t[BUTTON_GROUP_CHILD]: isButtonGroupChild,\n\t...rest\n}: ButtonV2RootProps) => {\n\tconst buttonGroupContext = useContext(ButtonGroupContext);\n\n\t// Only use context if this button is a direct child of ButtonGroup\n\tconst shouldUseContext = isButtonGroupChild === true;\n\n\t// Merge props with precedence: direct props > context props\n\tconst finalSize = size ?? (shouldUseContext ? buttonGroupContext?.size : undefined);\n\tconst finalVariant = variant ?? (shouldUseContext ? buttonGroupContext?.variant : undefined);\n\tconst finalIsDisabled = isDisabled ?? (shouldUseContext ? buttonGroupContext?.isDisabled : undefined);\n\tconst finalFullWidth = fullWidth ?? (shouldUseContext ? buttonGroupContext?.fullWidth : undefined);\n\tconst { ripples, onClear, onPress } = useRipple();\n\n\tconst styles = buttonV2Variants({\n\t\tfullWidth: finalFullWidth,\n\t\tisIconOnly,\n\t\tsize: finalSize,\n\t\tvariant: finalVariant,\n\t});\n\n\tconst handlePointerDown: PointerEventHandler<HTMLButtonElement> = useCallback(\n\t\t(event) => {\n\t\t\tonPointerDown?.(event);\n\n\t\t\tif (event.defaultPrevented || finalIsDisabled) return;\n\n\t\t\tconst rect = event.currentTarget.getBoundingClientRect();\n\n\t\t\tonPress({\n\t\t\t\ttarget: event.currentTarget,\n\t\t\t\tx: event.clientX - rect.left,\n\t\t\t\ty: event.clientY - rect.top,\n\t\t\t});\n\t\t},\n\t\t[finalIsDisabled, onPointerDown, onPress],\n\t);\n\n\treturn (\n\t\t<ButtonPrimitive\n\t\t\tclassName={composeTwRenderProps(className, styles)}\n\t\t\tdata-slot=\"button\"\n\t\t\tisDisabled={finalIsDisabled}\n\t\t\tonPointerDown={handlePointerDown}\n\t\t\tslot={slot}\n\t\t\tstyle={style}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{(renderProps) => (\n\t\t\t\t<>\n\t\t\t\t\t{typeof children === \"function\" ? children({ ...renderProps, defaultChildren: undefined }) : children}\n\t\t\t\t\t<Ripple ripples={ripples} onClear={onClear} />\n\t\t\t\t</>\n\t\t\t)}\n\t\t</ButtonPrimitive>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps };\n","import type { ButtonV2RootProps } from \"./button-v2\";\n\nimport { BUTTON_GROUP_CHILD } from \"../button-group/button-group\";\nimport { ButtonV2Root } from \"./button-v2\";\nimport \"./button-v2.css\";\n\n/* -------------------------------------------------------------------------------------------------\n * Compound Component\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonV2Component = typeof ButtonV2Root & {\n\tRoot: typeof ButtonV2Root;\n};\n\nexport const ButtonV2: ButtonV2Component = Object.assign(ButtonV2Root, {\n\tRoot: ButtonV2Root,\n});\n\nexport type ButtonV2 = {\n\tProps: ButtonV2RootProps;\n\tRootProps: ButtonV2RootProps;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Named Component\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps as ButtonV2Props, ButtonV2RootProps } from \"./button-v2\";\n\n/* -------------------------------------------------------------------------------------------------\n * Variants export\n * -----------------------------------------------------------------------------------------------*/\nexport { buttonV2Variants } from \"./button-v2.styles\";\nexport type { ButtonV2Variants } from \"./button-v2.styles\";\n\n/* -------------------------------------------------------------------------------------------------\n * Re-export BUTTON_GROUP_CHILD for type declarations\n * -----------------------------------------------------------------------------------------------*/\nexport { BUTTON_GROUP_CHILD };\n"],"names":["buttonV2Variants","tv","base","defaultVariants","fullWidth","isIconOnly","size","variant","variants","false","true","lg","md","sm","twMerge","ButtonV2Root","children","className","isDisabled","onPointerDown","slot","style","BUTTON_GROUP_CHILD","isButtonGroupChild","rest","buttonGroupContext","useContext","ButtonGroupContext","shouldUseContext","finalSize","undefined","finalVariant","finalIsDisabled","finalFullWidth","ripples","onClear","onPress","useRipple","styles","handlePointerDown","useCallback","event","defaultPrevented","rect","currentTarget","getBoundingClientRect","target","x","clientX","left","y","clientY","top","ButtonPrimitive","composeTwRenderProps","renderProps","jsxs","Fragment","defaultChildren","jsx","Ripple","ButtonV2","Object","assign","Root"],"mappings":";;;;;;;;AAIO,MAAMA,mBAAmBC,GAAAA,GAC/B;AAAA,EACCC,MAAM;AAAA,EACNC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,YAAY;AAAA,IACZC,MAAM;AAAA,IACNC,SAAS;AAAA,EAAA;AAAA,EAEVC,UAAU;AAAA,IACTJ,WAAW;AAAA,MACVK,OAAO;AAAA,MACPC,MAAM;AAAA,IAAA;AAAA,IAEPL,YAAY;AAAA,MACXK,MAAM;AAAA,IAAA;AAAA,IAEPJ,MAAM;AAAA,MACLK,IAAI;AAAA,MACJC,IAAI;AAAA,MACJC,IAAI;AAAA,IAAA;AAAA,IAELN,SAAS;AAAA,MACR,UAAU;AAAA,MACV,eAAe;AAAA,MACf,SAAS;AAAA,MACT,WAAW;AAAA,MACX,WAAW;AAAA,MACX,aAAa;AAAA,MACb,YAAY;AAAA,IAAA;AAAA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AU,UACV,YAAYN,iBACZ,eAAeO,mBACf,MACA,OACA,GAAIf,MAEF+B,2BACDC,2BAAAA,KAAAC,WAAAA,UAAA,EACE,UAAA;AAAA,IAAA,OAAOzC,aAAa,aAAaA,SAAS;AAAA,MAAE,GAAGuC;AAAAA,MAAaG,iBAAiB5B;AAAAA,IAAAA,CAAW,IAAId;AAAAA,IAC7F2C,2BAAAA,IAACC,UAAAA,QAAA,EAAO,SAAkB,QAAA,CAAiB;AAAA,EAAA,EAAA,CAC5C,EAAA,CAEF;AAEF;AC7EO,MAAMC,WAA8BC,OAAOC,OAAOhD,cAAc;AAAA,EACtEiD,MAAMjD;AACP,CAAC;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/components/button-v2/button-v2.styles.ts","../../src/components/button-v2/button-v2.tsx","../../src/components/button-v2/index.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonV2Variants = tv(\n\t{\n\t\tbase: \"button-v2\",\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\tisIconOnly: false,\n\t\t\tsize: \"md\",\n\t\t\tvariant: \"primary\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: \"\",\n\t\t\t\ttrue: \"button-v2--full-width\",\n\t\t\t},\n\t\t\tisIconOnly: {\n\t\t\t\ttrue: \"button-v2--icon-only\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tlg: \"button-v2--lg\",\n\t\t\t\tmd: \"button-v2--md\",\n\t\t\t\tsm: \"button-v2--sm\",\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\t\"danger\": \"button-v2--danger\",\n\t\t\t\t\"danger-soft\": \"button-v2--danger-soft\",\n\t\t\t\t\"ghost\": \"button-v2--ghost\",\n\t\t\t\t\"outline\": \"button-v2--outline\",\n\t\t\t\t\"primary\": \"button-v2--primary\",\n\t\t\t\t\"secondary\": \"button-v2--secondary\",\n\t\t\t\t\"tertiary\": \"button-v2--tertiary\",\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonV2Variants = VariantProps<typeof buttonV2Variants>;\n","\"use client\";\n\nimport type { ButtonProps as ButtonPrimitiveProps } from \"react-aria-components\";\nimport type { ButtonV2Variants } from \"./button-v2.styles\";\nimport type { PointerEventHandler } from \"react\";\n\nimport { useCallback, useContext } from \"react\";\nimport { Button as ButtonPrimitive } from \"react-aria-components\";\nimport { buttonV2Variants } from \"./button-v2.styles\";\n\nimport { BUTTON_GROUP_CHILD, ButtonGroupContext } from \"../button-group/button-group\";\nimport Ripple from \"../ripple/ripple\";\nimport { useRipple } from \"../ripple/use-ripple\";\nimport { composeTwRenderProps } from \"./compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonV2 Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonV2RootProps extends ButtonPrimitiveProps, ButtonV2Variants {\n\t[BUTTON_GROUP_CHILD]?: boolean;\n}\n\nconst ButtonV2Root = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\tisIconOnly,\n\tonPointerDown,\n\tsize,\n\tslot,\n\tstyle,\n\tvariant,\n\t[BUTTON_GROUP_CHILD]: isButtonGroupChild,\n\t...rest\n}: ButtonV2RootProps) => {\n\tconst buttonGroupContext = useContext(ButtonGroupContext);\n\n\t// Only use context if this button is a direct child of ButtonGroup\n\tconst shouldUseContext = isButtonGroupChild === true;\n\n\t// Merge props with precedence: direct props > context props\n\tconst finalSize = size ?? (shouldUseContext ? buttonGroupContext?.size : undefined);\n\tconst finalVariant = variant ?? (shouldUseContext ? buttonGroupContext?.variant : undefined);\n\tconst finalIsDisabled = isDisabled ?? (shouldUseContext ? buttonGroupContext?.isDisabled : undefined);\n\tconst finalFullWidth = fullWidth ?? (shouldUseContext ? buttonGroupContext?.fullWidth : undefined);\n\tconst { ripples, onClear, onPress } = useRipple();\n\n\tconst styles = buttonV2Variants({\n\t\tfullWidth: finalFullWidth,\n\t\tisIconOnly,\n\t\tsize: finalSize,\n\t\tvariant: finalVariant,\n\t});\n\n\tconst handlePointerDown: PointerEventHandler<HTMLButtonElement> = useCallback(\n\t\t(event) => {\n\t\t\tonPointerDown?.(event);\n\n\t\t\tif (event.defaultPrevented || finalIsDisabled) return;\n\n\t\t\tconst rect = event.currentTarget.getBoundingClientRect();\n\n\t\t\tonPress({\n\t\t\t\ttarget: event.currentTarget,\n\t\t\t\tx: event.clientX - rect.left,\n\t\t\t\ty: event.clientY - rect.top,\n\t\t\t});\n\t\t},\n\t\t[finalIsDisabled, onPointerDown, onPress],\n\t);\n\n\treturn (\n\t\t<ButtonPrimitive\n\t\t\tclassName={composeTwRenderProps(className, styles)}\n\t\t\tdata-slot=\"button\"\n\t\t\tisDisabled={finalIsDisabled}\n\t\t\tonPointerDown={handlePointerDown}\n\t\t\tslot={slot}\n\t\t\tstyle={style}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{(renderProps) => (\n\t\t\t\t<>\n\t\t\t\t\t{typeof children === \"function\" ? children({ ...renderProps, defaultChildren: undefined }) : children}\n\t\t\t\t\t<Ripple ripples={ripples} onClear={onClear} />\n\t\t\t\t</>\n\t\t\t)}\n\t\t</ButtonPrimitive>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps };\n","import type { ButtonV2RootProps } from \"./button-v2\";\n\nimport { BUTTON_GROUP_CHILD } from \"../button-group/button-group\";\nimport { ButtonV2Root } from \"./button-v2\";\nimport \"./button-v2.css\";\n\n/* -------------------------------------------------------------------------------------------------\n * Compound Component\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonV2Component = typeof ButtonV2Root & {\n\tRoot: typeof ButtonV2Root;\n};\n\nexport const ButtonV2: ButtonV2Component = Object.assign(ButtonV2Root, {\n\tRoot: ButtonV2Root,\n});\n\nexport type ButtonV2 = {\n\tProps: ButtonV2RootProps;\n\tRootProps: ButtonV2RootProps;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Named Component\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps as ButtonV2Props, ButtonV2RootProps } from \"./button-v2\";\n\n/* -------------------------------------------------------------------------------------------------\n * Variants export\n * -----------------------------------------------------------------------------------------------*/\nexport { buttonV2Variants } from \"./button-v2.styles\";\nexport type { ButtonV2Variants } from \"./button-v2.styles\";\n\n/* -------------------------------------------------------------------------------------------------\n * Re-export BUTTON_GROUP_CHILD for type declarations\n * -----------------------------------------------------------------------------------------------*/\nexport { BUTTON_GROUP_CHILD };\n"],"names":["buttonV2Variants","tv","base","defaultVariants","fullWidth","isIconOnly","size","variant","variants","false","true","lg","md","sm","twMerge","ButtonV2Root","children","className","isDisabled","onPointerDown","slot","style","BUTTON_GROUP_CHILD","isButtonGroupChild","rest","buttonGroupContext","useContext","ButtonGroupContext","shouldUseContext","finalSize","undefined","finalVariant","finalIsDisabled","finalFullWidth","ripples","onClear","onPress","useRipple","styles","handlePointerDown","useCallback","event","defaultPrevented","rect","currentTarget","getBoundingClientRect","target","x","clientX","left","y","clientY","top","ButtonPrimitive","composeTwRenderProps","renderProps","jsxs","Fragment","defaultChildren","jsx","Ripple","ButtonV2","Object","assign","Root"],"mappings":";;;;;;;;;AAIO,MAAMA,mBAAmBC,GAAAA,GAC/B;AAAA,EACCC,MAAM;AAAA,EACNC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,YAAY;AAAA,IACZC,MAAM;AAAA,IACNC,SAAS;AAAA,EAAA;AAAA,EAEVC,UAAU;AAAA,IACTJ,WAAW;AAAA,MACVK,OAAO;AAAA,MACPC,MAAM;AAAA,IAAA;AAAA,IAEPL,YAAY;AAAA,MACXK,MAAM;AAAA,IAAA;AAAA,IAEPJ,MAAM;AAAA,MACLK,IAAI;AAAA,MACJC,IAAI;AAAA,MACJC,IAAI;AAAA,IA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;AAAAA,IAAAA,CACxB;AAAA,EACF,GACA,CAACpB,iBAAiBb,eAAeiB,OAAO,CACzC;AAEA,wCACEiB,OAAAA,2CAAA,EACA,WAAWC,QAAAA,qBAAqBrC,WAAWqB,MAAM,GACjD,aAAU,UACV,YAAYN,iBACZ,eAAeO,mBACf,MACA,OACA,GAAIf,MAEF+B,2BACDC,2BAAAA,KAAAC,WAAAA,UAAA,EACE,UAAA;AAAA,IAAA,OAAOzC,aAAa,aAAaA,SAAS;AAAA,MAAE,GAAGuC;AAAAA,MAAaG,iBAAiB5B;AAAAA,IAAAA,CAAW,IAAId;AAAAA,IAC7F2C,2BAAAA,IAACC,UAAAA,QAAA,EAAO,SAAkB,QAAA,CAAiB;AAAA,EAAA,EAAA,CAC5C,EAAA,CAEF;AAEF;AC7EO,MAAMC,WAA8BC,OAAOC,OAAOhD,cAAc;AAAA,EACtEiD,MAAMjD;AACP,CAAC;;;;;"}
@@ -1,9 +1,10 @@
1
- import { c as ButtonGroupContext, e as composeTwRenderProps, b as BUTTON_GROUP_CHILD } from "../chunks/button-group-BTVWVcEG.js";
1
+ import { c as ButtonGroupContext, b as BUTTON_GROUP_CHILD } from "../chunks/button-group-DvhBi6Lg.js";
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { useContext, useCallback } from "react";
4
- import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../chunks/Button-C0-RVnrA.js";
4
+ import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../chunks/Button-aderR-2u.js";
5
5
  import { t as tv } from "../chunks/tv-CBcwbOk5.js";
6
6
  import { u as useRipple, R as Ripple } from "../chunks/use-ripple-BWSJGUyQ.js";
7
+ import { a as composeTwRenderProps } from "../chunks/compose-BAW756h2.js";
7
8
  const buttonV2Variants = tv({
8
9
  base: "button-v2",
9
10
  defaultVariants: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../src/components/button-v2/button-v2.styles.ts","../../src/components/button-v2/button-v2.tsx","../../src/components/button-v2/index.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonV2Variants = tv(\n\t{\n\t\tbase: \"button-v2\",\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\tisIconOnly: false,\n\t\t\tsize: \"md\",\n\t\t\tvariant: \"primary\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: \"\",\n\t\t\t\ttrue: \"button-v2--full-width\",\n\t\t\t},\n\t\t\tisIconOnly: {\n\t\t\t\ttrue: \"button-v2--icon-only\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tlg: \"button-v2--lg\",\n\t\t\t\tmd: \"button-v2--md\",\n\t\t\t\tsm: \"button-v2--sm\",\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\t\"danger\": \"button-v2--danger\",\n\t\t\t\t\"danger-soft\": \"button-v2--danger-soft\",\n\t\t\t\t\"ghost\": \"button-v2--ghost\",\n\t\t\t\t\"outline\": \"button-v2--outline\",\n\t\t\t\t\"primary\": \"button-v2--primary\",\n\t\t\t\t\"secondary\": \"button-v2--secondary\",\n\t\t\t\t\"tertiary\": \"button-v2--tertiary\",\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonV2Variants = VariantProps<typeof buttonV2Variants>;\n","\"use client\";\n\nimport type { ButtonProps as ButtonPrimitiveProps } from \"react-aria-components\";\nimport type { ButtonV2Variants } from \"./button-v2.styles\";\nimport type { PointerEventHandler } from \"react\";\n\nimport { useCallback, useContext } from \"react\";\nimport { Button as ButtonPrimitive } from \"react-aria-components\";\nimport { buttonV2Variants } from \"./button-v2.styles\";\n\nimport { BUTTON_GROUP_CHILD, ButtonGroupContext } from \"../button-group/button-group\";\nimport Ripple from \"../ripple/ripple\";\nimport { useRipple } from \"../ripple/use-ripple\";\nimport { composeTwRenderProps } from \"./compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonV2 Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonV2RootProps extends ButtonPrimitiveProps, ButtonV2Variants {\n\t[BUTTON_GROUP_CHILD]?: boolean;\n}\n\nconst ButtonV2Root = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\tisIconOnly,\n\tonPointerDown,\n\tsize,\n\tslot,\n\tstyle,\n\tvariant,\n\t[BUTTON_GROUP_CHILD]: isButtonGroupChild,\n\t...rest\n}: ButtonV2RootProps) => {\n\tconst buttonGroupContext = useContext(ButtonGroupContext);\n\n\t// Only use context if this button is a direct child of ButtonGroup\n\tconst shouldUseContext = isButtonGroupChild === true;\n\n\t// Merge props with precedence: direct props > context props\n\tconst finalSize = size ?? (shouldUseContext ? buttonGroupContext?.size : undefined);\n\tconst finalVariant = variant ?? (shouldUseContext ? buttonGroupContext?.variant : undefined);\n\tconst finalIsDisabled = isDisabled ?? (shouldUseContext ? buttonGroupContext?.isDisabled : undefined);\n\tconst finalFullWidth = fullWidth ?? (shouldUseContext ? buttonGroupContext?.fullWidth : undefined);\n\tconst { ripples, onClear, onPress } = useRipple();\n\n\tconst styles = buttonV2Variants({\n\t\tfullWidth: finalFullWidth,\n\t\tisIconOnly,\n\t\tsize: finalSize,\n\t\tvariant: finalVariant,\n\t});\n\n\tconst handlePointerDown: PointerEventHandler<HTMLButtonElement> = useCallback(\n\t\t(event) => {\n\t\t\tonPointerDown?.(event);\n\n\t\t\tif (event.defaultPrevented || finalIsDisabled) return;\n\n\t\t\tconst rect = event.currentTarget.getBoundingClientRect();\n\n\t\t\tonPress({\n\t\t\t\ttarget: event.currentTarget,\n\t\t\t\tx: event.clientX - rect.left,\n\t\t\t\ty: event.clientY - rect.top,\n\t\t\t});\n\t\t},\n\t\t[finalIsDisabled, onPointerDown, onPress],\n\t);\n\n\treturn (\n\t\t<ButtonPrimitive\n\t\t\tclassName={composeTwRenderProps(className, styles)}\n\t\t\tdata-slot=\"button\"\n\t\t\tisDisabled={finalIsDisabled}\n\t\t\tonPointerDown={handlePointerDown}\n\t\t\tslot={slot}\n\t\t\tstyle={style}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{(renderProps) => (\n\t\t\t\t<>\n\t\t\t\t\t{typeof children === \"function\" ? children({ ...renderProps, defaultChildren: undefined }) : children}\n\t\t\t\t\t<Ripple ripples={ripples} onClear={onClear} />\n\t\t\t\t</>\n\t\t\t)}\n\t\t</ButtonPrimitive>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps };\n","import type { ButtonV2RootProps } from \"./button-v2\";\n\nimport { BUTTON_GROUP_CHILD } from \"../button-group/button-group\";\nimport { ButtonV2Root } from \"./button-v2\";\nimport \"./button-v2.css\";\n\n/* -------------------------------------------------------------------------------------------------\n * Compound Component\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonV2Component = typeof ButtonV2Root & {\n\tRoot: typeof ButtonV2Root;\n};\n\nexport const ButtonV2: ButtonV2Component = Object.assign(ButtonV2Root, {\n\tRoot: ButtonV2Root,\n});\n\nexport type ButtonV2 = {\n\tProps: ButtonV2RootProps;\n\tRootProps: ButtonV2RootProps;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Named Component\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps as ButtonV2Props, ButtonV2RootProps } from \"./button-v2\";\n\n/* -------------------------------------------------------------------------------------------------\n * Variants export\n * -----------------------------------------------------------------------------------------------*/\nexport { buttonV2Variants } from \"./button-v2.styles\";\nexport type { ButtonV2Variants } from \"./button-v2.styles\";\n\n/* -------------------------------------------------------------------------------------------------\n * Re-export BUTTON_GROUP_CHILD for type declarations\n * -----------------------------------------------------------------------------------------------*/\nexport { BUTTON_GROUP_CHILD };\n"],"names":["buttonV2Variants","tv","base","defaultVariants","fullWidth","isIconOnly","size","variant","variants","false","true","lg","md","sm","twMerge","ButtonV2Root","children","className","isDisabled","onPointerDown","slot","style","BUTTON_GROUP_CHILD","isButtonGroupChild","rest","buttonGroupContext","useContext","ButtonGroupContext","shouldUseContext","finalSize","undefined","finalVariant","finalIsDisabled","finalFullWidth","ripples","onClear","onPress","useRipple","styles","handlePointerDown","useCallback","event","defaultPrevented","rect","currentTarget","getBoundingClientRect","target","x","clientX","left","y","clientY","top","ButtonPrimitive","composeTwRenderProps","renderProps","defaultChildren","ButtonV2","Object","assign","Root"],"mappings":";;;;;;AAIO,MAAMA,mBAAmBC,GAC/B;AAAA,EACCC,MAAM;AAAA,EACNC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,YAAY;AAAA,IACZC,MAAM;AAAA,IACNC,SAAS;AAAA,EAAA;AAAA,EAEVC,UAAU;AAAA,IACTJ,WAAW;AAAA,MACVK,OAAO;AAAA,MACPC,MAAM;AAAA,IAAA;AAAA,IAEPL,YAAY;AAAA,MACXK,MAAM;AAAA,IAAA;AAAA,IAEPJ,MAAM;AAAA,MACLK,IAAI;AAAA,MACJC,IAAI;AAAA,MACJC,IAAI;AAAA,IAAA;AAAA,IAELN,SAAS;AAAA,MACR,UAAU;AAAA,MACV,eAAe;AAAA,MACf,SAAS;AAAA,MACT,WAAW;AAAA,MACX,WAAW;AAAA,MACX,aAAa;AAAA,MACb,YAAY;AAAA,IAAA;AAAA,EACb;AAEF,GACA;AAAA,EAAEO,SAAS;AAAM,CAClB;AChBA,MAAMC,eAAeA,CAAC;AAAA,EACrBC;AAAAA,EACAC;AAAAA,EACAb;AAAAA,EACAc;AAAAA,EACAb;AAAAA,EACAc;AAAAA,EACAb;AAAAA,EACAc;AAAAA,EACAC;AAAAA,EACAd;AAAAA,EACA,CAACe,qBAAqBC;AAAAA,EACtB,GAAGC;AACe,MAAM;AACxB,QAAMC,qBAAqBC,WAAWC,kBAAkB;AAGxD,QAAMC,mBAAmBL,uBAAuB;AAGhD,QAAMM,YAAYv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{"version":3,"file":"index.es.js","sources":["../../src/components/button-v2/button-v2.styles.ts","../../src/components/button-v2/button-v2.tsx","../../src/components/button-v2/index.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\";\n\nimport { tv } from \"@/lib/tv\";\n\nexport const buttonV2Variants = tv(\n\t{\n\t\tbase: \"button-v2\",\n\t\tdefaultVariants: {\n\t\t\tfullWidth: false,\n\t\t\tisIconOnly: false,\n\t\t\tsize: \"md\",\n\t\t\tvariant: \"primary\",\n\t\t},\n\t\tvariants: {\n\t\t\tfullWidth: {\n\t\t\t\tfalse: \"\",\n\t\t\t\ttrue: \"button-v2--full-width\",\n\t\t\t},\n\t\t\tisIconOnly: {\n\t\t\t\ttrue: \"button-v2--icon-only\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tlg: \"button-v2--lg\",\n\t\t\t\tmd: \"button-v2--md\",\n\t\t\t\tsm: \"button-v2--sm\",\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\t\"danger\": \"button-v2--danger\",\n\t\t\t\t\"danger-soft\": \"button-v2--danger-soft\",\n\t\t\t\t\"ghost\": \"button-v2--ghost\",\n\t\t\t\t\"outline\": \"button-v2--outline\",\n\t\t\t\t\"primary\": \"button-v2--primary\",\n\t\t\t\t\"secondary\": \"button-v2--secondary\",\n\t\t\t\t\"tertiary\": \"button-v2--tertiary\",\n\t\t\t},\n\t\t},\n\t},\n\t{ twMerge: false },\n);\n\nexport type ButtonV2Variants = VariantProps<typeof buttonV2Variants>;\n","\"use client\";\n\nimport type { ButtonProps as ButtonPrimitiveProps } from \"react-aria-components\";\nimport type { ButtonV2Variants } from \"./button-v2.styles\";\nimport type { PointerEventHandler } from \"react\";\n\nimport { useCallback, useContext } from \"react\";\nimport { Button as ButtonPrimitive } from \"react-aria-components\";\nimport { buttonV2Variants } from \"./button-v2.styles\";\n\nimport { BUTTON_GROUP_CHILD, ButtonGroupContext } from \"../button-group/button-group\";\nimport Ripple from \"../ripple/ripple\";\nimport { useRipple } from \"../ripple/use-ripple\";\nimport { composeTwRenderProps } from \"./compose\";\n\n/* -------------------------------------------------------------------------------------------------\n * ButtonV2 Root\n * -----------------------------------------------------------------------------------------------*/\ninterface ButtonV2RootProps extends ButtonPrimitiveProps, ButtonV2Variants {\n\t[BUTTON_GROUP_CHILD]?: boolean;\n}\n\nconst ButtonV2Root = ({\n\tchildren,\n\tclassName,\n\tfullWidth,\n\tisDisabled,\n\tisIconOnly,\n\tonPointerDown,\n\tsize,\n\tslot,\n\tstyle,\n\tvariant,\n\t[BUTTON_GROUP_CHILD]: isButtonGroupChild,\n\t...rest\n}: ButtonV2RootProps) => {\n\tconst buttonGroupContext = useContext(ButtonGroupContext);\n\n\t// Only use context if this button is a direct child of ButtonGroup\n\tconst shouldUseContext = isButtonGroupChild === true;\n\n\t// Merge props with precedence: direct props > context props\n\tconst finalSize = size ?? (shouldUseContext ? buttonGroupContext?.size : undefined);\n\tconst finalVariant = variant ?? (shouldUseContext ? buttonGroupContext?.variant : undefined);\n\tconst finalIsDisabled = isDisabled ?? (shouldUseContext ? buttonGroupContext?.isDisabled : undefined);\n\tconst finalFullWidth = fullWidth ?? (shouldUseContext ? buttonGroupContext?.fullWidth : undefined);\n\tconst { ripples, onClear, onPress } = useRipple();\n\n\tconst styles = buttonV2Variants({\n\t\tfullWidth: finalFullWidth,\n\t\tisIconOnly,\n\t\tsize: finalSize,\n\t\tvariant: finalVariant,\n\t});\n\n\tconst handlePointerDown: PointerEventHandler<HTMLButtonElement> = useCallback(\n\t\t(event) => {\n\t\t\tonPointerDown?.(event);\n\n\t\t\tif (event.defaultPrevented || finalIsDisabled) return;\n\n\t\t\tconst rect = event.currentTarget.getBoundingClientRect();\n\n\t\t\tonPress({\n\t\t\t\ttarget: event.currentTarget,\n\t\t\t\tx: event.clientX - rect.left,\n\t\t\t\ty: event.clientY - rect.top,\n\t\t\t});\n\t\t},\n\t\t[finalIsDisabled, onPointerDown, onPress],\n\t);\n\n\treturn (\n\t\t<ButtonPrimitive\n\t\t\tclassName={composeTwRenderProps(className, styles)}\n\t\t\tdata-slot=\"button\"\n\t\t\tisDisabled={finalIsDisabled}\n\t\t\tonPointerDown={handlePointerDown}\n\t\t\tslot={slot}\n\t\t\tstyle={style}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{(renderProps) => (\n\t\t\t\t<>\n\t\t\t\t\t{typeof children === \"function\" ? children({ ...renderProps, defaultChildren: undefined }) : children}\n\t\t\t\t\t<Ripple ripples={ripples} onClear={onClear} />\n\t\t\t\t</>\n\t\t\t)}\n\t\t</ButtonPrimitive>\n\t);\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Exports\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps };\n","import type { ButtonV2RootProps } from \"./button-v2\";\n\nimport { BUTTON_GROUP_CHILD } from \"../button-group/button-group\";\nimport { ButtonV2Root } from \"./button-v2\";\nimport \"./button-v2.css\";\n\n/* -------------------------------------------------------------------------------------------------\n * Compound Component\n * -----------------------------------------------------------------------------------------------*/\ntype ButtonV2Component = typeof ButtonV2Root & {\n\tRoot: typeof ButtonV2Root;\n};\n\nexport const ButtonV2: ButtonV2Component = Object.assign(ButtonV2Root, {\n\tRoot: ButtonV2Root,\n});\n\nexport type ButtonV2 = {\n\tProps: ButtonV2RootProps;\n\tRootProps: ButtonV2RootProps;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Named Component\n * -----------------------------------------------------------------------------------------------*/\nexport { ButtonV2Root };\n\nexport type { ButtonV2RootProps as ButtonV2Props, ButtonV2RootProps } from \"./button-v2\";\n\n/* -------------------------------------------------------------------------------------------------\n * Variants export\n * -----------------------------------------------------------------------------------------------*/\nexport { buttonV2Variants } from \"./button-v2.styles\";\nexport type { ButtonV2Variants } from \"./button-v2.styles\";\n\n/* -------------------------------------------------------------------------------------------------\n * Re-export BUTTON_GROUP_CHILD for type declarations\n * -----------------------------------------------------------------------------------------------*/\nexport { BUTTON_GROUP_CHILD };\n"],"names":["buttonV2Variants","tv","base","defaultVariants","fullWidth","isIconOnly","size","variant","variants","false","true","lg","md","sm","twMerge","ButtonV2Root","children","className","isDisabled","onPointerDown","slot","style","BUTTON_GROUP_CHILD","isButtonGroupChild","rest","buttonGroupContext","useContext","ButtonGroupContext","shouldUseContext","finalSize","undefined","finalVariant","finalIsDisabled","finalFullWidth","ripples","onClear","onPress","useRipple","styles","handlePointerDown","useCallback","event","defaultPrevented","rect","currentTarget","getBoundingClientRect","target","x","clientX","left","y","clientY","top","ButtonPrimitive","composeTwRenderProps","renderProps","defaultChildren","ButtonV2","Object","assign","Root"],"mappings":";;;;;;;AAIO,MAAMA,mBAAmBC,GAC/B;AAAA,EACCC,MAAM;AAAA,EACNC,iBAAiB;AAAA,IAChBC,WAAW;AAAA,IACXC,YAAY;AAAA,IACZC,MAAM;AAAA,IACNC,SAAS;AAAA,EAAA;AAAA,EAEVC,UAAU;AAAA,IACTJ,WAAW;AAAA,MACVK,OAAO;AAAA,MACPC,MAAM;AAAA,IAAA;AAAA,IAEPL,YAAY;AAAA,MACXK,MAAM;AAAA,IAAA;AAAA,IAEPJ,MAAM;AAAA,MACLK,IAAI;AAAA,MACJC,IAAI;AAAA,MACJC,IAAI;AAAA,IAAA;AAAA,IAELN,SAAS;AAAA,MACR,UAAU;AAAA,MACV,eAAe;AAAA,MACf,SAAS;AAAA,MACT,WAAW;AAAA,MACX,WAAW;AAAA,MACX,aAAa;AAAA,MACb,YAAY;AAAA,IAAA;AAAA,EACb;AAEF,GACA;AAAA,EAAEO,SAAS;AAAM,CAClB;AChBA,MAAMC,eAAeA,CAAC;AAAA,EACrBC;AAAAA,EACAC;AAAAA,EACAb;AAAAA,EACAc;AAAAA,EACAb;AAAAA,EACAc;AAAAA,EACAb;AAAAA,EACAc;AAAAA,EACAC;AAAAA,EACAd;AAAAA,EACA,CAACe,qBAAqBC;AAAAA,EACtB,GAAGC;AACe,MAAM;AACxB,QAAMC,qBAAqBC,WAAWC,kBAAkB;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O5C,cAAc;AAAA,EACtE6C,MAAM7C;AACP,CAAC;"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- const utils = require("./utils-5jY_THv2.js");
2
+ const utils = require("./utils-BmiPcRjW.js");
3
3
  const React = require("react");
4
- const useFocusRing = require("./useFocusRing-DH6-ymf9.js");
5
- const usePress = require("./usePress-zwQ6-tiU.js");
4
+ const useFocusRing = require("./useFocusRing-CwfE0JXl.js");
5
+ const usePress = require("./usePress-DH-8bL_r.js");
6
6
  const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
7
7
  let $319e236875307eab$var$liveAnnouncer = null;
8
8
  function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
@@ -264,4 +264,4 @@ exports.$319e236875307eab$export$a9b970dcc4ae71a9 = $319e236875307eab$export$a9b
264
264
  exports.$d2b4bc8c273e7be6$export$24d547caef80ccd1 = $d2b4bc8c273e7be6$export$24d547caef80ccd1;
265
265
  exports.$d2b4bc8c273e7be6$export$353f5b6fc5456de1 = $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
266
266
  exports.$f39a9eba43920ace$export$8dc98ba7eadeaa56 = $f39a9eba43920ace$export$8dc98ba7eadeaa56;
267
- //# sourceMappingURL=Button-Dsh7R-oX.js.map
267
+ //# sourceMappingURL=Button-DdN0ubzW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button-Dsh7R-oX.js","sources":["../../node_modules/.pnpm/@react-aria+live-announcer@3.4.4/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs","../../node_modules/.pnpm/@react-aria+collections@3.0.3_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/collections/dist/Hidden.mjs","../../node_modules/.pnpm/@react-aria+button@3.14.5_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/button/dist/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/ProgressBar.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/Button.mjs"],"sourcesContent":["/*\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 */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $319e236875307eab$var$liveAnnouncer = null;\nfunction $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n // @ts-ignore\n if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n }, 100);\n else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $319e236875307eab$export$d10ae4f68404609a(assertiveness) {\n if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $319e236875307eab$export$d8686216b8b81b2f() {\n if ($319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer.destroy();\n $319e236875307eab$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $319e236875307eab$var$LiveAnnouncer {\n isAttached() {\n var _this_node;\n return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n var _this_assertiveLog, _this_politeLog;\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);\n else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\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 });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n}\n\n\nexport {$319e236875307eab$export$a9b970dcc4ae71a9 as announce, $319e236875307eab$export$d10ae4f68404609a as clearAnnouncer, $319e236875307eab$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.module.js.map\n","import $8SdCi$react, {createContext as $8SdCi$createContext, useContext as $8SdCi$useContext, forwardRef as $8SdCi$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 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// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $f39a9eba43920ace$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $8SdCi$createContext)(false);\nfunction $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement((0, $8SdCi$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $8SdCi$react).createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement(\"template\", null, children);\n}\nfunction $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $8SdCi$forwardRef)(Wrapper);\n}\nfunction $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {\n return (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$f39a9eba43920ace$export$94b6d0abf7d33e8c as HiddenContext, $f39a9eba43920ace$export$8dc98ba7eadeaa56 as Hidden, $f39a9eba43920ace$export$86427a43e3e48ebb as createHideableComponent, $f39a9eba43920ace$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.module.js.map\n","import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $hU2kz$useProgressBar} from \"react-aria\";\nimport {clamp as $hU2kz$clamp} from \"@react-stately/utils\";\nimport {filterDOMProps as $hU2kz$filterDOMProps, mergeProps as $hU2kz$mergeProps} from \"@react-aria/utils\";\nimport $hU2kz$react, {createContext as $hU2kz$createContext, forwardRef as $hU2kz$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\nconst $0393f8ab869a0f1a$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $hU2kz$createContext)(null);\nconst $0393f8ab869a0f1a$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $hU2kz$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $0393f8ab869a0f1a$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $hU2kz$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $hU2kz$useProgressBar)({\n ...props,\n label: label\n });\n // Calculate the width of the progress bar as a percentage\n let percentage = isIndeterminate ? undefined : (value - minValue) / (maxValue - minValue) * 100;\n let renderProps = (0, $64fa3d84918910a7$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, $hU2kz$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).div, {\n ...(0, $hU2kz$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $01b77f81d0f07f68$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$0393f8ab869a0f1a$export$e9f3bf65a26ce129 as ProgressBarContext, $0393f8ab869a0f1a$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $0393f8ab869a0f1a$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $fM325$announce} from \"@react-aria/live-announcer\";\nimport {useButton as $fM325$useButton, useFocusRing as $fM325$useFocusRing, useHover as $fM325$useHover, useId as $fM325$useId, mergeProps as $fM325$mergeProps} from \"react-aria\";\nimport {createHideableComponent as $fM325$createHideableComponent} from \"@react-aria/collections\";\nimport {filterDOMProps as $fM325$filterDOMProps} from \"@react-aria/utils\";\nimport $fM325$react, {createContext as $fM325$createContext, useRef as $fM325$useRef, useEffect as $fM325$useEffect} 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 $d2b4bc8c273e7be6$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $fM325$createContext)({});\nconst $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $fM325$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $fM325$useButton)(props, ref);\n buttonProps = $d2b4bc8c273e7be6$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $fM325$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $fM325$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending !== null && isPending !== void 0 ? isPending : false\n };\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $fM325$useId)(buttonProps.id);\n let progressId = (0, $fM325$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $fM325$useRef)(isPending);\n (0, $fM325$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $fM325$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $fM325$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $fM325$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $fM325$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).button, {\n ...(0, $fM325$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $fM325$react).createElement((0, $0393f8ab869a0f1a$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $d2b4bc8c273e7be6$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$d2b4bc8c273e7be6$export$24d547caef80ccd1 as ButtonContext, $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.module.js.map\n"],"names":["$8SdCi$createContext","$8SdCi$useContext","$8SdCi$react","$8SdCi$forwardRef","$bwqiF$usePress","$bwqiF$useFocusable","$bwqiF$mergeProps","$bwqiF$filterDOMProps","$hU2kz$createContext","$fM325$createContext","$fM325$createHideableComponent","$64fa3d84918910a7$export$29f1550f4b0d4415","$fM325$useButton","$fM325$useFocusRing","$fM325$useHover","$64fa3d84918910a7$export$4d86445c2cf5e3","$fM325$useId","$fM325$useRef","$fM325$useEffect","$fM325$announce","$fM325$filterDOMProps","$fM325$react","$64fa3d84918910a7$export$df3a06d6289f983e","$fM325$mergeProps"],"mappings":";;;;;AAUqE,MAAM,iDAAiD;AAC5H,IAAI,sCAAsC;AAC1C,SAAS,0CAA0C,SAAS,gBAAgB,aAAa,UAAU,gDAAgD;AAC/I,MAAI,CAAC,qCAAqC;AACtC,0CAAsC,IAAI,oCAAmC;AAQ7E,QAAI,EAAE,OAAO,6BAA6B,YAAY,2BAA2B,OAAO,SAAS,aAAc,YAAW,MAAI;AAC1H,UAAI,wCAAwC,QAAQ,wCAAwC,SAAS,SAAS,oCAAoC,aAAc,yCAAwC,QAAQ,wCAAwC,SAAS,SAAS,oCAAoC,SAAS,SAAS,eAAe,OAAO;AAAA,IAC1V,GAAG,GAAG;AAAA,QACD,qCAAoC,SAAS,SAAS,eAAe,OAAO;AAAA,EACrF,MAAO,qCAAoC,SAAS,SAAS,eAAe,OAAO;AACvF;AAgBA,MAAM,oCAAoC;AAAA,EACtC,aAAa;AACT,QAAI;AACJ,YAAQ,aAAa,KAAK,UAAU,QAAQ,eAAe,SAAS,SAAS,WAAW;AAAA,EAC5F;AAAA,EACA,UAAU,UAAU;AAChB,QAAI,OAAO,SAAS,cAAc,KAAK;AACvC,SAAK,aAAa,QAAQ,KAAK;AAC/B,SAAK,aAAa,aAAa,QAAQ;AACvC,SAAK,aAAa,iBAAiB,WAAW;AAC9C,WAAO;AAAA,EACX;AAAA,EACA,UAAU;AACN,QAAI,CAAC,KAAK,KAAM;AAChB,aAAS,KAAK,YAAY,KAAK,IAAI;AACnC,SAAK,OAAO;AAA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AkB;AAAA,EAChD,GAAyBF,sBAAc,cAAkB,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,IAAI;AAAA,IAChB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;AAED,MAAM,gDAAgD;AACtD,SAAS,6CAA6C,OAAO,WAAW;AACpE,MAAI,WAAW;AACX,eAAU,OAAO,MAAM,KAAI,IAAI,WAAW,IAAI,KAAK,CAAC,8CAA8C,KAAK,GAAG,EAAG,OAAM,GAAG,IAAI;AAC1H,UAAM,OAAO;AACb,UAAM,SAAS;AAAA,EACnB;AACA,SAAO;AACX;;;;;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"Button-DdN0ubzW.js","sources":["../../node_modules/.pnpm/@react-aria+live-announcer@3.4.4/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs","../../node_modules/.pnpm/@react-aria+collections@3.0.3_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/collections/dist/Hidden.mjs","../../node_modules/.pnpm/@react-aria+button@3.14.5_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/button/dist/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/ProgressBar.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/Button.mjs"],"sourcesContent":["/*\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 */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $319e236875307eab$var$liveAnnouncer = null;\nfunction $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n // @ts-ignore\n if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n }, 100);\n else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $319e236875307eab$export$d10ae4f68404609a(assertiveness) {\n if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $319e236875307eab$export$d8686216b8b81b2f() {\n if ($319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer.destroy();\n $319e236875307eab$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $319e236875307eab$var$LiveAnnouncer {\n isAttached() {\n var _this_node;\n return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n var _this_assertiveLog, _this_politeLog;\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);\n else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\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 });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n}\n\n\nexport {$319e236875307eab$export$a9b970dcc4ae71a9 as announce, $319e236875307eab$export$d10ae4f68404609a as clearAnnouncer, $319e236875307eab$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.module.js.map\n","import $8SdCi$react, {createContext as $8SdCi$createContext, useContext as $8SdCi$useContext, forwardRef as $8SdCi$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 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// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $f39a9eba43920ace$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $8SdCi$createContext)(false);\nfunction $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement((0, $8SdCi$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $8SdCi$react).createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement(\"template\", null, children);\n}\nfunction $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $8SdCi$forwardRef)(Wrapper);\n}\nfunction $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {\n return (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$f39a9eba43920ace$export$94b6d0abf7d33e8c as HiddenContext, $f39a9eba43920ace$export$8dc98ba7eadeaa56 as Hidden, $f39a9eba43920ace$export$86427a43e3e48ebb as createHideableComponent, $f39a9eba43920ace$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.module.js.map\n","import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $hU2kz$useProgressBar} from \"react-aria\";\nimport {clamp as $hU2kz$clamp} from \"@react-stately/utils\";\nimport {filterDOMProps as $hU2kz$filterDOMProps, mergeProps as $hU2kz$mergeProps} from \"@react-aria/utils\";\nimport $hU2kz$react, {createContext as $hU2kz$createContext, forwardRef as $hU2kz$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\nconst $0393f8ab869a0f1a$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $hU2kz$createContext)(null);\nconst $0393f8ab869a0f1a$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $hU2kz$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $0393f8ab869a0f1a$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $hU2kz$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $hU2kz$useProgressBar)({\n ...props,\n label: label\n });\n // Calculate the width of the progress bar as a percentage\n let percentage = isIndeterminate ? undefined : (value - minValue) / (maxValue - minValue) * 100;\n let renderProps = (0, $64fa3d84918910a7$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, $hU2kz$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).div, {\n ...(0, $hU2kz$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $01b77f81d0f07f68$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$0393f8ab869a0f1a$export$e9f3bf65a26ce129 as ProgressBarContext, $0393f8ab869a0f1a$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $0393f8ab869a0f1a$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $fM325$announce} from \"@react-aria/live-announcer\";\nimport {useButton as $fM325$useButton, useFocusRing as $fM325$useFocusRing, useHover as $fM325$useHover, useId as $fM325$useId, mergeProps as $fM325$mergeProps} from \"react-aria\";\nimport {createHideableComponent as $fM325$createHideableComponent} from \"@react-aria/collections\";\nimport {filterDOMProps as $fM325$filterDOMProps} from \"@react-aria/utils\";\nimport $fM325$react, {createContext as $fM325$createContext, useRef as $fM325$useRef, useEffect as $fM325$useEffect} 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 $d2b4bc8c273e7be6$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $fM325$createContext)({});\nconst $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $fM325$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $fM325$useButton)(props, ref);\n buttonProps = $d2b4bc8c273e7be6$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $fM325$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $fM325$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending !== null && isPending !== void 0 ? isPending : false\n };\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $fM325$useId)(buttonProps.id);\n let progressId = (0, $fM325$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $fM325$useRef)(isPending);\n (0, $fM325$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $fM325$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $fM325$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $fM325$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $fM325$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).button, {\n ...(0, $fM325$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $fM325$react).createElement((0, $0393f8ab869a0f1a$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $d2b4bc8c273e7be6$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$d2b4bc8c273e7be6$export$24d547caef80ccd1 as ButtonContext, $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.module.js.map\n"],"names":["$8SdCi$createContext","$8SdCi$useContext","$8SdCi$react","$8SdCi$forwardRef","$bwqiF$usePress","$bwqiF$useFocusable","$bwqiF$mergeProps","$bwqiF$filterDOMProps","$hU2kz$createContext","$fM325$createContext","$fM325$createHideableComponent","$64fa3d84918910a7$export$29f1550f4b0d4415","$fM325$useButton","$fM325$useFocusRing","$fM325$useHover","$64fa3d84918910a7$export$4d86445c2cf5e3","$fM325$useId","$fM325$useRef","$fM325$useEffect","$fM325$announce","$fM325$filterDOMProps","$fM325$react","$64fa3d84918910a7$export$df3a06d6289f983e","$fM325$mergeProps"],"mappings":";;;;;AAUqE,MAAM,iDAAiD;AAC5H,IAAI,sCAAsC;AAC1C,SAAS,0CAA0C,SAAS,gBAAgB,aAAa,UAAU,gDAAgD;AAC/I,MAAI,CAAC,qCAAqC;AACtC,0CAAsC,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c77c2fe928, d as $64fa3d84918910a7$export$29f1550f4b0d4415, e as $64fa3d84918910a7$export$4d86445c2cf5e3, f as $bdb11010cef70236$export$f680877a34711e37, g as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-CrM80n1D.js";
1
+ import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $64fa3d84918910a7$export$29f1550f4b0d4415, f as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $bdb11010cef70236$export$f680877a34711e37, g as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-BnifjggO.js";
2
2
  import React__default, { forwardRef, useContext, createContext, useRef, useEffect } from "react";
3
- import { e as $f645667febf57a63$export$4c014de7c8940b4c, f as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, g as $f7dceffc5ad7768b$export$4e328f61c538687f, h as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useFocusRing-DFly-l-g.js";
4
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-DD9Ac1Tu.js";
3
+ import { q as $f645667febf57a63$export$4c014de7c8940b4c, r as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, s as $f7dceffc5ad7768b$export$4e328f61c538687f, t as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useFocusRing-BNfEYIMH.js";
4
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CZNWH-HG.js";
5
5
  const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
6
6
  let $319e236875307eab$var$liveAnnouncer = null;
7
7
  function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
@@ -265,4 +265,4 @@ export {
265
265
  $319e236875307eab$export$a9b970dcc4ae71a9 as b,
266
266
  $d2b4bc8c273e7be6$export$24d547caef80ccd1 as c
267
267
  };
268
- //# sourceMappingURL=Button-C0-RVnrA.js.map
268
+ //# sourceMappingURL=Button-aderR-2u.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button-C0-RVnrA.js","sources":["../../node_modules/.pnpm/@react-aria+live-announcer@3.4.4/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs","../../node_modules/.pnpm/@react-aria+collections@3.0.3_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/collections/dist/Hidden.mjs","../../node_modules/.pnpm/@react-aria+button@3.14.5_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/button/dist/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/ProgressBar.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/Button.mjs"],"sourcesContent":["/*\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 */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $319e236875307eab$var$liveAnnouncer = null;\nfunction $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n // @ts-ignore\n if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n }, 100);\n else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $319e236875307eab$export$d10ae4f68404609a(assertiveness) {\n if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $319e236875307eab$export$d8686216b8b81b2f() {\n if ($319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer.destroy();\n $319e236875307eab$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $319e236875307eab$var$LiveAnnouncer {\n isAttached() {\n var _this_node;\n return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n var _this_assertiveLog, _this_politeLog;\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);\n else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\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 });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n}\n\n\nexport {$319e236875307eab$export$a9b970dcc4ae71a9 as announce, $319e236875307eab$export$d10ae4f68404609a as clearAnnouncer, $319e236875307eab$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.module.js.map\n","import $8SdCi$react, {createContext as $8SdCi$createContext, useContext as $8SdCi$useContext, forwardRef as $8SdCi$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 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// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $f39a9eba43920ace$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $8SdCi$createContext)(false);\nfunction $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement((0, $8SdCi$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $8SdCi$react).createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement(\"template\", null, children);\n}\nfunction $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $8SdCi$forwardRef)(Wrapper);\n}\nfunction $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {\n return (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$f39a9eba43920ace$export$94b6d0abf7d33e8c as HiddenContext, $f39a9eba43920ace$export$8dc98ba7eadeaa56 as Hidden, $f39a9eba43920ace$export$86427a43e3e48ebb as createHideableComponent, $f39a9eba43920ace$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.module.js.map\n","import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $hU2kz$useProgressBar} from \"react-aria\";\nimport {clamp as $hU2kz$clamp} from \"@react-stately/utils\";\nimport {filterDOMProps as $hU2kz$filterDOMProps, mergeProps as $hU2kz$mergeProps} from \"@react-aria/utils\";\nimport $hU2kz$react, {createContext as $hU2kz$createContext, forwardRef as $hU2kz$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\nconst $0393f8ab869a0f1a$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $hU2kz$createContext)(null);\nconst $0393f8ab869a0f1a$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $hU2kz$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $0393f8ab869a0f1a$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $hU2kz$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $hU2kz$useProgressBar)({\n ...props,\n label: label\n });\n // Calculate the width of the progress bar as a percentage\n let percentage = isIndeterminate ? undefined : (value - minValue) / (maxValue - minValue) * 100;\n let renderProps = (0, $64fa3d84918910a7$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, $hU2kz$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).div, {\n ...(0, $hU2kz$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $01b77f81d0f07f68$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$0393f8ab869a0f1a$export$e9f3bf65a26ce129 as ProgressBarContext, $0393f8ab869a0f1a$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $0393f8ab869a0f1a$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $fM325$announce} from \"@react-aria/live-announcer\";\nimport {useButton as $fM325$useButton, useFocusRing as $fM325$useFocusRing, useHover as $fM325$useHover, useId as $fM325$useId, mergeProps as $fM325$mergeProps} from \"react-aria\";\nimport {createHideableComponent as $fM325$createHideableComponent} from \"@react-aria/collections\";\nimport {filterDOMProps as $fM325$filterDOMProps} from \"@react-aria/utils\";\nimport $fM325$react, {createContext as $fM325$createContext, useRef as $fM325$useRef, useEffect as $fM325$useEffect} 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 $d2b4bc8c273e7be6$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $fM325$createContext)({});\nconst $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $fM325$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $fM325$useButton)(props, ref);\n buttonProps = $d2b4bc8c273e7be6$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $fM325$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $fM325$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending !== null && isPending !== void 0 ? isPending : false\n };\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $fM325$useId)(buttonProps.id);\n let progressId = (0, $fM325$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $fM325$useRef)(isPending);\n (0, $fM325$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $fM325$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $fM325$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $fM325$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $fM325$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).button, {\n ...(0, $fM325$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $fM325$react).createElement((0, $0393f8ab869a0f1a$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $d2b4bc8c273e7be6$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$d2b4bc8c273e7be6$export$24d547caef80ccd1 as ButtonContext, $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.module.js.map\n"],"names":["$8SdCi$createContext","$8SdCi$useContext","$8SdCi$react","$8SdCi$forwardRef","$bwqiF$usePress","$bwqiF$useFocusable","$bwqiF$mergeProps","$bwqiF$filterDOMProps","$hU2kz$createContext","$fM325$createContext","$fM325$createHideableComponent","$fM325$useButton","$fM325$useFocusRing","$fM325$useHover","$fM325$useId","$fM325$useRef","$fM325$useEffect","$fM325$announce","$fM325$filterDOMProps","$fM325$react","$fM325$mergeProps"],"mappings":";;;;AAUqE,MAAM,iDAAiD;AAC5H,IAAI,sCAAsC;AAC1C,SAAS,0CAA0C,SAAS,gBAAgB,aAAa,UAAU,gDAAgD;AAC/I,MAAI,CAAC,qCAAqC;AACtC,0CAAsC,IAAI,oCAAmC;AAQ7E,QAAI,EAAE,OAAO,6BAA6B,YAAY,2BAA2B,OAAO,SAAS,aAAc,YAAW,MAAI;AAC1H,UAAI,wCAAwC,QAAQ,wCAAwC,SAAS,SAAS,oCAAoC,aAAc,yCAAwC,QAAQ,wCAAwC,SAAS,SAAS,oCAAoC,SAAS,SAAS,eAAe,OAAO;AAAA,IAC1V,GAAG,GAAG;AAAA,QACD,qCAAoC,SAAS,SAAS,eAAe,OAAO;AAAA,EACrF,MAAO,qCAAoC,SAAS,SAAS,eAAe,OAAO;AACvF;AAgBA,MAAM,oCAAoC;AAAA,EACtC,aAAa;AACT,QAAI;AACJ,YAAQ,aAAa,KAAK,UAAU,QAAQ,eAAe,SAAS,SAAS,WAAW;AAAA,EAC5F;AAAA,EACA,UAAU,UAAU;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;AAAA,IACrC,gBAAgB,aAAa,aAAa;AAAA,IAC1C,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,sBAAsB,kBAAkB;AAAA,EAChD,GAAyBD,+BAAc,cAAkB,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,IAAI;AAAA,IAChB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;AAED,MAAM,gDAAgD;AACtD,SAAS,6CAA6C,OAAO,WAAW;AACpE,MAAI,WAAW;AACX,eAAU,OAAO,MAAM,KAAI,IAAI,WAAW,IAAI,KAAK,CAAC,8CAA8C,KAAK,GAAG,EAAG,OAAM,GAAG,IAAI;AAC1H,UAAM,OAAO;AACb,UAAM,SAAS;AAAA,EACnB;AACA,SAAO;AACX;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"Button-aderR-2u.js","sources":["../../node_modules/.pnpm/@react-aria+live-announcer@3.4.4/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs","../../node_modules/.pnpm/@react-aria+collections@3.0.3_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/collections/dist/Hidden.mjs","../../node_modules/.pnpm/@react-aria+button@3.14.5_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/button/dist/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/ProgressBar.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/Button.mjs"],"sourcesContent":["/*\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 */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $319e236875307eab$var$liveAnnouncer = null;\nfunction $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n // @ts-ignore\n if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n }, 100);\n else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $319e236875307eab$export$d10ae4f68404609a(assertiveness) {\n if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $319e236875307eab$export$d8686216b8b81b2f() {\n if ($319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer.destroy();\n $319e236875307eab$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $319e236875307eab$var$LiveAnnouncer {\n isAttached() {\n var _this_node;\n return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n var _this_assertiveLog, _this_politeLog;\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);\n else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\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 });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n}\n\n\nexport {$319e236875307eab$export$a9b970dcc4ae71a9 as announce, $319e236875307eab$export$d10ae4f68404609a as clearAnnouncer, $319e236875307eab$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.module.js.map\n","import $8SdCi$react, {createContext as $8SdCi$createContext, useContext as $8SdCi$useContext, forwardRef as $8SdCi$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 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// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $f39a9eba43920ace$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $8SdCi$createContext)(false);\nfunction $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement((0, $8SdCi$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $8SdCi$react).createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $8SdCi$react).createElement(\"template\", null, children);\n}\nfunction $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $8SdCi$forwardRef)(Wrapper);\n}\nfunction $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {\n return (0, $8SdCi$useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$f39a9eba43920ace$export$94b6d0abf7d33e8c as HiddenContext, $f39a9eba43920ace$export$8dc98ba7eadeaa56 as Hidden, $f39a9eba43920ace$export$86427a43e3e48ebb as createHideableComponent, $f39a9eba43920ace$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.module.js.map\n","import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {useProgressBar as $hU2kz$useProgressBar} from \"react-aria\";\nimport {clamp as $hU2kz$clamp} from \"@react-stately/utils\";\nimport {filterDOMProps as $hU2kz$filterDOMProps, mergeProps as $hU2kz$mergeProps} from \"@react-aria/utils\";\nimport $hU2kz$react, {createContext as $hU2kz$createContext, forwardRef as $hU2kz$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\nconst $0393f8ab869a0f1a$export$e9f3bf65a26ce129 = /*#__PURE__*/ (0, $hU2kz$createContext)(null);\nconst $0393f8ab869a0f1a$export$c17561cb55d4db30 = /*#__PURE__*/ (0, $hU2kz$forwardRef)(function ProgressBar(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $0393f8ab869a0f1a$export$e9f3bf65a26ce129);\n let { value: value = 0, minValue: minValue = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false } = props;\n value = (0, $hU2kz$clamp)(value, minValue, maxValue);\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $hU2kz$useProgressBar)({\n ...props,\n label: label\n });\n // Calculate the width of the progress bar as a percentage\n let percentage = isIndeterminate ? undefined : (value - minValue) / (maxValue - minValue) * 100;\n let renderProps = (0, $64fa3d84918910a7$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, $hU2kz$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).div, {\n ...(0, $hU2kz$mergeProps)(DOMProps, renderProps, progressBarProps),\n ref: ref,\n slot: props.slot || undefined\n }, /*#__PURE__*/ (0, $hU2kz$react).createElement((0, $01b77f81d0f07f68$export$75b6ee27786ba447).Provider, {\n value: {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n }, renderProps.children));\n});\n\n\nexport {$0393f8ab869a0f1a$export$e9f3bf65a26ce129 as ProgressBarContext, $0393f8ab869a0f1a$export$c17561cb55d4db30 as ProgressBar};\n//# sourceMappingURL=ProgressBar.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $0393f8ab869a0f1a$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $fM325$announce} from \"@react-aria/live-announcer\";\nimport {useButton as $fM325$useButton, useFocusRing as $fM325$useFocusRing, useHover as $fM325$useHover, useId as $fM325$useId, mergeProps as $fM325$mergeProps} from \"react-aria\";\nimport {createHideableComponent as $fM325$createHideableComponent} from \"@react-aria/collections\";\nimport {filterDOMProps as $fM325$filterDOMProps} from \"@react-aria/utils\";\nimport $fM325$react, {createContext as $fM325$createContext, useRef as $fM325$useRef, useEffect as $fM325$useEffect} 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 $d2b4bc8c273e7be6$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $fM325$createContext)({});\nconst $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $fM325$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $fM325$useButton)(props, ref);\n buttonProps = $d2b4bc8c273e7be6$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $fM325$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $fM325$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending !== null && isPending !== void 0 ? isPending : false\n };\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $fM325$useId)(buttonProps.id);\n let progressId = (0, $fM325$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $fM325$useRef)(isPending);\n (0, $fM325$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $fM325$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $fM325$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $fM325$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $fM325$react).createElement((0, $64fa3d84918910a7$export$df3a06d6289f983e).button, {\n ...(0, $fM325$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $fM325$react).createElement((0, $0393f8ab869a0f1a$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $d2b4bc8c273e7be6$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$d2b4bc8c273e7be6$export$24d547caef80ccd1 as ButtonContext, $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.module.js.map\n"],"names":["$8SdCi$createContext","$8SdCi$useContext","$8SdCi$react","$8SdCi$forwardRef","$bwqiF$usePress","$bwqiF$useFocusable","$bwqiF$mergeProps","$bwqiF$filterDOMProps","$hU2kz$createContext","$fM325$createContext","$fM325$createHideableComponent","$fM325$useButton","$fM325$useFocusRing","$fM325$useHover","$fM325$useId","$fM325$useRef","$fM325$useEffect","$fM325$announce","$fM325$filterDOMProps","$fM325$react","$fM325$mergeProps"],"mappings":";;;;AAUqE,MAAM,iDAAiD;AAC5H,IAAI,sCAAsC;AAC1C,SAAS,0CAA0C,SAAS,gBAAgB,aAAa,UAAU,gDAAgD;A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W,CAAIA,0CAAiB,SAAS,WAAW;AACjG,eAAW,UAAU;AAAA,EACzB,GAAG;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AACD,MAAI,WAAeC,0CAAuB,OAAO;AAAA,IAC7C,QAAQ;AAAA,EAChB,CAAK;AACD,SAAO,SAAS;AAChB,SAAyBC,+BAAc,cAAkB,0CAA2C,QAAQ;AAAA,IACxG,GAAOC,0CAAmB,UAAU,aAAa,aAAa,YAAY,UAAU;AAAA;AAAA;AAAA,IAGpF,MAAM,YAAY,SAAS,YAAY,YAAY,WAAW,YAAY;AAAA,IAC1E,IAAI;AAAA,IACJ;AAAA,IACA,mBAAmB;AAAA,IACnB,MAAM,MAAM,QAAQ;AAAA,IACpB,iBAAiB,YAAY,SAAS,YAAY,eAAe;AAAA,IACjE,iBAAiB,MAAM,cAAc;AAAA,IACrC,gBAAgB,aAAa,aAAa;AAAA,IAC1C,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,sBAAsB,kBAAkB;AAAA,EAChD,GAAyBD,+BAAc,cAAkB,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,IAAI;AAAA,IAChB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;AAED,MAAM,gDAAgD;AACtD,SAAS,6CAA6C,OAAO,WAAW;AACpE,MAAI,WAAW;AACX,eAAU,OAAO,MAAM,KAAI,IAAI,WAAW,IAAI,KAAK,CAAC,8CAA8C,KAAK,GAAG,EAAG,OAAM,GAAG,IAAI;AAC1H,UAAM,OAAO;AACb,UAAM,SAAS;AAAA,EACnB;AACA,SAAO;AACX;","x_google_ignoreList":[0,1,2,3,4]}
@@ -0,0 +1,49 @@
1
+ import { c as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-BnifjggO.js";
2
+ import { createContext } from "react";
3
+ function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
4
+ let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
5
+ id = $bdb11010cef70236$export$f680877a34711e37(id);
6
+ if (labelledBy && label) {
7
+ let ids = /* @__PURE__ */ new Set([
8
+ id,
9
+ ...labelledBy.trim().split(/\s+/)
10
+ ]);
11
+ labelledBy = [
12
+ ...ids
13
+ ].join(" ");
14
+ } else if (labelledBy) labelledBy = labelledBy.trim().split(/\s+/).join(" ");
15
+ if (!label && !labelledBy && defaultLabel) label = defaultLabel;
16
+ return {
17
+ id,
18
+ "aria-label": label,
19
+ "aria-labelledby": labelledBy
20
+ };
21
+ }
22
+ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
23
+ let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
24
+ id = $bdb11010cef70236$export$f680877a34711e37(id);
25
+ let labelId = $bdb11010cef70236$export$f680877a34711e37();
26
+ let labelProps = {};
27
+ if (label) {
28
+ ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;
29
+ labelProps = {
30
+ id: labelId,
31
+ htmlFor: labelElementType === "label" ? id : void 0
32
+ };
33
+ } else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== "production") ;
34
+ let fieldProps = $313b98861ee5dd6c$export$d6875122194c7b44({
35
+ id,
36
+ "aria-label": ariaLabel,
37
+ "aria-labelledby": ariaLabelledby
38
+ });
39
+ return {
40
+ labelProps,
41
+ fieldProps
42
+ };
43
+ }
44
+ const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
45
+ export {
46
+ $d191a55c9702f145$export$8467354a121f1b9f as $,
47
+ $01b77f81d0f07f68$export$75b6ee27786ba447 as a
48
+ };
49
+ //# sourceMappingURL=Label-CSmRiAOy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label-CSmRiAOy.js","sources":["../../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/utils/dist/useLabels.mjs","../../node_modules/.pnpm/@react-aria+label@3.7.25_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@react-aria/label/dist/useLabel.mjs","../../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/react-aria-components/dist/Label.mjs"],"sourcesContent":["import {useId as $bdb11010cef70236$export$f680877a34711e37} from \"./useId.mjs\";\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 */ \nfunction $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {\n let { id: id, 'aria-label': label, 'aria-labelledby': labelledBy } = props;\n // If there is both an aria-label and aria-labelledby,\n // combine them by pointing to the element itself.\n id = (0, $bdb11010cef70236$export$f680877a34711e37)(id);\n if (labelledBy && label) {\n let ids = new Set([\n id,\n ...labelledBy.trim().split(/\\s+/)\n ]);\n labelledBy = [\n ...ids\n ].join(' ');\n } else if (labelledBy) labelledBy = labelledBy.trim().split(/\\s+/).join(' ');\n // If no labels are provided, use the default\n if (!label && !labelledBy && defaultLabel) label = defaultLabel;\n return {\n id: id,\n 'aria-label': label,\n 'aria-labelledby': labelledBy\n };\n}\n\n\nexport {$313b98861ee5dd6c$export$d6875122194c7b44 as useLabels};\n//# sourceMappingURL=useLabels.module.js.map\n","import {useId as $83Elw$useId, useLabels as $83Elw$useLabels} from \"@react-aria/utils\";\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 */ \nfunction $d191a55c9702f145$export$8467354a121f1b9f(props) {\n let { id: id, label: label, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, labelElementType: labelElementType = 'label' } = props;\n id = (0, $83Elw$useId)(id);\n let labelId = (0, $83Elw$useId)();\n let labelProps = {};\n if (label) {\n ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;\n labelProps = {\n id: labelId,\n htmlFor: labelElementType === 'label' ? id : undefined\n };\n } else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility');\n let fieldProps = (0, $83Elw$useLabels)({\n id: id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps\n };\n}\n\n\nexport {$d191a55c9702f145$export$8467354a121f1b9f as useLabel};\n//# sourceMappingURL=useLabel.module.js.map\n","import {dom as $64fa3d84918910a7$export$df3a06d6289f983e, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415} from \"./utils.mjs\";\nimport {createHideableComponent as $kc2Tc$createHideableComponent} from \"@react-aria/collections\";\nimport $kc2Tc$react, {createContext as $kc2Tc$createContext} 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\nconst $01b77f81d0f07f68$export$75b6ee27786ba447 = /*#__PURE__*/ (0, $kc2Tc$createContext)({});\nconst $01b77f81d0f07f68$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, $kc2Tc$createHideableComponent)(function Label(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);\n let { elementType: elementType = 'label', ...labelProps } = props;\n let ElementType = (0, $64fa3d84918910a7$export$df3a06d6289f983e)[elementType];\n // @ts-ignore\n return /*#__PURE__*/ (0, $kc2Tc$react).createElement(ElementType, {\n className: \"react-aria-Label\",\n ...labelProps,\n ref: ref\n });\n});\n\n\nexport {$01b77f81d0f07f68$export$75b6ee27786ba447 as LabelContext, $01b77f81d0f07f68$export$b04be29aa201d4f5 as Label};\n//# sourceMappingURL=Label.module.js.map\n"],"names":["$83Elw$useId","$83Elw$useLabels","$kc2Tc$createContext"],"mappings":";;AAaA,SAAS,0CAA0C,OAAO,cAAc;AACpE,MAAI,EAAE,IAAQ,cAAc,OAAO,mBAAmB,WAAU,IAAK;AAGrE,OAAS,0CAA2C,EAAE;AACtD,MAAI,cAAc,OAAO;AACrB,QAAI,MAAM,oBAAI,IAAI;AAAA,MACd;AAAA,MACA,GAAG,WAAW,OAAO,MAAM,KAAK;AAAA,IAC5C,CAAS;AACD,iBAAa;AAAA,MACT,GAAG;AAAA,IACf,EAAU,KAAK,GAAG;AAAA,EACd,WAAW,WAAY,cAAa,WAAW,OAAO,MAAM,KAAK,EAAE,KAAK,GAAG;AAE3E,MAAI,CAAC,SAAS,CAAC,cAAc,aAAc,SAAQ;AACnD,SAAO;AAAA,IACH;AAAA,IACA,cAAc;AAAA,IACd,mBAAmB;AAAA,EAC3B;AACA;ACrBA,SAAS,0CAA0C,OAAO;AACtD,MAAI,EAAE,IAAQ,OAAc,mBAAmB,gBAAgB,cAAc,WAAW,mBAAqC,QAAO,IAAK;AACzI,OAASA,0CAAc,EAAE;AACzB,MAAI,UAAcA,0CAAY;AAC9B,MAAI,aAAa,CAAA;AACjB,MAAI,OAAO;AACP,qBAAiB,iBAAiB,GAAG,OAAO,IAAI,cAAc,KAAK;AACnE,iBAAa;AAAA,MACT,IAAI;AAAA,MACJ,SAAS,qBAAqB,UAAU,KAAK;AAAA,IACzD;AAAA,EACI,WAAW,CAAC,kBAAkB,CAAC,aAAa,QAAQ,IAAI,aAAa,aAAc;AACnF,MAAI,aAAiBC,0CAAkB;AAAA,IACnC;AAAA,IACA,cAAc;AAAA,IACd,mBAAmB;AAAA,EAC3B,CAAK;AACD,SAAO;AAAA,IACH;AAAA,IACA;AAAA,EACR;AACA;ACjBK,MAAC,4CAA8DC,8BAAsB,CAAA,CAAE;","x_google_ignoreList":[0,1,2]}