@spectrum-web-components/accordion 0.40.5 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/accordion",
3
- "version": "0.40.5",
3
+ "version": "0.41.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -66,11 +66,11 @@
66
66
  "lit-html"
67
67
  ],
68
68
  "dependencies": {
69
- "@spectrum-web-components/base": "^0.40.5",
70
- "@spectrum-web-components/icon": "^0.40.5",
71
- "@spectrum-web-components/icons-ui": "^0.40.5",
72
- "@spectrum-web-components/reactive-controllers": "^0.40.5",
73
- "@spectrum-web-components/shared": "^0.40.5"
69
+ "@spectrum-web-components/base": "^0.41.0",
70
+ "@spectrum-web-components/icon": "^0.41.0",
71
+ "@spectrum-web-components/icons-ui": "^0.41.0",
72
+ "@spectrum-web-components/reactive-controllers": "^0.41.0",
73
+ "@spectrum-web-components/shared": "^0.41.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@spectrum-css/accordion": "^4.2.0"
@@ -81,5 +81,5 @@
81
81
  "./sp-*.js",
82
82
  "./**/*.dev.js"
83
83
  ],
84
- "gitHead": "2e0006478841b07af63c19a0167a136bf724d064"
84
+ "gitHead": "0bf38fd427adc39804b228a4c61de623e5ebb82e"
85
85
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  import { AccordionMarkup } from "./";
3
+ import { argTypes } from "./args.js";
3
4
  import "@spectrum-web-components/accordion/sp-accordion.js";
4
5
  import "@spectrum-web-components/accordion/sp-accordion-item.js";
5
6
  import "@spectrum-web-components/link/sp-link.js";
@@ -11,44 +12,7 @@ export default {
11
12
  size: "m",
12
13
  density: void 0
13
14
  },
14
- argTypes: {
15
- open: {
16
- name: "open",
17
- type: { name: "boolean", required: false },
18
- description: "Whether the second accordion item is open.",
19
- table: {
20
- type: { summary: "boolean" },
21
- defaultValue: { summary: false }
22
- },
23
- control: {
24
- type: "boolean"
25
- }
26
- },
27
- density: {
28
- name: "density",
29
- type: { name: "string", required: false },
30
- description: "The density at which to display accordion items.",
31
- table: {
32
- defaultValue: { summary: void 0 }
33
- },
34
- control: {
35
- options: ["compact", "spacious", void 0],
36
- type: "select"
37
- }
38
- },
39
- size: {
40
- name: "size",
41
- type: { name: "string", required: false },
42
- description: "The size at which to display accordion items.",
43
- table: {
44
- defaultValue: { summary: "m" }
45
- },
46
- control: {
47
- options: ["s", "m", "l", "xl"],
48
- type: "select"
49
- }
50
- }
51
- }
15
+ argTypes
52
16
  };
53
17
  export const Default = (args) => AccordionMarkup(args);
54
18
  export const Open = (args) => AccordionMarkup(args);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["accordion.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';\nimport { AccordionMarkup } from './';\n\nimport '@spectrum-web-components/accordion/sp-accordion.js';\nimport '@spectrum-web-components/accordion/sp-accordion-item.js';\nimport '@spectrum-web-components/link/sp-link.js';\n\nexport default {\n title: 'Accordion',\n component: 'sp-accordion',\n args: {\n open: false,\n size: 'm',\n density: undefined,\n },\n argTypes: {\n open: {\n name: 'open',\n type: { name: 'boolean', required: false },\n description: 'Whether the second accordion item is open.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n density: {\n name: 'density',\n type: { name: 'string', required: false },\n description: 'The density at which to display accordion items.',\n table: {\n defaultValue: { summary: undefined },\n },\n control: {\n options: ['compact', 'spacious', undefined],\n type: 'select',\n },\n },\n size: {\n name: 'size',\n type: { name: 'string', required: false },\n description: 'The size at which to display accordion items.',\n table: {\n defaultValue: { summary: 'm' },\n },\n control: {\n options: ['s', 'm', 'l', 'xl'],\n type: 'select',\n },\n },\n },\n};\n\ntype Properties = {\n allowMultiple?: boolean;\n disabled?: boolean;\n open?: boolean;\n density?: 'compact' | 'spacious' | undefined;\n size?: 's' | 'm' | 'l' | 'xl';\n};\n\nexport const Default = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\n\nexport const Open = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\nOpen.args = {\n open: true,\n allowMultiple: false,\n disabled: false,\n};\n\nexport const AllowMultiple = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\nAllowMultiple.args = {\n allowMultiple: true,\n};\n\nexport const Disabled = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\nDisabled.args = {\n disabled: true,\n};\n"],
