@spectrum-web-components/button-group 0.9.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/custom-elements.json +24 -0
  2. package/package.json +5 -5
  3. package/sp-button-group.dev.js +1 -0
  4. package/sp-button-group.dev.js.map +1 -1
  5. package/sp-button-group.js +1 -1
  6. package/sp-button-group.js.map +2 -2
  7. package/src/ButtonGroup.d.ts +9 -1
  8. package/src/ButtonGroup.dev.js +10 -2
  9. package/src/ButtonGroup.dev.js.map +2 -2
  10. package/src/ButtonGroup.js +3 -3
  11. package/src/ButtonGroup.js.map +3 -3
  12. package/src/button-group.css.dev.js +15 -10
  13. package/src/button-group.css.dev.js.map +2 -2
  14. package/src/button-group.css.js +16 -12
  15. package/src/button-group.css.js.map +3 -3
  16. package/src/index.dev.js +1 -0
  17. package/src/index.dev.js.map +1 -1
  18. package/src/index.js +1 -1
  19. package/src/index.js.map +1 -1
  20. package/src/spectrum-button-group.css.dev.js +15 -10
  21. package/src/spectrum-button-group.css.dev.js.map +2 -2
  22. package/src/spectrum-button-group.css.js +16 -12
  23. package/src/spectrum-button-group.css.js.map +3 -3
  24. package/src/spectrum-config.js +22 -0
  25. package/stories/button-group-sizes.stories.js +26 -0
  26. package/stories/button-group-sizes.stories.js.map +7 -0
  27. package/stories/button-group.stories.js +24 -4
  28. package/stories/button-group.stories.js.map +2 -2
  29. package/test/benchmark/basic-test.js +6 -1
  30. package/test/benchmark/basic-test.js.map +1 -1
  31. package/test/button-group-sizes.test-vrt.js +5 -0
  32. package/test/button-group-sizes.test-vrt.js.map +7 -0
  33. package/test/button-group.test-vrt.js +4 -1
  34. package/test/button-group.test-vrt.js.map +2 -2
  35. package/test/button-group.test.js +22 -1
  36. package/test/button-group.test.js.map +2 -2
@@ -42,6 +42,24 @@
42
42
  "default": "false",
43
43
  "attribute": "vertical",
44
44
  "reflects": true
45
+ },
46
+ {
47
+ "kind": "method",
48
+ "name": "handleSlotchange",
49
+ "privacy": "protected",
50
+ "return": {
51
+ "type": {
52
+ "text": "void"
53
+ }
54
+ },
55
+ "parameters": [
56
+ {
57
+ "name": "{ target: slot }",
58
+ "type": {
59
+ "text": "Event & { target: HTMLSlotElement }"
60
+ }
61
+ }
62
+ ]
45
63
  }
46
64
  ],
47
65
  "attributes": [
@@ -54,6 +72,12 @@
54
72
  "fieldName": "vertical"
55
73
  }
56
74
  ],
75
+ "mixins": [
76
+ {
77
+ "name": "SizedMixin",
78
+ "package": "@spectrum-web-components/base"
79
+ }
80
+ ],
57
81
  "superclass": {
58
82
  "name": "SpectrumElement",
59
83
  "package": "@spectrum-web-components/base"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/button-group",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,11 +57,11 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.7.0",
61
- "tslib": "^2.0.0"
60
+ "@spectrum-web-components/base": "^0.7.1",
61
+ "@spectrum-web-components/button": "^0.19.6"
62
62
  },
63
63
  "devDependencies": {
64
- "@spectrum-css/buttongroup": "^5.0.13"
64
+ "@spectrum-css/buttongroup": "^6.0.1"
65
65
  },
66
66
  "types": "./src/index.d.ts",
67
67
  "customElements": "custom-elements.json",
@@ -69,5 +69,5 @@
69
69
  "./sp-*.js",
70
70
  "./**/*.dev.js"
71
71
  ],
72
- "gitHead": "05c81318844160db3f8156144106e643507fef97"
72
+ "gitHead": "8bd87724e91e23df83dbf63a434bbbe10b8daaa6"
73
73
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { ButtonGroup } from "./src/ButtonGroup.dev.js";
2
3
  customElements.define("sp-button-group", ButtonGroup);
