@react-spectrum/divider 3.5.11 → 3.5.13

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.
@@ -0,0 +1,65 @@
1
+ require("./vars.4e4c96fa.css");
2
+ var $7fdcb1fd1927dca1$exports = require("./rule_vars_css.main.js");
3
+ var $40sll$reactspectrumutils = require("@react-spectrum/utils");
4
+ var $40sll$react = require("react");
5
+ var $40sll$reactariaseparator = require("@react-aria/separator");
6
+
7
+
8
+ function $parcel$interopDefault(a) {
9
+ return a && a.__esModule ? a.default : a;
10
+ }
11
+
12
+ function $parcel$export(e, n, v, s) {
13
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
14
+ }
15
+
16
+ $parcel$export(module.exports, "Divider", () => $a75f934b8a5939c6$export$2e0a83ec2e27ecbb);
17
+ /*
18
+ * Copyright 2020 Adobe. All rights reserved.
19
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
+ * you may not use this file except in compliance with the License. You may obtain a copy
21
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software distributed under
24
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
+ * OF ANY KIND, either express or implied. See the License for the specific language
26
+ * governing permissions and limitations under the License.
27
+ */
28
+
29
+
30
+
31
+ let $a75f934b8a5939c6$var$sizeMap = {
32
+ S: 'small',
33
+ M: 'medium',
34
+ L: 'large'
35
+ };
36
+ function $a75f934b8a5939c6$var$Divider(props, ref) {
37
+ props = (0, $40sll$reactspectrumutils.useSlotProps)(props, 'divider');
38
+ let { size: size = 'L', orientation: orientation = 'horizontal', ...otherProps } = props;
39
+ let domRef = (0, $40sll$reactspectrumutils.useDOMRef)(ref);
40
+ let { styleProps: styleProps } = (0, $40sll$reactspectrumutils.useStyleProps)(otherProps);
41
+ let weight = $a75f934b8a5939c6$var$sizeMap[size];
42
+ let Element = 'hr';
43
+ if (orientation === 'vertical') Element = 'div';
44
+ let { separatorProps: separatorProps } = (0, $40sll$reactariaseparator.useSeparator)({
45
+ ...props,
46
+ elementType: Element
47
+ });
48
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($40sll$react))).createElement(Element, {
49
+ ...styleProps,
50
+ className: (0, $40sll$reactspectrumutils.classNames)((0, ($parcel$interopDefault($7fdcb1fd1927dca1$exports))), 'spectrum-Rule', `spectrum-Rule--${weight}`, {
51
+ 'spectrum-Rule--vertical': orientation === 'vertical',
52
+ 'spectrum-Rule--horizontal': orientation === 'horizontal'
53
+ }, styleProps.className),
54
+ // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892
55
+ ref: domRef,
56
+ ...separatorProps
57
+ });
58
+ }
59
+ /**
60
+ * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
61
+ * They can also be used to establish rhythm and hierarchy.
62
+ */ let $a75f934b8a5939c6$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, ($parcel$interopDefault($40sll$react))).forwardRef($a75f934b8a5939c6$var$Divider);
63
+
64
+
65
+ //# sourceMappingURL=Divider.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,IAAI,gCAAU;IACZ,GAAG;IACH,GAAG;IACH,GAAG;AACL;AAEA,SAAS,8BAAQ,KAA2B,EAAE,GAAW;IACvD,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,QACF,OAAO,kBACP,cAAc,cACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,6BAAO,CAAC,KAAK;IAE1B,IAAI,UAAuB;IAC3B,IAAI,gBAAgB,YAClB,UAAU;IAGZ,IAAI,kBAAC,cAAc,EAAC,GAAG,CAAA,GAAA,sCAAW,EAAE;QAClC,GAAG,KAAK;QACR,aAAa;IACf;IAEA,qBACE,0DAAC;QACE,GAAG,UAAU;QACd,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,iBACA,CAAC,eAAe,EAAE,OAAO,CAAC,EAC1B;YACE,2BAA2B,gBAAgB;YAC3C,6BAA6B,gBAAgB;QAC/C,GACA,WAAW,SAAS;QAGxB,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/divider/src/Divider.tsx"],"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 */\n\nimport {classNames, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport React, {ElementType} from 'react';\nimport {SpectrumDividerProps} from '@react-types/divider';\nimport styles from '@adobe/spectrum-css-temp/components/rule/vars.css';\nimport {useSeparator} from '@react-aria/separator';\n\nlet sizeMap = {\n S: 'small',\n M: 'medium',\n L: 'large'\n};\n\nfunction Divider(props: SpectrumDividerProps, ref: DOMRef) {\n props = useSlotProps(props, 'divider');\n let {\n size = 'L',\n orientation = 'horizontal',\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let weight = sizeMap[size];\n\n let Element: ElementType = 'hr';\n if (orientation === 'vertical') {\n Element = 'div';\n }\n\n let {separatorProps} = useSeparator({\n ...props,\n elementType: Element\n });\n\n return (\n <Element\n {...styleProps}\n className={\n classNames(\n styles,\n 'spectrum-Rule',\n `spectrum-Rule--${weight}`,\n {\n 'spectrum-Rule--vertical': orientation === 'vertical',\n 'spectrum-Rule--horizontal': orientation === 'horizontal'\n },\n styleProps.className\n )\n }\n // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892\n ref={domRef}\n {...separatorProps} />\n );\n}\n\n/**\n * Dividers bring clarity to a layout by grouping and dividing content in close proximity.\n * They can also be used to establish rhythm and hierarchy.\n */\nlet _Divider = React.forwardRef(Divider);\nexport {_Divider as Divider};\n"],"names":[],"version":3,"file":"Divider.main.js.map"}
@@ -0,0 +1,60 @@
1
+ import "./vars.4e4c96fa.css";
2
+ import $budPV$rule_vars_cssmodulejs from "./rule_vars_css.mjs";
3
+ import {useSlotProps as $budPV$useSlotProps, useDOMRef as $budPV$useDOMRef, useStyleProps as $budPV$useStyleProps, classNames as $budPV$classNames} from "@react-spectrum/utils";
4
+ import $budPV$react from "react";
5
+ import {useSeparator as $budPV$useSeparator} from "@react-aria/separator";
6
+
7
+
8
+ function $parcel$interopDefault(a) {
9
+ return a && a.__esModule ? a.default : a;
10
+ }
11
+ /*
12
+ * Copyright 2020 Adobe. All rights reserved.
13
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License. You may obtain a copy
15
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software distributed under
18
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
19
+ * OF ANY KIND, either express or implied. See the License for the specific language
20
+ * governing permissions and limitations under the License.
21
+ */
22
+
23
+
24
+
25
+ let $269e81ee206e9515$var$sizeMap = {
26
+ S: 'small',
27
+ M: 'medium',
28
+ L: 'large'
29
+ };
30
+ function $269e81ee206e9515$var$Divider(props, ref) {
31
+ props = (0, $budPV$useSlotProps)(props, 'divider');
32
+ let { size: size = 'L', orientation: orientation = 'horizontal', ...otherProps } = props;
33
+ let domRef = (0, $budPV$useDOMRef)(ref);
34
+ let { styleProps: styleProps } = (0, $budPV$useStyleProps)(otherProps);
35
+ let weight = $269e81ee206e9515$var$sizeMap[size];
36
+ let Element = 'hr';
37
+ if (orientation === 'vertical') Element = 'div';
38
+ let { separatorProps: separatorProps } = (0, $budPV$useSeparator)({
39
+ ...props,
40
+ elementType: Element
41
+ });
42
+ return /*#__PURE__*/ (0, $budPV$react).createElement(Element, {
43
+ ...styleProps,
44
+ className: (0, $budPV$classNames)((0, ($parcel$interopDefault($budPV$rule_vars_cssmodulejs))), 'spectrum-Rule', `spectrum-Rule--${weight}`, {
45
+ 'spectrum-Rule--vertical': orientation === 'vertical',
46
+ 'spectrum-Rule--horizontal': orientation === 'horizontal'
47
+ }, styleProps.className),
48
+ // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892
49
+ ref: domRef,
50
+ ...separatorProps
51
+ });
52
+ }
53
+ /**
54
+ * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
55
+ * They can also be used to establish rhythm and hierarchy.
56
+ */ let $269e81ee206e9515$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, $budPV$react).forwardRef($269e81ee206e9515$var$Divider);
57
+
58
+
59
+ export {$269e81ee206e9515$export$2e0a83ec2e27ecbb as Divider};
60
+ //# sourceMappingURL=Divider.module.js.map
@@ -0,0 +1,60 @@
1
+ import "./vars.4e4c96fa.css";
2
+ import $budPV$rule_vars_cssmodulejs from "./rule_vars_css.module.js";
3
+ import {useSlotProps as $budPV$useSlotProps, useDOMRef as $budPV$useDOMRef, useStyleProps as $budPV$useStyleProps, classNames as $budPV$classNames} from "@react-spectrum/utils";
4
+ import $budPV$react from "react";
5
+ import {useSeparator as $budPV$useSeparator} from "@react-aria/separator";
6
+
7
+
8
+ function $parcel$interopDefault(a) {
9
+ return a && a.__esModule ? a.default : a;
10
+ }
11
+ /*
12
+ * Copyright 2020 Adobe. All rights reserved.
13
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License. You may obtain a copy
15
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software distributed under
18
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
19
+ * OF ANY KIND, either express or implied. See the License for the specific language
20
+ * governing permissions and limitations under the License.
21
+ */
22
+
23
+
24
+
25
+ let $269e81ee206e9515$var$sizeMap = {
26
+ S: 'small',
27
+ M: 'medium',
28
+ L: 'large'
29
+ };
30
+ function $269e81ee206e9515$var$Divider(props, ref) {
31
+ props = (0, $budPV$useSlotProps)(props, 'divider');
32
+ let { size: size = 'L', orientation: orientation = 'horizontal', ...otherProps } = props;
33
+ let domRef = (0, $budPV$useDOMRef)(ref);
34
+ let { styleProps: styleProps } = (0, $budPV$useStyleProps)(otherProps);
35
+ let weight = $269e81ee206e9515$var$sizeMap[size];
36
+ let Element = 'hr';
37
+ if (orientation === 'vertical') Element = 'div';
38
+ let { separatorProps: separatorProps } = (0, $budPV$useSeparator)({
39
+ ...props,
40
+ elementType: Element
41
+ });
42
+ return /*#__PURE__*/ (0, $budPV$react).createElement(Element, {
43
+ ...styleProps,
44
+ className: (0, $budPV$classNames)((0, ($parcel$interopDefault($budPV$rule_vars_cssmodulejs))), 'spectrum-Rule', `spectrum-Rule--${weight}`, {
45
+ 'spectrum-Rule--vertical': orientation === 'vertical',
46
+ 'spectrum-Rule--horizontal': orientation === 'horizontal'
47
+ }, styleProps.className),
48
+ // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892
49
+ ref: domRef,
50
+ ...separatorProps
51
+ });
52
+ }
53
+ /**
54
+ * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
55
+ * They can also be used to establish rhythm and hierarchy.
56
+ */ let $269e81ee206e9515$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, $budPV$react).forwardRef($269e81ee206e9515$var$Divider);
57
+
58
+
59
+ export {$269e81ee206e9515$export$2e0a83ec2e27ecbb as Divider};
60
+ //# sourceMappingURL=Divider.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,IAAI,gCAAU;IACZ,GAAG;IACH,GAAG;IACH,GAAG;AACL;AAEA,SAAS,8BAAQ,KAA2B,EAAE,GAAW;IACvD,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,QACF,OAAO,kBACP,cAAc,cACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,6BAAO,CAAC,KAAK;IAE1B,IAAI,UAAuB;IAC3B,IAAI,gBAAgB,YAClB,UAAU;IAGZ,IAAI,kBAAC,cAAc,EAAC,GAAG,CAAA,GAAA,mBAAW,EAAE;QAClC,GAAG,KAAK;QACR,aAAa;IACf;IAEA,qBACE,gCAAC;QACE,GAAG,UAAU;QACd,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,sDAAK,GACL,iBACA,CAAC,eAAe,EAAE,OAAO,CAAC,EAC1B;YACE,2BAA2B,gBAAgB;YAC3C,6BAA6B,gBAAgB;QAC/C,GACA,WAAW,SAAS;QAGxB,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/divider/src/Divider.tsx"],"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 */\n\nimport {classNames, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport React, {ElementType} from 'react';\nimport {SpectrumDividerProps} from '@react-types/divider';\nimport styles from '@adobe/spectrum-css-temp/components/rule/vars.css';\nimport {useSeparator} from '@react-aria/separator';\n\nlet sizeMap = {\n S: 'small',\n M: 'medium',\n L: 'large'\n};\n\nfunction Divider(props: SpectrumDividerProps, ref: DOMRef) {\n props = useSlotProps(props, 'divider');\n let {\n size = 'L',\n orientation = 'horizontal',\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let weight = sizeMap[size];\n\n let Element: ElementType = 'hr';\n if (orientation === 'vertical') {\n Element = 'div';\n }\n\n let {separatorProps} = useSeparator({\n ...props,\n elementType: Element\n });\n\n return (\n <Element\n {...styleProps}\n className={\n classNames(\n styles,\n 'spectrum-Rule',\n `spectrum-Rule--${weight}`,\n {\n 'spectrum-Rule--vertical': orientation === 'vertical',\n 'spectrum-Rule--horizontal': orientation === 'horizontal'\n },\n styleProps.className\n )\n }\n // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892\n ref={domRef}\n {...separatorProps} />\n );\n}\n\n/**\n * Dividers bring clarity to a layout by grouping and dividing content in close proximity.\n * They can also be used to establish rhythm and hierarchy.\n */\nlet _Divider = React.forwardRef(Divider);\nexport {_Divider as Divider};\n"],"names":[],"version":3,"file":"Divider.module.js.map"}
package/dist/import.mjs CHANGED
@@ -1,16 +1,5 @@
1
- import "./main.css";
2
- import {useSlotProps as $aBEni$useSlotProps, useDOMRef as $aBEni$useDOMRef, useStyleProps as $aBEni$useStyleProps, classNames as $aBEni$classNames} from "@react-spectrum/utils";
3
- import $aBEni$react from "react";
4
- import {useSeparator as $aBEni$useSeparator} from "@react-aria/separator";
1
+ import {Divider as $269e81ee206e9515$export$2e0a83ec2e27ecbb} from "./Divider.mjs";
5
2
 
