@spectrum-web-components/action-bar 0.42.1 → 0.42.3

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/action-bar",
3
- "version": "0.42.1",
3
+ "version": "0.42.3",
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/action-group": "^0.42.1",
61
- "@spectrum-web-components/base": "^0.42.1",
62
- "@spectrum-web-components/button": "^0.42.1",
63
- "@spectrum-web-components/field-label": "^0.42.1",
64
- "@spectrum-web-components/popover": "^0.42.1"
60
+ "@spectrum-web-components/action-group": "^0.42.3",
61
+ "@spectrum-web-components/base": "^0.42.3",
62
+ "@spectrum-web-components/button": "^0.42.3",
63
+ "@spectrum-web-components/field-label": "^0.42.3",
64
+ "@spectrum-web-components/popover": "^0.42.3"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@spectrum-css/actionbar": "^7.2.4"
@@ -72,5 +72,5 @@
72
72
  "./sp-*.js",
73
73
  "./**/*.dev.js"
74
74
  ],
75
- "gitHead": "c7ab5516e86d20194e92114afd04affa490b7248"
75
+ "gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
76
76
  }
@@ -9,7 +9,14 @@ import "@spectrum-web-components/icons-workflow/icons/sp-icon-more.js";
9
9
  import { Template } from "./template.js";
10
10
  export default {
11
11
  title: "Action Bar",
12
- component: "sp-action-bar"
12
+ component: "sp-action-bar",
13
+ parameters: {
14
+ // Getting the Figma link: https://help.figma.com/hc/en-us/articles/360045003494-Storybook-and-Figma
15
+ design: {
16
+ type: "figma",
17
+ url: "https://www.figma.com/file/MPtRIVRzPp2VHiEplwXL2X/S-%2F-Manual?node-id=465%3A3127&t=xbooxCWItOFgG2xM-1"
18
+ }
19
+ }
13
20
  };
