@douyinfe/semi-foundation 2.6.0-beta.0 → 2.6.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/button/constants.ts +2 -2
- package/lib/cjs/button/constants.d.ts +9 -1
- package/lib/cjs/tag/tag.css +1 -0
- package/lib/cjs/tag/tag.scss +1 -0
- package/lib/es/button/constants.d.ts +9 -1
- package/lib/es/tag/tag.css +1 -0
- package/lib/es/tag/tag.scss +1 -0
- package/package.json +3 -3
- package/tag/tag.scss +1 -0
package/button/constants.ts
CHANGED
|
@@ -4,7 +4,7 @@ const cssClasses = {
|
|
|
4
4
|
PREFIX: `${BASE_CLASS_PREFIX}-button`,
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
const strings
|
|
7
|
+
const strings = {
|
|
8
8
|
sizes: ['default', 'small', 'large'],
|
|
9
9
|
iconPositions: ['left', 'right'],
|
|
10
10
|
htmlTypes: ['button', 'reset', 'submit'],
|
|
@@ -12,7 +12,7 @@ const strings: Record<string, any> = {
|
|
|
12
12
|
themes: ['solid', 'borderless', 'light'],
|
|
13
13
|
DEFAULT_ICON_SIZE: 'default',
|
|
14
14
|
DEFAULT_ICON_POSITION: 'left',
|
|
15
|
-
};
|
|
15
|
+
} as const;
|
|
16
16
|
|
|
17
17
|
const numbers = {};
|
|
18
18
|
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
declare const cssClasses: {
|
|
2
2
|
PREFIX: string;
|
|
3
3
|
};
|
|
4
|
-
declare const strings:
|
|
4
|
+
declare const strings: {
|
|
5
|
+
readonly sizes: readonly ["default", "small", "large"];
|
|
6
|
+
readonly iconPositions: readonly ["left", "right"];
|
|
7
|
+
readonly htmlTypes: readonly ["button", "reset", "submit"];
|
|
8
|
+
readonly btnTypes: readonly ["primary", "secondary", "tertiary", "warning", "danger"];
|
|
9
|
+
readonly themes: readonly ["solid", "borderless", "light"];
|
|
10
|
+
readonly DEFAULT_ICON_SIZE: "default";
|
|
11
|
+
readonly DEFAULT_ICON_POSITION: "left";
|
|
12
|
+
};
|
|
5
13
|
declare const numbers: {};
|
|
6
14
|
export { cssClasses, strings, numbers };
|
package/lib/cjs/tag/tag.css
CHANGED
package/lib/cjs/tag/tag.scss
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
declare const cssClasses: {
|
|
2
2
|
PREFIX: string;
|
|
3
3
|
};
|
|
4
|
-
declare const strings:
|
|
4
|
+
declare const strings: {
|
|
5
|
+
readonly sizes: readonly ["default", "small", "large"];
|
|
6
|
+
readonly iconPositions: readonly ["left", "right"];
|
|
7
|
+
readonly htmlTypes: readonly ["button", "reset", "submit"];
|
|
8
|
+
readonly btnTypes: readonly ["primary", "secondary", "tertiary", "warning", "danger"];
|
|
9
|
+
readonly themes: readonly ["solid", "borderless", "light"];
|
|
10
|
+
readonly DEFAULT_ICON_SIZE: "default";
|
|
11
|
+
readonly DEFAULT_ICON_POSITION: "left";
|
|
12
|
+
};
|
|
5
13
|
declare const numbers: {};
|
|
6
14
|
export { cssClasses, strings, numbers };
|
package/lib/es/tag/tag.css
CHANGED
package/lib/es/tag/tag.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.6.0
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@babel/runtime-corejs3": "^7.15.4",
|
|
11
|
-
"@douyinfe/semi-animation": "2.6.0
|
|
11
|
+
"@douyinfe/semi-animation": "2.6.0",
|
|
12
12
|
"async-validator": "^3.5.0",
|
|
13
13
|
"classnames": "^2.2.6",
|
|
14
14
|
"date-fns": "^2.9.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"*.scss",
|
|
25
25
|
"*.css"
|
|
26
26
|
],
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "d3a844137fb02b81a93320eb5c183636b05a4a68",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
30
30
|
"@babel/plugin-transform-runtime": "^7.15.8",
|