6
-
7
- function $parcel$interopDefault(a) {
8
- return a && a.__esModule ? a.default : a;
9
- }
10
-
11
- function $parcel$export(e, n, v, s) {
12
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
13
- }
14
3
  /*
15
4
  * Copyright 2020 Adobe. All rights reserved.
16
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -22,89 +11,6 @@ function $parcel$export(e, n, v, s) {
22
11
  * OF ANY KIND, either express or implied. See the License for the specific language
23
12
  * governing permissions and limitations under the License.
24
13
  */ /// <reference types="css-module-types" />
25
- /*
26
- * Copyright 2020 Adobe. All rights reserved.
27
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
28
- * you may not use this file except in compliance with the License. You may obtain a copy
29
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
30
- *
31
- * Unless required by applicable law or agreed to in writing, software distributed under
32
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
33
- * OF ANY KIND, either express or implied. See the License for the specific language
34
- * governing permissions and limitations under the License.
35
- */
36
-
37
- var $7a9eac509b76fa30$exports = {};
38
-
39
- $parcel$export($7a9eac509b76fa30$exports, "focus-ring", () => $7a9eac509b76fa30$export$f39a09f249340e2a, (v) => $7a9eac509b76fa30$export$f39a09f249340e2a = v);
40
- $parcel$export($7a9eac509b76fa30$exports, "i18nFontFamily", () => $7a9eac509b76fa30$export$8c4ee2c50c22c514, (v) => $7a9eac509b76fa30$export$8c4ee2c50c22c514 = v);
41
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing-ring", () => $7a9eac509b76fa30$export$4109102f950813a6, (v) => $7a9eac509b76fa30$export$4109102f950813a6 = v);
42
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing", () => $7a9eac509b76fa30$export$24c7f46a6e3605dd, (v) => $7a9eac509b76fa30$export$24c7f46a6e3605dd = v);
43
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing--quiet", () => $7a9eac509b76fa30$export$2927016961429360, (v) => $7a9eac509b76fa30$export$2927016961429360 = v);
44
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule", () => $7a9eac509b76fa30$export$9ebf9cdaed6878bc, (v) => $7a9eac509b76fa30$export$9ebf9cdaed6878bc = v);
45
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
46
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--large", () => $7a9eac509b76fa30$export$243baa0ec4ab58cc, (v) => $7a9eac509b76fa30$export$243baa0ec4ab58cc = v);
47
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--medium", () => $7a9eac509b76fa30$export$a8d73b58ca350eb9, (v) => $7a9eac509b76fa30$export$a8d73b58ca350eb9 = v);
48
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--small", () => $7a9eac509b76fa30$export$b4b727880cfe37d, (v) => $7a9eac509b76fa30$export$b4b727880cfe37d = v);
49
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--vertical", () => $7a9eac509b76fa30$export$76f93463a8fc15a8, (v) => $7a9eac509b76fa30$export$76f93463a8fc15a8 = v);
50
- var $7a9eac509b76fa30$export$f39a09f249340e2a;
51
- var $7a9eac509b76fa30$export$8c4ee2c50c22c514;
52
- var $7a9eac509b76fa30$export$4109102f950813a6;
53
- var $7a9eac509b76fa30$export$24c7f46a6e3605dd;
54
- var $7a9eac509b76fa30$export$2927016961429360;
55
- var $7a9eac509b76fa30$export$9ebf9cdaed6878bc;
56
- var $7a9eac509b76fa30$export$563c1b24466c05b8;
57
- var $7a9eac509b76fa30$export$243baa0ec4ab58cc;
58
- var $7a9eac509b76fa30$export$a8d73b58ca350eb9;
59
- var $7a9eac509b76fa30$export$b4b727880cfe37d;
60
- var $7a9eac509b76fa30$export$76f93463a8fc15a8;
61
- $7a9eac509b76fa30$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
62
- $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
63
- $7a9eac509b76fa30$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
64
- $7a9eac509b76fa30$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
65
- $7a9eac509b76fa30$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
66
- $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
67
- $7a9eac509b76fa30$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
68
- $7a9eac509b76fa30$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
69
- $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
70
- $7a9eac509b76fa30$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
71
- $7a9eac509b76fa30$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
72
-
73
-
74
-
75
- let $269e81ee206e9515$var$sizeMap = {
76
- S: "small",
77
- M: "medium",
78
- L: "large"
79
- };
80
- function $269e81ee206e9515$var$Divider(props, ref) {
81
- props = (0, $aBEni$useSlotProps)(props, "divider");
82
- let { size: size = "L", orientation: orientation = "horizontal", ...otherProps } = props;
83
- let domRef = (0, $aBEni$useDOMRef)(ref);
84
- let { styleProps: styleProps } = (0, $aBEni$useStyleProps)(otherProps);
85
- let weight = $269e81ee206e9515$var$sizeMap[size];
86
- let Element = "hr";
87
- if (orientation === "vertical") Element = "div";
88
- let { separatorProps: separatorProps } = (0, $aBEni$useSeparator)({
89
- ...props,
90
- elementType: Element
91
- });
92
- return /*#__PURE__*/ (0, $aBEni$react).createElement(Element, {
93
- ...styleProps,
94
- className: (0, $aBEni$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7a9eac509b76fa30$exports))), "spectrum-Rule", `spectrum-Rule--${weight}`, {
95
- "spectrum-Rule--vertical": orientation === "vertical",
96
- "spectrum-Rule--horizontal": orientation === "horizontal"
97
- }, styleProps.className),
98
- // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892
99
- ref: domRef,
100
- ...separatorProps
101
- });
102
- }
103
- /**
104
- * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
105
- * They can also be used to establish rhythm and hierarchy.
106
- */ let $269e81ee206e9515$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, $aBEni$react).forwardRef($269e81ee206e9515$var$Divider);
107
-
108
14
 
