@react-spectrum/color 3.0.1 → 3.0.3

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 (75) hide show
  1. package/dist/ColorArea.main.js +2 -5
  2. package/dist/ColorArea.main.js.map +1 -1
  3. package/dist/ColorArea.mjs +2 -5
  4. package/dist/ColorArea.module.js +2 -5
  5. package/dist/ColorArea.module.js.map +1 -1
  6. package/dist/ColorEditor.f85fa1f2.css +20 -0
  7. package/dist/ColorEditor.f85fa1f2.css.map +1 -0
  8. package/dist/ColorEditor.main.js +13 -16
  9. package/dist/ColorEditor.main.js.map +1 -1
  10. package/dist/ColorEditor.mjs +13 -16
  11. package/dist/ColorEditor.module.js +13 -16
  12. package/dist/ColorEditor.module.js.map +1 -1
  13. package/dist/ColorField.main.js +2 -5
  14. package/dist/ColorField.main.js.map +1 -1
  15. package/dist/ColorField.mjs +2 -5
  16. package/dist/ColorField.module.js +2 -5
  17. package/dist/ColorField.module.js.map +1 -1
  18. package/dist/ColorPicker.96797a19.css +206 -0
  19. package/dist/ColorPicker.96797a19.css.map +1 -0
  20. package/dist/ColorPicker.main.js +37 -40
  21. package/dist/ColorPicker.main.js.map +1 -1
  22. package/dist/ColorPicker.mjs +37 -40
  23. package/dist/ColorPicker.module.js +37 -40
  24. package/dist/ColorPicker.module.js.map +1 -1
  25. package/dist/ColorSlider.main.js +3 -6
  26. package/dist/ColorSlider.main.js.map +1 -1
  27. package/dist/ColorSlider.mjs +3 -6
  28. package/dist/ColorSlider.module.js +3 -6
  29. package/dist/ColorSlider.module.js.map +1 -1
  30. package/dist/ColorSwatch.fabed858.css +260 -0
  31. package/dist/ColorSwatch.fabed858.css.map +1 -0
  32. package/dist/ColorSwatch.main.js +31 -34
  33. package/dist/ColorSwatch.main.js.map +1 -1
  34. package/dist/ColorSwatch.mjs +32 -35
  35. package/dist/ColorSwatch.module.js +32 -35
  36. package/dist/ColorSwatch.module.js.map +1 -1
  37. package/dist/ColorSwatchPicker.25f8fb63.css +356 -0
  38. package/dist/ColorSwatchPicker.25f8fb63.css.map +1 -0
  39. package/dist/ColorSwatchPicker.main.js +42 -45
  40. package/dist/ColorSwatchPicker.main.js.map +1 -1
  41. package/dist/ColorSwatchPicker.mjs +42 -45
  42. package/dist/ColorSwatchPicker.module.js +42 -45
  43. package/dist/ColorSwatchPicker.module.js.map +1 -1
  44. package/dist/ColorWheel.main.js +2 -6
  45. package/dist/ColorWheel.main.js.map +1 -1
  46. package/dist/ColorWheel.mjs +2 -6
  47. package/dist/ColorWheel.module.js +2 -6
  48. package/dist/ColorWheel.module.js.map +1 -1
  49. package/dist/colorhandle_vars_css.main.js.map +1 -1
  50. package/dist/colorhandle_vars_css.module.js.map +1 -1
  51. package/dist/colorslider_vars_css.main.js.map +1 -1
  52. package/dist/colorslider_vars_css.module.js.map +1 -1
  53. package/dist/colorwheel_vars_css.main.js.map +1 -1
  54. package/dist/colorwheel_vars_css.module.js.map +1 -1
  55. package/dist/types.d.ts +7 -7
  56. package/dist/types.d.ts.map +1 -1
  57. package/dist/{vars.d78ec0e6.css → vars.a54898d8.css} +2 -2
  58. package/dist/{vars.d78ec0e6.css.map → vars.a54898d8.css.map} +1 -1
  59. package/package.json +23 -23
  60. package/src/ColorArea.tsx +5 -8
  61. package/src/ColorEditor.tsx +5 -8
  62. package/src/ColorField.tsx +5 -8
  63. package/src/ColorPicker.tsx +5 -8
  64. package/src/ColorSlider.tsx +5 -8
  65. package/src/ColorSwatch.tsx +5 -8
  66. package/src/ColorSwatchPicker.tsx +5 -8
  67. package/src/ColorWheel.tsx +5 -9
  68. package/dist/ColorEditor.32e497e8.css +0 -20
  69. package/dist/ColorEditor.32e497e8.css.map +0 -1
  70. package/dist/ColorPicker.ab9f47c0.css +0 -204
  71. package/dist/ColorPicker.ab9f47c0.css.map +0 -1
  72. package/dist/ColorSwatch.f6e6f811.css +0 -260
  73. package/dist/ColorSwatch.f6e6f811.css.map +0 -1
  74. package/dist/ColorSwatchPicker.1575be06.css +0 -356
  75. package/dist/ColorSwatchPicker.1575be06.css.map +0 -1
@@ -1,7 +1,7 @@
1
- import "./ColorSwatch.f6e6f811.css";
1
+ import "./ColorSwatch.fabed858.css";
2
2
  import {useColorSwatch as $5Pjc1$useColorSwatch} from "@react-aria/color";
3
3
  import {useContextProps as $5Pjc1$useContextProps, ColorSwatchContext as $5Pjc1$ColorSwatchContext} from "react-aria-components";
4
- import $5Pjc1$react, {createContext as $5Pjc1$createContext, useContext as $5Pjc1$useContext, forwardRef as $5Pjc1$forwardRef} from "react";
4
+ import $5Pjc1$react, {createContext as $5Pjc1$createContext, forwardRef as $5Pjc1$forwardRef, useContext as $5Pjc1$useContext} from "react";
5
5
  import {useDOMRef as $5Pjc1$useDOMRef, useStyleProps as $5Pjc1$useStyleProps} from "@react-spectrum/utils";
6
6
 
7
7
  /*
@@ -19,7 +19,7 @@ import {useDOMRef as $5Pjc1$useDOMRef, useStyleProps as $5Pjc1$useStyleProps} fr
19
19
 
20
20
 
21
21
  const $d68786ae409fa722$export$8529d7908a78c058 = /*#__PURE__*/ (0, $5Pjc1$createContext)(null);