3
4
  //# sourceMappingURL=sp-button-group.dev.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-button-group.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 { ButtonGroup } from './src/ButtonGroup.dev.js'\n\ncustomElements.define('sp-button-group', ButtonGroup);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-button-group': ButtonGroup;\n }\n}\n"],
5
- "mappings": "AAWA;AAEA,eAAe,OAAO,mBAAmB,WAAW;",
5
+ "mappings": ";AAWA,SAAS,mBAAmB;AAE5B,eAAe,OAAO,mBAAmB,WAAW;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- import{ButtonGroup as t}from"./src/ButtonGroup.js";customElements.define("sp-button-group",t);
1
+ "use strict";import{ButtonGroup as t}from"./src/ButtonGroup.js";customElements.define("sp-button-group",t);
2
2
  //# sourceMappingURL=sp-button-group.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-button-group.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 { ButtonGroup } from './src/ButtonGroup.js';\n\ncustomElements.define('sp-button-group', ButtonGroup);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-button-group': ButtonGroup;\n }\n}\n"],
5
- "mappings": "AAWA,mDAEA,eAAe,OAAO,kBAAmB,CAAW",
6
- "names": []
5
+ "mappings": "aAWA,OAAS,eAAAA,MAAmB,uBAE5B,eAAe,OAAO,kBAAmBA,CAAW",
6
+ "names": ["ButtonGroup"]
7
7
  }