109
15
 
110
16
 
package/dist/main.js CHANGED
@@ -1,18 +1,11 @@
1
- require("./main.css");
2
- var $7uVzT$reactspectrumutils = require("@react-spectrum/utils");
3
- var $7uVzT$react = require("react");
4
- var $7uVzT$reactariaseparator = require("@react-aria/separator");
1
+ var $a75f934b8a5939c6$exports = require("./Divider.main.js");
5
2
 
6
3
 
7
4
  function $parcel$export(e, n, v, s) {
8
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
9
6
  }
10
7
 
11
- function $parcel$interopDefault(a) {
12
- return a && a.__esModule ? a.default : a;
13
- }
14
-
15
- $parcel$export(module.exports, "Divider", () => $a75f934b8a5939c6$export$2e0a83ec2e27ecbb);
8
+ $parcel$export(module.exports, "Divider", () => $a75f934b8a5939c6$exports.Divider);
16
9
  /*
17
10
  * Copyright 2020 Adobe. All rights reserved.
18
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -24,89 +17,6 @@ $parcel$export(module.exports, "Divider", () => $a75f934b8a5939c6$export$2e0a83e
24
17
  * OF ANY KIND, either express or implied. See the License for the specific language
25
18
  * governing permissions and limitations under the License.
26
19
  */ /// <reference types="css-module-types" />
