@rinzai/zen 0.0.4 → 0.0.5
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/Text/Text.d.ts.map +1 -1
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.d.ts.map +1 -1
- package/dist/zen.es.js +1 -1
- package/dist/zen.umd.js +1 -1
- package/package.json +77 -76
package/dist/Text/Text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["Text.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["Text.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,UAAU,CAuDxB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/dist/Text/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './Text';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/Text/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
|
package/dist/zen.es.js
CHANGED
|
@@ -1586,7 +1586,7 @@ const hn = ({ ...e }) => {
|
|
|
1586
1586
|
fontFamily: g,
|
|
1587
1587
|
...A
|
|
1588
1588
|
} = e;
|
|
1589
|
-
return a ?? (a = "1rem"), o ?? (o = 400), d ?? (d = 1.5), f ?? (f = "black"), l ?? (l = "left"), p ?? (p = "none"), u ?? (u = "clip"), v ?? (v = "none"), R ?? (R = "normal"), P ?? (P = "normal"), T ?? (T = "normal"), g ?? (g = "inherit"), /* @__PURE__ */ K.jsx(
|
|
1589
|
+
return s ?? (s = ""), n ?? (n = "p"), a ?? (a = "1rem"), o ?? (o = 400), d ?? (d = 1.5), f ?? (f = "black"), l ?? (l = "left"), p ?? (p = "none"), u ?? (u = "clip"), v ?? (v = "none"), R ?? (R = "normal"), P ?? (P = "normal"), T ?? (T = "normal"), g ?? (g = "inherit"), /* @__PURE__ */ K.jsx(
|
|
1590
1590
|
_r,
|
|
1591
1591
|
{
|
|
1592
1592
|
tag: n,
|
package/dist/zen.umd.js
CHANGED
|
@@ -34,7 +34,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
34
34
|
|
|
35
35
|
You should wrap it with \`css\` like this:
|
|
36
36
|
|
|
37
|
-
`+("css`"+l+"`"))}break}if(r==null)return n;var p=r[n];return p!==void 0?p:n}function Nt(e,r,n){var a="";if(Array.isArray(n))for(var o=0;o<n.length;o++)a+=ue(e,r,n[o])+";";else for(var s in n){var d=n[s];if(typeof d!="object")r!=null&&r[d]!==void 0?a+=s+"{"+r[d]+"}":ir(d)&&(a+=je(s)+":"+Ee(s,d)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(sr);if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var f=0;f<d.length;f++)ir(d[f])&&(a+=je(s)+":"+Ee(s,d[f])+";");else{var l=ue(e,r,d);switch(s){case"animation":case"animationName":{a+=je(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(Rt),a+=s+"{"+l+"}"}}}}return a}var cr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ur;process.env.NODE_ENV!=="production"&&(ur=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var L,De=function(r,n,a){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var o=!0,s="";L=void 0;var d=r[0];d==null||d.raw===void 0?(o=!1,s+=ue(a,n,d)):(process.env.NODE_ENV!=="production"&&d[0]===void 0&&console.error(nr),s+=d[0]);for(var f=1;f<r.length;f++)s+=ue(a,n,r[f]),o&&(process.env.NODE_ENV!=="production"&&d[f]===void 0&&console.error(nr),s+=d[f]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(ur,function(R){return l=R,""})),cr.lastIndex=0;for(var p="",u;(u=cr.exec(s))!==null;)p+="-"+u[1];var v=wt(s)+p;return process.env.NODE_ENV!=="production"?{name:v,styles:s,map:l,next:L,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:v,styles:s,next:L}},Pt=!0;function fr(e,r,n){var a="";return n.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):a+=o+" "}),a}var At=function(r,n,a){var o=r.key+"-"+n.name;(a===!1||Pt===!1)&&r.registered[o]===void 0&&(r.registered[o]=n.styles)},$t=function(r,n,a){At(r,n,a);var o=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var s=n;do r.insert(n===s?"."+o:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function lr(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function dr(e,r,n){var a=[],o=fr(e,a,n);return a.length<2?n:o+r(a)}var jt=function(r){var n=Et(r);n.sheet.speedy=function(f){if(process.env.NODE_ENV!=="production"&&this.ctr!==0)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=f},n.compat=!0;var a=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered,void 0);return $t(n,v,!1),n.key+"-"+v.name},o=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered),R="animation-"+v.name;return lr(n,{name:v.name,styles:"@keyframes "+R+"{"+v.styles+"}"}),R},s=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered);lr(n,v)},d=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];return dr(n.registered,a,Dt(p))};return{css:a,cx:d,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(p){n.inserted[p]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:fr.bind(null,n.registered),merge:dr.bind(null,n.registered,a)}},Dt=function e(r){for(var n="",a=0;a<r.length;a++){var o=r[a];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var d in o)o[d]&&d&&(s&&(s+=" "),s+=d)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n},It=jt({key:"css"}),Ft=It.css;const Vt=({...e})=>{let{children:r,as:n,size:a,weight:o,className:s,lineHeight:d,color:f,textAlign:l,textDecoration:p,textOverflow:u,textTransform:v,whiteSpace:R,wordBreak:P,wordWrap:k,fontFamily:g,...A}=e;return a??(a="1rem"),o??(o=400),d??(d=1.5),f??(f="black"),l??(l="left"),p??(p="none"),u??(u="clip"),v??(v="none"),R??(R="normal"),P??(P="normal"),k??(k="normal"),g??(g="inherit"),H.jsx(Oe,{tag:n,className:`${s} ${Ft`
|
|
37
|
+
`+("css`"+l+"`"))}break}if(r==null)return n;var p=r[n];return p!==void 0?p:n}function Nt(e,r,n){var a="";if(Array.isArray(n))for(var o=0;o<n.length;o++)a+=ue(e,r,n[o])+";";else for(var s in n){var d=n[s];if(typeof d!="object")r!=null&&r[d]!==void 0?a+=s+"{"+r[d]+"}":ir(d)&&(a+=je(s)+":"+Ee(s,d)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(sr);if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var f=0;f<d.length;f++)ir(d[f])&&(a+=je(s)+":"+Ee(s,d[f])+";");else{var l=ue(e,r,d);switch(s){case"animation":case"animationName":{a+=je(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(Rt),a+=s+"{"+l+"}"}}}}return a}var cr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ur;process.env.NODE_ENV!=="production"&&(ur=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var L,De=function(r,n,a){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var o=!0,s="";L=void 0;var d=r[0];d==null||d.raw===void 0?(o=!1,s+=ue(a,n,d)):(process.env.NODE_ENV!=="production"&&d[0]===void 0&&console.error(nr),s+=d[0]);for(var f=1;f<r.length;f++)s+=ue(a,n,r[f]),o&&(process.env.NODE_ENV!=="production"&&d[f]===void 0&&console.error(nr),s+=d[f]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(ur,function(R){return l=R,""})),cr.lastIndex=0;for(var p="",u;(u=cr.exec(s))!==null;)p+="-"+u[1];var v=wt(s)+p;return process.env.NODE_ENV!=="production"?{name:v,styles:s,map:l,next:L,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:v,styles:s,next:L}},Pt=!0;function fr(e,r,n){var a="";return n.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):a+=o+" "}),a}var At=function(r,n,a){var o=r.key+"-"+n.name;(a===!1||Pt===!1)&&r.registered[o]===void 0&&(r.registered[o]=n.styles)},$t=function(r,n,a){At(r,n,a);var o=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var s=n;do r.insert(n===s?"."+o:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function lr(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function dr(e,r,n){var a=[],o=fr(e,a,n);return a.length<2?n:o+r(a)}var jt=function(r){var n=Et(r);n.sheet.speedy=function(f){if(process.env.NODE_ENV!=="production"&&this.ctr!==0)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=f},n.compat=!0;var a=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered,void 0);return $t(n,v,!1),n.key+"-"+v.name},o=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered),R="animation-"+v.name;return lr(n,{name:v.name,styles:"@keyframes "+R+"{"+v.styles+"}"}),R},s=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered);lr(n,v)},d=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];return dr(n.registered,a,Dt(p))};return{css:a,cx:d,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(p){n.inserted[p]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:fr.bind(null,n.registered),merge:dr.bind(null,n.registered,a)}},Dt=function e(r){for(var n="",a=0;a<r.length;a++){var o=r[a];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var d in o)o[d]&&d&&(s&&(s+=" "),s+=d)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n},It=jt({key:"css"}),Ft=It.css;const Vt=({...e})=>{let{children:r,as:n,size:a,weight:o,className:s,lineHeight:d,color:f,textAlign:l,textDecoration:p,textOverflow:u,textTransform:v,whiteSpace:R,wordBreak:P,wordWrap:k,fontFamily:g,...A}=e;return s??(s=""),n??(n="p"),a??(a="1rem"),o??(o=400),d??(d=1.5),f??(f="black"),l??(l="left"),p??(p="none"),u??(u="clip"),v??(v="none"),R??(R="normal"),P??(P="normal"),k??(k="normal"),g??(g="inherit"),H.jsx(Oe,{tag:n,className:`${s} ${Ft`
|
|
38
38
|
font-size: ${a};
|
|
39
39
|
font-weight: ${o};
|
|
40
40
|
line-height: ${d};
|
package/package.json
CHANGED
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rinzai/zen",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist"
|
|
7
|
-
],
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"main": "./dist/zen.umd.js",
|
|
10
|
-
"module": "./dist/zen.es.js",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/zen.es.js",
|
|
14
|
-
"require": "./dist/zen.umd.js"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsc && vite build",
|
|
19
|
-
"lint": "eslint components/**/*.{ts,tsx}",
|
|
20
|
-
"lint:fix": "eslint --fix components/**/*.{ts,tsx}",
|
|
21
|
-
"format": "prettier --write components/**/*.{ts,tsx,css} --config ./.prettierrc",
|
|
22
|
-
"prepare": "husky install",
|
|
23
|
-
"storybook": "storybook dev -p 6006",
|
|
24
|
-
"build-storybook": "storybook build"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"react": "^18.2.0",
|
|
28
|
-
"react-dom": "^18.2.0"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@emotion/css": "^11.10.5",
|
|
32
|
-
"@storybook/addon-essentials": "^7.0.0-beta.
|
|
33
|
-
"@storybook/addon-interactions": "^7.0.0-beta.
|
|
34
|
-
"@storybook/addon-links": "^7.0.0-beta.
|
|
35
|
-
"@storybook/blocks": "^7.0.0-beta.
|
|
36
|
-
"@storybook/react": "^7.0.0-beta.
|
|
37
|
-
"@storybook/react-vite": "^7.0.0-beta.
|
|
38
|
-
"@storybook/testing-library": "^0.0.13",
|
|
39
|
-
"@
|
|
40
|
-
"@types/react
|
|
41
|
-
"@
|
|
42
|
-
"@typescript-eslint/
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"eslint
|
|
46
|
-
"eslint-
|
|
47
|
-
"eslint-plugin-
|
|
48
|
-
"eslint-plugin-
|
|
49
|
-
"eslint-plugin-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"vite
|
|
59
|
-
"vite-plugin-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"react
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rinzai/zen",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"main": "./dist/zen.umd.js",
|
|
10
|
+
"module": "./dist/zen.es.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/zen.es.js",
|
|
14
|
+
"require": "./dist/zen.umd.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc && vite build",
|
|
19
|
+
"lint": "eslint components/**/*.{ts,tsx}",
|
|
20
|
+
"lint:fix": "eslint --fix components/**/*.{ts,tsx}",
|
|
21
|
+
"format": "prettier --write components/**/*.{ts,tsx,css} --config ./.prettierrc",
|
|
22
|
+
"prepare": "husky install",
|
|
23
|
+
"storybook": "storybook dev -p 6006",
|
|
24
|
+
"build-storybook": "storybook build"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"react": "^18.2.0",
|
|
28
|
+
"react-dom": "^18.2.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@emotion/css": "^11.10.5",
|
|
32
|
+
"@storybook/addon-essentials": "^7.0.0-beta.20",
|
|
33
|
+
"@storybook/addon-interactions": "^7.0.0-beta.20",
|
|
34
|
+
"@storybook/addon-links": "^7.0.0-beta.20",
|
|
35
|
+
"@storybook/blocks": "^7.0.0-beta.20",
|
|
36
|
+
"@storybook/react": "^7.0.0-beta.20",
|
|
37
|
+
"@storybook/react-vite": "^7.0.0-beta.20",
|
|
38
|
+
"@storybook/testing-library": "^0.0.13",
|
|
39
|
+
"@tanstack/react-table": "^8.7.4",
|
|
40
|
+
"@types/react": "^18.0.26",
|
|
41
|
+
"@types/react-dom": "^18.0.9",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.47.1",
|
|
43
|
+
"@typescript-eslint/parser": "^5.47.1",
|
|
44
|
+
"@vitejs/plugin-react-swc": "^3.0.0",
|
|
45
|
+
"eslint": "^8.30.0",
|
|
46
|
+
"eslint-config-prettier": "^8.5.0",
|
|
47
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
48
|
+
"eslint-plugin-react": "^7.31.11",
|
|
49
|
+
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
50
|
+
"eslint-plugin-storybook": "^0.6.8",
|
|
51
|
+
"husky": "^8.0.2",
|
|
52
|
+
"prettier": "^2.8.1",
|
|
53
|
+
"react-hooks": "^1.0.1",
|
|
54
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
55
|
+
"sass": "^1.57.1",
|
|
56
|
+
"storybook": "^7.0.0-beta.20",
|
|
57
|
+
"typescript": "^4.9.3",
|
|
58
|
+
"vite": "^4.0.0",
|
|
59
|
+
"vite-plugin-dts": "^1.7.1",
|
|
60
|
+
"vite-plugin-linter": "^2.0.2"
|
|
61
|
+
},
|
|
62
|
+
"husky": {
|
|
63
|
+
"hooks": {
|
|
64
|
+
"pre-commit": "lint-staged"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"react": "^18.2.0",
|
|
69
|
+
"react-dom": "^18.2.0"
|
|
70
|
+
},
|
|
71
|
+
"lint-staged": {
|
|
72
|
+
"components/**/*.{js,jsx,ts,tsx}": [
|
|
73
|
+
"npx eslint",
|
|
74
|
+
"npm run format"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|