@spectrum-web-components/badge 0.35.1-rc.26 → 0.35.1-rc.41

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/badge",
3
- "version": "0.35.1-rc.26+05bd08374",
3
+ "version": "0.35.1-rc.41+6ac4e82f0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,8 +57,8 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.35.1-rc.26+05bd08374",
61
- "@spectrum-web-components/shared": "^0.35.1-rc.26+05bd08374"
60
+ "@spectrum-web-components/base": "^0.35.1-rc.41+6ac4e82f0",
61
+ "@spectrum-web-components/shared": "^0.35.1-rc.41+6ac4e82f0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@spectrum-css/badge": "^3.0.42"
@@ -69,5 +69,5 @@
69
69
  "./sp-*.js",
70
70
  "./**/*.dev.js"
71
71
  ],
72
- "gitHead": "05bd0837417e287acdf2685d1ca05ab4d138fc95"
72
+ "gitHead": "6ac4e82f0a4a68eb50b5dd4b96a562060162ac6f"
73
73
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["Badge.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 {\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';\n\nimport { ObserveSlotText } from '@spectrum-web-components/shared/src/observe-slot-text.js';\nimport { ObserveSlotPresence } from '@spectrum-web-components/shared/src/observe-slot-presence.js';\nimport styles from './badge.css.js';\n\nexport const BADGE_VARIANTS = [\n 'accent',\n 'neutral',\n 'informative',\n 'positive',\n 'negative',\n 'fuchsia',\n 'indigo',\n 'magenta',\n 'purple',\n 'seafoam',\n 'yellow',\n] as const;\nexport type BadgeVariant = typeof BADGE_VARIANTS[number];\nexport const FIXED_VALUES_DEPRECATED = ['top', 'bottom', 'left', 'right'];\nexport const FIXED_VALUES = [\n 'inline-start',\n 'inline-end',\n 'block-start',\n 'block-end',\n] as const;\nexport type FixedValues =\n | typeof FIXED_VALUES[number]\n | typeof FIXED_VALUES_DEPRECATED[number];\n\n/**\n * @element sp-badge\n *\n * @slot - Text label of the badge\n * @slot icon - Optional icon that appears to the left of the label\n */\nexport class Badge extends SizedMixin(\n ObserveSlotText(ObserveSlotPresence(SpectrumElement, '[slot=\"icon\"]'), '')\n) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ reflect: true })\n public get fixed(): FixedValues | undefined {\n return this._fixed;\n }\n\n public set fixed(fixed: FixedValues | undefined) {\n if (fixed === this.fixed) return;\n const oldValue = this.fixed;\n if (window.__swc.DEBUG) {\n if (fixed && FIXED_VALUES_DEPRECATED.includes(fixed)) {\n window.__swc.warn(\n this,\n `The following values for \"fixed\" in <${this.localName}> have been deprecated. They will be removed in a future release.`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#fixed',\n {\n issues: [...FIXED_VALUES_DEPRECATED],\n }\n );\n }\n }\n this._fixed = fixed;\n if (fixed) {\n this.setAttribute('fixed', fixed);\n } else {\n this.removeAttribute('fixed');\n }\n this.requestUpdate('fixed', oldValue);\n }\n\n private _fixed?: FixedValues;\n\n @property({ type: String, reflect: true })\n public variant: BadgeVariant = 'informative';\n\n protected get hasIcon(): boolean {\n return this.slotContentIsPresent;\n }\n\n protected override render(): TemplateResult {\n if (window.__swc.DEBUG) {\n if (!BADGE_VARIANTS.includes(this.variant)) {\n window.__swc.warn(\n this,\n `<${this.localName}> element expect the \"variant\" attribute to be one of the following:`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#variants',\n {\n issues: [...BADGE_VARIANTS],\n }\n );\n }\n }\n return html`\n ${this.hasIcon\n ? html`\n <slot\n name=\"icon\"\n ?icon-only=${!this.slotHasContent}\n ></slot>\n `\n : html``}\n <div class=\"label\">\n <slot></slot>\n </div>\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;AACpC,OAAO,YAAY;AAEZ,aAAM,iBAAiB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AAEO,aAAM,0BAA0B,CAAC,OAAO,UAAU,QAAQ,OAAO;AACjE,aAAM,eAAe;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AAWO,aAAM,cAAc;AAAA,EACvB,gBAAgB,oBAAoB,iBAAiB,eAAe,GAAG,EAAE;AAC7E,EAAE;AAAA,EAFK;AAAA;AAuCH,SAAO,UAAwB;AAAA;AAAA,EApC/B,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAGA,IAAW,QAAiC;AACxC,WAAO,KAAK;AAAA,EAChB;AAAA,EAEA,IAAW,MAAM,OAAgC;AAC7C,QAAI,UAAU,KAAK;AAAO;AAC1B,UAAM,WAAW,KAAK;AACtB,QAAI,MAAoB;AACpB,UAAI,SAAS,wBAAwB,SAAS,KAAK,GAAG;AAClD,eAAO,MAAM;AAAA,UACT;AAAA,UACA,wCAAwC,KAAK;AAAA,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AACJ;AAhEe;AAAA,EADV,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAPlB,MAQE;AA+BJ;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAtChC,MAuCF;",
6
6
  "names": []
7
7
  }