27
- /*
28
- * Copyright 2020 Adobe. All rights reserved.
29
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
30
- * you may not use this file except in compliance with the License. You may obtain a copy
31
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
32
- *
33
- * Unless required by applicable law or agreed to in writing, software distributed under
34
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
35
- * OF ANY KIND, either express or implied. See the License for the specific language
36
- * governing permissions and limitations under the License.
37
- */
38
-
39
- var $7fdcb1fd1927dca1$exports = {};
40
-
41
- $parcel$export($7fdcb1fd1927dca1$exports, "focus-ring", () => $7fdcb1fd1927dca1$export$f39a09f249340e2a, (v) => $7fdcb1fd1927dca1$export$f39a09f249340e2a = v);
42
- $parcel$export($7fdcb1fd1927dca1$exports, "i18nFontFamily", () => $7fdcb1fd1927dca1$export$8c4ee2c50c22c514, (v) => $7fdcb1fd1927dca1$export$8c4ee2c50c22c514 = v);
43
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-FocusRing-ring", () => $7fdcb1fd1927dca1$export$4109102f950813a6, (v) => $7fdcb1fd1927dca1$export$4109102f950813a6 = v);
44
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-FocusRing", () => $7fdcb1fd1927dca1$export$24c7f46a6e3605dd, (v) => $7fdcb1fd1927dca1$export$24c7f46a6e3605dd = v);
45
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-FocusRing--quiet", () => $7fdcb1fd1927dca1$export$2927016961429360, (v) => $7fdcb1fd1927dca1$export$2927016961429360 = v);
46
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule", () => $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc, (v) => $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = v);
47
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--horizontal", () => $7fdcb1fd1927dca1$export$563c1b24466c05b8, (v) => $7fdcb1fd1927dca1$export$563c1b24466c05b8 = v);
48
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--large", () => $7fdcb1fd1927dca1$export$243baa0ec4ab58cc, (v) => $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = v);
49
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--medium", () => $7fdcb1fd1927dca1$export$a8d73b58ca350eb9, (v) => $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = v);
50
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--small", () => $7fdcb1fd1927dca1$export$b4b727880cfe37d, (v) => $7fdcb1fd1927dca1$export$b4b727880cfe37d = v);
51
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--vertical", () => $7fdcb1fd1927dca1$export$76f93463a8fc15a8, (v) => $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = v);
52
- var $7fdcb1fd1927dca1$export$f39a09f249340e2a;
53
- var $7fdcb1fd1927dca1$export$8c4ee2c50c22c514;
54
- var $7fdcb1fd1927dca1$export$4109102f950813a6;
55
- var $7fdcb1fd1927dca1$export$24c7f46a6e3605dd;
56
- var $7fdcb1fd1927dca1$export$2927016961429360;
57
- var $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc;
58
- var $7fdcb1fd1927dca1$export$563c1b24466c05b8;
59
- var $7fdcb1fd1927dca1$export$243baa0ec4ab58cc;
60
- var $7fdcb1fd1927dca1$export$a8d73b58ca350eb9;
61
- var $7fdcb1fd1927dca1$export$b4b727880cfe37d;
62
- var $7fdcb1fd1927dca1$export$76f93463a8fc15a8;
63
- $7fdcb1fd1927dca1$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
64
- $7fdcb1fd1927dca1$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
65
- $7fdcb1fd1927dca1$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
66
- $7fdcb1fd1927dca1$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7fdcb1fd1927dca1$export$4109102f950813a6}`;
67
- $7fdcb1fd1927dca1$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
68
- $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
69
- $7fdcb1fd1927dca1$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
70
- $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
71
- $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
72
- $7fdcb1fd1927dca1$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
73
- $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
74
-
75
-
76
-
77
- let $a75f934b8a5939c6$var$sizeMap = {
78
- S: "small",
79
- M: "medium",
80
- L: "large"
81
- };
82
- function $a75f934b8a5939c6$var$Divider(props, ref) {
83
- props = (0, $7uVzT$reactspectrumutils.useSlotProps)(props, "divider");
84
- let { size: size = "L", orientation: orientation = "horizontal", ...otherProps } = props;
85
- let domRef = (0, $7uVzT$reactspectrumutils.useDOMRef)(ref);
86
- let { styleProps: styleProps } = (0, $7uVzT$reactspectrumutils.useStyleProps)(otherProps);
87
- let weight = $a75f934b8a5939c6$var$sizeMap[size];
88
- let Element = "hr";
89
- if (orientation === "vertical") Element = "div";
90
- let { separatorProps: separatorProps } = (0, $7uVzT$reactariaseparator.useSeparator)({
91
- ...props,
92
- elementType: Element
93
- });
94
- return /*#__PURE__*/ (0, ($parcel$interopDefault($7uVzT$react))).createElement(Element, {
95
- ...styleProps,
96
- className: (0, $7uVzT$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7fdcb1fd1927dca1$exports))), "spectrum-Rule", `spectrum-Rule--${weight}`, {
97
- "spectrum-Rule--vertical": orientation === "vertical",
98
- "spectrum-Rule--horizontal": orientation === "horizontal"
99
- }, styleProps.className),
100
- // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892
101
- ref: domRef,
102
- ...separatorProps
103
- });
104
- }
105
- /**
106
- * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
107
- * They can also be used to establish rhythm and hierarchy.
108
- */ let $a75f934b8a5939c6$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, ($parcel$interopDefault($7uVzT$react))).forwardRef($a75f934b8a5939c6$var$Divider);
109
-
110
20
 
111
21
 
112
22
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAVA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC;AACxD,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,2CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC;;;;ADS5E,IAAI,gCAAU;IACZ,GAAG;IACH,GAAG;IACH,GAAG;AACL;AAEA,SAAS,8BAAQ,KAA2B,EAAE,GAAW;IACvD,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,QACF,OAAO,kBACP,cAAc,cACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,6BAAO,CAAC,KAAK;IAE1B,IAAI,UAAuB;IAC3B,IAAI,gBAAgB,YAClB,UAAU;IAGZ,IAAI,kBAAC,cAAc,EAAC,GAAG,CAAA,GAAA,sCAAW,EAAE;QAClC,GAAG,KAAK;QACR,aAAa;IACf;IAEA,qBACE,0DAAC;QACE,GAAG,UAAU;QACd,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,gEAAK,GACL,iBACA,CAAC,eAAe,EAAE,OAAO,CAAC,EAC1B;YACE,2BAA2B,gBAAgB;YAC3C,6BAA6B,gBAAgB;QAC/C,GACA,WAAW,SAAS;QAGxB,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/divider/src/index.ts","packages/@react-spectrum/divider/src/Divider.tsx","packages/@adobe/spectrum-css-temp/components/rule/vars.css"],"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 */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Divider} from './Divider';\nexport type {SpectrumDividerProps} from '@react-types/divider';\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\nimport {classNames, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport React, {ElementType} from 'react';\nimport {SpectrumDividerProps} from '@react-types/divider';\nimport styles from '@adobe/spectrum-css-temp/components/rule/vars.css';\nimport {useSeparator} from '@react-aria/separator';\n\nlet sizeMap = {\n S: 'small',\n M: 'medium',\n L: 'large'\n};\n\nfunction Divider(props: SpectrumDividerProps, ref: DOMRef) {\n props = useSlotProps(props, 'divider');\n let {\n size = 'L',\n orientation = 'horizontal',\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let weight = sizeMap[size];\n\n let Element: ElementType = 'hr';\n if (orientation === 'vertical') {\n Element = 'div';\n }\n\n let {separatorProps} = useSeparator({\n ...props,\n elementType: Element\n });\n\n return (\n <Element\n {...styleProps}\n className={\n classNames(\n styles,\n 'spectrum-Rule',\n `spectrum-Rule--${weight}`,\n {\n 'spectrum-Rule--vertical': orientation === 'vertical',\n 'spectrum-Rule--horizontal': orientation === 'horizontal'\n },\n styleProps.className\n )\n }\n // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892\n ref={domRef}\n {...separatorProps} />\n );\n}\n\n/**\n * Dividers bring clarity to a layout by grouping and dividing content in close proximity.\n * They can also be used to establish rhythm and hierarchy.\n */\nlet _Divider = React.forwardRef(Divider);\nexport {_Divider as Divider};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/divider/src/index.ts"],"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 */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Divider} from './Divider';\nexport type {SpectrumDividerProps} from '@react-types/divider';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,16 +1,5 @@
1
- import "./main.css";
2
- import {useSlotProps as $aBEni$useSlotProps, useDOMRef as $aBEni$useDOMRef, useStyleProps as $aBEni$useStyleProps, classNames as $aBEni$classNames} from "@react-spectrum/utils";
3
- import $aBEni$react from "react";
4
- import {useSeparator as $aBEni$useSeparator} from "@react-aria/separator";
1
+ import {Divider as $269e81ee206e9515$export$2e0a83ec2e27ecbb} from "./Divider.module.js";
5
2
 
6
-
7
- function $parcel$interopDefault(a) {
8
- return a && a.__esModule ? a.default : a;
9
- }
10
-
11
- function $parcel$export(e, n, v, s) {
12
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
13
- }
14
3
  /*
15
4
  * Copyright 2020 Adobe. All rights reserved.
16
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -22,89 +11,6 @@ function $parcel$export(e, n, v, s) {
22
11
  * OF ANY KIND, either express or implied. See the License for the specific language
23
12
  * governing permissions and limitations under the License.
24
13
  */ /// <reference types="css-module-types" />
25
- /*
26
- * Copyright 2020 Adobe. All rights reserved.
27
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
28
- * you may not use this file except in compliance with the License. You may obtain a copy
29
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
30
- *
31
- * Unless required by applicable law or agreed to in writing, software distributed under
32
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
33
- * OF ANY KIND, either express or implied. See the License for the specific language
34
- * governing permissions and limitations under the License.
35
- */
36
-
37
- var $7a9eac509b76fa30$exports = {};
38
-
39
- $parcel$export($7a9eac509b76fa30$exports, "focus-ring", () => $7a9eac509b76fa30$export$f39a09f249340e2a, (v) => $7a9eac509b76fa30$export$f39a09f249340e2a = v);
40
- $parcel$export($7a9eac509b76fa30$exports, "i18nFontFamily", () => $7a9eac509b76fa30$export$8c4ee2c50c22c514, (v) => $7a9eac509b76fa30$export$8c4ee2c50c22c514 = v);
41
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing-ring", () => $7a9eac509b76fa30$export$4109102f950813a6, (v) => $7a9eac509b76fa30$export$4109102f950813a6 = v);
42
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing", () => $7a9eac509b76fa30$export$24c7f46a6e3605dd, (v) => $7a9eac509b76fa30$export$24c7f46a6e3605dd = v);
43
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing--quiet", () => $7a9eac509b76fa30$export$2927016961429360, (v) => $7a9eac509b76fa30$export$2927016961429360 = v);
44
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule", () => $7a9eac509b76fa30$export$9ebf9cdaed6878bc, (v) => $7a9eac509b76fa30$export$9ebf9cdaed6878bc = v);
45
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
46
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--large", () => $7a9eac509b76fa30$export$243baa0ec4ab58cc, (v) => $7a9eac509b76fa30$export$243baa0ec4ab58cc = v);
47
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--medium", () => $7a9eac509b76fa30$export$a8d73b58ca350eb9, (v) => $7a9eac509b76fa30$export$a8d73b58ca350eb9 = v);
48
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--small", () => $7a9eac509b76fa30$export$b4b727880cfe37d, (v) => $7a9eac509b76fa30$export$b4b727880cfe37d = v);
49
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--vertical", () => $7a9eac509b76fa30$export$76f93463a8fc15a8, (v) => $7a9eac509b76fa30$export$76f93463a8fc15a8 = v);
50
- var $7a9eac509b76fa30$export$f39a09f249340e2a;
51
- var $7a9eac509b76fa30$export$8c4ee2c50c22c514;
52
- var $7a9eac509b76fa30$export$4109102f950813a6;
53
- var $7a9eac509b76fa30$export$24c7f46a6e3605dd;
54
- var $7a9eac509b76fa30$export$2927016961429360;
55
- var $7a9eac509b76fa30$export$9ebf9cdaed6878bc;
56
- var $7a9eac509b76fa30$export$563c1b24466c05b8;
57
- var $7a9eac509b76fa30$export$243baa0ec4ab58cc;
58
- var $7a9eac509b76fa30$export$a8d73b58ca350eb9;
59
- var $7a9eac509b76fa30$export$b4b727880cfe37d;
60
- var $7a9eac509b76fa30$export$76f93463a8fc15a8;
61
- $7a9eac509b76fa30$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
62
- $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
63
- $7a9eac509b76fa30$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
64
- $7a9eac509b76fa30$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
65
- $7a9eac509b76fa30$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
66
- $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
67
- $7a9eac509b76fa30$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
68
- $7a9eac509b76fa30$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
69
- $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
70
- $7a9eac509b76fa30$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
71
- $7a9eac509b76fa30$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
72
-
73
-
74
-
75
- let $269e81ee206e9515$var$sizeMap = {
76
- S: "small",
77
- M: "medium",
78
- L: "large"
79
- };
80
- function $269e81ee206e9515$var$Divider(props, ref) {
81
- props = (0, $aBEni$useSlotProps)(props, "divider");
82
- let { size: size = "L", orientation: orientation = "horizontal", ...otherProps } = props;
83
- let domRef = (0, $aBEni$useDOMRef)(ref);
84
- let { styleProps: styleProps } = (0, $aBEni$useStyleProps)(otherProps);
85
- let weight = $269e81ee206e9515$var$sizeMap[size];
86
- let Element = "hr";
87
- if (orientation === "vertical") Element = "div";
88
- let { separatorProps: separatorProps } = (0, $aBEni$useSeparator)({
89
- ...props,
90
- elementType: Element
91
- });
92
- return /*#__PURE__*/ (0, $aBEni$react).createElement(Element, {
93
- ...styleProps,
94
- className: (0, $aBEni$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7a9eac509b76fa30$exports))), "spectrum-Rule", `spectrum-Rule--${weight}`, {
95
- "spectrum-Rule--vertical": orientation === "vertical",
96
- "spectrum-Rule--horizontal": orientation === "horizontal"
97
- }, styleProps.className),
98
- // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892
99
- ref: domRef,
100
- ...separatorProps
101
- });
102
- }
103
- /**
104
- * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
105
- * They can also be used to establish rhythm and hierarchy.
106
- */ let $269e81ee206e9515$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, $aBEni$react).forwardRef($269e81ee206e9515$var$Divider);
107
-
108
14
 
109
15
 
110
16
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAVA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC;AACxD,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,2CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC;;;;ADS5E,IAAI,gCAAU;IACZ,GAAG;IACH,GAAG;IACH,GAAG;AACL;AAEA,SAAS,8BAAQ,KAA2B,EAAE,GAAW;IACvD,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,QACF,OAAO,kBACP,cAAc,cACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,6BAAO,CAAC,KAAK;IAE1B,IAAI,UAAuB;IAC3B,IAAI,gBAAgB,YAClB,UAAU;IAGZ,IAAI,kBAAC,cAAc,EAAC,GAAG,CAAA,GAAA,mBAAW,EAAE;QAClC,GAAG,KAAK;QACR,aAAa;IACf;IAEA,qBACE,gCAAC;QACE,GAAG,UAAU;QACd,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,gEAAK,GACL,iBACA,CAAC,eAAe,EAAE,OAAO,CAAC,EAC1B;YACE,2BAA2B,gBAAgB;YAC3C,6BAA6B,gBAAgB;QAC/C,GACA,WAAW,SAAS;QAGxB,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/divider/src/index.ts","packages/@react-spectrum/divider/src/Divider.tsx","packages/@adobe/spectrum-css-temp/components/rule/vars.css"],"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 */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Divider} from './Divider';\nexport type {SpectrumDividerProps} from '@react-types/divider';\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\nimport {classNames, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport React, {ElementType} from 'react';\nimport {SpectrumDividerProps} from '@react-types/divider';\nimport styles from '@adobe/spectrum-css-temp/components/rule/vars.css';\nimport {useSeparator} from '@react-aria/separator';\n\nlet sizeMap = {\n S: 'small',\n M: 'medium',\n L: 'large'\n};\n\nfunction Divider(props: SpectrumDividerProps, ref: DOMRef) {\n props = useSlotProps(props, 'divider');\n let {\n size = 'L',\n orientation = 'horizontal',\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let weight = sizeMap[size];\n\n let Element: ElementType = 'hr';\n if (orientation === 'vertical') {\n Element = 'div';\n }\n\n let {separatorProps} = useSeparator({\n ...props,\n elementType: Element\n });\n\n return (\n <Element\n {...styleProps}\n className={\n classNames(\n styles,\n 'spectrum-Rule',\n `spectrum-Rule--${weight}`,\n {\n 'spectrum-Rule--vertical': orientation === 'vertical',\n 'spectrum-Rule--horizontal': orientation === 'horizontal'\n },\n styleProps.className\n )\n }\n // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892\n ref={domRef}\n {...separatorProps} />\n );\n}\n\n/**\n * Dividers bring clarity to a layout by grouping and dividing content in close proximity.\n * They can also be used to establish rhythm and hierarchy.\n */\nlet _Divider = React.forwardRef(Divider);\nexport {_Divider as Divider};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/divider/src/index.ts"],"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 */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Divider} from './Divider';\nexport type {SpectrumDividerProps} from '@react-types/divider';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,41 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+
6
+ $parcel$export(module.exports, "focus-ring", () => $7fdcb1fd1927dca1$export$f39a09f249340e2a, (v) => $7fdcb1fd1927dca1$export$f39a09f249340e2a = v);
7
+ $parcel$export(module.exports, "i18nFontFamily", () => $7fdcb1fd1927dca1$export$8c4ee2c50c22c514, (v) => $7fdcb1fd1927dca1$export$8c4ee2c50c22c514 = v);
8
+ $parcel$export(module.exports, "spectrum-FocusRing-ring", () => $7fdcb1fd1927dca1$export$4109102f950813a6, (v) => $7fdcb1fd1927dca1$export$4109102f950813a6 = v);
9
+ $parcel$export(module.exports, "spectrum-FocusRing", () => $7fdcb1fd1927dca1$export$24c7f46a6e3605dd, (v) => $7fdcb1fd1927dca1$export$24c7f46a6e3605dd = v);
10
+ $parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $7fdcb1fd1927dca1$export$2927016961429360, (v) => $7fdcb1fd1927dca1$export$2927016961429360 = v);
11
+ $parcel$export(module.exports, "spectrum-Rule", () => $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc, (v) => $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = v);
12
+ $parcel$export(module.exports, "spectrum-Rule--horizontal", () => $7fdcb1fd1927dca1$export$563c1b24466c05b8, (v) => $7fdcb1fd1927dca1$export$563c1b24466c05b8 = v);
13
+ $parcel$export(module.exports, "spectrum-Rule--large", () => $7fdcb1fd1927dca1$export$243baa0ec4ab58cc, (v) => $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = v);
14
+ $parcel$export(module.exports, "spectrum-Rule--medium", () => $7fdcb1fd1927dca1$export$a8d73b58ca350eb9, (v) => $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = v);
15
+ $parcel$export(module.exports, "spectrum-Rule--small", () => $7fdcb1fd1927dca1$export$b4b727880cfe37d, (v) => $7fdcb1fd1927dca1$export$b4b727880cfe37d = v);
16
+ $parcel$export(module.exports, "spectrum-Rule--vertical", () => $7fdcb1fd1927dca1$export$76f93463a8fc15a8, (v) => $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = v);
17
+ var $7fdcb1fd1927dca1$export$f39a09f249340e2a;
18
+ var $7fdcb1fd1927dca1$export$8c4ee2c50c22c514;
19
+ var $7fdcb1fd1927dca1$export$4109102f950813a6;
20
+ var $7fdcb1fd1927dca1$export$24c7f46a6e3605dd;
21
+ var $7fdcb1fd1927dca1$export$2927016961429360;
22
+ var $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc;
23
+ var $7fdcb1fd1927dca1$export$563c1b24466c05b8;
24
+ var $7fdcb1fd1927dca1$export$243baa0ec4ab58cc;
25
+ var $7fdcb1fd1927dca1$export$a8d73b58ca350eb9;
26
+ var $7fdcb1fd1927dca1$export$b4b727880cfe37d;
27
+ var $7fdcb1fd1927dca1$export$76f93463a8fc15a8;
28
+ $7fdcb1fd1927dca1$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
29
+ $7fdcb1fd1927dca1$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
30
+ $7fdcb1fd1927dca1$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
31
+ $7fdcb1fd1927dca1$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7fdcb1fd1927dca1$export$4109102f950813a6}`;
32
+ $7fdcb1fd1927dca1$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
33
+ $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
34
+ $7fdcb1fd1927dca1$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
35
+ $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
36
+ $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
37
+ $7fdcb1fd1927dca1$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
38
+ $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
39
+
40
+
41
+ //# sourceMappingURL=rule_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAVA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC;AACxD,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,2CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/rule/vars.css"],"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 */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"rule_vars_css.main.js.map"}
@@ -0,0 +1,43 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $7a9eac509b76fa30$exports = {};
6
+
7
+ $parcel$export($7a9eac509b76fa30$exports, "focus-ring", () => $7a9eac509b76fa30$export$f39a09f249340e2a, (v) => $7a9eac509b76fa30$export$f39a09f249340e2a = v);
8
+ $parcel$export($7a9eac509b76fa30$exports, "i18nFontFamily", () => $7a9eac509b76fa30$export$8c4ee2c50c22c514, (v) => $7a9eac509b76fa30$export$8c4ee2c50c22c514 = v);
9
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing-ring", () => $7a9eac509b76fa30$export$4109102f950813a6, (v) => $7a9eac509b76fa30$export$4109102f950813a6 = v);
10
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing", () => $7a9eac509b76fa30$export$24c7f46a6e3605dd, (v) => $7a9eac509b76fa30$export$24c7f46a6e3605dd = v);
11
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing--quiet", () => $7a9eac509b76fa30$export$2927016961429360, (v) => $7a9eac509b76fa30$export$2927016961429360 = v);
12
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule", () => $7a9eac509b76fa30$export$9ebf9cdaed6878bc, (v) => $7a9eac509b76fa30$export$9ebf9cdaed6878bc = v);
13
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
14
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--large", () => $7a9eac509b76fa30$export$243baa0ec4ab58cc, (v) => $7a9eac509b76fa30$export$243baa0ec4ab58cc = v);
15
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--medium", () => $7a9eac509b76fa30$export$a8d73b58ca350eb9, (v) => $7a9eac509b76fa30$export$a8d73b58ca350eb9 = v);
16
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--small", () => $7a9eac509b76fa30$export$b4b727880cfe37d, (v) => $7a9eac509b76fa30$export$b4b727880cfe37d = v);
17
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--vertical", () => $7a9eac509b76fa30$export$76f93463a8fc15a8, (v) => $7a9eac509b76fa30$export$76f93463a8fc15a8 = v);
18
+ var $7a9eac509b76fa30$export$f39a09f249340e2a;
19
+ var $7a9eac509b76fa30$export$8c4ee2c50c22c514;
20
+ var $7a9eac509b76fa30$export$4109102f950813a6;
21
+ var $7a9eac509b76fa30$export$24c7f46a6e3605dd;
22
+ var $7a9eac509b76fa30$export$2927016961429360;
23
+ var $7a9eac509b76fa30$export$9ebf9cdaed6878bc;
24
+ var $7a9eac509b76fa30$export$563c1b24466c05b8;
25
+ var $7a9eac509b76fa30$export$243baa0ec4ab58cc;
26
+ var $7a9eac509b76fa30$export$a8d73b58ca350eb9;
27
+ var $7a9eac509b76fa30$export$b4b727880cfe37d;
28
+ var $7a9eac509b76fa30$export$76f93463a8fc15a8;
29
+ $7a9eac509b76fa30$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
30
+ $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
31
+ $7a9eac509b76fa30$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
32
+ $7a9eac509b76fa30$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
33
+ $7a9eac509b76fa30$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
34
+ $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
35
+ $7a9eac509b76fa30$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
36
+ $7a9eac509b76fa30$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
37
+ $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
38
+ $7a9eac509b76fa30$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
39
+ $7a9eac509b76fa30$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
40
+
41
+
42
+ export {$7a9eac509b76fa30$exports as default};
43
+ //# sourceMappingURL=rule_vars_css.module.js.map
@@ -0,0 +1,43 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $7a9eac509b76fa30$exports = {};
6
+
7
+ $parcel$export($7a9eac509b76fa30$exports, "focus-ring", () => $7a9eac509b76fa30$export$f39a09f249340e2a, (v) => $7a9eac509b76fa30$export$f39a09f249340e2a = v);
8
+ $parcel$export($7a9eac509b76fa30$exports, "i18nFontFamily", () => $7a9eac509b76fa30$export$8c4ee2c50c22c514, (v) => $7a9eac509b76fa30$export$8c4ee2c50c22c514 = v);
9
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing-ring", () => $7a9eac509b76fa30$export$4109102f950813a6, (v) => $7a9eac509b76fa30$export$4109102f950813a6 = v);
10
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing", () => $7a9eac509b76fa30$export$24c7f46a6e3605dd, (v) => $7a9eac509b76fa30$export$24c7f46a6e3605dd = v);
11
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing--quiet", () => $7a9eac509b76fa30$export$2927016961429360, (v) => $7a9eac509b76fa30$export$2927016961429360 = v);
12
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule", () => $7a9eac509b76fa30$export$9ebf9cdaed6878bc, (v) => $7a9eac509b76fa30$export$9ebf9cdaed6878bc = v);
13
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
14
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--large", () => $7a9eac509b76fa30$export$243baa0ec4ab58cc, (v) => $7a9eac509b76fa30$export$243baa0ec4ab58cc = v);
15
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--medium", () => $7a9eac509b76fa30$export$a8d73b58ca350eb9, (v) => $7a9eac509b76fa30$export$a8d73b58ca350eb9 = v);
16
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--small", () => $7a9eac509b76fa30$export$b4b727880cfe37d, (v) => $7a9eac509b76fa30$export$b4b727880cfe37d = v);
17
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--vertical", () => $7a9eac509b76fa30$export$76f93463a8fc15a8, (v) => $7a9eac509b76fa30$export$76f93463a8fc15a8 = v);
18
+ var $7a9eac509b76fa30$export$f39a09f249340e2a;
19
+ var $7a9eac509b76fa30$export$8c4ee2c50c22c514;
20
+ var $7a9eac509b76fa30$export$4109102f950813a6;
21
+ var $7a9eac509b76fa30$export$24c7f46a6e3605dd;
22
+ var $7a9eac509b76fa30$export$2927016961429360;
23
+ var $7a9eac509b76fa30$export$9ebf9cdaed6878bc;
24
+ var $7a9eac509b76fa30$export$563c1b24466c05b8;
25
+ var $7a9eac509b76fa30$export$243baa0ec4ab58cc;
26
+ var $7a9eac509b76fa30$export$a8d73b58ca350eb9;
27
+ var $7a9eac509b76fa30$export$b4b727880cfe37d;
28
+ var $7a9eac509b76fa30$export$76f93463a8fc15a8;
29
+ $7a9eac509b76fa30$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
30
+ $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
31
+ $7a9eac509b76fa30$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
32
+ $7a9eac509b76fa30$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
33
+ $7a9eac509b76fa30$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
34
+ $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
35
+ $7a9eac509b76fa30$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
36
+ $7a9eac509b76fa30$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
37
+ $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
38
+ $7a9eac509b76fa30$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
39
+ $7a9eac509b76fa30$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
40
+
41
+
42
+ export {$7a9eac509b76fa30$exports as default};
43
+ //# sourceMappingURL=rule_vars_css.module.js.map
@@ -1 +1 @@
1
- {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;;;;AAiBF;;;AAII;;;;;AAQF;;;;AAKE;;;;;AAOJ;;;;;;;;;;;AAeA;;;;AAIA;;;;AAIA;;;;AAKE;;;;AAIA;;;;AAIA;;;;AAKF;;;;AAKE;;;;AAIA;;;;AAIA;;;;AAiBF;;;;AAIA;;;;AAIA;;;;AAIA;EACE","sources":["packages/@adobe/spectrum-css-temp/components/rule/vars.css"],"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 */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.css.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAVA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC;AACxD,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,2CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/rule/vars.css"],"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 */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"rule_vars_css.module.js.map"}
package/dist/types.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import React from "react";
2
2
  import { SpectrumDividerProps } from "@react-types/divider";
