@spectrum-web-components/picker-button 1.12.0-next.20260218162159 → 1.12.0-testing.20260223092154
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 +6 -6
- package/sp-picker-button.dev.js.map +1 -1
- package/sp-picker-button.js.map +1 -1
- package/src/PickerButton.d.ts +1 -1
- package/src/PickerButton.dev.js.map +1 -1
- package/src/PickerButton.js.map +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.dev.js.map +1 -1
- package/src/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/picker-button",
|
|
3
|
-
"version": "1.12.0-
|
|
3
|
+
"version": "1.12.0-testing.20260223092154",
|
|
4
4
|
"description": "Web component implementation of a Spectrum design PickerButton",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Adobe",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
],
|
|
55
55
|
"types": "./src/index.d.ts",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@spectrum-web-components/base": "1.12.0-
|
|
58
|
-
"@spectrum-web-components/button": "1.12.0-
|
|
59
|
-
"@spectrum-web-components/icon": "1.12.0-
|
|
60
|
-
"@spectrum-web-components/icons-ui": "1.12.0-
|
|
61
|
-
"@spectrum-web-components/shared": "1.12.0-
|
|
57
|
+
"@spectrum-web-components/base": "1.12.0-testing.20260223092154",
|
|
58
|
+
"@spectrum-web-components/button": "1.12.0-testing.20260223092154",
|
|
59
|
+
"@spectrum-web-components/icon": "1.12.0-testing.20260223092154",
|
|
60
|
+
"@spectrum-web-components/icons-ui": "1.12.0-testing.20260223092154",
|
|
61
|
+
"@spectrum-web-components/shared": "1.12.0-testing.20260223092154"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"design-system",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-picker-button.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\nimport { PickerButton } from './src/PickerButton.dev.js'\n\ndefineElement('sp-picker-button', PickerButton);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-picker-button': PickerButton;\n }\n}\n"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,qBAAqB;AAE9B,SAAS,oBAAoB;AAE7B,cAAc,oBAAoB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/sp-picker-button.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-picker-button.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\nimport { PickerButton } from './src/PickerButton.js';\n\ndefineElement('sp-picker-button', PickerButton);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-picker-button': PickerButton;\n }\n}\n"],
|
|
5
5
|
"mappings": "aAWA,OAAS,iBAAAA,MAAqB,sDAE9B,OAAS,gBAAAC,MAAoB,wBAE7BD,EAAc,mBAAoBC,CAAY",
|
|
6
6
|
"names": ["defineElement", "PickerButton"]
|
|
7
7
|
}
|
package/src/PickerButton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["PickerButton.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n CSSResultArray,\n DefaultElementSize,\n html,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { classMap } from '@spectrum-web-components/base/src/directives.js';\nimport { ButtonBase } from '@spectrum-web-components/button/src/ButtonBase.js';\nimport chevronStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';\nimport { ObserveSlotPresence } from '@spectrum-web-components/shared/src/observe-slot-presence.js';\n\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-chevron100.js';\n\nimport styles from './picker-button.css.js';\n\nconst chevronClass = {\n s: 'spectrum-UIIcon-ChevronDown75',\n m: 'spectrum-UIIcon-ChevronDown100',\n l: 'spectrum-UIIcon-ChevronDown200',\n xl: 'spectrum-UIIcon-ChevronDown300',\n};\n\n/**\n * @element sp-picker-button\n */\nexport class PickerButton extends SizedMixin(\n ObserveSlotPresence(ButtonBase, '[slot=\"label\"]')\n) {\n public static override get styles(): CSSResultArray {\n return [styles, chevronStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n invalid = false;\n\n @property({ reflect: true })\n position: 'left' | 'right' = 'right';\n\n protected get hasText(): boolean {\n return this.slotContentIsPresent;\n }\n\n protected override render(): TemplateResult {\n const rootClasses = {\n root: true,\n uiicononly: !this.hasText,\n textuiicon: this.hasText,\n };\n return html`\n <div class=${classMap(rootClasses)}>\n <div class=\"spectrum-PickerButton-fill\">\n <span\n class=\"spectrum-PickerButton-label is-placeholder\"\n ?hidden=${!this.hasText}\n >\n <slot name=\"label\"></slot>\n </span>\n <slot name=\"icon\">\n <sp-icon-chevron100\n class=\"spectrum-PickerButton-icon spectrum-Icon ${chevronClass[\n this.size as DefaultElementSize\n ]}\"\n ></sp-icon-chevron100>\n </slot>\n </div>\n </div>\n `;\n }\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;AAWA;AAAA,EAGE;AAAA,EACA;AAAA,OAEK;AACP,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,OAAO,mBAAmB;AAC1B,SAAS,2BAA2B;AAEpC,OAAO;AAEP,OAAO,YAAY;AAEnB,MAAM,eAAe;AAAA,EACnB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AACN;AAKO,aAAM,qBAAqB;AAAA,EAChC,oBAAoB,YAAY,gBAAgB;AAClD,EAAE;AAAA,EAFK;AAAA;AAQL,mBAAU;AAGV,oBAA6B;AAAA;AAAA,EAR7B,WAA2B,SAAyB;AAClD,WAAO,CAAC,QAAQ,aAAa;AAAA,EAC/B;AAAA,EAQA,IAAc,UAAmB;AAC/B,WAAO,KAAK;AAAA,EACd;AAAA,EAEmB,SAAyB;AAC1C,UAAM,cAAc;AAAA,MAClB,MAAM;AAAA,MACN,YAAY,CAAC,KAAK;AAAA,MAClB,YAAY,KAAK;AAAA,IACnB;AACA,WAAO;AAAA,mBACQ,SAAS,WAAW,CAAC;AAAA;AAAA;AAAA;AAAA,sBAIlB,CAAC,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gEAM6B,aAChD,KAAK,IACP,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMb;AACF;AAnCE;AAAA,EADC,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAP/B,aAQX;AAGA;AAAA,EADC,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAVhB,aAWX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/PickerButton.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["PickerButton.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {\n CSSResultArray,\n DefaultElementSize,\n html,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { classMap } from '@spectrum-web-components/base/src/directives.js';\nimport { ButtonBase } from '@spectrum-web-components/button/src/ButtonBase.js';\nimport chevronStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';\nimport { ObserveSlotPresence } from '@spectrum-web-components/shared/src/observe-slot-presence.js';\n\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-chevron100.js';\n\nimport styles from './picker-button.css.js';\n\nconst chevronClass = {\n s: 'spectrum-UIIcon-ChevronDown75',\n m: 'spectrum-UIIcon-ChevronDown100',\n l: 'spectrum-UIIcon-ChevronDown200',\n xl: 'spectrum-UIIcon-ChevronDown300',\n};\n\n/**\n * @element sp-picker-button\n */\nexport class PickerButton extends SizedMixin(\n ObserveSlotPresence(ButtonBase, '[slot=\"label\"]')\n) {\n public static override get styles(): CSSResultArray {\n return [styles, chevronStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n invalid = false;\n\n @property({ reflect: true })\n position: 'left' | 'right' = 'right';\n\n protected get hasText(): boolean {\n return this.slotContentIsPresent;\n }\n\n protected override render(): TemplateResult {\n const rootClasses = {\n root: true,\n uiicononly: !this.hasText,\n textuiicon: this.hasText,\n };\n return html`\n <div class=${classMap(rootClasses)}>\n <div class=\"spectrum-PickerButton-fill\">\n <span\n class=\"spectrum-PickerButton-label is-placeholder\"\n ?hidden=${!this.hasText}\n >\n <slot name=\"label\"></slot>\n </span>\n <slot name=\"icon\">\n <sp-icon-chevron100\n class=\"spectrum-PickerButton-icon spectrum-Icon ${chevronClass[\n this.size as DefaultElementSize\n ]}\"\n ></sp-icon-chevron100>\n </slot>\n </div>\n </div>\n `;\n }\n}\n"],
|
|
5
5
|
"mappings": "qNAWA,OAGE,QAAAA,EACA,cAAAC,MAEK,gCACP,OAAS,YAAAC,MAAgB,kDACzB,OAAS,YAAAC,MAAgB,kDACzB,OAAS,cAAAC,MAAkB,oDAC3B,OAAOC,MAAmB,iEAC1B,OAAS,uBAAAC,MAA2B,+DAEpC,MAAO,gEAEP,OAAOC,MAAY,yBAEnB,MAAMC,EAAe,CACnB,EAAG,gCACH,EAAG,iCACH,EAAG,iCACH,GAAI,gCACN,EAKO,aAAM,qBAAqBP,EAChCK,EAAoBF,EAAY,gBAAgB,CAClD,CAAE,CAFK,kCAQL,aAAU,GAGV,cAA6B,QAR7B,WAA2B,QAAyB,CAClD,MAAO,CAACG,EAAQF,CAAa,CAC/B,CAQA,IAAc,SAAmB,CAC/B,OAAO,KAAK,oBACd,CAEmB,QAAyB,CAC1C,MAAMI,EAAc,CAClB,KAAM,GACN,WAAY,CAAC,KAAK,QAClB,WAAY,KAAK,OACnB,EACA,OAAOT;AAAA,mBACQG,EAASM,CAAW,CAAC;AAAA;AAAA;AAAA;AAAA,sBAIlB,CAAC,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gEAM6BD,EAChD,KAAK,IACP,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,KAMb,CACF,CAnCEE,EAAA,CADCR,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAP/B,aAQX,uBAGAQ,EAAA,CADCR,EAAS,CAAE,QAAS,EAAK,CAAC,GAVhB,aAWX",
|
|
6
6
|
"names": ["html", "SizedMixin", "property", "classMap", "ButtonBase", "chevronStyles", "ObserveSlotPresence", "styles", "chevronClass", "rootClasses", "__decorateClass"]
|
|
7
7
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Adobe. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
package/src/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport * from './PickerButton.dev.js'\n"],
|
|
5
5
|
"mappings": ";AAWA,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport * from './PickerButton.js';\n"],
|
|
5
5
|
"mappings": "aAWA,WAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|