@uzum-tech/ui 1.5.1 → 1.5.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/README.md +0 -1
- package/dist/index.js +1333 -869
- package/dist/index.prod.js +3 -3
- package/es/_internal/checkbox/src/use-checkbox.js +3 -3
- package/es/_internal/radio/src/use-radio.js +3 -3
- package/es/_internal/typography/src/styles/text.cssr.js +0 -1
- package/es/_internal/typography/styles/light.js +1 -1
- package/es/_mixins/use-form-item.d.ts +4 -4
- package/es/_mixins/use-form-item.js +4 -4
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +3 -0
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/composable/composables.d.ts +11 -0
- package/es/_utils/composable/composables.js +40 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/uzum/index.d.ts +1 -0
- package/es/_utils/uzum/index.js +1 -0
- package/es/_utils/uzum/value.d.ts +1 -0
- package/es/_utils/uzum/value.js +9 -0
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/alert/styles/light.js +6 -6
- package/es/auto-complete/src/AutoComplete.js +10 -10
- package/es/avatar/src/Avatar.d.ts +6 -0
- package/es/avatar/src/Avatar.js +9 -3
- package/es/card-list/src/CardList.js +1 -1
- package/es/card-list/src/CardListItem.d.ts +13 -0
- package/es/card-list/src/CardListItem.js +11 -4
- package/es/card-list/src/interface.d.ts +1 -0
- package/es/card-list/src/styles/index.cssr.js +6 -6
- package/es/card-list/styles/light.js +2 -2
- package/es/cascader/src/Cascader.js +7 -7
- package/es/checkbox/src/CheckboxGroup.js +9 -9
- package/es/color-picker/src/ColorPicker.js +6 -6
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +8 -0
- package/es/data-table/src/DataTable.js +21 -10
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +6 -5
- package/es/data-table/src/TableParts/Cell.js +85 -23
- package/es/data-table/src/interface.d.ts +13 -6
- package/es/data-table/src/interface.js +1 -1
- package/es/data-table/src/styles/index.cssr.js +5 -3
- package/es/data-table/src/use-mask.d.ts +3 -6
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.js +13 -0
- package/es/date-picker/src/DatePicker.js +7 -7
- package/es/dialog/src/DialogProvider.d.ts +6 -0
- package/es/dynamic-tags/src/DynamicTags.js +3 -3
- package/es/input/src/Input.js +8 -8
- package/es/input-number/src/InputNumber.js +7 -7
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.js +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.js +250 -0
- package/es/input-otp/src/public-types.d.ts +25 -0
- package/es/input-otp/src/public-types.js +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.js +20 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.js +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.js +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.js +3 -0
- package/es/input-otp/styles/light.d.ts +83 -0
- package/es/input-otp/styles/light.js +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.js +5 -0
- package/es/legacy-transfer/src/Transfer.js +3 -3
- package/es/list/src/List.d.ts +41 -55
- package/es/list/src/List.js +6 -10
- package/es/list/src/ListItem.d.ts +84 -25
- package/es/list/src/ListItem.js +120 -98
- package/es/list/src/interface.d.ts +1 -0
- package/es/list/src/props.d.ts +70 -31
- package/es/list/src/props.js +25 -5
- package/es/list/src/styles/index.cssr.js +32 -90
- package/es/list/styles/light.d.ts +5 -8
- package/es/list/styles/light.js +6 -9
- package/es/mention/src/Mention.js +7 -7
- package/es/radio/src/RadioGroup.js +5 -5
- package/es/rate/src/Rate.js +3 -3
- package/es/select/src/Select.js +7 -7
- package/es/slider/src/Slider.js +3 -3
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.js +7 -7
- package/es/tag/src/styles/index.cssr.js +5 -1
- package/es/tag/styles/light.js +2 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/time-picker/src/TimePicker.js +7 -7
- package/es/transfer/src/Transfer.js +3 -3
- package/es/tree-select/src/TreeSelect.js +5 -5
- package/es/upload/src/UploadFile.js +4 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/checkbox/src/use-checkbox.js +3 -3
- package/lib/_internal/radio/src/use-radio.js +3 -3
- package/lib/_internal/typography/src/styles/text.cssr.js +0 -1
- package/lib/_internal/typography/styles/light.js +1 -1
- package/lib/_mixins/use-form-item.d.ts +4 -4
- package/lib/_mixins/use-form-item.js +4 -4
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +3 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/composable/composables.d.ts +11 -0
- package/lib/_utils/composable/composables.js +47 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/uzum/index.d.ts +1 -0
- package/lib/_utils/uzum/index.js +3 -1
- package/lib/_utils/uzum/value.d.ts +1 -0
- package/lib/_utils/uzum/value.js +12 -0
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/alert/styles/light.js +6 -6
- package/lib/auto-complete/src/AutoComplete.js +10 -10
- package/lib/avatar/src/Avatar.d.ts +6 -0
- package/lib/avatar/src/Avatar.js +9 -3
- package/lib/card-list/src/CardList.js +1 -1
- package/lib/card-list/src/CardListItem.d.ts +13 -0
- package/lib/card-list/src/CardListItem.js +11 -4
- package/lib/card-list/src/interface.d.ts +1 -0
- package/lib/card-list/src/styles/index.cssr.js +5 -5
- package/lib/card-list/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.js +7 -7
- package/lib/checkbox/src/CheckboxGroup.js +9 -9
- package/lib/color-picker/src/ColorPicker.js +6 -6
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +8 -0
- package/lib/data-table/src/DataTable.js +21 -10
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +6 -5
- package/lib/data-table/src/TableParts/Cell.js +84 -22
- package/lib/data-table/src/interface.d.ts +13 -6
- package/lib/data-table/src/interface.js +1 -1
- package/lib/data-table/src/styles/index.cssr.js +5 -3
- package/lib/data-table/src/use-mask.d.ts +3 -6
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +14 -1
- package/lib/date-picker/src/DatePicker.js +7 -7
- package/lib/dialog/src/DialogProvider.d.ts +6 -0
- package/lib/dynamic-tags/src/DynamicTags.js +3 -3
- package/lib/input/src/Input.js +8 -8
- package/lib/input-number/src/InputNumber.js +7 -7
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +256 -0
- package/lib/input-otp/src/public-types.d.ts +25 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +25 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +83 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/legacy-transfer/src/Transfer.js +3 -3
- package/lib/list/src/List.d.ts +41 -55
- package/lib/list/src/List.js +6 -10
- package/lib/list/src/ListItem.d.ts +84 -25
- package/lib/list/src/ListItem.js +119 -97
- package/lib/list/src/interface.d.ts +1 -0
- package/lib/list/src/props.d.ts +70 -31
- package/lib/list/src/props.js +25 -5
- package/lib/list/src/styles/index.cssr.js +32 -90
- package/lib/list/styles/light.d.ts +5 -8
- package/lib/list/styles/light.js +6 -9
- package/lib/mention/src/Mention.js +7 -7
- package/lib/radio/src/RadioGroup.js +5 -5
- package/lib/rate/src/Rate.js +3 -3
- package/lib/select/src/Select.js +7 -7
- package/lib/slider/src/Slider.js +3 -3
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +106 -103
- package/lib/switch/src/Switch.js +7 -7
- package/lib/tag/src/styles/index.cssr.js +5 -1
- package/lib/tag/styles/light.js +2 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/time-picker/src/TimePicker.js +7 -7
- package/lib/transfer/src/Transfer.js +3 -3
- package/lib/tree-select/src/TreeSelect.js +5 -5
- package/lib/upload/src/UploadFile.js +4 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +180 -38
|
@@ -4,13 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
-
|
|
7
|
+
// --u-border-radius
|
|
8
|
+
// --u-suffix-size
|
|
9
|
+
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('align-start', `
|
|
10
|
+
align-self: self-start;
|
|
11
|
+
`), (0, cssr_1.cB)('align-center', `
|
|
12
|
+
align-self: center;
|
|
13
|
+
`), (0, cssr_1.cB)('align-end', `
|
|
14
|
+
align-self: self-end;
|
|
15
|
+
`), (0, cssr_1.cB)('list', `
|
|
8
16
|
--u-merged-border-color: var(--u-border-color);
|
|
9
17
|
--u-merged-color: var(--u-color);
|
|
10
18
|
--u-merged-color-focus: var(--u-color-focus);
|
|
11
19
|
--u-merged-color-hover: var(--u-color-hover);
|
|
12
20
|
margin: 0;
|
|
13
|
-
font-size: var(--u-font-size);
|
|
14
21
|
transition:
|
|
15
22
|
background-color .3s var(--u-bezier),
|
|
16
23
|
color .3s var(--u-bezier),
|
|
@@ -21,17 +28,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('list', `
|
|
|
21
28
|
background-color: var(--u-merged-color);
|
|
22
29
|
`, [(0, cssr_1.cM)('clickable', [(0, cssr_1.cB)('list-item', `
|
|
23
30
|
cursor: pointer;
|
|
24
|
-
`)]), (0, cssr_1.cM)('bordered', `
|
|
25
|
-
border: 1px solid var(--u-merged-border-color);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
border-radius: var(--u-border-radius);
|
|
29
|
-
border-bottom-left-radius: 0;
|
|
30
|
-
border-bottom-right-radius: 0;
|
|
31
|
-
`), (0, cssr_1.c)('&:last-child', `
|
|
32
|
-
border-radius: var(--u-border-radius);
|
|
33
|
-
border-top-left-radius: 0;
|
|
34
|
-
border-top-right-radius: 0;
|
|
31
|
+
`)]), (0, cssr_1.cM)('bordered', [(0, cssr_1.cB)('list-item', `
|
|
32
|
+
border-bottom: 1px solid var(--u-merged-border-color);
|
|
33
|
+
`, [(0, cssr_1.c)('&:last-child', `
|
|
34
|
+
border: none;
|
|
35
35
|
`)])]), (0, cssr_1.cE)('header, footer', `
|
|
36
36
|
padding: var(--u-padding);
|
|
37
37
|
padding-left: 0px;
|
|
@@ -51,11 +51,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('list', `
|
|
|
51
51
|
position: relative;
|
|
52
52
|
outline: none;
|
|
53
53
|
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
54
|
padding: var(--u-padding);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
`, [(0, cssr_1.cB)('skeleton', `
|
|
56
|
+
height: 24px
|
|
57
|
+
`), (0, cssr_1.cE)('main', `
|
|
59
58
|
flex: 1;
|
|
60
59
|
`), (0, cssr_1.c)('&:focus', `
|
|
61
60
|
outline: none;
|
|
@@ -70,81 +69,43 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('list', `
|
|
|
70
69
|
left: 0;
|
|
71
70
|
`), (0, cssr_1.cE)('icon', `
|
|
72
71
|
display: flex;
|
|
73
|
-
font-size: var(--u-icon-size);
|
|
74
72
|
margin-left: var(--u-icon-space);
|
|
75
73
|
`), (0, cssr_1.cE)('suffix', `
|
|
76
74
|
margin-left: var(--u-suffix-space);
|
|
75
|
+
font-size: var(--u-suffix-size);
|
|
76
|
+
align-self: center;
|
|
77
77
|
`), (0, cssr_1.cE)('prefix', `
|
|
78
78
|
margin-right: var(--u-prefix-space);
|
|
79
|
+
display: flex;
|
|
79
80
|
`), (0, cssr_1.cE)('content', `
|
|
80
|
-
flex-grow: 1;
|
|
81
|
-
padding: 0;
|
|
82
81
|
display: flex;
|
|
83
82
|
flex-direction: column;
|
|
84
|
-
|
|
83
|
+
gap: 4px;
|
|
85
84
|
`, [(0, cssr_1.cM)('right', `
|
|
86
|
-
margin-left: auto;
|
|
87
85
|
text-align: right;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
flex-grow: 1;
|
|
96
|
-
display: flex;
|
|
97
|
-
align-items: flex-start;
|
|
86
|
+
`), (0, cssr_1.cM)('full', {
|
|
87
|
+
width: '100%'
|
|
88
|
+
})]), (0, cssr_1.cE)('text', `
|
|
89
|
+
display: grid;
|
|
90
|
+
gap: 16px;
|
|
91
|
+
grid-template-columns: 1fr 1fr;
|
|
92
|
+
height: 100%
|
|
98
93
|
`), (0, cssr_1.cE)('title', `
|
|
99
|
-
padding-top: 4px;
|
|
100
94
|
flex-grow: 1;
|
|
101
|
-
|
|
102
|
-
font-size: var(--u-title-size);
|
|
103
|
-
font-weight: 500;
|
|
104
|
-
line-height: var(--u-title-line-height);
|
|
105
|
-
`, [(0, cssr_1.c)('&:last-child', `
|
|
106
|
-
margin-bottom: 0;
|
|
107
|
-
`)]), (0, cssr_1.cE)('subtitle', `
|
|
108
|
-
padding-bottom: 4px;
|
|
95
|
+
`), (0, cssr_1.cE)('subtitle', `
|
|
109
96
|
flex-grow: 1;
|
|
110
|
-
font-size: var(--u-subtitle-size);
|
|
111
|
-
font-weight: 500;
|
|
112
|
-
line-height: var(--u-subtitle-line-height);
|
|
113
97
|
color: var(--u-subtitle-color);
|
|
114
98
|
`), (0, cssr_1.cE)('subtitle,title', [(0, cssr_1.c)('&:last-child:first-child', `
|
|
115
|
-
|
|
116
|
-
`)]), (0, cssr_1.cE)('avatar', `
|
|
117
|
-
display: flex;
|
|
118
|
-
margin-right: var(--u-avatar-space);
|
|
119
|
-
`), (0, cssr_1.c)('&:last-child', [(0, cssr_1.cE)('divider', `
|
|
99
|
+
`)]), (0, cssr_1.c)('&:last-child', [(0, cssr_1.cE)('divider', `
|
|
120
100
|
display: none;
|
|
121
101
|
`)]), (0, cssr_1.cM)('default', `
|
|
122
|
-
min-height: var(--u-min-height);
|
|
123
102
|
padding: var(--u-padding);
|
|
124
103
|
`, [(0, cssr_1.cE)('main', `
|
|
125
|
-
display:
|
|
104
|
+
display: none;
|
|
126
105
|
align-items: center;
|
|
127
|
-
`)]), (0, cssr_1.
|
|
128
|
-
padding-top: 0;
|
|
129
|
-
padding-bottom: 4px;
|
|
130
|
-
order: 1;
|
|
131
|
-
margin-top: 4px;
|
|
132
|
-
margin-bottom: 0px;
|
|
133
|
-
`, [(0, cssr_1.c)('&:last-child', `
|
|
134
|
-
margin-top: 0;
|
|
135
|
-
`)]), (0, cssr_1.cE)('subtitle', `
|
|
136
|
-
padding-bottom: 0;
|
|
137
|
-
padding-top: 4px;
|
|
138
|
-
`)]), (0, cssr_1.cM)('columns-even', [(0, cssr_1.cE)('content', [(0, cssr_1.cM)('right', `
|
|
139
|
-
flex-grow: 1;
|
|
140
|
-
text-align: left;
|
|
141
|
-
align-items: stretch;
|
|
142
|
-
`)])]), (0, cssr_1.cM)('bordered', `
|
|
143
|
-
padding: var(--u-padding);
|
|
144
|
-
`), (0, cssr_1.cNotM)('loading', [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.cNotM)('loading-skeleton', [(0, cssr_1.cM)('hoverable', `
|
|
106
|
+
`)]), (0, cssr_1.cNotM)('loading', [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.cNotM)('loading-skeleton', [(0, cssr_1.cM)('hoverable', `
|
|
145
107
|
cursor: pointer;
|
|
146
108
|
user-select: none;
|
|
147
|
-
padding: var(--u-padding);
|
|
148
109
|
`, [(0, cssr_1.c)('&:hover', `
|
|
149
110
|
background: var(--u-merged-color-hover);
|
|
150
111
|
`), (0, cssr_1.c)('&:focus,&:active', `
|
|
@@ -157,26 +118,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('list', `
|
|
|
157
118
|
border-radius: var(--u-border-radius);
|
|
158
119
|
`), (0, cssr_1.cM)('disabled', [(0, cssr_1.cE)('text, subtitle', `
|
|
159
120
|
color: var(--u-text-color-disabled);
|
|
160
|
-
`)]), (0, cssr_1.
|
|
161
|
-
padding: 5px 0;
|
|
162
|
-
`), (0, cssr_1.cE)('content--left', `
|
|
163
|
-
flex-grow: 0;
|
|
164
|
-
width: calc(66.38% - 8px);
|
|
165
|
-
`), (0, cssr_1.cE)('content--right', `
|
|
166
|
-
flex-grow: 0;
|
|
167
|
-
width: calc(33.62% - 8px);
|
|
168
|
-
`), (0, cssr_1.cE)('title,subtitle', [(0, cssr_1.c)('&:first-child:last-child', `
|
|
169
|
-
padding: 0;
|
|
170
|
-
`)]), (0, cssr_1.cE)('title', `
|
|
171
|
-
margin-bottom: 8px;
|
|
172
|
-
`, [(0, cssr_1.c)('&:last-child', `
|
|
173
|
-
margin-bottom: 0;
|
|
174
|
-
`)]), (0, cssr_1.cM)('description-first', [(0, cssr_1.cE)('title', `
|
|
175
|
-
margin-bottom: 0;
|
|
176
|
-
margin-top: 8px;
|
|
177
|
-
`, [(0, cssr_1.c)('&:last-child', `
|
|
178
|
-
margin-top: 0;
|
|
179
|
-
`)])])])]), (0, cssr_1.insideModal)((0, cssr_1.cB)('list', `
|
|
121
|
+
`)])]), (0, cssr_1.insideModal)((0, cssr_1.cB)('list', `
|
|
180
122
|
--u-merged-color-hover: var(--u-color-hover-modal);
|
|
181
123
|
--u-merged-color: var(--u-color-modal);
|
|
182
124
|
--u-merged-border-color: var(--u-border-color-modal);
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import { type Theme } from '../../_mixins';
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
-
padding: string;
|
|
5
4
|
iconSize: string;
|
|
6
5
|
iconSpace: string;
|
|
7
6
|
suffixSpace: string;
|
|
8
7
|
prefixSpace: string;
|
|
9
|
-
titleSize: string;
|
|
10
|
-
titleLineHeight: string;
|
|
11
|
-
subtitleSize: string;
|
|
12
|
-
subtitleLineHeight: string;
|
|
13
8
|
subtitleColor: string;
|
|
14
9
|
avatarSpace: string;
|
|
15
|
-
minHeight: string;
|
|
16
10
|
colorFocus: string;
|
|
17
11
|
pressedScale: string;
|
|
18
12
|
textColorDisabled: string;
|
|
@@ -26,8 +20,11 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
26
20
|
borderColor: string;
|
|
27
21
|
borderColorModal: string;
|
|
28
22
|
borderColorPopover: string;
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
borderRadiusLarge: string;
|
|
24
|
+
borderRadiusMedium: string;
|
|
25
|
+
borderRadiusSmall: string;
|
|
26
|
+
padding: string;
|
|
27
|
+
suffixSize: string;
|
|
31
28
|
};
|
|
32
29
|
export type ListThemeVars = ReturnType<typeof self>;
|
|
33
30
|
declare const listLight: Theme<'List', ListThemeVars>;
|
package/lib/list/styles/light.js
CHANGED
|
@@ -3,20 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.self = void 0;
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
5
|
const self = (vars) => {
|
|
6
|
-
const { borderRadius,
|
|
6
|
+
const { borderRadius, borderRadiusMedium, borderRadiusSmall, iconMedium, textSecondary, iconSmall, elementsQuaternary, textTertiary, textPrimary, containerPrimary, elementsTertiary } = vars;
|
|
7
7
|
return {
|
|
8
|
-
padding: '8px 24px',
|
|
9
8
|
iconSize: iconMedium,
|
|
10
9
|
iconSpace: '16px',
|
|
11
10
|
suffixSpace: '20px',
|
|
12
11
|
prefixSpace: '20px',
|
|
13
|
-
titleSize: fontBodyLarge,
|
|
14
|
-
titleLineHeight: lineHeightBodyLarge,
|
|
15
|
-
subtitleSize: fontBodyMedium,
|
|
16
|
-
subtitleLineHeight: lineHeightBodyMedium,
|
|
17
12
|
subtitleColor: textSecondary,
|
|
18
13
|
avatarSpace: iconSmall,
|
|
19
|
-
minHeight: '64px',
|
|
20
14
|
colorFocus: elementsQuaternary,
|
|
21
15
|
pressedScale: '0.98',
|
|
22
16
|
textColorDisabled: textTertiary,
|
|
@@ -30,8 +24,11 @@ const self = (vars) => {
|
|
|
30
24
|
borderColor: elementsQuaternary,
|
|
31
25
|
borderColorModal: elementsQuaternary,
|
|
32
26
|
borderColorPopover: elementsQuaternary,
|
|
33
|
-
borderRadius,
|
|
34
|
-
|
|
27
|
+
borderRadiusLarge: borderRadius,
|
|
28
|
+
borderRadiusMedium,
|
|
29
|
+
borderRadiusSmall,
|
|
30
|
+
padding: '12px 24px',
|
|
31
|
+
suffixSize: '24px'
|
|
35
32
|
};
|
|
36
33
|
};
|
|
37
34
|
exports.self = self;
|
|
@@ -119,15 +119,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
119
119
|
}
|
|
120
120
|
function doUpdateValue(value) {
|
|
121
121
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props;
|
|
122
|
-
const {
|
|
122
|
+
const { triggerFormChange, triggerFormInput } = formItem;
|
|
123
123
|
if (_onUpdateValue) {
|
|
124
124
|
(0, _utils_1.call)(_onUpdateValue, value);
|
|
125
125
|
}
|
|
126
126
|
if (onUpdateValue) {
|
|
127
127
|
(0, _utils_1.call)(onUpdateValue, value);
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
triggerFormInput();
|
|
130
|
+
triggerFormChange();
|
|
131
131
|
uncontrolledValueRef.value = value;
|
|
132
132
|
}
|
|
133
133
|
function getInputEl() {
|
|
@@ -244,8 +244,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
244
244
|
function handleInputFocus(e) {
|
|
245
245
|
const { onFocus } = props;
|
|
246
246
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
247
|
-
const {
|
|
248
|
-
|
|
247
|
+
const { triggerFormFocus } = formItem;
|
|
248
|
+
triggerFormFocus();
|
|
249
249
|
syncAfterCursorMove();
|
|
250
250
|
}
|
|
251
251
|
function focus() {
|
|
@@ -259,8 +259,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
259
259
|
function handleInputBlur(e) {
|
|
260
260
|
const { onBlur } = props;
|
|
261
261
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
262
|
-
const {
|
|
263
|
-
|
|
262
|
+
const { triggerFormBlur } = formItem;
|
|
263
|
+
triggerFormBlur();
|
|
264
264
|
doUpdateShowMenu(false);
|
|
265
265
|
}
|
|
266
266
|
function handleSelect(tmNode) {
|
|
@@ -81,7 +81,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
81
81
|
props: exports.radioGroupProps,
|
|
82
82
|
setup(props) {
|
|
83
83
|
const selfElRef = (0, vue_1.ref)(null);
|
|
84
|
-
const { mergedSizeRef, mergedDisabledRef,
|
|
84
|
+
const { mergedSizeRef, mergedDisabledRef, triggerFormChange, triggerFormInput, triggerFormBlur, triggerFormFocus } = (0, _mixins_1.useFormItem)(props);
|
|
85
85
|
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
86
86
|
const themeRef = (0, _mixins_1.useTheme)('Radio', '-radio-group', radio_group_cssr_1.default, styles_1.radioLight, props, mergedClsPrefixRef);
|
|
87
87
|
const uncontrolledValueRef = (0, vue_1.ref)(props.defaultValue);
|
|
@@ -96,8 +96,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
96
96
|
(0, _utils_1.call)(_onUpdateValue, value);
|
|
97
97
|
}
|
|
98
98
|
uncontrolledValueRef.value = value;
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
triggerFormChange();
|
|
100
|
+
triggerFormInput();
|
|
101
101
|
}
|
|
102
102
|
function handleFocusin(e) {
|
|
103
103
|
const { value: selfEl } = selfElRef;
|
|
@@ -105,7 +105,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
105
105
|
return;
|
|
106
106
|
if (selfEl.contains(e.relatedTarget))
|
|
107
107
|
return;
|
|
108
|
-
|
|
108
|
+
triggerFormFocus();
|
|
109
109
|
}
|
|
110
110
|
function handleFocusout(e) {
|
|
111
111
|
const { value: selfEl } = selfElRef;
|
|
@@ -113,7 +113,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
113
113
|
return;
|
|
114
114
|
if (selfEl.contains(e.relatedTarget))
|
|
115
115
|
return;
|
|
116
|
-
|
|
116
|
+
triggerFormBlur();
|
|
117
117
|
}
|
|
118
118
|
(0, vue_1.provide)(_internal_1.radioGroupInjectionKey, {
|
|
119
119
|
mergedClsPrefixRef,
|
package/lib/rate/src/Rate.js
CHANGED
|
@@ -35,7 +35,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
35
35
|
const mergedValue = (0, vooks_1.useMergedState)(controlledValueRef, uncontrolledValueRef);
|
|
36
36
|
function doUpdateValue(value) {
|
|
37
37
|
const { 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
38
|
-
const {
|
|
38
|
+
const { triggerFormChange, triggerFormInput } = formItem;
|
|
39
39
|
if (_onUpdateValue) {
|
|
40
40
|
(0, _utils_1.call)(_onUpdateValue, value);
|
|
41
41
|
}
|
|
@@ -43,8 +43,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
43
43
|
(0, _utils_1.call)(onUpdateValue, value);
|
|
44
44
|
}
|
|
45
45
|
uncontrolledValueRef.value = value;
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
triggerFormChange();
|
|
47
|
+
triggerFormInput();
|
|
48
48
|
}
|
|
49
49
|
function getDerivedValue(index, e) {
|
|
50
50
|
if (props.allowHalf) {
|
package/lib/select/src/Select.js
CHANGED
|
@@ -229,7 +229,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
229
229
|
const { mergedDisabledRef, mergedStatusRef } = formItem;
|
|
230
230
|
function doUpdateValue(value, option) {
|
|
231
231
|
const { onChange, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
232
|
-
const {
|
|
232
|
+
const { triggerFormChange, triggerFormInput } = formItem;
|
|
233
233
|
if (onChange)
|
|
234
234
|
(0, _utils_1.call)(onChange, value, option);
|
|
235
235
|
if (onUpdateValue)
|
|
@@ -238,15 +238,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
238
238
|
(0, _utils_1.call)(_onUpdateValue, value, option);
|
|
239
239
|
}
|
|
240
240
|
uncontrolledValueRef.value = value;
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
triggerFormChange();
|
|
242
|
+
triggerFormInput();
|
|
243
243
|
}
|
|
244
244
|
function doBlur(e) {
|
|
245
245
|
const { onBlur } = props;
|
|
246
|
-
const {
|
|
246
|
+
const { triggerFormBlur } = formItem;
|
|
247
247
|
if (onBlur)
|
|
248
248
|
(0, _utils_1.call)(onBlur, e);
|
|
249
|
-
|
|
249
|
+
triggerFormBlur();
|
|
250
250
|
}
|
|
251
251
|
function doClear() {
|
|
252
252
|
const { onClear } = props;
|
|
@@ -255,10 +255,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
255
255
|
}
|
|
256
256
|
function doFocus(e) {
|
|
257
257
|
const { onFocus, showOnFocus } = props;
|
|
258
|
-
const {
|
|
258
|
+
const { triggerFormFocus } = formItem;
|
|
259
259
|
if (onFocus)
|
|
260
260
|
(0, _utils_1.call)(onFocus, e);
|
|
261
|
-
|
|
261
|
+
triggerFormFocus();
|
|
262
262
|
if (showOnFocus) {
|
|
263
263
|
openMenu();
|
|
264
264
|
}
|
package/lib/slider/src/Slider.js
CHANGED
|
@@ -175,14 +175,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
175
175
|
}
|
|
176
176
|
function doUpdateValue(value) {
|
|
177
177
|
const { 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
178
|
-
const {
|
|
178
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
179
179
|
if (onUpdateValue)
|
|
180
180
|
(0, _utils_1.call)(onUpdateValue, value);
|
|
181
181
|
if (_onUpdateValue)
|
|
182
182
|
(0, _utils_1.call)(_onUpdateValue, value);
|
|
183
183
|
uncontrolledValueRef.value = value;
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
triggerFormInput();
|
|
185
|
+
triggerFormChange();
|
|
186
186
|
}
|
|
187
187
|
function dispatchValueUpdate(value) {
|
|
188
188
|
const { range } = props;
|
package/lib/styles.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export { gradientTextDark } from './gradient-text/styles';
|
|
|
34
34
|
export { iconDark } from './icon/styles';
|
|
35
35
|
export { inputDark, inputRtl as unstableInputRtl } from './input/styles';
|
|
36
36
|
export { inputNumberDark, inputNumberRtl as unstableInputNumberRtl } from './input-number/styles';
|
|
37
|
+
export { inputOtpDark, inputOtpRtl as unstableInputOtpRtl } from './input-otp/styles';
|
|
37
38
|
export { layoutDark } from './layout/styles';
|
|
38
39
|
export { listDark, listRtl as unstableListRtl } from './list/styles';
|
|
39
40
|
export { loadingBarDark } from './loading-bar/styles';
|