@itera-web/react-ui-empty 1.20.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/LICENSE.md +0 -0
- package/README.md +1 -0
- package/es/Empty.d.ts +7 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/package.json +26 -0
package/LICENSE.md
ADDED
|
File without changes
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
### [使用文档](http://iterative.keyboardecho.com/)
|
package/es/Empty.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
image?: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Empty } from './Empty';
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import*as t from"@itera-web/utils-cn";var r={d:(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},a={};r.d(a,{H:()=>i});const n=(e=>{var t={};return r.d(t,e),t})({createElement:()=>e.createElement,forwardRef:()=>e.forwardRef});const o=(e=>{var t={};return r.d(t,e),t})({cn:()=>t.cn});var c=function(){return c=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},c.apply(this,arguments)},l=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r},i=n.forwardRef(function(e,t){var r=e.image,a=e.description,i=void 0===a?"暂无数据":a,s=e.children,m=e.className,p=l(e,["image","description","children","className"]);return n.createElement("div",c({className:(0,o.cn)("flex flex-col items-center justify-center text-center p-6 text-muted-foreground",m),ref:t},p),n.createElement("div",{className:"mb-4"},null!=r?r:n.createElement("div",{className:"text-5xl opacity-40"},"📭")),n.createElement("div",{className:"text-sm mb-2"},i),s&&n.createElement("div",{className:"mt-2"},s))});i.displayName="Empty";var s=a.H;export{s as Empty};
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@itera-web/react-ui-empty",
|
|
3
|
+
"description": "空状态",
|
|
4
|
+
"version": "1.20.0",
|
|
5
|
+
"main": "es/index.js",
|
|
6
|
+
"types": "es/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "itera-cli package",
|
|
13
|
+
"up": "npm publish"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@itera-web/utils-cn": "^1.20.0"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"react": ">=17.0.0",
|
|
20
|
+
"react-dom": ">=17.0.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@itera-web/cli": "^1.1.45"
|
|
24
|
+
},
|
|
25
|
+
"gitHead": "691b2592db8668e5d52c9712bb906484b92cb79b"
|
|
26
|
+
}
|