@@ -1,10 +1,18 @@
1
1
  import { CSSResultArray, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
2
+ declare const ButtonGroup_base: typeof SpectrumElement & {
3
+ new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
4
+ prototype: import("@spectrum-web-components/base").SizedElementInterface;
5
+ };
2
6
  /**
3
7
  * @element sp-button-group
4
8
  * @slot - the sp-button elements that make up the group
5
9
  */
6
- export declare class ButtonGroup extends SpectrumElement {
10
+ export declare class ButtonGroup extends ButtonGroup_base {
7
11
  static get styles(): CSSResultArray;
8
12
  vertical: boolean;
13
+ protected handleSlotchange({ target: slot }: Event & {
14
+ target: HTMLSlotElement;
15
+ }): void;
9
16
  protected render(): TemplateResult;
10
17
  }
18
+ export {};
@@ -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) => {
@@ -11,11 +12,12 @@ var __decorateClass = (decorators, target, key, kind) => {
11
12
  };
12
13
  import {
13
14
  html,
15
+ SizedMixin,
14
16
  SpectrumElement
15
17
  } from "@spectrum-web-components/base";
16
18
  import { property } from "@spectrum-web-components/base/src/decorators.js";
17
19
  import styles from "./button-group.css.js";
18
- export class ButtonGroup extends SpectrumElement {
20
+ export class ButtonGroup extends SizedMixin(SpectrumElement) {
19
21
  constructor() {
20
22
  super(...arguments);
21
23
  this.vertical = false;
@@ -23,9 +25,15 @@ export class ButtonGroup extends SpectrumElement {
23
25
  static get styles() {
24
26
  return [styles];
25
27
  }
28
+ handleSlotchange({ target: slot }) {
29
+ const assignedElements = slot.assignedElements();
30
+ assignedElements.forEach((button) => {
31
+ button.size = this.size;
32
+ });
33
+ }
26
34
  render() {
27
35
  return html`
28
- <slot></slot>
36
+ <slot @slotchange=${this.handleSlotchange}></slot>
29
37
  `;
30
38
  }
31
39
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["ButtonGroup.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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './button-group.css.js';\n\n/**\n * @element sp-button-group\n * @slot - the sp-button elements that make up the group\n */\nexport class ButtonGroup extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAMA;AAEA;AAMO,aAAM,oBAAoB,gBAAgB;AAAA,EAA1C;AAAA;AAMI,oBAAW;AAAA;AAAA,aALS,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAKmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA,EAGX;AACJ;AAPW;AAAA,EADP,AAAC,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GACnC,AANJ,YAMI;",
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 SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport type { Button } from '@spectrum-web-components/button';\n\nimport styles from './button-group.css.js';\n\n/**\n * @element sp-button-group\n * @slot - the sp-button elements that make up the group\n */\nexport class ButtonGroup extends SizedMixin(SpectrumElement) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n protected handleSlotchange({ target: slot }: Event & { target: HTMLSlotElement }): void {\n const assignedElements = slot.assignedElements() as Button[];\n assignedElements.forEach(button => {\n button.size = this.size;\n });\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot @slotchange=${this.handleSlotchange}></slot>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAGzB,OAAO,YAAY;AAMZ,aAAM,oBAAoB,WAAW,eAAe,EAAE;AAAA,EAAtD;AAAA;AAMH,SAAO,WAAW;AAAA;AAAA,EALlB,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAKU,iBAAiB,EAAE,QAAQ,KAAK,GAA8C;AACpF,UAAM,mBAAmB,KAAK,iBAAiB;AAC/C,qBAAiB,QAAQ,YAAU;AAC/B,aAAO,OAAO,KAAK;AAAA,IACvB,CAAC;AAAA,EACL;AAAA,EAEmB,SAAyB;AACxC,WAAO;AAAA,gCACiB,KAAK;AAAA;AAAA,EAEjC;AACJ;AAdW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GALjC,YAMF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- var u=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var m=(l,t,o,r)=>{for(var e=r>1?void 0:r?a(t,o):t,s=l.length-1,p;s>=0;s--)(p=l[s])&&(e=(r?p(t,o,e):p(e))||e);return r&&e&&u(t,o,e),e};import{html as i,SpectrumElement as c}from"@spectrum-web-components/base";import{property as n}from"@spectrum-web-components/base/src/decorators.js";import y from"./button-group.css.js";export class ButtonGroup extends c{constructor(){super(...arguments);this.vertical=!1}static get styles(){return[y]}render(){return i`
2
- <slot></slot>
3
- `}}m([n({type:Boolean,reflect:!0})],ButtonGroup.prototype,"vertical",2);
1
+ "use strict";var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var a=(o,t,r,s)=>{for(var e=s>1?void 0:s?m(t,r):t,l=o.length-1,n;l>=0;l--)(n=o[l])&&(e=(s?n(t,r,e):n(e))||e);return s&&e&&i(t,r,e),e};import{html as p,SizedMixin as c,SpectrumElement as u}from"@spectrum-web-components/base";import{property as d}from"@spectrum-web-components/base/src/decorators.js";import g from"./button-group.css.js";export class ButtonGroup extends c(u){constructor(){super(...arguments);this.vertical=!1}static get styles(){return[g]}handleSlotchange({target:r}){r.assignedElements().forEach(e=>{e.size=this.size})}render(){return p`
2
+ <slot @slotchange=${this.handleSlotchange}></slot>
3
+ `}}a([d({type:Boolean,reflect:!0})],ButtonGroup.prototype,"vertical",2);
4
4
  //# sourceMappingURL=ButtonGroup.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["ButtonGroup.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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './button-group.css.js';\n\n/**\n * @element sp-button-group\n * @slot - the sp-button elements that make up the group\n */\nexport class ButtonGroup extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
- "mappings": "wMAYA,0EAMA,2EAEA,qCAMO,aAAM,mBAAoB,EAAgB,CAA1C,kCAMI,cAAW,aALS,SAAyB,CAChD,MAAO,CAAC,CAAM,CAClB,CAKmB,QAAyB,CACxC,MAAO;AAAA;AAAA,SAGX,CACJ,CAPW,GADP,AAAC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GACnC,AANJ,YAMI",
6
- "names": []
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 SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport type { Button } from '@spectrum-web-components/button';\n\nimport styles from './button-group.css.js';\n\n/**\n * @element sp-button-group\n * @slot - the sp-button elements that make up the group\n */\nexport class ButtonGroup extends SizedMixin(SpectrumElement) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n protected handleSlotchange({ target: slot }: Event & { target: HTMLSlotElement }): void {\n const assignedElements = slot.assignedElements() as Button[];\n assignedElements.forEach(button => {\n button.size = this.size;\n });\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot @slotchange=${this.handleSlotchange}></slot>\n `;\n }\n}\n"],
5
+ "mappings": "qNAYA,OAEI,QAAAA,EACA,cAAAC,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAGzB,OAAOC,MAAY,wBAMZ,aAAM,oBAAoBH,EAAWC,CAAe,CAAE,CAAtD,kCAMH,KAAO,SAAW,GALlB,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAM,CAClB,CAKU,iBAAiB,CAAE,OAAQC,CAAK,EAA8C,CAC3DA,EAAK,iBAAiB,EAC9B,QAAQC,GAAU,CAC/BA,EAAO,KAAO,KAAK,IACvB,CAAC,CACL,CAEmB,QAAyB,CACxC,OAAON;AAAA,gCACiB,KAAK;AAAA,SAEjC,CACJ,CAdWO,EAAA,CADNJ,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GALjC,YAMF",
6
+ "names": ["html", "SizedMixin", "SpectrumElement", "property", "styles", "slot", "button", "__decorateClass"]
7
7
  }
@@ -1,15 +1,20 @@
1
+ "use strict";
1
2
  import { css } from "@spectrum-web-components/base";
2
3
  const styles = css`
3
- :host{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(
4
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
5
- )}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(
6
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
7
- )}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(
8
- --spectrum-buttongroup-button-gap-reset
9
- )}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(
10
- --spectrum-buttongroup-button-gap-reset
11
- )}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(
12
- --spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)
4
+ :host{--spectrum-buttongroup-spacing-horizontal:var(
5
+ --spectrum-spacing-300
6
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(
7
+ --spectrum-spacing-200
8
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(
9
+ --spectrum-spacing-300
10
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(
11
+ --spectrum-spacing-300
12
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(
13
+ --spectrum-spacing-300
14
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(
15
+ --mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)
16
+ )}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(
17
+ --mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)
13
18
  )}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}
14
19
  `;
15
20
  export default styles;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["button-group.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{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(\n--spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)\n)}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}\n`;\nexport default styles;"],
5
- "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaf,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-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-200\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(\n--mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)\n)}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(\n--mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)\n)}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}\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;AAiBf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,14 +1,18 @@
1
- import{css as t}from"@spectrum-web-components/base";const o=t`
2
- :host{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(
3
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
4
- )}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(
5
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
6
- )}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(
7
- --spectrum-buttongroup-button-gap-reset
8
- )}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(
9
- --spectrum-buttongroup-button-gap-reset
10
- )}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(
11
- --spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const r=t`
2
+ :host{--spectrum-buttongroup-spacing-horizontal:var(
3
+ --spectrum-spacing-300
4
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(
5
+ --spectrum-spacing-200
6
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(
7
+ --spectrum-spacing-300
8
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(
9
+ --spectrum-spacing-300
10
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(
11
+ --spectrum-spacing-300
12
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(
13
+ --mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)
14
+ )}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(
15
+ --mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)
12
16
  )}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}
13
- `;export default o;
17
+ `;export default r;
14
18
  //# sourceMappingURL=button-group.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["button-group.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{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(\n--spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)\n)}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}\n`;\nexport default styles;"],
5
- "mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaf,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-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-200\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(\n--mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)\n)}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(\n--mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)\n)}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}\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,EAiBf,eAAeC",
6
+ "names": ["css", "styles"]
7
7
  }
package/src/index.dev.js CHANGED
@@ -1,2 +1,3 @@
1
+ "use strict";
1
2
  export * from "./ButtonGroup.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 './ButtonGroup.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"./ButtonGroup.js";
1
+ "use strict";export*from"./ButtonGroup.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 './ButtonGroup.js';\n"],
5
- "mappings": "AAYA",
5
+ "mappings": "aAYA,WAAc",
6
6
  "names": []
7
7
  }
@@ -1,15 +1,20 @@
1
+ "use strict";
1
2
  import { css } from "@spectrum-web-components/base";
2
3
  const styles = css`
3
- :host{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(
4
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
5
- )}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(
6
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
7
- )}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(
8
- --spectrum-buttongroup-button-gap-reset
9
- )}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(
10
- --spectrum-buttongroup-button-gap-reset
11
- )}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(
12
- --spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)
4
+ :host{--spectrum-buttongroup-spacing-horizontal:var(
5
+ --spectrum-spacing-300
6
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(
7
+ --spectrum-spacing-200
8
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(
9
+ --spectrum-spacing-300
10
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(
11
+ --spectrum-spacing-300
12
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(
13
+ --spectrum-spacing-300
14
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(
15
+ --mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)
16
+ )}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(
17
+ --mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)
13
18
  )}
14
19
  `;
15
20
  export default styles;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-button-group.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{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(\n--spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)\n)}\n`;\nexport default styles;"],
5
- "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaf,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-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-200\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(\n--mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)\n)}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(\n--mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)\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;AAiBf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,14 +1,18 @@
1
- import{css as t}from"@spectrum-web-components/base";const o=t`
2
- :host{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(
3
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
4
- )}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(
5
- --spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)
6
- )}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(
7
- --spectrum-buttongroup-button-gap-reset
8
- )}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(
9
- --spectrum-buttongroup-button-gap-reset
10
- )}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(
11
- --spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const r=t`
2
+ :host{--spectrum-buttongroup-spacing-horizontal:var(
3
+ --spectrum-spacing-300
4
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(
5
+ --spectrum-spacing-200
6
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(
7
+ --spectrum-spacing-300
8
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(
9
+ --spectrum-spacing-300
10
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(
11
+ --spectrum-spacing-300
12
+ );--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(
13
+ --mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)
14
+ )}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(
15
+ --mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)
12
16
  )}
13
- `;export default o;
17
+ `;export default r;
14
18
  //# sourceMappingURL=spectrum-button-group.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-button-group.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{--spectrum-buttongroup-button-gap-reset:0}:host{display:flex}::slotted(*){flex-shrink:0}:host([dir=ltr]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([dir=rtl]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-x,var(--spectrum-global-dimension-static-size-200)\n)}:host([vertical]){display:inline-flex;flex-direction:column}:host([dir=ltr][vertical]) ::slotted(:not(:first-of-type)){margin-left:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([dir=rtl][vertical]) ::slotted(:not(:first-of-type)){margin-right:var(\n--spectrum-buttongroup-button-gap-reset\n)}:host([vertical]) ::slotted(:not(:first-of-type)){margin-top:var(\n--spectrum-buttongroup-button-gap-y,var(--spectrum-global-dimension-static-size-200)\n)}\n`;\nexport default styles;"],
5
- "mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaf,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-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=s]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-200\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-200)}:host([size=m]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=l]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host([size=xl]){--spectrum-buttongroup-spacing-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-buttongroup-spacing-vertical:var(--spectrum-spacing-300)}:host{display:flex;flex-wrap:wrap;gap:var(\n--mod-buttongroup-spacing-horizontal,var(--spectrum-buttongroup-spacing-horizontal)\n)}::slotted(*){flex-shrink:0}:host([vertical]){display:inline-flex;flex-direction:column;gap:var(\n--mod-buttongroup-spacing-vertical,var(--spectrum-buttongroup-spacing-vertical)\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,EAiBf,eAAeC",
6
+ "names": ["css", "styles"]
7
7
  }