5
- "mappings": ";AAaA,SAAS,uBAAuB;AAEhC,OAAO;AACP,OAAO;AACP,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AAAA,IACF,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA,EACA,UAAU;AAAA,IACN,MAAM;AAAA,MACF,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,MACzC,aAAa;AAAA,MACb,OAAO;AAAA,QACH,MAAM,EAAE,SAAS,UAAU;AAAA,QAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,MACnC;AAAA,MACA,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,MACL,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,UAAU,UAAU,MAAM;AAAA,MACxC,aAAa;AAAA,MACb,OAAO;AAAA,QACH,cAAc,EAAE,SAAS,OAAU;AAAA,MACvC;AAAA,MACA,SAAS;AAAA,QACL,SAAS,CAAC,WAAW,YAAY,MAAS;AAAA,QAC1C,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,MAAM;AAAA,MACF,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,UAAU,UAAU,MAAM;AAAA,MACxC,aAAa;AAAA,MACb,OAAO;AAAA,QACH,cAAc,EAAE,SAAS,IAAI;AAAA,MACjC;AAAA,MACA,SAAS;AAAA,QACL,SAAS,CAAC,KAAK,KAAK,KAAK,IAAI;AAAA,QAC7B,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,EACJ;AACJ;AAUO,aAAM,UAAU,CAAC,SACpB,gBAAgB,IAAI;AAEjB,aAAM,OAAO,CAAC,SACjB,gBAAgB,IAAI;AACxB,KAAK,OAAO;AAAA,EACR,MAAM;AAAA,EACN,eAAe;AAAA,EACf,UAAU;AACd;AAEO,aAAM,gBAAgB,CAAC,SAC1B,gBAAgB,IAAI;AACxB,cAAc,OAAO;AAAA,EACjB,eAAe;AACnB;AAEO,aAAM,WAAW,CAAC,SACrB,gBAAgB,IAAI;AACxB,SAAS,OAAO;AAAA,EACZ,UAAU;AACd;",
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';\nimport { AccordionMarkup } from './';\nimport { argTypes } from './args.js';\n\nimport '@spectrum-web-components/accordion/sp-accordion.js';\nimport '@spectrum-web-components/accordion/sp-accordion-item.js';\nimport '@spectrum-web-components/link/sp-link.js';\n\nexport default {\n title: 'Accordion',\n component: 'sp-accordion',\n args: {\n open: false,\n size: 'm',\n density: undefined,\n },\n argTypes,\n};\n\ntype Properties = {\n allowMultiple?: boolean;\n disabled?: boolean;\n open?: boolean;\n density?: 'compact' | 'spacious' | undefined;\n size?: 's' | 'm' | 'l' | 'xl';\n};\n\nexport const Default = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\n\nexport const Open = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\nOpen.args = {\n open: true,\n allowMultiple: false,\n disabled: false,\n};\n\nexport const AllowMultiple = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\nAllowMultiple.args = {\n allowMultiple: true,\n};\n\nexport const Disabled = (args?: Properties): TemplateResult =>\n AccordionMarkup(args);\nDisabled.args = {\n disabled: true,\n};\n"],
5
+ "mappings": ";AAaA,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AAEzB,OAAO;AACP,OAAO;AACP,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AAAA,IACF,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA,EACA;AACJ;AAUO,aAAM,UAAU,CAAC,SACpB,gBAAgB,IAAI;AAEjB,aAAM,OAAO,CAAC,SACjB,gBAAgB,IAAI;AACxB,KAAK,OAAO;AAAA,EACR,MAAM;AAAA,EACN,eAAe;AAAA,EACf,UAAU;AACd;AAEO,aAAM,gBAAgB,CAAC,SAC1B,gBAAgB,IAAI;AACxB,cAAc,OAAO;AAAA,EACjB,eAAe;AACnB;AAEO,aAAM,WAAW,CAAC,SACrB,gBAAgB,IAAI;AACxB,SAAS,OAAO;AAAA,EACZ,UAAU;AACd;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ export const argTypes = {
3
+ open: {
4
+ name: "open",
5
+ type: { name: "boolean", required: false },
6
+ description: "Whether the second accordion item is open.",
7
+ table: {
8
+ type: { summary: "boolean" },
9
+ defaultValue: { summary: false }
10
+ },
11
+ control: {
12
+ type: "boolean"
13
+ }
14
+ },
15
+ allowMultiple: {
16
+ name: "allowMultiple",
17
+ type: { name: "boolean", required: false },
18
+ description: "Whether multipel Accordion Items can be open at the same time.",
19
+ table: {
20
+ type: { summary: "boolean" },
21
+ defaultValue: { summary: false }
22
+ },
23
+ control: {
24
+ type: "boolean"
25
+ }
26
+ },
27
+ density: {
28
+ name: "density",
29
+ type: { name: "string", required: false },
30
+ description: "The density at which to display accordion items.",
31
+ table: {
32
+ defaultValue: { summary: "default" }
33
+ },
34
+ control: {
35
+ labels: {
36
+ compact: "Compact",
37
+ spacious: "Spacious",
38
+ default: "Default"
39
+ },
40
+ type: "select"
41
+ }
42
+ },
43
+ size: {
44
+ name: "size",
45
+ type: { name: "string", required: false },
46
+ description: "The size at which to display accordion items.",
47
+ table: {
48
+ defaultValue: { summary: "m" }
49
+ },
50
+ control: {
51
+ labels: {
52
+ s: "Small",
53
+ m: "Medium",
54
+ l: "Large",
55
+ xl: "Extra large"
56
+ },
57
+ type: "select"
58
+ }
59
+ }
60
+ };
61
+ //# sourceMappingURL=args.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["args.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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 const argTypes = {\n open: {\n name: 'open',\n type: { name: 'boolean', required: false },\n description: 'Whether the second accordion item is open.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n allowMultiple: {\n name: 'allowMultiple',\n type: { name: 'boolean', required: false },\n description:\n 'Whether multipel Accordion Items can be open at the same time.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n density: {\n name: 'density',\n type: { name: 'string', required: false },\n description: 'The density at which to display accordion items.',\n table: {\n defaultValue: { summary: 'default' },\n },\n control: {\n labels: {\n compact: 'Compact',\n spacious: 'Spacious',\n default: 'Default',\n },\n type: 'select',\n },\n },\n size: {\n name: 'size',\n type: { name: 'string', required: false },\n description: 'The size at which to display accordion items.',\n table: {\n defaultValue: { summary: 'm' },\n },\n control: {\n labels: {\n s: 'Small',\n m: 'Medium',\n l: 'Large',\n xl: 'Extra large',\n },\n type: 'select',\n },\n },\n};\n"],
5
+ "mappings": ";AAYO,aAAM,WAAW;AAAA,EACpB,MAAM;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,IACzC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,UAAU;AAAA,MAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,IACnC;AAAA,IACA,SAAS;AAAA,MACL,MAAM;AAAA,IACV;AAAA,EACJ;AAAA,EACA,eAAe;AAAA,IACX,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,IACzC,aACI;AAAA,IACJ,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,UAAU;AAAA,MAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,IACnC;AAAA,IACA,SAAS;AAAA,MACL,MAAM;AAAA,IACV;AAAA,EACJ;AAAA,EACA,SAAS;AAAA,IACL,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,UAAU,UAAU,MAAM;AAAA,IACxC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,cAAc,EAAE,SAAS,UAAU;AAAA,IACvC;AAAA,IACA,SAAS;AAAA,MACL,QAAQ;AAAA,QACJ,SAAS;AAAA,QACT,UAAU;AAAA,QACV,SAAS;AAAA,MACb;AAAA,MACA,MAAM;AAAA,IACV;AAAA,EACJ;AAAA,EACA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,UAAU,UAAU,MAAM;AAAA,IACxC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,cAAc,EAAE,SAAS,IAAI;AAAA,IACjC;AAAA,IACA,SAAS;AAAA,MACL,QAAQ;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,GAAG;AAAA,QACH,IAAI;AAAA,MACR;AAAA,MACA,MAAM;AAAA,IACV;AAAA,EACJ;AACJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ import { AccordionMarkup } from "./";
3
+ export const Template = AccordionMarkup;
4
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["template.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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 { AccordionMarkup } from './';\n\nexport const Template = AccordionMarkup;\n"],
5
+ "mappings": ";AAYA,SAAS,uBAAuB;AAEzB,aAAM,WAAW;",
6
+ "names": []
7
+ }