22
- function $d68786ae409fa722$var$ColorSwatch(props, ref) {
22
+ const $d68786ae409fa722$export$cae13e90592f246a = /*#__PURE__*/ (0, $5Pjc1$forwardRef)(function ColorSwatch(props, ref) {
23
23
  let domRef = (0, $5Pjc1$useDOMRef)(ref);
24
24
  [props, domRef] = (0, $5Pjc1$useContextProps)(props, domRef, (0, $5Pjc1$ColorSwatchContext));
25
25
  let { colorSwatchProps: colorSwatchProps, color: color } = (0, $5Pjc1$useColorSwatch)(props);
@@ -37,34 +37,34 @@ function $d68786ae409fa722$var$ColorSwatch(props, ref) {
37
37
  },
38
38
  className: styleProps.className + function anonymous(props) {
39
39
  let rules = "";
40
- if (props.size === "L") rules += ' ok';
41
- else if (props.size === "M") rules += ' oi';
42
- else if (props.size === "S") rules += ' og';
43
- else if (props.size === "XS") rules += ' oe';
44
- if (props.size === "L") rules += ' nk';
45
- else if (props.size === "M") rules += ' ni';
46
- else if (props.size === "S") rules += ' ng';
47
- else if (props.size === "XS") rules += ' ne';
48
- if (props.rounding === "full") rules += ' _pf';
49
- else if (props.rounding === "none") rules += ' _pa';
50
- else if (props.rounding === "default") rules += ' _pc';
51
- if (props.rounding === "full") rules += ' _qf';
52
- else if (props.rounding === "none") rules += ' _qa';
53
- else if (props.rounding === "default") rules += ' _qc';
54
- if (props.rounding === "full") rules += ' _rf';
55
- else if (props.rounding === "none") rules += ' _ra';
56
- else if (props.rounding === "default") rules += ' _rc';
57
- if (props.rounding === "full") rules += ' _sf';
58
- else if (props.rounding === "none") rules += ' _sa';
59
- else if (props.rounding === "default") rules += ' _sc';
60
- rules += ' c-1n5whoe';
61
- rules += ' wb';
62
- rules += ' xb';
63
- rules += ' ub';
64
- rules += ' vb';
65
- rules += ' Aa';
66
- rules += ' __ka';
67
- rules += ' _tb';
40
+ if (props.size === "L") rules += ' s1-os1-k';
41
+ else if (props.size === "M") rules += ' s1-os1-i';
42
+ else if (props.size === "S") rules += ' s1-os1-g';
43
+ else if (props.size === "XS") rules += ' s1-os1-e';
44
+ if (props.size === "L") rules += ' s1-ns1-k';
45
+ else if (props.size === "M") rules += ' s1-ns1-i';
46
+ else if (props.size === "S") rules += ' s1-ns1-g';
47
+ else if (props.size === "XS") rules += ' s1-ns1-e';
48
+ if (props.rounding === "full") rules += ' s1-_ps1-f';
49
+ else if (props.rounding === "none") rules += ' s1-_ps1-a';
50
+ else if (props.rounding === "default") rules += ' s1-_ps1-c';
51
+ if (props.rounding === "full") rules += ' s1-_qs1-f';
52
+ else if (props.rounding === "none") rules += ' s1-_qs1-a';
53
+ else if (props.rounding === "default") rules += ' s1-_qs1-c';
54
+ if (props.rounding === "full") rules += ' s1-_rs1-f';
55
+ else if (props.rounding === "none") rules += ' s1-_rs1-a';
56
+ else if (props.rounding === "default") rules += ' s1-_rs1-c';
57
+ if (props.rounding === "full") rules += ' s1-_ss1-f';
58
+ else if (props.rounding === "none") rules += ' s1-_ss1-a';
59
+ else if (props.rounding === "default") rules += ' s1-_ss1-c';
60
+ rules += ' s1-c-1n5whoe';
61
+ rules += ' s1-ws1-b';
62
+ rules += ' s1-xs1-b';
63
+ rules += ' s1-us1-b';
64
+ rules += ' s1-vs1-b';
65
+ rules += ' s1-As1-a';
66
+ rules += ' s1-__ks1-a';
67
+ rules += ' s1-_ts1-b';
68
68
  return rules;
69
69
  }({
70
70
  size: size,
@@ -74,10 +74,7 @@ function $d68786ae409fa722$var$ColorSwatch(props, ref) {
74
74
  // ColorSwatchPicker needs to wrap the swatch in a ListBoxItem.
75
75
  if (ctx) return ctx.useWrapper(swatch, color, rounding);
76
76
  return swatch;
77
- }
78
- /**
79
- * A ColorSwatch displays a preview of a selected color.
80
- */ let $d68786ae409fa722$export$cae13e90592f246a = /*#__PURE__*/ (0, $5Pjc1$forwardRef)($d68786ae409fa722$var$ColorSwatch);
77
+ });
81
78
 
82
79
 
83
80
  export {$d68786ae409fa722$export$8529d7908a78c058 as SpectrumColorSwatchContext, $d68786ae409fa722$export$cae13e90592f246a as ColorSwatch};
@@ -1 +1 @@
1
- {"mappings":";;;;;;AAAA;;;;;;;;;;CAUC;;;;AA2BM,MAAM,0DAA6B,CAAA,GAAA,oBAAY,EAA0C;AAEhG,SAAS,kCAAY,KAA+B,EAAE,GAA2B;IAC/E,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,yBAAiB;IAClE,IAAI,oBAAC,gBAAgB,SAAE,KAAK,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;IAC/C,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,MAAM,CAAA,GAAA,iBAAS,EAAE;IACrB,IAAI,QACF,OAAO,CAAA,gBAAA,0BAAA,IAAK,IAAI,KAAI,eACpB,WAAW,CAAA,gBAAA,0BAAA,IAAK,QAAQ,KAAI,WAC7B,GAAG;IAEJ,IAAI,uBACF,gCAAC;QACE,GAAG,gBAAgB;QACnB,GAAG,UAAU;QACd,KAAK;QACL,OAAO;YACL,GAAG,WAAW,KAAK;YACnB,oFAAoF;YACpF,YAAY,MAAM,eAAe,CAAC,WAAW,IACzC,CAAC,gBAAgB,EAAE,MAAM,EAAE,EAAE,MAAM,4EAA4E,CAAC,GAEhH;QACN;QACA,WAAW,WAAW,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuB/B;kBAAC;sBAAM;QAAQ;;IAGtB,+DAA+D;IAC/D,IAAI,KACF,OAAO,IAAI,UAAU,CAAC,QAAQ,OAAO;IAGvC,OAAO;AACT;AAEA;;CAEC,GACD,IAAI,0DAAe,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/color/src/ColorSwatch.tsx"],"sourcesContent":["/*\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\nimport {AriaColorSwatchProps, useColorSwatch} from '@react-aria/color';\nimport {Color} from '@react-types/color';\nimport {ColorSwatchContext, useContextProps} from 'react-aria-components';\nimport {DOMRef, StyleProps} from '@react-types/shared';\nimport React, {createContext, forwardRef, JSX, ReactElement, useContext} from 'react';\nimport {style} from '@react-spectrum/style-macro-s1' with {type: 'macro'};\nimport {useDOMRef, useStyleProps} from '@react-spectrum/utils';\n\nexport interface SpectrumColorSwatchProps extends AriaColorSwatchProps, StyleProps {\n /**\n * The size of the ColorSwatch.\n * @default \"M\"\n */\n size?: 'XS' | 'S' | 'M' | 'L',\n /**\n * The corner rounding of the ColorSwatch.\n * @default \"default\"\n */\n rounding?: 'default' | 'none' | 'full'\n}\n\ninterface SpectrumColorSwatchContextValue extends Pick<SpectrumColorSwatchProps, 'size' | 'rounding'> {\n useWrapper: (swatch: ReactElement, color: Color, rounding: SpectrumColorSwatchProps['rounding']) => JSX.Element\n}\n\nexport const SpectrumColorSwatchContext = createContext<SpectrumColorSwatchContextValue | null>(null);\n\nfunction ColorSwatch(props: SpectrumColorSwatchProps, ref: DOMRef<HTMLDivElement>): JSX.Element {\n let domRef = useDOMRef(ref);\n [props, domRef] = useContextProps(props, domRef, ColorSwatchContext);\n let {colorSwatchProps, color} = useColorSwatch(props);\n let {styleProps} = useStyleProps(props);\n let ctx = useContext(SpectrumColorSwatchContext);\n let {\n size = ctx?.size || 'M',\n rounding = ctx?.rounding || 'default'\n } = props;\n\n let swatch = (\n <div\n {...colorSwatchProps}\n {...styleProps}\n ref={domRef}\n style={{\n ...styleProps.style,\n // TODO: should there be a distinction between transparent and no value (e.g. null)?\n background: color.getChannelValue('alpha') > 0\n ? `linear-gradient(${color}, ${color}), repeating-conic-gradient(#e6e6e6 0% 25%, white 0% 50%) 0% 50% / 16px 16px`\n // Red slash to indicate there is no selected color.\n : 'linear-gradient(to bottom right, transparent calc(50% - 2px), var(--spectrum-red-900) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) no-repeat'\n }}\n className={styleProps.className + style({\n size: {\n size: {\n XS: 4,\n S: 6,\n M: 8,\n L: 10\n }\n },\n borderRadius: {\n rounding: {\n default: 'default',\n none: 'none',\n full: 'full'\n }\n },\n // Trick to create a partially transparent color from a variable.\n // Ideally we'd use relative color syntax for this but it's not in Firefox yet.\n borderColor: '[color-mix(in srgb, var(--spectrum-gray-900), transparent 49%)]',\n borderWidth: 1,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n forcedColorAdjust: 'none'\n })({size, rounding})} />\n );\n\n // ColorSwatchPicker needs to wrap the swatch in a ListBoxItem.\n if (ctx) {\n return ctx.useWrapper(swatch, color, rounding);\n }\n\n return swatch;\n}\n\n/**\n * A ColorSwatch displays a preview of a selected color.\n */\nlet _ColorSwatch = forwardRef(ColorSwatch);\nexport {_ColorSwatch as ColorSwatch};\n"],"names":[],"version":3,"file":"ColorSwatch.module.js.map"}
1
+ {"mappings":";;;;;;AAAA;;;;;;;;;;CAUC;;;;AA2BM,MAAM,0DAA6B,CAAA,GAAA,oBAAY,EAA0C;AAKzF,MAAM,0DAAc,CAAA,GAAA,iBAAS,EAAE,SAAS,YAAY,KAA+B,EAAE,GAA2B;IACrH,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,yBAAiB;IAClE,IAAI,oBAAC,gBAAgB,SAAE,KAAK,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;IAC/C,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,MAAM,CAAA,GAAA,iBAAS,EAAE;IACrB,IAAI,QACF,OAAO,CAAA,gBAAA,0BAAA,IAAK,IAAI,KAAI,eACpB,WAAW,CAAA,gBAAA,0BAAA,IAAK,QAAQ,KAAI,WAC7B,GAAG;IAEJ,IAAI,uBACF,gCAAC;QACE,GAAG,gBAAgB;QACnB,GAAG,UAAU;QACd,KAAK;QACL,OAAO;YACL,GAAG,WAAW,KAAK;YACnB,oFAAoF;YACpF,YAAY,MAAM,eAAe,CAAC,WAAW,IACzC,CAAC,gBAAgB,EAAE,MAAM,EAAE,EAAE,MAAM,4EAA4E,CAAC,GAEhH;QACN;QACA,WAAW,WAAW,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuB/B;kBAAC;sBAAM;QAAQ;;IAGtB,+DAA+D;IAC/D,IAAI,KACF,OAAO,IAAI,UAAU,CAAC,QAAQ,OAAO;IAGvC,OAAO;AACT","sources":["packages/@react-spectrum/color/src/ColorSwatch.tsx"],"sourcesContent":["/*\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\nimport {AriaColorSwatchProps, useColorSwatch} from '@react-aria/color';\nimport {Color} from '@react-types/color';\nimport {ColorSwatchContext, useContextProps} from 'react-aria-components';\nimport {DOMRef, StyleProps} from '@react-types/shared';\nimport React, {createContext, forwardRef, JSX, ReactElement, useContext} from 'react';\nimport {style} from '@react-spectrum/style-macro-s1' with {type: 'macro'};\nimport {useDOMRef, useStyleProps} from '@react-spectrum/utils';\n\nexport interface SpectrumColorSwatchProps extends AriaColorSwatchProps, StyleProps {\n /**\n * The size of the ColorSwatch.\n * @default \"M\"\n */\n size?: 'XS' | 'S' | 'M' | 'L',\n /**\n * The corner rounding of the ColorSwatch.\n * @default \"default\"\n */\n rounding?: 'default' | 'none' | 'full'\n}\n\ninterface SpectrumColorSwatchContextValue extends Pick<SpectrumColorSwatchProps, 'size' | 'rounding'> {\n useWrapper: (swatch: ReactElement, color: Color, rounding: SpectrumColorSwatchProps['rounding']) => JSX.Element\n}\n\nexport const SpectrumColorSwatchContext = createContext<SpectrumColorSwatchContextValue | null>(null);\n\n/**\n * A ColorSwatch displays a preview of a selected color.\n */\nexport const ColorSwatch = forwardRef(function ColorSwatch(props: SpectrumColorSwatchProps, ref: DOMRef<HTMLDivElement>): JSX.Element {\n let domRef = useDOMRef(ref);\n [props, domRef] = useContextProps(props, domRef, ColorSwatchContext);\n let {colorSwatchProps, color} = useColorSwatch(props);\n let {styleProps} = useStyleProps(props);\n let ctx = useContext(SpectrumColorSwatchContext);\n let {\n size = ctx?.size || 'M',\n rounding = ctx?.rounding || 'default'\n } = props;\n\n let swatch = (\n <div\n {...colorSwatchProps}\n {...styleProps}\n ref={domRef}\n style={{\n ...styleProps.style,\n // TODO: should there be a distinction between transparent and no value (e.g. null)?\n background: color.getChannelValue('alpha') > 0\n ? `linear-gradient(${color}, ${color}), repeating-conic-gradient(#e6e6e6 0% 25%, white 0% 50%) 0% 50% / 16px 16px`\n // Red slash to indicate there is no selected color.\n : 'linear-gradient(to bottom right, transparent calc(50% - 2px), var(--spectrum-red-900) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) no-repeat'\n }}\n className={styleProps.className + style({\n size: {\n size: {\n XS: 4,\n S: 6,\n M: 8,\n L: 10\n }\n },\n borderRadius: {\n rounding: {\n default: 'default',\n none: 'none',\n full: 'full'\n }\n },\n // Trick to create a partially transparent color from a variable.\n // Ideally we'd use relative color syntax for this but it's not in Firefox yet.\n borderColor: '[color-mix(in srgb, var(--spectrum-gray-900), transparent 49%)]',\n borderWidth: 1,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n forcedColorAdjust: 'none'\n })({size, rounding})} />\n );\n\n // ColorSwatchPicker needs to wrap the swatch in a ListBoxItem.\n if (ctx) {\n return ctx.useWrapper(swatch, color, rounding);\n }\n\n return swatch;\n});\n"],"names":[],"version":3,"file":"ColorSwatch.module.js.map"}
@@ -0,0 +1,356 @@
1
+ @layer s1-a, s1-b;
2
+
3
+ @layer a {
4
+ .s1-_Ss1-d {
5
+ display: flex;
6
+ }
7
+
8
+ .s1-_0s1-a {
9
+ flex-wrap: wrap;
10
+ }
11
+
12
+ .s1-ls1-F {
13
+ row-gap: .125rem;
14
+ }
15
+
16
+ .s1-ls1-b {
17
+ row-gap: .25rem;
18
+ }
19
+
20
+ .s1-ls1-c {
21
+ row-gap: .5rem;
22
+ }
23
+
24
+ .s1-ms1-F {
25
+ column-gap: .125rem;
26
+ }
27
+
28
+ .s1-ms1-b {
29
+ column-gap: .25rem;
30
+ }
31
+
32
+ .s1-ms1-c {
33
+ column-gap: .5rem;
34
+ }
35
+
36
+ .s1-_Es1-a {
37
+ outline-style: none;
38
+ }
39
+
40
+ .s1-_Es1-b {
41
+ outline-style: solid;
42
+ }
43
+
44
+ .s1-ds1-___I {
45
+ outline-color: var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));
46
+ }
47
+
48
+ .s1-_Gs1-c {
49
+ outline-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
50
+ }
51
+
52
+ .s1-_Fs1-c {
53
+ outline-offset: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
54
+ }
55
+
56
+ .s1-Xs1-c {
57
+ position: relative;
58
+ }
59
+
60
+ .s1-_ps1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
61
+ border-top-left-radius: 0;
62
+ }
63
+
64
+ .s1-_ps1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
65
+ border-top-left-radius: 0;
66
+ }
67
+
68
+ .s1-_ps1-a:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
69
+ border-top-right-radius: 0;
70
+ }
71
+
72
+ .s1-_ps1-a:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
73
+ border-top-right-radius: 0;
74
+ }
75
+
76
+ .s1-_ps1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
77
+ border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
78
+ }
79
+
80
+ .s1-_ps1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
81
+ border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
82
+ }
83
+
84
+ .s1-_ps1-c:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
85
+ border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
86
+ }
87
+
88
+ .s1-_ps1-c:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
89
+ border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
90
+ }
91
+
92
+ .s1-_ps1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
93
+ border-top-left-radius: 9999px;
94
+ }
95
+
96
+ .s1-_ps1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
97
+ border-top-left-radius: 9999px;
98
+ }
99
+
100
+ .s1-_ps1-f:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
101
+ border-top-right-radius: 9999px;
102
+ }
103
+
104
+ .s1-_ps1-f:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
105
+ border-top-right-radius: 9999px;
106
+ }
107
+
108
+ .s1-_qs1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
109
+ border-top-right-radius: 0;
110
+ }
111
+
112
+ .s1-_qs1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
113
+ border-top-right-radius: 0;
114
+ }
115
+
116
+ .s1-_qs1-a:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
117
+ border-top-left-radius: 0;
118
+ }
119
+
120
+ .s1-_qs1-a:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
121
+ border-top-left-radius: 0;
122
+ }
123
+
124
+ .s1-_qs1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
125
+ border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
126
+ }
127
+
128
+ .s1-_qs1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
129
+ border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
130
+ }
131
+
132
+ .s1-_qs1-c:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
133
+ border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
134
+ }
135
+
136
+ .s1-_qs1-c:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
137
+ border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
138
+ }
139
+
140
+ .s1-_qs1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
141
+ border-top-right-radius: 9999px;
142
+ }
143
+
144
+ .s1-_qs1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
145
+ border-top-right-radius: 9999px;
146
+ }
147
+
148
+ .s1-_qs1-f:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
149
+ border-top-left-radius: 9999px;
150
+ }
151
+
152
+ .s1-_qs1-f:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
153
+ border-top-left-radius: 9999px;
154
+ }
155
+
156
+ .s1-_rs1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
157
+ border-bottom-left-radius: 0;
158
+ }
159
+
160
+ .s1-_rs1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
161
+ border-bottom-left-radius: 0;
162
+ }
163
+
164
+ .s1-_rs1-a:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
165
+ border-bottom-right-radius: 0;
166
+ }
167
+
168
+ .s1-_rs1-a:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
169
+ border-bottom-right-radius: 0;
170
+ }
171
+
172
+ .s1-_rs1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
173
+ border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
174
+ }
175
+
176
+ .s1-_rs1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
177
+ border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
178
+ }
179
+
180
+ .s1-_rs1-c:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
181
+ border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
182
+ }
183
+
184
+ .s1-_rs1-c:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
185
+ border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
186
+ }
187
+
188
+ .s1-_rs1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
189
+ border-bottom-left-radius: 9999px;
190
+ }
191
+
192
+ .s1-_rs1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
193
+ border-bottom-left-radius: 9999px;
194
+ }
195
+
196
+ .s1-_rs1-f:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
197
+ border-bottom-right-radius: 9999px;
198
+ }
199
+
200
+ .s1-_rs1-f:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
201
+ border-bottom-right-radius: 9999px;
202
+ }
203
+
204
+ .s1-_ss1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
205
+ border-bottom-right-radius: 0;
206
+ }
207
+
208
+ .s1-_ss1-a:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
209
+ border-bottom-right-radius: 0;
210
+ }
211
+
212
+ .s1-_ss1-a:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
213
+ border-bottom-left-radius: 0;
214
+ }
215
+
216
+ .s1-_ss1-a:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
217
+ border-bottom-left-radius: 0;
218
+ }
219
+
220
+ .s1-_ss1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
221
+ border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
222
+ }
223
+
224
+ .s1-_ss1-c:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
225
+ border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
226
+ }
227
+
228
+ .s1-_ss1-c:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
229
+ border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
230
+ }
231
+
232
+ .s1-_ss1-c:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
233
+ border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
234
+ }
235
+
236
+ .s1-_ss1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
237
+ border-bottom-right-radius: 9999px;
238
+ }
239
+
240
+ .s1-_ss1-f:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
241
+ border-bottom-right-radius: 9999px;
242
+ }
243
+
244
+ .s1-_ss1-f:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
245
+ border-bottom-left-radius: 9999px;
246
+ }
247
+
248
+ .s1-_ss1-f:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
249
+ border-bottom-left-radius: 9999px;
250
+ }
251
+
252
+ .s1-Xs1-a {
253
+ position: absolute;
254
+ }
255
+
256
+ .s1-__ys1-a {
257
+ pointer-events: none;
258
+ }
259
+
260
+ .s1-0s1-a {
261
+ top: 0;
262
+ }
263
+
264
+ .s1-2s1-a {
265
+ bottom: 0;
266
+ }
267
+
268
+ .s1-1s1-a {
269
+ left: 0;
270
+ }
271
+
272
+ .s1-3s1-a {
273
+ right: 0;
274
+ }
275
+
276
+ .s1-_o-1icpv9v {
277
+ box-shadow: inset 0 0 0 2px var(--spectrum-gray-900), inset 0 0 0 4px var(--spectrum-gray-50);
278
+ }
279
+
280
+ .s1-_ts1-b {
281
+ forced-color-adjust: none;
282
+ }
283
+
284
+ .s1-_p-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
285
+ border-top-left-radius: inherit;
286
+ }
287
+
288
+ .s1-_p-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
289
+ border-top-left-radius: inherit;
290
+ }
291
+
292
+ .s1-_p-17zqamw:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
293
+ border-top-right-radius: inherit;
294
+ }
295
+
296
+ .s1-_p-17zqamw:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
297
+ border-top-right-radius: inherit;
298
+ }
299
+
300
+ .s1-_q-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
301
+ border-top-right-radius: inherit;
302
+ }
303
+
304
+ .s1-_q-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
305
+ border-top-right-radius: inherit;
306
+ }
307
+
308
+ .s1-_q-17zqamw:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
309
+ border-top-left-radius: inherit;
310
+ }
311
+
312
+ .s1-_q-17zqamw:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
313
+ border-top-left-radius: inherit;
314
+ }
315
+
316
+ .s1-_r-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
317
+ border-bottom-left-radius: inherit;
318
+ }
319
+
320
+ .s1-_r-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
321
+ border-bottom-left-radius: inherit;
322
+ }
323
+
324
+ .s1-_r-17zqamw:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
325
+ border-bottom-right-radius: inherit;
326
+ }
327
+
328
+ .s1-_r-17zqamw:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
329
+ border-bottom-right-radius: inherit;
330
+ }
331
+
332
+ .s1-_s-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
333
+ border-bottom-right-radius: inherit;
334
+ }
335
+
336
+ .s1-_s-17zqamw:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
337
+ border-bottom-right-radius: inherit;
338
+ }
339
+
340
+ .s1-_s-17zqamw:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
341
+ border-bottom-left-radius: inherit;
342
+ }
343
+
344
+ .s1-_s-17zqamw:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
345
+ border-bottom-left-radius: inherit;
346
+ }
347
+ }
348
+
349
+ @layer s1-b.s1-a {
350
+ @media (forced-colors: active) {
351
+ .s1-ds1-as1-___D {
352
+ outline-color: highlight;
353
+ }
354
+ }
355
+ }
356
+ /*# sourceMappingURL=ColorSwatchPicker.25f8fb63.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"ACAA;;AAEA;EACE;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EA1CA;;;;EAMA;;;;EAMA;;;;EAcA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EA9GA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAjDF;EACE;IACE","sources":["cdd25b8fe55df2e4","packages/@react-spectrum/color/src/ColorSwatchPicker.tsx"],"sourcesContent":["@import \"8c09881f86da33b8\";\n@import \"f06bfa769f1817df\";\n@import \"716a9b4865afe672\";\n","@layer s1-a, s1-b;\n\n@layer a {\n .s1-_Ss1-d {\n display: flex;\n }\n}\n\n@layer a {\n .s1-_0s1-a {\n flex-wrap: wrap;\n }\n}\n\n@layer a {\n .s1-ls1-F {\n row-gap: 0.125rem;\n }\n}\n\n@layer a {\n .s1-ls1-b {\n row-gap: 0.25rem;\n }\n}\n\n@layer a {\n .s1-ls1-c {\n row-gap: 0.5rem;\n }\n}\n\n@layer a {\n .s1-ms1-F {\n column-gap: 0.125rem;\n }\n}\n\n@layer a {\n .s1-ms1-b {\n column-gap: 0.25rem;\n }\n}\n\n@layer a {\n .s1-ms1-c {\n column-gap: 0.5rem;\n }\n}\n\n"],"names":[],"version":3,"file":"ColorSwatchPicker.25f8fb63.css.map"}
@@ -1,4 +1,4 @@
1
- require("./ColorSwatchPicker.1575be06.css");
1
+ require("./ColorSwatchPicker.25f8fb63.css");
2
2
  var $f076f5c85640192a$exports = require("./ColorSwatch.main.js");
3
3
  var $iY2T3$reactariacomponents = require("react-aria-components");
4
4
  var $iY2T3$react = require("react");
@@ -28,7 +28,7 @@ $parcel$export(module.exports, "ColorSwatchPicker", () => $ba9a184bcae9b225$expo
28
28
 
29
29
 
30
30
 
31
- function $ba9a184bcae9b225$var$ColorSwatchPicker(props, ref) {
31
+ const $ba9a184bcae9b225$export$b46792416e3d8515 = /*#__PURE__*/ (0, $iY2T3$react.forwardRef)(function ColorSwatchPicker(props, ref) {
32
32
  let { density: density = 'regular', size: size = 'M', rounding: rounding = 'none', ...otherProps } = props;
33
33
  let { styleProps: styleProps } = (0, $iY2T3$reactspectrumutils.useStyleProps)(props);
34
34
  let domRef = (0, $iY2T3$reactspectrumutils.useDOMRef)(ref);
@@ -38,14 +38,14 @@ function $ba9a184bcae9b225$var$ColorSwatchPicker(props, ref) {
38
38
  ref: domRef,
39
39
  className: styleProps.className + function anonymous(props) {
40
40
  let rules = "";
41
- rules += ' _Sd';
42
- rules += ' _0a';
43
- if (props.density === "spacious") rules += ' lc';
44
- else if (props.density === "regular") rules += ' lb';
45
- else if (props.density === "compact") rules += ' lF';
46
- if (props.density === "spacious") rules += ' mc';
47
- else if (props.density === "regular") rules += ' mb';
48
- else if (props.density === "compact") rules += ' mF';
41
+ rules += ' s1-_Ss1-d';
42
+ rules += ' s1-_0s1-a';
43
+ if (props.density === "spacious") rules += ' s1-ls1-c';
44
+ else if (props.density === "regular") rules += ' s1-ls1-b';
45
+ else if (props.density === "compact") rules += ' s1-ls1-F';
46
+ if (props.density === "spacious") rules += ' s1-ms1-c';
47
+ else if (props.density === "regular") rules += ' s1-ms1-b';
48
+ else if (props.density === "compact") rules += ' s1-ms1-F';
49
49
  return rules;
50
50
  }({
51
51
  density: density
@@ -57,34 +57,31 @@ function $ba9a184bcae9b225$var$ColorSwatchPicker(props, ref) {
57
57
  rounding: rounding
58
58
  }
59
59
  }, props.children));
60
- }
61
- /**
62
- * A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.
63
- */ let $ba9a184bcae9b225$export$b46792416e3d8515 = /*#__PURE__*/ (0, $iY2T3$react.forwardRef)($ba9a184bcae9b225$var$ColorSwatchPicker);
60
+ });
64
61
  function $ba9a184bcae9b225$var$useWrapper(swatch, color, rounding) {
65
62
  return /*#__PURE__*/ (0, ($parcel$interopDefault($iY2T3$react))).createElement((0, $iY2T3$reactariacomponents.ColorSwatchPickerItem), {
66
63
  color: color,
67
64
  className: (renderProps)=>(function anonymous(props) {
68
65
  let rules = "";
69
- if (props.isFocusVisible) rules += ' _Eb';
70
- else rules += ' _Ea';
71
- rules += ' da___D';
72
- rules += ' d___I';
73
- rules += ' _Gc';
74
- rules += ' _Fc';
75
- rules += ' Xc';
76
- if (props.rounding === "full") rules += ' _pf';
77
- else if (props.rounding === "default") rules += ' _pc';
78
- else if (props.rounding === "none") rules += ' _pa';
79
- if (props.rounding === "full") rules += ' _qf';
80
- else if (props.rounding === "default") rules += ' _qc';
81
- else if (props.rounding === "none") rules += ' _qa';
82
- if (props.rounding === "full") rules += ' _rf';
83
- else if (props.rounding === "default") rules += ' _rc';
84
- else if (props.rounding === "none") rules += ' _ra';
85
- if (props.rounding === "full") rules += ' _sf';
86
- else if (props.rounding === "default") rules += ' _sc';
87
- else if (props.rounding === "none") rules += ' _sa';
66
+ if (props.isFocusVisible) rules += ' s1-_Es1-b';
67
+ else rules += ' s1-_Es1-a';
68
+ rules += ' s1-ds1-as1-___D';
69
+ rules += ' s1-ds1-___I';
70
+ rules += ' s1-_Gs1-c';
71
+ rules += ' s1-_Fs1-c';
72
+ rules += ' s1-Xs1-c';
73
+ if (props.rounding === "full") rules += ' s1-_ps1-f';
74
+ else if (props.rounding === "default") rules += ' s1-_ps1-c';
75
+ else if (props.rounding === "none") rules += ' s1-_ps1-a';
76
+ if (props.rounding === "full") rules += ' s1-_qs1-f';
77
+ else if (props.rounding === "default") rules += ' s1-_qs1-c';
78
+ else if (props.rounding === "none") rules += ' s1-_qs1-a';
79
+ if (props.rounding === "full") rules += ' s1-_rs1-f';
80
+ else if (props.rounding === "default") rules += ' s1-_rs1-c';
81
+ else if (props.rounding === "none") rules += ' s1-_rs1-a';
82
+ if (props.rounding === "full") rules += ' s1-_ss1-f';
83
+ else if (props.rounding === "default") rules += ' s1-_ss1-c';
84
+ else if (props.rounding === "none") rules += ' s1-_ss1-a';
88
85
  return rules;
89
86
  })({
90
87
  ...renderProps,
@@ -94,18 +91,18 @@ function $ba9a184bcae9b225$var$useWrapper(swatch, color, rounding) {
94
91
  "aria-hidden": true,
95
92
  className: function anonymous(props) {
96
93
  let rules = "";
97
- rules += ' Xa';
98
- rules += ' __ya';
99
- rules += ' _0a';
100
- rules += ' _2a';
101
- rules += ' _1a';
102
- rules += ' _3a';
103
- rules += ' _o-1icpv9v';
104
- rules += ' _tb';
105
- rules += ' _p-17zqamw';
106
- rules += ' _q-17zqamw';
107
- rules += ' _r-17zqamw';
108
- rules += ' _s-17zqamw';
94
+ rules += ' s1-Xs1-a';
95
+ rules += ' s1-__ys1-a';
96
+ rules += ' s1-0s1-a';
97
+ rules += ' s1-2s1-a';
98
+ rules += ' s1-1s1-a';
99
+ rules += ' s1-3s1-a';
100
+ rules += ' s1-_o-1icpv9v';
101
+ rules += ' s1-_ts1-b';
102
+ rules += ' s1-_p-17zqamw';
103
+ rules += ' s1-_q-17zqamw';
104
+ rules += ' s1-_r-17zqamw';
105
+ rules += ' s1-_s-17zqamw';
109
106
  return rules;
110
107
  }()
111
108
  })));
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AA8BD,SAAS,wCAAkB,KAAqC,EAAE,GAA2B;IAC3F,IAAI,WACF,UAAU,iBACV,OAAO,eACP,WAAW,QACX,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC,CAAA,GAAA,4CAAoB;QAClB,GAAG,UAAU;QACd,OAAO,WAAW,KAAK;QACvB,KAAK;QACL,WAAW,WAAW,SAAS,GAAG;;;;;;;;;;;UAU/B;qBAAC;QAAO;qBACX,0DAAC,CAAA,GAAA,oDAAyB,EAAE,QAAQ;QAAC,OAAO;wBAAC;kBAAY;sBAAM;QAAQ;OACpE,MAAM,QAAQ;AAIvB;AAEA;;CAEC,GACD,IAAI,0DAAqB,CAAA,GAAA,uBAAS,EAAE;AAGpC,SAAS,iCAAW,MAAoB,EAAE,KAAY,EAAE,QAA8C;IACpG,qBACE,0DAAC,CAAA,GAAA,gDAAwB;QACvB,OAAO;QACP,WAAW,CAAA,cAAe;;;;;;;;;;;;;;;;;;;;;;eAgBvB;gBAAC,GAAG,WAAW;0BAAE;YAAQ;OAC3B,CAAC,cAAC,UAAU,EAAC,iBAAM,sHACjB,QACA,4BACC,0DAAC;YACC,eAAA;YACA,WAAW;;;;;;;;;;;;;;;;;AAYvB","sources":["packages/@react-spectrum/color/src/ColorSwatchPicker.tsx"],"sourcesContent":["/*\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\nimport {ColorSwatchPicker as AriaColorSwatchPicker, ColorSwatchPickerItem as AriaColorSwatchPickerItem} from 'react-aria-components';\nimport {Color} from '@react-types/color';\nimport {DOMRef, StyleProps, ValueBase} from '@react-types/shared';\nimport React, {forwardRef, ReactElement, ReactNode} from 'react';\nimport {SpectrumColorSwatchContext, SpectrumColorSwatchProps} from './ColorSwatch';\nimport {style} from '@react-spectrum/style-macro-s1' with {type: 'macro'};\nimport {useDOMRef, useStyleProps} from '@react-spectrum/utils';\n\nexport interface SpectrumColorSwatchPickerProps extends ValueBase<string | Color, Color>, StyleProps {\n /** The ColorSwatches within the ColorSwatchPicker. */\n children: ReactNode,\n /**\n * The amount of padding between the swatches.\n * @default \"regular\"\n */\n density?: 'compact' | 'regular' | 'spacious',\n /**\n * The size of the color swatches.\n * @default \"M\"\n */\n size?: 'XS' | 'S' | 'M' | 'L',\n /**\n * The corner rounding of the color swatches.\n * @default \"none\"\n */\n rounding?: 'none' | 'default' | 'full'\n}\n\nfunction ColorSwatchPicker(props: SpectrumColorSwatchPickerProps, ref: DOMRef<HTMLDivElement>) {\n let {\n density = 'regular',\n size = 'M',\n rounding = 'none',\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n\n return (\n <AriaColorSwatchPicker\n {...otherProps}\n style={styleProps.style}\n ref={domRef}\n className={styleProps.className + style({\n display: 'flex',\n flexWrap: 'wrap',\n gap: {\n density: {\n compact: 0.5,\n regular: 1,\n spacious: 2\n }\n }\n })({density})}>\n <SpectrumColorSwatchContext.Provider value={{useWrapper, size, rounding}}>\n {props.children}\n </SpectrumColorSwatchContext.Provider>\n </AriaColorSwatchPicker>\n );\n}\n\n/**\n * A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.\n */\nlet _ColorSwatchPicker = forwardRef(ColorSwatchPicker);\nexport {_ColorSwatchPicker as ColorSwatchPicker};\n\nfunction useWrapper(swatch: ReactElement, color: Color, rounding: SpectrumColorSwatchProps['rounding']) {\n return (\n <AriaColorSwatchPickerItem\n color={color}\n className={renderProps => style({\n outlineStyle: {\n default: 'none',\n isFocusVisible: 'solid'\n },\n outlineColor: 'focus-ring',\n outlineWidth: 2,\n outlineOffset: 2,\n position: 'relative',\n borderRadius: {\n rounding: {\n none: 'none',\n default: 'default',\n full: 'full'\n }\n }\n })({...renderProps, rounding})}>\n {({isSelected}) => (<>\n {swatch}\n {isSelected && (\n <div\n aria-hidden\n className={style({\n position: 'absolute',\n pointerEvents: 'none',\n inset: 0,\n boxShadow: '[inset 0 0 0 2px var(--spectrum-gray-900), inset 0 0 0 4px var(--spectrum-gray-50)]',\n forcedColorAdjust: 'none',\n borderRadius: '[inherit]'\n })()} />\n )}\n </>)}\n </AriaColorSwatchPickerItem>\n );\n}\n"],"names":[],"version":3,"file":"ColorSwatchPicker.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAiCM,MAAM,0DAAoB,CAAA,GAAA,uBAAS,EAAE,SAAS,kBAAkB,KAAqC,EAAE,GAA2B;IACvI,IAAI,WACF,UAAU,iBACV,OAAO,eACP,WAAW,QACX,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC,CAAA,GAAA,4CAAoB;QAClB,GAAG,UAAU;QACd,OAAO,WAAW,KAAK;QACvB,KAAK;QACL,WAAW,WAAW,SAAS,GAAG;;;;;;;;;;;UAU/B;qBAAC;QAAO;qBACX,0DAAC,CAAA,GAAA,oDAAyB,EAAE,QAAQ;QAAC,OAAO;wBAAC;kBAAY;sBAAM;QAAQ;OACpE,MAAM,QAAQ;AAIvB;AAEA,SAAS,iCAAW,MAAoB,EAAE,KAAY,EAAE,QAA8C;IACpG,qBACE,0DAAC,CAAA,GAAA,gDAAwB;QACvB,OAAO;QACP,WAAW,CAAA,cAAe;;;;;;;;;;;;;;;;;;;;;;eAgBvB;gBAAC,GAAG,WAAW;0BAAE;YAAQ;OAC3B,CAAC,cAAC,UAAU,EAAC,iBAAM,sHACjB,QACA,4BACC,0DAAC;YACC,eAAA;YACA,WAAW;;;;;;;;;;;;;;;;;AAYvB","sources":["packages/@react-spectrum/color/src/ColorSwatchPicker.tsx"],"sourcesContent":["/*\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\nimport {ColorSwatchPicker as AriaColorSwatchPicker, ColorSwatchPickerItem as AriaColorSwatchPickerItem} from 'react-aria-components';\nimport {Color} from '@react-types/color';\nimport {DOMRef, StyleProps, ValueBase} from '@react-types/shared';\nimport React, {forwardRef, ReactElement, ReactNode} from 'react';\nimport {SpectrumColorSwatchContext, SpectrumColorSwatchProps} from './ColorSwatch';\nimport {style} from '@react-spectrum/style-macro-s1' with {type: 'macro'};\nimport {useDOMRef, useStyleProps} from '@react-spectrum/utils';\n\nexport interface SpectrumColorSwatchPickerProps extends ValueBase<string | Color, Color>, StyleProps {\n /** The ColorSwatches within the ColorSwatchPicker. */\n children: ReactNode,\n /**\n * The amount of padding between the swatches.\n * @default \"regular\"\n */\n density?: 'compact' | 'regular' | 'spacious',\n /**\n * The size of the color swatches.\n * @default \"M\"\n */\n size?: 'XS' | 'S' | 'M' | 'L',\n /**\n * The corner rounding of the color swatches.\n * @default \"none\"\n */\n rounding?: 'none' | 'default' | 'full'\n}\n\n/**\n * A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.\n */\nexport const ColorSwatchPicker = forwardRef(function ColorSwatchPicker(props: SpectrumColorSwatchPickerProps, ref: DOMRef<HTMLDivElement>) {\n let {\n density = 'regular',\n size = 'M',\n rounding = 'none',\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n\n return (\n <AriaColorSwatchPicker\n {...otherProps}\n style={styleProps.style}\n ref={domRef}\n className={styleProps.className + style({\n display: 'flex',\n flexWrap: 'wrap',\n gap: {\n density: {\n compact: 0.5,\n regular: 1,\n spacious: 2\n }\n }\n })({density})}>\n <SpectrumColorSwatchContext.Provider value={{useWrapper, size, rounding}}>\n {props.children}\n </SpectrumColorSwatchContext.Provider>\n </AriaColorSwatchPicker>\n );\n});\n\nfunction useWrapper(swatch: ReactElement, color: Color, rounding: SpectrumColorSwatchProps['rounding']) {\n return (\n <AriaColorSwatchPickerItem\n color={color}\n className={renderProps => style({\n outlineStyle: {\n default: 'none',\n isFocusVisible: 'solid'\n },\n outlineColor: 'focus-ring',\n outlineWidth: 2,\n outlineOffset: 2,\n position: 'relative',\n borderRadius: {\n rounding: {\n none: 'none',\n default: 'default',\n full: 'full'\n }\n }\n })({...renderProps, rounding})}>\n {({isSelected}) => (<>\n {swatch}\n {isSelected && (\n <div\n aria-hidden\n className={style({\n position: 'absolute',\n pointerEvents: 'none',\n inset: 0,\n boxShadow: '[inset 0 0 0 2px var(--spectrum-gray-900), inset 0 0 0 4px var(--spectrum-gray-50)]',\n forcedColorAdjust: 'none',\n borderRadius: '[inherit]'\n })()} />\n )}\n </>)}\n </AriaColorSwatchPickerItem>\n );\n}\n"],"names":[],"version":3,"file":"ColorSwatchPicker.main.js.map"}