3
+ import { DOMRefValue } from "@react-types/shared";
3
4
  /**
4
5
  * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
5
6
  * They can also be used to establish rhythm and hierarchy.
6
7
  */
7
- export let Divider: React.ForwardRefExoticComponent<SpectrumDividerProps & React.RefAttributes<import("@react-types/shared").DOMRefValue<HTMLElement>>>;
8
+ export let Divider: React.ForwardRefExoticComponent<SpectrumDividerProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
8
9
  export type { SpectrumDividerProps } from '@react-types/divider';
9
10
 
10
11
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"mappings":";;AAmEA;;;GAGG;AACH,OAAA,IAAI,4IAAoC,CAAC;ACxDzC,YAAY,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC","sources":["packages/@react-spectrum/divider/src/packages/@react-spectrum/divider/src/Divider.tsx","packages/@react-spectrum/divider/src/packages/@react-spectrum/divider/src/index.ts","packages/@react-spectrum/divider/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Divider} from './Divider';\nexport type {SpectrumDividerProps} from '@react-types/divider';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AAmEA;;;GAGG;AACH,OAAA,IAAI,8GAAoC,CAAC;ACxDzC,YAAY,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC","sources":["packages/@react-spectrum/divider/src/packages/@react-spectrum/divider/src/Divider.tsx","packages/@react-spectrum/divider/src/packages/@react-spectrum/divider/src/index.ts","packages/@react-spectrum/divider/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Divider} from './Divider';\nexport type {SpectrumDividerProps} from '@react-types/divider';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -23,11 +23,7 @@
23
23
  font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
24
24
  }
25
25
 
26
- .cTbPrq_i18nFontFamily:lang(zh-SG) {
27
- font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
28
- }
29
-
30
- .cTbPrq_i18nFontFamily:lang(zh-CN) {
26
+ .cTbPrq_i18nFontFamily:lang(zh-SG), .cTbPrq_i18nFontFamily:lang(zh-CN) {
31
27
  font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
32
28
  }
33
29
 
@@ -55,13 +51,7 @@
55
51
  transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
56
52
  display: block;
57
53
  position: absolute;
58
- top: 0;
59
- bottom: 0;
60
- left: 0;
61
- right: 0;
62
- }
63
-
64
- .cTbPrq_spectrum-FocusRing {
54
+ inset: 0;
65
55
  }
66
56
 
67
57
  .cTbPrq_spectrum-FocusRing.cTbPrq_focus-ring:after {
@@ -78,14 +68,23 @@
78
68
  box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
79
69
  }
80
70
 
71
+ @media (forced-colors: active) {
72
+ .cTbPrq_spectrum-FocusRing, .cTbPrq_spectrum-FocusRing-ring, .cTbPrq_spectrum-FocusRing--quiet {
73
+ --spectrum-high-contrast-focus-ring-color: Highlight;
74
+ }
75
+
76
+ :is(.cTbPrq_spectrum-FocusRing, .cTbPrq_spectrum-FocusRing-ring, .cTbPrq_spectrum-FocusRing--quiet):after {
77
+ forced-color-adjust: none;
78
+ }
79
+ }
80
+
81
81
  .cTbPrq_spectrum-Rule {
82
82
  border: none;
83
83
  border-width: var(--spectrum-rule-medium-height, var(--spectrum-global-dimension-static-size-25));
84
84
  border-radius: var(--spectrum-rule-medium-height, var(--spectrum-global-dimension-static-size-25));
85
85
  margin: 0;
86
86
  align-self: stretch;
87
- margin-inline-start: 0;
88
- margin-inline-end: 0;
87
+ margin-inline: 0;
89
88
  overflow: visible;
90
89
  }
91
90
 
@@ -149,5 +148,4 @@
149
148
  --spectrum-rule-small-background-color: CanvasText;
150
149
  }
