@react-spectrum/divider 3.5.30 → 3.6.1

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.
package/dist/import.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {Divider as $269e81ee206e9515$export$2e0a83ec2e27ecbb} from "./Divider.mjs";
1
+ import {Divider as $06e8ef4d6b2684be$re_export$Divider} from "@adobe/react-spectrum/Divider";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {Divider as $269e81ee206e9515$export$2e0a83ec2e27ecbb} from "./Divider.mj
14
14
 
15
15
 
16
16
 
17
- export {$269e81ee206e9515$export$2e0a83ec2e27ecbb as Divider};
17
+ export {$06e8ef4d6b2684be$re_export$Divider as Divider};
18
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
- var $a75f934b8a5939c6$exports = require("./Divider.main.js");
1
+ var $bgANm$adobereactspectrumDivider = require("@adobe/react-spectrum/Divider");
2
2
 
3
3
 
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
7
 
8
- $parcel$export(module.exports, "Divider", () => $a75f934b8a5939c6$exports.Divider);
8
+ $parcel$export(module.exports, "Divider", function () { return $bgANm$adobereactspectrumDivider.Divider; });
9
9
  /*
10
10
  * Copyright 2020 Adobe. All rights reserved.
11
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
package/dist/main.js.map CHANGED
@@ -1 +1 @@
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"}
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 '@adobe/react-spectrum/Divider';\n\nexport type {SpectrumDividerProps} from '@adobe/react-spectrum/Divider';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {Divider as $269e81ee206e9515$export$2e0a83ec2e27ecbb} from "./Divider.module.js";
1
+ import {Divider as $06e8ef4d6b2684be$re_export$Divider} from "@adobe/react-spectrum/Divider";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {Divider as $269e81ee206e9515$export$2e0a83ec2e27ecbb} from "./Divider.mo
14
14
 
15
15
 
16
16
 
17
- export {$269e81ee206e9515$export$2e0a83ec2e27ecbb as Divider};
17
+ export {$06e8ef4d6b2684be$re_export$Divider as Divider};
18
18
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
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"}
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 '@adobe/react-spectrum/Divider';\n\nexport type {SpectrumDividerProps} from '@adobe/react-spectrum/Divider';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,2 @@
1
+ export { Divider } from '@adobe/react-spectrum/Divider';
2
+ export type { SpectrumDividerProps } from '@adobe/react-spectrum/Divider';
package/package.json CHANGED
@@ -1,20 +1,12 @@
1
1
  {
2
2
  "name": "@react-spectrum/divider",
3
- "version": "3.5.30",
3
+ "version": "3.6.1",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
- "main": "dist/main.js",
7
- "module": "dist/module.js",
8
- "exports": {
9
- "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
14
- "import": "./dist/import.mjs",
15
- "require": "./dist/main.js"
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/adobe/react-spectrum"
16
9
  },
17
- "types": "dist/types.d.ts",
18
10
  "source": "src/index.ts",
19
11
  "files": [
20
12
  "dist",
@@ -23,38 +15,35 @@
23
15
  "sideEffects": [
24
16
  "*.css"
25
17
  ],
26
- "targets": {
27
- "main": {
28
- "includeNodeModules": [
29
- "@adobe/spectrum-css-temp"
30
- ]
18
+ "main": "dist/main.js",
19
+ "module": "dist/module.js",
20
+ "types": "dist/types/src/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "source": "./src/index.ts",
24
+ "types": "./dist/types/src/index.d.ts",
25
+ "import": "./dist/import.mjs",
26
+ "require": "./dist/main.js"
31
27
  },
32
- "module": {
33
- "includeNodeModules": [
34
- "@adobe/spectrum-css-temp"
35
- ]
36
- }
28
+ "./package.json": "./package.json"
37
29
  },
38
- "repository": {
39
- "type": "git",
40
- "url": "https://github.com/adobe/react-spectrum"
30
+ "publishConfig": {
31
+ "access": "public"
41
32
  },
42
33
  "dependencies": {
43
- "@react-aria/separator": "^3.4.16",
44
- "@react-spectrum/utils": "^3.12.12",
45
- "@react-types/divider": "^3.3.23",
46
- "@react-types/shared": "^3.33.1",
34
+ "@adobe/react-spectrum": "^3.47.0",
47
35
  "@swc/helpers": "^0.5.0"
48
36
  },
49
37
  "devDependencies": {
50
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
38
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
39
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
51
40
  },
52
41
  "peerDependencies": {
53
42
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
54
43
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
55
44
  },
56
- "publishConfig": {
57
- "access": "public"
45
+ "targets": {
46
+ "types": false
58
47
  },
59
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
48
+ "gitHead": "3577a20859b9585a000010c720f6ee39c1c588cc"
60
49
  }
package/src/index.ts CHANGED
@@ -12,5 +12,6 @@
12
12
 
13
13
  /// <reference types="css-module-types" />
14
14
 
15
- export {Divider} from './Divider';
16
- export type {SpectrumDividerProps} from '@react-types/divider';
15
+ export {Divider} from '@adobe/react-spectrum/Divider';
16
+
17
+ export type {SpectrumDividerProps} from '@adobe/react-spectrum/Divider';
@@ -1,61 +0,0 @@
1
- require("./divider.e330ed3f.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
- const $a75f934b8a5939c6$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, ($parcel$interopDefault($40sll$react))).forwardRef(function 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
-
61
- //# sourceMappingURL=Divider.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,IAAI,gCAAU;IACZ,GAAG;IACH,GAAG;IACH,GAAG;AACL;AAMO,MAAM,0DAAU,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,QAAQ,KAA2B,EAAE,GAAW;IAC/F,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,QAAQ,EAC1B;YACE,2BAA2B,gBAAgB;YAC3C,6BAA6B,gBAAgB;QAC/C,GACA,WAAW,SAAS;QAGxB,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB","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\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 */\nexport const Divider = React.forwardRef(function 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"],"names":[],"version":3,"file":"Divider.main.js.map"}
package/dist/Divider.mjs DELETED
@@ -1,56 +0,0 @@
1
- import "./divider.e330ed3f.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
- const $269e81ee206e9515$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, $budPV$react).forwardRef(function 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
-
55
- export {$269e81ee206e9515$export$2e0a83ec2e27ecbb as Divider};
56
- //# sourceMappingURL=Divider.module.js.map
@@ -1,56 +0,0 @@
1
- import "./divider.e330ed3f.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
- const $269e81ee206e9515$export$2e0a83ec2e27ecbb = /*#__PURE__*/ (0, $budPV$react).forwardRef(function 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
-
55
- export {$269e81ee206e9515$export$2e0a83ec2e27ecbb as Divider};
56
- //# sourceMappingURL=Divider.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,IAAI,gCAAU;IACZ,GAAG;IACH,GAAG;IACH,GAAG;AACL;AAMO,MAAM,0DAAU,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,QAAQ,KAA2B,EAAE,GAAW;IAC/F,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,QAAQ,EAC1B;YACE,2BAA2B,gBAAgB;YAC3C,6BAA6B,gBAAgB;QAC/C,GACA,WAAW,SAAS;QAGxB,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB","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\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 */\nexport const Divider = React.forwardRef(function 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"],"names":[],"version":3,"file":"Divider.module.js.map"}
@@ -1,151 +0,0 @@
1
- .VXVB8W_i18nFontFamily {
2
- font-synthesis: weight;
3
- font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
4
- }
5
-
6
- .VXVB8W_i18nFontFamily:lang(ar) {
7
- font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
8
- }
9
-
10
- .VXVB8W_i18nFontFamily:lang(he) {
11
- font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
12
- }
13
-
14
- .VXVB8W_i18nFontFamily:lang(zh) {
15
- font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
- }
17
-
18
- .VXVB8W_i18nFontFamily:lang(zh-Hans) {
19
- font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
20
- }
21
-
22
- .VXVB8W_i18nFontFamily:lang(zh-Hant) {
23
- font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
24
- }
25
-
26
- .VXVB8W_i18nFontFamily:lang(zh-SG), .VXVB8W_i18nFontFamily:lang(zh-CN) {
27
- font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
28
- }
29
-
30
- .VXVB8W_i18nFontFamily:lang(ko) {
31
- font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
- }
33
-
34
- .VXVB8W_i18nFontFamily:lang(ja) {
35
- font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
36
- }
37
-
38
- .VXVB8W_spectrum-FocusRing-ring {
39
- --spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
40
- --spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
41
- --spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
42
- --spectrum-focus-ring-border-size: 0px;
43
- --spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
44
- }
45
-
46
- .VXVB8W_spectrum-FocusRing-ring:after {
47
- border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
48
- content: "";
49
- margin: calc(-1 * var(--spectrum-focus-ring-border-size));
50
- pointer-events: none;
51
- transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
52
- display: block;
53
- position: absolute;
54
- inset: 0;
55
- }
56
-
57
- .VXVB8W_spectrum-FocusRing.VXVB8W_focus-ring:after {
58
- margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
59
- box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
60
- }
61
-
62
- .VXVB8W_spectrum-FocusRing--quiet:after {
63
- border-radius: 0;
64
- }
65
-
66
- .VXVB8W_spectrum-FocusRing--quiet.VXVB8W_focus-ring:after {
67
- margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
68
- box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
69
- }
70
-
71
- @media (forced-colors: active) {
72
- .VXVB8W_spectrum-FocusRing, .VXVB8W_spectrum-FocusRing-ring, .VXVB8W_spectrum-FocusRing--quiet {
73
- --spectrum-high-contrast-focus-ring-color: Highlight;
74
- }
75
-
76
- :is(.VXVB8W_spectrum-FocusRing, .VXVB8W_spectrum-FocusRing-ring, .VXVB8W_spectrum-FocusRing--quiet):after {
77
- forced-color-adjust: none;
78
- }
79
- }
80
-
81
- .VXVB8W_spectrum-Rule {
82
- border: none;
83
- border-width: var(--spectrum-rule-medium-height, var(--spectrum-global-dimension-static-size-25));
84
- border-radius: var(--spectrum-rule-medium-height, var(--spectrum-global-dimension-static-size-25));
85
- margin: 0;
86
- align-self: stretch;
87
- margin-inline: 0;
88
- overflow: visible;
89
- }
90
-
91
- .VXVB8W_spectrum-Rule--large {
92
- border-radius: var(--spectrum-rule-large-border-radius, var(--spectrum-global-dimension-static-size-25));
93
- }
94
-
95
- .VXVB8W_spectrum-Rule--medium {
96
- border-radius: var(--spectrum-rule-medium-border-radius, var(--spectrum-global-dimension-static-size-10));
97
- }
98
-
99
- .VXVB8W_spectrum-Rule--small {
100
- border-radius: var(--spectrum-rule-small-border-radius, var(--spectrum-global-dimension-static-size-10));
101
- }
102
-
103
- .VXVB8W_spectrum-Rule--horizontal.VXVB8W_spectrum-Rule--large {
104
- block-size: var(--spectrum-rule-large-height, var(--spectrum-global-dimension-static-size-50));
105
- }
106
-
107
- .VXVB8W_spectrum-Rule--horizontal.VXVB8W_spectrum-Rule--medium {
108
- block-size: var(--spectrum-rule-medium-height, var(--spectrum-global-dimension-static-size-25));
109
- }
110
-
111
- .VXVB8W_spectrum-Rule--horizontal.VXVB8W_spectrum-Rule--small {
112
- block-size: var(--spectrum-rule-small-height, var(--spectrum-global-dimension-static-size-10));
113
- }
114
-
115
- .VXVB8W_spectrum-Rule--vertical {
116
- height: auto;
117
- }
118
-
119
- .VXVB8W_spectrum-Rule--vertical.VXVB8W_spectrum-Rule--large {
120
- inline-size: var(--spectrum-rule-large-height, var(--spectrum-global-dimension-static-size-50));
121
- }
122
-
123
- .VXVB8W_spectrum-Rule--vertical.VXVB8W_spectrum-Rule--medium {
124
- inline-size: var(--spectrum-rule-medium-height, var(--spectrum-global-dimension-static-size-25));
125
- }
126
-
127
- .VXVB8W_spectrum-Rule--vertical.VXVB8W_spectrum-Rule--small {
128
- inline-size: var(--spectrum-rule-small-height, var(--spectrum-global-dimension-static-size-10));
129
- }
130
-
131
- .VXVB8W_spectrum-Rule--large {
132
- background-color: var(--spectrum-rule-large-background-color, var(--spectrum-global-color-gray-800));
133
- }
134
-
135
- .VXVB8W_spectrum-Rule--medium {
136
- background-color: var(--spectrum-rule-medium-background-color, var(--spectrum-global-color-gray-300));
137
- }
138
-
139
- .VXVB8W_spectrum-Rule--small {
140
- background-color: var(--spectrum-rule-small-background-color, var(--spectrum-global-color-gray-300));
141
- }
142
-
143
- @media (forced-colors: active) {
144
- .VXVB8W_spectrum-Rule {
145
- forced-color-adjust: none;
146
- --spectrum-rule-large-background-color: CanvasText;
147
- --spectrum-rule-medium-background-color: CanvasText;
148
- --spectrum-rule-small-background-color: CanvasText;
149
- }
150
- }
151
- /*# sourceMappingURL=divider.e330ed3f.css.map */
@@ -1 +0,0 @@
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":"divider.e330ed3f.css.map"}
@@ -1,41 +0,0 @@
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 = `VXVB8W_focus-ring`;
29
- $7fdcb1fd1927dca1$export$8c4ee2c50c22c514 = `VXVB8W_i18nFontFamily`;
30
- $7fdcb1fd1927dca1$export$4109102f950813a6 = `VXVB8W_spectrum-FocusRing-ring`;
31
- $7fdcb1fd1927dca1$export$24c7f46a6e3605dd = `VXVB8W_spectrum-FocusRing ${$7fdcb1fd1927dca1$export$4109102f950813a6}`;
32
- $7fdcb1fd1927dca1$export$2927016961429360 = `VXVB8W_spectrum-FocusRing--quiet`;
33
- $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = `VXVB8W_spectrum-Rule`;
34
- $7fdcb1fd1927dca1$export$563c1b24466c05b8 = `VXVB8W_spectrum-Rule--horizontal`;
35
- $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = `VXVB8W_spectrum-Rule--large`;
36
- $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = `VXVB8W_spectrum-Rule--medium`;
37
- $7fdcb1fd1927dca1$export$b4b727880cfe37d = `VXVB8W_spectrum-Rule--small`;
38
- $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = `VXVB8W_spectrum-Rule--vertical`;
39
-
40
-
41
- //# sourceMappingURL=rule_vars_css.main.js.map
@@ -1 +0,0 @@
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,2CAA2C;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"}
@@ -1,43 +0,0 @@
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 = `VXVB8W_focus-ring`;
30
- $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `VXVB8W_i18nFontFamily`;
31
- $7a9eac509b76fa30$export$4109102f950813a6 = `VXVB8W_spectrum-FocusRing-ring`;
32
- $7a9eac509b76fa30$export$24c7f46a6e3605dd = `VXVB8W_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
33
- $7a9eac509b76fa30$export$2927016961429360 = `VXVB8W_spectrum-FocusRing--quiet`;
34
- $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `VXVB8W_spectrum-Rule`;
35
- $7a9eac509b76fa30$export$563c1b24466c05b8 = `VXVB8W_spectrum-Rule--horizontal`;
36
- $7a9eac509b76fa30$export$243baa0ec4ab58cc = `VXVB8W_spectrum-Rule--large`;
37
- $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `VXVB8W_spectrum-Rule--medium`;
38
- $7a9eac509b76fa30$export$b4b727880cfe37d = `VXVB8W_spectrum-Rule--small`;
39
- $7a9eac509b76fa30$export$76f93463a8fc15a8 = `VXVB8W_spectrum-Rule--vertical`;
40
-
41
-
42
- export {$7a9eac509b76fa30$exports as default};
43
- //# sourceMappingURL=rule_vars_css.module.js.map
@@ -1,43 +0,0 @@
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 = `VXVB8W_focus-ring`;
30
- $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `VXVB8W_i18nFontFamily`;
31
- $7a9eac509b76fa30$export$4109102f950813a6 = `VXVB8W_spectrum-FocusRing-ring`;
32
- $7a9eac509b76fa30$export$24c7f46a6e3605dd = `VXVB8W_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
33
- $7a9eac509b76fa30$export$2927016961429360 = `VXVB8W_spectrum-FocusRing--quiet`;
34
- $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `VXVB8W_spectrum-Rule`;
35
- $7a9eac509b76fa30$export$563c1b24466c05b8 = `VXVB8W_spectrum-Rule--horizontal`;
36
- $7a9eac509b76fa30$export$243baa0ec4ab58cc = `VXVB8W_spectrum-Rule--large`;
37
- $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `VXVB8W_spectrum-Rule--medium`;
38
- $7a9eac509b76fa30$export$b4b727880cfe37d = `VXVB8W_spectrum-Rule--small`;
39
- $7a9eac509b76fa30$export$76f93463a8fc15a8 = `VXVB8W_spectrum-Rule--vertical`;
40
-
41
-
42
- export {$7a9eac509b76fa30$exports as default};
43
- //# sourceMappingURL=rule_vars_css.module.js.map
@@ -1 +0,0 @@
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,2CAA2C;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 DELETED
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { SpectrumDividerProps } from "@react-types/divider";
3
- import { DOMRefValue } from "@react-types/shared";
4
- /**
5
- * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
6
- * They can also be used to establish rhythm and hierarchy.
7
- */
8
- export const Divider: React.ForwardRefExoticComponent<SpectrumDividerProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
9
- export type { SpectrumDividerProps } from '@react-types/divider';
10
-
11
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";;;AAyBA;;;GAGG;AACH,OAAO,MAAM,8GAwCX,CAAC;ACtDH,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"}
package/src/Divider.tsx DELETED
@@ -1,70 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {classNames, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';
14
- import {DOMRef} from '@react-types/shared';
15
- import React, {ElementType} from 'react';
16
- import {SpectrumDividerProps} from '@react-types/divider';
17
- import styles from '@adobe/spectrum-css-temp/components/rule/vars.css';
18
- import {useSeparator} from '@react-aria/separator';
19
-
20
- let sizeMap = {
21
- S: 'small',
22
- M: 'medium',
23
- L: 'large'
24
- };
25
-
26
- /**
27
- * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
28
- * They can also be used to establish rhythm and hierarchy.
29
- */
30
- export const Divider = React.forwardRef(function Divider(props: SpectrumDividerProps, ref: DOMRef) {
31
- props = useSlotProps(props, 'divider');
32
- let {
33
- size = 'L',
34
- orientation = 'horizontal',
35
- ...otherProps
36
- } = props;
37
- let domRef = useDOMRef(ref);
38
- let {styleProps} = useStyleProps(otherProps);
39
- let weight = sizeMap[size];
40
-
41
- let Element: ElementType = 'hr';
42
- if (orientation === 'vertical') {
43
- Element = 'div';
44
- }
45
-
46
- let {separatorProps} = useSeparator({
47
- ...props,
48
- elementType: Element
49
- });
50
-
51
- return (
52
- <Element
53
- {...styleProps}
54
- className={
55
- classNames(
56
- styles,
57
- 'spectrum-Rule',
58
- `spectrum-Rule--${weight}`,
59
- {
60
- 'spectrum-Rule--vertical': orientation === 'vertical',
61
- 'spectrum-Rule--horizontal': orientation === 'horizontal'
62
- },
63
- styleProps.className
64
- )
65
- }
66
- // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28892
67
- ref={domRef}
68
- {...separatorProps} />
69
- );
70
- });