@react-spectrum/divider 3.5.5 → 3.5.7

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
@@ -34,24 +34,39 @@ function $parcel$export(e, n, v, s) {
34
34
 
35
35
  var $7a9eac509b76fa30$exports = {};
36
36
 
37
+ $parcel$export($7a9eac509b76fa30$exports, "focus-ring", () => $7a9eac509b76fa30$export$f39a09f249340e2a, (v) => $7a9eac509b76fa30$export$f39a09f249340e2a = v);
38
+ $parcel$export($7a9eac509b76fa30$exports, "i18nFontFamily", () => $7a9eac509b76fa30$export$8c4ee2c50c22c514, (v) => $7a9eac509b76fa30$export$8c4ee2c50c22c514 = v);
39
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing-ring", () => $7a9eac509b76fa30$export$4109102f950813a6, (v) => $7a9eac509b76fa30$export$4109102f950813a6 = v);
40
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing", () => $7a9eac509b76fa30$export$24c7f46a6e3605dd, (v) => $7a9eac509b76fa30$export$24c7f46a6e3605dd = v);
41
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing--quiet", () => $7a9eac509b76fa30$export$2927016961429360, (v) => $7a9eac509b76fa30$export$2927016961429360 = v);
37
42
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule", () => $7a9eac509b76fa30$export$9ebf9cdaed6878bc, (v) => $7a9eac509b76fa30$export$9ebf9cdaed6878bc = v);
43
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
38
44
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--large", () => $7a9eac509b76fa30$export$243baa0ec4ab58cc, (v) => $7a9eac509b76fa30$export$243baa0ec4ab58cc = v);
39
45
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--medium", () => $7a9eac509b76fa30$export$a8d73b58ca350eb9, (v) => $7a9eac509b76fa30$export$a8d73b58ca350eb9 = v);
40
46
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--small", () => $7a9eac509b76fa30$export$b4b727880cfe37d, (v) => $7a9eac509b76fa30$export$b4b727880cfe37d = v);
41
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
42
47
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--vertical", () => $7a9eac509b76fa30$export$76f93463a8fc15a8, (v) => $7a9eac509b76fa30$export$76f93463a8fc15a8 = v);
48
+ var $7a9eac509b76fa30$export$f39a09f249340e2a;
49
+ var $7a9eac509b76fa30$export$8c4ee2c50c22c514;
50
+ var $7a9eac509b76fa30$export$4109102f950813a6;
51
+ var $7a9eac509b76fa30$export$24c7f46a6e3605dd;
52
+ var $7a9eac509b76fa30$export$2927016961429360;
43
53
  var $7a9eac509b76fa30$export$9ebf9cdaed6878bc;
54
+ var $7a9eac509b76fa30$export$563c1b24466c05b8;
44
55
  var $7a9eac509b76fa30$export$243baa0ec4ab58cc;
45
56
  var $7a9eac509b76fa30$export$a8d73b58ca350eb9;
46
57
  var $7a9eac509b76fa30$export$b4b727880cfe37d;
47
- var $7a9eac509b76fa30$export$563c1b24466c05b8;
48
58
  var $7a9eac509b76fa30$export$76f93463a8fc15a8;
49
- $7a9eac509b76fa30$export$9ebf9cdaed6878bc = "spectrum-Rule_612bb8";
50
- $7a9eac509b76fa30$export$243baa0ec4ab58cc = "spectrum-Rule--large_612bb8";
51
- $7a9eac509b76fa30$export$a8d73b58ca350eb9 = "spectrum-Rule--medium_612bb8";
52
- $7a9eac509b76fa30$export$b4b727880cfe37d = "spectrum-Rule--small_612bb8";
53
- $7a9eac509b76fa30$export$563c1b24466c05b8 = "spectrum-Rule--horizontal_612bb8";
54
- $7a9eac509b76fa30$export$76f93463a8fc15a8 = "spectrum-Rule--vertical_612bb8";
59
+ $7a9eac509b76fa30$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
60
+ $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
61
+ $7a9eac509b76fa30$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
62
+ $7a9eac509b76fa30$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
63
+ $7a9eac509b76fa30$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
64
+ $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
65
+ $7a9eac509b76fa30$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
66
+ $7a9eac509b76fa30$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
67
+ $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
68
+ $7a9eac509b76fa30$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
69
+ $7a9eac509b76fa30$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
55
70
 
56
71
 
57
72
 
@@ -62,13 +77,13 @@ let $269e81ee206e9515$var$sizeMap = {
62
77
  };
63
78
  function $269e81ee206e9515$var$Divider(props, ref) {
64
79
  props = (0, $aBEni$useSlotProps)(props, "divider");
65
- let { size: size = "L" , orientation: orientation = "horizontal" , ...otherProps } = props;
80
+ let { size: size = "L", orientation: orientation = "horizontal", ...otherProps } = props;
66
81
  let domRef = (0, $aBEni$useDOMRef)(ref);
67
- let { styleProps: styleProps } = (0, $aBEni$useStyleProps)(otherProps);
82
+ let { styleProps: styleProps } = (0, $aBEni$useStyleProps)(otherProps);
68
83
  let weight = $269e81ee206e9515$var$sizeMap[size];
69
84
  let Element = "hr";
70
85
  if (orientation === "vertical") Element = "div";
71
- let { separatorProps: separatorProps } = (0, $aBEni$useSeparator)({
86
+ let { separatorProps: separatorProps } = (0, $aBEni$useSeparator)({
72
87
  ...props,
73
88
  elementType: Element
74
89
  });
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- :root{font-synthesis:weight}[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:none;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))}@media (forced-colors:active){.spectrum-Rule_612bb8{forced-color-adjust:none;--spectrum-rule-large-background-color:CanvasText;--spectrum-rule-medium-background-color:CanvasText;--spectrum-rule-small-background-color:CanvasText}}
1
+ .cTbPrq_i18nFontFamily{font-synthesis:weight;font-family:adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.cTbPrq_i18nFontFamily:lang(ar){font-family:myriad-arabic,adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.cTbPrq_i18nFontFamily:lang(he){font-family:myriad-hebrew,adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.cTbPrq_i18nFontFamily:lang(zh){font-family:adobe-clean-han-traditional,source-han-traditional,MingLiu,Heiti TC Light,sans-serif}.cTbPrq_i18nFontFamily:lang(zh-Hans){font-family:adobe-clean-han-simplified-c,source-han-simplified-c,SimSun,Heiti SC Light,sans-serif}.cTbPrq_i18nFontFamily:lang(zh-Hant){font-family:adobe-clean-han-traditional,source-han-traditional,MingLiu,Microsoft JhengHei UI,Microsoft JhengHei,Heiti TC Light,sans-serif}.cTbPrq_i18nFontFamily:lang(zh-SG),.cTbPrq_i18nFontFamily:lang(zh-CN){font-family:adobe-clean-han-simplified-c,source-han-simplified-c,SimSun,Heiti SC Light,sans-serif}.cTbPrq_i18nFontFamily:lang(ko){font-family:adobe-clean-han-korean,source-han-korean,Malgun Gothic,Apple Gothic,sans-serif}.cTbPrq_i18nFontFamily:lang(ja){font-family:adobe-clean-han-japanese,Hiragino Kaku Gothic ProN,ヒラギノ角ゴ ProN W3,Osaka,YuGothic,Yu Gothic,メイリオ,Meiryo,MS Pゴシック,MS PGothic,sans-serif}.cTbPrq_spectrum-FocusRing-ring{--spectrum-focus-ring-border-radius:var(--spectrum-textfield-border-radius,var(--spectrum-alias-border-radius-regular));--spectrum-focus-ring-gap:var(--spectrum-alias-input-focusring-gap);--spectrum-focus-ring-size:var(--spectrum-alias-input-focusring-size);--spectrum-focus-ring-border-size:0px;--spectrum-focus-ring-color:var(--spectrum-high-contrast-focus-ring-color,var(--spectrum-alias-focus-ring-color,var(--spectrum-alias-focus-color)))}.cTbPrq_spectrum-FocusRing-ring:after{border-radius:calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));content:"";margin:calc(-1*var(--spectrum-focus-ring-border-size));pointer-events:none;transition:box-shadow var(--spectrum-global-animation-duration-100,.13s)ease-out,margin var(--spectrum-global-animation-duration-100,.13s)ease-out;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.cTbPrq_spectrum-FocusRing.cTbPrq_focus-ring:after{margin:calc(var(--spectrum-focus-ring-gap)*-1 - var(--spectrum-focus-ring-border-size));box-shadow:0 0 0 var(--spectrum-focus-ring-size)var(--spectrum-focus-ring-color)}.cTbPrq_spectrum-FocusRing--quiet:after{border-radius:0}.cTbPrq_spectrum-FocusRing--quiet.cTbPrq_focus-ring:after{margin:0 0 calc(var(--spectrum-focus-ring-gap)*-1 - var(--spectrum-focus-ring-border-size))0;box-shadow:0 var(--spectrum-focus-ring-size)0 var(--spectrum-focus-ring-color)}.cTbPrq_spectrum-Rule{border:none;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));align-self:stretch;margin:0;overflow:visible}.cTbPrq_spectrum-Rule--large{border-radius:var(--spectrum-rule-large-border-radius,var(--spectrum-global-dimension-static-size-25))}.cTbPrq_spectrum-Rule--medium{border-radius:var(--spectrum-rule-medium-border-radius,var(--spectrum-global-dimension-static-size-10))}.cTbPrq_spectrum-Rule--small{border-radius:var(--spectrum-rule-small-border-radius,var(--spectrum-global-dimension-static-size-10))}.cTbPrq_spectrum-Rule--horizontal.cTbPrq_spectrum-Rule--large{block-size:var(--spectrum-rule-large-height,var(--spectrum-global-dimension-static-size-50))}.cTbPrq_spectrum-Rule--horizontal.cTbPrq_spectrum-Rule--medium{block-size:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25))}.cTbPrq_spectrum-Rule--horizontal.cTbPrq_spectrum-Rule--small{block-size:var(--spectrum-rule-small-height,var(--spectrum-global-dimension-static-size-10))}.cTbPrq_spectrum-Rule--vertical{height:auto}.cTbPrq_spectrum-Rule--vertical.cTbPrq_spectrum-Rule--large{inline-size:var(--spectrum-rule-large-height,var(--spectrum-global-dimension-static-size-50))}.cTbPrq_spectrum-Rule--vertical.cTbPrq_spectrum-Rule--medium{inline-size:var(--spectrum-rule-medium-height,var(--spectrum-global-dimension-static-size-25))}.cTbPrq_spectrum-Rule--vertical.cTbPrq_spectrum-Rule--small{inline-size:var(--spectrum-rule-small-height,var(--spectrum-global-dimension-static-size-10))}.cTbPrq_spectrum-Rule--large{background-color:var(--spectrum-rule-large-background-color,var(--spectrum-global-color-gray-800))}.cTbPrq_spectrum-Rule--medium{background-color:var(--spectrum-rule-medium-background-color,var(--spectrum-global-color-gray-300))}.cTbPrq_spectrum-Rule--small{background-color:var(--spectrum-rule-small-background-color,var(--spectrum-global-color-gray-300))}@media (forced-colors:active){.cTbPrq_spectrum-Rule{forced-color-adjust:none;--spectrum-rule-large-background-color:CanvasText;--spectrum-rule-medium-background-color:CanvasText;--spectrum-rule-small-background-color:CanvasText}}
package/dist/main.js CHANGED
@@ -36,24 +36,39 @@ $parcel$export(module.exports, "Divider", () => $a75f934b8a5939c6$export$2e0a83e
36
36
 
37
37
  var $7fdcb1fd1927dca1$exports = {};
38
38
 
39
+ $parcel$export($7fdcb1fd1927dca1$exports, "focus-ring", () => $7fdcb1fd1927dca1$export$f39a09f249340e2a, (v) => $7fdcb1fd1927dca1$export$f39a09f249340e2a = v);
40
+ $parcel$export($7fdcb1fd1927dca1$exports, "i18nFontFamily", () => $7fdcb1fd1927dca1$export$8c4ee2c50c22c514, (v) => $7fdcb1fd1927dca1$export$8c4ee2c50c22c514 = v);
41
+ $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-FocusRing-ring", () => $7fdcb1fd1927dca1$export$4109102f950813a6, (v) => $7fdcb1fd1927dca1$export$4109102f950813a6 = v);
42
+ $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-FocusRing", () => $7fdcb1fd1927dca1$export$24c7f46a6e3605dd, (v) => $7fdcb1fd1927dca1$export$24c7f46a6e3605dd = v);
43
+ $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-FocusRing--quiet", () => $7fdcb1fd1927dca1$export$2927016961429360, (v) => $7fdcb1fd1927dca1$export$2927016961429360 = v);
39
44
  $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule", () => $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc, (v) => $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = v);
45
+ $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--horizontal", () => $7fdcb1fd1927dca1$export$563c1b24466c05b8, (v) => $7fdcb1fd1927dca1$export$563c1b24466c05b8 = v);
40
46
  $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--large", () => $7fdcb1fd1927dca1$export$243baa0ec4ab58cc, (v) => $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = v);
41
47
  $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--medium", () => $7fdcb1fd1927dca1$export$a8d73b58ca350eb9, (v) => $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = v);
42
48
  $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--small", () => $7fdcb1fd1927dca1$export$b4b727880cfe37d, (v) => $7fdcb1fd1927dca1$export$b4b727880cfe37d = v);
43
- $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--horizontal", () => $7fdcb1fd1927dca1$export$563c1b24466c05b8, (v) => $7fdcb1fd1927dca1$export$563c1b24466c05b8 = v);
44
49
  $parcel$export($7fdcb1fd1927dca1$exports, "spectrum-Rule--vertical", () => $7fdcb1fd1927dca1$export$76f93463a8fc15a8, (v) => $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = v);
50
+ var $7fdcb1fd1927dca1$export$f39a09f249340e2a;
51
+ var $7fdcb1fd1927dca1$export$8c4ee2c50c22c514;
52
+ var $7fdcb1fd1927dca1$export$4109102f950813a6;
53
+ var $7fdcb1fd1927dca1$export$24c7f46a6e3605dd;
54
+ var $7fdcb1fd1927dca1$export$2927016961429360;
45
55
  var $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc;
56
+ var $7fdcb1fd1927dca1$export$563c1b24466c05b8;
46
57
  var $7fdcb1fd1927dca1$export$243baa0ec4ab58cc;
47
58
  var $7fdcb1fd1927dca1$export$a8d73b58ca350eb9;
48
59
  var $7fdcb1fd1927dca1$export$b4b727880cfe37d;
49
- var $7fdcb1fd1927dca1$export$563c1b24466c05b8;
50
60
  var $7fdcb1fd1927dca1$export$76f93463a8fc15a8;
51
- $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = "spectrum-Rule_612bb8";
52
- $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = "spectrum-Rule--large_612bb8";
53
- $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = "spectrum-Rule--medium_612bb8";
54
- $7fdcb1fd1927dca1$export$b4b727880cfe37d = "spectrum-Rule--small_612bb8";
55
- $7fdcb1fd1927dca1$export$563c1b24466c05b8 = "spectrum-Rule--horizontal_612bb8";
56
- $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = "spectrum-Rule--vertical_612bb8";
61
+ $7fdcb1fd1927dca1$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
62
+ $7fdcb1fd1927dca1$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
63
+ $7fdcb1fd1927dca1$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
64
+ $7fdcb1fd1927dca1$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7fdcb1fd1927dca1$export$4109102f950813a6}`;
65
+ $7fdcb1fd1927dca1$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
66
+ $7fdcb1fd1927dca1$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
67
+ $7fdcb1fd1927dca1$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
68
+ $7fdcb1fd1927dca1$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
69
+ $7fdcb1fd1927dca1$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
70
+ $7fdcb1fd1927dca1$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
71
+ $7fdcb1fd1927dca1$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
57
72
 
58
73
 
59
74
 
@@ -64,13 +79,13 @@ let $a75f934b8a5939c6$var$sizeMap = {
64
79
  };
65
80
  function $a75f934b8a5939c6$var$Divider(props, ref) {
66
81
  props = (0, $7uVzT$reactspectrumutils.useSlotProps)(props, "divider");
67
- let { size: size = "L" , orientation: orientation = "horizontal" , ...otherProps } = props;
82
+ let { size: size = "L", orientation: orientation = "horizontal", ...otherProps } = props;
68
83
  let domRef = (0, $7uVzT$reactspectrumutils.useDOMRef)(ref);
69
- let { styleProps: styleProps } = (0, $7uVzT$reactspectrumutils.useStyleProps)(otherProps);
84
+ let { styleProps: styleProps } = (0, $7uVzT$reactspectrumutils.useStyleProps)(otherProps);
70
85
  let weight = $a75f934b8a5939c6$var$sizeMap[size];
71
86
  let Element = "hr";
72
87
  if (orientation === "vertical") Element = "div";
73
- let { separatorProps: separatorProps } = (0, $7uVzT$reactariaseparator.useSeparator)({
88
+ let { separatorProps: separatorProps } = (0, $7uVzT$reactariaseparator.useSeparator)({
74
89
  ...props,
75
90
  elementType: Element
76
91
  });
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;AALA,4CAAkC;AAClC,4CAAyC;AACzC,4CAA0C;AAC1C,2CAAyC;AACzC,4CAA8C;AAC9C,4CAA4C;;;;ADc5C,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,mBACP,cAAc,eACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,6BAAO,CAAC,KAAK;IAE1B,IAAI,UAAuB;IAC3B,IAAI,gBAAgB,YAClB,UAAU;IAGZ,IAAI,kBAAC,eAAc,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;QAGf,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,sCAAI,EAAE,WAAW;","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;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;QAGf,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,sCAAI,EAAE,WAAW;","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"}
package/dist/module.js CHANGED
@@ -34,24 +34,39 @@ function $parcel$export(e, n, v, s) {
34
34
 
35
35
  var $7a9eac509b76fa30$exports = {};
36
36
 
37
+ $parcel$export($7a9eac509b76fa30$exports, "focus-ring", () => $7a9eac509b76fa30$export$f39a09f249340e2a, (v) => $7a9eac509b76fa30$export$f39a09f249340e2a = v);
38
+ $parcel$export($7a9eac509b76fa30$exports, "i18nFontFamily", () => $7a9eac509b76fa30$export$8c4ee2c50c22c514, (v) => $7a9eac509b76fa30$export$8c4ee2c50c22c514 = v);
39
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing-ring", () => $7a9eac509b76fa30$export$4109102f950813a6, (v) => $7a9eac509b76fa30$export$4109102f950813a6 = v);
40
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing", () => $7a9eac509b76fa30$export$24c7f46a6e3605dd, (v) => $7a9eac509b76fa30$export$24c7f46a6e3605dd = v);
41
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-FocusRing--quiet", () => $7a9eac509b76fa30$export$2927016961429360, (v) => $7a9eac509b76fa30$export$2927016961429360 = v);
37
42
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule", () => $7a9eac509b76fa30$export$9ebf9cdaed6878bc, (v) => $7a9eac509b76fa30$export$9ebf9cdaed6878bc = v);
43
+ $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
38
44
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--large", () => $7a9eac509b76fa30$export$243baa0ec4ab58cc, (v) => $7a9eac509b76fa30$export$243baa0ec4ab58cc = v);
39
45
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--medium", () => $7a9eac509b76fa30$export$a8d73b58ca350eb9, (v) => $7a9eac509b76fa30$export$a8d73b58ca350eb9 = v);
40
46
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--small", () => $7a9eac509b76fa30$export$b4b727880cfe37d, (v) => $7a9eac509b76fa30$export$b4b727880cfe37d = v);
41
- $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--horizontal", () => $7a9eac509b76fa30$export$563c1b24466c05b8, (v) => $7a9eac509b76fa30$export$563c1b24466c05b8 = v);
42
47
  $parcel$export($7a9eac509b76fa30$exports, "spectrum-Rule--vertical", () => $7a9eac509b76fa30$export$76f93463a8fc15a8, (v) => $7a9eac509b76fa30$export$76f93463a8fc15a8 = v);
48
+ var $7a9eac509b76fa30$export$f39a09f249340e2a;
49
+ var $7a9eac509b76fa30$export$8c4ee2c50c22c514;
50
+ var $7a9eac509b76fa30$export$4109102f950813a6;
51
+ var $7a9eac509b76fa30$export$24c7f46a6e3605dd;
52
+ var $7a9eac509b76fa30$export$2927016961429360;
43
53
  var $7a9eac509b76fa30$export$9ebf9cdaed6878bc;
54
+ var $7a9eac509b76fa30$export$563c1b24466c05b8;
44
55
  var $7a9eac509b76fa30$export$243baa0ec4ab58cc;
45
56
  var $7a9eac509b76fa30$export$a8d73b58ca350eb9;
46
57
  var $7a9eac509b76fa30$export$b4b727880cfe37d;
47
- var $7a9eac509b76fa30$export$563c1b24466c05b8;
48
58
  var $7a9eac509b76fa30$export$76f93463a8fc15a8;
49
- $7a9eac509b76fa30$export$9ebf9cdaed6878bc = "spectrum-Rule_612bb8";
50
- $7a9eac509b76fa30$export$243baa0ec4ab58cc = "spectrum-Rule--large_612bb8";
51
- $7a9eac509b76fa30$export$a8d73b58ca350eb9 = "spectrum-Rule--medium_612bb8";
52
- $7a9eac509b76fa30$export$b4b727880cfe37d = "spectrum-Rule--small_612bb8";
53
- $7a9eac509b76fa30$export$563c1b24466c05b8 = "spectrum-Rule--horizontal_612bb8";
54
- $7a9eac509b76fa30$export$76f93463a8fc15a8 = "spectrum-Rule--vertical_612bb8";
59
+ $7a9eac509b76fa30$export$f39a09f249340e2a = `cTbPrq_focus-ring`;
60
+ $7a9eac509b76fa30$export$8c4ee2c50c22c514 = `cTbPrq_i18nFontFamily`;
61
+ $7a9eac509b76fa30$export$4109102f950813a6 = `cTbPrq_spectrum-FocusRing-ring`;
62
+ $7a9eac509b76fa30$export$24c7f46a6e3605dd = `cTbPrq_spectrum-FocusRing ${$7a9eac509b76fa30$export$4109102f950813a6}`;
63
+ $7a9eac509b76fa30$export$2927016961429360 = `cTbPrq_spectrum-FocusRing--quiet`;
64
+ $7a9eac509b76fa30$export$9ebf9cdaed6878bc = `cTbPrq_spectrum-Rule`;
65
+ $7a9eac509b76fa30$export$563c1b24466c05b8 = `cTbPrq_spectrum-Rule--horizontal`;
66
+ $7a9eac509b76fa30$export$243baa0ec4ab58cc = `cTbPrq_spectrum-Rule--large`;
67
+ $7a9eac509b76fa30$export$a8d73b58ca350eb9 = `cTbPrq_spectrum-Rule--medium`;
68
+ $7a9eac509b76fa30$export$b4b727880cfe37d = `cTbPrq_spectrum-Rule--small`;
69
+ $7a9eac509b76fa30$export$76f93463a8fc15a8 = `cTbPrq_spectrum-Rule--vertical`;
55
70
 
56
71
 
57
72
 
@@ -62,13 +77,13 @@ let $269e81ee206e9515$var$sizeMap = {
62
77
  };
63
78
  function $269e81ee206e9515$var$Divider(props, ref) {
64
79
  props = (0, $aBEni$useSlotProps)(props, "divider");
65
- let { size: size = "L" , orientation: orientation = "horizontal" , ...otherProps } = props;
80
+ let { size: size = "L", orientation: orientation = "horizontal", ...otherProps } = props;
66
81
  let domRef = (0, $aBEni$useDOMRef)(ref);
67
- let { styleProps: styleProps } = (0, $aBEni$useStyleProps)(otherProps);
82
+ let { styleProps: styleProps } = (0, $aBEni$useStyleProps)(otherProps);
68
83
  let weight = $269e81ee206e9515$var$sizeMap[size];
69
84
  let Element = "hr";
70
85
  if (orientation === "vertical") Element = "div";
71
- let { separatorProps: separatorProps } = (0, $aBEni$useSeparator)({
86
+ let { separatorProps: separatorProps } = (0, $aBEni$useSeparator)({
72
87
  ...props,
73
88
  elementType: Element
74
89
  });
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAAkC;AAClC,4CAAyC;AACzC,4CAA0C;AAC1C,2CAAyC;AACzC,4CAA8C;AAC9C,4CAA4C;;;;ADc5C,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,mBACP,cAAc,eACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,6BAAO,CAAC,KAAK;IAE1B,IAAI,UAAuB;IAC3B,IAAI,gBAAgB,YAClB,UAAU;IAGZ,IAAI,kBAAC,eAAc,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;QAGf,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,YAAI,EAAE,WAAW;","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;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;QAGf,kEAAkE;QAClE,KAAK;QACJ,GAAG,cAAc;;AAExB;AAEA;;;CAGC,GACD,IAAI,0DAAW,CAAA,GAAA,YAAI,EAAE,WAAW;","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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/divider",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
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.5",
40
- "@react-spectrum/utils": "^3.10.2",
41
- "@react-types/divider": "^3.3.4",
42
- "@react-types/shared": "^3.20.0",
39
+ "@react-aria/separator": "^3.3.7",
40
+ "@react-spectrum/utils": "^3.11.1",
41
+ "@react-types/divider": "^3.3.5",
42
+ "@react-types/shared": "^3.21.0",
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": "54fbaa67cc56867506811819fef765546d403253"
54
+ "gitHead": "3ecf62dcceea437cb12df1851636dd491bb6591c"
55
55
  }