@sheinx/theme 3.0.0-alpha.9 → 3.0.0-rc.2
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/cjs/alert/token.js +4 -1
- package/cjs/alert/type.d.ts +4 -4
- package/cjs/breadcrumb/token.js +6 -1
- package/cjs/breadcrumb/type.d.ts +16 -16
- package/cjs/button/button.d.ts.map +1 -1
- package/cjs/button/button.js +40 -25
- package/cjs/button/rule.js +1 -1
- package/cjs/button/token.js +248 -26
- package/cjs/button/type.d.ts +116 -26
- package/cjs/button/type.d.ts.map +1 -1
- package/cjs/card/token.js +6 -1
- package/cjs/card/type.d.ts +13 -13
- package/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +6 -0
- package/cjs/cascader/token.js +27 -4
- package/cjs/cascader/type.d.ts +48 -12
- package/cjs/cascader/type.d.ts.map +1 -1
- package/cjs/checkbox/token.js +5 -1
- package/cjs/checkbox/type.d.ts +13 -13
- package/cjs/collapse/token.js +9 -1
- package/cjs/collapse/type.d.ts +25 -25
- package/cjs/common/common.d.ts.map +1 -1
- package/cjs/common/common.js +2 -1
- package/cjs/common/type.d.ts +7 -0
- package/cjs/common/type.d.ts.map +1 -1
- package/cjs/config.d.ts +19 -4
- package/cjs/config.d.ts.map +1 -1
- package/cjs/config.js +50 -10
- package/cjs/date-picker/date-picker.d.ts.map +1 -1
- package/cjs/date-picker/date-picker.js +1 -0
- package/cjs/date-picker/token.js +1 -0
- package/cjs/date-picker/type.d.ts +6 -0
- package/cjs/date-picker/type.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.js +5 -7
- package/cjs/descriptions/rule.js +3 -3
- package/cjs/descriptions/token.js +33 -24
- package/cjs/descriptions/type.d.ts +41 -53
- package/cjs/descriptions/type.d.ts.map +1 -1
- package/cjs/dropdown/dropdown.d.ts.map +1 -1
- package/cjs/dropdown/dropdown.js +6 -3
- package/cjs/dropdown/rule.js +1 -1
- package/cjs/dropdown/token.js +19 -2
- package/cjs/dropdown/type.d.ts +70 -52
- package/cjs/dropdown/type.d.ts.map +1 -1
- package/cjs/form/token.js +8 -2
- package/cjs/form/type.d.ts +11 -11
- package/cjs/hooks/index.d.ts +2 -0
- package/cjs/hooks/index.d.ts.map +1 -0
- package/cjs/hooks/index.js +17 -0
- package/cjs/hooks/useToken/index.d.ts +3 -0
- package/cjs/hooks/useToken/index.d.ts.map +1 -0
- package/cjs/hooks/useToken/index.js +19 -0
- package/cjs/hooks/useToken/use-token.d.ts +6 -0
- package/cjs/hooks/useToken/use-token.d.ts.map +1 -0
- package/cjs/hooks/useToken/use-token.js +37 -0
- package/cjs/hooks/useToken/use-token.type.d.ts +39 -0
- package/cjs/hooks/useToken/use-token.type.d.ts.map +1 -0
- package/cjs/hooks/useToken/use-token.type.js +5 -0
- package/cjs/icon/icon.d.ts +2 -2
- package/cjs/icon/icon.d.ts.map +1 -1
- package/cjs/icon/icon.js +2 -2
- package/cjs/icon/token.js +3 -1
- package/cjs/icon/type.d.ts +1 -1
- package/cjs/image/token.js +2 -1
- package/cjs/image/type.d.ts +1 -1
- package/cjs/index.d.ts +4 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +31 -0
- package/cjs/input/token.js +5 -1
- package/cjs/input/type.d.ts +12 -12
- package/cjs/list/token.js +4 -1
- package/cjs/list/type.d.ts +12 -12
- package/cjs/menu/token.js +8 -1
- package/cjs/menu/type.d.ts +29 -29
- package/cjs/message/token.js +3 -1
- package/cjs/message/type.d.ts +5 -5
- package/cjs/modal/modal.d.ts.map +1 -1
- package/cjs/modal/modal.js +2 -1
- package/cjs/modal/token.js +17 -2
- package/cjs/modal/type.d.ts +34 -28
- package/cjs/modal/type.d.ts.map +1 -1
- package/cjs/popover/token.js +2 -1
- package/cjs/popover/type.d.ts +1 -1
- package/cjs/progress/token.js +6 -1
- package/cjs/progress/type.d.ts +18 -18
- package/cjs/provider/index.d.ts +2 -0
- package/cjs/provider/index.d.ts.map +1 -0
- package/cjs/provider/index.js +1 -0
- package/cjs/provider/theme-provider.d.ts +3 -0
- package/cjs/provider/theme-provider.d.ts.map +1 -0
- package/cjs/provider/theme-provider.js +10 -0
- package/cjs/radio/token.js +8 -1
- package/cjs/radio/type.d.ts +14 -14
- package/cjs/rate/rate.js +1 -1
- package/cjs/rate/token.js +4 -2
- package/cjs/rate/type.d.ts +7 -7
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +2 -0
- package/cjs/select/token.js +10 -2
- package/cjs/select/type.d.ts +23 -11
- package/cjs/select/type.d.ts.map +1 -1
- package/cjs/slider/slider.js +1 -1
- package/cjs/slider/token.js +8 -2
- package/cjs/slider/type.d.ts +25 -25
- package/cjs/slider/type.d.ts.map +1 -1
- package/cjs/spin/token.js +2 -1
- package/cjs/spin/type.d.ts +1 -1
- package/cjs/steps/token.js +2 -1
- package/cjs/steps/type.d.ts +1 -1
- package/cjs/sticky/token.js +1 -1
- package/cjs/sticky/type.d.ts +1 -1
- package/cjs/switch/token.js +6 -1
- package/cjs/switch/type.d.ts +32 -32
- package/cjs/table/token.js +13 -1
- package/cjs/table/type.d.ts +28 -28
- package/cjs/tabs/token.js +6 -1
- package/cjs/tabs/type.d.ts +7 -7
- package/cjs/tag/tag.js +1 -1
- package/cjs/tag/token.js +5 -3
- package/cjs/tag/type.d.ts +169 -169
- package/cjs/textarea/token.js +6 -1
- package/cjs/textarea/type.d.ts +29 -29
- package/cjs/token/figma.js +1032 -258
- package/cjs/token/token.d.ts.map +1 -1
- package/cjs/token/token.js +97 -3
- package/cjs/token/type.d.ts +674 -16
- package/cjs/token/type.d.ts.map +1 -1
- package/cjs/tooltip/token.js +4 -2
- package/cjs/tooltip/tooltip.js +1 -1
- package/cjs/tooltip/type.d.ts +5 -5
- package/cjs/transfer/token.js +3 -1
- package/cjs/transfer/type.d.ts +2 -2
- package/cjs/tree/token.js +5 -1
- package/cjs/tree/type.d.ts +13 -13
- package/cjs/tree-select/token.js +5 -2
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +1 -0
- package/cjs/tree-select/type.d.ts +9 -3
- package/cjs/tree-select/type.d.ts.map +1 -1
- package/cjs/utils/css-var.d.ts +1 -0
- package/cjs/utils/css-var.d.ts.map +1 -1
- package/cjs/utils/css-var.js +5 -2
- package/cjs/utils/notification.d.ts +16 -0
- package/cjs/utils/notification.d.ts.map +1 -0
- package/cjs/utils/notification.js +52 -0
- package/cjs/utils/token-setter.d.ts +57 -0
- package/cjs/utils/token-setter.d.ts.map +1 -0
- package/cjs/utils/token-setter.js +74 -0
- package/esm/alert/token.js +4 -1
- package/esm/alert/type.d.ts +4 -4
- package/esm/breadcrumb/token.js +6 -1
- package/esm/breadcrumb/type.d.ts +16 -16
- package/esm/button/button.d.ts.map +1 -1
- package/esm/button/button.js +40 -25
- package/esm/button/rule.js +1 -1
- package/esm/button/token.js +248 -26
- package/esm/button/type.d.ts +116 -26
- package/esm/button/type.d.ts.map +1 -1
- package/esm/card/token.js +6 -1
- package/esm/card/type.d.ts +13 -13
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +6 -0
- package/esm/cascader/token.js +27 -4
- package/esm/cascader/type.d.ts +48 -12
- package/esm/cascader/type.d.ts.map +1 -1
- package/esm/checkbox/token.js +5 -1
- package/esm/checkbox/type.d.ts +13 -13
- package/esm/collapse/token.js +9 -1
- package/esm/collapse/type.d.ts +25 -25
- package/esm/common/common.d.ts.map +1 -1
- package/esm/common/common.js +2 -1
- package/esm/common/type.d.ts +7 -0
- package/esm/common/type.d.ts.map +1 -1
- package/esm/config.d.ts +19 -4
- package/esm/config.d.ts.map +1 -1
- package/esm/config.js +50 -10
- package/esm/date-picker/date-picker.d.ts.map +1 -1
- package/esm/date-picker/date-picker.js +1 -0
- package/esm/date-picker/token.js +1 -0
- package/esm/date-picker/type.d.ts +6 -0
- package/esm/date-picker/type.d.ts.map +1 -1
- package/esm/descriptions/descriptions.d.ts.map +1 -1
- package/esm/descriptions/descriptions.js +5 -7
- package/esm/descriptions/rule.js +3 -3
- package/esm/descriptions/token.js +33 -24
- package/esm/descriptions/type.d.ts +41 -53
- package/esm/descriptions/type.d.ts.map +1 -1
- package/esm/dropdown/dropdown.d.ts.map +1 -1
- package/esm/dropdown/dropdown.js +6 -3
- package/esm/dropdown/rule.js +1 -1
- package/esm/dropdown/token.js +19 -2
- package/esm/dropdown/type.d.ts +70 -52
- package/esm/dropdown/type.d.ts.map +1 -1
- package/esm/form/token.js +8 -2
- package/esm/form/type.d.ts +11 -11
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +17 -0
- package/esm/hooks/useToken/index.d.ts +3 -0
- package/esm/hooks/useToken/index.d.ts.map +1 -0
- package/esm/hooks/useToken/index.js +19 -0
- package/esm/hooks/useToken/use-token.d.ts +6 -0
- package/esm/hooks/useToken/use-token.d.ts.map +1 -0
- package/esm/hooks/useToken/use-token.js +37 -0
- package/esm/hooks/useToken/use-token.type.d.ts +39 -0
- package/esm/hooks/useToken/use-token.type.d.ts.map +1 -0
- package/esm/hooks/useToken/use-token.type.js +5 -0
- package/esm/icon/icon.d.ts +2 -2
- package/esm/icon/icon.d.ts.map +1 -1
- package/esm/icon/icon.js +2 -2
- package/esm/icon/token.js +3 -1
- package/esm/icon/type.d.ts +1 -1
- package/esm/image/token.js +2 -1
- package/esm/image/type.d.ts +1 -1
- package/esm/index.d.ts +4 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +31 -0
- package/esm/input/token.js +5 -1
- package/esm/input/type.d.ts +12 -12
- package/esm/list/token.js +4 -1
- package/esm/list/type.d.ts +12 -12
- package/esm/menu/token.js +8 -1
- package/esm/menu/type.d.ts +29 -29
- package/esm/message/token.js +3 -1
- package/esm/message/type.d.ts +5 -5
- package/esm/modal/modal.d.ts.map +1 -1
- package/esm/modal/modal.js +2 -1
- package/esm/modal/token.js +17 -2
- package/esm/modal/type.d.ts +34 -28
- package/esm/modal/type.d.ts.map +1 -1
- package/esm/popover/token.js +2 -1
- package/esm/popover/type.d.ts +1 -1
- package/esm/progress/token.js +6 -1
- package/esm/progress/type.d.ts +18 -18
- package/esm/provider/index.d.ts +2 -0
- package/esm/provider/index.d.ts.map +1 -0
- package/esm/provider/index.js +1 -0
- package/esm/provider/theme-provider.d.ts +3 -0
- package/esm/provider/theme-provider.d.ts.map +1 -0
- package/esm/provider/theme-provider.js +10 -0
- package/esm/radio/token.js +8 -1
- package/esm/radio/type.d.ts +14 -14
- package/esm/rate/rate.js +1 -1
- package/esm/rate/token.js +4 -2
- package/esm/rate/type.d.ts +7 -7
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +2 -0
- package/esm/select/token.js +10 -2
- package/esm/select/type.d.ts +23 -11
- package/esm/select/type.d.ts.map +1 -1
- package/esm/slider/slider.js +1 -1
- package/esm/slider/token.js +8 -2
- package/esm/slider/type.d.ts +25 -25
- package/esm/slider/type.d.ts.map +1 -1
- package/esm/spin/token.js +2 -1
- package/esm/spin/type.d.ts +1 -1
- package/esm/steps/token.js +2 -1
- package/esm/steps/type.d.ts +1 -1
- package/esm/sticky/token.js +1 -1
- package/esm/sticky/type.d.ts +1 -1
- package/esm/switch/token.js +6 -1
- package/esm/switch/type.d.ts +32 -32
- package/esm/table/token.js +13 -1
- package/esm/table/type.d.ts +28 -28
- package/esm/tabs/token.js +6 -1
- package/esm/tabs/type.d.ts +7 -7
- package/esm/tag/tag.js +1 -1
- package/esm/tag/token.js +5 -3
- package/esm/tag/type.d.ts +169 -169
- package/esm/textarea/token.js +6 -1
- package/esm/textarea/type.d.ts +29 -29
- package/esm/token/figma.js +1032 -258
- package/esm/token/token.d.ts.map +1 -1
- package/esm/token/token.js +97 -3
- package/esm/token/type.d.ts +674 -16
- package/esm/token/type.d.ts.map +1 -1
- package/esm/tooltip/token.js +4 -2
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/tooltip/type.d.ts +5 -5
- package/esm/transfer/token.js +3 -1
- package/esm/transfer/type.d.ts +2 -2
- package/esm/tree/token.js +5 -1
- package/esm/tree/type.d.ts +13 -13
- package/esm/tree-select/token.js +5 -2
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +1 -0
- package/esm/tree-select/type.d.ts +9 -3
- package/esm/tree-select/type.d.ts.map +1 -1
- package/esm/utils/css-var.d.ts +1 -0
- package/esm/utils/css-var.d.ts.map +1 -1
- package/esm/utils/css-var.js +5 -2
- package/esm/utils/notification.d.ts +16 -0
- package/esm/utils/notification.d.ts.map +1 -0
- package/esm/utils/notification.js +52 -0
- package/esm/utils/token-setter.d.ts +57 -0
- package/esm/utils/token-setter.d.ts.map +1 -0
- package/esm/utils/token-setter.js +74 -0
- package/package.json +5 -2
package/esm/cascader/type.d.ts
CHANGED
|
@@ -161,6 +161,12 @@ export interface CascaderTokens {
|
|
|
161
161
|
* @description 级联选择器清除按钮的内边距
|
|
162
162
|
*/
|
|
163
163
|
cascaderClearPadding: string;
|
|
164
|
+
/**
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @token Neutral-text-4
|
|
167
|
+
* @description 级联选择器清除按钮的鼠标移入时的颜色
|
|
168
|
+
*/
|
|
169
|
+
cascaderClearHoverColor: string;
|
|
164
170
|
/**
|
|
165
171
|
* @type {string}
|
|
166
172
|
* @token Brand-6
|
|
@@ -182,7 +188,7 @@ export interface CascaderTokens {
|
|
|
182
188
|
/**
|
|
183
189
|
* @type {string}
|
|
184
190
|
* @token Brand-2
|
|
185
|
-
* @description
|
|
191
|
+
* @description 级联选择器鼠标聚焦时的阴影
|
|
186
192
|
*/
|
|
187
193
|
cascaderFocusShadow: string;
|
|
188
194
|
/**
|
|
@@ -212,33 +218,51 @@ export interface CascaderTokens {
|
|
|
212
218
|
/**
|
|
213
219
|
* @type {string}
|
|
214
220
|
* @token Radius-4
|
|
215
|
-
* @description
|
|
221
|
+
* @description 级联选择器展示框文本边框圆角
|
|
216
222
|
*/
|
|
217
223
|
cascaderResultTextBorderRadius: string;
|
|
218
224
|
/**
|
|
219
225
|
* @type {string}
|
|
220
226
|
* @token Padding-4
|
|
221
|
-
* @description
|
|
227
|
+
* @description 级联选择器展示框文本内边距(水平方向)
|
|
222
228
|
*/
|
|
223
229
|
cascaderResultTextPaddingX: string;
|
|
224
230
|
/**
|
|
225
231
|
* @type {string}
|
|
226
232
|
* @token Padding-4
|
|
227
|
-
* @description
|
|
233
|
+
* @description 级联选择器展示框文本小尺寸内边距(水平方向)
|
|
228
234
|
*/
|
|
229
235
|
cascaderResultTextSmallPaddingX: string;
|
|
230
236
|
/**
|
|
231
237
|
* @type {string}
|
|
232
238
|
* @token Padding-10
|
|
233
|
-
* @description
|
|
239
|
+
* @description 级联选择器展示框文本大尺寸内边距(水平方向)
|
|
234
240
|
*/
|
|
235
241
|
cascaderResultTextLargePaddingX: string;
|
|
236
242
|
/**
|
|
237
243
|
* @type {string}
|
|
238
244
|
* @token Brand-1
|
|
239
|
-
* @description
|
|
245
|
+
* @description 级联选择器展示框文本鼠标点击时的背景颜色
|
|
240
246
|
*/
|
|
241
247
|
cascaderResultTextActiveBackgroundColor: string;
|
|
248
|
+
/**
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @token Brand-5
|
|
251
|
+
* @description 级联选择器展示框选项鼠标移入时的颜色
|
|
252
|
+
*/
|
|
253
|
+
cascaderResultItemHoverColor: string;
|
|
254
|
+
/**
|
|
255
|
+
* @type {string}
|
|
256
|
+
* @token Brand-7
|
|
257
|
+
* @description 级联选择器展示框选项鼠标点击时的颜色
|
|
258
|
+
*/
|
|
259
|
+
cascaderResultItemActiveColor: string;
|
|
260
|
+
/**
|
|
261
|
+
* @type {string}
|
|
262
|
+
* @token Brand-6
|
|
263
|
+
* @description 级联选择器展示框选项选中状态的颜色
|
|
264
|
+
*/
|
|
265
|
+
cascaderResultItemCheckedColor: string;
|
|
242
266
|
/**
|
|
243
267
|
* @type {string}
|
|
244
268
|
* @token Danger-6
|
|
@@ -248,33 +272,39 @@ export interface CascaderTokens {
|
|
|
248
272
|
/**
|
|
249
273
|
* @type {string}
|
|
250
274
|
* @token Danger-1
|
|
251
|
-
* @description
|
|
275
|
+
* @description 级联选择器错误状态的鼠标聚焦时的阴影
|
|
252
276
|
*/
|
|
253
277
|
cascaderErrorFocusShadow: string;
|
|
254
278
|
/**
|
|
255
279
|
* @type {string}
|
|
256
280
|
* @token Neutral-text-5
|
|
257
|
-
* @description
|
|
281
|
+
* @description 级联选择器下拉面板颜色
|
|
258
282
|
*/
|
|
259
283
|
cascaderPanelColor: string;
|
|
260
284
|
/**
|
|
261
285
|
* @type {string}
|
|
262
286
|
* @token Neutral-fill-1
|
|
263
|
-
* @description
|
|
287
|
+
* @description 级联选择器下拉面板背景颜色
|
|
264
288
|
*/
|
|
265
289
|
cascaderPanelBackgroundColor: string;
|
|
266
290
|
/**
|
|
267
291
|
* @type {string}
|
|
268
292
|
* @token Shadow-2
|
|
269
|
-
* @description
|
|
293
|
+
* @description 级联选择器下拉面板阴影
|
|
270
294
|
*/
|
|
271
295
|
cascaderPanelShadow: string;
|
|
272
296
|
/**
|
|
273
297
|
* @type {string}
|
|
274
298
|
* @token Radius-4
|
|
275
|
-
* @description
|
|
299
|
+
* @description 级联选择器下拉面板圆角
|
|
276
300
|
*/
|
|
277
301
|
cascaderPanelRadius: string;
|
|
302
|
+
/**
|
|
303
|
+
* @type {string}
|
|
304
|
+
* @token Neutral-border-1
|
|
305
|
+
* @description 级联选择器下拉面板边框
|
|
306
|
+
*/
|
|
307
|
+
cascaderPanelBorder: string;
|
|
278
308
|
/**
|
|
279
309
|
* @type {string}
|
|
280
310
|
* @token Size-16
|
|
@@ -329,6 +359,12 @@ export interface CascaderTokens {
|
|
|
329
359
|
* @description 级联选择器选项内部容器的边框圆角
|
|
330
360
|
*/
|
|
331
361
|
cascaderOptionInnerBorderRadius: string;
|
|
362
|
+
/**
|
|
363
|
+
* @type {string}
|
|
364
|
+
* @token Neutral-text-4
|
|
365
|
+
* @description 级联选择器选项图标颜色
|
|
366
|
+
*/
|
|
367
|
+
cascaderOptionIconColor: string;
|
|
332
368
|
/**
|
|
333
369
|
* @type {string}
|
|
334
370
|
* @token Neutral-fill-2
|
|
@@ -410,7 +446,7 @@ export interface CascaderTokens {
|
|
|
410
446
|
/**
|
|
411
447
|
* @type {string}
|
|
412
448
|
* @token Neutral-border-1
|
|
413
|
-
* @description
|
|
449
|
+
* @description 级联选择器下拉列表的边框颜色
|
|
414
450
|
*/
|
|
415
451
|
cascaderListBorderColor: string;
|
|
416
452
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,gCAAgC,EAAE,MAAM,CAAC;IACzC;;;;OAIG;IACH,gCAAgC,EAAE,MAAM,CAAC;IACzC;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;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ACnC;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC"}
|
package/esm/checkbox/token.js
CHANGED
package/esm/checkbox/type.d.ts
CHANGED
|
@@ -68,37 +68,37 @@ export interface CheckboxTokens {
|
|
|
68
68
|
/**
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @token Brand-6
|
|
71
|
-
* @description
|
|
71
|
+
* @description 单选框图标选中状态的边框颜色
|
|
72
72
|
*/
|
|
73
73
|
checkboxIconCheckedBorderColor: string;
|
|
74
74
|
/**
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @token Brand-6
|
|
77
|
-
* @description
|
|
77
|
+
* @description 单选框图标选中状态的背景颜色
|
|
78
78
|
*/
|
|
79
79
|
checkboxIconCheckedBackgroundColor: string;
|
|
80
80
|
/**
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @token Neutral-fill-1
|
|
83
|
-
* @description
|
|
83
|
+
* @description 单选框图标选中状态的颜色
|
|
84
84
|
*/
|
|
85
85
|
checkboxIconCheckedColor: string;
|
|
86
86
|
/**
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @token Brand-3
|
|
89
|
-
* @description
|
|
89
|
+
* @description 单选框图标选中状态的禁用时的边框颜色
|
|
90
90
|
*/
|
|
91
91
|
checkboxIconCheckedDisabledBorderColor: string;
|
|
92
92
|
/**
|
|
93
93
|
* @type {string}
|
|
94
94
|
* @token Brand-3
|
|
95
|
-
* @description
|
|
95
|
+
* @description 单选框图标选中状态的禁用时的背景颜色
|
|
96
96
|
*/
|
|
97
97
|
checkboxIconCheckedDisabledBackgroundColor: string;
|
|
98
98
|
/**
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @token Neutral-fill-1
|
|
101
|
-
* @description
|
|
101
|
+
* @description 单选框图标选中状态的禁用时的颜色
|
|
102
102
|
*/
|
|
103
103
|
checkboxIconCheckedDisabledColor: string;
|
|
104
104
|
/**
|
|
@@ -110,7 +110,7 @@ export interface CheckboxTokens {
|
|
|
110
110
|
/**
|
|
111
111
|
* @type {string}
|
|
112
112
|
* @token Neutral-fill-2
|
|
113
|
-
* @description
|
|
113
|
+
* @description 单选框图标圆形填充色
|
|
114
114
|
*/
|
|
115
115
|
checkboxIconCircleFill: string;
|
|
116
116
|
/**
|
|
@@ -122,19 +122,19 @@ export interface CheckboxTokens {
|
|
|
122
122
|
/**
|
|
123
123
|
* @type {string}
|
|
124
124
|
* @token Neutral-text-5
|
|
125
|
-
* @description
|
|
125
|
+
* @description 单选框标签字体颜色
|
|
126
126
|
*/
|
|
127
127
|
checkboxLabelFontColor: string;
|
|
128
128
|
/**
|
|
129
129
|
* @type {string}
|
|
130
130
|
* @token 14/regular
|
|
131
|
-
* @description
|
|
131
|
+
* @description 单选框标签字体字号
|
|
132
132
|
*/
|
|
133
133
|
checkboxLabelFontSize: string;
|
|
134
134
|
/**
|
|
135
135
|
* @type {string}
|
|
136
136
|
* @token Neutral-text-2
|
|
137
|
-
* @description
|
|
137
|
+
* @description 单选框标签禁用时的字体颜色
|
|
138
138
|
*/
|
|
139
139
|
checkboxLabelDisabledFontColor: string;
|
|
140
140
|
/**
|
|
@@ -146,7 +146,7 @@ export interface CheckboxTokens {
|
|
|
146
146
|
/**
|
|
147
147
|
* @type {string}
|
|
148
148
|
* @token Margin-12
|
|
149
|
-
* @description
|
|
149
|
+
* @description 单选框块级之间间距
|
|
150
150
|
*/
|
|
151
151
|
checkboxBlockGap: string;
|
|
152
152
|
/**
|
|
@@ -158,7 +158,7 @@ export interface CheckboxTokens {
|
|
|
158
158
|
/**
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @token 12/regular
|
|
161
|
-
* @description
|
|
161
|
+
* @description 单选框小尺寸标签字体字号
|
|
162
162
|
*/
|
|
163
163
|
checkboxSmallLabelFontSize: string;
|
|
164
164
|
/**
|
|
@@ -170,7 +170,7 @@ export interface CheckboxTokens {
|
|
|
170
170
|
/**
|
|
171
171
|
* @type {string}
|
|
172
172
|
* @token 16/regular
|
|
173
|
-
* @description
|
|
173
|
+
* @description 单选框大尺寸标签字体字号
|
|
174
174
|
*/
|
|
175
175
|
checkboxLargeLabelFontSize: string;
|
|
176
176
|
}
|
package/esm/collapse/token.js
CHANGED
|
@@ -9,7 +9,15 @@
|
|
|
9
9
|
* 描述词典变量名称为 组件名称 + TokenDescription。请勿修改变量命名,否则将导致 token 无法生成。
|
|
10
10
|
*/
|
|
11
11
|
var collapseTokenDescription = {
|
|
12
|
-
collapse: '折叠面板'
|
|
12
|
+
collapse: '折叠面板',
|
|
13
|
+
extra: '右侧附加内容',
|
|
14
|
+
wrapper: '整体容器(包含头部内容)',
|
|
15
|
+
gap: '间距',
|
|
16
|
+
header: '头部区域',
|
|
17
|
+
weight: '字重',
|
|
18
|
+
content: '内部容器',
|
|
19
|
+
left: '(左侧)',
|
|
20
|
+
right: '(右侧)'
|
|
13
21
|
};
|
|
14
22
|
|
|
15
23
|
/**
|
package/esm/collapse/type.d.ts
CHANGED
|
@@ -14,151 +14,151 @@ export interface CollapseTokens {
|
|
|
14
14
|
/**
|
|
15
15
|
* @type {string}
|
|
16
16
|
* @token Margin-24
|
|
17
|
-
* @description
|
|
17
|
+
* @description 折叠面板右侧附加内容外边距
|
|
18
18
|
*/
|
|
19
19
|
collapseExtraMargin: string;
|
|
20
20
|
/**
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @token Border-1
|
|
23
|
-
* @description
|
|
23
|
+
* @description 折叠面板整体容器(包含头部内容)边框字号
|
|
24
24
|
*/
|
|
25
25
|
collapseWrapperBorderSize: string;
|
|
26
26
|
/**
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @token Radius-4
|
|
29
|
-
* @description
|
|
29
|
+
* @description 折叠面板整体容器(包含头部内容)边框圆角
|
|
30
30
|
*/
|
|
31
31
|
collapseWrapperBorderRadius: string;
|
|
32
32
|
/**
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @token Size-12
|
|
35
|
-
* @description
|
|
35
|
+
* @description 折叠面板整体容器(包含头部内容)间距
|
|
36
36
|
*/
|
|
37
37
|
collapseWrapperGap: string;
|
|
38
38
|
/**
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @token Padding-16
|
|
41
|
-
* @description
|
|
41
|
+
* @description 折叠面板整体容器(包含头部内容)内边距(水平方向)
|
|
42
42
|
*/
|
|
43
43
|
collapseWrapperPaddingX: string;
|
|
44
44
|
/**
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @token Padding-12
|
|
47
|
-
* @description
|
|
47
|
+
* @description 折叠面板整体容器(包含头部内容)内边距(垂直方向)
|
|
48
48
|
*/
|
|
49
49
|
collapseWrapperPaddingY: string;
|
|
50
50
|
/**
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @token Size-11
|
|
53
|
-
* @description
|
|
53
|
+
* @description 折叠面板头部区域行高度
|
|
54
54
|
*/
|
|
55
55
|
collapseHeaderLineHeight: string;
|
|
56
56
|
/**
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @token Size-4
|
|
59
|
-
* @description
|
|
59
|
+
* @description 折叠面板头部区域间距
|
|
60
60
|
*/
|
|
61
61
|
collapseHeaderGap: string;
|
|
62
62
|
/**
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @token 14/regular
|
|
65
|
-
* @description
|
|
65
|
+
* @description 折叠面板头部区域字体字号
|
|
66
66
|
*/
|
|
67
67
|
collapseHeaderFontSize: string;
|
|
68
68
|
/**
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @token 400
|
|
71
|
-
* @description
|
|
71
|
+
* @description 折叠面板头部区域字重
|
|
72
72
|
*/
|
|
73
73
|
collapseHeaderWeight: string;
|
|
74
74
|
/**
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @token Size-7
|
|
77
|
-
* @description
|
|
77
|
+
* @description 折叠面板头部区域图标宽度
|
|
78
78
|
*/
|
|
79
79
|
collapseHeaderIconWidth: string;
|
|
80
80
|
/**
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @token Size-5
|
|
83
|
-
* @description
|
|
83
|
+
* @description 折叠面板头部区域右侧附加内容间距
|
|
84
84
|
*/
|
|
85
85
|
collapseHeaderExtraGap: string;
|
|
86
86
|
/**
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @token Size-11
|
|
89
|
-
* @description
|
|
89
|
+
* @description 折叠面板内部容器行高度
|
|
90
90
|
*/
|
|
91
91
|
collapseContentLineHeight: string;
|
|
92
92
|
/**
|
|
93
93
|
* @type {string}
|
|
94
94
|
* @token Size-12
|
|
95
|
-
* @description
|
|
95
|
+
* @description 折叠面板内部容器间距
|
|
96
96
|
*/
|
|
97
97
|
collapseContentGap: string;
|
|
98
98
|
/**
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @token Padding-12
|
|
101
|
-
* @description
|
|
101
|
+
* @description 折叠面板内部容器内边距(垂直方向)
|
|
102
102
|
*/
|
|
103
103
|
collapseContentPaddingY: string;
|
|
104
104
|
/**
|
|
105
105
|
* @type {string}
|
|
106
106
|
* @token 14/regular
|
|
107
|
-
* @description
|
|
107
|
+
* @description 折叠面板内部容器字体字号
|
|
108
108
|
*/
|
|
109
109
|
collapseContentFontSize: string;
|
|
110
110
|
/**
|
|
111
111
|
* @type {string}
|
|
112
112
|
* @token 400
|
|
113
|
-
* @description
|
|
113
|
+
* @description 折叠面板内部容器字重
|
|
114
114
|
*/
|
|
115
115
|
collapseContentWeight: string;
|
|
116
116
|
/**
|
|
117
117
|
* @type {string}
|
|
118
118
|
* @token Size-19
|
|
119
|
-
* @description
|
|
119
|
+
* @description 折叠面板内部容器内边距(左侧)
|
|
120
120
|
*/
|
|
121
121
|
collapseContentPaddingLeft: string;
|
|
122
122
|
/**
|
|
123
123
|
* @type {string}
|
|
124
124
|
* @token Padding-16
|
|
125
|
-
* @description
|
|
125
|
+
* @description 折叠面板内部容器内边距(右侧)
|
|
126
126
|
*/
|
|
127
127
|
collapseContentPaddingRight: string;
|
|
128
128
|
/**
|
|
129
129
|
* @type {string}
|
|
130
130
|
* @token Neutral-border-1
|
|
131
|
-
* @description
|
|
131
|
+
* @description 折叠面板整体容器(包含头部内容)边框颜色
|
|
132
132
|
*/
|
|
133
133
|
collapseWrapperBorderColor: string;
|
|
134
134
|
/**
|
|
135
135
|
* @type {string}
|
|
136
136
|
* @token Neutral-border-1
|
|
137
|
-
* @description
|
|
137
|
+
* @description 折叠面板整体容器(包含头部内容)颜色
|
|
138
138
|
*/
|
|
139
139
|
collapseWrapperColor: string;
|
|
140
140
|
/**
|
|
141
141
|
* @type {string}
|
|
142
142
|
* @token Neutral-fill-1
|
|
143
|
-
* @description
|
|
143
|
+
* @description 折叠面板整体容器(包含头部内容)背景颜色
|
|
144
144
|
*/
|
|
145
145
|
collapseWrapperBackgroundColor: string;
|
|
146
146
|
/**
|
|
147
147
|
* @type {string}
|
|
148
148
|
* @token Neutral-text-5
|
|
149
|
-
* @description
|
|
149
|
+
* @description 折叠面板头部区域颜色
|
|
150
150
|
*/
|
|
151
151
|
collapseHeaderColor: string;
|
|
152
152
|
/**
|
|
153
153
|
* @type {string}
|
|
154
154
|
* @token Neutral-text-4
|
|
155
|
-
* @description
|
|
155
|
+
* @description 折叠面板内部容器颜色
|
|
156
156
|
*/
|
|
157
157
|
collapseContentColor: string;
|
|
158
158
|
/**
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @token Neutral-fill-2
|
|
161
|
-
* @description
|
|
161
|
+
* @description 折叠面板内部容器背景颜色
|
|
162
162
|
*/
|
|
163
163
|
collapseContentBackgroundColor: string;
|
|
164
164
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,QAAA,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,QAAA,MAAM,MAAM,EAAE,YAKb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/esm/common/common.js
CHANGED
|
@@ -7,7 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var common = {
|
|
8
8
|
lineHeightDynamic: 'Line-height-dynamic',
|
|
9
9
|
defaultBorder: 'Border-1',
|
|
10
|
-
iconCirclePadding: 'Padding-4'
|
|
10
|
+
iconCirclePadding: 'Padding-4',
|
|
11
|
+
transparent: 'transparent'
|
|
11
12
|
};
|
|
12
13
|
var _default = common;
|
|
13
14
|
exports.default = _default;
|
package/esm/common/type.d.ts
CHANGED
|
@@ -20,5 +20,12 @@ export interface CommonTokens {
|
|
|
20
20
|
* @description icon 悬浮后的圆形背景边距
|
|
21
21
|
*/
|
|
22
22
|
iconCirclePadding: string;
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @categoty string
|
|
26
|
+
* @default 'transparent'
|
|
27
|
+
* @description 透明
|
|
28
|
+
*/
|
|
29
|
+
transparent: string;
|
|
23
30
|
}
|
|
24
31
|
//# sourceMappingURL=type.d.ts.map
|
package/esm/common/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/esm/config.d.ts
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import Notification from './utils/notification';
|
|
2
|
+
interface ConfigOption {
|
|
2
3
|
/**
|
|
3
|
-
* @
|
|
4
|
+
* @cn css 变量的固定前缀
|
|
5
|
+
* @en The fixed prefix of the css variable
|
|
4
6
|
* @default '--'
|
|
5
|
-
* @description css var prefix
|
|
6
7
|
*/
|
|
7
8
|
cssvarPrefix?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @cn css 变量的前缀
|
|
11
|
+
* @en The prefix of the css variable
|
|
12
|
+
* @default 'soui'
|
|
13
|
+
*/
|
|
14
|
+
prefix?: string;
|
|
8
15
|
}
|
|
9
|
-
export declare const
|
|
16
|
+
export declare const noti: Notification;
|
|
17
|
+
export declare type ObjectType<V = any> = {
|
|
18
|
+
[name: string]: V;
|
|
19
|
+
};
|
|
20
|
+
export declare const entries: (obj: ObjectType) => any[][];
|
|
21
|
+
export declare function set<Key extends keyof ConfigOption>(name: Key, value: ConfigOption[Key]): void;
|
|
22
|
+
export declare const setConfig: (options: Partial<ConfigOption>) => void;
|
|
23
|
+
export declare const getConfig: () => {
|
|
24
|
+
prefix: string;
|
|
10
25
|
cssvarPrefix: string;
|
|
11
26
|
};
|
|
12
27
|
export {};
|
package/esm/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAEhD,UAAU,YAAY;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,cAAqB,CAAC;AAOvC,oBAAY,UAAU,CAAC,CAAC,GAAG,GAAG,IAAI;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,CAAA;CAAE,CAAC;AAExD,eAAO,MAAM,OAAO,QAAS,UAAU,YAItC,CAAC;AAEF,wBAAgB,GAAG,CAAC,GAAG,SAAS,MAAM,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,QAGtF;AAED,eAAO,MAAM,SAAS,YAAa,QAAQ,YAAY,CAAC,SAIvD,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAErB,CAAC"}
|
package/esm/config.js
CHANGED
|
@@ -1,20 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.array.
|
|
4
|
-
require("core-js/modules/web.dom-collections.
|
|
5
|
-
require("core-js/modules/es.
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
5
|
+
require("core-js/modules/es.array.slice.js");
|
|
6
|
+
require("core-js/modules/es.array.from.js");
|
|
7
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
+
require("core-js/modules/es.symbol.description.js");
|
|
6
9
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
7
10
|
Object.defineProperty(exports, "__esModule", {
|
|
8
11
|
value: true
|
|
9
12
|
});
|
|
13
|
+
exports.noti = exports.getConfig = exports.entries = void 0;
|
|
14
|
+
exports.set = set;
|
|
10
15
|
exports.setConfig = void 0;
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
16
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
+
require("core-js/modules/es.array.map.js");
|
|
18
|
+
var _notification = _interopRequireDefault(require("./utils/notification"));
|
|
19
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
20
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22
|
+
var noti = new _notification.default();
|
|
23
|
+
exports.noti = noti;
|
|
24
|
+
var config = {
|
|
25
|
+
prefix: 'soui',
|
|
15
26
|
cssvarPrefix: '--'
|
|
16
27
|
};
|
|
17
|
-
var
|
|
18
|
-
|
|
28
|
+
var entries = function entries(obj) {
|
|
29
|
+
if (!obj) return [];
|
|
30
|
+
var keys = Object.keys(obj);
|
|
31
|
+
return keys.map(function (key) {
|
|
32
|
+
return [key, obj[key]];
|
|
33
|
+
});
|
|
19
34
|
};
|
|
20
|
-
exports.
|
|
35
|
+
exports.entries = entries;
|
|
36
|
+
function set(name, value) {
|
|
37
|
+
if (value !== undefined && name in config) config[name] = value;
|
|
38
|
+
noti.dispatch(name);
|
|
39
|
+
}
|
|
40
|
+
var setConfig = function setConfig(options) {
|
|
41
|
+
var _iterator = _createForOfIteratorHelper(entries(options)),
|
|
42
|
+
_step;
|
|
43
|
+
try {
|
|
44
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
45
|
+
var _step$value = (0, _slicedToArray2.default)(_step.value, 2),
|
|
46
|
+
key = _step$value[0],
|
|
47
|
+
value = _step$value[1];
|
|
48
|
+
set(key, value);
|
|
49
|
+
}
|
|
50
|
+
} catch (err) {
|
|
51
|
+
_iterator.e(err);
|
|
52
|
+
} finally {
|
|
53
|
+
_iterator.f();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.setConfig = setConfig;
|
|
57
|
+
var getConfig = function getConfig() {
|
|
58
|
+
return config;
|
|
59
|
+
};
|
|
60
|
+
exports.getConfig = getConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,gBAuGvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -51,6 +51,7 @@ var datePickerTokens = {
|
|
|
51
51
|
datePickerPanelShadow: 'Shadow-2',
|
|
52
52
|
datePickerPanelRadius: 'Radius-4',
|
|
53
53
|
datePickerPanelMargin: 'Margin-24',
|
|
54
|
+
datePickerPanelBorder: 'Neutral-border-1',
|
|
54
55
|
datePickerPanelHeaderFontSize: '14/regular',
|
|
55
56
|
datePickerPanelHeaderPaddingX: 'Padding-12',
|
|
56
57
|
datePickerPanelHeaderPaddingY: 'Padding-8',
|
package/esm/date-picker/token.js
CHANGED
|
@@ -257,6 +257,12 @@ export interface DatePickerTokens {
|
|
|
257
257
|
* @description 日期选择器面板外边距
|
|
258
258
|
*/
|
|
259
259
|
datePickerPanelMargin: string;
|
|
260
|
+
/**
|
|
261
|
+
* @type {string}
|
|
262
|
+
* @token Neutral-border-1
|
|
263
|
+
* @description 日期选择器面板边框
|
|
264
|
+
*/
|
|
265
|
+
datePickerPanelBorder: string;
|
|
260
266
|
/**
|
|
261
267
|
* @type {string}
|
|
262
268
|
* @token 14/regular
|