@mc-markets/ui 1.0.90 → 1.0.92

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 (68) hide show
  1. package/README.md +243 -40
  2. package/USAGE_GUIDE.md +339 -0
  3. package/dist/404.html +22 -22
  4. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.mjs +10 -11
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/resolver.d.ts +26 -0
  10. package/dist/resolver.d.ts.map +1 -0
  11. package/dist/style.css +1 -1
  12. package/package.json +8 -5
  13. package/packages/components/Alert/Alert.vue +139 -139
  14. package/packages/components/Banner/Banner.vue +299 -299
  15. package/packages/components/Breadcrumb/Breadcrumb.vue +113 -113
  16. package/packages/components/Breadcrumb/BreadcrumbSeparator.vue +31 -31
  17. package/packages/components/Button/Button.vue +17 -17
  18. package/packages/components/DatePicker/DatePicker.vue +85 -85
  19. package/packages/components/Dialog/Dialog.vue +61 -61
  20. package/packages/components/Empty/Empty.vue +73 -73
  21. package/packages/components/Form/Form.vue +30 -30
  22. package/packages/components/FormItem/FormItem.vue +19 -19
  23. package/packages/components/Icon/Icon.vue +210 -210
  24. package/packages/components/Input/Input.vue +15 -15
  25. package/packages/components/Message/Message.vue +503 -503
  26. package/packages/components/NotifiMessage/NotifiMessage.vue +293 -293
  27. package/packages/components/Notification/Notification.vue +19 -19
  28. package/packages/components/Option/Option.vue +13 -13
  29. package/packages/components/OptionGroup/OptionGroup.vue +13 -13
  30. package/packages/components/Pagination/Pagination.vue +61 -61
  31. package/packages/components/Radio/Radio.vue +67 -67
  32. package/packages/components/RadioButton/RadioButton.vue +110 -110
  33. package/packages/components/RadioGroup/RadioGroup.vue +155 -155
  34. package/packages/components/Select/Select.vue +22 -22
  35. package/packages/components/Switch/Switch.vue +47 -47
  36. package/packages/components/TabCard/TabCard.vue +107 -107
  37. package/packages/components/TabCard/TabCardItem.vue +105 -105
  38. package/packages/components/Table/Table.vue +17 -17
  39. package/packages/components/Table/TableColumn.vue +20 -20
  40. package/packages/components/Tabs/TabPane.vue +79 -79
  41. package/packages/components/Tabs/Tabs.vue +267 -267
  42. package/packages/components/Tag/Tag.vue +208 -211
  43. package/packages/components/Tooltip/Tooltip.vue +58 -58
  44. package/packages/hooks/useClassName.js +23 -23
  45. package/packages/resolver.js +179 -0
  46. package/packages/styles/README.md +129 -129
  47. package/packages/styles/colorfont/iconfont.css +1 -0
  48. package/packages/styles/components/button.scss +121 -121
  49. package/packages/styles/components/checkbox.scss +18 -18
  50. package/packages/styles/components/dialog.scss +47 -47
  51. package/packages/styles/components/form.scss +18 -18
  52. package/packages/styles/components/input.scss +14 -14
  53. package/packages/styles/components/select.scss +62 -62
  54. package/packages/styles/components/table.scss +37 -37
  55. package/packages/styles/components/tabs.scss +76 -76
  56. package/packages/styles/components/tag.scss +142 -142
  57. package/packages/styles/font/iconfont.scss +363 -363
  58. package/packages/styles/index.scss +94 -94
  59. package/packages/styles/variables/border-mode.css +6 -6
  60. package/packages/styles/variables/color-modes-dark.css +143 -143
  61. package/packages/styles/variables/index.scss +5 -5
  62. package/packages/styles/variables/primitives-style.css +112 -112
  63. package/packages/styles/variables/radius-mode.css +14 -14
  64. package/packages/styles/variables/spacing-mode.css +20 -20
  65. package/packages/styles/variables/typography-desktop.css +40 -40
  66. package/packages/styles/variables/typography-mobile.css +40 -40
  67. package/packages/utils/classNames.js +23 -23
  68. package/packages/utils/styleUtils.js +105 -105
