@spectrum-web-components/divider 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/divider",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -61,7 +61,7 @@
61
61
  "tslib": "^2.0.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@spectrum-css/divider": "^1.0.27"
64
+ "@spectrum-css/divider": "^2.0.0"
65
65
  },
66
66
  "types": "./src/index.d.ts",
67
67
  "customElements": "custom-elements.json",
@@ -70,5 +70,5 @@
70
70
  "./**/*.dev.js",
71
71
  "./stories/typography-decorator.js"
72
72
  ],
73
- "gitHead": "05c81318844160db3f8156144106e643507fef97"
73
+ "gitHead": "31d083d1eb61a1382335030c190c85d85f41e15d"
74
74
  }
package/sp-divider.dev.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { Divider } from "./src/Divider.dev.js";
2
3
  customElements.define("sp-divider", Divider);
3
4
  //# sourceMappingURL=sp-divider.dev.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-divider.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Divider } from './src/Divider.dev.js'\n\ncustomElements.define('sp-divider', Divider);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-divider': Divider;\n }\n}\n"],
5
- "mappings": "AAYA;AAEA,eAAe,OAAO,cAAc,OAAO;",
5
+ "mappings": ";AAYA,SAAS,eAAe;AAExB,eAAe,OAAO,cAAc,OAAO;",
6
6
  "names": []
7
7
  }
package/sp-divider.js CHANGED
@@ -1,2 +1,2 @@
1
- import{Divider as e}from"./src/Divider.js";customElements.define("sp-divider",e);
1
+ "use strict";import{Divider as e}from"./src/Divider.js";customElements.define("sp-divider",e);
2
2
  //# sourceMappingURL=sp-divider.js.map
