@spectrum-web-components/button 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/custom-elements.json
CHANGED
|
@@ -74,11 +74,19 @@
|
|
|
74
74
|
"slots": [
|
|
75
75
|
{
|
|
76
76
|
"description": "text label of the Button",
|
|
77
|
-
"name": ""
|
|
77
|
+
"name": "",
|
|
78
|
+
"inheritedFrom": {
|
|
79
|
+
"name": "ButtonBase",
|
|
80
|
+
"module": "src/ButtonBase.ts"
|
|
81
|
+
}
|
|
78
82
|
},
|
|
79
83
|
{
|
|
80
84
|
"description": "The icon to use for Button",
|
|
81
|
-
"name": "icon"
|
|
85
|
+
"name": "icon",
|
|
86
|
+
"inheritedFrom": {
|
|
87
|
+
"name": "ButtonBase",
|
|
88
|
+
"module": "src/ButtonBase.ts"
|
|
89
|
+
}
|
|
82
90
|
}
|
|
83
91
|
],
|
|
84
92
|
"members": [
|
|
@@ -795,11 +803,19 @@
|
|
|
795
803
|
"slots": [
|
|
796
804
|
{
|
|
797
805
|
"description": "text label of the Clear Button",
|
|
798
|
-
"name": ""
|
|
806
|
+
"name": "",
|
|
807
|
+
"inheritedFrom": {
|
|
808
|
+
"name": "ButtonBase",
|
|
809
|
+
"module": "src/ButtonBase.ts"
|
|
810
|
+
}
|
|
799
811
|
},
|
|
800
812
|
{
|
|
801
813
|
"description": "The icon to use for Clear Button",
|
|
802
|
-
"name": "icon"
|
|
814
|
+
"name": "icon",
|
|
815
|
+
"inheritedFrom": {
|
|
816
|
+
"name": "ButtonBase",
|
|
817
|
+
"module": "src/ButtonBase.ts"
|
|
818
|
+
}
|
|
803
819
|
}
|
|
804
820
|
],
|
|
805
821
|
"members": [
|
|
@@ -1139,11 +1155,19 @@
|
|
|
1139
1155
|
"slots": [
|
|
1140
1156
|
{
|
|
1141
1157
|
"description": "text label of the Close Button",
|
|
1142
|
-
"name": ""
|
|
1158
|
+
"name": "",
|
|
1159
|
+
"inheritedFrom": {
|
|
1160
|
+
"name": "ButtonBase",
|
|
1161
|
+
"module": "src/ButtonBase.ts"
|
|
1162
|
+
}
|
|
1143
1163
|
},
|
|
1144
1164
|
{
|
|
1145
1165
|
"description": "The icon to use for Close Button",
|
|
1146
|
-
"name": "icon"
|
|
1166
|
+
"name": "icon",
|
|
1167
|
+
"inheritedFrom": {
|
|
1168
|
+
"name": "ButtonBase",
|
|
1169
|
+
"module": "src/ButtonBase.ts"
|
|
1170
|
+
}
|
|
1147
1171
|
}
|
|
1148
1172
|
],
|
|
1149
1173
|
"members": [
|
|
@@ -1501,6 +1525,24 @@
|
|
|
1501
1525
|
"name": "ButtonBase",
|
|
1502
1526
|
"module": "/src/ButtonBase.js"
|
|
1503
1527
|
},
|
|
1528
|
+
"slots": [
|
|
1529
|
+
{
|
|
1530
|
+
"description": "text content to be displayed in the Button element",
|
|
1531
|
+
"name": "",
|
|
1532
|
+
"inheritedFrom": {
|
|
1533
|
+
"name": "ButtonBase",
|
|
1534
|
+
"module": "src/ButtonBase.ts"
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
"description": "icon element(s) to display at the start of the button",
|
|
1539
|
+
"name": "icon",
|
|
1540
|
+
"inheritedFrom": {
|
|
1541
|
+
"name": "ButtonBase",
|
|
1542
|
+
"module": "src/ButtonBase.ts"
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
],
|
|
1504
1546
|
"attributes": [
|
|
1505
1547
|
{
|
|
1506
1548
|
"name": "active",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/button",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"lit-html"
|
|
83
83
|
],
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@spectrum-web-components/base": "^0.42.
|
|
86
|
-
"@spectrum-web-components/clear-button": "^0.42.
|
|
87
|
-
"@spectrum-web-components/close-button": "^0.42.
|
|
88
|
-
"@spectrum-web-components/icon": "^0.42.
|
|
89
|
-
"@spectrum-web-components/icons-ui": "^0.42.
|
|
90
|
-
"@spectrum-web-components/progress-circle": "^0.42.
|
|
91
|
-
"@spectrum-web-components/shared": "^0.42.
|
|
85
|
+
"@spectrum-web-components/base": "^0.42.3",
|
|
86
|
+
"@spectrum-web-components/clear-button": "^0.42.3",
|
|
87
|
+
"@spectrum-web-components/close-button": "^0.42.3",
|
|
88
|
+
"@spectrum-web-components/icon": "^0.42.3",
|
|
89
|
+
"@spectrum-web-components/icons-ui": "^0.42.3",
|
|
90
|
+
"@spectrum-web-components/progress-circle": "^0.42.3",
|
|
91
|
+
"@spectrum-web-components/shared": "^0.42.3"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@spectrum-css/button": "^12.0.2"
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"./sp-*.js",
|
|
100
100
|
"./**/*.dev.js"
|
|
101
101
|
],
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
|
|
103
103
|
}
|
package/src/Button.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CSSResultArray, PropertyValues, TemplateResult } from '@spectrum-web-components/base';
|
|
2
2
|
import { ButtonBase } from './ButtonBase.js';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type DeprecatedButtonVariants = 'cta' | 'overBackground';
|
|
4
|
+
export type ButtonStatics = 'white' | 'black';
|
|
5
|
+
export type ButtonVariants = 'accent' | 'primary' | 'secondary' | 'negative' | ButtonStatics | DeprecatedButtonVariants;
|
|
6
6
|
export declare const VALID_VARIANTS: string[];
|
|
7
7
|
export declare const VALID_STATICS: string[];
|
|
8
|
-
export
|
|
8
|
+
export type ButtonTreatments = 'fill' | 'outline';
|
|
9
9
|
declare const Button_base: typeof ButtonBase & {
|
|
10
10
|
new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
|
|
11
11
|
prototype: import("@spectrum-web-components/base").SizedElementInterface;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import { fixture } from "@open-wc/testing";
|
|
3
2
|
import { Default } from "../stories/button-accent-fill.stories.js";
|
|
4
3
|
import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
|
|
5
|
-
testForMemoryLeaks(
|
|
4
|
+
testForMemoryLeaks(Default({}));
|
|
6
5
|
//# sourceMappingURL=button-memory.test.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-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 {
|
|
5
|
-
"mappings": ";AAYA,SAAS,eAAe;AACxB,SAAS,
|
|
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/button-accent-fill.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,CAAC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|