@@ -1,112 +1,112 @@
1
- /* _primitives-style.css */
2
- :root {
3
- --colors-alpha-black-0: rgb(0 0 0 / 0%);
4
- --colors-alpha-black-10: rgb(0 0 0 / 10%);
5
- --colors-alpha-black-100: rgb(0 0 0);
6
- --colors-alpha-black-2: rgb(0 0 0 / 2%);
7
- --colors-alpha-black-20: rgb(0 0 0 / 20%);
8
- --colors-alpha-black-30: rgb(0 0 0 / 30%);
9
- --colors-alpha-black-4: rgb(0 0 0 / 4%);
10
- --colors-alpha-black-40: rgb(0 0 0 / 40%);
11
- --colors-alpha-black-50: rgb(0 0 0 / 50%);
12
- --colors-alpha-black-6: rgb(0 0 0 / 6%);
13
- --colors-alpha-black-60: rgb(0 0 0 / 60%);
14
- --colors-alpha-black-70: rgb(0 0 0 / 70%);
15
- --colors-alpha-black-8: rgb(0 0 0 / 8%);
16
- --colors-alpha-black-80: rgb(0 0 0 / 80%);
17
- --colors-alpha-black-90: rgb(0 0 0 / 90%);
18
- --colors-alpha-white-0: rgb(255 255 255 / 0%);
19
- --colors-alpha-white-10: rgb(255 255 255 / 10%);
20
- --colors-alpha-white-100: rgb(255 255 255);
21
- --colors-alpha-white-2: rgb(255 255 255 / 2%);
22
- --colors-alpha-white-20: rgb(255 255 255 / 20%);
23
- --colors-alpha-white-30: rgb(255 255 255 / 30%);
24
- --colors-alpha-white-4: rgb(255 255 255 / 4%);
25
- --colors-alpha-white-40: rgb(255 255 255 / 40%);
26
- --colors-alpha-white-50: rgb(255 255 255 / 50%);
27
- --colors-alpha-white-6: rgb(255 255 255 / 6%);
28
- --colors-alpha-white-60: rgb(255 255 255 / 60%);
29
- --colors-alpha-white-70: rgb(255 255 255 / 70%);
30
- --colors-alpha-white-8: rgb(255 255 255 / 8%);
31
- --colors-alpha-white-80: rgb(255 255 255 / 80%);
32
- --colors-alpha-white-90: rgb(255 255 255 / 90%);
33
- --colors-base-black: rgb(0 0 0);
34
- --colors-base-white: rgb(255 255 255);
35
- --colors-forest-1: rgb(237 244 243);
36
- --colors-forest-10: rgb(27 51 46);
37
- --colors-forest-2: rgb(228 239 236);
38
- --colors-forest-3: rgb(200 221 216);
39
- --colors-forest-4: rgb(77 146 130);
40
- --colors-forest-5: rgb(69 131 117);
41
- --colors-forest-6: rgb(62 117 104);
42
- --colors-forest-7: rgb(58 110 98);
43
- --colors-forest-8: rgb(46 88 78);
44
- --colors-forest-9: rgb(35 66 58);
45
- --colors-gray-1: rgb(238 238 240);
46
- --colors-gray-10: rgb(22 21 24);
47
- --colors-gray-2: rgb(211 209 217);
48
- --colors-gray-3: rgb(175 173 183);
49
- --colors-gray-4: rgb(135 132 145);
50
- --colors-gray-5: rgb(88 86 96);
51
- --colors-gray-6: rgb(50 49 55);
52
- --colors-gray-7: rgb(41 40 47);
53
- --colors-gray-8: rgb(32 31 36);
54
- --colors-gray-9: rgb(28 27 31);
55
- --colors-green-1: rgb(229 255 249);
56
- --colors-green-10: rgb(14 62 51);
57
- --colors-green-2: rgb(183 250 234);
58
- --colors-green-3: rgb(138 240 214);
59
- --colors-green-4: rgb(70 200 168);
60
- --colors-green-5: rgb(52 168 139);
61
- --colors-green-6: rgb(32 151 122);
62
- --colors-green-7: rgb(17 131 102);
63
- --colors-green-8: rgb(7 105 81);
64
- --colors-green-9: rgb(0 77 57);
65
- --colors-orange-1: rgb(255 241 233);
66
- --colors-orange-10: rgb(54 44 35);
67
- --colors-orange-2: rgb(255 236 206);
68
- --colors-orange-3: rgb(255 218 162);
69
- --colors-orange-4: rgb(255 183 75);
70
- --colors-orange-5: rgb(255 166 31);
71
- --colors-orange-6: rgb(210 139 32);
72
- --colors-orange-7: rgb(166 112 33);
73
- --colors-orange-8: rgb(121 85 34);
74
- --colors-orange-9: rgb(77 58 35);
75
- --colors-red-1: rgb(255 229 232);
76
- --colors-red-10: rgb(54 34 38);
77
- --colors-red-2: rgb(254 190 195);
78
- --colors-red-3: rgb(251 147 155);
79
- --colors-red-4: rgb(247 110 122);
80
- --colors-red-5: rgb(241 70 84);
81
- --colors-red-6: rgb(233 37 53);
82
- --colors-red-7: rgb(205 19 35);
83
- --colors-red-8: rgb(164 10 22);
84
- --colors-red-9: rgb(124 4 14);
85
- --colors-yellow-1: rgb(255 251 230);
86
- --colors-yellow-10: rgb(89 76 2);
87
- --colors-yellow-2: rgb(255 249 218);
88
- --colors-yellow-3: rgb(255 243 178);
89
- --colors-yellow-4: rgb(255 217 5);
90
- --colors-yellow-5: rgb(230 195 5);
91
- --colors-yellow-6: rgb(204 174 4);
92
- --colors-yellow-7: rgb(191 163 4);
93
- --colors-yellow-8: rgb(153 130 3);
94
- --colors-yellow-9: rgb(115 98 2);
95
- --spacing-0-0px: 0px;
96
- --spacing-0․5-2px: 2px;
97
- --spacing-1-4px: 4px;
98
- --spacing-10-40px: 40px;
99
- --spacing-12-48px: 48px;
100
- --spacing-16-64px: 64px;
101
- --spacing-1․5-6px: 6px;
102
- --spacing-2-8px: 8px;
103
- --spacing-20-80px: 80px;
104
- --spacing-24-96px: 96px;
105
- --spacing-3-12px: 12px;
106
- --spacing-32-128px: 128px;
107
- --spacing-4-16px: 16px;
108
- --spacing-40-160px: 160px;
109
- --spacing-5-20px: 20px;
110
- --spacing-6-24px: 24px;
111
- --spacing-8-32px: 32px;
112
- }
1
+ /* _primitives-style.css */
2
+ :root {
3
+ --colors-alpha-black-0: rgb(0 0 0 / 0%);
4
+ --colors-alpha-black-10: rgb(0 0 0 / 10%);
5
+ --colors-alpha-black-100: rgb(0 0 0);
6
+ --colors-alpha-black-2: rgb(0 0 0 / 2%);
7
+ --colors-alpha-black-20: rgb(0 0 0 / 20%);
8
+ --colors-alpha-black-30: rgb(0 0 0 / 30%);
9
+ --colors-alpha-black-4: rgb(0 0 0 / 4%);
10
+ --colors-alpha-black-40: rgb(0 0 0 / 40%);
11
+ --colors-alpha-black-50: rgb(0 0 0 / 50%);
12
+ --colors-alpha-black-6: rgb(0 0 0 / 6%);
13
+ --colors-alpha-black-60: rgb(0 0 0 / 60%);
14
+ --colors-alpha-black-70: rgb(0 0 0 / 70%);
15
+ --colors-alpha-black-8: rgb(0 0 0 / 8%);
16
+ --colors-alpha-black-80: rgb(0 0 0 / 80%);
17
+ --colors-alpha-black-90: rgb(0 0 0 / 90%);
18
+ --colors-alpha-white-0: rgb(255 255 255 / 0%);
19
+ --colors-alpha-white-10: rgb(255 255 255 / 10%);
20
+ --colors-alpha-white-100: rgb(255 255 255);
21
+ --colors-alpha-white-2: rgb(255 255 255 / 2%);
22
+ --colors-alpha-white-20: rgb(255 255 255 / 20%);
23
+ --colors-alpha-white-30: rgb(255 255 255 / 30%);
24
+ --colors-alpha-white-4: rgb(255 255 255 / 4%);
25
+ --colors-alpha-white-40: rgb(255 255 255 / 40%);
26
+ --colors-alpha-white-50: rgb(255 255 255 / 50%);
27
+ --colors-alpha-white-6: rgb(255 255 255 / 6%);
28
+ --colors-alpha-white-60: rgb(255 255 255 / 60%);
29
+ --colors-alpha-white-70: rgb(255 255 255 / 70%);
30
+ --colors-alpha-white-8: rgb(255 255 255 / 8%);
31
+ --colors-alpha-white-80: rgb(255 255 255 / 80%);
32
+ --colors-alpha-white-90: rgb(255 255 255 / 90%);
33
+ --colors-base-black: rgb(0 0 0);
34
+ --colors-base-white: rgb(255 255 255);
35
+ --colors-forest-1: rgb(237 244 243);
36
+ --colors-forest-10: rgb(27 51 46);
37
+ --colors-forest-2: rgb(228 239 236);
38
+ --colors-forest-3: rgb(200 221 216);
39
+ --colors-forest-4: rgb(77 146 130);
40
+ --colors-forest-5: rgb(69 131 117);
41
+ --colors-forest-6: rgb(62 117 104);
42
+ --colors-forest-7: rgb(58 110 98);
43
+ --colors-forest-8: rgb(46 88 78);
44
+ --colors-forest-9: rgb(35 66 58);
45
+ --colors-gray-1: rgb(238 238 240);
46
+ --colors-gray-10: rgb(22 21 24);
47
+ --colors-gray-2: rgb(211 209 217);
48
+ --colors-gray-3: rgb(175 173 183);
49
+ --colors-gray-4: rgb(135 132 145);
50
+ --colors-gray-5: rgb(88 86 96);
51
+ --colors-gray-6: rgb(50 49 55);
52
+ --colors-gray-7: rgb(41 40 47);
53
+ --colors-gray-8: rgb(32 31 36);
54
+ --colors-gray-9: rgb(28 27 31);
55
+ --colors-green-1: rgb(229 255 249);
56
+ --colors-green-10: rgb(14 62 51);
57
+ --colors-green-2: rgb(183 250 234);
58
+ --colors-green-3: rgb(138 240 214);
59
+ --colors-green-4: rgb(70 200 168);
60
+ --colors-green-5: rgb(52 168 139);
61
+ --colors-green-6: rgb(32 151 122);
62
+ --colors-green-7: rgb(17 131 102);
63
+ --colors-green-8: rgb(7 105 81);
64
+ --colors-green-9: rgb(0 77 57);
65
+ --colors-orange-1: rgb(255 241 233);
66
+ --colors-orange-10: rgb(54 44 35);
67
+ --colors-orange-2: rgb(255 236 206);
68
+ --colors-orange-3: rgb(255 218 162);
69
+ --colors-orange-4: rgb(255 183 75);
70
+ --colors-orange-5: rgb(255 166 31);
71
+ --colors-orange-6: rgb(210 139 32);
72
+ --colors-orange-7: rgb(166 112 33);
73
+ --colors-orange-8: rgb(121 85 34);
74
+ --colors-orange-9: rgb(77 58 35);
75
+ --colors-red-1: rgb(255 229 232);
76
+ --colors-red-10: rgb(54 34 38);
77
+ --colors-red-2: rgb(254 190 195);
78
+ --colors-red-3: rgb(251 147 155);
79
+ --colors-red-4: rgb(247 110 122);
80
+ --colors-red-5: rgb(241 70 84);
81
+ --colors-red-6: rgb(233 37 53);
82
+ --colors-red-7: rgb(205 19 35);
83
+ --colors-red-8: rgb(164 10 22);
84
+ --colors-red-9: rgb(124 4 14);
85
+ --colors-yellow-1: rgb(255 251 230);
86
+ --colors-yellow-10: rgb(89 76 2);
87
+ --colors-yellow-2: rgb(255 249 218);
88
+ --colors-yellow-3: rgb(255 243 178);
89
+ --colors-yellow-4: rgb(255 217 5);
90
+ --colors-yellow-5: rgb(230 195 5);
91
+ --colors-yellow-6: rgb(204 174 4);
92
+ --colors-yellow-7: rgb(191 163 4);
93
+ --colors-yellow-8: rgb(153 130 3);
94
+ --colors-yellow-9: rgb(115 98 2);
95
+ --spacing-0-0px: 0px;
96
+ --spacing-0․5-2px: 2px;
97
+ --spacing-1-4px: 4px;
98
+ --spacing-10-40px: 40px;
99
+ --spacing-12-48px: 48px;
100
+ --spacing-16-64px: 64px;
101
+ --spacing-1․5-6px: 6px;
102
+ --spacing-2-8px: 8px;
103
+ --spacing-20-80px: 80px;
104
+ --spacing-24-96px: 96px;
105
+ --spacing-3-12px: 12px;
106
+ --spacing-32-128px: 128px;
107
+ --spacing-4-16px: 16px;
108
+ --spacing-40-160px: 160px;
109
+ --spacing-5-20px: 20px;
110
+ --spacing-6-24px: 24px;
111
+ --spacing-8-32px: 32px;
112
+ }
@@ -1,14 +1,14 @@
1
- /* 2.-radius-mode-1.css */
2
- :root {
3
- --2xl: 16px;
4
- --3xl: 20px;
5
- --4xl: 24px;
6
- --full: 9999px;
7
- --lg: 10px;
8
- --md: 8px;
9
- --none: 0px;
10
- --sm: 6px;
11
- --xl: 12px;
12
- --xs: 4px;
13
- --xxs: 2px;
14
- }
1
+ /* 2.-radius-mode-1.css */
2
+ :root {
3
+ --2xl: 16px;
4
+ --3xl: 20px;
5
+ --4xl: 24px;
6
+ --full: 9999px;
7
+ --lg: 10px;
8
+ --md: 8px;
9
+ --none: 0px;
10
+ --sm: 6px;
11
+ --xl: 12px;
12
+ --xs: 4px;
13
+ --xxs: 2px;
14
+ }
@@ -1,20 +1,20 @@
1
- /* 4.-spacing-mode-1.css */
2
- :root {
3
- --10xl: var(--spacing-32-128px);
4
- --11xl: var(--spacing-40-160px);
5
- --2xl: var(--spacing-5-20px);
6
- --3xl: var(--spacing-6-24px);
7
- --4xl: var(--spacing-8-32px);
8
- --5xl: var(--spacing-10-40px);
9
- --6xl: var(--spacing-12-48px);
10
- --7xl: var(--spacing-16-64px);
11
- --8xl: var(--spacing-20-80px);
12
- --9xl: var(--spacing-24-96px);
13
- --lg: var(--spacing-3-12px);
14
- --md: var(--spacing-2-8px);
15
- --none: var(--spacing-0-0px);
16
- --sm: var(--spacing-1․5-6px);
17
- --xl: var(--spacing-4-16px);
18
- --xs: var(--spacing-1-4px);
19
- --xxs: var(--spacing-0․5-2px);
20
- }
1
+ /* 4.-spacing-mode-1.css */
2
+ :root {
3
+ --10xl: var(--spacing-32-128px);
4
+ --11xl: var(--spacing-40-160px);
5
+ --2xl: var(--spacing-5-20px);
6
+ --3xl: var(--spacing-6-24px);
7
+ --4xl: var(--spacing-8-32px);
8
+ --5xl: var(--spacing-10-40px);
9
+ --6xl: var(--spacing-12-48px);
10
+ --7xl: var(--spacing-16-64px);
11
+ --8xl: var(--spacing-20-80px);
12
+ --9xl: var(--spacing-24-96px);
13
+ --lg: var(--spacing-3-12px);
14
+ --md: var(--spacing-2-8px);
15
+ --none: var(--spacing-0-0px);
16
+ --sm: var(--spacing-1․5-6px);
17
+ --xl: var(--spacing-4-16px);
18
+ --xs: var(--spacing-1-4px);
19
+ --xxs: var(--spacing-0․5-2px);
20
+ }
@@ -1,40 +1,40 @@
1
- /* 5.-typography-desktop.css */
2
- :root {
3
- --font-family-pingfang-sc: 'pingfang sc';
4
- --font-line-height-display-10xl: 128px;
5
- --font-line-height-display-2xl: 32px;
6
- --font-line-height-display-3xl: 34px;
7
- --font-line-height-display-4xl: 38px;
8
- --font-line-height-display-5xl: 44px;
9
- --font-line-height-display-6xl: 60px;
10
- --font-line-height-display-7xl: 72px;
11
- --font-line-height-display-8xl: 90px;
12
- --font-line-height-display-9xl: 96px;
13
- --font-line-height-text-base: 24px;
14
- --font-line-height-text-lg: 28px;
15
- --font-line-height-text-sm: 20px;
16
- --font-line-height-text-xl: 30px;
17
- --font-line-height-text-xs: 18px;
18
- --font-line-height-text-xxs: 14px;
19
- --font-size-display-10xl: 128px;
20
- --font-size-display-2xl: 24px;
21
- --font-size-display-3xl: 28px;
22
- --font-size-display-4xl: 30px;
23
- --font-size-display-5xl: 36px;
24
- --font-size-display-6xl: 48px;
25
- --font-size-display-7xl: 60px;
26
- --font-size-display-8xl: 72px;
27
- --font-size-display-9xl: 96px;
28
- --font-size-text-base: 16px;
29
- --font-size-text-lg: 18px;
30
- --font-size-text-sm: 14px;
31
- --font-size-text-xl: 20px;
32
- --font-size-text-xs: 12px;
33
- --font-size-text-xxs: 10px;
34
- --font-weight-pingfangsc-light: 'light';
35
- --font-weight-pingfangsc-medium: 'medium';
36
- --font-weight-pingfangsc-regular: 'regular';
37
- --font-weight-pingfangsc-semibold: 'semibold';
38
- --font-weight-pingfangsc-thin: 'thin';
39
- --font-weight-pingfangsc-ultralight: 'ultralight';
40
- }
1
+ /* 5.-typography-desktop.css */
2
+ :root {
3
+ --font-family-pingfang-sc: 'pingfang sc';
4
+ --font-line-height-display-10xl: 128px;
5
+ --font-line-height-display-2xl: 32px;
6
+ --font-line-height-display-3xl: 34px;
7
+ --font-line-height-display-4xl: 38px;
8
+ --font-line-height-display-5xl: 44px;
9
+ --font-line-height-display-6xl: 60px;
10
+ --font-line-height-display-7xl: 72px;
11
+ --font-line-height-display-8xl: 90px;
12
+ --font-line-height-display-9xl: 96px;
13
+ --font-line-height-text-base: 24px;
14
+ --font-line-height-text-lg: 28px;
15
+ --font-line-height-text-sm: 20px;
16
+ --font-line-height-text-xl: 30px;
17
+ --font-line-height-text-xs: 18px;
18
+ --font-line-height-text-xxs: 14px;
19
+ --font-size-display-10xl: 128px;
20
+ --font-size-display-2xl: 24px;
21
+ --font-size-display-3xl: 28px;
22
+ --font-size-display-4xl: 30px;
23
+ --font-size-display-5xl: 36px;
24
+ --font-size-display-6xl: 48px;
25
+ --font-size-display-7xl: 60px;
26
+ --font-size-display-8xl: 72px;
27
+ --font-size-display-9xl: 96px;
28
+ --font-size-text-base: 16px;
29
+ --font-size-text-lg: 18px;
30
+ --font-size-text-sm: 14px;
31
+ --font-size-text-xl: 20px;
32
+ --font-size-text-xs: 12px;
33
+ --font-size-text-xxs: 10px;
34
+ --font-weight-pingfangsc-light: 'light';
35
+ --font-weight-pingfangsc-medium: 'medium';
36
+ --font-weight-pingfangsc-regular: 'regular';
37
+ --font-weight-pingfangsc-semibold: 'semibold';
38
+ --font-weight-pingfangsc-thin: 'thin';
39
+ --font-weight-pingfangsc-ultralight: 'ultralight';
40
+ }
@@ -1,40 +1,40 @@
1
- /* 5.-typography-mobile.css */
2
- :root {
3
- --font-family-pingfang-sc: 'pingfang sc';
4
- --font-line-height-display-10xl: 40px;
5
- --font-line-height-display-2xl: 32px;
6
- --font-line-height-display-3xl: 34px;
7
- --font-line-height-display-4xl: 38px;
8
- --font-line-height-display-5xl: 44px;
9
- --font-line-height-display-6xl: 60px;
10
- --font-line-height-display-7xl: 72px;
11
- --font-line-height-display-8xl: 90px;
12
- --font-line-height-display-9xl: 96px;
13
- --font-line-height-text-base: 24px;
14
- --font-line-height-text-lg: 28px;
15
- --font-line-height-text-sm: 20px;
16
- --font-line-height-text-xl: 30px;
17
- --font-line-height-text-xs: 18px;
18
- --font-line-height-text-xxs: 14px;
19
- --font-size-display-10xl: 128px;
20
- --font-size-display-2xl: 24px;
21
- --font-size-display-3xl: 28px;
22
- --font-size-display-4xl: 24px;
23
- --font-size-display-5xl: 36px;
24
- --font-size-display-6xl: 48px;
25
- --font-size-display-7xl: 60px;
26
- --font-size-display-8xl: 72px;
27
- --font-size-display-9xl: 96px;
28
- --font-size-text-base: 16px;
29
- --font-size-text-lg: 18px;
30
- --font-size-text-sm: 14px;
31
- --font-size-text-xl: 20px;
32
- --font-size-text-xs: 12px;
33
- --font-size-text-xxs: 10px;
34
- --font-weight-pingfangsc-light: 'light';
35
- --font-weight-pingfangsc-medium: 'medium';
36
- --font-weight-pingfangsc-regular: 'regular';
37
- --font-weight-pingfangsc-semibold: 'semibold';
38
- --font-weight-pingfangsc-thin: 'thin';
39
- --font-weight-pingfangsc-ultralight: 'ultralight';
40
- }
1
+ /* 5.-typography-mobile.css */
2
+ :root {
3
+ --font-family-pingfang-sc: 'pingfang sc';
4
+ --font-line-height-display-10xl: 40px;
5
+ --font-line-height-display-2xl: 32px;
6
+ --font-line-height-display-3xl: 34px;
7
+ --font-line-height-display-4xl: 38px;
8
+ --font-line-height-display-5xl: 44px;
9
+ --font-line-height-display-6xl: 60px;
10
+ --font-line-height-display-7xl: 72px;
11
+ --font-line-height-display-8xl: 90px;
12
+ --font-line-height-display-9xl: 96px;
13
+ --font-line-height-text-base: 24px;
14
+ --font-line-height-text-lg: 28px;
15
+ --font-line-height-text-sm: 20px;
16
+ --font-line-height-text-xl: 30px;
17
+ --font-line-height-text-xs: 18px;
18
+ --font-line-height-text-xxs: 14px;
19
+ --font-size-display-10xl: 128px;
20
+ --font-size-display-2xl: 24px;
21
+ --font-size-display-3xl: 28px;
22
+ --font-size-display-4xl: 24px;
23
+ --font-size-display-5xl: 36px;
24
+ --font-size-display-6xl: 48px;
25
+ --font-size-display-7xl: 60px;
26
+ --font-size-display-8xl: 72px;
27
+ --font-size-display-9xl: 96px;
28
+ --font-size-text-base: 16px;
29
+ --font-size-text-lg: 18px;
30
+ --font-size-text-sm: 14px;
31
+ --font-size-text-xl: 20px;
32
+ --font-size-text-xs: 12px;
33
+ --font-size-text-xxs: 10px;
34
+ --font-weight-pingfangsc-light: 'light';
35
+ --font-weight-pingfangsc-medium: 'medium';
36
+ --font-weight-pingfangsc-regular: 'regular';
37
+ --font-weight-pingfangsc-semibold: 'semibold';
38
+ --font-weight-pingfangsc-thin: 'thin';
39
+ --font-weight-pingfangsc-ultralight: 'ultralight';
40
+ }
@@ -1,23 +1,23 @@
1
- /**
2
- * 类名装饰器方法
3
- * @param {...(string|boolean|undefined|null)} classes - 类名参数
4
- * @returns {string} 合并后的类名字符串
5
- */
6
- export const classNames = (...classes) => {
7
- return classes.filter(Boolean).join(' ')
8
- }
9
-
10
- /**
11
- * 排除指定属性
12
- * @param {Object} attrs - 原始属性对象
13
- * @param {...string} excludeKeys - 要排除的属性名
14
- * @returns {Object} 排除指定属性后的新对象
15
- */
16
- export const excludeAttrs = (attrs, ...excludeKeys) => {
17
- const result = { ...attrs }
18
- excludeKeys.forEach(key => {
19
- delete result[key]
20
- })
21
- return result
22
- }
23
-
1
+ /**
2
+ * 类名装饰器方法
3
+ * @param {...(string|boolean|undefined|null)} classes - 类名参数
4
+ * @returns {string} 合并后的类名字符串
5
+ */
6
+ export const classNames = (...classes) => {
7
+ return classes.filter(Boolean).join(' ')
8
+ }
9
+
10
+ /**
11
+ * 排除指定属性
12
+ * @param {Object} attrs - 原始属性对象
13
+ * @param {...string} excludeKeys - 要排除的属性名
14
+ * @returns {Object} 排除指定属性后的新对象
15
+ */
16
+ export const excludeAttrs = (attrs, ...excludeKeys) => {
17
+ const result = { ...attrs }
18
+ excludeKeys.forEach(key => {
19
+ delete result[key]
20
+ })
21
+ return result
22
+ }
23
+