package/sp-divider.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-divider.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Divider } from './src/Divider.js';\n\ncustomElements.define('sp-divider', Divider);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-divider': Divider;\n }\n}\n"],
5
- "mappings": "AAYA,2CAEA,eAAe,OAAO,aAAc,CAAO",
6
- "names": []
5
+ "mappings": "aAYA,OAAS,WAAAA,MAAe,mBAExB,eAAe,OAAO,aAAcA,CAAO",
6
+ "names": ["Divider"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __decorateClass = (decorators, target, key, kind) => {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["Divider.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './divider.css.js';\n\n/**\n * @element sp-divider\n */\nexport class Divider extends SizedMixin(SpectrumElement, {\n validSizes: ['s', 'm', 'l'],\n}) {\n public static override styles: CSSResultArray = [styles];\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n protected override render(): TemplateResult {\n return html``;\n }\n\n protected override firstUpdated(changed: PropertyValues<this>): void {\n super.firstUpdated(changed);\n this.setAttribute('role', 'separator');\n }\n\n protected override updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n if (changed.has('vertical')) {\n if (this.vertical) {\n this.setAttribute('aria-orientation', 'vertical');\n } else {\n this.removeAttribute('aria-orientation');\n }\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA;AAKO,aAAM,gBAAgB,WAAW,iBAAiB;AAAA,EACrD,YAAY,CAAC,KAAK,KAAK,GAAG;AAC9B,CAAC,EAAE;AAAA,EAFI;AAAA;AAMI,oBAAW;AAAA;AAAA,EAEC,SAAyB;AACxC,WAAO;AAAA,EACX;AAAA,EAEmB,aAAa,SAAqC;AACjE,UAAM,aAAa,OAAO;AAC1B,SAAK,aAAa,QAAQ,WAAW;AAAA,EACzC;AAAA,EAEmB,QAAQ,SAAqC;AAC5D,UAAM,QAAQ,OAAO;AACrB,QAAI,QAAQ,IAAI,UAAU,GAAG;AACzB,UAAI,KAAK,UAAU;AACf,aAAK,aAAa,oBAAoB,UAAU;AAAA,MACpD,OAAO;AACH,aAAK,gBAAgB,kBAAkB;AAAA,MAC3C;AAAA,IACJ;AAAA,EACJ;AACJ;AAxB2B,AAHpB,QAGoB,SAAyB,CAAC,MAAM;AAGhD;AAAA,EADP,AAAC,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GACnC,AANJ,QAMI;",
5
+ "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EAEA;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,YAAY;AAKZ,aAAM,gBAAgB,WAAW,iBAAiB;AAAA,EACrD,YAAY,CAAC,KAAK,KAAK,GAAG;AAC9B,CAAC,EAAE;AAAA,EAFI;AAAA;AAMH,SAAO,WAAW;AAAA;AAAA,EAEC,SAAyB;AACxC,WAAO;AAAA,EACX;AAAA,EAEmB,aAAa,SAAqC;AACjE,UAAM,aAAa,OAAO;AAC1B,SAAK,aAAa,QAAQ,WAAW;AAAA,EACzC;AAAA,EAEmB,QAAQ,SAAqC;AAC5D,UAAM,QAAQ,OAAO;AACrB,QAAI,QAAQ,IAAI,UAAU,GAAG;AACzB,UAAI,KAAK,UAAU;AACf,aAAK,aAAa,oBAAoB,UAAU;AAAA,MACpD,OAAO;AACH,aAAK,gBAAgB,kBAAkB;AAAA,MAC3C;AAAA,IACJ;AAAA,EACJ;AACJ;AA3Ba,QAGc,SAAyB,CAAC,MAAM;AAGhD;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GALjC,QAMF;",
6
6
  "names": []
7
7
  }
package/src/Divider.js CHANGED
@@ -1,2 +1,2 @@
1
- var p=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var l=(i,e,s,r)=>{for(var t=r>1?void 0:r?d(e,s):e,o=i.length-1,a;o>=0;o--)(a=i[o])&&(t=(r?a(e,s,t):a(t))||t);return r&&t&&p(e,s,t),t};import{html as u,SizedMixin as m,SpectrumElement as c}from"@spectrum-web-components/base";import{property as v}from"@spectrum-web-components/base/src/decorators.js";import f from"./divider.css.js";export class Divider extends m(c,{validSizes:["s","m","l"]}){constructor(){super(...arguments);this.vertical=!1}render(){return u``}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","separator")}updated(e){super.updated(e),e.has("vertical")&&(this.vertical?this.setAttribute("aria-orientation","vertical"):this.removeAttribute("aria-orientation"))}}Divider.styles=[f],l([v({type:Boolean,reflect:!0})],Divider.prototype,"vertical",2);
1
+ "use strict";var p=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var l=(s,r,e,i)=>{for(var t=i>1?void 0:i?d(r,e):r,o=s.length-1,a;o>=0;o--)(a=s[o])&&(t=(i?a(r,e,t):a(t))||t);return i&&t&&p(r,e,t),t};import{html as u,SizedMixin as m,SpectrumElement as c}from"@spectrum-web-components/base";import{property as v}from"@spectrum-web-components/base/src/decorators.js";import f from"./divider.css.js";export class Divider extends m(c,{validSizes:["s","m","l"]}){constructor(){super(...arguments);this.vertical=!1}render(){return u``}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","separator")}updated(e){super.updated(e),e.has("vertical")&&(this.vertical?this.setAttribute("aria-orientation","vertical"):this.removeAttribute("aria-orientation"))}}Divider.styles=[f],l([v({type:Boolean,reflect:!0})],Divider.prototype,"vertical",2);
2
2
  //# sourceMappingURL=Divider.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["Divider.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './divider.css.js';\n\n/**\n * @element sp-divider\n */\nexport class Divider extends SizedMixin(SpectrumElement, {\n validSizes: ['s', 'm', 'l'],\n}) {\n public static override styles: CSSResultArray = [styles];\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n protected override render(): TemplateResult {\n return html``;\n }\n\n protected override firstUpdated(changed: PropertyValues<this>): void {\n super.firstUpdated(changed);\n this.setAttribute('role', 'separator');\n }\n\n protected override updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n if (changed.has('vertical')) {\n if (this.vertical) {\n this.setAttribute('aria-orientation', 'vertical');\n } else {\n this.removeAttribute('aria-orientation');\n }\n }\n }\n}\n"],
5
- "mappings": "wMAYA,0FAQA,2EAEA,gCAKO,aAAM,eAAgB,GAAW,EAAiB,CACrD,WAAY,CAAC,IAAK,IAAK,GAAG,CAC9B,CAAC,CAAE,CAFI,kCAMI,cAAW,GAEC,QAAyB,CACxC,MAAO,IACX,CAEmB,aAAa,EAAqC,CACjE,MAAM,aAAa,CAAO,EAC1B,KAAK,aAAa,OAAQ,WAAW,CACzC,CAEmB,QAAQ,EAAqC,CAC5D,MAAM,QAAQ,CAAO,EACjB,EAAQ,IAAI,UAAU,GACtB,CAAI,KAAK,SACL,KAAK,aAAa,mBAAoB,UAAU,EAEhD,KAAK,gBAAgB,kBAAkB,EAGnD,CACJ,CAxB2B,AAHpB,QAGoB,OAAyB,CAAC,CAAM,EAGhD,GADP,AAAC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GACnC,AANJ,QAMI",
6
- "names": []
5
+ "mappings": "qNAYA,OAEI,QAAAA,EAEA,cAAAC,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAY,mBAKZ,aAAM,gBAAgBH,EAAWC,EAAiB,CACrD,WAAY,CAAC,IAAK,IAAK,GAAG,CAC9B,CAAC,CAAE,CAFI,kCAMH,KAAO,SAAW,GAEC,QAAyB,CACxC,OAAOF,GACX,CAEmB,aAAaK,EAAqC,CACjE,MAAM,aAAaA,CAAO,EAC1B,KAAK,aAAa,OAAQ,WAAW,CACzC,CAEmB,QAAQA,EAAqC,CAC5D,MAAM,QAAQA,CAAO,EACjBA,EAAQ,IAAI,UAAU,IAClB,KAAK,SACL,KAAK,aAAa,mBAAoB,UAAU,EAEhD,KAAK,gBAAgB,kBAAkB,EAGnD,CACJ,CA3Ba,QAGc,OAAyB,CAACD,CAAM,EAGhDE,EAAA,CADNH,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GALjC,QAMF",
6
+ "names": ["html", "SizedMixin", "SpectrumElement", "property", "styles", "changed", "__decorateClass"]
7
7
  }
@@ -1,37 +1,56 @@
1
+ "use strict";
1
2
  import { css } from "@spectrum-web-components/base";
2
3
  const styles = css`
3
- :host([size=s]){--spectrum-divider-height:var(
4
- --spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)
5
- );--spectrum-divider-vertical-height:var(
6
- --spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)
7
- );--spectrum-divider-vertical-width:var(
8
- --spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)
9
- )}:host([size=m]){--spectrum-divider-height:var(
10
- --spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)
11
- );--spectrum-divider-vertical-height:var(
12
- --spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)
13
- );--spectrum-divider-vertical-width:var(
14
- --spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)
15
- )}:host([size=l]){--spectrum-divider-height:var(
16
- --spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)
17
- );--spectrum-divider-vertical-height:var(
18
- --spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)
19
- );--spectrum-divider-vertical-width:var(
20
- --spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)
21
- )}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(
22
- --spectrum-divider-vertical-height
23
- );width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(
24
- --spectrum-global-color-gray-800
25
- );--spectrum-divider-m-background-color:var(
26
- --spectrum-global-color-gray-300
27
- );--spectrum-divider-s-background-color:var(
28
- --spectrum-global-color-gray-300
29
- )}:host([size=l]){background-color:var(
30
- --spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)
31
- )}:host([size=m]){background-color:var(
32
- --spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)
33
- )}:host([size=s]){background-color:var(
34
- --spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)
4
+ :host{--spectrum-divider-thickness:var(
5
+ --spectrum-divider-thickness-medium
6
+ );--spectrum-divider-background-color:var(
7
+ --spectrum-divider-background-color-medium
8
+ );--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(
9
+ --spectrum-transparent-white-300
10
+ );--spectrum-divider-background-color-medium-static-white:var(
11
+ --spectrum-transparent-white-300
12
+ );--spectrum-divider-background-color-large-static-white:var(
13
+ --spectrum-transparent-white-800
14
+ );--spectrum-divider-background-color-small-static-black:var(
15
+ --spectrum-transparent-black-300
16
+ );--spectrum-divider-background-color-medium-static-black:var(
17
+ --spectrum-transparent-black-300
18
+ );--spectrum-divider-background-color-large-static-black:var(
19
+ --spectrum-transparent-black-800
20
+ )}:host([size=s]){--spectrum-divider-thickness:var(
21
+ --spectrum-divider-thickness-small
22
+ );--spectrum-divider-background-color:var(
23
+ --spectrum-divider-background-color-small
24
+ )}:host([size=m]){--spectrum-divider-thickness:var(
25
+ --spectrum-divider-thickness-medium
26
+ );--spectrum-divider-background-color:var(
27
+ --spectrum-divider-background-color-medium
28
+ )}:host([size=l]){--spectrum-divider-thickness:var(
29
+ --spectrum-divider-thickness-large
30
+ );--spectrum-divider-background-color:var(
31
+ --spectrum-divider-background-color-large
32
+ )}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(
33
+ --mod-divider-background-color,var(--spectrum-divider-background-color)
34
+ );block-size:var(
35
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
36
+ );border:none;border-radius:var(
37
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
38
+ );border-width:var(
39
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
40
+ );inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
41
+ --mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)
42
+ )}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
43
+ --mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)
44
+ )}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
45
+ --mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)
46
+ )}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
47
+ --mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)
48
+ )}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
49
+ --mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)
50
+ )}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
51
+ --mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)
52
+ )}:host([vertical]){block-size:100%;inline-size:var(
53
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
35
54
  )}:host{display:block}hr{border:none;margin:0}
36
55
  `;
37
56
  export default styles;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["divider.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-divider-height:var(\n--spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)\n)}:host([size=m]){--spectrum-divider-height:var(\n--spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)\n)}:host([size=l]){--spectrum-divider-height:var(\n--spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)\n)}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(\n--spectrum-divider-vertical-height\n);width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(\n--spectrum-global-color-gray-800\n);--spectrum-divider-m-background-color:var(\n--spectrum-global-color-gray-300\n);--spectrum-divider-s-background-color:var(\n--spectrum-global-color-gray-300\n)}:host([size=l]){background-color:var(\n--spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)\n)}:host([size=m]){background-color:var(\n--spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)\n)}:host([size=s]){background-color:var(\n--spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)\n)}:host{display:block}hr{border:none;margin:0}\n`;\nexport default styles;"],
5
- "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmCf,eAAe;",
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n);--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-medium-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-large-static-white:var(\n--spectrum-transparent-white-800\n);--spectrum-divider-background-color-small-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-medium-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-large-static-black:var(\n--spectrum-transparent-black-800\n)}:host([size=s]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-small\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-small\n)}:host([size=m]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n)}:host([size=l]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-large\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-large\n)}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(\n--mod-divider-background-color,var(--spectrum-divider-background-color)\n);block-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border:none;border-radius:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border-width:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)\n)}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)\n)}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)\n)}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)\n)}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)\n)}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)\n)}:host([vertical]){block-size:100%;inline-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n)}:host{display:block}hr{border:none;margin:0}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqDf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,36 +1,54 @@
1
- import{css as r}from"@spectrum-web-components/base";const e=r`
2
- :host([size=s]){--spectrum-divider-height:var(
3
- --spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)
4
- );--spectrum-divider-vertical-height:var(
5
- --spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)
6
- );--spectrum-divider-vertical-width:var(
7
- --spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)
8
- )}:host([size=m]){--spectrum-divider-height:var(
9
- --spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)
10
- );--spectrum-divider-vertical-height:var(
11
- --spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)
12
- );--spectrum-divider-vertical-width:var(
13
- --spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)
14
- )}:host([size=l]){--spectrum-divider-height:var(
15
- --spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)
16
- );--spectrum-divider-vertical-height:var(
17
- --spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)
18
- );--spectrum-divider-vertical-width:var(
19
- --spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)
20
- )}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(
21
- --spectrum-divider-vertical-height
22
- );width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(
23
- --spectrum-global-color-gray-800
24
- );--spectrum-divider-m-background-color:var(
25
- --spectrum-global-color-gray-300
26
- );--spectrum-divider-s-background-color:var(
27
- --spectrum-global-color-gray-300
28
- )}:host([size=l]){background-color:var(
29
- --spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)
30
- )}:host([size=m]){background-color:var(
31
- --spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)
32
- )}:host([size=s]){background-color:var(
33
- --spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)
1
+ "use strict";import{css as r}from"@spectrum-web-components/base";const i=r`
2
+ :host{--spectrum-divider-thickness:var(
3
+ --spectrum-divider-thickness-medium
4
+ );--spectrum-divider-background-color:var(
5
+ --spectrum-divider-background-color-medium
6
+ );--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(
7
+ --spectrum-transparent-white-300
8
+ );--spectrum-divider-background-color-medium-static-white:var(
9
+ --spectrum-transparent-white-300
10
+ );--spectrum-divider-background-color-large-static-white:var(
11
+ --spectrum-transparent-white-800
12
+ );--spectrum-divider-background-color-small-static-black:var(
13
+ --spectrum-transparent-black-300
14
+ );--spectrum-divider-background-color-medium-static-black:var(
15
+ --spectrum-transparent-black-300
16
+ );--spectrum-divider-background-color-large-static-black:var(
17
+ --spectrum-transparent-black-800
18
+ )}:host([size=s]){--spectrum-divider-thickness:var(
19
+ --spectrum-divider-thickness-small
20
+ );--spectrum-divider-background-color:var(
21
+ --spectrum-divider-background-color-small
22
+ )}:host([size=m]){--spectrum-divider-thickness:var(
23
+ --spectrum-divider-thickness-medium
24
+ );--spectrum-divider-background-color:var(
25
+ --spectrum-divider-background-color-medium
26
+ )}:host([size=l]){--spectrum-divider-thickness:var(
27
+ --spectrum-divider-thickness-large
28
+ );--spectrum-divider-background-color:var(
29
+ --spectrum-divider-background-color-large
30
+ )}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(
31
+ --mod-divider-background-color,var(--spectrum-divider-background-color)
32
+ );block-size:var(
33
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
34
+ );border:none;border-radius:var(
35
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
36
+ );border-width:var(
37
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
38
+ );inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
39
+ --mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)
40
+ )}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
41
+ --mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)
42
+ )}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
43
+ --mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)
44
+ )}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
45
+ --mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)
46
+ )}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
47
+ --mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)
48
+ )}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
49
+ --mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)
50
+ )}:host([vertical]){block-size:100%;inline-size:var(
51
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
34
52
  )}:host{display:block}hr{border:none;margin:0}
