@x-plat/design-system 0.1.5 → 0.2.1

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 (178) hide show
  1. package/dist/{colors-BG91q_uV.d.cts → colors-DmMsWD7G.d.cts} +20 -4
  2. package/dist/{colors-BG91q_uV.d.ts → colors-DmMsWD7G.d.ts} +20 -4
  3. package/dist/components/Accordion/index.cjs +25 -14
  4. package/dist/components/Accordion/index.css +6 -6
  5. package/dist/components/Accordion/index.d.cts +16 -3
  6. package/dist/components/Accordion/index.d.ts +16 -3
  7. package/dist/components/Accordion/index.js +25 -14
  8. package/dist/components/Alert/index.cjs +1 -1
  9. package/dist/components/Alert/index.css +16 -16
  10. package/dist/components/Alert/index.js +1 -1
  11. package/dist/components/Avatar/index.cjs +1 -1
  12. package/dist/components/Avatar/index.css +3 -279
  13. package/dist/components/Avatar/index.d.cts +2 -118
  14. package/dist/components/Avatar/index.d.ts +2 -118
  15. package/dist/components/Avatar/index.js +1 -1
  16. package/dist/components/Badge/index.cjs +3 -2
  17. package/dist/components/Badge/index.css +23 -279
  18. package/dist/components/Badge/index.d.cts +4 -118
  19. package/dist/components/Badge/index.d.ts +4 -118
  20. package/dist/components/Badge/index.js +3 -2
  21. package/dist/components/Breadcrumb/index.cjs +1 -1
  22. package/dist/components/Breadcrumb/index.css +4 -4
  23. package/dist/components/Breadcrumb/index.js +1 -1
  24. package/dist/components/Button/index.cjs +3 -2
  25. package/dist/components/Button/index.css +26 -1214
  26. package/dist/components/Button/index.d.cts +4 -118
  27. package/dist/components/Button/index.d.ts +4 -118
  28. package/dist/components/Button/index.js +3 -2
  29. package/dist/components/Card/index.cjs +1 -1
  30. package/dist/components/Card/index.css +3 -3
  31. package/dist/components/Card/index.js +1 -1
  32. package/dist/components/CardTab/index.cjs +124 -0
  33. package/dist/components/CardTab/index.css +78 -0
  34. package/dist/components/CardTab/index.d.cts +44 -0
  35. package/dist/components/CardTab/index.d.ts +44 -0
  36. package/dist/components/CardTab/index.js +87 -0
  37. package/dist/components/Chart/index.cjs +14230 -37
  38. package/dist/components/Chart/index.js +14217 -33
  39. package/dist/components/CheckBox/index.cjs +3 -2
  40. package/dist/components/CheckBox/index.css +27 -563
  41. package/dist/components/CheckBox/index.d.cts +5 -119
  42. package/dist/components/CheckBox/index.d.ts +5 -119
  43. package/dist/components/CheckBox/index.js +3 -2
  44. package/dist/components/Chip/index.cjs +3 -2
  45. package/dist/components/Chip/index.css +21 -1209
  46. package/dist/components/Chip/index.d.cts +4 -118
  47. package/dist/components/Chip/index.d.ts +4 -118
  48. package/dist/components/Chip/index.js +3 -2
  49. package/dist/components/DatePicker/index.cjs +10772 -56
  50. package/dist/components/DatePicker/index.css +802 -1231
  51. package/dist/components/DatePicker/index.d.cts +3 -235
  52. package/dist/components/DatePicker/index.d.ts +3 -235
  53. package/dist/components/DatePicker/index.js +11004 -280
  54. package/dist/components/Divider/index.cjs +1 -1
  55. package/dist/components/Divider/index.css +2 -2
  56. package/dist/components/Divider/index.js +1 -1
  57. package/dist/components/Drawer/index.cjs +1 -1
  58. package/dist/components/Drawer/index.css +5 -5
  59. package/dist/components/Drawer/index.js +1 -1
  60. package/dist/components/Dropdown/index.cjs +1 -1
  61. package/dist/components/Dropdown/index.css +7 -7
  62. package/dist/components/Dropdown/index.js +1 -1
  63. package/dist/components/EmptyState/index.cjs +1 -1
  64. package/dist/components/EmptyState/index.css +3 -3
  65. package/dist/components/EmptyState/index.js +1 -1
  66. package/dist/components/FileUpload/index.cjs +1 -1
  67. package/dist/components/FileUpload/index.css +8 -8
  68. package/dist/components/FileUpload/index.js +1 -1
  69. package/dist/components/HtmlTypeWriter/index.css +1 -1
  70. package/dist/components/ImageSelector/index.css +9 -9
  71. package/dist/components/Input/index.cjs +3 -2
  72. package/dist/components/Input/index.css +21 -10
  73. package/dist/components/Input/index.d.cts +6 -2
  74. package/dist/components/Input/index.d.ts +6 -2
  75. package/dist/components/Input/index.js +3 -2
  76. package/dist/components/Modal/index.cjs +1 -1
  77. package/dist/components/Modal/index.js +1 -1
  78. package/dist/components/Pagination/index.cjs +3 -2
  79. package/dist/components/Pagination/index.css +33 -283
  80. package/dist/components/Pagination/index.d.cts +4 -118
  81. package/dist/components/Pagination/index.d.ts +4 -118
  82. package/dist/components/Pagination/index.js +3 -2
  83. package/dist/components/PopOver/index.cjs +1 -1
  84. package/dist/components/PopOver/index.js +1 -1
  85. package/dist/components/Progress/index.cjs +1 -1
  86. package/dist/components/Progress/index.css +3 -281
  87. package/dist/components/Progress/index.d.cts +2 -118
  88. package/dist/components/Progress/index.d.ts +2 -118
  89. package/dist/components/Progress/index.js +1 -1
  90. package/dist/components/Radio/index.cjs +4 -1
  91. package/dist/components/Radio/index.css +36 -747
  92. package/dist/components/Radio/index.d.cts +6 -119
  93. package/dist/components/Radio/index.d.ts +6 -119
  94. package/dist/components/Radio/index.js +4 -1
  95. package/dist/components/Select/index.cjs +4 -2
  96. package/dist/components/Select/index.css +38 -18
  97. package/dist/components/Select/index.d.cts +3 -0
  98. package/dist/components/Select/index.d.ts +3 -0
  99. package/dist/components/Select/index.js +4 -2
  100. package/dist/components/Skeleton/index.cjs +1 -1
  101. package/dist/components/Skeleton/index.css +1 -1
  102. package/dist/components/Skeleton/index.js +1 -1
  103. package/dist/components/Spinner/index.cjs +1 -1
  104. package/dist/components/Spinner/index.css +2 -280
  105. package/dist/components/Spinner/index.d.cts +2 -118
  106. package/dist/components/Spinner/index.d.ts +2 -118
  107. package/dist/components/Spinner/index.js +1 -1
  108. package/dist/components/Steps/index.cjs +1 -1
  109. package/dist/components/Steps/index.css +14 -846
  110. package/dist/components/Steps/index.d.cts +2 -118
  111. package/dist/components/Steps/index.d.ts +2 -118
  112. package/dist/components/Steps/index.js +1 -1
  113. package/dist/components/Swiper/index.cjs +5874 -18
  114. package/dist/components/Swiper/index.css +229 -0
  115. package/dist/components/Swiper/index.js +5863 -17
  116. package/dist/components/Switch/index.cjs +1 -1
  117. package/dist/components/Switch/index.css +9 -745
  118. package/dist/components/Switch/index.d.cts +2 -118
  119. package/dist/components/Switch/index.d.ts +2 -118
  120. package/dist/components/Switch/index.js +1 -1
  121. package/dist/components/Tab/index.cjs +3 -3
  122. package/dist/components/Tab/index.css +20 -9
  123. package/dist/components/Tab/index.d.cts +2 -0
  124. package/dist/components/Tab/index.d.ts +2 -0
  125. package/dist/components/Tab/index.js +3 -3
  126. package/dist/components/Table/index.cjs +1 -1
  127. package/dist/components/Table/index.css +47 -4003
  128. package/dist/components/Table/index.d.cts +2 -118
  129. package/dist/components/Table/index.d.ts +2 -118
  130. package/dist/components/Table/index.js +1 -1
  131. package/dist/components/Tag/index.cjs +3 -2
  132. package/dist/components/Tag/index.css +27 -467
  133. package/dist/components/Tag/index.d.cts +4 -118
  134. package/dist/components/Tag/index.d.ts +4 -118
  135. package/dist/components/Tag/index.js +3 -2
  136. package/dist/components/TextArea/index.cjs +1 -1
  137. package/dist/components/TextArea/index.css +4 -4
  138. package/dist/components/TextArea/index.js +1 -1
  139. package/dist/components/Toast/index.cjs +1 -1
  140. package/dist/components/Toast/index.css +8 -8
  141. package/dist/components/Toast/index.js +1 -1
  142. package/dist/components/Tooltip/index.cjs +1 -1
  143. package/dist/components/Tooltip/index.css +4 -560
  144. package/dist/components/Tooltip/index.d.cts +2 -118
  145. package/dist/components/Tooltip/index.d.ts +2 -118
  146. package/dist/components/Tooltip/index.js +1 -1
  147. package/dist/components/Video/index.cjs +1 -1
  148. package/dist/components/Video/index.css +3 -3
  149. package/dist/components/Video/index.js +1 -1
  150. package/dist/components/index.cjs +25841 -842
  151. package/dist/components/index.css +1929 -12543
  152. package/dist/components/index.d.cts +2 -1
  153. package/dist/components/index.d.ts +2 -1
  154. package/dist/components/index.js +25836 -841
  155. package/dist/index.cjs +25875 -876
  156. package/dist/index.css +2358 -12598
  157. package/dist/index.d.cts +2 -1
  158. package/dist/index.d.ts +2 -1
  159. package/dist/index.js +25878 -883
  160. package/dist/layout/Grid/FullGrid/index.cjs +1 -1
  161. package/dist/layout/Grid/FullGrid/index.js +1 -1
  162. package/dist/layout/Grid/FullScreen/index.cjs +1 -1
  163. package/dist/layout/Grid/FullScreen/index.js +1 -1
  164. package/dist/layout/Grid/Item/index.cjs +1 -1
  165. package/dist/layout/Grid/Item/index.js +1 -1
  166. package/dist/layout/Grid/index.cjs +1 -1
  167. package/dist/layout/Grid/index.js +1 -1
  168. package/dist/layout/Header/index.css +2 -2
  169. package/dist/layout/Layout/index.css +1 -1
  170. package/dist/layout/SideBar/index.cjs +1 -1
  171. package/dist/layout/SideBar/index.js +1 -1
  172. package/dist/layout/index.cjs +1 -1
  173. package/dist/layout/index.css +3 -3
  174. package/dist/layout/index.js +1 -1
  175. package/dist/tokens/index.d.cts +1 -1
  176. package/dist/tokens/index.d.ts +1 -1
  177. package/package.json +13 -12
  178. package/README.md +0 -123
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ColorNamespace, a as ColorName, d as ColorProps } from '../../colors-BG91q_uV.cjs';
2
+ import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.cjs';
3
3
 
