@digitalc/dxp-ui 0.0.5-alpha.15 → 0.0.5-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -47
- package/es/assets/token.json +128 -102
- package/es/components/Accordion/designTokens.d.ts +3 -3
- package/es/components/Accordion/designTokens.js +22 -14
- package/es/components/Accordion/index.js +8 -4
- package/es/components/Amount/designTokens.d.ts +2 -2
- package/es/components/Amount/designTokens.js +12 -8
- package/es/components/Amount/index.d.ts +3 -10
- package/es/components/Amount/index.js +122 -136
- package/es/components/Button/designTokens.d.ts +18 -3
- package/es/components/Button/designTokens.js +136 -122
- package/es/components/Button/index.d.ts +16 -5
- package/es/components/Button/index.js +89 -94
- package/es/components/Button/style/index.less +1 -1
- package/es/components/Card/designTokens.d.ts +9 -0
- package/es/components/Card/designTokens.js +14 -0
- package/es/components/Card/index.d.ts +15 -0
- package/es/components/Card/index.js +66 -0
- package/es/components/Card/style/index.less +45 -0
- package/es/components/Card/style/variables.less +4 -0
- package/es/components/Chip/designTokens.d.ts +2 -2
- package/es/components/Chip/designTokens.js +25 -21
- package/es/components/Chip/index.js +9 -8
- package/es/components/Divider/designTokens.d.ts +4 -0
- package/es/components/Divider/designTokens.js +9 -0
- package/es/components/Divider/index.d.ts +3 -8
- package/es/components/Divider/index.js +31 -49
- package/es/components/Drawer/designTokens.d.ts +2 -2
- package/es/components/Drawer/designTokens.js +30 -26
- package/es/components/Drawer/index.d.ts +6 -2
- package/es/components/Drawer/index.js +71 -68
- package/es/components/Drawer/style/index.less +13 -7
- package/es/components/GlobalTokenProvider/index.d.ts +11 -0
- package/es/components/GlobalTokenProvider/index.js +16 -0
- package/es/components/Icon/designTokens.d.ts +3 -3
- package/es/components/Icon/designTokens.js +11 -6
- package/es/components/Icon/index.js +6 -2
- package/es/components/IconButton/designTokens.d.ts +3 -4
- package/es/components/IconButton/designTokens.js +38 -32
- package/es/components/IconButton/index.d.ts +1 -1
- package/es/components/IconButton/index.js +7 -7
- package/es/components/Image/index.d.ts +1 -1
- package/es/components/Image/index.js +4 -3
- package/es/components/ListItem/designTokens.d.ts +4 -2
- package/es/components/ListItem/designTokens.js +36 -30
- package/es/components/ListItem/index.d.ts +12 -2
- package/es/components/ListItem/index.js +95 -30
- package/es/components/ListItem/style/index.less +42 -9
- package/es/components/Modal/designTokens.d.ts +11 -20
- package/es/components/Modal/designTokens.js +39 -30
- package/es/components/Modal/index.js +24 -11
- package/es/components/Navigation/designTokens.d.ts +9 -8
- package/es/components/Navigation/designTokens.js +24 -18
- package/es/components/Navigation/index.d.ts +1 -0
- package/es/components/Navigation/index.js +14 -10
- package/es/components/Notification/designTokens.d.ts +9 -0
- package/es/components/Notification/designTokens.js +14 -0
- package/es/components/Notification/index.d.ts +12 -0
- package/es/components/Notification/index.js +54 -0
- package/es/components/Notification/style/index.less +45 -0
- package/es/components/Notification/style/variables.less +4 -0
- package/es/components/Search/designTokens.d.ts +4 -4
- package/es/components/Search/designTokens.js +57 -46
- package/es/components/Search/index.js +15 -9
- package/es/components/Stepper/designTokens.d.ts +4 -5
- package/es/components/Stepper/designTokens.js +48 -40
- package/es/components/Stepper/index.d.ts +9 -10
- package/es/components/Stepper/index.js +139 -135
- package/es/components/Stepper/style/index.less +27 -12
- package/es/components/StickyFooter/designTokens.d.ts +2 -2
- package/es/components/StickyFooter/designTokens.js +20 -16
- package/es/components/StickyFooter/index.d.ts +2 -2
- package/es/components/StickyFooter/index.js +68 -39
- package/es/components/StickyFooter/style/index.less +5 -3
- package/es/components/Tabs/designTokens.d.ts +6 -6
- package/es/components/Tabs/designTokens.js +77 -60
- package/es/components/Tabs/index.js +11 -6
- package/es/components/Tag/designTokens.d.ts +42 -42
- package/es/components/Tag/designTokens.js +139 -95
- package/es/components/Tag/index.d.ts +1 -1
- package/es/components/Tag/index.js +16 -3
- package/es/components/Text/designTokens.d.ts +19 -10
- package/es/components/Text/designTokens.js +65 -51
- package/es/components/Text/index.d.ts +2 -1
- package/es/components/Text/index.js +42 -12
- package/es/components/TextInputInside/designTokens.d.ts +3 -12
- package/es/components/TextInputInside/designTokens.js +59 -57
- package/es/components/TextInputInside/index.js +10 -7
- package/es/components/TextInputOutside/designTokens.d.ts +5 -5
- package/es/components/TextInputOutside/designTokens.js +77 -61
- package/es/components/TextInputOutside/index.js +12 -7
- package/es/components/TextLink/designTokens.d.ts +2 -2
- package/es/components/TextLink/designTokens.js +14 -10
- package/es/components/TextLink/index.js +2 -1
- package/es/components/Toast/designTokens.d.ts +2 -2
- package/es/components/Toast/designTokens.js +20 -19
- package/es/components/Toast/index.js +2 -1
- package/es/components/Toggle/designTokens.d.ts +2 -2
- package/es/components/Toggle/designTokens.js +16 -12
- package/es/components/Toggle/index.js +2 -1
- package/es/components/index.d.ts +7 -1
- package/es/components/index.js +6 -2
- package/es/constants/index.d.ts +4 -1
- package/es/constants/index.js +5 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +4 -0
- package/es/tokens/DXPGlobal.d.ts +27 -19
- package/es/tokens/DXPGlobal.js +3 -2
- package/es/utils/TokenContext.d.ts +14 -0
- package/es/utils/TokenContext.js +91 -0
- package/es/utils/deviceType.d.ts +14 -0
- package/es/utils/deviceType.js +65 -0
- package/es/utils/index.d.ts +9 -0
- package/es/utils/index.js +9 -0
- package/es/utils/tokenHelper.js +2 -5
- package/es/utils/tokenManager.d.ts +82 -20
- package/es/utils/tokenManager.js +857 -779
- package/lib/assets/token.json +128 -102
- package/lib/components/Accordion/designTokens.d.ts +3 -3
- package/lib/components/Accordion/designTokens.js +25 -17
- package/lib/components/Accordion/index.js +8 -4
- package/lib/components/Amount/designTokens.d.ts +2 -2
- package/lib/components/Amount/designTokens.js +13 -9
- package/lib/components/Amount/index.d.ts +3 -10
- package/lib/components/Amount/index.js +84 -90
- package/lib/components/Button/designTokens.d.ts +18 -3
- package/lib/components/Button/designTokens.js +120 -114
- package/lib/components/Button/index.d.ts +16 -5
- package/lib/components/Button/index.js +59 -51
- package/lib/components/Button/style/index.less +1 -1
- package/lib/components/Card/designTokens.d.ts +9 -0
- package/lib/components/Card/designTokens.js +37 -0
- package/lib/components/Card/index.d.ts +15 -0
- package/lib/components/Card/index.js +156 -0
- package/lib/components/Card/style/index.less +45 -0
- package/lib/components/Card/style/variables.less +4 -0
- package/lib/components/Chip/designTokens.d.ts +2 -2
- package/lib/components/Chip/designTokens.js +25 -21
- package/lib/components/Chip/index.js +8 -5
- package/lib/components/Divider/designTokens.d.ts +4 -0
- package/lib/components/Divider/designTokens.js +32 -0
- package/lib/components/Divider/index.d.ts +3 -8
- package/lib/components/Divider/index.js +41 -43
- package/lib/components/Drawer/designTokens.d.ts +2 -2
- package/lib/components/Drawer/designTokens.js +31 -38
- package/lib/components/Drawer/index.d.ts +6 -2
- package/lib/components/Drawer/index.js +80 -53
- package/lib/components/Drawer/style/index.less +13 -7
- package/lib/components/GlobalTokenProvider/index.d.ts +11 -0
- package/lib/components/GlobalTokenProvider/index.js +40 -0
- package/lib/components/Icon/designTokens.d.ts +3 -3
- package/lib/components/Icon/designTokens.js +11 -17
- package/lib/components/Icon/index.js +5 -4
- package/lib/components/IconButton/designTokens.d.ts +3 -4
- package/lib/components/IconButton/designTokens.js +41 -34
- package/lib/components/IconButton/index.d.ts +1 -1
- package/lib/components/IconButton/index.js +25 -23
- package/lib/components/Image/index.d.ts +1 -1
- package/lib/components/Image/index.js +4 -4
- package/lib/components/ListItem/designTokens.d.ts +4 -2
- package/lib/components/ListItem/designTokens.js +36 -41
- package/lib/components/ListItem/index.d.ts +12 -2
- package/lib/components/ListItem/index.js +115 -46
- package/lib/components/ListItem/style/index.less +42 -9
- package/lib/components/Modal/designTokens.d.ts +11 -20
- package/lib/components/Modal/designTokens.js +44 -60
- package/lib/components/Modal/index.js +63 -16
- package/lib/components/Navigation/designTokens.d.ts +9 -8
- package/lib/components/Navigation/designTokens.js +24 -29
- package/lib/components/Navigation/index.d.ts +1 -0
- package/lib/components/Navigation/index.js +13 -12
- package/lib/components/Notification/designTokens.d.ts +9 -0
- package/lib/components/Notification/designTokens.js +37 -0
- package/lib/components/Notification/index.d.ts +12 -0
- package/lib/components/Notification/index.js +110 -0
- package/lib/components/Notification/style/index.less +45 -0
- package/lib/components/Notification/style/variables.less +4 -0
- package/lib/components/Search/designTokens.d.ts +4 -4
- package/lib/components/Search/designTokens.js +61 -49
- package/lib/components/Search/index.js +31 -9
- package/lib/components/Stepper/designTokens.d.ts +4 -5
- package/lib/components/Stepper/designTokens.js +70 -62
- package/lib/components/Stepper/index.d.ts +9 -10
- package/lib/components/Stepper/index.js +104 -53
- package/lib/components/Stepper/style/index.less +27 -12
- package/lib/components/StickyFooter/designTokens.d.ts +2 -2
- package/lib/components/StickyFooter/designTokens.js +21 -17
- package/lib/components/StickyFooter/index.d.ts +2 -2
- package/lib/components/StickyFooter/index.js +50 -18
- package/lib/components/StickyFooter/style/index.less +5 -3
- package/lib/components/Tabs/designTokens.d.ts +6 -6
- package/lib/components/Tabs/designTokens.js +80 -63
- package/lib/components/Tabs/index.js +19 -12
- package/lib/components/Tag/designTokens.d.ts +42 -42
- package/lib/components/Tag/designTokens.js +159 -115
- package/lib/components/Tag/index.d.ts +1 -1
- package/lib/components/Tag/index.js +27 -14
- package/lib/components/Text/designTokens.d.ts +19 -10
- package/lib/components/Text/designTokens.js +65 -51
- package/lib/components/Text/index.d.ts +2 -1
- package/lib/components/Text/index.js +407 -297
- package/lib/components/TextInputInside/designTokens.d.ts +3 -12
- package/lib/components/TextInputInside/designTokens.js +62 -75
- package/lib/components/TextInputInside/index.js +10 -7
- package/lib/components/TextInputOutside/designTokens.d.ts +5 -5
- package/lib/components/TextInputOutside/designTokens.js +82 -66
- package/lib/components/TextInputOutside/index.js +12 -8
- package/lib/components/TextLink/designTokens.d.ts +2 -2
- package/lib/components/TextLink/designTokens.js +14 -21
- package/lib/components/TextLink/index.js +3 -2
- package/lib/components/Toast/designTokens.d.ts +2 -2
- package/lib/components/Toast/designTokens.js +20 -16
- package/lib/components/Toast/index.js +7 -6
- package/lib/components/Toggle/designTokens.d.ts +2 -2
- package/lib/components/Toggle/designTokens.js +16 -23
- package/lib/components/Toggle/index.js +3 -2
- package/lib/components/index.d.ts +7 -1
- package/lib/components/index.js +10 -2
- package/lib/constants/index.d.ts +4 -1
- package/lib/constants/index.js +5 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +22 -0
- package/lib/tokens/DXPGlobal.d.ts +27 -19
- package/lib/tokens/DXPGlobal.js +1 -1
- package/lib/utils/TokenContext.d.ts +14 -0
- package/lib/utils/TokenContext.js +85 -0
- package/lib/utils/deviceType.d.ts +14 -0
- package/lib/utils/deviceType.js +56 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +44 -0
- package/lib/utils/tokenHelper.js +2 -12
- package/lib/utils/tokenManager.d.ts +82 -20
- package/lib/utils/tokenManager.js +840 -777
- package/package.json +14 -11
- package/umd/dxp-ui.min.css +1 -1
- package/umd/dxp-ui.min.js +1 -1
- package/lib/components/Button/demo/index.d.ts +0 -3
- package/lib/components/Button/demo/index.js +0 -138
package/lib/assets/token.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"gomo": {
|
|
3
|
-
"colorGradientNeutral": "linear-gradient(180deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.00) 100%)",
|
|
4
3
|
"spacingGapXs": 4,
|
|
5
4
|
"spacingGapSm": 8,
|
|
6
5
|
"spacingGapLg": 24,
|
|
@@ -98,7 +97,7 @@
|
|
|
98
97
|
"colorIconRating": "#ffb524",
|
|
99
98
|
"colorTagPrimary": "#d01660",
|
|
100
99
|
"colorTagSecondary": "#1700e8",
|
|
101
|
-
"colorBorderDivider": "#
|
|
100
|
+
"colorBorderDivider": "#dfdfe4",
|
|
102
101
|
"colorBorderCta": "#4d28e8",
|
|
103
102
|
"colorBorderCtaInverse": "#e5ff17",
|
|
104
103
|
"colorBorderError": "#bd341c",
|
|
@@ -228,7 +227,7 @@
|
|
|
228
227
|
"sizingIconUtilityXs2": 24,
|
|
229
228
|
"sizingIconGeneralXs2": 20,
|
|
230
229
|
"borderRadiusXs": 4,
|
|
231
|
-
"colorTextAmount": "#
|
|
230
|
+
"colorTextAmount": "#151518",
|
|
232
231
|
"opacityDefault": 100,
|
|
233
232
|
"fontFamilySecondaryRegular": "Roboto",
|
|
234
233
|
"fontFamilyPromaryRegular": "Poppins",
|
|
@@ -243,45 +242,42 @@
|
|
|
243
242
|
"colorTagGreen": "#00bc6f",
|
|
244
243
|
"colorTagCyan": "#1482cc",
|
|
245
244
|
"colorTagOrange": "#ff8d1b",
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
245
|
+
"colorTagPrimaryLight": "#ffeaf2",
|
|
246
|
+
"colorTagSecondaryLight": "#e8e6fd",
|
|
247
|
+
"colorTagGreyLight": "#e6e6e6",
|
|
248
|
+
"colorTagRedLight": "#ffeaea",
|
|
249
|
+
"colorTagYellowLight": "#fff8e5",
|
|
250
|
+
"colorTagGreenLight": "#e8fbf3",
|
|
251
|
+
"colorTagCyanLight": "#e8f6ff",
|
|
252
|
+
"colorTagOrangeLight": "#fff4e9",
|
|
254
253
|
"colorTagBlack": "#545454",
|
|
255
254
|
"fontSizeDesktopTitleT23": 32,
|
|
256
255
|
"fontSizeDesktopContentC14": 18,
|
|
257
256
|
"fontSizeDesktopContentC21": 20,
|
|
258
257
|
"fontSizeDesktopTitleT21": 24,
|
|
259
|
-
"fontSizeDesktopTitleT15": 20,
|
|
260
258
|
"fontSizeDesktopContentC12": 14,
|
|
261
259
|
"fontSizeDesktopContentC10": 10,
|
|
262
260
|
"fontSizeDesktopContentC11": 12,
|
|
263
|
-
"fontSizeDesktopContentC13":
|
|
264
|
-
"
|
|
261
|
+
"fontSizeDesktopContentC13": 0,
|
|
262
|
+
"fontSizeDesktopTitleT12": 12,
|
|
265
263
|
"fontSizeDesktopTitleT32": 40,
|
|
266
264
|
"fontSizeDesktopTitleT41": 48,
|
|
267
265
|
"fontSizeDesktopContentC05": 8,
|
|
268
266
|
"fontSizeDesktopContentC04": 6,
|
|
269
267
|
"borderRadiusButton": 32,
|
|
270
268
|
"colorTextItemtitle": "#242328",
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"fontSizeDesktopTitleT4": 18,
|
|
277
|
-
"fontSizeDesktopTitleT10": 36,
|
|
269
|
+
"fontSizeDesktopTitleT13": 14,
|
|
270
|
+
"fontSizeDesktopTitleT16": 20,
|
|
271
|
+
"fontSizeDesktopTitleT14": 16,
|
|
272
|
+
"fontSizeDesktopTitleT15": 18,
|
|
273
|
+
"fontSizeDesktopTitleT34": 36,
|
|
278
274
|
"fontSizeMobileContentC04": 6,
|
|
279
275
|
"fontSizeMobileContentC05": 8,
|
|
280
276
|
"fontSizeMobileContentC11": 10,
|
|
281
277
|
"fontSizeMobileContentC12": 12,
|
|
282
|
-
"fontSizeMobileContentC13":
|
|
278
|
+
"fontSizeMobileContentC13": 0,
|
|
283
279
|
"fontSizeMobileContentC14": 16,
|
|
284
|
-
"fontSizeMobileContentC15":
|
|
280
|
+
"fontSizeMobileContentC15": 16,
|
|
285
281
|
"fontSizeMobileContentC21": 20,
|
|
286
282
|
"fontSizeMobileTitleT12": 12,
|
|
287
283
|
"fontSizeMobileTitleT13": 14,
|
|
@@ -289,19 +285,30 @@
|
|
|
289
285
|
"fontSizeMobileTitleT15": 18,
|
|
290
286
|
"fontSizeMobileTitleT21": 20,
|
|
291
287
|
"fontSizeMobileTitleT23": 24,
|
|
292
|
-
"fontSizeMobileTitleT24":
|
|
293
|
-
"fontSizeMobileTitleT25":
|
|
288
|
+
"fontSizeMobileTitleT24": 26,
|
|
289
|
+
"fontSizeMobileTitleT25": 28,
|
|
294
290
|
"fontSizeMobileTitleT32": 32,
|
|
295
291
|
"fontSizeMobileTitleT34": 36,
|
|
296
292
|
"fontSizeMobileTitleT41": 40,
|
|
297
293
|
"fontSizeMobileTitleT45": 48,
|
|
298
294
|
"fontSizeMobileNavigation": 16,
|
|
299
295
|
"colorTextHintMessage": "#151518",
|
|
300
|
-
"
|
|
301
|
-
"
|
|
296
|
+
"colorTextCta2": "#4d28e8",
|
|
297
|
+
"colorBackgroundHeaderActive": "#e5ff17",
|
|
298
|
+
"spacingTopNavigationPaddingTop": 0,
|
|
299
|
+
"spacingTopNavigationPaddingBottom": 8,
|
|
300
|
+
"fontSizeMobileTitleT16": 0,
|
|
301
|
+
"fontSizeMobileContentC23": 24,
|
|
302
|
+
"fontSizeMobileContentC16": 18,
|
|
303
|
+
"fontSizeDesktopContentC23": 24,
|
|
304
|
+
"fontSizeDesktopContentC15": 18,
|
|
305
|
+
"fontSizeDesktopContentC16": 0,
|
|
306
|
+
"fontSizeMobileContentC10": 0,
|
|
307
|
+
"fontSizeDesktopTitleT24": 26,
|
|
308
|
+
"fontSizeDesktopTitleT25": 28,
|
|
309
|
+
"fontSizeDesktopTitleT45": 0
|
|
302
310
|
},
|
|
303
311
|
"eSales": {
|
|
304
|
-
"colorGradientNeutral": "linear-gradient(180deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.00) 100%)",
|
|
305
312
|
"spacingGapXs": 4,
|
|
306
313
|
"spacingGapSm": 8,
|
|
307
314
|
"spacingGapLg": 24,
|
|
@@ -339,7 +346,7 @@
|
|
|
339
346
|
"colorBackgroundSubtle": "#f2f2f2",
|
|
340
347
|
"colorBackgroundHover": "#e8e7f4",
|
|
341
348
|
"colorBackgroundHoverNeutral": "#f5f5f8cc",
|
|
342
|
-
"colorBackgroundSelected": "#
|
|
349
|
+
"colorBackgroundSelected": "#f6f5fb",
|
|
343
350
|
"colorBackgroundActive": "#180c8e",
|
|
344
351
|
"colorBackgroundOverlay": "#00000099",
|
|
345
352
|
"colorBackgroundOverlayLight": "#dfdfe4cc",
|
|
@@ -351,7 +358,7 @@
|
|
|
351
358
|
"colorBackgroundActiveWeak": "#d1cee8",
|
|
352
359
|
"colorBackgroundActiveWeakInverse": "#f5ffc0",
|
|
353
360
|
"colorBackgroundActiveInverse": "#07d39f",
|
|
354
|
-
"colorBackgroundSubtle2": "#
|
|
361
|
+
"colorBackgroundSubtle2": "#e8e7f4",
|
|
355
362
|
"colorBackgroundHeader": "#160b7f",
|
|
356
363
|
"colorBackgroundFooter": "#d5d5d5",
|
|
357
364
|
"colorBackgroundCoachmark": "#180c8e",
|
|
@@ -362,22 +369,22 @@
|
|
|
362
369
|
"colorTextDisabled": "#8c8c8c",
|
|
363
370
|
"colorTextInverse": "#ffffff",
|
|
364
371
|
"colorTextLink": "#3e51f4",
|
|
365
|
-
"colorTextLinkInverse": "#
|
|
372
|
+
"colorTextLinkInverse": "#38bffc",
|
|
366
373
|
"colorTextAlert": "#d82e00",
|
|
367
374
|
"colorTextSuccess": "#00b379",
|
|
368
375
|
"colorTextNavigationActive": "#180c8e",
|
|
369
|
-
"colorTextHeaderActive": "#
|
|
376
|
+
"colorTextHeaderActive": "#38bffc",
|
|
370
377
|
"colorTextCta": "#180c8e",
|
|
371
|
-
"colorTextCtaInverse": "#
|
|
378
|
+
"colorTextCtaInverse": "#ffffff",
|
|
372
379
|
"colorTextSubtleInverse": "#b5b5b5",
|
|
373
380
|
"colorTextHeaderHighlight": "#242424",
|
|
374
|
-
"colorTextHeaderHighlightInverse": "#
|
|
381
|
+
"colorTextHeaderHighlightInverse": "#ebf8fe",
|
|
375
382
|
"colorTextHeaderActiveInverse": "#ffffff",
|
|
376
383
|
"colorTextCoachmark": "#ffffff",
|
|
377
384
|
"colorIconLink": "#3e51f4",
|
|
378
385
|
"colorIconNeutral": "#242424",
|
|
379
|
-
"colorIconCta": "#
|
|
380
|
-
"colorIconCtaInverse": "#
|
|
386
|
+
"colorIconCta": "#180c8e",
|
|
387
|
+
"colorIconCtaInverse": "#ffffff",
|
|
381
388
|
"colorIconSubtle": "#545454",
|
|
382
389
|
"colorIconWeak": "#b5b5b5",
|
|
383
390
|
"colorIconDisabled": "#b5b5b5",
|
|
@@ -394,12 +401,12 @@
|
|
|
394
401
|
"colorIconNotice": "#ff5d76",
|
|
395
402
|
"colorBottomNavigationInactive": "#8c8c8c",
|
|
396
403
|
"colorBottomNavigationActive": "#180c8e",
|
|
397
|
-
"colorIconLinkInverse": "#
|
|
404
|
+
"colorIconLinkInverse": "#38bffc",
|
|
398
405
|
"colorIconSubtleInverse": "#b5b5b5",
|
|
399
406
|
"colorIconRating": "#ffb524",
|
|
400
407
|
"colorTagPrimary": "#d01660",
|
|
401
408
|
"colorTagSecondary": "#180c8e",
|
|
402
|
-
"colorBorderDivider": "#
|
|
409
|
+
"colorBorderDivider": "#e6e6e6",
|
|
403
410
|
"colorBorderCta": "#180c8e",
|
|
404
411
|
"colorBorderCtaInverse": "#07d39f",
|
|
405
412
|
"colorBorderError": "#d82e00",
|
|
@@ -407,7 +414,7 @@
|
|
|
407
414
|
"colorBorderStandard": "#d9d9d9",
|
|
408
415
|
"colorBorderActive": "#180c8e",
|
|
409
416
|
"colorBorderDisabled": "#8c8c987f",
|
|
410
|
-
"colorBorderWeak": "#
|
|
417
|
+
"colorBorderWeak": "#d9d9d9",
|
|
411
418
|
"colorBorderStrikeout": "#b5b5b5",
|
|
412
419
|
"colorBorderStrikeoutInverse": "#ffffff",
|
|
413
420
|
"colorBorderStrong": "#b5b5b5",
|
|
@@ -544,42 +551,40 @@
|
|
|
544
551
|
"colorTagGreen": "#00bc6f",
|
|
545
552
|
"colorTagCyan": "#1482cc",
|
|
546
553
|
"colorTagOrange": "#ff8d1b",
|
|
547
|
-
"
|
|
548
|
-
"
|
|
549
|
-
"
|
|
550
|
-
"
|
|
551
|
-
"
|
|
552
|
-
"
|
|
553
|
-
"
|
|
554
|
-
"
|
|
554
|
+
"colorTagPrimaryLight": "#ffeaf2",
|
|
555
|
+
"colorTagSecondaryLight": "#e8e6fd",
|
|
556
|
+
"colorTagGreyLight": "#e6e6e6",
|
|
557
|
+
"colorTagRedLight": "#ffeaea",
|
|
558
|
+
"colorTagYellowLight": "#fff8e5",
|
|
559
|
+
"colorTagGreenLight": "#e8fbf3",
|
|
560
|
+
"colorTagCyanLight": "#e8f6ff",
|
|
561
|
+
"colorTagOrangeLight": "#fff4e9",
|
|
555
562
|
"colorTagBlack": "#545454",
|
|
556
563
|
"fontSizeDesktopTitleT23": 32,
|
|
557
|
-
"fontSizeDesktopContentC14":
|
|
558
|
-
"fontSizeDesktopContentC21":
|
|
564
|
+
"fontSizeDesktopContentC14": 16,
|
|
565
|
+
"fontSizeDesktopContentC21": 20,
|
|
559
566
|
"fontSizeDesktopTitleT21": 24,
|
|
560
567
|
"fontSizeDesktopContentC12": 14,
|
|
561
568
|
"fontSizeDesktopContentC10": 10,
|
|
562
569
|
"fontSizeDesktopContentC11": 12,
|
|
563
|
-
"fontSizeDesktopContentC13":
|
|
564
|
-
"
|
|
570
|
+
"fontSizeDesktopContentC13": 0,
|
|
571
|
+
"fontSizeDesktopTitleT12": 12,
|
|
565
572
|
"fontSizeDesktopTitleT32": 40,
|
|
566
573
|
"fontSizeDesktopTitleT41": 48,
|
|
567
574
|
"fontSizeDesktopContentC05": 8,
|
|
568
575
|
"fontSizeDesktopContentC04": 6,
|
|
569
576
|
"borderRadiusButton": 8,
|
|
570
577
|
"colorTextItemtitle": "#8c8c8c",
|
|
571
|
-
"
|
|
572
|
-
"
|
|
573
|
-
"
|
|
574
|
-
"
|
|
575
|
-
"
|
|
576
|
-
"fontSizeDesktopTitleT4": 18,
|
|
577
|
-
"fontSizeDesktopTitleT10": 36,
|
|
578
|
+
"fontSizeDesktopTitleT13": 14,
|
|
579
|
+
"fontSizeDesktopTitleT16": 20,
|
|
580
|
+
"fontSizeDesktopTitleT14": 16,
|
|
581
|
+
"fontSizeDesktopTitleT15": 18,
|
|
582
|
+
"fontSizeDesktopTitleT34": 36,
|
|
578
583
|
"fontSizeMobileContentC04": 6,
|
|
579
584
|
"fontSizeMobileContentC05": 8,
|
|
580
585
|
"fontSizeMobileContentC11": 10,
|
|
581
586
|
"fontSizeMobileContentC12": 12,
|
|
582
|
-
"fontSizeMobileContentC13":
|
|
587
|
+
"fontSizeMobileContentC13": 0,
|
|
583
588
|
"fontSizeMobileContentC14": 14,
|
|
584
589
|
"fontSizeMobileContentC15": 16,
|
|
585
590
|
"fontSizeMobileContentC21": 20,
|
|
@@ -589,19 +594,30 @@
|
|
|
589
594
|
"fontSizeMobileTitleT15": 18,
|
|
590
595
|
"fontSizeMobileTitleT21": 20,
|
|
591
596
|
"fontSizeMobileTitleT23": 24,
|
|
592
|
-
"fontSizeMobileTitleT24":
|
|
593
|
-
"fontSizeMobileTitleT25":
|
|
597
|
+
"fontSizeMobileTitleT24": 26,
|
|
598
|
+
"fontSizeMobileTitleT25": 28,
|
|
594
599
|
"fontSizeMobileTitleT32": 32,
|
|
595
600
|
"fontSizeMobileTitleT34": 36,
|
|
596
601
|
"fontSizeMobileTitleT41": 40,
|
|
597
602
|
"fontSizeMobileTitleT45": 48,
|
|
598
603
|
"fontSizeMobileNavigation": 18,
|
|
599
604
|
"colorTextHintMessage": "#8c8c8c",
|
|
600
|
-
"
|
|
601
|
-
"
|
|
605
|
+
"colorTextCta2": "#180c8e",
|
|
606
|
+
"colorBackgroundHeaderActive": "#3e51f4",
|
|
607
|
+
"spacingTopNavigationPaddingTop": 4,
|
|
608
|
+
"spacingTopNavigationPaddingBottom": 4,
|
|
609
|
+
"fontSizeMobileTitleT16": 0,
|
|
610
|
+
"fontSizeMobileContentC23": 24,
|
|
611
|
+
"fontSizeMobileContentC16": 18,
|
|
612
|
+
"fontSizeDesktopContentC23": 24,
|
|
613
|
+
"fontSizeDesktopContentC15": 18,
|
|
614
|
+
"fontSizeDesktopContentC16": 0,
|
|
615
|
+
"fontSizeMobileContentC10": 0,
|
|
616
|
+
"fontSizeDesktopTitleT24": 26,
|
|
617
|
+
"fontSizeDesktopTitleT25": 28,
|
|
618
|
+
"fontSizeDesktopTitleT45": 0
|
|
602
619
|
},
|
|
603
620
|
"tm": {
|
|
604
|
-
"colorGradientNeutral": "linear-gradient(180deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.00) 100%)",
|
|
605
621
|
"spacingGapXs": 4,
|
|
606
622
|
"spacingGapSm": 8,
|
|
607
623
|
"spacingGapLg": 24,
|
|
@@ -639,14 +655,14 @@
|
|
|
639
655
|
"colorBackgroundSubtle": "#f2f2f2",
|
|
640
656
|
"colorBackgroundHover": "#ffefe6",
|
|
641
657
|
"colorBackgroundHoverNeutral": "#f5f5f8cc",
|
|
642
|
-
"colorBackgroundSelected": "#
|
|
658
|
+
"colorBackgroundSelected": "#fff7f2",
|
|
643
659
|
"colorBackgroundActive": "#ff5e00",
|
|
644
660
|
"colorBackgroundOverlay": "#00000099",
|
|
645
661
|
"colorBackgroundOverlayLight": "#dfdfe4cc",
|
|
646
662
|
"colorBackgroundCtaSuccess": "#00b379",
|
|
647
663
|
"colorBackgroundDark": "#545454",
|
|
648
664
|
"colorBackgroundDark2": "#242424",
|
|
649
|
-
"colorBackgroundDisabled": "#
|
|
665
|
+
"colorBackgroundDisabled": "#e6e6e6",
|
|
650
666
|
"colorBackgroundWeak": "#b5b5b5",
|
|
651
667
|
"colorBackgroundActiveWeak": "#ffdfcc",
|
|
652
668
|
"colorBackgroundActiveWeakInverse": "#f5ffc0",
|
|
@@ -662,22 +678,22 @@
|
|
|
662
678
|
"colorTextDisabled": "#8c8c8c",
|
|
663
679
|
"colorTextInverse": "#ffffff",
|
|
664
680
|
"colorTextLink": "#1700e8",
|
|
665
|
-
"colorTextLinkInverse": "#
|
|
681
|
+
"colorTextLinkInverse": "#ff5e00",
|
|
666
682
|
"colorTextAlert": "#fa2c2c",
|
|
667
683
|
"colorTextSuccess": "#00b379",
|
|
668
684
|
"colorTextNavigationActive": "#ff5e00",
|
|
669
685
|
"colorTextHeaderActive": "#1700e8",
|
|
670
686
|
"colorTextCta": "#ff5e00",
|
|
671
|
-
"colorTextCtaInverse": "#
|
|
687
|
+
"colorTextCtaInverse": "#ffffff",
|
|
672
688
|
"colorTextSubtleInverse": "#b5b5b5",
|
|
673
689
|
"colorTextHeaderHighlight": "#242424",
|
|
674
|
-
"colorTextHeaderHighlightInverse": "#
|
|
690
|
+
"colorTextHeaderHighlightInverse": "#ebebfc",
|
|
675
691
|
"colorTextHeaderActiveInverse": "#ffffff",
|
|
676
692
|
"colorTextCoachmark": "#ffffff",
|
|
677
693
|
"colorIconLink": "#1700e8",
|
|
678
694
|
"colorIconNeutral": "#242424",
|
|
679
695
|
"colorIconCta": "#ff5e00",
|
|
680
|
-
"colorIconCtaInverse": "#
|
|
696
|
+
"colorIconCtaInverse": "#ffffff",
|
|
681
697
|
"colorIconSubtle": "#545454",
|
|
682
698
|
"colorIconWeak": "#b5b5b5",
|
|
683
699
|
"colorIconDisabled": "#b5b5b5",
|
|
@@ -699,15 +715,15 @@
|
|
|
699
715
|
"colorIconRating": "#ffb524",
|
|
700
716
|
"colorTagPrimary": "#ff5e00",
|
|
701
717
|
"colorTagSecondary": "#1700e8",
|
|
702
|
-
"colorBorderDivider": "#
|
|
718
|
+
"colorBorderDivider": "#e6e6e6",
|
|
703
719
|
"colorBorderCta": "#ff5e00",
|
|
704
720
|
"colorBorderCtaInverse": "#07d39f",
|
|
705
721
|
"colorBorderError": "#fa2c2c",
|
|
706
722
|
"colorBorderSelected": "#ff5e00",
|
|
707
|
-
"colorBorderStandard": "#
|
|
723
|
+
"colorBorderStandard": "#d9d9d9",
|
|
708
724
|
"colorBorderActive": "#ff5e00",
|
|
709
725
|
"colorBorderDisabled": "#8c8c987f",
|
|
710
|
-
"colorBorderWeak": "#
|
|
726
|
+
"colorBorderWeak": "#d9d9d9",
|
|
711
727
|
"colorBorderStrikeout": "#b5b5b5",
|
|
712
728
|
"colorBorderStrikeoutInverse": "#ffffff",
|
|
713
729
|
"colorBorderStrong": "#b5b5b5",
|
|
@@ -791,7 +807,7 @@
|
|
|
791
807
|
"borderWidthSelected": 2,
|
|
792
808
|
"borderWidthHover": 1,
|
|
793
809
|
"borderWidthStrikeout": 2,
|
|
794
|
-
"borderRadiusSm":
|
|
810
|
+
"borderRadiusSm": 8,
|
|
795
811
|
"borderRadiusMd": 16,
|
|
796
812
|
"borderRadiusXl": 32,
|
|
797
813
|
"borderRadiusLg": 40,
|
|
@@ -844,44 +860,42 @@
|
|
|
844
860
|
"colorTagGreen": "#00bc6f",
|
|
845
861
|
"colorTagCyan": "#1482cc",
|
|
846
862
|
"colorTagOrange": "#ff8d1b",
|
|
847
|
-
"
|
|
848
|
-
"
|
|
849
|
-
"
|
|
850
|
-
"
|
|
851
|
-
"
|
|
852
|
-
"
|
|
853
|
-
"
|
|
854
|
-
"
|
|
863
|
+
"colorTagPrimaryLight": "#ffefe6",
|
|
864
|
+
"colorTagSecondaryLight": "#e8e6fd",
|
|
865
|
+
"colorTagGreyLight": "#e6e6e6",
|
|
866
|
+
"colorTagRedLight": "#ffeaea",
|
|
867
|
+
"colorTagYellowLight": "#fff8e5",
|
|
868
|
+
"colorTagGreenLight": "#e8fbf3",
|
|
869
|
+
"colorTagCyanLight": "#e8f6ff",
|
|
870
|
+
"colorTagOrangeLight": "#fff4e9",
|
|
855
871
|
"colorTagBlack": "#545454",
|
|
856
872
|
"fontSizeDesktopTitleT23": 32,
|
|
857
|
-
"fontSizeDesktopContentC14":
|
|
858
|
-
"fontSizeDesktopContentC21":
|
|
873
|
+
"fontSizeDesktopContentC14": 16,
|
|
874
|
+
"fontSizeDesktopContentC21": 20,
|
|
859
875
|
"fontSizeDesktopTitleT21": 24,
|
|
860
876
|
"fontSizeDesktopContentC12": 14,
|
|
861
877
|
"fontSizeDesktopContentC10": 10,
|
|
862
878
|
"fontSizeDesktopContentC11": 12,
|
|
863
|
-
"fontSizeDesktopContentC13":
|
|
864
|
-
"
|
|
879
|
+
"fontSizeDesktopContentC13": 0,
|
|
880
|
+
"fontSizeDesktopTitleT12": 12,
|
|
865
881
|
"fontSizeDesktopTitleT32": 40,
|
|
866
882
|
"fontSizeDesktopTitleT41": 48,
|
|
867
883
|
"fontSizeDesktopContentC05": 8,
|
|
868
884
|
"fontSizeDesktopContentC04": 6,
|
|
869
885
|
"borderRadiusButton": 8,
|
|
870
|
-
"colorTextItemtitle": "#
|
|
871
|
-
"
|
|
872
|
-
"
|
|
873
|
-
"
|
|
874
|
-
"
|
|
875
|
-
"
|
|
876
|
-
"fontSizeDesktopTitleT4": 18,
|
|
877
|
-
"fontSizeDesktopTitleT10": 36,
|
|
886
|
+
"colorTextItemtitle": "#8c8c8c",
|
|
887
|
+
"fontSizeDesktopTitleT13": 14,
|
|
888
|
+
"fontSizeDesktopTitleT16": 20,
|
|
889
|
+
"fontSizeDesktopTitleT14": 16,
|
|
890
|
+
"fontSizeDesktopTitleT15": 18,
|
|
891
|
+
"fontSizeDesktopTitleT34": 36,
|
|
878
892
|
"fontSizeMobileContentC04": 6,
|
|
879
893
|
"fontSizeMobileContentC05": 8,
|
|
880
894
|
"fontSizeMobileContentC11": 10,
|
|
881
895
|
"fontSizeMobileContentC12": 12,
|
|
882
|
-
"fontSizeMobileContentC13":
|
|
883
|
-
"fontSizeMobileContentC14":
|
|
884
|
-
"fontSizeMobileContentC15":
|
|
896
|
+
"fontSizeMobileContentC13": 0,
|
|
897
|
+
"fontSizeMobileContentC14": 14,
|
|
898
|
+
"fontSizeMobileContentC15": 16,
|
|
885
899
|
"fontSizeMobileContentC21": 20,
|
|
886
900
|
"fontSizeMobileTitleT12": 12,
|
|
887
901
|
"fontSizeMobileTitleT13": 14,
|
|
@@ -889,15 +903,27 @@
|
|
|
889
903
|
"fontSizeMobileTitleT15": 18,
|
|
890
904
|
"fontSizeMobileTitleT21": 20,
|
|
891
905
|
"fontSizeMobileTitleT23": 24,
|
|
892
|
-
"fontSizeMobileTitleT24":
|
|
893
|
-
"fontSizeMobileTitleT25":
|
|
906
|
+
"fontSizeMobileTitleT24": 26,
|
|
907
|
+
"fontSizeMobileTitleT25": 28,
|
|
894
908
|
"fontSizeMobileTitleT32": 32,
|
|
895
909
|
"fontSizeMobileTitleT34": 36,
|
|
896
910
|
"fontSizeMobileTitleT41": 40,
|
|
897
911
|
"fontSizeMobileTitleT45": 48,
|
|
898
|
-
"fontSizeMobileNavigation":
|
|
912
|
+
"fontSizeMobileNavigation": 18,
|
|
899
913
|
"colorTextHintMessage": "#242424",
|
|
900
|
-
"
|
|
901
|
-
"
|
|
914
|
+
"colorTextCta2": "#ff5e00",
|
|
915
|
+
"colorBackgroundHeaderActive": "#e65500",
|
|
916
|
+
"spacingTopNavigationPaddingTop": 4,
|
|
917
|
+
"spacingTopNavigationPaddingBottom": 4,
|
|
918
|
+
"fontSizeMobileTitleT16": 0,
|
|
919
|
+
"fontSizeMobileContentC23": 24,
|
|
920
|
+
"fontSizeMobileContentC16": 18,
|
|
921
|
+
"fontSizeDesktopContentC23": 24,
|
|
922
|
+
"fontSizeDesktopContentC15": 18,
|
|
923
|
+
"fontSizeDesktopContentC16": 0,
|
|
924
|
+
"fontSizeMobileContentC10": 0,
|
|
925
|
+
"fontSizeDesktopTitleT24": 26,
|
|
926
|
+
"fontSizeDesktopTitleT25": 28,
|
|
927
|
+
"fontSizeDesktopTitleT45": 0
|
|
902
928
|
}
|
|
903
929
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const useDesignTokens: () => {
|
|
2
2
|
headerBg: string;
|
|
3
3
|
headerPadding: string;
|
|
4
4
|
contentPadding: string;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const useDesignBorderTokens: () => {
|
|
7
7
|
headerBg: string;
|
|
8
8
|
headerPadding: string;
|
|
9
9
|
contentPadding: string;
|
|
10
10
|
};
|
|
11
|
-
export {
|
|
11
|
+
export { useDesignTokens, useDesignBorderTokens };
|
|
@@ -19,24 +19,32 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/Accordion/designTokens.ts
|
|
20
20
|
var designTokens_exports = {};
|
|
21
21
|
__export(designTokens_exports, {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
useDesignBorderTokens: () => useDesignBorderTokens,
|
|
23
|
+
useDesignTokens: () => useDesignTokens
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(designTokens_exports);
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
var import_utils = require("../../utils");
|
|
27
|
+
var useDesignTokens = () => {
|
|
28
|
+
const getToken = (0, import_utils.useDynamicTokens)();
|
|
29
|
+
const designTokens = {
|
|
30
|
+
headerBg: "transparent",
|
|
31
|
+
// header背景色
|
|
32
|
+
headerPadding: `${getToken("spacingAccordionTitlePaddingVertical")}px 0`,
|
|
33
|
+
// header边距
|
|
34
|
+
contentPadding: `${getToken("spacingAccordionBodyPaddingBottom")}px 0`
|
|
35
|
+
// content边距
|
|
36
|
+
};
|
|
37
|
+
return designTokens;
|
|
34
38
|
};
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
var useDesignBorderTokens = () => {
|
|
40
|
+
const getToken = (0, import_utils.useDynamicTokens)();
|
|
41
|
+
const designBorderTokens = {
|
|
42
|
+
headerBg: "#F5F5F8",
|
|
43
|
+
// header背景色
|
|
44
|
+
headerPadding: `${getToken("spacingAccordionTitlePaddingVertical")}px 16px`,
|
|
45
|
+
// header边距
|
|
46
|
+
contentPadding: `${getToken("spacingAccordionBodyPaddingBottom")}px 16px`
|
|
47
|
+
// content边距
|
|
48
|
+
};
|
|
49
|
+
return designBorderTokens;
|
|
42
50
|
};
|
|
@@ -68,18 +68,22 @@ var Accordion = (props) => {
|
|
|
68
68
|
const _a = props, {
|
|
69
69
|
prefixCls = import_constants.BASE_CLASS_PREFIX + "-accordion",
|
|
70
70
|
bordered = true,
|
|
71
|
-
items = []
|
|
71
|
+
items = [],
|
|
72
|
+
className = ""
|
|
72
73
|
} = _a, attr = __objRest(_a, [
|
|
73
74
|
"prefixCls",
|
|
74
75
|
"bordered",
|
|
75
|
-
"items"
|
|
76
|
+
"items",
|
|
77
|
+
"className"
|
|
76
78
|
]);
|
|
77
79
|
const newItems = items.map((item) => ({
|
|
78
80
|
key: item.key,
|
|
79
81
|
label: /* @__PURE__ */ import_react.default.createElement(import_Text.default, { size: "ContentC14Bold" }, item.label),
|
|
80
82
|
children: /* @__PURE__ */ import_react.default.createElement(import_Text.default, { size: "ContentC14Regular" }, item.children)
|
|
81
83
|
}));
|
|
82
|
-
const
|
|
84
|
+
const designTokens = (0, import_designTokens.useDesignTokens)();
|
|
85
|
+
const designBorderTokens = (0, import_designTokens.useDesignBorderTokens)();
|
|
86
|
+
const showBorder = bordered ? designBorderTokens : designTokens;
|
|
83
87
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
84
88
|
import_antd.ConfigProvider,
|
|
85
89
|
{
|
|
@@ -90,7 +94,7 @@ var Accordion = (props) => {
|
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
},
|
|
93
|
-
/* @__PURE__ */ import_react.default.createElement(import_antd.Collapse, __spreadValues({ items: newItems, className: `${prefixCls}`, showArrow: false, bordered }, attr))
|
|
97
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Collapse, __spreadValues({ items: newItems, className: `${prefixCls} ${className}`, showArrow: false, bordered }, attr))
|
|
94
98
|
);
|
|
95
99
|
};
|
|
96
100
|
var Accordion_default = Accordion;
|
|
@@ -19,15 +19,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/Amount/designTokens.ts
|
|
20
20
|
var designTokens_exports = {};
|
|
21
21
|
__export(designTokens_exports, {
|
|
22
|
-
|
|
22
|
+
useDesignTokens: () => useDesignTokens
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(designTokens_exports);
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
var import_utils = require("../../utils");
|
|
26
|
+
var useDesignTokens = () => {
|
|
27
|
+
const getToken = (0, import_utils.useDynamicTokens)();
|
|
28
|
+
const designTokens = {
|
|
29
|
+
colorCardTextTitle: getToken("colorCardTextTitle"),
|
|
30
|
+
// title颜色
|
|
31
|
+
colorCardTextPriceStrikethrough: getToken("colorCardTextPriceStrikethrough"),
|
|
32
|
+
// 划线价颜色
|
|
33
|
+
colorCardTextPrice: getToken("colorCardTextPrice")
|
|
34
|
+
// 金额颜色
|
|
35
|
+
};
|
|
36
|
+
return designTokens;
|
|
33
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './style/index.less';
|
|
3
3
|
export type Size = 'XS' | 'S' | 'M' | 'L' | 'LG';
|
|
4
4
|
export type Position = 'up' | 'right' | 'down' | 'left';
|
|
@@ -12,12 +12,5 @@ export interface AmountProps {
|
|
|
12
12
|
onDropDownClick?: React.MouseEventHandler;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
size: string;
|
|
18
|
-
title: string;
|
|
19
|
-
position: string;
|
|
20
|
-
prefixCls: string;
|
|
21
|
-
};
|
|
22
|
-
render(): React.JSX.Element;
|
|
23
|
-
}
|
|
15
|
+
declare const Amount: (props: AmountProps) => React.JSX.Element;
|
|
16
|
+
export default Amount;
|