35
- `;export default e;
53
+ `;export default i;
36
54
  //# sourceMappingURL=divider.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["divider.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-divider-height:var(\n--spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)\n)}:host([size=m]){--spectrum-divider-height:var(\n--spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)\n)}:host([size=l]){--spectrum-divider-height:var(\n--spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)\n)}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(\n--spectrum-divider-vertical-height\n);width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(\n--spectrum-global-color-gray-800\n);--spectrum-divider-m-background-color:var(\n--spectrum-global-color-gray-300\n);--spectrum-divider-s-background-color:var(\n--spectrum-global-color-gray-300\n)}:host([size=l]){background-color:var(\n--spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)\n)}:host([size=m]){background-color:var(\n--spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)\n)}:host([size=s]){background-color:var(\n--spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)\n)}:host{display:block}hr{border:none;margin:0}\n`;\nexport default styles;"],
5
- "mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmCf,cAAe",
6
- "names": []
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n);--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-medium-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-large-static-white:var(\n--spectrum-transparent-white-800\n);--spectrum-divider-background-color-small-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-medium-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-large-static-black:var(\n--spectrum-transparent-black-800\n)}:host([size=s]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-small\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-small\n)}:host([size=m]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n)}:host([size=l]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-large\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-large\n)}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(\n--mod-divider-background-color,var(--spectrum-divider-background-color)\n);block-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border:none;border-radius:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border-width:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)\n)}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)\n)}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)\n)}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)\n)}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)\n)}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)\n)}:host([vertical]){block-size:100%;inline-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n)}:host{display:block}hr{border:none;margin:0}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqDf,eAAeC",
6
+ "names": ["css", "styles"]
7
7
  }