package/src/Badge.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["Badge.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 {\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';\n\nimport { ObserveSlotText } from '@spectrum-web-components/shared/src/observe-slot-text.js';\nimport { ObserveSlotPresence } from '@spectrum-web-components/shared/src/observe-slot-presence.js';\nimport styles from './badge.css.js';\n\nexport const BADGE_VARIANTS = [\n 'accent',\n 'neutral',\n 'informative',\n 'positive',\n 'negative',\n 'fuchsia',\n 'indigo',\n 'magenta',\n 'purple',\n 'seafoam',\n 'yellow',\n] as const;\nexport type BadgeVariant = typeof BADGE_VARIANTS[number];\nexport const FIXED_VALUES_DEPRECATED = ['top', 'bottom', 'left', 'right'];\nexport const FIXED_VALUES = [\n 'inline-start',\n 'inline-end',\n 'block-start',\n 'block-end',\n] as const;\nexport type FixedValues =\n | typeof FIXED_VALUES[number]\n | typeof FIXED_VALUES_DEPRECATED[number];\n\n/**\n * @element sp-badge\n *\n * @slot - Text label of the badge\n * @slot icon - Optional icon that appears to the left of the label\n */\nexport class Badge extends SizedMixin(\n ObserveSlotText(ObserveSlotPresence(SpectrumElement, '[slot=\"icon\"]'), '')\n) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ reflect: true })\n public get fixed(): FixedValues | undefined {\n return this._fixed;\n }\n\n public set fixed(fixed: FixedValues | undefined) {\n if (fixed === this.fixed) return;\n const oldValue = this.fixed;\n if (window.__swc.DEBUG) {\n if (fixed && FIXED_VALUES_DEPRECATED.includes(fixed)) {\n window.__swc.warn(\n this,\n `The following values for \"fixed\" in <${this.localName}> have been deprecated. They will be removed in a future release.`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#fixed',\n {\n issues: [...FIXED_VALUES_DEPRECATED],\n }\n );\n }\n }\n this._fixed = fixed;\n if (fixed) {\n this.setAttribute('fixed', fixed);\n } else {\n this.removeAttribute('fixed');\n }\n this.requestUpdate('fixed', oldValue);\n }\n\n private _fixed?: FixedValues;\n\n @property({ type: String, reflect: true })\n public variant: BadgeVariant = 'informative';\n\n protected get hasIcon(): boolean {\n return this.slotContentIsPresent;\n }\n\n protected override render(): TemplateResult {\n if (window.__swc.DEBUG) {\n if (!BADGE_VARIANTS.includes(this.variant)) {\n window.__swc.warn(\n this,\n `<${this.localName}> element expect the \"variant\" attribute to be one of the following:`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#variants',\n {\n issues: [...BADGE_VARIANTS],\n }\n );\n }\n }\n return html`\n ${this.hasIcon\n ? html`\n <slot\n name=\"icon\"\n ?icon-only=${!this.slotHasContent}\n ></slot>\n `\n : html``}\n <div class=\"label\">\n <slot></slot>\n </div>\n `;\n }\n}\n"],
5
- "mappings": "qNAYA,OAEI,QAAAA,EACA,cAAAC,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAS,mBAAAC,MAAuB,2DAChC,OAAS,uBAAAC,MAA2B,+DACpC,OAAOC,MAAY,iBAEZ,aAAM,eAAiB,CAC1B,SACA,UACA,cACA,WACA,WACA,UACA,SACA,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H,EAAiB,eAAe,EAAG,EAAE,CAC7E,CAAE,CAFK,kCAuCH,KAAO,QAAwB,cApC/B,WAA2B,QAAyB,CAChD,MAAO,CAACI,CAAM,CAClB,CAGA,IAAW,OAAiC,CACxC,OAAO,KAAK,MAChB,CAEA,IAAW,MAAMC,EAAgC,CAC7C,GAAIA,IAAU,KAAK,MAAO,OAC1B,MAAMC,EAAW,KAAK,MAatB,KAAK,OAASD,EACVA,EACA,KAAK,aAAa,QAASA,CAAK,EAEhC,KAAK,gBAAgB,OAAO,EAEhC,KAAK,cAAc,QAASC,CAAQ,CACxC,CAOA,IAAc,SAAmB,CAC7B,OAAO,KAAK,oBAChB,CAEmB,QAAyB,CAaxC,OAAOR;AAAA,cACD,KAAK,QACDA;AAAA;AAAA;AAAA,uCAGqB,CAAC,KAAK,cAAc;AAAA;AAAA,oBAGzCA,GAAM;AAAA;AAAA;AAAA;AAAA,SAKpB,CACJ,CAhEeS,EAAA,CADVN,EAAS,CAAE,QAAS,EAAK,CAAC,GAPlB,MAQE,qBA+BJM,EAAA,CADNN,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAtChC,MAuCF",
6
6
  "names": ["html", "SizedMixin", "SpectrumElement", "property", "ObserveSlotText", "ObserveSlotPresence", "styles", "fixed", "oldValue", "__decorateClass"]