14
21
  export const Default = () => Template({
15
22
  open: true
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-bar.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/action-bar/sp-action-bar.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-more.js';\n\nimport { Template } from './template.js';\n\nexport default {\n title: 'Action Bar',\n component: 'sp-action-bar',\n};\n\nexport const Default = (): TemplateResult =>\n Template({\n open: true,\n });\n\nexport const emphasized = (): TemplateResult => {\n return html`\n <sp-action-bar open emphasized>\n 2 selected\n <sp-action-button slot=\"buttons\" label=\"Edit\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n </sp-action-button>\n <sp-action-button slot=\"buttons\" label=\"More\">\n <sp-icon-more slot=\"icon\"></sp-icon-more>\n </sp-action-button>\n </sp-action-bar>\n `;\n};\n\nexport const fixed = (): TemplateResult => {\n return html`\n <style>\n [variant='fixed'] {\n bottom: 2.5em;\n inset-inline-end: 1em;\n }\n </style>\n <sp-action-bar open variant=\"fixed\">\n 2 selected\n <sp-action-button slot=\"buttons\" label=\"Edit\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n </sp-action-button>\n <sp-action-button slot=\"buttons\" label=\"More\">\n <sp-icon-more slot=\"icon\"></sp-icon-more>\n </sp-action-button>\n </sp-action-bar>\n `;\n};\n\nexport const flexible = (): TemplateResult => {\n return html`\n <sp-action-bar open flexible emphasized>\n 2 selected\n <sp-action-button slot=\"buttons\" label=\"Edit\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n </sp-action-button>\n <sp-action-button slot=\"buttons\" label=\"More\">\n <sp-icon-more slot=\"icon\"></sp-icon-more>\n </sp-action-button>\n </sp-action-bar>\n `;\n};\n"],
5
- "mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEP,SAAS,gBAAgB;AAEzB,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,UAAU,MACnB,SAAS;AAAA,EACL,MAAM;AACV,CAAC;AAEE,aAAM,aAAa,MAAsB;AAC5C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBX;AAEO,aAAM,WAAW,MAAsB;AAC1C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;",
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/action-bar/sp-action-bar.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-more.js';\n\nimport { Template } from './template.js';\n\nexport default {\n title: 'Action Bar',\n component: 'sp-action-bar',\n parameters: {\n // Getting the Figma link: https://help.figma.com/hc/en-us/articles/360045003494-Storybook-and-Figma\n design: {\n type: 'figma',\n url: 'https://www.figma.com/file/MPtRIVRzPp2VHiEplwXL2X/S-%2F-Manual?node-id=465%3A3127&t=xbooxCWItOFgG2xM-1',\n },\n },\n};\n\nexport const Default = (): TemplateResult =>\n Template({\n open: true,\n });\n\nexport const emphasized = (): TemplateResult => {\n return html`\n <sp-action-bar open emphasized>\n 2 selected\n <sp-action-button slot=\"buttons\" label=\"Edit\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n </sp-action-button>\n <sp-action-button slot=\"buttons\" label=\"More\">\n <sp-icon-more slot=\"icon\"></sp-icon-more>\n </sp-action-button>\n </sp-action-bar>\n `;\n};\n\nexport const fixed = (): TemplateResult => {\n return html`\n <style>\n [variant='fixed'] {\n bottom: 2.5em;\n inset-inline-end: 1em;\n }\n </style>\n <sp-action-bar open variant=\"fixed\">\n 2 selected\n <sp-action-button slot=\"buttons\" label=\"Edit\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n </sp-action-button>\n <sp-action-button slot=\"buttons\" label=\"More\">\n <sp-icon-more slot=\"icon\"></sp-icon-more>\n </sp-action-button>\n </sp-action-bar>\n `;\n};\n\nexport const flexible = (): TemplateResult => {\n return html`\n <sp-action-bar open flexible emphasized>\n 2 selected\n <sp-action-button slot=\"buttons\" label=\"Edit\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n </sp-action-button>\n <sp-action-button slot=\"buttons\" label=\"More\">\n <sp-icon-more slot=\"icon\"></sp-icon-more>\n </sp-action-button>\n </sp-action-bar>\n `;\n};\n"],
5
+ "mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEP,SAAS,gBAAgB;AAEzB,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA;AAAA,IAER,QAAQ;AAAA,MACJ,MAAM;AAAA,MACN,KAAK;AAAA,IACT;AAAA,EACJ;AACJ;AAEO,aAAM,UAAU,MACnB,SAAS;AAAA,EACL,MAAM;AACV,CAAC;AAEE,aAAM,aAAa,MAAsB;AAC5C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBX;AAEO,aAAM,WAAW,MAAsB;AAC1C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
- import { fixture } from "@open-wc/testing";
3
2
  import { Default } from "../stories/action-bar.stories.js";
4
3
  import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
5
- testForMemoryLeaks(async () => await fixture(Default()));
4
+ testForMemoryLeaks(Default());
6
5
  //# sourceMappingURL=action-bar-memory.test.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-bar-memory.test.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 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 { fixture } from '@open-wc/testing';\nimport { Default } from '../stories/action-bar.stories.js';\nimport { ActionBar } from '@spectrum-web-components/action-bar';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(async () => await fixture<ActionBar>(Default()));\n"],
5
- "mappings": ";AAYA,SAAS,eAAe;AACxB,SAAS,eAAe;AAExB,SAAS,0BAA0B;AAEnC,mBAAmB,YAAY,MAAM,QAAmB,QAAQ,CAAC,CAAC;",
4
+ "sourcesContent": ["/*\nCopyright 2023 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 { Default } from '../stories/action-bar.stories.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(Default());\n"],
5
+ "mappings": ";AAYA,SAAS,eAAe;AACxB,SAAS,0BAA0B;AAEnC,mBAAmB,QAAQ,CAAC;",
6
6
  "names": []
7
7
  }