package/src/index.dev.js CHANGED
@@ -1,2 +1,3 @@
1
+ "use strict";
1
2
  export * from "./Divider.dev.js";
2
3
  //# sourceMappingURL=index.dev.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nexport * from './Divider.dev.js'\n"],
5
- "mappings": "AAYA;",
5
+ "mappings": ";AAYA,cAAc;",
6
6
  "names": []
7
7
  }
package/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export*from"./Divider.js";
1
+ "use strict";export*from"./Divider.js";
2
2
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nexport * from './Divider.js';\n"],
5
- "mappings": "AAYA",
5
+ "mappings": "aAYA,WAAc",
6
6
  "names": []
7
7
  }
@@ -1,37 +1,56 @@
1
+ "use strict";
1
2
  import { css } from "@spectrum-web-components/base";
2
3
  const styles = css`
3
- :host([size=s]){--spectrum-divider-height:var(
4
- --spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)
5
- );--spectrum-divider-vertical-height:var(
6
- --spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)
7
- );--spectrum-divider-vertical-width:var(
8
- --spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)
9
- )}:host([size=m]){--spectrum-divider-height:var(
10
- --spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)
11
- );--spectrum-divider-vertical-height:var(
12
- --spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)
13
- );--spectrum-divider-vertical-width:var(
14
- --spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)
15
- )}:host([size=l]){--spectrum-divider-height:var(
16
- --spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)
17
- );--spectrum-divider-vertical-height:var(
18
- --spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)
19
- );--spectrum-divider-vertical-width:var(
20
- --spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)
21
- )}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(
22
- --spectrum-divider-vertical-height
23
- );width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(
24
- --spectrum-global-color-gray-800
25
- );--spectrum-divider-m-background-color:var(
26
- --spectrum-global-color-gray-300
27
- );--spectrum-divider-s-background-color:var(
28
- --spectrum-global-color-gray-300
29
- )}:host([size=l]){background-color:var(
30
- --spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)
31
- )}:host([size=m]){background-color:var(
32
- --spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)
33
- )}:host([size=s]){background-color:var(
34
- --spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)
4
+ :host{--spectrum-divider-thickness:var(
5
+ --spectrum-divider-thickness-medium
6
+ );--spectrum-divider-background-color:var(
7
+ --spectrum-divider-background-color-medium
8
+ );--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(
9
+ --spectrum-transparent-white-300
10
+ );--spectrum-divider-background-color-medium-static-white:var(
11
+ --spectrum-transparent-white-300
12
+ );--spectrum-divider-background-color-large-static-white:var(
13
+ --spectrum-transparent-white-800
14
+ );--spectrum-divider-background-color-small-static-black:var(
15
+ --spectrum-transparent-black-300
16
+ );--spectrum-divider-background-color-medium-static-black:var(
17
+ --spectrum-transparent-black-300
18
+ );--spectrum-divider-background-color-large-static-black:var(
19
+ --spectrum-transparent-black-800
20
+ )}:host([size=s]){--spectrum-divider-thickness:var(
21
+ --spectrum-divider-thickness-small
22
+ );--spectrum-divider-background-color:var(
23
+ --spectrum-divider-background-color-small
24
+ )}:host([size=m]){--spectrum-divider-thickness:var(
25
+ --spectrum-divider-thickness-medium
26
+ );--spectrum-divider-background-color:var(
27
+ --spectrum-divider-background-color-medium
28
+ )}:host([size=l]){--spectrum-divider-thickness:var(
29
+ --spectrum-divider-thickness-large
30
+ );--spectrum-divider-background-color:var(
31
+ --spectrum-divider-background-color-large
32
+ )}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(
33
+ --mod-divider-background-color,var(--spectrum-divider-background-color)
34
+ );block-size:var(
35
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
36
+ );border:none;border-radius:var(
37
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
38
+ );border-width:var(
39
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
40
+ );inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
41
+ --mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)
42
+ )}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
43
+ --mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)
44
+ )}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
45
+ --mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)
46
+ )}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
47
+ --mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)
48
+ )}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
49
+ --mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)
50
+ )}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
51
+ --mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)
52
+ )}:host([vertical]){block-size:100%;inline-size:var(
53
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
35
54
  )}
36
55
  `;