4
4
  type SwitchSize = "sm" | "md" | "lg";
5
5
  interface SwitchProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ColorProps<N, C> {
@@ -10,123 +10,7 @@ interface SwitchProps<N extends ColorNamespace, C extends ColorName<N> = ColorNa
10
10
  onChange?: (value: boolean) => void;
11
11
  }
12
12
  declare const Switch: {
13
- <N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof {
14
- readonly xplat: {
15
- readonly red: {
16
- readonly 50: "#FFF0F0";
17
- readonly 100: "#FFDDDE";
18
- readonly 200: "#FFC1C2";
19
- readonly 300: "#FF9698";
20
- readonly 400: "#FF5A5D";
21
- readonly 500: "#FF272B";
22
- readonly 600: "#F80409";
23
- readonly 700: "#D40105";
24
- readonly 800: "#AE0609";
25
- readonly 900: "#900C0F";
26
- };
27
- readonly green: {
28
- readonly 50: "#E5F6EA";
29
- readonly 100: "#C1E7CC";
30
- readonly 200: "#98D8AC";
31
- readonly 300: "#6CCA8B";
32
- readonly 400: "#47BE72";
33
- readonly 500: "#10B259";
34
- readonly 600: "#00A34F";
35
- readonly 700: "#009143";
36
- readonly 800: "#007F38";
37
- readonly 900: "#006024";
38
- };
39
- readonly orange: {
40
- readonly 50: "#FFF8EC";
41
- readonly 100: "#FFF0D3";
42
- readonly 200: "#FFDDA5";
43
- readonly 300: "#FFC46D";
44
- readonly 400: "#FF9F32";
45
- readonly 500: "#FF820A";
46
- readonly 600: "#FF6900";
47
- readonly 700: "#CC4B02";
48
- readonly 800: "#A13A0B";
49
- readonly 900: "#82320C";
50
- };
51
- readonly yellow: {
52
- readonly 50: "#FFFDE7";
53
- readonly 100: "#FFFAC1";
54
- readonly 200: "#FFF186";
55
- readonly 300: "#FFE041";
56
- readonly 400: "#FFCC0D";
57
- readonly 500: "#F0B100";
58
- readonly 600: "#D18800";
59
- readonly 700: "#A66002";
60
- readonly 800: "#894B0A";
61
- readonly 900: "#743D0F";
62
- };
63
- readonly blue: {
64
- readonly 50: "#F1F4FD";
65
- readonly 100: "#DFE7FA";
66
- readonly 200: "#C5D4F8";
67
- readonly 300: "#9EB8F2";
68
- readonly 400: "#7093EA";
69
- readonly 500: "#4D6DE3";
70
- readonly 600: "#3950D7";
71
- readonly 700: "#303EC5";
72
- readonly 800: "#2D35A0";
73
- readonly 900: "#29317F";
74
- };
75
- readonly lightblue: {
76
- readonly 50: "#EEFAFF";
77
- readonly 100: "#D9F4FF";
78
- readonly 200: "#BBEDFF";
79
- readonly 300: "#8DE3FF";
80
- readonly 400: "#57D0FF";
81
- readonly 500: "#30B6FF";
82
- readonly 600: "#1999F7";
83
- readonly 700: "#1280E3";
84
- readonly 800: "#1566B8";
85
- readonly 900: "#175791";
86
- };
87
- readonly purple: {
88
- readonly 50: "#FBF6FE";
89
- readonly 100: "#F5EAFD";
90
- readonly 200: "#EDD8FC";
91
- readonly 300: "#E0BAF8";
92
- readonly 400: "#CD8DF3";
93
- readonly 500: "#B961EB";
94
- readonly 600: "#A541DC";
95
- readonly 700: "#9230C5";
96
- readonly 800: "#782B9E";
97
- readonly 900: "#62247F";
98
- };
99
- readonly pink: {
100
- readonly 50: "#FFF4FE";
101
- readonly 100: "#FFE7FD";
102
- readonly 200: "#FFCFFA";
103
- readonly 300: "#FEA9F1";
104
- readonly 400: "#FD75E7";
105
- readonly 500: "#F553DA";
106
- readonly 600: "#D821B6";
107
- readonly 700: "#B31892";
108
- readonly 800: "#921676";
109
- readonly 900: "#781761";
110
- };
111
- readonly neutral: {
112
- readonly 50: "#FAFAFA";
113
- readonly 100: "#F5F5F5";
114
- readonly 200: "#E5E5E5";
115
- readonly 300: "#D4D4D4";
116
- readonly 400: "#A1A1A1";
117
- readonly 500: "#737373";
118
- readonly 600: "#525252";
119
- readonly 700: "#404040";
120
- readonly 800: "#262626";
121
- readonly 900: "#171717";
122
- };
123
- readonly black: "#000000";
124
- readonly white: "#FFFFFF";
125
- };
126
- readonly test: {
127
- readonly default: "#ffffff";
128
- };
129
- }[N]>(props: SwitchProps<N, C>): react_jsx_runtime.JSX.Element;
13
+ <N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: SwitchProps<N, C>): react_jsx_runtime.JSX.Element;
130
14
  displayName: string;
