@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.
Files changed (202) hide show
  1. package/README.md +0 -1
  2. package/dist/index.js +1333 -869
  3. package/dist/index.prod.js +3 -3
  4. package/es/_internal/checkbox/src/use-checkbox.js +3 -3
  5. package/es/_internal/radio/src/use-radio.js +3 -3
  6. package/es/_internal/typography/src/styles/text.cssr.js +0 -1
  7. package/es/_internal/typography/styles/light.js +1 -1
  8. package/es/_mixins/use-form-item.d.ts +4 -4
  9. package/es/_mixins/use-form-item.js +4 -4
  10. package/es/_styles/common/dark.js +1 -1
  11. package/es/_styles/common/light.d.ts +3 -0
  12. package/es/_styles/common/light.js +1 -1
  13. package/es/_utils/composable/composables.d.ts +11 -0
  14. package/es/_utils/composable/composables.js +40 -0
  15. package/es/_utils/index.d.ts +1 -1
  16. package/es/_utils/index.js +1 -1
  17. package/es/_utils/uzum/index.d.ts +1 -0
  18. package/es/_utils/uzum/index.js +1 -0
  19. package/es/_utils/uzum/value.d.ts +1 -0
  20. package/es/_utils/uzum/value.js +9 -0
  21. package/es/_utils/vue/resolve-slot.d.ts +1 -1
  22. package/es/alert/styles/light.js +6 -6
  23. package/es/auto-complete/src/AutoComplete.js +10 -10
  24. package/es/avatar/src/Avatar.d.ts +6 -0
  25. package/es/avatar/src/Avatar.js +9 -3
  26. package/es/card-list/src/CardList.js +1 -1
  27. package/es/card-list/src/CardListItem.d.ts +13 -0
  28. package/es/card-list/src/CardListItem.js +11 -4
  29. package/es/card-list/src/interface.d.ts +1 -0
  30. package/es/card-list/src/styles/index.cssr.js +6 -6
  31. package/es/card-list/styles/light.js +2 -2
  32. package/es/cascader/src/Cascader.js +7 -7
  33. package/es/checkbox/src/CheckboxGroup.js +9 -9
  34. package/es/color-picker/src/ColorPicker.js +6 -6
  35. package/es/components.d.ts +1 -0
  36. package/es/components.js +1 -0
  37. package/es/config-provider/src/internal-interface.d.ts +2 -0
  38. package/es/data-table/src/DataTable.d.ts +8 -0
  39. package/es/data-table/src/DataTable.js +21 -10
  40. package/es/data-table/src/TableParts/Body.d.ts +1 -0
  41. package/es/data-table/src/TableParts/Body.js +6 -5
  42. package/es/data-table/src/TableParts/Cell.js +85 -23
  43. package/es/data-table/src/interface.d.ts +13 -6
  44. package/es/data-table/src/interface.js +1 -1
  45. package/es/data-table/src/styles/index.cssr.js +5 -3
  46. package/es/data-table/src/use-mask.d.ts +3 -6
  47. package/es/data-table/src/utils.d.ts +2 -1
  48. package/es/data-table/src/utils.js +13 -0
  49. package/es/date-picker/src/DatePicker.js +7 -7
  50. package/es/dialog/src/DialogProvider.d.ts +6 -0
  51. package/es/dynamic-tags/src/DynamicTags.js +3 -3
  52. package/es/input/src/Input.js +8 -8
  53. package/es/input-number/src/InputNumber.js +7 -7
  54. package/es/input-otp/index.d.ts +3 -0
  55. package/es/input-otp/index.js +1 -0
  56. package/es/input-otp/src/InputOtp.d.ts +871 -0
  57. package/es/input-otp/src/InputOtp.js +250 -0
  58. package/es/input-otp/src/public-types.d.ts +25 -0
  59. package/es/input-otp/src/public-types.js +1 -0
  60. package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
  61. package/es/input-otp/src/styles/index.cssr.js +20 -0
  62. package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
  63. package/es/input-otp/src/styles/input-otp-rtl.cssr.js +5 -0
  64. package/es/input-otp/styles/dark.d.ts +3 -0
  65. package/es/input-otp/styles/dark.js +12 -0
  66. package/es/input-otp/styles/index.d.ts +4 -0
  67. package/es/input-otp/styles/index.js +3 -0
  68. package/es/input-otp/styles/light.d.ts +83 -0
  69. package/es/input-otp/styles/light.js +22 -0
  70. package/es/input-otp/styles/rtl.d.ts +2 -0
  71. package/es/input-otp/styles/rtl.js +5 -0
  72. package/es/legacy-transfer/src/Transfer.js +3 -3
  73. package/es/list/src/List.d.ts +41 -55
  74. package/es/list/src/List.js +6 -10
  75. package/es/list/src/ListItem.d.ts +84 -25
  76. package/es/list/src/ListItem.js +120 -98
  77. package/es/list/src/interface.d.ts +1 -0
  78. package/es/list/src/props.d.ts +70 -31
  79. package/es/list/src/props.js +25 -5
  80. package/es/list/src/styles/index.cssr.js +32 -90
  81. package/es/list/styles/light.d.ts +5 -8
  82. package/es/list/styles/light.js +6 -9
  83. package/es/mention/src/Mention.js +7 -7
  84. package/es/radio/src/RadioGroup.js +5 -5
  85. package/es/rate/src/Rate.js +3 -3
  86. package/es/select/src/Select.js +7 -7
  87. package/es/slider/src/Slider.js +3 -3
  88. package/es/styles.d.ts +1 -0
  89. package/es/styles.js +1 -0
  90. package/es/switch/src/Switch.js +7 -7
  91. package/es/tag/src/styles/index.cssr.js +5 -1
  92. package/es/tag/styles/light.js +2 -2
  93. package/es/theme-editor/src/ThemeEditor.d.ts +3 -0
  94. package/es/themes/dark.js +2 -0
  95. package/es/themes/light.js +2 -0
  96. package/es/time-picker/src/TimePicker.js +7 -7
  97. package/es/transfer/src/Transfer.js +3 -3
  98. package/es/tree-select/src/TreeSelect.js +5 -5
  99. package/es/upload/src/UploadFile.js +4 -3
  100. package/es/version.d.ts +1 -1
  101. package/es/version.js +1 -1
  102. package/lib/_internal/checkbox/src/use-checkbox.js +3 -3
  103. package/lib/_internal/radio/src/use-radio.js +3 -3
  104. package/lib/_internal/typography/src/styles/text.cssr.js +0 -1
  105. package/lib/_internal/typography/styles/light.js +1 -1
  106. package/lib/_mixins/use-form-item.d.ts +4 -4
  107. package/lib/_mixins/use-form-item.js +4 -4
  108. package/lib/_styles/common/dark.js +1 -1
  109. package/lib/_styles/common/light.d.ts +3 -0
  110. package/lib/_styles/common/light.js +1 -1
  111. package/lib/_utils/composable/composables.d.ts +11 -0
  112. package/lib/_utils/composable/composables.js +47 -0
  113. package/lib/_utils/index.d.ts +1 -1
  114. package/lib/_utils/index.js +2 -1
  115. package/lib/_utils/uzum/index.d.ts +1 -0
  116. package/lib/_utils/uzum/index.js +3 -1
  117. package/lib/_utils/uzum/value.d.ts +1 -0
  118. package/lib/_utils/uzum/value.js +12 -0
  119. package/lib/_utils/vue/resolve-slot.d.ts +1 -1
  120. package/lib/alert/styles/light.js +6 -6
  121. package/lib/auto-complete/src/AutoComplete.js +10 -10
  122. package/lib/avatar/src/Avatar.d.ts +6 -0
  123. package/lib/avatar/src/Avatar.js +9 -3
  124. package/lib/card-list/src/CardList.js +1 -1
  125. package/lib/card-list/src/CardListItem.d.ts +13 -0
  126. package/lib/card-list/src/CardListItem.js +11 -4
  127. package/lib/card-list/src/interface.d.ts +1 -0
  128. package/lib/card-list/src/styles/index.cssr.js +5 -5
  129. package/lib/card-list/styles/light.js +2 -2
  130. package/lib/cascader/src/Cascader.js +7 -7
  131. package/lib/checkbox/src/CheckboxGroup.js +9 -9
  132. package/lib/color-picker/src/ColorPicker.js +6 -6
  133. package/lib/components.d.ts +1 -0
  134. package/lib/components.js +1 -0
  135. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  136. package/lib/data-table/src/DataTable.d.ts +8 -0
  137. package/lib/data-table/src/DataTable.js +21 -10
  138. package/lib/data-table/src/TableParts/Body.d.ts +1 -0
  139. package/lib/data-table/src/TableParts/Body.js +6 -5
  140. package/lib/data-table/src/TableParts/Cell.js +84 -22
  141. package/lib/data-table/src/interface.d.ts +13 -6
  142. package/lib/data-table/src/interface.js +1 -1
  143. package/lib/data-table/src/styles/index.cssr.js +5 -3
  144. package/lib/data-table/src/use-mask.d.ts +3 -6
  145. package/lib/data-table/src/utils.d.ts +2 -1
  146. package/lib/data-table/src/utils.js +14 -1
  147. package/lib/date-picker/src/DatePicker.js +7 -7
  148. package/lib/dialog/src/DialogProvider.d.ts +6 -0
  149. package/lib/dynamic-tags/src/DynamicTags.js +3 -3
  150. package/lib/input/src/Input.js +8 -8
  151. package/lib/input-number/src/InputNumber.js +7 -7
  152. package/lib/input-otp/index.d.ts +3 -0
  153. package/lib/input-otp/index.js +9 -0
  154. package/lib/input-otp/src/InputOtp.d.ts +871 -0
  155. package/lib/input-otp/src/InputOtp.js +256 -0
  156. package/lib/input-otp/src/public-types.d.ts +25 -0
  157. package/lib/input-otp/src/public-types.js +2 -0
  158. package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
  159. package/lib/input-otp/src/styles/index.cssr.js +25 -0
  160. package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
  161. package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
  162. package/lib/input-otp/styles/dark.d.ts +3 -0
  163. package/lib/input-otp/styles/dark.js +14 -0
  164. package/lib/input-otp/styles/index.d.ts +4 -0
  165. package/lib/input-otp/styles/index.js +12 -0
  166. package/lib/input-otp/styles/light.d.ts +83 -0
  167. package/lib/input-otp/styles/light.js +25 -0
  168. package/lib/input-otp/styles/rtl.d.ts +2 -0
  169. package/lib/input-otp/styles/rtl.js +11 -0
  170. package/lib/legacy-transfer/src/Transfer.js +3 -3
  171. package/lib/list/src/List.d.ts +41 -55
  172. package/lib/list/src/List.js +6 -10
  173. package/lib/list/src/ListItem.d.ts +84 -25
  174. package/lib/list/src/ListItem.js +119 -97
  175. package/lib/list/src/interface.d.ts +1 -0
  176. package/lib/list/src/props.d.ts +70 -31
  177. package/lib/list/src/props.js +25 -5
  178. package/lib/list/src/styles/index.cssr.js +32 -90
  179. package/lib/list/styles/light.d.ts +5 -8
  180. package/lib/list/styles/light.js +6 -9
  181. package/lib/mention/src/Mention.js +7 -7
  182. package/lib/radio/src/RadioGroup.js +5 -5
  183. package/lib/rate/src/Rate.js +3 -3
  184. package/lib/select/src/Select.js +7 -7
  185. package/lib/slider/src/Slider.js +3 -3
  186. package/lib/styles.d.ts +1 -0
  187. package/lib/styles.js +106 -103
  188. package/lib/switch/src/Switch.js +7 -7
  189. package/lib/tag/src/styles/index.cssr.js +5 -1
  190. package/lib/tag/styles/light.js +2 -2
  191. package/lib/theme-editor/src/ThemeEditor.d.ts +3 -0
  192. package/lib/themes/dark.js +2 -0
  193. package/lib/themes/light.js +2 -0
  194. package/lib/time-picker/src/TimePicker.js +7 -7
  195. package/lib/transfer/src/Transfer.js +3 -3
  196. package/lib/tree-select/src/TreeSelect.js +5 -5
  197. package/lib/upload/src/UploadFile.js +4 -3
  198. package/lib/version.d.ts +1 -1
  199. package/lib/version.js +1 -1
  200. package/package.json +1 -1
  201. package/volar.d.ts +1 -0
  202. package/web-types.json +180 -38
