@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
@@ -4,13 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  const cssr_1 = require("../../../_utils/cssr");
7
- exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('list', `
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
- border-radius: var(--u-border-radius);
27
- `, [(0, cssr_1.cB)('list-item', [(0, cssr_1.c)('&:first-child', `
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
- padding-left: 0;
57
- padding-right: 0;
58
- `, [(0, cssr_1.cE)('main', `
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
- align-items: stretch;
83
+ gap: 4px;
85
84
  `, [(0, cssr_1.cM)('right', `
86
- margin-left: auto;
87
85
  text-align: right;
88
- align-items: flex-end;
89
- `, [(0, cssr_1.cE)('title', `
90
- font-weight: 600;
91
- `)]), (0, cssr_1.c)('+', [(0, cssr_1.cE)('content', `
92
- margin-left: 24px;
93
- flex-grow: 0;
94
- `)])]), (0, cssr_1.cE)('text', `
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
- margin-bottom: 4px;
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
- padding: 12px 0;
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: flex;
104
+ display: none;
126
105
  align-items: center;
127
- `)]), (0, cssr_1.cM)('description-first', [(0, cssr_1.cE)('title', `
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.cM)('loading-skeleton', [(0, cssr_1.cE)('content', `
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
- 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>;
@@ -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, iconMedium, fontBodyLarge, lineHeightBodyLarge, lineHeightBodyMedium, textSecondary, iconSmall, elementsQuaternary, textTertiary, textPrimary, fontBodyMedium, containerPrimary, elementsTertiary } = vars;
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
- fontSize: fontBodyMedium
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 { nTriggerFormChange, nTriggerFormInput } = formItem;
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
- nTriggerFormInput();
130
- nTriggerFormChange();
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 { nTriggerFormFocus } = formItem;
248
- nTriggerFormFocus();
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 { nTriggerFormBlur } = formItem;
263
- nTriggerFormBlur();
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, nTriggerFormChange, nTriggerFormInput, nTriggerFormBlur, nTriggerFormFocus } = (0, _mixins_1.useFormItem)(props);
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
- nTriggerFormChange();
100
- nTriggerFormInput();
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
- nTriggerFormFocus();
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
- nTriggerFormBlur();
116
+ triggerFormBlur();
117
117
  }
118
118
  (0, vue_1.provide)(_internal_1.radioGroupInjectionKey, {
119
119
  mergedClsPrefixRef,
@@ -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 { nTriggerFormChange, nTriggerFormInput } = formItem;
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
- nTriggerFormChange();
47
- nTriggerFormInput();
46
+ triggerFormChange();
47
+ triggerFormInput();
48
48
  }
49
49
  function getDerivedValue(index, e) {
50
50
  if (props.allowHalf) {
@@ -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 { nTriggerFormChange, nTriggerFormInput } = formItem;
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
- nTriggerFormChange();
242
- nTriggerFormInput();
241
+ triggerFormChange();
242
+ triggerFormInput();
243
243
  }
244
244
  function doBlur(e) {
245
245
  const { onBlur } = props;
246
- const { nTriggerFormBlur } = formItem;
246
+ const { triggerFormBlur } = formItem;
247
247
  if (onBlur)
248
248
  (0, _utils_1.call)(onBlur, e);
249
- nTriggerFormBlur();
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 { nTriggerFormFocus } = formItem;
258
+ const { triggerFormFocus } = formItem;
259
259
  if (onFocus)
260
260
  (0, _utils_1.call)(onFocus, e);
261
- nTriggerFormFocus();
261
+ triggerFormFocus();
262
262
  if (showOnFocus) {
263
263
  openMenu();
264
264
  }
@@ -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 { nTriggerFormInput, nTriggerFormChange } = formItem;
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
- nTriggerFormInput();
185
- nTriggerFormChange();
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';