37
56
  export default styles;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-divider.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-divider-height:var(\n--spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)\n)}:host([size=m]){--spectrum-divider-height:var(\n--spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)\n)}:host([size=l]){--spectrum-divider-height:var(\n--spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)\n)}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(\n--spectrum-divider-vertical-height\n);width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(\n--spectrum-global-color-gray-800\n);--spectrum-divider-m-background-color:var(\n--spectrum-global-color-gray-300\n);--spectrum-divider-s-background-color:var(\n--spectrum-global-color-gray-300\n)}:host([size=l]){background-color:var(\n--spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)\n)}:host([size=m]){background-color:var(\n--spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)\n)}:host([size=s]){background-color:var(\n--spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)\n)}\n`;\nexport default styles;"],
5
- "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmCf,eAAe;",
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n);--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-medium-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-large-static-white:var(\n--spectrum-transparent-white-800\n);--spectrum-divider-background-color-small-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-medium-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-large-static-black:var(\n--spectrum-transparent-black-800\n)}:host([size=s]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-small\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-small\n)}:host([size=m]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n)}:host([size=l]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-large\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-large\n)}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(\n--mod-divider-background-color,var(--spectrum-divider-background-color)\n);block-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border:none;border-radius:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border-width:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)\n)}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)\n)}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)\n)}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)\n)}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)\n)}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)\n)}:host([vertical]){block-size:100%;inline-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqDf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,36 +1,54 @@
1
- import{css as r}from"@spectrum-web-components/base";const e=r`
2
- :host([size=s]){--spectrum-divider-height:var(
3
- --spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)
4
- );--spectrum-divider-vertical-height:var(
5
- --spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)
6
- );--spectrum-divider-vertical-width:var(
7
- --spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)
8
- )}:host([size=m]){--spectrum-divider-height:var(
9
- --spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)
10
- );--spectrum-divider-vertical-height:var(
11
- --spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)
12
- );--spectrum-divider-vertical-width:var(
13
- --spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)
14
- )}:host([size=l]){--spectrum-divider-height:var(
15
- --spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)
16
- );--spectrum-divider-vertical-height:var(
17
- --spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)
18
- );--spectrum-divider-vertical-width:var(
19
- --spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)
20
- )}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(
21
- --spectrum-divider-vertical-height
22
- );width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(
23
- --spectrum-global-color-gray-800
24
- );--spectrum-divider-m-background-color:var(
25
- --spectrum-global-color-gray-300
26
- );--spectrum-divider-s-background-color:var(
27
- --spectrum-global-color-gray-300
28
- )}:host([size=l]){background-color:var(
29
- --spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)
30
- )}:host([size=m]){background-color:var(
31
- --spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)
32
- )}:host([size=s]){background-color:var(
33
- --spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)
1
+ "use strict";import{css as r}from"@spectrum-web-components/base";const i=r`
2
+ :host{--spectrum-divider-thickness:var(
3
+ --spectrum-divider-thickness-medium
4
+ );--spectrum-divider-background-color:var(
5
+ --spectrum-divider-background-color-medium
6
+ );--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(
7
+ --spectrum-transparent-white-300
8
+ );--spectrum-divider-background-color-medium-static-white:var(
9
+ --spectrum-transparent-white-300
10
+ );--spectrum-divider-background-color-large-static-white:var(
11
+ --spectrum-transparent-white-800
12
+ );--spectrum-divider-background-color-small-static-black:var(
13
+ --spectrum-transparent-black-300
14
+ );--spectrum-divider-background-color-medium-static-black:var(
15
+ --spectrum-transparent-black-300
16
+ );--spectrum-divider-background-color-large-static-black:var(
17
+ --spectrum-transparent-black-800
18
+ )}:host([size=s]){--spectrum-divider-thickness:var(
19
+ --spectrum-divider-thickness-small
20
+ );--spectrum-divider-background-color:var(
21
+ --spectrum-divider-background-color-small
22
+ )}:host([size=m]){--spectrum-divider-thickness:var(
23
+ --spectrum-divider-thickness-medium
24
+ );--spectrum-divider-background-color:var(
25
+ --spectrum-divider-background-color-medium
26
+ )}:host([size=l]){--spectrum-divider-thickness:var(
27
+ --spectrum-divider-thickness-large
28
+ );--spectrum-divider-background-color:var(
29
+ --spectrum-divider-background-color-large
30
+ )}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(
31
+ --mod-divider-background-color,var(--spectrum-divider-background-color)
32
+ );block-size:var(
33
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
34
+ );border:none;border-radius:var(
35
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
36
+ );border-width:var(
37
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
38
+ );inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
39
+ --mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)
40
+ )}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
41
+ --mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)
42
+ )}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(
43
+ --mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)
44
+ )}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
45
+ --mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)
46
+ )}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
47
+ --mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)
48
+ )}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(
49
+ --mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)
50
+ )}:host([vertical]){block-size:100%;inline-size:var(
51
+ --mod-divider-thickness,var(--spectrum-divider-thickness)
34
52
  )}
35
- `;export default e;
53
+ `;export default i;
36
54
  //# sourceMappingURL=spectrum-divider.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-divider.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-divider-height:var(\n--spectrum-divider-s-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-s-vertical-height,var(--spectrum-global-dimension-size-10)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-s-vertical-width,var(--spectrum-global-dimension-size-10)\n)}:host([size=m]){--spectrum-divider-height:var(\n--spectrum-divider-m-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-m-vertical-height,var(--spectrum-global-dimension-size-25)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-m-vertical-width,var(--spectrum-global-dimension-size-25)\n)}:host([size=l]){--spectrum-divider-height:var(\n--spectrum-divider-l-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-height:var(\n--spectrum-divider-l-vertical-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-divider-vertical-width:var(\n--spectrum-divider-l-vertical-width,var(--spectrum-global-dimension-size-50)\n)}:host{--spectrum-divider-vertical-height:100%}:host{border-width:medium;border:var(--spectrum-divider-height);border-radius:var(--spectrum-divider-height);height:var(--spectrum-divider-height);overflow:visible;width:100%}:host([vertical]){height:var(\n--spectrum-divider-vertical-height\n);width:var(--spectrum-divider-vertical-width)}:host{--spectrum-divider-l-background-color:var(\n--spectrum-global-color-gray-800\n);--spectrum-divider-m-background-color:var(\n--spectrum-global-color-gray-300\n);--spectrum-divider-s-background-color:var(\n--spectrum-global-color-gray-300\n)}:host([size=l]){background-color:var(\n--spectrum-divider-l-background-color,var(--spectrum-global-color-gray-800)\n)}:host([size=m]){background-color:var(\n--spectrum-divider-m-background-color,var(--spectrum-global-color-gray-300)\n)}:host([size=s]){background-color:var(\n--spectrum-divider-s-background-color,var(--spectrum-global-color-gray-300)\n)}\n`;\nexport default styles;"],
5
- "mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmCf,cAAe",
6
- "names": []
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n);--spectrum-divider-background-color-small:var(--spectrum-gray-300);--spectrum-divider-background-color-medium:var(--spectrum-gray-300);--spectrum-divider-background-color-large:var(--spectrum-gray-800);--spectrum-divider-background-color-small-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-medium-static-white:var(\n--spectrum-transparent-white-300\n);--spectrum-divider-background-color-large-static-white:var(\n--spectrum-transparent-white-800\n);--spectrum-divider-background-color-small-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-medium-static-black:var(\n--spectrum-transparent-black-300\n);--spectrum-divider-background-color-large-static-black:var(\n--spectrum-transparent-black-800\n)}:host([size=s]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-small\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-small\n)}:host([size=m]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-medium\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-medium\n)}:host([size=l]){--spectrum-divider-thickness:var(\n--spectrum-divider-thickness-large\n);--spectrum-divider-background-color:var(\n--spectrum-divider-background-color-large\n)}@media (forced-colors:active){:host{--spectrum-divider-background-color:CanvasText;--spectrum-divider-background-color-small-static-white:CanvasText;--spectrum-divider-background-color-medium-static-white:CanvasText;--spectrum-divider-background-color-large-static-white:CanvasText;--spectrum-divider-background-color-small-static-black:CanvasText;--spectrum-divider-background-color-medium-static-black:CanvasText;--spectrum-divider-background-color-large-static-black:CanvasText}}:host{background-color:var(\n--mod-divider-background-color,var(--spectrum-divider-background-color)\n);block-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border:none;border-radius:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);border-width:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n);inline-size:100%;overflow:visible}:host([size=s]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-white,var(--spectrum-divider-background-color-small-static-white)\n)}:host([size=m]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-white,var(--spectrum-divider-background-color-medium-static-white)\n)}:host([size=l]) .spectrum-Divider--staticWhite{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-white,var(--spectrum-divider-background-color-large-static-white)\n)}:host([size=s]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-small-static-black,var(--spectrum-divider-background-color-small-static-black)\n)}:host([size=m]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-medium-static-black,var(--spectrum-divider-background-color-medium-static-black)\n)}:host([size=l]) .spectrum-Divider--staticBlack{--spectrum-divider-background-color:var(\n--mod-divider-background-color-large-static-black,var(--spectrum-divider-background-color-large-static-black)\n)}:host([vertical]){block-size:100%;inline-size:var(\n--mod-divider-thickness,var(--spectrum-divider-thickness)\n)}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqDf,eAAeC",
6
+ "names": ["css", "styles"]
7
7
  }