@@ -24,6 +24,28 @@ const config = {
24
24
  selector: '.spectrum-ButtonGroup--vertical',
25
25
  name: 'vertical',
26
26
  },
27
+ {
28
+ type: 'enum',
29
+ name: 'size',
30
+ values: [
31
+ {
32
+ selector: '.spectrum-ButtonGroup--sizeS',
33
+ name: 's',
34
+ },
35
+ {
36
+ selector: '.spectrum-ButtonGroup--sizeM',
37
+ name: 'm',
38
+ },
39
+ {
40
+ selector: '.spectrum-ButtonGroup--sizeL',
41
+ name: 'l',
42
+ },
43
+ {
44
+ selector: '.spectrum-ButtonGroup--sizeXL',
45
+ name: 'xl',
46
+ },
47
+ ],
48
+ },
27
49
  ],
28
50
  slots: [
29
51
  {
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ import {
3
+ buttons,
4
+ buttonsVertical
5
+ } from "./button-group.stories.js";
6
+ export default {
7
+ title: "Button Group/Sizes",
8
+ component: "sp-button-group"
9
+ };
10
+ export const s = (args) => buttons(args);
11
+ s.args = { size: "s" };
12
+ export const m = (args) => buttons(args);
13
+ m.args = { size: "m" };
14
+ export const l = (args) => buttons(args);
15
+ l.args = { size: "l" };
16
+ export const XL = (args) => buttons(args);
17
+ XL.args = { size: "XL" };
18
+ export const verticalS = (args) => buttonsVertical(args);
19
+ verticalS.args = { size: "s" };
20
+ export const verticalM = (args) => buttonsVertical(args);
21
+ verticalM.args = { size: "m" };
22
+ export const verticalL = (args) => buttonsVertical(args);
23
+ verticalL.args = { size: "l" };
24
+ export const verticalXL = (args) => buttonsVertical(args);
25
+ verticalXL.args = { size: "XL" };
26
+ //# sourceMappingURL=button-group-sizes.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-group-sizes.stories.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 { TemplateResult } from '@spectrum-web-components/base';\n\nimport {\n buttons,\n buttonsVertical,\n Properties,\n} from './button-group.stories.js';\n\nexport default {\n title: 'Button Group/Sizes',\n component: 'sp-button-group',\n};\n\nexport const s = (args: Properties): TemplateResult => buttons(args);\ns.args = { size: 's' };\n\nexport const m = (args: Properties): TemplateResult => buttons(args);\nm.args = { size: 'm' };\n\nexport const l = (args: Properties): TemplateResult => buttons(args);\nl.args = { size: 'l' };\n\nexport const XL = (args: Properties): TemplateResult => buttons(args);\nXL.args = { size: 'XL' };\n\nexport const verticalS = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalS.args = { size: 's' };\n\nexport const verticalM = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalM.args = { size: 'm' };\n\nexport const verticalL = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalL.args = { size: 'l' };\n\nexport const verticalXL = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalXL.args = { size: 'XL' };\n"],
5
+ "mappings": ";AAcA;AAAA,EACI;AAAA,EACA;AAAA,OAEG;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,IAAI,CAAC,SAAqC,QAAQ,IAAI;AACnE,EAAE,OAAO,EAAE,MAAM,IAAI;AAEd,aAAM,IAAI,CAAC,SAAqC,QAAQ,IAAI;AACnE,EAAE,OAAO,EAAE,MAAM,IAAI;AAEd,aAAM,IAAI,CAAC,SAAqC,QAAQ,IAAI;AACnE,EAAE,OAAO,EAAE,MAAM,IAAI;AAEd,aAAM,KAAK,CAAC,SAAqC,QAAQ,IAAI;AACpE,GAAG,OAAO,EAAE,MAAM,KAAK;AAEhB,aAAM,YAAY,CAAC,SACtB,gBAAgB,IAAI;AACxB,UAAU,OAAO,EAAE,MAAM,IAAI;AAEtB,aAAM,YAAY,CAAC,SACtB,gBAAgB,IAAI;AACxB,UAAU,OAAO,EAAE,MAAM,IAAI;AAEtB,aAAM,YAAY,CAAC,SACtB,gBAAgB,IAAI;AACxB,UAAU,OAAO,EAAE,MAAM,IAAI;AAEtB,aAAM,aAAa,CAAC,SACvB,gBAAgB,IAAI;AACxB,WAAW,OAAO,EAAE,MAAM,KAAK;",
6
+ "names": []
7
+ }
@@ -1,14 +1,34 @@
1
- import{html as t}from"@spectrum-web-components/base";import"@spectrum-web-components/button-group/sp-button-group.js";import"@spectrum-web-components/button/sp-button.js";import"@spectrum-web-components/icon/sp-icon.js";export default{title:"Button Group",component:"sp-button-group"};export const buttons=()=>t`
2
- <sp-button-group>
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import "@spectrum-web-components/button-group/sp-button-group.js";
4
+ import "@spectrum-web-components/button/sp-button.js";
5
+ import "@spectrum-web-components/icon/sp-icon.js";
6
+ export default {
7
+ title: "Button Group",
8
+ component: "sp-button-group"
9
+ };
10
+ export const buttons = (args) => {
11
+ return html`
12
+ <sp-button-group size=${args.size || "m"}>
3
13
  <sp-button>Button 1</sp-button>
4
14
  <sp-button>Longer Button 2</sp-button>
5
15
  <sp-button>Short 3</sp-button>
6
16
  </sp-button-group>
7
- `,buttonsVertical=()=>t`
8
- <sp-button-group vertical>
17
+ `;
18
+ };
19
+ buttons.args = {
20
+ size: "m"
21
+ };
22
+ export const buttonsVertical = (args) => {
23
+ return html`
24
+ <sp-button-group vertical size=${args.size || "m"}>
9
25
  <sp-button>Button 1</sp-button>
10
26
  <sp-button>Longer Button 2</sp-button>
11
27
  <sp-button>Short 3</sp-button>
12
28
  </sp-button-group>
13
29
  `;
30
+ };
31
+ buttonsVertical.args = {
32
+ size: "m"
33
+ };
14
34
  //# sourceMappingURL=button-group.stories.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["button-group.stories.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 { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/button-group/sp-button-group.js';\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\n\nexport default {\n title: 'Button Group',\n component: 'sp-button-group',\n};\n\nexport const buttons = (): TemplateResult => {\n return html`\n <sp-button-group>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n `;\n};\n\nexport const buttonsVertical = (): TemplateResult => {\n return html`\n <sp-button-group vertical>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n `;\n};\n"],
5
- "mappings": "AAYA,qDAEA,iEACA,qDACA,iDAEA,cAAe,CACX,MAAO,eACP,UAAW,iBACf,EAEO,YAAM,SAAU,IACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MASE,gBAAkB,IACpB;AAAA;AAAA;AAAA;AAAA;AAAA;",
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 { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/button-group/sp-button-group.js';\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\n\nexport default {\n title: 'Button Group',\n component: 'sp-button-group',\n};\n\nexport interface Properties {\n size?: 's' | 'm' | 'l' | 'xl';\n}\n\ninterface Story<T> {\n (args: T): TemplateResult;\n args: Partial<T>;\n argTypes?: Record<string, unknown>;\n}\n\nexport const buttons: Story<Properties> = (\n args: Properties\n): TemplateResult => {\n return html`\n <sp-button-group size=${args.size || 'm'}>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n `;\n};\nbuttons.args = {\n size: 'm',\n};\n\nexport const buttonsVertical: Story<Properties> = (\n args: Properties\n): TemplateResult => {\n return html`\n <sp-button-group vertical size=${args.size || 'm'}>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n `;\n};\nbuttonsVertical.args = {\n size: 'm',\n};\n"],
5
+ "mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAYO,aAAM,UAA6B,CACtC,SACiB;AACjB,SAAO;AAAA,gCACqB,KAAK,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAM7C;AACA,QAAQ,OAAO;AAAA,EACX,MAAM;AACV;AAEO,aAAM,kBAAqC,CAC9C,SACiB;AACjB,SAAO;AAAA,yCAC8B,KAAK,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAMtD;AACA,gBAAgB,OAAO;AAAA,EACnB,MAAM;AACV;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,9 @@
1
- import"@spectrum-web-components/button-group/sp-button-group.js";import"@spectrum-web-components/button/sp-button.js";import{html as t}from"lit";import{measureFixtureCreation as o}from"../../../../test/benchmark/helpers.js";o(t`
1
+ "use strict";
2
+ import "@spectrum-web-components/button-group/sp-button-group.js";
3
+ import "@spectrum-web-components/button/sp-button.js";
4
+ import { html } from "lit";
5
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
6
+ measureFixtureCreation(html`
2
7
  <sp-button-group>
3
8
  <sp-button>Button 1</sp-button>
4
9
  <sp-button>Longer Button 2</sp-button>
@@ -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/button-group/sp-button-group.js';\nimport '@spectrum-web-components/button/sp-button.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-button-group>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n`);\n"],
5
- "mappings": "AAYA,iEACA,qDACA,2BACA,+EAEA,EAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAMtB",
5
+ "mappings": ";AAYA,OAAO;AACP,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAMtB;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import * as stories from "../stories/button-group-sizes.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("ButtonGroupSizesStories", stories);
5
+ //# sourceMappingURL=button-group-sizes.test-vrt.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-group-sizes.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/button-group-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonGroupSizesStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,2BAA2B,OAA+B;",
6
+ "names": []
7
+ }
@@ -1,2 +1,5 @@
1
- import*as r from"../stories/button-group.stories.js";import{regressVisuals as o}from"../../../test/visual/test.js";o("ButtonGroupStories",r);
1
+ "use strict";
2
+ import * as stories from "../stories/button-group.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("ButtonGroupStories", stories);
2
5
  //# sourceMappingURL=button-group.test-vrt.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["button-group.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/button-group.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonGroupStories', stories);\n"],