151
150
  }
152
-
153
- /*# sourceMappingURL=main.css.map */
151
+ /*# sourceMappingURL=vars.4e4c96fa.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;AAeA;;;;AAIA;;;;AAIA;;;;AAKE;;;;AAIA;;;;AAIA;;;;AAKF;;;;AAKE;;;;AAIA;;;;AAIA;;;;AAiBF;;;;AAIA;;;;AAIA;;;;AAIA;EACE","sources":["packages/@adobe/spectrum-css-temp/components/rule/vars.css"],"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 */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.4e4c96fa.css.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/divider",
3
- "version": "3.5.11",
3
+ "version": "3.5.13",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,10 +36,10 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/separator": "^3.3.11",
40
- "@react-spectrum/utils": "^3.11.5",
41
- "@react-types/divider": "^3.3.7",
42
- "@react-types/shared": "^3.22.1",
39
+ "@react-aria/separator": "^3.3.13",
40
+ "@react-spectrum/utils": "^3.11.7",
41
+ "@react-types/divider": "^3.3.9",
42
+ "@react-types/shared": "^3.23.1",
43
43
  "@swc/helpers": "^0.5.0"
44
44
  },
45
45
  "devDependencies": {
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "de9f84a22583fc741c29b341d14cd35ef4cca161"
54
+ "gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
55
55
  }