@spectrum-web-components/picker-button 0.36.0 → 0.38.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/picker-button",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -52,9 +52,9 @@
52
52
  "lit-html"
53
53
  ],
54
54
  "dependencies": {
55
- "@spectrum-web-components/base": "^0.36.0",
56
- "@spectrum-web-components/button": "^0.36.0",
57
- "@spectrum-web-components/icons-ui": "^0.36.0"
55
+ "@spectrum-web-components/base": "^0.38.0",
56
+ "@spectrum-web-components/button": "^0.38.0",
57
+ "@spectrum-web-components/icons-ui": "^0.38.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@spectrum-css/pickerbutton": "^4.0.3"
@@ -65,5 +65,5 @@
65
65
  "./sp-*.js",
66
66
  "./**/*.dev.js"
67
67
  ],
68
- "gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e"
68
+ "gitHead": "9a099b7543672f2fd4030833ab813b16c2cad62e"
69
69
  }
package/stories/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- import { html } from "@spectrum-web-components/base";
2
+ import { html, nothing } from "@spectrum-web-components/base";
3
3
  import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
4
4
  export const Template = ({
5
5
  active,
@@ -22,12 +22,12 @@ export const Template = ({
22
22
  ?rounded=${rounded}
23
23
  size=${size}
24
24
  >
25
- ${icon ? icon : html``}
25
+ ${icon ? icon : nothing}
26
26
  ${label ? html`
27
27
  <span slot="label">
28
28
  ${typeof label === "string" ? label : "All"}
29
29
  </span>
30
- ` : html``}
30
+ ` : nothing}
31
31
  </sp-picker-button>
32
32
  `;
33
33
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nexport type StoryArgs = {\n active: boolean;\n icon: TemplateResult;\n invalid: boolean;\n label: boolean | string;\n open: boolean;\n position?: 'right' | 'left';\n quiet: boolean;\n rounded: boolean;\n size: 's' | 'm' | 'l' | 'xl';\n};\n\nexport const Template = ({\n active,\n icon,\n invalid,\n label,\n open,\n position,\n quiet,\n rounded,\n size,\n}: StoryArgs): TemplateResult => {\n return html`\n <sp-picker-button\n ?active=${active}\n ?invalid=${invalid}\n ?open=${open}\n position=${ifDefined(position)}\n ?quiet=${quiet}\n ?rounded=${rounded}\n size=${size}\n >\n ${icon ? icon : html``}\n ${label\n ? html`\n <span slot=\"label\">\n ${typeof label === 'string' ? label : 'All'}\n </span>\n `\n : html``}\n </sp-picker-button>\n `;\n};\n\nexport const argTypes = {\n argTypes: {\n open: {\n control: {\n type: 'boolean',\n },\n },\n position: {\n control: {\n type: 'inline-radio',\n options: ['right', 'left'],\n },\n },\n quiet: {\n control: {\n type: 'boolean',\n },\n },\n size: {\n control: {\n type: 'inline-radio',\n options: ['s', 'm', 'l', 'xl'],\n },\n },\n },\n};\n"],
5
- "mappings": ";AAYA,SAAS,YAA4B;AACrC,SAAS,iBAAiB;AAcnB,aAAM,WAAW,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,MAAiC;AAC7B,SAAO;AAAA;AAAA,sBAEW,MAAM;AAAA,uBACL,OAAO;AAAA,oBACV,IAAI;AAAA,uBACD,UAAU,QAAQ,CAAC;AAAA,qBACrB,KAAK;AAAA,uBACH,OAAO;AAAA,mBACX,IAAI;AAAA;AAAA,cAET,OAAO,OAAO,MAAM;AAAA,cACpB,QACI;AAAA;AAAA,4BAEU,OAAO,UAAU,WAAW,QAAQ,KAAK;AAAA;AAAA,sBAGnD,MAAM;AAAA;AAAA;AAGxB;AAEO,aAAM,WAAW;AAAA,EACpB,UAAU;AAAA,IACN,MAAM;AAAA,MACF,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,UAAU;AAAA,MACN,SAAS;AAAA,QACL,MAAM;AAAA,QACN,SAAS,CAAC,SAAS,MAAM;AAAA,MAC7B;AAAA,IACJ;AAAA,IACA,OAAO;AAAA,MACH,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,MAAM;AAAA,MACF,SAAS;AAAA,QACL,MAAM;AAAA,QACN,SAAS,CAAC,KAAK,KAAK,KAAK,IAAI;AAAA,MACjC;AAAA,IACJ;AAAA,EACJ;AACJ;",
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*/\n\nimport { html, nothing, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nexport type StoryArgs = {\n active: boolean;\n icon: TemplateResult;\n invalid: boolean;\n label: boolean | string;\n open: boolean;\n position?: 'right' | 'left';\n quiet: boolean;\n rounded: boolean;\n size: 's' | 'm' | 'l' | 'xl';\n};\n\nexport const Template = ({\n active,\n icon,\n invalid,\n label,\n open,\n position,\n quiet,\n rounded,\n size,\n}: StoryArgs): TemplateResult => {\n return html`\n <sp-picker-button\n ?active=${active}\n ?invalid=${invalid}\n ?open=${open}\n position=${ifDefined(position)}\n ?quiet=${quiet}\n ?rounded=${rounded}\n size=${size}\n >\n ${icon ? icon : nothing}\n ${label\n ? html`\n <span slot=\"label\">\n ${typeof label === 'string' ? label : 'All'}\n </span>\n `\n : nothing}\n </sp-picker-button>\n `;\n};\n\nexport const argTypes = {\n argTypes: {\n open: {\n control: {\n type: 'boolean',\n },\n },\n position: {\n control: {\n type: 'inline-radio',\n options: ['right', 'left'],\n },\n },\n quiet: {\n control: {\n type: 'boolean',\n },\n },\n size: {\n control: {\n type: 'inline-radio',\n options: ['s', 'm', 'l', 'xl'],\n },\n },\n },\n};\n"],
5
+ "mappings": ";AAYA,SAAS,MAAM,eAA+B;AAC9C,SAAS,iBAAiB;AAcnB,aAAM,WAAW,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,MAAiC;AAC7B,SAAO;AAAA;AAAA,sBAEW,MAAM;AAAA,uBACL,OAAO;AAAA,oBACV,IAAI;AAAA,uBACD,UAAU,QAAQ,CAAC;AAAA,qBACrB,KAAK;AAAA,uBACH,OAAO;AAAA,mBACX,IAAI;AAAA;AAAA,cAET,OAAO,OAAO,OAAO;AAAA,cACrB,QACI;AAAA;AAAA,4BAEU,OAAO,UAAU,WAAW,QAAQ,KAAK;AAAA;AAAA,sBAGnD,OAAO;AAAA;AAAA;AAGzB;AAEO,aAAM,WAAW;AAAA,EACpB,UAAU;AAAA,IACN,MAAM;AAAA,MACF,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,UAAU;AAAA,MACN,SAAS;AAAA,QACL,MAAM;AAAA,QACN,SAAS,CAAC,SAAS,MAAM;AAAA,MAC7B;AAAA,IACJ;AAAA,IACA,OAAO;AAAA,MACH,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,MAAM;AAAA,MACF,SAAS;AAAA,QACL,MAAM;AAAA,QACN,SAAS,CAAC,KAAK,KAAK,KAAK,IAAI;AAAA,MACjC;AAAA,IACJ;AAAA,EACJ;AACJ;",
6
6
  "names": []
7
7
  }