@@ -1,24 +1,48 @@
1
- import{html as t}from"@spectrum-web-components/base";import"@spectrum-web-components/divider/sp-divider.js";import"./typography-decorator.js";import"@spectrum-web-components/action-button/sp-action-button.js";import"@spectrum-web-components/icon/sp-icon.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-align-left.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-align-right.js";export default{title:"Divider",decorators:[e=>t`
2
- <typography-decorator .story=${e()}></typography-decorator>
3
- `]};export const large=()=>t`
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import "@spectrum-web-components/divider/sp-divider.js";
4
+ import "./typography-decorator.js";
5
+ import "@spectrum-web-components/action-button/sp-action-button.js";
6
+ import "@spectrum-web-components/icon/sp-icon.js";
7
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-align-left.js";
8
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-align-right.js";
9
+ export default {
10
+ title: "Divider",
11
+ decorators: [
12
+ (story) => html`
13
+ <typography-decorator .story=${story()}></typography-decorator>
14
+ `
15
+ ]
16
+ };
17
+ export const large = () => {
18
+ return html`
4
19
  <h2 class="spectrum-Heading spectrum-Heading--sizeM">Large</h2>
5
20
  <sp-divider size="l"></sp-divider>
6
21
  <p class="spectrum-Body">Page or Section Titles.</p>
7
- `,medium=()=>t`
22
+ `;
23
+ };
24
+ export const medium = () => {
25
+ return html`
8
26
  <h3 class="spectrum-Heading spectrum-Heading--sizeS">Medium</h3>
9
27
  <sp-divider size="m"></sp-divider>
10
28
  <p class="spectrum-Body">
11
29
  Divide subsections, or divide different groups of elements (between
12
30
  panels, rails, etc.)
13
31
  </p>
14
- `,small=()=>t`
32
+ `;
33
+ };
34
+ export const small = () => {
35
+ return html`
15
36
  <h4 class="spectrum-Heading spectrum-Heading--sizeXS">Small</h4>
16
37
  <sp-divider size="s"></sp-divider>
17
38
  <p class="spectrum-Body">
18
39
  Divide like-elements (tables, tool groups, elements within a panel,
19
40
  etc.)
20
41
  </p>
21
- `,verticalSmall=()=>t`
42
+ `;
43
+ };
44
+ export const verticalSmall = () => {
45
+ return html`
22
46
  <div
23
47
  style="height: var(--spectrum-global-dimension-size-400, 32px); display: flex;"
24
48
  >
@@ -34,7 +58,10 @@ import{html as t}from"@spectrum-web-components/base";import"@spectrum-web-compon
34
58
  <sp-icon-align-right slot="icon"></sp-icon-align-right>
35
59
  </sp-action-button>
36
60
  </div>
37
- `,verticalMedium=()=>t`
61
+ `;
62
+ };
63
+ export const verticalMedium = () => {
64
+ return html`
38
65
  <div
39
66
  style="height: var(--spectrum-global-dimension-size-400, 32px); display: flex;"
40
67
  >
@@ -50,7 +77,10 @@ import{html as t}from"@spectrum-web-components/base";import"@spectrum-web-compon
50
77
  <sp-icon-align-right slot="icon"></sp-icon-align-right>
51
78
  </sp-action-button>
52
79
  </div>
53
- `,verticalLarge=()=>t`
80
+ `;
81
+ };
82
+ export const verticalLarge = () => {
83
+ return html`
54
84
  <div
55
85
  style="height: var(--spectrum-global-dimension-size-400, 32px); display: flex;"
56
86
  >
