@react-spectrum/divider 3.0.0-nightly.1394 → 3.0.0-nightly.1409

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/main.css CHANGED
@@ -1 +1 @@
1
- [dir=ltr] ._spectrum-Rule_612bb8{margin-left:0}[dir=ltr] ._spectrum-Rule_612bb8,[dir=rtl] ._spectrum-Rule_612bb8{margin-right:0}[dir=rtl] ._spectrum-Rule_612bb8{margin-left:0}._spectrum-Rule_612bb8{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;border-width:medium;border:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25));border-radius:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25));margin:0;overflow:visible}._spectrum-Rule--large_612bb8{border-radius:var(--spectrum-rule-large-border-radius,var(--spectrum-global-dimension-static-size-25))}._spectrum-Rule--medium_612bb8{border-radius:var(--spectrum-rule-medium-border-radius,var(--spectrum-global-dimension-static-size-10))}._spectrum-Rule--small_612bb8{border-radius:var(--spectrum-rule-small-border-radius,var(--spectrum-global-dimension-static-size-10))}._spectrum-Rule--horizontal_612bb8._spectrum-Rule--large_612bb8{height:var(--spectrum-rule-large-height,var(--spectrum-global-dimension-static-size-50))}._spectrum-Rule--horizontal_612bb8._spectrum-Rule--medium_612bb8{height:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25))}._spectrum-Rule--horizontal_612bb8._spectrum-Rule--small_612bb8{height:var(--spectrum-rule-small-height,var(--spectrum-global-dimension-static-size-10))}._spectrum-Rule--vertical_612bb8{height:auto}._spectrum-Rule--vertical_612bb8._spectrum-Rule--large_612bb8{width:var(--spectrum-rule-large-height,var(--spectrum-global-dimension-static-size-50))}._spectrum-Rule--vertical_612bb8._spectrum-Rule--medium_612bb8{width:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25))}._spectrum-Rule--vertical_612bb8._spectrum-Rule--small_612bb8{width:var(--spectrum-rule-small-height,var(--spectrum-global-dimension-static-size-10))}._spectrum-Rule--large_612bb8{background-color:var(--spectrum-rule-large-background-color,var(--spectrum-global-color-gray-800))}._spectrum-Rule--medium_612bb8{background-color:var(--spectrum-rule-medium-background-color,var(--spectrum-global-color-gray-300))}._spectrum-Rule--small_612bb8{background-color:var(--spectrum-rule-small-background-color,var(--spectrum-global-color-gray-300))}
1
+ [dir=ltr] .spectrum-Rule_612bb8{margin-left:0}[dir=rtl] .spectrum-Rule_612bb8,[dir=ltr] .spectrum-Rule_612bb8{margin-right:0}[dir=rtl] .spectrum-Rule_612bb8{margin-left:0}.spectrum-Rule_612bb8{border:0;border-width:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25));border-radius:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25));-ms-grid-row-align:stretch;align-self:stretch;margin:0;overflow:visible}.spectrum-Rule--large_612bb8{border-radius:var(--spectrum-rule-large-border-radius,var(--spectrum-global-dimension-static-size-25))}.spectrum-Rule--medium_612bb8{border-radius:var(--spectrum-rule-medium-border-radius,var(--spectrum-global-dimension-static-size-10))}.spectrum-Rule--small_612bb8{border-radius:var(--spectrum-rule-small-border-radius,var(--spectrum-global-dimension-static-size-10))}.spectrum-Rule--horizontal_612bb8.spectrum-Rule--large_612bb8{height:var(--spectrum-rule-large-height,var(--spectrum-global-dimension-static-size-50))}.spectrum-Rule--horizontal_612bb8.spectrum-Rule--medium_612bb8{height:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25))}.spectrum-Rule--horizontal_612bb8.spectrum-Rule--small_612bb8{height:var(--spectrum-rule-small-height,var(--spectrum-global-dimension-static-size-10))}.spectrum-Rule--vertical_612bb8{height:auto}.spectrum-Rule--vertical_612bb8.spectrum-Rule--large_612bb8{width:var(--spectrum-rule-large-height,var(--spectrum-global-dimension-static-size-50))}.spectrum-Rule--vertical_612bb8.spectrum-Rule--medium_612bb8{width:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25))}.spectrum-Rule--vertical_612bb8.spectrum-Rule--small_612bb8{width:var(--spectrum-rule-small-height,var(--spectrum-global-dimension-static-size-10))}.spectrum-Rule--large_612bb8{background-color:var(--spectrum-rule-large-background-color,var(--spectrum-global-color-gray-800))}.spectrum-Rule--medium_612bb8{background-color:var(--spectrum-rule-medium-background-color,var(--spectrum-global-color-gray-300))}.spectrum-Rule--small_612bb8{background-color:var(--spectrum-rule-small-background-color,var(--spectrum-global-color-gray-300))}
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  require("./main.css");
2
- var $1ftV3$reactspectrumutils = require("@react-spectrum/utils");
3
- var $1ftV3$react = require("react");
4
- var $1ftV3$reactariaseparator = require("@react-aria/separator");
2
+ var $fUPKU$reactspectrumutils = require("@react-spectrum/utils");
3
+ var $fUPKU$react = require("react");
4
+ var $fUPKU$reactariaseparator = require("@react-aria/separator");
5
5
 
