@x-plat/design-system 0.1.2 → 0.1.4

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 (112) hide show
  1. package/dist/components/Accordion/index.cjs +1021 -0
  2. package/dist/components/Accordion/index.css +51 -0
  3. package/dist/components/Accordion/index.d.cts +16 -0
  4. package/dist/components/Accordion/index.d.ts +16 -0
  5. package/dist/components/Accordion/index.js +984 -0
  6. package/dist/components/Alert/index.cjs +72 -0
  7. package/dist/components/Alert/index.css +60 -0
  8. package/dist/components/Alert/index.d.cts +12 -0
  9. package/dist/components/Alert/index.d.ts +12 -0
  10. package/dist/components/Alert/index.js +45 -0
  11. package/dist/components/Avatar/index.cjs +196 -0
  12. package/dist/components/Avatar/index.css +322 -0
  13. package/dist/components/Avatar/index.d.cts +133 -0
  14. package/dist/components/Avatar/index.d.ts +133 -0
  15. package/dist/components/Avatar/index.js +169 -0
  16. package/dist/components/Badge/index.cjs +200 -0
  17. package/dist/components/Badge/index.css +307 -0
  18. package/dist/components/Badge/index.d.cts +133 -0
  19. package/dist/components/Badge/index.d.ts +133 -0
  20. package/dist/components/Badge/index.js +173 -0
  21. package/dist/components/Breadcrumb/index.cjs +60 -0
  22. package/dist/components/Breadcrumb/index.css +37 -0
  23. package/dist/components/Breadcrumb/index.d.cts +15 -0
  24. package/dist/components/Breadcrumb/index.d.ts +15 -0
  25. package/dist/components/Breadcrumb/index.js +33 -0
  26. package/dist/components/Chart/index.cjs +6 -3
  27. package/dist/components/Chart/index.js +6 -3
  28. package/dist/components/CheckBox/index.cjs +1 -1
  29. package/dist/components/CheckBox/index.css +13 -1
  30. package/dist/components/CheckBox/index.js +1 -1
  31. package/dist/components/DatePicker/index.cjs +77 -5
  32. package/dist/components/DatePicker/index.css +20 -2
  33. package/dist/components/DatePicker/index.d.cts +245 -4
  34. package/dist/components/DatePicker/index.d.ts +245 -4
  35. package/dist/components/DatePicker/index.js +77 -5
  36. package/dist/components/Divider/index.cjs +61 -0
  37. package/dist/components/Divider/index.css +15 -0
  38. package/dist/components/Divider/index.d.cts +10 -0
  39. package/dist/components/Divider/index.d.ts +10 -0
  40. package/dist/components/Divider/index.js +34 -0
  41. package/dist/components/Drawer/index.cjs +111 -0
  42. package/dist/components/Drawer/index.css +70 -0
  43. package/dist/components/Drawer/index.d.cts +14 -0
  44. package/dist/components/Drawer/index.d.ts +14 -0
  45. package/dist/components/Drawer/index.js +74 -0
  46. package/dist/components/Dropdown/index.cjs +185 -0
  47. package/dist/components/Dropdown/index.css +54 -0
  48. package/dist/components/Dropdown/index.d.cts +17 -0
  49. package/dist/components/Dropdown/index.d.ts +17 -0
  50. package/dist/components/Dropdown/index.js +148 -0
  51. package/dist/components/EmptyState/index.cjs +60 -0
  52. package/dist/components/EmptyState/index.css +32 -0
  53. package/dist/components/EmptyState/index.d.cts +12 -0
  54. package/dist/components/EmptyState/index.d.ts +12 -0
  55. package/dist/components/EmptyState/index.js +33 -0
  56. package/dist/components/FileUpload/index.cjs +1039 -0
  57. package/dist/components/FileUpload/index.css +42 -0
  58. package/dist/components/FileUpload/index.d.cts +14 -0
  59. package/dist/components/FileUpload/index.d.ts +14 -0
  60. package/dist/components/FileUpload/index.js +1002 -0
  61. package/dist/components/ImageSelector/index.cjs +9 -3
  62. package/dist/components/ImageSelector/index.js +9 -3
  63. package/dist/components/Modal/index.cjs +2 -0
  64. package/dist/components/Modal/index.js +2 -0
  65. package/dist/components/Pagination/index.cjs +1167 -0
  66. package/dist/components/Pagination/index.css +325 -0
  67. package/dist/components/Pagination/index.d.cts +133 -0
  68. package/dist/components/Pagination/index.d.ts +133 -0
  69. package/dist/components/Pagination/index.js +1140 -0
  70. package/dist/components/Progress/index.cjs +218 -0
  71. package/dist/components/Progress/index.css +313 -0
  72. package/dist/components/Progress/index.d.cts +133 -0
  73. package/dist/components/Progress/index.d.ts +133 -0
  74. package/dist/components/Progress/index.js +191 -0
  75. package/dist/components/Radio/index.css +1 -1
  76. package/dist/components/Skeleton/index.cjs +65 -0
  77. package/dist/components/Skeleton/index.css +27 -0
  78. package/dist/components/Skeleton/index.d.cts +12 -0
  79. package/dist/components/Skeleton/index.d.ts +12 -0
  80. package/dist/components/Skeleton/index.js +38 -0
  81. package/dist/components/Spinner/index.cjs +222 -0
  82. package/dist/components/Spinner/index.css +317 -0
  83. package/dist/components/Spinner/index.d.cts +130 -0
  84. package/dist/components/Spinner/index.d.ts +130 -0
  85. package/dist/components/Spinner/index.js +195 -0
  86. package/dist/components/Steps/index.cjs +1105 -0
  87. package/dist/components/Steps/index.css +918 -0
  88. package/dist/components/Steps/index.d.cts +134 -0
  89. package/dist/components/Steps/index.d.ts +134 -0
  90. package/dist/components/Steps/index.js +1078 -0
  91. package/dist/components/Tag/index.cjs +1090 -0
  92. package/dist/components/Tag/index.css +498 -0
  93. package/dist/components/Tag/index.d.cts +131 -0
  94. package/dist/components/Tag/index.d.ts +131 -0
  95. package/dist/components/Tag/index.js +1063 -0
  96. package/dist/components/Toast/index.cjs +150 -0
  97. package/dist/components/Toast/index.css +111 -0
  98. package/dist/components/Toast/index.d.cts +15 -0
  99. package/dist/components/Toast/index.d.ts +15 -0
  100. package/dist/components/Toast/index.js +112 -0
  101. package/dist/components/Tooltip/index.css +3 -0
  102. package/dist/components/index.cjs +1992 -1101
  103. package/dist/components/index.css +10623 -7074
  104. package/dist/components/index.d.cts +19 -2
  105. package/dist/components/index.d.ts +19 -2
  106. package/dist/components/index.js +1950 -1077
  107. package/dist/index.cjs +2935 -2080
  108. package/dist/index.css +10619 -7070
  109. package/dist/index.d.cts +18 -1
  110. package/dist/index.d.ts +18 -1
  111. package/dist/index.js +2980 -2143
  112. package/package.json +2 -2