131
15
  };
132
16
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ColorNamespace, a as ColorName, d as ColorProps } from '../../colors-BG91q_uV.js';
2
+ import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.js';
3
3
 
4
4
  type SwitchSize = "sm" | "md" | "lg";
5
5
  interface SwitchProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ColorProps<N, C> {
@@ -10,123 +10,7 @@ interface SwitchProps<N extends ColorNamespace, C extends ColorName<N> = ColorNa
10
10
  onChange?: (value: boolean) => void;
11
11
  }
12
12
  declare const Switch: {
13
- <N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof {
14
- readonly xplat: {
15
- readonly red: {
16
- readonly 50: "#FFF0F0";
17
- readonly 100: "#FFDDDE";
18
- readonly 200: "#FFC1C2";
19
- readonly 300: "#FF9698";
20
- readonly 400: "#FF5A5D";
21
- readonly 500: "#FF272B";
22
- readonly 600: "#F80409";
23
- readonly 700: "#D40105";
24
- readonly 800: "#AE0609";
25
- readonly 900: "#900C0F";
26
- };
27
- readonly green: {
28
- readonly 50: "#E5F6EA";
29
- readonly 100: "#C1E7CC";
30
- readonly 200: "#98D8AC";
31
- readonly 300: "#6CCA8B";
32
- readonly 400: "#47BE72";
33
- readonly 500: "#10B259";
34
- readonly 600: "#00A34F";
35
- readonly 700: "#009143";
36
- readonly 800: "#007F38";
37
- readonly 900: "#006024";
38
- };
39
- readonly orange: {
40
- readonly 50: "#FFF8EC";
41
- readonly 100: "#FFF0D3";
42
- readonly 200: "#FFDDA5";
43
- readonly 300: "#FFC46D";
44
- readonly 400: "#FF9F32";
45
- readonly 500: "#FF820A";
46
- readonly 600: "#FF6900";
47
- readonly 700: "#CC4B02";
48
- readonly 800: "#A13A0B";
49
- readonly 900: "#82320C";
50
- };
51
- readonly yellow: {
52
- readonly 50: "#FFFDE7";
53
- readonly 100: "#FFFAC1";
54
- readonly 200: "#FFF186";
55
- readonly 300: "#FFE041";
56
- readonly 400: "#FFCC0D";
57
- readonly 500: "#F0B100";
58
- readonly 600: "#D18800";
59
- readonly 700: "#A66002";
60
- readonly 800: "#894B0A";
61
- readonly 900: "#743D0F";
62
- };
63
- readonly blue: {
64
- readonly 50: "#F1F4FD";
65
- readonly 100: "#DFE7FA";
66
- readonly 200: "#C5D4F8";
67
- readonly 300: "#9EB8F2";
68
- readonly 400: "#7093EA";
69
- readonly 500: "#4D6DE3";
70
- readonly 600: "#3950D7";
71
- readonly 700: "#303EC5";
72
- readonly 800: "#2D35A0";
73
- readonly 900: "#29317F";
74
- };
75
- readonly lightblue: {
76
- readonly 50: "#EEFAFF";
77
- readonly 100: "#D9F4FF";
78
- readonly 200: "#BBEDFF";
79
- readonly 300: "#8DE3FF";
80
- readonly 400: "#57D0FF";
81
- readonly 500: "#30B6FF";
82
- readonly 600: "#1999F7";
83
- readonly 700: "#1280E3";
84
- readonly 800: "#1566B8";
85
- readonly 900: "#175791";
86
- };
87
- readonly purple: {
88
- readonly 50: "#FBF6FE";
89
- readonly 100: "#F5EAFD";
90
- readonly 200: "#EDD8FC";
91
- readonly 300: "#E0BAF8";
92
- readonly 400: "#CD8DF3";
93
- readonly 500: "#B961EB";
94
- readonly 600: "#A541DC";
95
- readonly 700: "#9230C5";
96
- readonly 800: "#782B9E";
97
- readonly 900: "#62247F";
98
- };
99
- readonly pink: {
100
- readonly 50: "#FFF4FE";
101
- readonly 100: "#FFE7FD";
102
- readonly 200: "#FFCFFA";
103
- readonly 300: "#FEA9F1";
104
- readonly 400: "#FD75E7";
105
- readonly 500: "#F553DA";
106
- readonly 600: "#D821B6";
107
- readonly 700: "#B31892";
108
- readonly 800: "#921676";
109
- readonly 900: "#781761";
110
- };
111
- readonly neutral: {
112
- readonly 50: "#FAFAFA";
113
- readonly 100: "#F5F5F5";
114
- readonly 200: "#E5E5E5";
115
- readonly 300: "#D4D4D4";
116
- readonly 400: "#A1A1A1";
117
- readonly 500: "#737373";
118
- readonly 600: "#525252";
119
- readonly 700: "#404040";
120
- readonly 800: "#262626";
121
- readonly 900: "#171717";
122
- };
123
- readonly black: "#000000";
124
- readonly white: "#FFFFFF";
125
- };
126
- readonly test: {
127
- readonly default: "#ffffff";
128
- };
129
- }[N]>(props: SwitchProps<N, C>): react_jsx_runtime.JSX.Element;
13
+ <N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: SwitchProps<N, C>): react_jsx_runtime.JSX.Element;
130
14
  displayName: string;