6
6
  function $parcel$exportWildcard(dest, source) {
7
7
  Object.keys(source).forEach(function(key) {
@@ -25,54 +25,54 @@ function $parcel$interopDefault(a) {
25
25
  function $parcel$export(e, n, v, s) {
26
26
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
27
27
  }
28
- var $9c26c5a0c5dc2add$exports = {};
28
+ var $06b727a78576616b$exports = {};
29
29
 
30
- $parcel$export($9c26c5a0c5dc2add$exports, "Divider", () => $9c26c5a0c5dc2add$export$2e0a83ec2e27ecbb);
30
+ $parcel$export($06b727a78576616b$exports, "Divider", () => $06b727a78576616b$export$2e0a83ec2e27ecbb);
31
31
 
32
32
 
33
- var $7a26b2fccc71a8a8$exports = {};
33
+ var $85d6bab8d0ec4e8e$exports = {};
34
34
 
35
- $parcel$export($7a26b2fccc71a8a8$exports, "spectrum-Rule", () => $7a26b2fccc71a8a8$export$9ebf9cdaed6878bc, (v) => $7a26b2fccc71a8a8$export$9ebf9cdaed6878bc = v);
36
- $parcel$export($7a26b2fccc71a8a8$exports, "spectrum-Rule--large", () => $7a26b2fccc71a8a8$export$243baa0ec4ab58cc, (v) => $7a26b2fccc71a8a8$export$243baa0ec4ab58cc = v);
37
- $parcel$export($7a26b2fccc71a8a8$exports, "spectrum-Rule--medium", () => $7a26b2fccc71a8a8$export$a8d73b58ca350eb9, (v) => $7a26b2fccc71a8a8$export$a8d73b58ca350eb9 = v);
38
- $parcel$export($7a26b2fccc71a8a8$exports, "spectrum-Rule--small", () => $7a26b2fccc71a8a8$export$b4b727880cfe37d, (v) => $7a26b2fccc71a8a8$export$b4b727880cfe37d = v);
39
- $parcel$export($7a26b2fccc71a8a8$exports, "spectrum-Rule--horizontal", () => $7a26b2fccc71a8a8$export$563c1b24466c05b8, (v) => $7a26b2fccc71a8a8$export$563c1b24466c05b8 = v);
40
- $parcel$export($7a26b2fccc71a8a8$exports, "spectrum-Rule--vertical", () => $7a26b2fccc71a8a8$export$76f93463a8fc15a8, (v) => $7a26b2fccc71a8a8$export$76f93463a8fc15a8 = v);
41
- var $7a26b2fccc71a8a8$export$9ebf9cdaed6878bc;
42
- var $7a26b2fccc71a8a8$export$243baa0ec4ab58cc;
43
- var $7a26b2fccc71a8a8$export$a8d73b58ca350eb9;
44
- var $7a26b2fccc71a8a8$export$b4b727880cfe37d;
45
- var $7a26b2fccc71a8a8$export$563c1b24466c05b8;
46
- var $7a26b2fccc71a8a8$export$76f93463a8fc15a8;
47
- $7a26b2fccc71a8a8$export$9ebf9cdaed6878bc = "_spectrum-Rule_612bb8";
48
- $7a26b2fccc71a8a8$export$243baa0ec4ab58cc = "_spectrum-Rule--large_612bb8";
49
- $7a26b2fccc71a8a8$export$a8d73b58ca350eb9 = "_spectrum-Rule--medium_612bb8";
50
- $7a26b2fccc71a8a8$export$b4b727880cfe37d = "_spectrum-Rule--small_612bb8";
51
- $7a26b2fccc71a8a8$export$563c1b24466c05b8 = "_spectrum-Rule--horizontal_612bb8";
52
- $7a26b2fccc71a8a8$export$76f93463a8fc15a8 = "_spectrum-Rule--vertical_612bb8";
35
+ $parcel$export($85d6bab8d0ec4e8e$exports, "spectrum-Rule", () => $85d6bab8d0ec4e8e$export$9ebf9cdaed6878bc, (v) => $85d6bab8d0ec4e8e$export$9ebf9cdaed6878bc = v);
36
+ $parcel$export($85d6bab8d0ec4e8e$exports, "spectrum-Rule--large", () => $85d6bab8d0ec4e8e$export$243baa0ec4ab58cc, (v) => $85d6bab8d0ec4e8e$export$243baa0ec4ab58cc = v);
37
+ $parcel$export($85d6bab8d0ec4e8e$exports, "spectrum-Rule--medium", () => $85d6bab8d0ec4e8e$export$a8d73b58ca350eb9, (v) => $85d6bab8d0ec4e8e$export$a8d73b58ca350eb9 = v);
38
+ $parcel$export($85d6bab8d0ec4e8e$exports, "spectrum-Rule--small", () => $85d6bab8d0ec4e8e$export$b4b727880cfe37d, (v) => $85d6bab8d0ec4e8e$export$b4b727880cfe37d = v);
39
+ $parcel$export($85d6bab8d0ec4e8e$exports, "spectrum-Rule--horizontal", () => $85d6bab8d0ec4e8e$export$563c1b24466c05b8, (v) => $85d6bab8d0ec4e8e$export$563c1b24466c05b8 = v);
40
+ $parcel$export($85d6bab8d0ec4e8e$exports, "spectrum-Rule--vertical", () => $85d6bab8d0ec4e8e$export$76f93463a8fc15a8, (v) => $85d6bab8d0ec4e8e$export$76f93463a8fc15a8 = v);
41
+ var $85d6bab8d0ec4e8e$export$9ebf9cdaed6878bc;
42
+ var $85d6bab8d0ec4e8e$export$243baa0ec4ab58cc;
43
+ var $85d6bab8d0ec4e8e$export$a8d73b58ca350eb9;
44
+ var $85d6bab8d0ec4e8e$export$b4b727880cfe37d;
45
+ var $85d6bab8d0ec4e8e$export$563c1b24466c05b8;
46
+ var $85d6bab8d0ec4e8e$export$76f93463a8fc15a8;
47
+ $85d6bab8d0ec4e8e$export$9ebf9cdaed6878bc = "spectrum-Rule_612bb8";
48
+ $85d6bab8d0ec4e8e$export$243baa0ec4ab58cc = "spectrum-Rule--large_612bb8";
49
+ $85d6bab8d0ec4e8e$export$a8d73b58ca350eb9 = "spectrum-Rule--medium_612bb8";
50
+ $85d6bab8d0ec4e8e$export$b4b727880cfe37d = "spectrum-Rule--small_612bb8";
51
+ $85d6bab8d0ec4e8e$export$563c1b24466c05b8 = "spectrum-Rule--horizontal_612bb8";
52
+ $85d6bab8d0ec4e8e$export$76f93463a8fc15a8 = "spectrum-Rule--vertical_612bb8";
53
53
 
54
54
 
55
55
 
56
- let $9c26c5a0c5dc2add$var$sizeMap = {
56
+ let $06b727a78576616b$var$sizeMap = {
57
57
  S: 'small',
58
58
  M: 'medium',
59
59
  L: 'large'
60
60
  };
61
- function $9c26c5a0c5dc2add$var$Divider(props, ref) {
62
- props = $1ftV3$reactspectrumutils.useSlotProps(props, 'divider');
61
+ function $06b727a78576616b$var$Divider(props, ref) {
62
+ props = $fUPKU$reactspectrumutils.useSlotProps(props, 'divider');
63
63
  let { size: size = 'L' , orientation: orientation = 'horizontal' , ...otherProps } = props;
64
- let domRef = $1ftV3$reactspectrumutils.useDOMRef(ref);
65
- let { styleProps: styleProps } = $1ftV3$reactspectrumutils.useStyleProps(otherProps);
66
- let weight = $9c26c5a0c5dc2add$var$sizeMap[size];
64
+ let domRef = $fUPKU$reactspectrumutils.useDOMRef(ref);
65
+ let { styleProps: styleProps } = $fUPKU$reactspectrumutils.useStyleProps(otherProps);
66
+ let weight = $06b727a78576616b$var$sizeMap[size];
67
67
  let Element = 'hr';
68
68
  if (orientation === 'vertical') Element = 'div';
69
- let { separatorProps: separatorProps } = $1ftV3$reactariaseparator.useSeparator({
69
+ let { separatorProps: separatorProps } = $fUPKU$reactariaseparator.useSeparator({
70
70
  ...props,
71
71
  elementType: Element
72
72
  });
73
- return(/*#__PURE__*/ ($parcel$interopDefault($1ftV3$react)).createElement(Element, {
73
+ return(/*#__PURE__*/ ($parcel$interopDefault($fUPKU$react)).createElement(Element, {
74
74
  ...styleProps,
75
- className: $1ftV3$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($7a26b2fccc71a8a8$exports)), 'spectrum-Rule', `spectrum-Rule--${weight}`, {
75
+ className: $fUPKU$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($85d6bab8d0ec4e8e$exports)), 'spectrum-Rule', `spectrum-Rule--${weight}`, {
76
76
  'spectrum-Rule--vertical': orientation === 'vertical',
77
77
  'spectrum-Rule--horizontal': orientation === 'horizontal'
78
78
  }, styleProps.className),
@@ -84,10 +84,10 @@ function $9c26c5a0c5dc2add$var$Divider(props, ref) {
84
84
  /**
85
85
  * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
86
86
  * They can also be used to establish rhythm and hierarchy.
87
- */ let $9c26c5a0c5dc2add$export$2e0a83ec2e27ecbb = /*#__PURE__*/ ($parcel$interopDefault($1ftV3$react)).forwardRef($9c26c5a0c5dc2add$var$Divider);
87
+ */ let $06b727a78576616b$export$2e0a83ec2e27ecbb = /*#__PURE__*/ ($parcel$interopDefault($fUPKU$react)).forwardRef($06b727a78576616b$var$Divider);
88
88
 
89
89
 
90
- $parcel$exportWildcard(module.exports, $9c26c5a0c5dc2add$exports);
90
+ $parcel$exportWildcard(module.exports, $06b727a78576616b$exports);
91
91
 
92
92
 
93
93
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAC/B,GAAsC;AACtC,GAAuC;AACvC,GAAsC;AACtC,GAA2C;AAC3C,GAAyC;AALzC,yCAA+B,GAAG,CAAuB;AACzD,yCAAsC,GAAG,CAA8B;AACvE,yCAAuC,GAAG,CAA+B;AACzE,wCAAsC,GAAG,CAA8B;AACvE,yCAA2C,GAAG,CAAmC;AACjF,yCAAyC,GAAG,CAAiC;;;;ADc7E,GAAG,CAAC,6BAAO,GAAG,CAAC;IACb,CAAC,EAAE,CAAO;IACV,CAAC,EAAE,CAAQ;IACX,CAAC,EAAE,CAAO;AACZ,CAAC;SAEQ,6BAAO,CAAC,KAA2B,EAAE,GAAW,EAAE,CAAC;IAC1D,KAAK,GAAG,sCAAY,CAAC,KAAK,EAAE,CAAS;IACrC,GAAG,CAAC,CAAC,OACH,IAAI,GAAG,CAAG,kBACV,WAAW,GAAG,CAAY,iBACvB,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,MAAM,GAAG,6BAAO,CAAC,IAAI;IAEzB,GAAG,CAAC,OAAO,GAAG,CAAI;IAClB,EAAE,EAAE,WAAW,KAAK,CAAU,WAC5B,OAAO,GAAG,CAAK;IAGjB,GAAG,CAAC,CAAC,iBAAA,cAAc,EAAA,CAAC,GAAG,sCAAY,CAAC,CAAC;WAChC,KAAK;QACR,WAAW,EAAE,OAAO;IACtB,CAAC;IAED,MAAM,oEACH,OAAO;WACF,UAAU;QACd,SAAS,EACP,oCAAU,CACR,gEAAM,EACN,CAAe,iBACd,eAAe,EAAE,MAAM,IACxB,CAAC;YACC,CAAyB,0BAAE,WAAW,KAAK,CAAU;YACrD,CAA2B,4BAAE,WAAW,KAAK,CAAY;QAC3D,CAAC,EACD,UAAU,CAAC,SAAS;QAGxB,EAAkE,AAAlE,gEAAkE;QAClE,GAAG,EAAE,MAAM;WACP,cAAc;;AAExB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAQ,iBAAG,sCAAK,CAAC,UAAU,CAAC,6BAAO","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 * from './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 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 = '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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAC/B,GAAsC;AACtC,GAAuC;AACvC,GAAsC;AACtC,GAA2C;AAC3C,GAAyC;AALzC,yCAA+B,GAAG,CAAsB;AACxD,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,wCAAsC,GAAG,CAA6B;AACtE,yCAA2C,GAAG,CAAkC;AAChF,yCAAyC,GAAG,CAAgC;;;;ADc5E,GAAG,CAAC,6BAAO,GAAG,CAAC;IACb,CAAC,EAAE,CAAO;IACV,CAAC,EAAE,CAAQ;IACX,CAAC,EAAE,CAAO;AACZ,CAAC;SAEQ,6BAAO,CAAC,KAA2B,EAAE,GAAW,EAAE,CAAC;IAC1D,KAAK,GAAG,sCAAY,CAAC,KAAK,EAAE,CAAS;IACrC,GAAG,CAAC,CAAC,OACH,IAAI,GAAG,CAAG,kBACV,WAAW,GAAG,CAAY,iBACvB,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,MAAM,GAAG,6BAAO,CAAC,IAAI;IAEzB,GAAG,CAAC,OAAO,GAAG,CAAI;IAClB,EAAE,EAAE,WAAW,KAAK,CAAU,WAC5B,OAAO,GAAG,CAAK;IAGjB,GAAG,CAAC,CAAC,iBAAA,cAAc,EAAA,CAAC,GAAG,sCAAY,CAAC,CAAC;WAChC,KAAK;QACR,WAAW,EAAE,OAAO;IACtB,CAAC;IAED,MAAM,oEACH,OAAO;WACF,UAAU;QACd,SAAS,EACP,oCAAU,CACR,gEAAM,EACN,CAAe,iBACd,eAAe,EAAE,MAAM,IACxB,CAAC;YACC,CAAyB,0BAAE,WAAW,KAAK,CAAU;YACrD,CAA2B,4BAAE,WAAW,KAAK,CAAY;QAC3D,CAAC,EACD,UAAU,CAAC,SAAS;QAGxB,EAAkE,AAAlE,gEAAkE;QAClE,GAAG,EAAE,MAAM;WACP,cAAc;;AAExB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAQ,iBAAG,sCAAK,CAAC,UAAU,CAAC,6BAAO","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 * from './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 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 = '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"}
package/dist/module.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./main.css";
2
- import {useSlotProps as $jXciI$useSlotProps, useDOMRef as $jXciI$useDOMRef, useStyleProps as $jXciI$useStyleProps, classNames as $jXciI$classNames} from "@react-spectrum/utils";
3
- import $jXciI$react from "react";
4
- import {useSeparator as $jXciI$useSeparator} from "@react-aria/separator";
2
+ import {useSlotProps as $eTrI9$useSlotProps, useDOMRef as $eTrI9$useDOMRef, useStyleProps as $eTrI9$useStyleProps, classNames as $eTrI9$classNames} from "@react-spectrum/utils";
3
+ import $eTrI9$react from "react";
4
+ import {useSeparator as $eTrI9$useSeparator} from "@react-aria/separator";
5
5
 
6
6
  function $parcel$interopDefault(a) {
7
7
  return a && a.__esModule ? a.default : a;
@@ -9,54 +9,54 @@ function $parcel$interopDefault(a) {
9
9
  function $parcel$export(e, n, v, s) {
10
10
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
11
11
  }
12
- var $10e3564eb59c6a1d$exports = {};
12
+ var $af991ac23f3745a4$exports = {};
13
13
 
14
- $parcel$export($10e3564eb59c6a1d$exports, "Divider", () => $10e3564eb59c6a1d$export$2e0a83ec2e27ecbb);
14
+ $parcel$export($af991ac23f3745a4$exports, "Divider", () => $af991ac23f3745a4$export$2e0a83ec2e27ecbb);
15
15
 
16
16
 
17
- var $b172ef60d050352a$exports = {};
17
+ var $c4cb5f69e2107147$exports = {};
18
18
 
19
- $parcel$export($b172ef60d050352a$exports, "spectrum-Rule", () => $b172ef60d050352a$export$9ebf9cdaed6878bc, (v) => $b172ef60d050352a$export$9ebf9cdaed6878bc = v);
20
- $parcel$export($b172ef60d050352a$exports, "spectrum-Rule--large", () => $b172ef60d050352a$export$243baa0ec4ab58cc, (v) => $b172ef60d050352a$export$243baa0ec4ab58cc = v);
21
- $parcel$export($b172ef60d050352a$exports, "spectrum-Rule--medium", () => $b172ef60d050352a$export$a8d73b58ca350eb9, (v) => $b172ef60d050352a$export$a8d73b58ca350eb9 = v);
22
- $parcel$export($b172ef60d050352a$exports, "spectrum-Rule--small", () => $b172ef60d050352a$export$b4b727880cfe37d, (v) => $b172ef60d050352a$export$b4b727880cfe37d = v);
23
- $parcel$export($b172ef60d050352a$exports, "spectrum-Rule--horizontal", () => $b172ef60d050352a$export$563c1b24466c05b8, (v) => $b172ef60d050352a$export$563c1b24466c05b8 = v);
24
- $parcel$export($b172ef60d050352a$exports, "spectrum-Rule--vertical", () => $b172ef60d050352a$export$76f93463a8fc15a8, (v) => $b172ef60d050352a$export$76f93463a8fc15a8 = v);
25
- var $b172ef60d050352a$export$9ebf9cdaed6878bc;
26
- var $b172ef60d050352a$export$243baa0ec4ab58cc;
27
- var $b172ef60d050352a$export$a8d73b58ca350eb9;
28
- var $b172ef60d050352a$export$b4b727880cfe37d;
29
- var $b172ef60d050352a$export$563c1b24466c05b8;
30
- var $b172ef60d050352a$export$76f93463a8fc15a8;
31
- $b172ef60d050352a$export$9ebf9cdaed6878bc = "_spectrum-Rule_612bb8";
32
- $b172ef60d050352a$export$243baa0ec4ab58cc = "_spectrum-Rule--large_612bb8";
33
- $b172ef60d050352a$export$a8d73b58ca350eb9 = "_spectrum-Rule--medium_612bb8";
34
- $b172ef60d050352a$export$b4b727880cfe37d = "_spectrum-Rule--small_612bb8";
35
- $b172ef60d050352a$export$563c1b24466c05b8 = "_spectrum-Rule--horizontal_612bb8";
36
- $b172ef60d050352a$export$76f93463a8fc15a8 = "_spectrum-Rule--vertical_612bb8";
19
+ $parcel$export($c4cb5f69e2107147$exports, "spectrum-Rule", () => $c4cb5f69e2107147$export$9ebf9cdaed6878bc, (v) => $c4cb5f69e2107147$export$9ebf9cdaed6878bc = v);
20
+ $parcel$export($c4cb5f69e2107147$exports, "spectrum-Rule--large", () => $c4cb5f69e2107147$export$243baa0ec4ab58cc, (v) => $c4cb5f69e2107147$export$243baa0ec4ab58cc = v);
21
+ $parcel$export($c4cb5f69e2107147$exports, "spectrum-Rule--medium", () => $c4cb5f69e2107147$export$a8d73b58ca350eb9, (v) => $c4cb5f69e2107147$export$a8d73b58ca350eb9 = v);
22
+ $parcel$export($c4cb5f69e2107147$exports, "spectrum-Rule--small", () => $c4cb5f69e2107147$export$b4b727880cfe37d, (v) => $c4cb5f69e2107147$export$b4b727880cfe37d = v);
23
+ $parcel$export($c4cb5f69e2107147$exports, "spectrum-Rule--horizontal", () => $c4cb5f69e2107147$export$563c1b24466c05b8, (v) => $c4cb5f69e2107147$export$563c1b24466c05b8 = v);
24
+ $parcel$export($c4cb5f69e2107147$exports, "spectrum-Rule--vertical", () => $c4cb5f69e2107147$export$76f93463a8fc15a8, (v) => $c4cb5f69e2107147$export$76f93463a8fc15a8 = v);
25
+ var $c4cb5f69e2107147$export$9ebf9cdaed6878bc;
26
+ var $c4cb5f69e2107147$export$243baa0ec4ab58cc;
27
+ var $c4cb5f69e2107147$export$a8d73b58ca350eb9;
28
+ var $c4cb5f69e2107147$export$b4b727880cfe37d;
29
+ var $c4cb5f69e2107147$export$563c1b24466c05b8;
30
+ var $c4cb5f69e2107147$export$76f93463a8fc15a8;
31
+ $c4cb5f69e2107147$export$9ebf9cdaed6878bc = "spectrum-Rule_612bb8";
32
+ $c4cb5f69e2107147$export$243baa0ec4ab58cc = "spectrum-Rule--large_612bb8";
33
+ $c4cb5f69e2107147$export$a8d73b58ca350eb9 = "spectrum-Rule--medium_612bb8";
34
+ $c4cb5f69e2107147$export$b4b727880cfe37d = "spectrum-Rule--small_612bb8";
35
+ $c4cb5f69e2107147$export$563c1b24466c05b8 = "spectrum-Rule--horizontal_612bb8";
36
+ $c4cb5f69e2107147$export$76f93463a8fc15a8 = "spectrum-Rule--vertical_612bb8";
37
37
 
38
38
 
39
39
 
40
- let $10e3564eb59c6a1d$var$sizeMap = {
40
+ let $af991ac23f3745a4$var$sizeMap = {
41
41
  S: 'small',
42
42
  M: 'medium',
43
43
  L: 'large'
44
44
  };
45
- function $10e3564eb59c6a1d$var$Divider(props, ref) {
46
- props = $jXciI$useSlotProps(props, 'divider');
45
+ function $af991ac23f3745a4$var$Divider(props, ref) {
46
+ props = $eTrI9$useSlotProps(props, 'divider');
47
47
  let { size: size = 'L' , orientation: orientation = 'horizontal' , ...otherProps } = props;
48
- let domRef = $jXciI$useDOMRef(ref);
49
- let { styleProps: styleProps } = $jXciI$useStyleProps(otherProps);
50
- let weight = $10e3564eb59c6a1d$var$sizeMap[size];
48
+ let domRef = $eTrI9$useDOMRef(ref);
49
+ let { styleProps: styleProps } = $eTrI9$useStyleProps(otherProps);
50
+ let weight = $af991ac23f3745a4$var$sizeMap[size];
51
51
  let Element = 'hr';
52
52
  if (orientation === 'vertical') Element = 'div';
53
- let { separatorProps: separatorProps } = $jXciI$useSeparator({
53
+ let { separatorProps: separatorProps } = $eTrI9$useSeparator({
54
54
  ...props,
55
55
  elementType: Element
56
56
  });
57
- return(/*#__PURE__*/ $jXciI$react.createElement(Element, {
57
+ return(/*#__PURE__*/ $eTrI9$react.createElement(Element, {
58
58
  ...styleProps,
59
- className: $jXciI$classNames((/*@__PURE__*/$parcel$interopDefault($b172ef60d050352a$exports)), 'spectrum-Rule', `spectrum-Rule--${weight}`, {
59
+ className: $eTrI9$classNames((/*@__PURE__*/$parcel$interopDefault($c4cb5f69e2107147$exports)), 'spectrum-Rule', `spectrum-Rule--${weight}`, {
60
60
  'spectrum-Rule--vertical': orientation === 'vertical',
61
61
  'spectrum-Rule--horizontal': orientation === 'horizontal'
62
62
  }, styleProps.className),
@@ -68,10 +68,10 @@ function $10e3564eb59c6a1d$var$Divider(props, ref) {
68
68
  /**
69
69
  * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
70
70
  * They can also be used to establish rhythm and hierarchy.
71
- */ let $10e3564eb59c6a1d$export$2e0a83ec2e27ecbb = /*#__PURE__*/ $jXciI$react.forwardRef($10e3564eb59c6a1d$var$Divider);
71
+ */ let $af991ac23f3745a4$export$2e0a83ec2e27ecbb = /*#__PURE__*/ $eTrI9$react.forwardRef($af991ac23f3745a4$var$Divider);
72
72
 
73
73
 
74
74
 
75
75
 
76
- export {$10e3564eb59c6a1d$export$2e0a83ec2e27ecbb as Divider};
76
+ export {$af991ac23f3745a4$export$2e0a83ec2e27ecbb as Divider};
77
77
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAC/B,GAAsC;AACtC,GAAuC;AACvC,GAAsC;AACtC,GAA2C;AAC3C,GAAyC;AALzC,yCAA+B,GAAG,CAAuB;AACzD,yCAAsC,GAAG,CAA8B;AACvE,yCAAuC,GAAG,CAA+B;AACzE,wCAAsC,GAAG,CAA8B;AACvE,yCAA2C,GAAG,CAAmC;AACjF,yCAAyC,GAAG,CAAiC;;;;ADc7E,GAAG,CAAC,6BAAO,GAAG,CAAC;IACb,CAAC,EAAE,CAAO;IACV,CAAC,EAAE,CAAQ;IACX,CAAC,EAAE,CAAO;AACZ,CAAC;SAEQ,6BAAO,CAAC,KAA2B,EAAE,GAAW,EAAE,CAAC;IAC1D,KAAK,GAAG,mBAAY,CAAC,KAAK,EAAE,CAAS;IACrC,GAAG,CAAC,CAAC,OACH,IAAI,GAAG,CAAG,kBACV,WAAW,GAAG,CAAY,iBACvB,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,MAAM,GAAG,6BAAO,CAAC,IAAI;IAEzB,GAAG,CAAC,OAAO,GAAG,CAAI;IAClB,EAAE,EAAE,WAAW,KAAK,CAAU,WAC5B,OAAO,GAAG,CAAK;IAGjB,GAAG,CAAC,CAAC,iBAAA,cAAc,EAAA,CAAC,GAAG,mBAAY,CAAC,CAAC;WAChC,KAAK;QACR,WAAW,EAAE,OAAO;IACtB,CAAC;IAED,MAAM,0CACH,OAAO;WACF,UAAU;QACd,SAAS,EACP,iBAAU,CACR,gEAAM,EACN,CAAe,iBACd,eAAe,EAAE,MAAM,IACxB,CAAC;YACC,CAAyB,0BAAE,WAAW,KAAK,CAAU;YACrD,CAA2B,4BAAE,WAAW,KAAK,CAAY;QAC3D,CAAC,EACD,UAAU,CAAC,SAAS;QAGxB,EAAkE,AAAlE,gEAAkE;QAClE,GAAG,EAAE,MAAM;WACP,cAAc;;AAExB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAQ,iBAAG,YAAK,CAAC,UAAU,CAAC,6BAAO","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 * from './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 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 = '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":";;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAC/B,GAAsC;AACtC,GAAuC;AACvC,GAAsC;AACtC,GAA2C;AAC3C,GAAyC;AALzC,yCAA+B,GAAG,CAAsB;AACxD,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,wCAAsC,GAAG,CAA6B;AACtE,yCAA2C,GAAG,CAAkC;AAChF,yCAAyC,GAAG,CAAgC;;;;ADc5E,GAAG,CAAC,6BAAO,GAAG,CAAC;IACb,CAAC,EAAE,CAAO;IACV,CAAC,EAAE,CAAQ;IACX,CAAC,EAAE,CAAO;AACZ,CAAC;SAEQ,6BAAO,CAAC,KAA2B,EAAE,GAAW,EAAE,CAAC;IAC1D,KAAK,GAAG,mBAAY,CAAC,KAAK,EAAE,CAAS;IACrC,GAAG,CAAC,CAAC,OACH,IAAI,GAAG,CAAG,kBACV,WAAW,GAAG,CAAY,iBACvB,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,MAAM,GAAG,6BAAO,CAAC,IAAI;IAEzB,GAAG,CAAC,OAAO,GAAG,CAAI;IAClB,EAAE,EAAE,WAAW,KAAK,CAAU,WAC5B,OAAO,GAAG,CAAK;IAGjB,GAAG,CAAC,CAAC,iBAAA,cAAc,EAAA,CAAC,GAAG,mBAAY,CAAC,CAAC;WAChC,KAAK;QACR,WAAW,EAAE,OAAO;IACtB,CAAC;IAED,MAAM,0CACH,OAAO;WACF,UAAU;QACd,SAAS,EACP,iBAAU,CACR,gEAAM,EACN,CAAe,iBACd,eAAe,EAAE,MAAM,IACxB,CAAC;YACC,CAAyB,0BAAE,WAAW,KAAK,CAAU;YACrD,CAA2B,4BAAE,WAAW,KAAK,CAAY;QAC3D,CAAC,EACD,UAAU,CAAC,SAAS;QAGxB,EAAkE,AAAlE,gEAAkE;QAClE,GAAG,EAAE,MAAM;WACP,cAAc;;AAExB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAQ,iBAAG,YAAK,CAAC,UAAU,CAAC,6BAAO","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 * from './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 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 = '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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/divider",
3
- "version": "3.0.0-nightly.1394+dfe72ee07",
3
+ "version": "3.0.0-nightly.1409+da2aa7467",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/separator": "3.0.0-nightly.1394+dfe72ee07",
36
- "@react-spectrum/utils": "3.0.0-nightly.1394+dfe72ee07",
37
- "@react-types/divider": "3.1.3-nightly.3085+dfe72ee07",
38
- "@react-types/shared": "3.0.0-nightly.1394+dfe72ee07"
35
+ "@react-aria/separator": "3.0.0-nightly.1409+da2aa7467",
36
+ "@react-spectrum/utils": "3.0.0-nightly.1409+da2aa7467",
37
+ "@react-types/divider": "3.1.3-nightly.3100+da2aa7467",
38
+ "@react-types/shared": "3.0.0-nightly.1409+da2aa7467"
39
39
  },
40
40
  "devDependencies": {
41
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1394+dfe72ee07"
41
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1409+da2aa7467"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "^16.8.0 || ^17.0.0-rc.1"
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "dfe72ee076f7ca27728d0b6b4c1ef86e11191ece"
49
+ "gitHead": "da2aa74670fbd93335ff01401ca53826b3602777"
50
50
  }