@@ -67,4 +97,5 @@ import{html as t}from"@spectrum-web-components/base";import"@spectrum-web-compon
67
97
  </sp-action-button>
68
98
  </div>
69
99
  `;
100
+ };
70
101
  //# sourceMappingURL=divider.stories.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["divider.stories.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/divider/sp-divider.js';\nimport './typography-decorator.js';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-align-left.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-align-right.js';\n\nexport default {\n title: 'Divider',\n decorators: [\n (story: () => TemplateResult): TemplateResult => html`\n <typography-decorator .story=${story()}></typography-decorator>\n `,\n ],\n};\n\nexport const large = (): TemplateResult => {\n return html`\n <h2 class=\"spectrum-Heading spectrum-Heading--sizeM\">Large</h2>\n <sp-divider size=\"l\"></sp-divider>\n <p class=\"spectrum-Body\">Page or Section Titles.</p>\n `;\n};\n\nexport const medium = (): TemplateResult => {\n return html`\n <h3 class=\"spectrum-Heading spectrum-Heading--sizeS\">Medium</h3>\n <sp-divider size=\"m\"></sp-divider>\n <p class=\"spectrum-Body\">\n Divide subsections, or divide different groups of elements (between\n panels, rails, etc.)\n </p>\n `;\n};\n\nexport const small = (): TemplateResult => {\n return html`\n <h4 class=\"spectrum-Heading spectrum-Heading--sizeXS\">Small</h4>\n <sp-divider size=\"s\"></sp-divider>\n <p class=\"spectrum-Body\">\n Divide like-elements (tables, tool groups, elements within a panel,\n etc.)\n </p>\n `;\n};\n\nexport const verticalSmall = (): TemplateResult => {\n return html`\n <div\n style=\"height: var(--spectrum-global-dimension-size-400, 32px); display: flex;\"\n >\n <sp-action-button quiet>\n <sp-icon-align-left slot=\"icon\"></sp-icon-align-left>\n </sp-action-button>\n <sp-divider\n vertical\n size=\"s\"\n style=\"height: auto; align-self: stretch;\"\n ></sp-divider>\n <sp-action-button quiet>\n <sp-icon-align-right slot=\"icon\"></sp-icon-align-right>\n </sp-action-button>\n </div>\n `;\n};\n\nexport const verticalMedium = (): TemplateResult => {\n return html`\n <div\n style=\"height: var(--spectrum-global-dimension-size-400, 32px); display: flex;\"\n >\n <sp-action-button quiet>\n <sp-icon-align-left slot=\"icon\"></sp-icon-align-left>\n </sp-action-button>\n <sp-divider\n size=\"m\"\n vertical\n style=\"height: auto; align-self: stretch;\"\n ></sp-divider>\n <sp-action-button quiet>\n <sp-icon-align-right slot=\"icon\"></sp-icon-align-right>\n </sp-action-button>\n </div>\n `;\n};\n\nexport const verticalLarge = (): TemplateResult => {\n return html`\n <div\n style=\"height: var(--spectrum-global-dimension-size-400, 32px); display: flex;\"\n >\n <sp-action-button quiet>\n <sp-icon-align-left slot=\"icon\"></sp-icon-align-left>\n </sp-action-button>\n <sp-divider\n size=\"l\"\n vertical\n style=\"height: auto; align-self: stretch;\"\n ></sp-divider>\n <sp-action-button quiet>\n <sp-icon-align-right slot=\"icon\"></sp-icon-align-right>\n </sp-action-button>\n </div>\n `;\n};\n"],
5
- "mappings": "AAWA,qDAEA,uDACA,kCACA,mEACA,iDACA,4EACA,6EAEA,cAAe,CACX,MAAO,UACP,WAAY,CACR,AAAC,GAAgD;AAAA,2CACd,EAAM;AAAA,SAE7C,CACJ,EAEO,YAAM,OAAQ,IACV;AAAA;AAAA;AAAA;AAAA,MAOE,OAAS,IACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAUE,MAAQ,IACV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAUE,cAAgB,IAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAmBE,eAAiB,IACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAmBE,cAAgB,IAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,YAAY;AAAA,IACR,CAAC,UAAgD;AAAA,2CACd,MAAM;AAAA;AAAA,EAE7C;AACJ;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAKX;AAEO,aAAM,SAAS,MAAsB;AACxC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQX;AAEO,aAAM,gBAAgB,MAAsB;AAC/C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBX;AAEO,aAAM,iBAAiB,MAAsB;AAChD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBX;AAEO,aAAM,gBAAgB,MAAsB;AAC/C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBX;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,38 @@
1
- var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var m=(s,e,l,r)=>{for(var t=r>1?void 0:r?c(e,l):e,o=s.length-1,i;o>=0;o--)(i=s[o])&&(t=(r?i(e,l,t):i(t))||t);return r&&t&&a(e,l,t),t};import{html as u,LitElement as d}from"@spectrum-web-components/base";import{customElement as p,property as n}from"@spectrum-web-components/base/src/decorators.js";import f from"@spectrum-web-components/theme/src/typography.css.js";export let Typography=class extends d{render(){return this.story?u`
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result)
10
+ __defProp(target, key, result);
11
+ return result;
12
+ };
13
+ import {
14
+ html,
15
+ LitElement
16
+ } from "@spectrum-web-components/base";
17
+ import {
18
+ customElement,
19
+ property
20
+ } from "@spectrum-web-components/base/src/decorators.js";
21
+ import styles from "@spectrum-web-components/theme/src/typography.css.js";
22
+ export let Typography = class extends LitElement {
23
+ render() {
24
+ if (!this.story)
25
+ return html``;
26
+ return html`
2
27
  <div class="spectrum-Typography">${this.story}</div>
3
- `:u``}};Typography.styles=[f],m([n({attribute:!1})],Typography.prototype,"story",2),Typography=m([p("typography-decorator")],Typography);
28
+ `;
29
+ }
30
+ };
31
+ Typography.styles = [styles];
32
+ __decorateClass([
33
+ property({ attribute: false })
34
+ ], Typography.prototype, "story", 2);
35
+ Typography = __decorateClass([
36
+ customElement("typography-decorator")
37
+ ], Typography);
4
38
  //# sourceMappingURL=typography-decorator.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["typography-decorator.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n LitElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n customElement,\n property,\n} from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from '@spectrum-web-components/theme/src/typography.css.js';\n\n/**\n * @element typography-decorator\n */\n@customElement('typography-decorator')\nexport class Typography extends LitElement {\n static override styles: CSSResultArray = [styles];\n\n @property({ attribute: false })\n public story?: TemplateResult;\n\n protected override render(): TemplateResult {\n if (!this.story) return html``;\n return html`\n <div class=\"spectrum-Typography\">${this.story}</div>\n `;\n }\n}\n"],
