@fvc/skeleton 1.0.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Skeleton as e}from"antd";import t from"react";var a;void 0===a&&(a={}),a.insertAt;const n="fvc-skeleton",s=a=>t.createElement("div",{"data-testid":"skeleton"},t.createElement(e,Object.assign({prefixCls:n},a))),l=a=>t.createElement(e.Image,Object.assign({prefixCls:n},a));l.displayName="Skeleton.Image";const r=a=>t.createElement(e.Button,Object.assign({prefixCls:n},a));r.displayName="Skeleton.Button";const i=a=>t.createElement(e.Avatar,Object.assign({prefixCls:n},a));i.displayName="Skeleton.Avatar";const o=a=>t.createElement(e.Input,Object.assign({prefixCls:n},a));o.displayName="Skeleton.Input",s.Image=l,s.Button=r,s.Avatar=i,s.Input=o;export{s as Skeleton};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Skeleton as BaseSkeleton } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './Skeleton.scss';
|
|
4
|
+
import { SkeletonProps } from './types';
|
|
5
|
+
export declare const prefixCls = "fvc-skeleton";
|
|
6
|
+
export declare const Skeleton: {
|
|
7
|
+
(props: SkeletonProps): React.JSX.Element;
|
|
8
|
+
Image: {
|
|
9
|
+
(props: React.ComponentProps<typeof BaseSkeleton.Image>): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Button: {
|
|
13
|
+
(props: React.ComponentProps<typeof BaseSkeleton.Button>): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
Avatar: {
|
|
17
|
+
(props: React.ComponentProps<typeof BaseSkeleton.Avatar>): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
Input: {
|
|
21
|
+
(props: React.ComponentProps<typeof BaseSkeleton.Input>): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton } from './Skeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Skeleton.types';
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fvc/skeleton",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"main": "./dist/lib/index.js",
|
|
5
|
+
"types": "./dist/lib/skeleton/src/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/lib/index.js",
|
|
8
|
+
"dist/lib/skeleton",
|
|
9
|
+
"package.json"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/lib/index.js",
|
|
14
|
+
"types": "./dist/lib/skeleton/src/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./types": {
|
|
17
|
+
"types": "./dist/lib/skeleton/src/types/index.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "rollup -c ./rollup.config.mjs",
|
|
22
|
+
"clean": "rm -rf dist && rm -rf .rollup.cache && rm -rf .turbo",
|
|
23
|
+
"lint": "eslint --config ../../eslint.config.js \"src/**/*.{ts,tsx}\"",
|
|
24
|
+
"lint:fix": "eslint --config ../../eslint.config.js \"src/**/*.{ts,tsx}\" --fix",
|
|
25
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
26
|
+
"type-check": "tsc --noEmit",
|
|
27
|
+
"test": "bun test --preload ../../tests/happydom.ts --preload ../../tests/testing-library.tsx"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^18.0.0",
|
|
31
|
+
"antd": "^5.0.0"
|
|
32
|
+
}
|
|
33
|
+
}
|