@agentero/design-system 0.13.0 → 0.14.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentero/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "A React component library built with Tailwind CSS v4 and Radix UI primitives",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"types": "./src/pagination/index.d.ts",
|
|
58
58
|
"import": "./src/pagination/index.js"
|
|
59
59
|
},
|
|
60
|
+
"./skeleton": {
|
|
61
|
+
"types": "./src/skeleton/index.d.ts",
|
|
62
|
+
"import": "./src/skeleton/index.js"
|
|
63
|
+
},
|
|
60
64
|
"./switch": {
|
|
61
65
|
"types": "./src/switch/index.d.ts",
|
|
62
66
|
"import": "./src/switch/index.js"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export declare const skeletonRecipe: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "animate-pulse rounded-sm bg-bg-default-base-tertiary motion-reduce:animate-none", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "animate-pulse rounded-sm bg-bg-default-base-tertiary motion-reduce:animate-none", unknown, unknown, undefined>>;
|
|
3
|
+
export type SkeletonProps = ComponentPropsWithRef<'div'>;
|
|
4
|
+
/**
|
|
5
|
+
* Skeleton renders a pulsing placeholder box while content loads. Size and
|
|
6
|
+
* shape it with Tailwind classes (`h-4 w-30`, `size-10 rounded-full`) to
|
|
7
|
+
* mirror the content it stands in for. Hidden from assistive technologies.
|
|
8
|
+
*
|
|
9
|
+
* @summary Pulsing placeholder box for loading content
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Skeleton className="h-4 w-30" />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const Skeleton: {
|
|
17
|
+
({ className, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { tv as e } from "tailwind-variants";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/skeleton/skeleton.tsx
|
|
5
|
+
var n = e({ base: "animate-pulse rounded-sm bg-bg-default-base-tertiary motion-reduce:animate-none" }), r = ({ className: e, ...r }) => /* @__PURE__ */ t("div", {
|
|
6
|
+
"data-slot": "skeleton",
|
|
7
|
+
"aria-hidden": "true",
|
|
8
|
+
...r,
|
|
9
|
+
className: n({ className: e })
|
|
10
|
+
});
|
|
11
|
+
r.displayName = "Skeleton";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as Skeleton, n as skeletonRecipe };
|