@uzum-tech/ui 2.3.7 → 3.0.0-alpha.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/dist/index.js +811 -215
- package/dist/index.mjs +807 -216
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/button-v3/index.d.ts +5 -0
- package/es/_internal/button-v3/index.mjs +3 -0
- package/es/_internal/button-v3/src/ButtonV3.d.ts +533 -0
- package/es/_internal/button-v3/src/ButtonV3.mjs +200 -0
- package/es/_internal/button-v3/src/interface.d.ts +281 -0
- package/es/_internal/button-v3/src/interface.mjs +29 -0
- package/es/_internal/button-v3/src/styles/index.cssr.d.ts +2 -0
- package/es/_internal/button-v3/src/styles/index.cssr.mjs +119 -0
- package/es/_internal/button-v3/src/utils.d.ts +10 -0
- package/es/_internal/button-v3/src/utils.mjs +52 -0
- package/es/_internal/button-v3/styles/_common.d.ts +19 -0
- package/es/_internal/button-v3/styles/_common.mjs +18 -0
- package/es/_internal/button-v3/styles/dark.d.ts +3 -0
- package/es/_internal/button-v3/styles/dark.mjs +8 -0
- package/es/_internal/button-v3/styles/index.d.ts +3 -0
- package/es/_internal/button-v3/styles/index.mjs +2 -0
- package/es/_internal/button-v3/styles/light.d.ts +81 -0
- package/es/_internal/button-v3/styles/light.mjs +91 -0
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.mjs +1 -0
- package/es/_styles/common/dark.mjs +12 -0
- package/es/_styles/common/light.d.ts +12 -0
- package/es/_styles/common/light.mjs +12 -0
- package/es/button-v3/index.d.ts +4 -0
- package/es/button-v3/index.mjs +2 -0
- package/es/button-v3/src/ButtonV3.d.ts +525 -0
- package/es/button-v3/src/ButtonV3.mjs +17 -0
- package/es/components.d.ts +524 -2
- package/es/components.mjs +185 -180
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/dialog/src/DialogProvider.d.ts +48 -0
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/theme-editor/src/ThemeEditor.d.ts +12 -0
- package/es/themes/dark.mjs +2 -0
- package/es/themes/light.mjs +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/button-v3/index.d.ts +5 -0
- package/lib/_internal/button-v3/index.js +13 -0
- package/lib/_internal/button-v3/src/ButtonV3.d.ts +533 -0
- package/lib/_internal/button-v3/src/ButtonV3.js +170 -0
- package/lib/_internal/button-v3/src/interface.d.ts +281 -0
- package/lib/_internal/button-v3/src/interface.js +20 -0
- package/lib/_internal/button-v3/src/styles/index.cssr.d.ts +2 -0
- package/lib/_internal/button-v3/src/styles/index.cssr.js +124 -0
- package/lib/_internal/button-v3/src/utils.d.ts +10 -0
- package/lib/_internal/button-v3/src/utils.js +56 -0
- package/lib/_internal/button-v3/styles/_common.d.ts +19 -0
- package/lib/_internal/button-v3/styles/_common.js +20 -0
- package/lib/_internal/button-v3/styles/dark.d.ts +3 -0
- package/lib/_internal/button-v3/styles/dark.js +10 -0
- package/lib/_internal/button-v3/styles/index.d.ts +3 -0
- package/lib/_internal/button-v3/styles/index.js +10 -0
- package/lib/_internal/button-v3/styles/light.d.ts +81 -0
- package/lib/_internal/button-v3/styles/light.js +19 -0
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +12 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/button-v3/index.d.ts +4 -0
- package/lib/button-v3/index.js +13 -0
- package/lib/button-v3/src/ButtonV3.d.ts +525 -0
- package/lib/button-v3/src/ButtonV3.js +17 -0
- package/lib/components.d.ts +524 -2
- package/lib/components.js +16 -8
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/dialog/src/DialogProvider.d.ts +48 -0
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +195 -193
- package/lib/theme-editor/src/ThemeEditor.d.ts +12 -0
- package/lib/themes/dark.js +202 -200
- package/lib/themes/light.js +202 -200
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +2 -0
- package/web-types.json +14 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
heightSmall: string;
|
|
3
|
+
heightMedium: string;
|
|
4
|
+
heightLarge: string;
|
|
5
|
+
paddingSmall: string;
|
|
6
|
+
paddingMedium: string;
|
|
7
|
+
paddingLarge: string;
|
|
8
|
+
borderRadiusSmall: string;
|
|
9
|
+
borderRadiusMedium: string;
|
|
10
|
+
borderRadiusLarge: string;
|
|
11
|
+
iconSizeSmall: string;
|
|
12
|
+
iconSizeMedium: string;
|
|
13
|
+
iconSizeLarge: string;
|
|
14
|
+
iconMargin: string;
|
|
15
|
+
borderWidth: string;
|
|
16
|
+
focusRingWidth: string;
|
|
17
|
+
spinnerStrokeWidth: string;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
heightSmall: '36px',
|
|
3
|
+
heightMedium: '48px',
|
|
4
|
+
heightLarge: '56px',
|
|
5
|
+
paddingSmall: '0 12px',
|
|
6
|
+
paddingMedium: '0 16px',
|
|
7
|
+
paddingLarge: '0 24px',
|
|
8
|
+
borderRadiusSmall: '8px',
|
|
9
|
+
borderRadiusMedium: '12px',
|
|
10
|
+
borderRadiusLarge: '16px',
|
|
11
|
+
iconSizeSmall: '16px',
|
|
12
|
+
iconSizeMedium: '20px',
|
|
13
|
+
iconSizeLarge: '24px',
|
|
14
|
+
iconMargin: '8px',
|
|
15
|
+
borderWidth: '1px',
|
|
16
|
+
focusRingWidth: '2px',
|
|
17
|
+
spinnerStrokeWidth: '3.7px'
|
|
18
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Theme } from '../../../_mixins';
|
|
2
|
+
import type { ThemeCommonVars } from '../../../_styles/common';
|
|
3
|
+
export declare function self(vars: ThemeCommonVars): {
|
|
4
|
+
fontFamily: string;
|
|
5
|
+
fontSize: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
fontWeight: string;
|
|
8
|
+
letterSpacing: string;
|
|
9
|
+
pressedOverlayColor: string;
|
|
10
|
+
focusRingColor: string;
|
|
11
|
+
textColorDisabled: string;
|
|
12
|
+
colorPrimary: string;
|
|
13
|
+
colorPrimaryHover: string;
|
|
14
|
+
textColorPrimary: string;
|
|
15
|
+
textColorPrimaryHover: string;
|
|
16
|
+
borderColorPrimary: string;
|
|
17
|
+
colorPrimaryDisabled: string;
|
|
18
|
+
borderColorPrimaryDisabled: string;
|
|
19
|
+
colorPrimaryNegative: string;
|
|
20
|
+
colorPrimaryNegativeHover: string;
|
|
21
|
+
textColorPrimaryNegative: string;
|
|
22
|
+
textColorPrimaryNegativeHover: string;
|
|
23
|
+
borderColorPrimaryNegative: string;
|
|
24
|
+
colorPrimaryNegativeDisabled: string;
|
|
25
|
+
borderColorPrimaryNegativeDisabled: string;
|
|
26
|
+
colorSecondary: string;
|
|
27
|
+
colorSecondaryHover: string;
|
|
28
|
+
textColorSecondary: string;
|
|
29
|
+
textColorSecondaryHover: string;
|
|
30
|
+
borderColorSecondary: string;
|
|
31
|
+
colorSecondaryDisabled: string;
|
|
32
|
+
borderColorSecondaryDisabled: string;
|
|
33
|
+
colorTertiary: string;
|
|
34
|
+
colorTertiaryHover: string;
|
|
35
|
+
textColorTertiary: string;
|
|
36
|
+
textColorTertiaryHover: string;
|
|
37
|
+
borderColorTertiary: string;
|
|
38
|
+
colorTertiaryDisabled: string;
|
|
39
|
+
borderColorTertiaryDisabled: string;
|
|
40
|
+
colorTertiaryNegative: string;
|
|
41
|
+
colorTertiaryNegativeHover: string;
|
|
42
|
+
textColorTertiaryNegative: string;
|
|
43
|
+
textColorTertiaryNegativeHover: string;
|
|
44
|
+
borderColorTertiaryNegative: string;
|
|
45
|
+
colorTertiaryNegativeDisabled: string;
|
|
46
|
+
borderColorTertiaryNegativeDisabled: string;
|
|
47
|
+
colorGhost: string;
|
|
48
|
+
colorGhostHover: string;
|
|
49
|
+
textColorGhost: string;
|
|
50
|
+
textColorGhostHover: string;
|
|
51
|
+
borderColorGhost: string;
|
|
52
|
+
colorGhostDisabled: string;
|
|
53
|
+
borderColorGhostDisabled: string;
|
|
54
|
+
colorGhostNegative: string;
|
|
55
|
+
colorGhostNegativeHover: string;
|
|
56
|
+
textColorGhostNegative: string;
|
|
57
|
+
textColorGhostNegativeHover: string;
|
|
58
|
+
borderColorGhostNegative: string;
|
|
59
|
+
colorGhostNegativeDisabled: string;
|
|
60
|
+
borderColorGhostNegativeDisabled: string;
|
|
61
|
+
heightSmall: string;
|
|
62
|
+
heightMedium: string;
|
|
63
|
+
heightLarge: string;
|
|
64
|
+
paddingSmall: string;
|
|
65
|
+
paddingMedium: string;
|
|
66
|
+
paddingLarge: string;
|
|
67
|
+
borderRadiusSmall: string;
|
|
68
|
+
borderRadiusMedium: string;
|
|
69
|
+
borderRadiusLarge: string;
|
|
70
|
+
iconSizeSmall: string;
|
|
71
|
+
iconSizeMedium: string;
|
|
72
|
+
iconSizeLarge: string;
|
|
73
|
+
iconMargin: string;
|
|
74
|
+
borderWidth: string;
|
|
75
|
+
focusRingWidth: string;
|
|
76
|
+
spinnerStrokeWidth: string;
|
|
77
|
+
};
|
|
78
|
+
declare const buttonV3Light: Theme<'ButtonV3', ButtonV3ThemeVars>;
|
|
79
|
+
export default buttonV3Light;
|
|
80
|
+
export type ButtonV3ThemeVars = ReturnType<typeof self>;
|
|
81
|
+
export type ButtonV3Theme = typeof buttonV3Light;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { commonLight } from "../../../_styles/common/index.mjs";
|
|
2
|
+
import commonVariables from "./_common.mjs";
|
|
3
|
+
const TRANSPARENT = 'transparent';
|
|
4
|
+
export function self(vars) {
|
|
5
|
+
const {
|
|
6
|
+
fontFamilyWixMadeforDisplay,
|
|
7
|
+
fontBodyMedium,
|
|
8
|
+
lineHeightBodyMedium,
|
|
9
|
+
fontWeightStrong,
|
|
10
|
+
textPrimary,
|
|
11
|
+
staticBlack,
|
|
12
|
+
staticWhite,
|
|
13
|
+
accentBrand,
|
|
14
|
+
accentBrandHover,
|
|
15
|
+
accentError,
|
|
16
|
+
accentErrorHover,
|
|
17
|
+
accentErrorSubtle,
|
|
18
|
+
accentNeutral,
|
|
19
|
+
accentNeutralHover,
|
|
20
|
+
accentBorder,
|
|
21
|
+
accentFocusRing,
|
|
22
|
+
accentDisabled,
|
|
23
|
+
accentDisabledContent,
|
|
24
|
+
accentPressedOverlay
|
|
25
|
+
} = vars;
|
|
26
|
+
return Object.assign(Object.assign({}, commonVariables), {
|
|
27
|
+
fontFamily: fontFamilyWixMadeforDisplay,
|
|
28
|
+
fontSize: fontBodyMedium,
|
|
29
|
+
lineHeight: lineHeightBodyMedium,
|
|
30
|
+
fontWeight: fontWeightStrong,
|
|
31
|
+
letterSpacing: '0.1px',
|
|
32
|
+
pressedOverlayColor: accentPressedOverlay,
|
|
33
|
+
focusRingColor: accentFocusRing,
|
|
34
|
+
textColorDisabled: accentDisabledContent,
|
|
35
|
+
colorPrimary: accentBrand,
|
|
36
|
+
colorPrimaryHover: accentBrandHover,
|
|
37
|
+
textColorPrimary: staticWhite,
|
|
38
|
+
textColorPrimaryHover: staticWhite,
|
|
39
|
+
borderColorPrimary: TRANSPARENT,
|
|
40
|
+
colorPrimaryDisabled: accentDisabled,
|
|
41
|
+
borderColorPrimaryDisabled: TRANSPARENT,
|
|
42
|
+
colorPrimaryNegative: accentError,
|
|
43
|
+
colorPrimaryNegativeHover: accentErrorHover,
|
|
44
|
+
textColorPrimaryNegative: staticWhite,
|
|
45
|
+
textColorPrimaryNegativeHover: staticWhite,
|
|
46
|
+
borderColorPrimaryNegative: TRANSPARENT,
|
|
47
|
+
colorPrimaryNegativeDisabled: accentDisabled,
|
|
48
|
+
borderColorPrimaryNegativeDisabled: TRANSPARENT,
|
|
49
|
+
colorSecondary: accentNeutral,
|
|
50
|
+
colorSecondaryHover: accentNeutralHover,
|
|
51
|
+
textColorSecondary: staticBlack,
|
|
52
|
+
textColorSecondaryHover: staticBlack,
|
|
53
|
+
borderColorSecondary: accentBorder,
|
|
54
|
+
colorSecondaryDisabled: accentDisabled,
|
|
55
|
+
borderColorSecondaryDisabled: accentNeutral,
|
|
56
|
+
colorTertiary: TRANSPARENT,
|
|
57
|
+
colorTertiaryHover: accentNeutral,
|
|
58
|
+
textColorTertiary: textPrimary,
|
|
59
|
+
textColorTertiaryHover: staticBlack,
|
|
60
|
+
borderColorTertiary: TRANSPARENT,
|
|
61
|
+
colorTertiaryDisabled: TRANSPARENT,
|
|
62
|
+
borderColorTertiaryDisabled: TRANSPARENT,
|
|
63
|
+
colorTertiaryNegative: TRANSPARENT,
|
|
64
|
+
colorTertiaryNegativeHover: accentErrorSubtle,
|
|
65
|
+
textColorTertiaryNegative: accentError,
|
|
66
|
+
textColorTertiaryNegativeHover: accentError,
|
|
67
|
+
borderColorTertiaryNegative: TRANSPARENT,
|
|
68
|
+
colorTertiaryNegativeDisabled: TRANSPARENT,
|
|
69
|
+
borderColorTertiaryNegativeDisabled: TRANSPARENT,
|
|
70
|
+
colorGhost: TRANSPARENT,
|
|
71
|
+
colorGhostHover: TRANSPARENT,
|
|
72
|
+
textColorGhost: accentBrand,
|
|
73
|
+
textColorGhostHover: accentBrandHover,
|
|
74
|
+
borderColorGhost: TRANSPARENT,
|
|
75
|
+
colorGhostDisabled: TRANSPARENT,
|
|
76
|
+
borderColorGhostDisabled: TRANSPARENT,
|
|
77
|
+
colorGhostNegative: TRANSPARENT,
|
|
78
|
+
colorGhostNegativeHover: TRANSPARENT,
|
|
79
|
+
textColorGhostNegative: accentError,
|
|
80
|
+
textColorGhostNegativeHover: accentErrorHover,
|
|
81
|
+
borderColorGhostNegative: TRANSPARENT,
|
|
82
|
+
colorGhostNegativeDisabled: TRANSPARENT,
|
|
83
|
+
borderColorGhostNegativeDisabled: TRANSPARENT
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
const buttonV3Light = {
|
|
87
|
+
name: 'ButtonV3',
|
|
88
|
+
common: commonLight,
|
|
89
|
+
self
|
|
90
|
+
};
|
|
91
|
+
export default buttonV3Light;
|
package/es/_internal/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as UBaseAccountOption } from './account-option';
|
|
2
|
+
export { buttonV3Props, InternalUButtonV3 } from './button-v3';
|
|
3
|
+
export type * from './button-v3';
|
|
2
4
|
export { checkboxBaseProps, checkboxGroupInjectionKey, useCheckbox } from './checkbox';
|
|
3
5
|
export type { CheckboxBaseProps, CheckboxInst, OnUpdateChecked, OnUpdateCheckedImpl, UseCheckbox } from './checkbox';
|
|
4
6
|
export { default as UBaseClear } from './clear';
|
package/es/_internal/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as UBaseAccountOption } from "./account-option/index.mjs";
|
|
2
|
+
export { buttonV3Props, InternalUButtonV3 } from "./button-v3/index.mjs";
|
|
2
3
|
export { checkboxBaseProps, checkboxGroupInjectionKey, useCheckbox } from "./checkbox/index.mjs";
|
|
3
4
|
export { default as UBaseClear } from "./clear/index.mjs";
|
|
4
5
|
export { UBaseClose } from "./close/index.mjs";
|
|
@@ -34,6 +34,18 @@ const derived = Object.assign(Object.assign({
|
|
|
34
34
|
brandQuinary300: '#F19EDA',
|
|
35
35
|
brandQuinary600: '#EA3E68',
|
|
36
36
|
brandQuinary100: '#FAD6D9',
|
|
37
|
+
accentBrand: '#7000FF',
|
|
38
|
+
accentBrandHover: '#5D46A6',
|
|
39
|
+
accentError: '#F24835',
|
|
40
|
+
accentErrorHover: '#A82C1E',
|
|
41
|
+
accentErrorSubtle: '#FFFFFF',
|
|
42
|
+
accentNeutral: '#F3F4F6',
|
|
43
|
+
accentNeutralHover: '#E8EAED',
|
|
44
|
+
accentFocusRing: '#CDD1D5',
|
|
45
|
+
accentBorder: '#DDE0E3',
|
|
46
|
+
accentDisabled: '#DDE0E3',
|
|
47
|
+
accentDisabledContent: '#B2B8BC',
|
|
48
|
+
accentPressedOverlay: 'rgba(0, 0, 0, 0.12)',
|
|
37
49
|
surfacePrimary: '#101010',
|
|
38
50
|
surfaceSecondary: '#1D1D1D',
|
|
39
51
|
containerPrimary: '#1D1D1D',
|
|
@@ -31,6 +31,18 @@ declare const derived: {
|
|
|
31
31
|
brandQuinary300: string;
|
|
32
32
|
brandQuinary600: string;
|
|
33
33
|
brandQuinary100: string;
|
|
34
|
+
accentBrand: string;
|
|
35
|
+
accentBrandHover: string;
|
|
36
|
+
accentError: string;
|
|
37
|
+
accentErrorHover: string;
|
|
38
|
+
accentErrorSubtle: string;
|
|
39
|
+
accentNeutral: string;
|
|
40
|
+
accentNeutralHover: string;
|
|
41
|
+
accentFocusRing: string;
|
|
42
|
+
accentBorder: string;
|
|
43
|
+
accentDisabled: string;
|
|
44
|
+
accentDisabledContent: string;
|
|
45
|
+
accentPressedOverlay: string;
|
|
34
46
|
surfacePrimary: string;
|
|
35
47
|
surfaceSecondary: string;
|
|
36
48
|
containerPrimary: string;
|
|
@@ -34,6 +34,18 @@ const derived = Object.assign(Object.assign({
|
|
|
34
34
|
brandQuinary300: '#F19EDA',
|
|
35
35
|
brandQuinary600: '#EA3E68',
|
|
36
36
|
brandQuinary100: '#FAD6D9',
|
|
37
|
+
accentBrand: '#7000FF',
|
|
38
|
+
accentBrandHover: '#5D46A6',
|
|
39
|
+
accentError: '#F24835',
|
|
40
|
+
accentErrorHover: '#A82C1E',
|
|
41
|
+
accentErrorSubtle: '#FFFFFF',
|
|
42
|
+
accentNeutral: '#F3F4F6',
|
|
43
|
+
accentNeutralHover: '#E8EAED',
|
|
44
|
+
accentFocusRing: '#CDD1D5',
|
|
45
|
+
accentBorder: '#DDE0E3',
|
|
46
|
+
accentDisabled: '#DDE0E3',
|
|
47
|
+
accentDisabledContent: '#B2B8BC',
|
|
48
|
+
accentPressedOverlay: 'rgba(0, 0, 0, 0.12)',
|
|
37
49
|
surfacePrimary: '#fff',
|
|
38
50
|
surfaceSecondary: '#1d1d1d',
|
|
39
51
|
containerPrimary: '#fff',
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { buttonV3Dark, buttonV3Light } from '../_internal/button-v3';
|
|
2
|
+
export type * from '../_internal/button-v3/src/interface';
|
|
3
|
+
export type { ButtonV3Theme, ButtonV3ThemeVars } from '../_internal/button-v3/styles';
|
|
4
|
+
export { buttonV3Props, default as UButtonV3, XButtonV3 as UxButtonV3 } from './src/ButtonV3';
|