@@ -0,0 +1,133 @@
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';
3
+
4
+ type ProgressSize = "sm" | "md" | "lg";
5
+ interface ProgressProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ColorProps<N, C> {
6
+ value: number;
7
+ max?: number;
8
+ size?: ProgressSize;
9
+ showLabel?: boolean;
10
+ className?: string;
11
+ }
12
+ declare const Progress: {
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: ProgressProps<N, C>): react_jsx_runtime.JSX.Element;
130
+ displayName: string;
131
+ };
132
+
133
+ export { Progress };
@@ -0,0 +1,191 @@
1
+ // src/tokens/colors.ts
2
+ var colors = {
3
+ xplat: {
4
+ red: {
5
+ 50: "#FFF0F0",
6
+ 100: "#FFDDDE",
7
+ 200: "#FFC1C2",
8
+ 300: "#FF9698",
9
+ 400: "#FF5A5D",
10
+ 500: "#FF272B",
11
+ 600: "#F80409",
12
+ 700: "#D40105",
13
+ 800: "#AE0609",
14
+ 900: "#900C0F"
15
+ },
16
+ green: {
17
+ 50: "#E5F6EA",
18
+ 100: "#C1E7CC",
19
+ 200: "#98D8AC",
20
+ 300: "#6CCA8B",
21
+ 400: "#47BE72",
22
+ 500: "#10B259",
23
+ 600: "#00A34F",
24
+ 700: "#009143",
25
+ 800: "#007F38",
26
+ 900: "#006024"
27
+ },
28
+ orange: {
29
+ 50: "#FFF8EC",
30
+ 100: "#FFF0D3",
31
+ 200: "#FFDDA5",
32
+ 300: "#FFC46D",
33
+ 400: "#FF9F32",
34
+ 500: "#FF820A",
35
+ 600: "#FF6900",
36
+ 700: "#CC4B02",
37
+ 800: "#A13A0B",
38
+ 900: "#82320C"
39
+ },
40
+ yellow: {
41
+ 50: "#FFFDE7",
42
+ 100: "#FFFAC1",
43
+ 200: "#FFF186",
44
+ 300: "#FFE041",
45
+ 400: "#FFCC0D",
46
+ 500: "#F0B100",
47
+ 600: "#D18800",
48
+ 700: "#A66002",
49
+ 800: "#894B0A",
50
+ 900: "#743D0F"
51
+ },
52
+ blue: {
53
+ 50: "#F1F4FD",
54
+ 100: "#DFE7FA",
55
+ 200: "#C5D4F8",
56
+ 300: "#9EB8F2",
57
+ 400: "#7093EA",
58
+ 500: "#4D6DE3",
59
+ 600: "#3950D7",
60
+ 700: "#303EC5",
61
+ 800: "#2D35A0",
62
+ 900: "#29317F"
63
+ },
64
+ lightblue: {
65
+ 50: "#EEFAFF",
66
+ 100: "#D9F4FF",
67
+ 200: "#BBEDFF",
68
+ 300: "#8DE3FF",
69
+ 400: "#57D0FF",
70
+ 500: "#30B6FF",
71
+ 600: "#1999F7",
72
+ 700: "#1280E3",
73
+ 800: "#1566B8",
74
+ 900: "#175791"
75
+ },
76
+ purple: {
77
+ 50: "#FBF6FE",
78
+ 100: "#F5EAFD",
79
+ 200: "#EDD8FC",
80
+ 300: "#E0BAF8",
81
+ 400: "#CD8DF3",
82
+ 500: "#B961EB",
83
+ 600: "#A541DC",
84
+ 700: "#9230C5",
85
+ 800: "#782B9E",
86
+ 900: "#62247F"
87
+ },
88
+ pink: {
89
+ 50: "#FFF4FE",
90
+ 100: "#FFE7FD",
91
+ 200: "#FFCFFA",
92
+ 300: "#FEA9F1",
93
+ 400: "#FD75E7",
94
+ 500: "#F553DA",
95
+ 600: "#D821B6",
96
+ 700: "#B31892",
97
+ 800: "#921676",
98
+ 900: "#781761"
99
+ },
100
+ neutral: {
101
+ 50: "#FAFAFA",
102
+ 100: "#F5F5F5",
103
+ 200: "#E5E5E5",
104
+ 300: "#D4D4D4",
105
+ 400: "#A1A1A1",
106
+ 500: "#737373",
107
+ 600: "#525252",
108
+ 700: "#404040",
109
+ 800: "#262626",
110
+ 900: "#171717"
111
+ },
112
+ black: "#000000",
113
+ white: "#FFFFFF"
114
+ },
115
+ test: {
116
+ default: "#ffffff"
117
+ }
118
+ };
119
+
120
+ // src/util/getColor.ts
121
+ var getColorClass = (namespace, palette, shade) => {
122
+ const namespaceMap = colors[namespace];
123
+ const paletteMap = namespaceMap[palette];
124
+ const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
125
+ return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
126
+ };
127
+
128
+ // node_modules/clsx/dist/clsx.mjs
129
+ function r(e) {
130
+ var t, f, n = "";
131
+ if ("string" == typeof e || "number" == typeof e) n += e;
132
+ else if ("object" == typeof e) if (Array.isArray(e)) {
133
+ var o = e.length;
134
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
135
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
136
+ return n;
137
+ }
138
+ function clsx() {
139
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
140
+ return n;
141
+ }
142
+ var clsx_default = clsx;
143
+
144
+ // src/components/Progress/Progress.tsx
145
+ import { jsx, jsxs } from "react/jsx-runtime";
146
+ var Progress = (props) => {
147
+ const {
148
+ value,
149
+ max = 100,
150
+ size = "md",
151
+ showLabel = false,
152
+ colorNamespace = "xplat",
153
+ color = "blue",
154
+ colorDepth,
155
+ className
156
+ } = props;
157
+ const colorClass = getColorClass(
158
+ colorNamespace,
159
+ color,
160
+ colorDepth ?? 500
161
+ );
162
+ const percentage = Math.min(100, Math.max(0, value / max * 100));
163
+ return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-progress", size, className), children: [
164
+ /* @__PURE__ */ jsx(
165
+ "div",
166
+ {
167
+ className: "track",
168
+ role: "progressbar",
169
+ "aria-valuenow": value,
170
+ "aria-valuemin": 0,
171
+ "aria-valuemax": max,
172
+ children: /* @__PURE__ */ jsx(
173
+ "div",
174
+ {
175
+ className: clsx_default("bar", colorClass),
176
+ style: { width: `${percentage}%` }
177
+ }
178
+ )
179
+ }
180
+ ),
181
+ showLabel && /* @__PURE__ */ jsxs("span", { className: "label", children: [
182
+ Math.round(percentage),
183
+ "%"
184
+ ] })
185
+ ] });
186
+ };
187
+ Progress.displayName = "Progress";
188
+ var Progress_default = Progress;
189
+ export {
190
+ Progress_default as Progress
191
+ };
@@ -19,7 +19,7 @@
19
19
  justify-content: center;