@@ -1,11 +1,18 @@
1
1
  import { cB, c, cE, cM, insideModal, insidePopover, cNotM } from '../../../_utils/cssr';
2
- export default c([cB('list', `
2
+ // --u-border-radius
3
+ // --u-suffix-size
4
+ export default c([cB('align-start', `
5
+ align-self: self-start;
6
+ `), cB('align-center', `
7
+ align-self: center;
8
+ `), cB('align-end', `
9
+ align-self: self-end;
10
+ `), cB('list', `
3
11
  --u-merged-border-color: var(--u-border-color);
4
12
  --u-merged-color: var(--u-color);
5
13
  --u-merged-color-focus: var(--u-color-focus);
6
14
  --u-merged-color-hover: var(--u-color-hover);
7
15
  margin: 0;
8
- font-size: var(--u-font-size);
9
16
  transition:
10
17
  background-color .3s var(--u-bezier),
11
18
  color .3s var(--u-bezier),
@@ -16,17 +23,10 @@ export default c([cB('list', `
16
23
  background-color: var(--u-merged-color);
17
24
  `, [cM('clickable', [cB('list-item', `
18
25
  cursor: pointer;
19
- `)]), cM('bordered', `
20
- border: 1px solid var(--u-merged-border-color);
21
- border-radius: var(--u-border-radius);
22
- `, [cB('list-item', [c('&:first-child', `
23
- border-radius: var(--u-border-radius);
24
- border-bottom-left-radius: 0;
25
- border-bottom-right-radius: 0;
26
- `), c('&:last-child', `
27
- border-radius: var(--u-border-radius);
28
- border-top-left-radius: 0;
29
- border-top-right-radius: 0;
26
+ `)]), cM('bordered', [cB('list-item', `
27
+ border-bottom: 1px solid var(--u-merged-border-color);
28
+ `, [c('&:last-child', `
29
+ border: none;
30
30
  `)])]), cE('header, footer', `
31
31
  padding: var(--u-padding);
32
32
  padding-left: 0px;
@@ -46,11 +46,10 @@ export default c([cB('list', `
46
46
  position: relative;
47
47
  outline: none;
48
48
  display: flex;
49
- align-items: center;
50
49
  padding: var(--u-padding);
51
- padding-left: 0;
52
- padding-right: 0;
53
- `, [cE('main', `
50
+ `, [cB('skeleton', `
51
+ height: 24px
52
+ `), cE('main', `
54
53
  flex: 1;
55
54
  `), c('&:focus', `
56
55
  outline: none;
@@ -65,81 +64,43 @@ export default c([cB('list', `
65
64
  left: 0;
66
65
  `), cE('icon', `
67
66
  display: flex;
68
- font-size: var(--u-icon-size);
69
67
  margin-left: var(--u-icon-space);
70
68
  `), cE('suffix', `
71
69
  margin-left: var(--u-suffix-space);
70
+ font-size: var(--u-suffix-size);
71
+ align-self: center;
72
72
  `), cE('prefix', `
73
73
  margin-right: var(--u-prefix-space);
74
+ display: flex;
74
75
  `), cE('content', `
75
- flex-grow: 1;
76
- padding: 0;
77
76
  display: flex;
78
77
  flex-direction: column;
79
- align-items: stretch;
78
+ gap: 4px;
80
79
  `, [cM('right', `
81
- margin-left: auto;
82
80
  text-align: right;
83
- align-items: flex-end;
84
- `, [cE('title', `
85
- font-weight: 600;
86
- `)]), c('+', [cE('content', `
87
- margin-left: 24px;
88
- flex-grow: 0;
89
- `)])]), cE('text', `
90
- flex-grow: 1;
91
- display: flex;
92
- align-items: flex-start;
81
+ `), cM('full', {
82
+ width: '100%'
83
+ })]), cE('text', `
84
+ display: grid;
85
+ gap: 16px;
86
+ grid-template-columns: 1fr 1fr;
87
+ height: 100%
93
88
  `), cE('title', `
94
- padding-top: 4px;
95
89
  flex-grow: 1;
96
- margin-bottom: 4px;
97
- font-size: var(--u-title-size);
98
- font-weight: 500;
99
- line-height: var(--u-title-line-height);
100
- `, [c('&:last-child', `
101
- margin-bottom: 0;
102
- `)]), cE('subtitle', `
103
- padding-bottom: 4px;
90
+ `), cE('subtitle', `
104
91
  flex-grow: 1;
105
- font-size: var(--u-subtitle-size);
106
- font-weight: 500;
107
- line-height: var(--u-subtitle-line-height);
108
92
  color: var(--u-subtitle-color);
109
93
  `), cE('subtitle,title', [c('&:last-child:first-child', `
110
- padding: 12px 0;
111
- `)]), cE('avatar', `
112
- display: flex;
113
- margin-right: var(--u-avatar-space);
114
- `), c('&:last-child', [cE('divider', `
94
+ `)]), c('&:last-child', [cE('divider', `
115
95
  display: none;
116
96
  `)]), cM('default', `
117
- min-height: var(--u-min-height);
118
97
  padding: var(--u-padding);
119
98
  `, [cE('main', `
120
- display: flex;
99
+ display: none;
121
100
  align-items: center;
122
- `)]), cM('description-first', [cE('title', `
123
- padding-top: 0;
124
- padding-bottom: 4px;
125
- order: 1;
126
- margin-top: 4px;
127
- margin-bottom: 0px;
128
- `, [c('&:last-child', `
129
- margin-top: 0;
130
- `)]), cE('subtitle', `
131
- padding-bottom: 0;
132
- padding-top: 4px;
133
- `)]), cM('columns-even', [cE('content', [cM('right', `
134
- flex-grow: 1;
135
- text-align: left;
136
- align-items: stretch;
137
- `)])]), cM('bordered', `
138
- padding: var(--u-padding);
139
- `), cNotM('loading', [cNotM('disabled', [cNotM('loading-skeleton', [cM('hoverable', `
101
+ `)]), cNotM('loading', [cNotM('disabled', [cNotM('loading-skeleton', [cM('hoverable', `
140
102
  cursor: pointer;
141
103
  user-select: none;
142
- padding: var(--u-padding);
143
104
  `, [c('&:hover', `
144
105
  background: var(--u-merged-color-hover);
145
106
  `), c('&:focus,&:active', `
@@ -152,26 +113,7 @@ export default c([cB('list', `
152
113
  border-radius: var(--u-border-radius);
153
114
  `), cM('disabled', [cE('text, subtitle', `
154
115
  color: var(--u-text-color-disabled);
155
- `)]), cM('loading-skeleton', [cE('content', `
156
- padding: 5px 0;
157
- `), cE('content--left', `
158
- flex-grow: 0;
159
- width: calc(66.38% - 8px);
160
- `), cE('content--right', `
161
- flex-grow: 0;
162
- width: calc(33.62% - 8px);
163
- `), cE('title,subtitle', [c('&:first-child:last-child', `
164
- padding: 0;
165
- `)]), cE('title', `
166
- margin-bottom: 8px;
167
- `, [c('&:last-child', `
168
- margin-bottom: 0;
169
- `)]), cM('description-first', [cE('title', `
170
- margin-bottom: 0;
171
- margin-top: 8px;
172
- `, [c('&:last-child', `
173
- margin-top: 0;
174
- `)])])])]), insideModal(cB('list', `
116
+ `)])]), insideModal(cB('list', `
175
117
  --u-merged-color-hover: var(--u-color-hover-modal);
176
118
  --u-merged-color: var(--u-color-modal);
177
119
  --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
- borderRadius: string;
30
- fontSize: string;
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>;
@@ -1,19 +1,13 @@
1
1
  import { commonLight } from '../../_styles/common';
2
2
  export const self = (vars) => {
3
- const { borderRadius, iconMedium, fontBodyLarge, lineHeightBodyLarge, lineHeightBodyMedium, textSecondary, iconSmall, elementsQuaternary, textTertiary, textPrimary, fontBodyMedium, containerPrimary, elementsTertiary } = vars;
3
+ const { borderRadius, borderRadiusMedium, borderRadiusSmall, iconMedium, textSecondary, iconSmall, elementsQuaternary, textTertiary, textPrimary, containerPrimary, elementsTertiary } = vars;
4
4
  return {
5
- padding: '8px 24px',
6
5
  iconSize: iconMedium,
7
6
  iconSpace: '16px',
8
7
  suffixSpace: '20px',
9
8
  prefixSpace: '20px',
10
- titleSize: fontBodyLarge,
11
- titleLineHeight: lineHeightBodyLarge,
12
- subtitleSize: fontBodyMedium,
13
- subtitleLineHeight: lineHeightBodyMedium,
14
9
  subtitleColor: textSecondary,
15
10
  avatarSpace: iconSmall,
16
- minHeight: '64px',
17
11
  colorFocus: elementsQuaternary,
18
12
  pressedScale: '0.98',
19
13
  textColorDisabled: textTertiary,
@@ -27,8 +21,11 @@ export const self = (vars) => {
27
21
  borderColor: elementsQuaternary,
28
22
  borderColorModal: elementsQuaternary,
29
23
  borderColorPopover: elementsQuaternary,
30
- borderRadius,
31
- fontSize: fontBodyMedium
24
+ borderRadiusLarge: borderRadius,
25
+ borderRadiusMedium,
26
+ borderRadiusSmall,
27
+ padding: '12px 24px',
28
+ suffixSize: '24px'
32
29
  };
33
30
  };
34
31
  const listLight = {
@@ -113,15 +113,15 @@ export default defineComponent({
113
113
  }
114
114
  function doUpdateValue(value) {
115
115
  const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props;
116
- const { nTriggerFormChange, nTriggerFormInput } = formItem;
116
+ const { triggerFormChange, triggerFormInput } = formItem;
117
117
  if (_onUpdateValue) {
118
118
  call(_onUpdateValue, value);
119
119
  }
120
120
  if (onUpdateValue) {
121
121
  call(onUpdateValue, value);
122
122
  }
123
- nTriggerFormInput();
124
- nTriggerFormChange();
123
+ triggerFormInput();
124
+ triggerFormChange();
125
125
  uncontrolledValueRef.value = value;
126
126
  }
127
127
  function getInputEl() {
@@ -238,8 +238,8 @@ export default defineComponent({
238
238
  function handleInputFocus(e) {
239
239
  const { onFocus } = props;
240
240
  onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
241
- const { nTriggerFormFocus } = formItem;
242
- nTriggerFormFocus();
241
+ const { triggerFormFocus } = formItem;
242
+ triggerFormFocus();
243
243
  syncAfterCursorMove();
244
244
  }
245
245
  function focus() {
@@ -253,8 +253,8 @@ export default defineComponent({
253
253
  function handleInputBlur(e) {
254
254
  const { onBlur } = props;
255
255
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
256
- const { nTriggerFormBlur } = formItem;
257
- nTriggerFormBlur();
256
+ const { triggerFormBlur } = formItem;
257
+ triggerFormBlur();
258
258
  doUpdateShowMenu(false);
259
259
  }
260
260
  function handleSelect(tmNode) {
@@ -75,7 +75,7 @@ export default defineComponent({
75
75
  props: radioGroupProps,
76
76
  setup(props) {
77
77
  const selfElRef = ref(null);
78
- const { mergedSizeRef, mergedDisabledRef, nTriggerFormChange, nTriggerFormInput, nTriggerFormBlur, nTriggerFormFocus } = useFormItem(props);
78
+ const { mergedSizeRef, mergedDisabledRef, triggerFormChange, triggerFormInput, triggerFormBlur, triggerFormFocus } = useFormItem(props);
79
79
  const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = useConfig(props);
80
80
  const themeRef = useTheme('Radio', '-radio-group', style, radioLight, props, mergedClsPrefixRef);
81
81
  const uncontrolledValueRef = ref(props.defaultValue);
@@ -90,8 +90,8 @@ export default defineComponent({
90
90
  call(_onUpdateValue, value);
91
91
  }
92
92
  uncontrolledValueRef.value = value;
93
- nTriggerFormChange();
94
- nTriggerFormInput();
93
+ triggerFormChange();
94
+ triggerFormInput();
95
95
  }
96
96
  function handleFocusin(e) {
97
97
  const { value: selfEl } = selfElRef;
@@ -99,7 +99,7 @@ export default defineComponent({
99
99
  return;
100
100
  if (selfEl.contains(e.relatedTarget))
101
101
  return;
102
- nTriggerFormFocus();
102
+ triggerFormFocus();
103
103
  }
104
104
  function handleFocusout(e) {
105
105
  const { value: selfEl } = selfElRef;
@@ -107,7 +107,7 @@ export default defineComponent({
107
107
  return;
108
108
  if (selfEl.contains(e.relatedTarget))
109
109
  return;
110
- nTriggerFormBlur();
110
+ triggerFormBlur();
111
111
  }
112
112
  provide(radioGroupInjectionKey, {
113
113
  mergedClsPrefixRef,
@@ -29,7 +29,7 @@ export default defineComponent({
29
29
  const mergedValue = useMergedState(controlledValueRef, uncontrolledValueRef);
30
30
  function doUpdateValue(value) {
31
31
  const { 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
32
- const { nTriggerFormChange, nTriggerFormInput } = formItem;
32
+ const { triggerFormChange, triggerFormInput } = formItem;
33
33
  if (_onUpdateValue) {
34
34
  call(_onUpdateValue, value);
35
35
  }
@@ -37,8 +37,8 @@ export default defineComponent({
37
37
  call(onUpdateValue, value);
38
38
  }
39
39
  uncontrolledValueRef.value = value;
40
- nTriggerFormChange();
41
- nTriggerFormInput();
40
+ triggerFormChange();
41
+ triggerFormInput();
42
42
  }
43
43
  function getDerivedValue(index, e) {
44
44
  if (props.allowHalf) {
@@ -223,7 +223,7 @@ export default defineComponent({
223
223
  const { mergedDisabledRef, mergedStatusRef } = formItem;
224
224
  function doUpdateValue(value, option) {
225
225
  const { onChange, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
226
- const { nTriggerFormChange, nTriggerFormInput } = formItem;
226
+ const { triggerFormChange, triggerFormInput } = formItem;
227
227
  if (onChange)
228
228
  call(onChange, value, option);
229
229
  if (onUpdateValue)
@@ -232,15 +232,15 @@ export default defineComponent({
232
232
  call(_onUpdateValue, value, option);
233
233
  }
234
234
  uncontrolledValueRef.value = value;
235
- nTriggerFormChange();
236
- nTriggerFormInput();
235
+ triggerFormChange();
236
+ triggerFormInput();
237
237
  }
238
238
  function doBlur(e) {
239
239
  const { onBlur } = props;
240
- const { nTriggerFormBlur } = formItem;
240
+ const { triggerFormBlur } = formItem;
241
241
  if (onBlur)
242
242
  call(onBlur, e);
243
- nTriggerFormBlur();
243
+ triggerFormBlur();
244
244
  }
245
245
  function doClear() {
246
246
  const { onClear } = props;
@@ -249,10 +249,10 @@ export default defineComponent({
249
249
  }
250
250
  function doFocus(e) {
251
251
  const { onFocus, showOnFocus } = props;
252
- const { nTriggerFormFocus } = formItem;
252
+ const { triggerFormFocus } = formItem;
253
253
  if (onFocus)
254
254
  call(onFocus, e);
255
- nTriggerFormFocus();
255
+ triggerFormFocus();
256
256
  if (showOnFocus) {
257
257
  openMenu();
258
258
  }
@@ -169,14 +169,14 @@ export default defineComponent({
169
169
  }
170
170
  function doUpdateValue(value) {
171
171
  const { 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
172
- const { nTriggerFormInput, nTriggerFormChange } = formItem;
172
+ const { triggerFormInput, triggerFormChange } = formItem;
173
173
  if (onUpdateValue)
174
174
  call(onUpdateValue, value);
175
175
  if (_onUpdateValue)
176
176
  call(_onUpdateValue, value);
177
177
  uncontrolledValueRef.value = value;
178
- nTriggerFormInput();
179
- nTriggerFormChange();
178
+ triggerFormInput();
179
+ triggerFormChange();
180
180
  }
181
181
  function dispatchValueUpdate(value) {
182
182
  const { range } = props;
package/es/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';
package/es/styles.js 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';
@@ -80,7 +80,7 @@ export default defineComponent({
80
80
  });
81
81
  function doUpdateValue(value) {
82
82
  const { 'onUpdate:value': _onUpdateValue, onChange, onUpdateValue } = props;
83
- const { nTriggerFormInput, nTriggerFormChange } = formItem;
83
+ const { triggerFormInput, triggerFormChange } = formItem;
84
84
  if (_onUpdateValue)
85
85
  call(_onUpdateValue, value);
86
86
  if (onUpdateValue)
@@ -88,16 +88,16 @@ export default defineComponent({
88
88
  if (onChange)
89
89
  call(onChange, value);
90
90
  uncontrolledValueRef.value = value;
91
- nTriggerFormInput();
92
- nTriggerFormChange();
91
+ triggerFormInput();
92
+ triggerFormChange();
93
93
  }
94
94
  function doFocus() {
95
- const { nTriggerFormFocus } = formItem;
96
- nTriggerFormFocus();
95
+ const { triggerFormFocus } = formItem;
96
+ triggerFormFocus();
97
97
  }
98
98
  function doBlur() {
99
- const { nTriggerFormBlur } = formItem;
100
- nTriggerFormBlur();
99
+ const { triggerFormBlur } = formItem;
100
+ triggerFormBlur();
101
101
  }
102
102
  function handleClick() {
103
103
  if (props.loading || mergedDisabledRef.value)
@@ -92,6 +92,7 @@ export default cB('tag', `
92
92
  cursor: pointer;
93
93
  box-shadow: none;
94
94
  color: var(--u-text-color-checkable);
95
+ padding: 0px 8px;
95
96
  background-color: var(--u-color-checkable);
96
97
  transition: border-color .3s var(--u-bezier);
97
98
  `, [cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-hover-checkable);', [cNotM('checked', 'color: var(--u-text-color-hover-checkable);')]), c('&:focus', `
@@ -101,4 +102,7 @@ export default cB('tag', `
101
102
  transition: border-color .3s var(--u-bezier);`, [cNotM('checked', 'color: var(--u-text-color-pressed-checkable);')])]), cM('checked', `
102
103
  color: var(--u-text-color-checked);
103
104
  background-color: var(--u-color-checked);
104
- `, [cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-checked-hover);'), c('&:focus', 'background-color: var(--u-color-checked-hover);'), c('&:active', 'background-color: var(--u-color-checked-pressed);')])])])]);
105
+ `, [cE('border', `
106
+ border-color: var(--u-color-checked);
107
+ transition: none;
108
+ `), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-checked-hover);'), c('&:focus', 'background-color: var(--u-color-checked-hover);'), c('&:active', 'background-color: var(--u-color-checked-pressed);')])])])]);
@@ -1,7 +1,7 @@
1
1
  import { changeColor } from 'seemly';
2
2
  import { commonLight } from '../../_styles/common';
3
3
  export const self = (vars) => {
4
- const { opacityDisabled, borderRadiusSmall: borderRadius, fontWeightStrong, fontWeight, elementsTertiary, fontBodySmall, fontBodyMedium, textQuaternary, elementsPrimary, elementsSenary, elementsQuinary, textPrimary, elementsQuaternary, transparencySecondary, staticDarkGrey, staticWhite, elementsDarkQuinary, brandPrimary600, brandPrimary500, brandQuaternary600, brandQuaternary500, staticGreen, staticOrange, staticRed, staticBlack } = vars;
4
+ const { opacityDisabled, borderRadiusSmall: borderRadius, fontWeightStrong, fontWeight, elementsTertiary, fontBodySmall, fontBodyMedium, textQuaternary, elementsPrimary, elementsSecondary, elementsSenary, elementsQuinary, textPrimary, elementsQuaternary, transparencySecondary, staticDarkGrey, staticWhite, elementsDarkQuinary, brandPrimary600, brandPrimary500, brandQuaternary600, brandQuaternary500, staticGreen, staticOrange, staticRed, staticBlack } = vars;
5
5
  const borderTagWidth = 2;
6
6
  return {
7
7
  closeIconSizeTiny: '16px',
@@ -36,7 +36,7 @@ export const self = (vars) => {
36
36
  textColorHoverCheckable: textPrimary,
37
37
  textColorPressedCheckable: textPrimary,
38
38
  textColorChecked: textQuaternary,
39
- colorCheckable: elementsTertiary,
39
+ colorCheckable: elementsSecondary,
40
40
  colorHoverCheckable: elementsQuaternary,
41
41
  colorPressedCheckable: elementsQuaternary,
42
42
  colorChecked: elementsPrimary,
@@ -17,6 +17,9 @@ declare const _default: import("vue").DefineComponent<{}, {
17
17
  scrollbarHeight: string;
18
18
  scrollbarBorderRadius: string;
19
19
  opacityDisabled: string;
20
+ brand150: string;
21
+ brand350: string;
22
+ brand550: string;
20
23
  brandPrimary50: string;
21
24
  brandPrimary100: string;
22
25
  brandPrimary200: string;
package/es/themes/dark.js CHANGED
@@ -86,6 +86,7 @@ import { toggleButtonDark } from '../toggle-button/styles';
86
86
  import { accountOptionDark } from '../_internal/account-option/styles';
87
87
  import { flexDark } from '../flex/styles';
88
88
  import { actionCardDark } from '../action-card/styles';
89
+ import { inputOtpDark } from '../styles';
89
90
  export const darkTheme = {
90
91
  name: 'dark',
91
92
  common: commonDark,
@@ -130,6 +131,7 @@ export const darkTheme = {
130
131
  IconWrapper: iconWrapperDark,
131
132
  Image: imageDark,
132
133
  Input: inputDark,
134
+ InputOtp: inputOtpDark,
133
135
  InputNumber: inputNumberDark,
134
136
  LegacyTransfer: legacyTransferDark,
135
137
  Layout: layoutDark,
@@ -88,6 +88,7 @@ import { toggleButtonLight } from '../toggle-button/styles';
88
88
  import { accountOptionLight } from '../_internal/account-option/styles';
89
89
  import { flexLight } from '../flex/styles';
90
90
  import { actionCardLight } from '../action-card/styles';
91
+ import { inputOtpLight } from '../input-otp/styles';
91
92
  export const lightTheme = {
92
93
  name: 'light',
93
94
  common: commonLight,
@@ -132,6 +133,7 @@ export const lightTheme = {
132
133
  IconWrapper: iconWrapperLight,
133
134
  Image: imageLight,
134
135
  Input: inputLight,
136
+ InputOtp: inputOtpLight,
135
137
  InputNumber: inputNumberLight,
136
138
  Layout: layoutLight,
137
139
  LegacyTransfer: legacyTransferLight,
@@ -247,7 +247,7 @@ export default defineComponent({
247
247
  }
248
248
  function doUpdateValue(value) {
249
249
  const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
250
- const { nTriggerFormChange, nTriggerFormInput } = formItem;
250
+ const { triggerFormChange, triggerFormInput } = formItem;
251
251
  const formattedValue = createFormattedValue(value);
252
252
  if (onUpdateValue) {
253
253
  call(onUpdateValue, value, formattedValue);
@@ -259,22 +259,22 @@ export default defineComponent({
259
259
  call(onChange, value, formattedValue);
260
260
  doUpdateFormattedValue(formattedValue, value);
261
261
  uncontrolledValueRef.value = value;
262
- nTriggerFormChange();
263
- nTriggerFormInput();
262
+ triggerFormChange();
263
+ triggerFormInput();
264
264
  }
265
265
  function doFocus(e) {
266
266
  const { onFocus } = props;
267
- const { nTriggerFormFocus } = formItem;
267
+ const { triggerFormFocus } = formItem;
268
268
  if (onFocus)
269
269
  call(onFocus, e);
270
- nTriggerFormFocus();
270
+ triggerFormFocus();
271
271
  }
272
272
  function doBlur(e) {
273
273
  const { onBlur } = props;
274
- const { nTriggerFormBlur } = formItem;
274
+ const { triggerFormBlur } = formItem;
275
275
  if (onBlur)
276
276
  call(onBlur, e);
277
- nTriggerFormBlur();
277
+ triggerFormBlur();
278
278
  }
279
279
  function doConfirm() {
280
280
  const { onConfirm } = props;
@@ -63,7 +63,7 @@ export default defineComponent({
63
63
  const { uncontrolledValueRef, mergedValueRef, targetValueSetRef, valueSetForCheckAllRef, valueSetForUncheckAllRef, valueSetForClearRef, filteredTgtOptionsRef, filteredSrcOptionsRef, targetOptionsRef, canNotSelectAnythingRef, canBeClearedRef, allCheckedRef, srcPatternRef, tgtPatternRef, mergedSrcFilterableRef, handleSrcFilterUpdateValue, handleTgtFilterUpdateValue } = useTransferData(props);
64
64
  function doUpdateValue(value) {
65
65
  const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
66
- const { nTriggerFormInput, nTriggerFormChange } = formItem;
66
+ const { triggerFormInput, triggerFormChange } = formItem;
67
67
  if (onUpdateValue)
68
68
  call(onUpdateValue, value);
69
69
  if (_onUpdateValue)
@@ -71,8 +71,8 @@ export default defineComponent({
71
71
  if (onChange)
72
72
  call(onChange, value);
73
73
  uncontrolledValueRef.value = value;
74
- nTriggerFormInput();
75
- nTriggerFormChange();
74
+ triggerFormInput();
75
+ triggerFormChange();
76
76
  }
77
77
  function handleSourceCheckAll() {
78
78
  doUpdateValue([...valueSetForCheckAllRef.value]);
@@ -70,7 +70,7 @@ export default defineComponent({
70
70
  const menuElRef = ref(null);
71
71
  const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = useConfig(props);
72
72
  const { localeRef } = useLocale('Select');
73
- const { mergedSizeRef, mergedDisabledRef, mergedStatusRef, nTriggerFormBlur, nTriggerFormChange, nTriggerFormFocus, nTriggerFormInput } = useFormItem(props);
73
+ const { mergedSizeRef, mergedDisabledRef, mergedStatusRef, triggerFormBlur, triggerFormChange, triggerFormFocus, triggerFormInput } = useFormItem(props);
74
74
  const uncontrolledValueRef = ref(props.defaultValue);
75
75
  const controlledValueRef = toRef(props, 'value');
76
76
  const mergedValueRef = useMergedState(controlledValueRef, uncontrolledValueRef);
@@ -207,8 +207,8 @@ export default defineComponent({
207
207
  call(_onUpdateValue, value, option, meta);
208
208
  }
209
209
  uncontrolledValueRef.value = value;
210
- nTriggerFormInput();
211
- nTriggerFormChange();
210
+ triggerFormInput();
211
+ triggerFormChange();
212
212
  }
213
213
  function doUpdateIndeterminateKeys(value, option) {
214
214
  const { onUpdateIndeterminateKeys, 'onUpdate:indeterminateKeys': _onUpdateIndeterminateKeys } = props;
@@ -233,14 +233,14 @@ export default defineComponent({
233
233
  const { onFocus } = props;
234
234
  if (onFocus)
235
235
  onFocus(e);
236
- nTriggerFormFocus();
236
+ triggerFormFocus();
237
237
  }
238
238
  function doBlur(e) {
239
239
  closeMenu();
240
240
  const { onBlur } = props;
241
241
  if (onBlur)
242
242
  onBlur(e);
243
- nTriggerFormBlur();
243
+ triggerFormBlur();
244
244
  }
245
245
  function closeMenu() {
246
246
  doUpdateShow(false);
@@ -220,8 +220,8 @@ export default defineComponent({
220
220
  !this.vertical &&
221
221
  !imageCardTypes.includes(listType) &&
222
222
  `${clsPrefix}-upload-file-loader--default`
223
- ] },
224
- h("div", { class: [
223
+ ] }, {
224
+ default: () => (h("div", { class: [
225
225
  `${clsPrefix}-upload-file`,
226
226
  `${clsPrefix}-upload-file--${this.progressStatus}-status`,
227
227
  file.url &&
@@ -247,6 +247,7 @@ export default defineComponent({
247
247
  ? this.$slots['upload-file-subtitle']({ file })
248
248
  : ''))),
249
249
  actionsNode),
250
- this.showProgress && (h("div", { class: `${clsPrefix}-upload-file-overlay` })))));
250
+ this.showProgress && (h("div", { class: `${clsPrefix}-upload-file-overlay` }))))
251
+ }));
251
252
  }
252
253
  });