@spectrum-web-components/infield-button 1.2.0-beta.8 → 1.2.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/infield-button",
3
- "version": "1.2.0-beta.8",
3
+ "version": "1.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -58,8 +58,8 @@
58
58
  "lit-html"
59
59
  ],
60
60
  "dependencies": {
61
- "@spectrum-web-components/base": "^1.2.0-beta.8",
62
- "@spectrum-web-components/button": "^1.2.0-beta.8"
61
+ "@spectrum-web-components/base": "^1.2.0",
62
+ "@spectrum-web-components/button": "^1.2.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@spectrum-css/infieldbutton": "6.0.0-s2-foundations.16"
@@ -71,5 +71,5 @@
71
71
  "./**/*.dev.js",
72
72
  "./**/*.dev.js"
73
73
  ],
74
- "gitHead": "740377aa5f17e15650d4871e3034bd9c9a2f5c35"
74
+ "gitHead": "e4aec7b389e6209984e4df74f9b86b3ee0c485dd"
75
75
  }
package/stories/index.js CHANGED
@@ -5,11 +5,9 @@ import "@spectrum-web-components/icons-workflow/icons/sp-icon-add.js";
5
5
  import "@spectrum-web-components/icons-ui/icons/sp-icon-chevron75.js";
6
6
  import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
7
7
  import chevronStyles from "@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js";
8
- import chevronIconOverrides from "@spectrum-web-components/icon/src/icon-chevron-overrides.css.js";
9
8
  document.adoptedStyleSheets = [
10
9
  ...document.adoptedStyleSheets,
11
- chevronStyles.styleSheet,
12
- chevronIconOverrides.styleSheet
10
+ chevronStyles.styleSheet
13
11
  ];