20
20
  cursor: pointer;
21
21
  background-color: #FFFFFF;
22
- transition: border-color 0.2s, background-color 0.2s;
22
+ transition: border-color 0.12s ease-out, background-color 0.12s ease-out;
23
23
  }
24
24
  .lib-xplat-radio:hover .lib-xplat-radio > .circle:not(.checked) {
25
25
  border-color: #525252;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/Skeleton/index.ts
21
+ var Skeleton_exports = {};
22
+ __export(Skeleton_exports, {
23
+ Skeleton: () => Skeleton_default
24
+ });
25
+ module.exports = __toCommonJS(Skeleton_exports);
26
+
27
+ // node_modules/clsx/dist/clsx.mjs
28
+ function r(e) {
29
+ var t, f, n = "";
30
+ if ("string" == typeof e || "number" == typeof e) n += e;
31
+ else if ("object" == typeof e) if (Array.isArray(e)) {
32
+ var o = e.length;
33
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
34
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
35
+ return n;
36
+ }
37
+ function clsx() {
38
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
39
+ return n;
40
+ }
41
+ var clsx_default = clsx;
42
+
43
+ // src/components/Skeleton/Skeleton.tsx
44
+ var import_jsx_runtime = require("react/jsx-runtime");
45
+ var Skeleton = (props) => {
46
+ const { variant = "text", width, height, className } = props;
47
+ const style = {
48
+ width: typeof width === "number" ? `${width}px` : width,
49
+ height: typeof height === "number" ? `${height}px` : height
50
+ };
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
52
+ "div",
53
+ {
54
+ className: clsx_default("lib-xplat-skeleton", variant, className),
55
+ style,
56
+ "aria-hidden": "true"
57
+ }
58
+ );
59
+ };
60
+ Skeleton.displayName = "Skeleton";
61
+ var Skeleton_default = Skeleton;
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ Skeleton
65
+ });
@@ -0,0 +1,27 @@
1
+ /* src/components/Skeleton/skeleton.scss */
2
+ .lib-xplat-skeleton {
3
+ background-color: #E5E5E5;
4
+ animation: lib-xplat-skeleton-pulse 1.5s ease-in-out infinite;
5
+ }
6
+ .lib-xplat-skeleton.text {
7
+ width: 100%;
8
+ height: 1em;
9
+ border-radius: 0.25rem;
10
+ }
11
+ .lib-xplat-skeleton.circular {
12
+ border-radius: 50%;
13
+ }
14
+ .lib-xplat-skeleton.rectangular {
15
+ border-radius: 0.25rem;
16
+ }
17
+ @keyframes lib-xplat-skeleton-pulse {
18
+ 0% {
19
+ opacity: 1;
20
+ }
21
+ 50% {
22
+ opacity: 0.4;
23
+ }
24
+ 100% {
25
+ opacity: 1;
26
+ }
27
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+
3
+ type SkeletonVariant = "text" | "circular" | "rectangular";
4
+ interface SkeletonProps {
5
+ variant?: SkeletonVariant;
6
+ width?: string | number;
7
+ height?: string | number;
8
+ className?: string;
9
+ }
10
+ declare const Skeleton: React.FC<SkeletonProps>;
11
+
12
+ export { Skeleton };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+
3
+ type SkeletonVariant = "text" | "circular" | "rectangular";
4
+ interface SkeletonProps {
5
+ variant?: SkeletonVariant;
6
+ width?: string | number;
7
+ height?: string | number;
8
+ className?: string;
9
+ }
10
+ declare const Skeleton: React.FC<SkeletonProps>;
11
+
12
+ export { Skeleton };
@@ -0,0 +1,38 @@
1
+ // node_modules/clsx/dist/clsx.mjs
2
+ function r(e) {
3
+ var t, f, n = "";
4
+ if ("string" == typeof e || "number" == typeof e) n += e;
5
+ else if ("object" == typeof e) if (Array.isArray(e)) {
6
+ var o = e.length;
7
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
8
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
9
+ return n;
10
+ }
11
+ function clsx() {
12
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
13
+ return n;
14
+ }
15
+ var clsx_default = clsx;
16
+
17
+ // src/components/Skeleton/Skeleton.tsx
18
+ import { jsx } from "react/jsx-runtime";
19
+ var Skeleton = (props) => {
20
+ const { variant = "text", width, height, className } = props;
21
+ const style = {
22
+ width: typeof width === "number" ? `${width}px` : width,
23
+ height: typeof height === "number" ? `${height}px` : height
24
+ };
25
+ return /* @__PURE__ */ jsx(
26
+ "div",
27
+ {
28
+ className: clsx_default("lib-xplat-skeleton", variant, className),
29
+ style,
30
+ "aria-hidden": "true"
31
+ }
32
+ );
33
+ };
34
+ Skeleton.displayName = "Skeleton";
35
+ var Skeleton_default = Skeleton;
36
+ export {
37
+ Skeleton_default as Skeleton
38
+ };