5
- "mappings": "wMAWA,qEAMA,8FAKA,oEAMO,mCAAyB,EAAW,CAMpB,QAAyB,CACxC,MAAK,MAAK,MACH;AAAA,+CACgC,KAAK;AAAA,UAFpB,GAI5B,CACJ,EAXoB,AADb,WACa,OAAyB,CAAC,CAAM,EAGzC,GADP,AAAC,EAAS,CAAE,UAAW,EAAM,CAAC,GACvB,AAJJ,WAII,qBAJJ,cADP,AAAC,EAAc,sBAAsB,GAC9B",
5
+ "mappings": ";;;;;;;;;;;;AAWA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AAEP,OAAO,YAAY;AAMZ,WAAM,aAAN,cAAyB,WAAW;AAAA,EAMpB,SAAyB;AACxC,QAAI,CAAC,KAAK;AAAO,aAAO;AACxB,WAAO;AAAA,+CACgC,KAAK;AAAA;AAAA,EAEhD;AACJ;AAZa,WACO,SAAyB,CAAC,MAAM;AAGzC;AAAA,EADN,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,GAHrB,WAIF;AAJE,aAAN;AAAA,EADN,cAAc,sBAAsB;AAAA,GACxB;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,8 @@
1
- import"@spectrum-web-components/divider/sp-divider.js";import{html as r}from"lit";import{measureFixtureCreation as i}from"../../../../test/benchmark/helpers.js";i(r`
1
+ "use strict";
2
+ import "@spectrum-web-components/divider/sp-divider.js";
3
+ import { html } from "lit";
4
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
5
+ measureFixtureCreation(html`
2
6
  <sp-divider></sp-divider>
3
7
  `);
4
8
  //# sourceMappingURL=basic-test.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["basic-test.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/divider/sp-divider.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-divider></sp-divider>\n`);\n"],
5
- "mappings": "AAYA,uDACA,2BACA,+EAEA,EAAuB;AAAA;AAAA,CAEtB",
5
+ "mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA,CAEtB;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,5 @@
1
- import*as r from"../stories/divider.stories.js";import{regressVisuals as s}from"../../../test/visual/test.js";s("DividerStories",r);
1
+ "use strict";
2
+ import * as stories from "../stories/divider.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("DividerStories", stories);
2
5
  //# sourceMappingURL=divider.test-vrt.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["divider.test-vrt.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/divider.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('DividerStories', stories);\n"],
5
- "mappings": "AAYA,gDACA,8DAEA,EAAe,iBAAkB,CAAO",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/divider.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('DividerStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,kBAAkB,OAA+B;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,32 @@
1
- import{elementUpdated as t,expect as d,fixture as e,html as a}from"@open-wc/testing";import"@spectrum-web-components/divider/sp-divider.js";import{testForLitDevWarnings as r}from"../../../test/testing-helpers.js";describe("Divider",()=>{r(async()=>await e(a`
1
+ "use strict";
2
+ import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
3
+ import "@spectrum-web-components/divider/sp-divider.js";
4
+ import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
5
+ describe("Divider", () => {
6
+ testForLitDevWarnings(
7
+ async () => await fixture(
8
+ html`
2
9
  <sp-divider></sp-divider>
3
- `)),it("loads default divider accessibly",async()=>{const i=await e(a`
10
+ `
11
+ )
12
+ );
13
+ it("loads default divider accessibly", async () => {
14
+ const el = await fixture(
15
+ html`
4
16
  <sp-divider></sp-divider>
5
- `);await t(i),await d(i).to.be.accessible()}),it("loads [vertical] divider accessibly",async()=>{const i=await e(a`
17
+ `
18
+ );
19
+ await elementUpdated(el);
20
+ await expect(el).to.be.accessible();
21
+ });
22
+ it("loads [vertical] divider accessibly", async () => {
23
+ const el = await fixture(
24
+ html`
6
25
  <sp-divider vertical></sp-divider>
7
- `);await t(i),await d(i).to.be.accessible()})});
26
+ `
27
+ );
28
+ await elementUpdated(el);
29
+ await expect(el).to.be.accessible();
30
+ });
31
+ });
8
32
  //# sourceMappingURL=divider.test.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["divider.test.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/divider/sp-divider.js';\nimport { Divider } from '@spectrum-web-components/divider';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Divider', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<Divider>(\n html`\n <sp-divider></sp-divider>\n `\n )\n );\n it('loads default divider accessibly', async () => {\n const el = await fixture<Divider>(\n html`\n <sp-divider></sp-divider>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [vertical] divider accessibly', async () => {\n const el = await fixture<Divider>(\n html`\n <sp-divider vertical></sp-divider>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
5
- "mappings": "AAYA,qFAEA,uDAEA,yEAEA,SAAS,UAAW,IAAM,CACtB,EACI,SACI,KAAM,GACF;AAAA;AAAA,iBAGJ,CACR,EACA,GAAG,mCAAoC,SAAY,CAC/C,KAAM,GAAK,KAAM,GACb;AAAA;AAAA,aAGJ,EAEA,KAAM,GAAe,CAAE,EAEvB,KAAM,GAAO,CAAE,EAAE,GAAG,GAAG,WAAW,CACtC,CAAC,EACD,GAAG,sCAAuC,SAAY,CAClD,KAAM,GAAK,KAAM,GACb;AAAA;AAAA,aAGJ,EAEA,KAAM,GAAe,CAAE,EAEvB,KAAM,GAAO,CAAE,EAAE,GAAG,GAAG,WAAW,CACtC,CAAC,CACL,CAAC",
5
+ "mappings": ";AAYA,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AAEtD,OAAO;AAEP,SAAS,6BAA6B;AAEtC,SAAS,WAAW,MAAM;AACtB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA,IAGJ;AAAA,EACR;AACA,KAAG,oCAAoC,YAAY;AAC/C,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,uCAAuC,YAAY;AAClD,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
6
6
  "names": []
7
7
  }