5
- "mappings": "AAYA,qDACA,8DAEA,EAAe,qBAAsB,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/button-group.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonGroupStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,sBAAsB,OAA+B;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,23 @@
1
- import{elementUpdated as a,expect as i,fixture as o}from"@open-wc/testing";import"@spectrum-web-components/button-group/sp-button-group.js";import{buttons as e,buttonsVertical as r}from"../stories/button-group.stories.js";import{testForLitDevWarnings as s}from"../../../test/testing-helpers.js";describe("Buttongroup",()=>{s(async()=>await o(e())),it("loads default button-group accessibly with sp-button",async()=>{const t=await o(e());await a(t),await i(t).to.be.accessible()}),it("loads default button-group[vertial] accessibly with sp-button",async()=>{const t=await o(r());await a(t),await i(t).to.be.accessible()})});
1
+ "use strict";
2
+ import { elementUpdated, expect, fixture } from "@open-wc/testing";
3
+ import "@spectrum-web-components/button-group/sp-button-group.js";
4
+ import { buttons, buttonsVertical } from "../stories/button-group.stories.js";
5
+ import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
6
+ describe("Buttongroup", () => {
7
+ testForLitDevWarnings(
8
+ async () => await fixture(buttons(buttons.args))
9
+ );
10
+ it("loads default button-group accessibly with sp-button", async () => {
11
+ const el = await fixture(buttons(buttons.args));
12
+ await elementUpdated(el);
13
+ await expect(el).to.be.accessible();
14
+ });
15
+ it("loads default button-group[vertial] accessibly with sp-button", async () => {
16
+ const el = await fixture(
17
+ buttonsVertical(buttonsVertical.args)
18
+ );
19
+ await elementUpdated(el);
20
+ await expect(el).to.be.accessible();
21
+ });
22
+ });
2
23
  //# sourceMappingURL=button-group.test.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["button-group.test.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 { elementUpdated, expect, fixture } from '@open-wc/testing';\n\nimport '@spectrum-web-components/button-group/sp-button-group.js';\nimport { ButtonGroup } from '..';\nimport { buttons, buttonsVertical } from '../stories/button-group.stories.js';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Buttongroup', () => {\n testForLitDevWarnings(async () => await fixture<ButtonGroup>(buttons()));\n it('loads default button-group accessibly with sp-button', async () => {\n const el = await fixture<ButtonGroup>(buttons());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads default button-group[vertial] accessibly with sp-button', async () => {\n const el = await fixture<ButtonGroup>(buttonsVertical());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