7
7
  }
@@ -1,177 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-badge.ts",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-badge",
13
- "declaration": {
14
- "name": "Badge",
15
- "module": "/src/Badge.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/Badge.ts",
23
- "declarations": [
24
- {
25
- "kind": "variable",
26
- "name": "BADGE_VARIANTS",
27
- "type": {
28
- "text": "[\n 'accent',\n 'neutral',\n 'informative',\n 'positive',\n 'negative',\n 'fuchsia',\n 'indigo',\n 'magenta',\n 'purple',\n 'seafoam',\n 'yellow',\n]"
29
- },
30
- "default": "[\n 'accent',\n 'neutral',\n 'informative',\n 'positive',\n 'negative',\n 'fuchsia',\n 'indigo',\n 'magenta',\n 'purple',\n 'seafoam',\n 'yellow',\n]"
31
- },
32
- {
33
- "kind": "variable",
34
- "name": "FIXED_VALUES_DEPRECATED",
35
- "type": {
36
- "text": "array"
37
- },
38
- "default": "['top', 'bottom', 'left', 'right']"
39
- },
40
- {
41
- "kind": "variable",
42
- "name": "FIXED_VALUES",
43
- "type": {
44
- "text": "[\n 'inline-start',\n 'inline-end',\n 'block-start',\n 'block-end',\n]"
45
- },
46
- "default": "[\n 'inline-start',\n 'inline-end',\n 'block-start',\n 'block-end',\n]"
47
- },
48
- {
49
- "kind": "class",
50
- "description": "",
51
- "name": "Badge",
52
- "slots": [
53
- {
54
- "description": "Text label of the badge",
55
- "name": ""
56
- },
57
- {
58
- "description": "Optional icon that appears to the left of the label",
59
- "name": "icon"
60
- }
61
- ],
62
- "members": [
63
- {
64
- "kind": "field",
65
- "name": "fixed",
66
- "type": {
67
- "text": "FixedValues | undefined"
68
- },
69
- "privacy": "public",
70
- "attribute": "fixed",
71
- "reflects": true
72
- },
73
- {
74
- "kind": "field",
75
- "name": "_fixed",
76
- "type": {
77
- "text": "FixedValues | undefined"
78
- },
79
- "privacy": "private"
80
- },
81
- {
82
- "kind": "field",
83
- "name": "variant",
84
- "type": {
85
- "text": "BadgeVariant"
86
- },
87
- "privacy": "public",
88
- "default": "'informative'",
89
- "attribute": "variant",
90
- "reflects": true
91
- },
92
- {
93
- "kind": "field",
94
- "name": "hasIcon",
95
- "type": {
96
- "text": "boolean"
97
- },
98
- "privacy": "protected",
99
- "readonly": true
100
- }
101
- ],
102
- "attributes": [
103
- {
104
- "name": "fixed",
105
- "type": {
106
- "text": "FixedValues | undefined"
107
- },
108
- "fieldName": "fixed"
109
- },
110
- {
111
- "name": "variant",
112
- "type": {
113
- "text": "BadgeVariant"
114
- },
115
- "default": "'informative'",
116
- "fieldName": "variant"
117
- }
118
- ],
119
- "mixins": [
120
- {
121
- "name": "SizedMixin",
122
- "package": "@spectrum-web-components/base"
123
- },
124
- {
125
- "name": "ObserveSlotText",
126
- "package": "@spectrum-web-components/shared/src/observe-slot-text.js"
127
- },
128
- {
129
- "name": "ObserveSlotPresence",
130
- "package": "@spectrum-web-components/shared/src/observe-slot-presence.js"
131
- }
132
- ],
133
- "superclass": {
134
- "name": "SpectrumElement",
135
- "package": "@spectrum-web-components/base"
136
- },
137
- "tagName": "sp-badge",
138
- "customElement": true
139
- }
140
- ],
141
- "exports": [
142
- {
143
- "kind": "js",
144
- "name": "BADGE_VARIANTS",
145
- "declaration": {
146
- "name": "BADGE_VARIANTS",
147
- "module": "src/Badge.ts"
148
- }
149
- },
150
- {
151
- "kind": "js",
152
- "name": "FIXED_VALUES_DEPRECATED",
153
- "declaration": {
154
- "name": "FIXED_VALUES_DEPRECATED",
155
- "module": "src/Badge.ts"
156
- }
157
- },
158
- {
159
- "kind": "js",
160
- "name": "FIXED_VALUES",
161
- "declaration": {
162
- "name": "FIXED_VALUES",
163
- "module": "src/Badge.ts"
164
- }
165
- },
166
- {
167
- "kind": "js",
168
- "name": "Badge",
169
- "declaration": {
170
- "name": "Badge",
171
- "module": "src/Badge.ts"
172
- }
173
- }
174
- ]
175
- }
176
- ]
177
- }