14
12
  export const args = {
15
13
  block: void 0,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.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*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/infield-button/sp-infield-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-add.js';\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-chevron75.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport chevronStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';\nimport chevronIconOverrides from '@spectrum-web-components/icon/src/icon-chevron-overrides.css.js';\n\ndocument.adoptedStyleSheets = [\n ...document.adoptedStyleSheets,\n chevronStyles.styleSheet as CSSStyleSheet,\n chevronIconOverrides.styleSheet as CSSStyleSheet,\n];\n\nexport type StoryArgs = {\n block?: 'start' | 'end';\n content?: () => TemplateResult;\n disabled?: boolean;\n inline?: 'start' | 'end';\n label?: string;\n size?: 's' | 'm' | 'l' | 'xl';\n quiet?: boolean;\n};\n\nexport const args = {\n block: undefined,\n disabled: false,\n inline: undefined,\n label: 'Add',\n size: undefined,\n quiet: false,\n} as StoryArgs;\n\nexport const argTypes = {\n block: {\n name: 'block',\n type: { name: 'text', required: false },\n description: 'Where to place the button along the block axis.',\n table: {\n type: { summary: '\"start\" | \"end\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['none', 'start', 'end'],\n },\n disabled: {\n name: 'disabled',\n type: { name: 'boolean', required: false },\n description: 'Whether the button is disabled or not.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n inline: {\n name: 'inline',\n type: { name: 'text', required: false },\n description: 'Where to place the button along the inline axis.',\n table: {\n type: { summary: '\"start\" | \"end\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['none', 'start', 'end'],\n },\n size: {\n name: 'size',\n type: { name: 'text', required: false },\n description: 'The t-shit size of the button.',\n table: {\n type: { summary: '\"s\" | \"m\" | \"l\" | \"xl\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['s', 'm', 'l', 'xl'],\n },\n quiet: {\n name: 'quiet',\n type: { name: 'boolean', required: false },\n description: 'Whether the button is quiet or not.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n};\n\nexport const Template = ({\n block,\n content,\n disabled,\n inline,\n label,\n size,\n quiet,\n}: StoryArgs): TemplateResult => {\n return html`\n <sp-infield-button\n block=${ifDefined(block)}\n ?disabled=${disabled}\n inline=${ifDefined(inline)}\n label=${ifDefined(label)}\n size=${ifDefined(size)}\n ?quiet=${quiet}\n >\n ${content\n ? content()\n : html`\n <sp-icon-add></sp-icon-add>\n `}\n </sp-infield-button>\n `;\n};\n\nexport const chevronUp = (): TemplateResult => html`\n <sp-icon-chevron75 class=\"spectrum-UIIcon-ChevronUp75\"></sp-icon-chevron75>\n`;\nexport const chevronDown = (): TemplateResult => html`\n <sp-icon-chevron75\n class=\"spectrum-UIIcon-ChevronDown75\"\n ></sp-icon-chevron75>\n`;\n"],
5
- "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,iBAAiB;AAC1B,OAAO,mBAAmB;AAC1B,OAAO,0BAA0B;AAEjC,SAAS,qBAAqB;AAAA,EAC1B,GAAG,SAAS;AAAA,EACZ,cAAc;AAAA,EACd,qBAAqB;AACzB;AAYO,aAAM,OAAO;AAAA,EAChB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AACX;AAEO,a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E,SAAS,UAAU;AAAA,MAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,IACnC;AAAA,IACA,SAAS;AAAA,MACL,MAAM;AAAA,IACV;AAAA,EACJ;AACJ;AAEO,aAAM,WAAW,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,MAAiC;AAC7B,SAAO;AAAA;AAAA,oBAES,UAAU,KAAK,CAAC;AAAA,wBACZ,QAAQ;AAAA,qBACX,UAAU,MAAM,CAAC;AAAA,oBAClB,UAAU,KAAK,CAAC;AAAA,mBACjB,UAAU,IAAI,CAAC;AAAA,qBACb,KAAK;AAAA;AAAA,cAEZ,UACI,QAAQ,IACR;AAAA;AAAA,mBAEC;AAAA;AAAA;AAGnB;AAEO,aAAM,YAAY,MAAsB;AAAA;AAAA;AAGxC,aAAM,cAAc,MAAsB;AAAA;AAAA;AAAA;AAAA;",
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*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/infield-button/sp-infield-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-add.js';\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-chevron75.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport chevronStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';\n\ndocument.adoptedStyleSheets = [\n ...document.adoptedStyleSheets,\n chevronStyles.styleSheet as CSSStyleSheet,\n];\n\nexport type StoryArgs = {\n block?: 'start' | 'end';\n content?: () => TemplateResult;\n disabled?: boolean;\n inline?: 'start' | 'end';\n label?: string;\n size?: 's' | 'm' | 'l' | 'xl';\n quiet?: boolean;\n};\n\nexport const args = {\n block: undefined,\n disabled: false,\n inline: undefined,\n label: 'Add',\n size: undefined,\n quiet: false,\n} as StoryArgs;\n\nexport const argTypes = {\n block: {\n name: 'block',\n type: { name: 'text', required: false },\n description: 'Where to place the button along the block axis.',\n table: {\n type: { summary: '\"start\" | \"end\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['none', 'start', 'end'],\n },\n disabled: {\n name: 'disabled',\n type: { name: 'boolean', required: false },\n description: 'Whether the button is disabled or not.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n inline: {\n name: 'inline',\n type: { name: 'text', required: false },\n description: 'Where to place the button along the inline axis.',\n table: {\n type: { summary: '\"start\" | \"end\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['none', 'start', 'end'],\n },\n size: {\n name: 'size',\n type: { name: 'text', required: false },\n description: 'The t-shit size of the button.',\n table: {\n type: { summary: '\"s\" | \"m\" | \"l\" | \"xl\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['s', 'm', 'l', 'xl'],\n },\n quiet: {\n name: 'quiet',\n type: { name: 'boolean', required: false },\n description: 'Whether the button is quiet or not.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n};\n\nexport const Template = ({\n block,\n content,\n disabled,\n inline,\n label,\n size,\n quiet,\n}: StoryArgs): TemplateResult => {\n return html`\n <sp-infield-button\n block=${ifDefined(block)}\n ?disabled=${disabled}\n inline=${ifDefined(inline)}\n label=${ifDefined(label)}\n size=${ifDefined(size)}\n ?quiet=${quiet}\n >\n ${content\n ? content()\n : html`\n <sp-icon-add></sp-icon-add>\n `}\n </sp-infield-button>\n `;\n};\n\nexport const chevronUp = (): TemplateResult => html`\n <sp-icon-chevron75 class=\"spectrum-UIIcon-ChevronUp75\"></sp-icon-chevron75>\n`;\nexport const chevronDown = (): TemplateResult => html`\n <sp-icon-chevron75\n class=\"spectrum-UIIcon-ChevronDown75\"\n ></sp-icon-chevron75>\n`;\n"],
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,iBAAiB;AAC1B,OAAO,mBAAmB;AAE1B,SAAS,qBAAqB;AAAA,EAC1B,GAAG,SAAS;AAAA,EACZ,cAAc;AAClB;AAYO,aAAM,OAAO;AAAA,EAChB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AACX;AAEO,aAAM,WAAW;AAAA,EACpB,OAAO;AAAA,IACH,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,QAAQ,UAAU,MAAM;AAAA,IACtC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,kBAAkB;AAAA,MACnC,cAAc,EAAE,SAAS,GAAG;AAAA,IAChC;AAAA,IACA,SAAS;AAAA,IACT,SAAS,CAAC,QAAQ,SAAS,KAAK;AAAA,EACpC;AAAA,EACA,UAAU;AAAA,IACN,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,QAAQ;AAAA,IACJ,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,QAAQ,UAAU,MAAM;AAAA,IACtC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,kBAAkB;AAAA,MACnC,cAAc,EAAE,SAAS,GAAG;AAAA,IAChC;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