@stackshift-ui/skeleton 1.0.0-beta.1 → 1.0.0-beta.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.
- package/dist/chunk-OZ6GORXA.mjs +20 -0
- package/package.json +4 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/skeleton.tsx
|
|
2
|
+
import { cn, DefaultComponent, useStackShiftUIComponents } from "@stackshift-ui/system";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var displayName = "Skeleton";
|
|
5
|
+
function Skeleton({ className, ...props }) {
|
|
6
|
+
const { [displayName]: Component = DefaultComponent } = useStackShiftUIComponents();
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Component,
|
|
9
|
+
{
|
|
10
|
+
"data-slot": "skeleton",
|
|
11
|
+
className: cn("bg-accent animate-pulse rounded-md", className),
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
Skeleton.displayName = displayName;
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
Skeleton
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/skeleton",
|
|
3
3
|
"description": "Use to show a placeholder while content is loading.",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/scripts": "6.1.0-beta.
|
|
38
|
-
"@stackshift-ui/system": "6.1.0-beta.
|
|
37
|
+
"@stackshift-ui/scripts": "6.1.0-beta.2",
|
|
38
|
+
"@stackshift-ui/system": "6.1.0-beta.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@types/react": "16.8 - 19",
|
|
42
42
|
"next": "10 - 14",
|
|
43
43
|
"react": "16.8 - 19",
|
|
44
44
|
"react-dom": "16.8 - 19",
|
|
45
|
-
"@stackshift-ui/system": ">=6.1.0-beta.
|
|
45
|
+
"@stackshift-ui/system": ">=6.1.0-beta.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"next": {
|