131
15
  };
132
16
 
@@ -128,7 +128,7 @@ var getColorClass = (namespace, palette, shade) => {
128
128
  return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
129
129
  };
130
130
 
131
- // node_modules/clsx/dist/clsx.mjs
131
+ // ../../node_modules/clsx/dist/clsx.mjs
132
132
  function r(e) {
133
133
  var t, f, n = "";
134
134
  if ("string" == typeof e || "number" == typeof e) n += e;
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(Tab_exports);
37
37
  // src/components/Tab/Tab.tsx
38
38
  var import_react2 = __toESM(require("react"), 1);
39
39
 
40
- // node_modules/clsx/dist/clsx.mjs
40
+ // ../../node_modules/clsx/dist/clsx.mjs
41
41
  function r(e) {
42
42
  var t, f, n = "";
43
43
  if ("string" == typeof e || "number" == typeof e) n += e;
@@ -74,7 +74,7 @@ var TabItem_default = TabItem;
74
74
  // src/components/Tab/Tab.tsx
75
75
  var import_jsx_runtime2 = require("react/jsx-runtime");
76
76
  var Tab = (props) => {
77
- const { activeIndex, onChange, tabs, type } = props;
77
+ const { activeIndex, onChange, tabs, type, size = "md" } = props;
78
78
  const [underlineStyle, setUnderlineStyle] = import_react2.default.useState({
79
79
  left: 0,
80
80
  width: 0
@@ -89,7 +89,7 @@ var Tab = (props) => {
89
89
  setUnderlineStyle({ left: el.offsetLeft, width: el.offsetWidth });
90
90
  }
91
91
  }, [activeIndex, tabs.length]);
92
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: clsx_default("lib-xplat-tab", `type-${type}`), children: [
92
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: clsx_default("lib-xplat-tab", `type-${type}`, size), children: [
93
93
  tabs.map((tab, idx) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
94
94
  TabItem_default,
95
95
  {
@@ -3,12 +3,23 @@
3
3
  position: relative;
4
4
  display: flex;
5
5
  width: fit-content;
6
- height: 2.5rem;
7
6
  overflow: hidden;
8
7
  align-items: center;
9
8
  }
9
+ .lib-xplat-tab.sm {
10
+ height: 2rem;
11
+ font-size: 14px;
12
+ }
13
+ .lib-xplat-tab.md {
14
+ height: 2.5rem;
15
+ font-size: 16px;
16
+ }
17
+ .lib-xplat-tab.lg {
18
+ height: 3rem;
19
+ font-size: 18px;
20
+ }
10
21
  .lib-xplat-tab.type-default {
11
- background-color: #737373;
22
+ background-color: var(--xplat-neutral-500);
12
23
  border-radius: 0.5rem;
13
24
  }
14
25
  .lib-xplat-tab.type-default > .tab-item {
@@ -17,17 +28,17 @@
17
28
  display: flex;
18
29
  align-items: center;
19
30
  cursor: pointer;
20
- border-right: 1px solid #A1A1A1;
21
- color: #FFFFFF;
31
+ border-right: 1px solid var(--xplat-neutral-400);
32
+ color: var(--xplat-white);
22
33
  }
23
34
  .lib-xplat-tab.type-default > .tab-item:last-child {
24
35
  border-right: none;
25
36
  }
26
37
  .lib-xplat-tab.type-default > .tab-item.active {
27
- background-color: #4D6DE3;
38
+ background-color: var(--xplat-blue-500);
28
39
  }
29
40
  .lib-xplat-tab.type-toggle {
30
- border-bottom: 1px solid #E5E5E5;
41
+ border-bottom: 1px solid var(--xplat-neutral-200);
31
42
  gap: 1.5rem;
32
43
  }
33
44
  .lib-xplat-tab.type-toggle > .tab-item {
@@ -42,10 +53,10 @@
42
53
  border: none;
43
54
  cursor: pointer;
44
55
  transition: color 0.2s;
45
- color: #737373;
56
+ color: var(--xplat-neutral-500);
46
57
  }
47
58
  .lib-xplat-tab.type-toggle > .tab-item.active {
48
- color: #3950D7;
59
+ color: var(--xplat-blue-600);
49
60
  }
50
61
  .lib-xplat-tab.type-toggle > .tab-toggle-underline {
51
62
  position: absolute;
@@ -53,7 +64,7 @@
53
64
  right: 0;
54
65
  bottom: -1px;
55
66
  height: 2px;
56
- background-color: #3950D7;
67
+ background-color: var(--xplat-blue-600);
57
68
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
58
69
  will-change: left, width;
59
70
  }
@@ -4,11 +4,13 @@ interface TabItemType {
4
4
  value: string | number;
5
5
  title: string;
6
6
  }
7
+ type TabSize = "sm" | "md" | "lg";
7
8
  interface TabProps {
8
9
  activeIndex: number;
9
10
  tabs: TabItemType[];
10
11
  onChange: (value: TabItemType, index: number) => void;
11
12
  type: "default" | "toggle";
13
+ size?: TabSize;
12
14
  }
13
15
  declare const Tab: {
14
16
  (props: TabProps): react_jsx_runtime.JSX.Element;
@@ -4,11 +4,13 @@ interface TabItemType {
4
4
  value: string | number;
5
5
  title: string;
6
6
  }
7
+ type TabSize = "sm" | "md" | "lg";
7
8
  interface TabProps {
8
9
  activeIndex: number;
9
10
  tabs: TabItemType[];
10
11
  onChange: (value: TabItemType, index: number) => void;
11
12
  type: "default" | "toggle";
13
+ size?: TabSize;
12
14
  }
13
15
  declare const Tab: {
14
16
  (props: TabProps): react_jsx_runtime.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  // src/components/Tab/Tab.tsx
2
2
  import React2 from "react";
3
3
 
4
- // node_modules/clsx/dist/clsx.mjs
4
+ // ../../node_modules/clsx/dist/clsx.mjs
5
5
  function r(e) {
6
6
  var t, f, n = "";
7
7
  if ("string" == typeof e || "number" == typeof e) n += e;
@@ -38,7 +38,7 @@ var TabItem_default = TabItem;
38
38
  // src/components/Tab/Tab.tsx
39
39
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
40
40
  var Tab = (props) => {
41
- const { activeIndex, onChange, tabs, type } = props;
41
+ const { activeIndex, onChange, tabs, type, size = "md" } = props;
42
42
  const [underlineStyle, setUnderlineStyle] = React2.useState({
43
43
  left: 0,
44
44
  width: 0
@@ -53,7 +53,7 @@ var Tab = (props) => {
53
53
  setUnderlineStyle({ left: el.offsetLeft, width: el.offsetWidth });
54
54
  }
55
55
  }, [activeIndex, tabs.length]);
56
- return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-tab", `type-${type}`), children: [
56
+ return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-tab", `type-${type}`, size), children: [
57
57
  tabs.map((tab, idx) => /* @__PURE__ */ jsx2(
58
58
  TabItem_default,
59
59
  {
@@ -38,7 +38,7 @@ __export(Table_exports, {
38
38
  });
39
39
  module.exports = __toCommonJS(Table_exports);
40
40
 
41
- // node_modules/clsx/dist/clsx.mjs
41
+ // ../../node_modules/clsx/dist/clsx.mjs
42
42
  function r(e) {
43
43
  var t, f, n = "";
44
44
  if ("string" == typeof e || "number" == typeof e) n += e;