5
- "mappings": "AAYA,2EAEA,iEAEA,kFACA,yEAEA,SAAS,cAAe,IAAM,CAC1B,EAAsB,SAAY,KAAM,GAAqB,EAAQ,CAAC,CAAC,EACvE,GAAG,uDAAwD,SAAY,CACnE,KAAM,GAAK,KAAM,GAAqB,EAAQ,CAAC,EAE/C,KAAM,GAAe,CAAE,EAEvB,KAAM,GAAO,CAAE,EAAE,GAAG,GAAG,WAAW,CACtC,CAAC,EACD,GAAG,gEAAiE,SAAY,CAC5E,KAAM,GAAK,KAAM,GAAqB,EAAgB,CAAC,EAEvD,KAAM,GAAe,CAAE,EAEvB,KAAM,GAAO,CAAE,EAAE,GAAG,GAAG,WAAW,CACtC,CAAC,CACL,CAAC",
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 } from '@open-wc/testing';\n\nimport '@spectrum-web-components/button-group/sp-button-group.js';\nimport { ButtonGroup } from '..';\nimport { buttons, buttonsVertical } from '../stories/button-group.stories.js';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Buttongroup', () => {\n testForLitDevWarnings(\n async () => await fixture<ButtonGroup>(buttons(buttons.args))\n );\n it('loads default button-group accessibly with sp-button', async () => {\n const el = await fixture<ButtonGroup>(buttons(buttons.args));\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads default button-group[vertial] accessibly with sp-button', async () => {\n const el = await fixture<ButtonGroup>(\n buttonsVertical(buttonsVertical.args)\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
5
+ "mappings": ";AAYA,SAAS,gBAAgB,QAAQ,eAAe;AAEhD,OAAO;AAEP,SAAS,SAAS,uBAAuB;AACzC,SAAS,6BAA6B;AAEtC,SAAS,eAAe,MAAM;AAC1B;AAAA,IACI,YAAY,MAAM,QAAqB,QAAQ,QAAQ,IAAI,CAAC;AAAA,EAChE;AACA,KAAG,wDAAwD,YAAY;AACnE,UAAM,KAAK,MAAM,QAAqB,QAAQ,QAAQ,IAAI,CAAC;AAE3D,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,iEAAiE,YAAY;AAC5E,UAAM,KAAK,MAAM;AAAA,MACb,gBAAgB,gBAAgB,IAAI;AAAA,IACxC;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
6
6
  "names": []
7
7
  }