@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.
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["Text.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,UAAU,MAAM,cAAc,CAAA;AAErC,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,UAAU,CAqDxB,CAAA;AAED,eAAe,IAAI,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"}
@@ -1,2 +1,2 @@
1
- export { default } from "./Text";
1
+ export { default } from './Text';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAA"}
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",
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.15",
33
- "@storybook/addon-interactions": "^7.0.0-beta.15",
34
- "@storybook/addon-links": "^7.0.0-beta.15",
35
- "@storybook/blocks": "^7.0.0-beta.15",
36
- "@storybook/react": "^7.0.0-beta.15",
37
- "@storybook/react-vite": "^7.0.0-beta.15",
38
- "@storybook/testing-library": "^0.0.13",
39
- "@types/react": "^18.0.26",
40
- "@types/react-dom": "^18.0.9",
41
- "@typescript-eslint/eslint-plugin": "^5.47.1",
42
- "@typescript-eslint/parser": "^5.47.1",
43
- "@vitejs/plugin-react-swc": "^3.0.0",
44
- "eslint": "^8.30.0",
45
- "eslint-config-prettier": "^8.5.0",
46
- "eslint-plugin-prettier": "^4.2.1",
47
- "eslint-plugin-react": "^7.31.11",
48
- "eslint-plugin-simple-import-sort": "^8.0.0",
49
- "eslint-plugin-storybook": "^0.6.8",
50
- "husky": "^8.0.2",
51
- "prettier": "^2.8.1",
52
- "react-hooks": "^1.0.1",
53
- "rollup-plugin-typescript2": "^0.34.1",
54
- "sass": "^1.57.1",
55
- "storybook": "^7.0.0-beta.15",
56
- "typescript": "^4.9.3",
57
- "vite": "^4.0.0",
58
- "vite-plugin-dts": "^1.7.1",
59
- "vite-plugin-linter": "^2.0.2"
60
- },
61
- "husky": {
62
- "hooks": {
63
- "pre-commit": "lint-staged"
64
- }
65
- },
66
- "peerDependencies": {
67
- "react": "^18.2.0",
68
- "react-dom": "^18.2.0"
69
- },
70
- "lint-staged": {
71
- "components/**/*.{js,jsx,ts,tsx}": [
72
- "npx eslint",
73
- "npm run format"
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
+ }