hans-ui-design-lib 0.0.14 → 0.0.16

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/README.md CHANGED
@@ -148,8 +148,4 @@ npx storybook@latest init --builder @storybook/builder-vite
148
148
  npm i -D vitest @testing-library/react @testing-library/jest-dom @types/testing-library\_\_jest-dom jsdom
149
149
 
150
150
  npm i -D sass
151
-
152
- npm i -D tailwindcss autoprefixer postcss
153
-
154
- npm i -D @tailwindcss/vite
155
151
  ```
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("react");var T={exports:{}},_={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react");var v={exports:{}},_={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var I;function re(){if(I)return _;I=1;var c=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function i(f,a,s){var b=null;if(s!==void 0&&(b=""+s),a.key!==void 0&&(b=""+a.key),"key"in a){s={};for(var E in a)E!=="key"&&(s[E]=a[E])}else s=a;return a=s.ref,{$$typeof:c,type:f,key:b,ref:a!==void 0?a:null,props:s}}return _.Fragment=d,_.jsx=i,_.jsxs=i,_}var R={};/**
9
+ */var $;function ee(){if($)return _;$=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(c,a,s){var d=null;if(s!==void 0&&(d=""+s),a.key!==void 0&&(d=""+a.key),"key"in a){s={};for(var m in a)m!=="key"&&(s[m]=a[m])}else s=a;return a=s.ref,{$$typeof:u,type:c,key:d,ref:a!==void 0?a:null,props:s}}return _.Fragment=i,_.jsx=l,_.jsxs=l,_}var b={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,9 +14,9 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var F;function te(){return F||(F=1,process.env.NODE_ENV!=="production"&&(function(){function c(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case G:return"Suspense";case X:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case W:return"Portal";case z:return(e.displayName||"Context")+".Provider";case J:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return r=e.displayName||null,r!==null?r:c(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return c(e(r))}catch{}}return null}function d(e){return""+e}function i(e){try{d(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),d(e)}}function f(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=c(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function b(e){if(x.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function M(){var e=c(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function L(e,r,t,n,l,u,S,y){return t=u.ref,e={$$typeof:w,type:e,key:r,props:u,_owner:l},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:M}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function P(e,r,t,n,l,u,S,y){var o=r.children;if(o!==void 0)if(n)if(Q(o)){for(n=0;n<o.length;n++)j(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else j(o);if(x.call(r,"key")){o=c(e);var m=Object.keys(r).filter(function(K){return K!=="key"});n=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",$[o+n]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var I;function re(){return I||(I=1,process.env.NODE_ENV!=="production"&&(function(){function u(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case U:return"Profiler";case W:return"StrictMode";case z:return"Suspense";case G:return"SuspenseList";case B:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case L:return"Portal";case J:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:u(e.type)||"Memo";case T:r=e._payload,e=e._init;try{return u(e(r))}catch{}}return null}function i(e){return""+e}function l(e){try{i(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),i(e)}}function c(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===T)return"<...>";try{var r=u(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function d(e){if(g.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function m(e,r){function t(){x||(x=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function D(){var e=u(this.type);return h[e]||(h[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function M(e,r,t,n,R,O){var o=t.ref;return e={$$typeof:w,type:e,key:r,props:t,_owner:n},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:D}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function A(e,r,t,n,R,O){var o=r.children;if(o!==void 0)if(n)if(Z(o)){for(n=0;n<o.length;n++)P(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else P(o);if(g.call(r,"key")){o=u(e);var f=Object.keys(r).filter(function(Q){return Q!=="key"});n=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",Y[o+n]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,n,o,m,o),$[o+n]=!0)}if(o=null,t!==void 0&&(i(t),o=""+t),b(r)&&(i(r.key),o=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),L(e,o,u,l,a(),t,S,y)}function j(e){typeof e=="object"&&e!==null&&e.$$typeof===w&&e._store&&(e._store.validated=1)}var v=ee,w=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,x=Object.prototype.hasOwnProperty,Q=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,N={},C=v.react_stack_bottom_frame.bind(v,s)(),Y=O(f(s)),$={};R.Fragment=p,R.jsx=function(e,r,t,n,l){var u=1e4>k.recentlyCreatedOwnerStacks++;return P(e,r,t,!1,n,l,u?Error("react-stack-top-frame"):C,u?O(f(e)):Y)},R.jsxs=function(e,r,t,n,l){var u=1e4>k.recentlyCreatedOwnerStacks++;return P(e,r,t,!0,n,l,u?Error("react-stack-top-frame"):C,u?O(f(e)):Y)}})()),R}var D;function ne(){return D||(D=1,process.env.NODE_ENV==="production"?T.exports=re():T.exports=te()),T.exports}var oe=ne();const ae=({primary:c=!1,size:d="medium",backgroundColor:i,label:f,...a})=>{const s=c?"storybook-button--primary":"storybook-button--secondary";return oe.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${d}`,s].join(" "),style:{backgroundColor:i},...a,children:f})};exports.Button=ae;
22
+ <%s key={someKey} {...props} />`,n,o,f,o),Y[o+n]=!0)}if(o=null,t!==void 0&&(l(t),o=""+t),d(r)&&(l(r.key),o=""+r.key),"key"in r){t={};for(var S in r)S!=="key"&&(t[S]=r[S])}else t=r;return o&&m(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),M(e,o,t,a(),R,O)}function P(e){j(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===T&&(e._payload.status==="fulfilled"?j(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function j(e){return typeof e=="object"&&e!==null&&e.$$typeof===w}var E=K,w=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),J=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),k=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,g=Object.prototype.hasOwnProperty,Z=Array.isArray,y=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(e){return e()}};var x,h={},N=E.react_stack_bottom_frame.bind(E,s)(),C=y(c(s)),Y={};b.Fragment=p,b.jsx=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return A(e,r,t,!1,n?Error("react-stack-top-frame"):N,n?y(c(e)):C)},b.jsxs=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return A(e,r,t,!0,n?Error("react-stack-top-frame"):N,n?y(c(e)):C)}})()),b}var F;function te(){return F||(F=1,process.env.NODE_ENV==="production"?v.exports=ee():v.exports=re()),v.exports}var ne=te();const oe=({primary:u=!1,size:i="medium",backgroundColor:l,label:c,...a})=>{const s=u?"storybook-button--primary":"storybook-button--secondary";return ne.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${i}`,s].join(" "),style:{backgroundColor:l},...a,children:c})};exports.Button=oe;
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import ee from "react";
2
- var T = { exports: {} }, _ = {};
1
+ import K from "react";
2
+ var v = { exports: {} }, _ = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.js
@@ -9,29 +9,29 @@ var T = { exports: {} }, _ = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var I;
13
- function re() {
14
- if (I) return _;
15
- I = 1;
16
- var c = Symbol.for("react.transitional.element"), m = Symbol.for("react.fragment");
17
- function i(f, a, s) {
18
- var b = null;
19
- if (s !== void 0 && (b = "" + s), a.key !== void 0 && (b = "" + a.key), "key" in a) {
12
+ var $;
13
+ function ee() {
14
+ if ($) return _;
15
+ $ = 1;
16
+ var u = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
17
+ function l(c, a, s) {
18
+ var m = null;
19
+ if (s !== void 0 && (m = "" + s), a.key !== void 0 && (m = "" + a.key), "key" in a) {
20
20
  s = {};
21
- for (var E in a)
22
- E !== "key" && (s[E] = a[E]);
21
+ for (var d in a)
22
+ d !== "key" && (s[d] = a[d]);
23
23
  } else s = a;
24
24
  return a = s.ref, {
25
- $$typeof: c,
26
- type: f,
27
- key: b,
25
+ $$typeof: u,
26
+ type: c,
27
+ key: m,
28
28
  ref: a !== void 0 ? a : null,
29
29
  props: s
30
30
  };
31
31
  }
32
- return _.Fragment = m, _.jsx = i, _.jsxs = i, _;
32
+ return _.Fragment = i, _.jsx = l, _.jsxs = l, _;
33
33
  }
34
- var R = {};
34
+ var E = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -41,58 +41,58 @@ var R = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var F;
45
- function te() {
46
- return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
47
- function c(e) {
44
+ var I;
45
+ function re() {
46
+ return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
47
+ function u(e) {
48
48
  if (e == null) return null;
49
49
  if (typeof e == "function")
50
- return e.$$typeof === Z ? null : e.displayName || e.name || null;
50
+ return e.$$typeof === H ? null : e.displayName || e.name || null;
51
51
  if (typeof e == "string") return e;
52
52
  switch (e) {
53
53
  case p:
54
54
  return "Fragment";
55
- case q:
56
- return "Profiler";
57
55
  case U:
56
+ return "Profiler";
57
+ case W:
58
58
  return "StrictMode";
59
- case G:
59
+ case z:
60
60
  return "Suspense";
61
- case X:
61
+ case G:
62
62
  return "SuspenseList";
63
- case H:
63
+ case B:
64
64
  return "Activity";
65
65
  }
66
66
  if (typeof e == "object")
67
67
  switch (typeof e.tag == "number" && console.error(
68
68
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
69
  ), e.$$typeof) {
70
- case W:
70
+ case M:
71
71
  return "Portal";
72
- case z:
73
- return (e.displayName || "Context") + ".Provider";
74
72
  case J:
73
+ return e.displayName || "Context";
74
+ case q:
75
75
  return (e._context.displayName || "Context") + ".Consumer";
76
76
  case V:
77
77
  var r = e.render;
78
78
  return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
- case B:
80
- return r = e.displayName || null, r !== null ? r : c(e.type) || "Memo";
81
- case x:
79
+ case X:
80
+ return r = e.displayName || null, r !== null ? r : u(e.type) || "Memo";
81
+ case T:
82
82
  r = e._payload, e = e._init;
83
83
  try {
84
- return c(e(r));
84
+ return u(e(r));
85
85
  } catch {
86
86
  }
87
87
  }
88
88
  return null;
89
89
  }
90
- function m(e) {
90
+ function i(e) {
91
91
  return "" + e;
92
92
  }
93
- function i(e) {
93
+ function l(e) {
94
94
  try {
95
- m(e);
95
+ i(e);
96
96
  var r = !1;
97
97
  } catch {
98
98
  r = !0;
@@ -104,15 +104,15 @@ function te() {
104
104
  r,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
106
  n
107
- ), m(e);
107
+ ), i(e);
108
108
  }
109
109
  }
110
- function f(e) {
110
+ function c(e) {
111
111
  if (e === p) return "<>";
112
- if (typeof e == "object" && e !== null && e.$$typeof === x)
112
+ if (typeof e == "object" && e !== null && e.$$typeof === T)
113
113
  return "<...>";
114
114
  try {
115
- var r = c(e);
115
+ var r = u(e);
116
116
  return r ? "<" + r + ">" : "<...>";
117
117
  } catch {
118
118
  return "<...>";
@@ -125,16 +125,16 @@ function te() {
125
125
  function s() {
126
126
  return Error("react-stack-top-frame");
127
127
  }
128
- function b(e) {
129
- if (g.call(e, "key")) {
128
+ function m(e) {
129
+ if (x.call(e, "key")) {
130
130
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
131
131
  if (r && r.isReactWarning) return !1;
132
132
  }
133
133
  return e.key !== void 0;
134
134
  }
135
- function E(e, r) {
135
+ function d(e, r) {
136
136
  function t() {
137
- h || (h = !0, console.error(
137
+ g || (g = !0, console.error(
138
138
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
139
  r
140
140
  ));
@@ -144,22 +144,23 @@ function te() {
144
144
  configurable: !0
145
145
  });
146
146
  }
147
- function L() {
148
- var e = c(this.type);
149
- return N[e] || (N[e] = !0, console.error(
147
+ function D() {
148
+ var e = u(this.type);
149
+ return h[e] || (h[e] = !0, console.error(
150
150
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
151
  )), e = this.props.ref, e !== void 0 ? e : null;
152
152
  }
153
- function M(e, r, t, n, l, u, A, S) {
154
- return t = u.ref, e = {
153
+ function L(e, r, t, n, R, O) {
154
+ var o = t.ref;
155
+ return e = {
155
156
  $$typeof: w,
156
157
  type: e,
157
158
  key: r,
158
- props: u,
159
- _owner: l
160
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
159
+ props: t,
160
+ _owner: n
161
+ }, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
161
162
  enumerable: !1,
162
- get: L
163
+ get: D
163
164
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
164
165
  configurable: !1,
165
166
  enumerable: !1,
@@ -174,33 +175,33 @@ function te() {
174
175
  configurable: !1,
175
176
  enumerable: !1,
176
177
  writable: !0,
177
- value: A
178
+ value: R
178
179
  }), Object.defineProperty(e, "_debugTask", {
179
180
  configurable: !1,
180
181
  enumerable: !1,
181
182
  writable: !0,
182
- value: S
183
+ value: O
183
184
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
185
  }
185
- function P(e, r, t, n, l, u, A, S) {
186
+ function S(e, r, t, n, R, O) {
186
187
  var o = r.children;
187
188
  if (o !== void 0)
188
189
  if (n)
189
- if (Q(o)) {
190
+ if (Z(o)) {
190
191
  for (n = 0; n < o.length; n++)
191
- j(o[n]);
192
+ P(o[n]);
192
193
  Object.freeze && Object.freeze(o);
193
194
  } else
194
195
  console.error(
195
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
197
  );
197
- else j(o);
198
- if (g.call(r, "key")) {
199
- o = c(e);
200
- var d = Object.keys(r).filter(function(K) {
201
- return K !== "key";
198
+ else P(o);
199
+ if (x.call(r, "key")) {
200
+ o = u(e);
201
+ var f = Object.keys(r).filter(function(Q) {
202
+ return Q !== "key";
202
203
  });
203
- n = 0 < d.length ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}", $[o + n] || (d = 0 < d.length ? "{" + d.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", Y[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
204
205
  `A props object containing a "key" prop is being spread into JSX:
205
206
  let props = %s;
206
207
  <%s {...props} />
@@ -209,97 +210,94 @@ React keys must be passed directly to JSX without using spread:
209
210
  <%s key={someKey} {...props} />`,
210
211
  n,
211
212
  o,
212
- d,
213
+ f,
213
214
  o
214
- ), $[o + n] = !0);
215
+ ), Y[o + n] = !0);
215
216
  }
216
- if (o = null, t !== void 0 && (i(t), o = "" + t), b(r) && (i(r.key), o = "" + r.key), "key" in r) {
217
+ if (o = null, t !== void 0 && (l(t), o = "" + t), m(r) && (l(r.key), o = "" + r.key), "key" in r) {
217
218
  t = {};
218
- for (var y in r)
219
- y !== "key" && (t[y] = r[y]);
219
+ for (var A in r)
220
+ A !== "key" && (t[A] = r[A]);
220
221
  } else t = r;
221
- return o && E(
222
+ return o && d(
222
223
  t,
223
224
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
224
- ), M(
225
+ ), L(
225
226
  e,
226
227
  o,
227
- u,
228
- l,
229
- a(),
230
228
  t,
231
- A,
232
- S
229
+ a(),
230
+ R,
231
+ O
233
232
  );
234
233
  }
234
+ function P(e) {
235
+ j(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? j(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
236
+ }
235
237
  function j(e) {
236
- typeof e == "object" && e !== null && e.$$typeof === w && e._store && (e._store.validated = 1);
238
+ return typeof e == "object" && e !== null && e.$$typeof === w;
237
239
  }
238
- var v = ee, w = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
240
+ var b = K, w = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), J = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, y = console.createTask ? console.createTask : function() {
239
241
  return null;
240
242
  };
241
- v = {
243
+ b = {
242
244
  react_stack_bottom_frame: function(e) {
243
245
  return e();
244
246
  }
245
247
  };
246
- var h, N = {}, C = v.react_stack_bottom_frame.bind(
247
- v,
248
+ var g, h = {}, N = b.react_stack_bottom_frame.bind(
249
+ b,
248
250
  s
249
- )(), Y = O(f(s)), $ = {};
250
- R.Fragment = p, R.jsx = function(e, r, t, n, l) {
251
- var u = 1e4 > k.recentlyCreatedOwnerStacks++;
252
- return P(
251
+ )(), C = y(c(s)), Y = {};
252
+ E.Fragment = p, E.jsx = function(e, r, t) {
253
+ var n = 1e4 > k.recentlyCreatedOwnerStacks++;
254
+ return S(
253
255
  e,
254
256
  r,
255
257
  t,
256
258
  !1,
257
- n,
258
- l,
259
- u ? Error("react-stack-top-frame") : C,
260
- u ? O(f(e)) : Y
259
+ n ? Error("react-stack-top-frame") : N,
260
+ n ? y(c(e)) : C
261
261
  );
262
- }, R.jsxs = function(e, r, t, n, l) {
263
- var u = 1e4 > k.recentlyCreatedOwnerStacks++;
264
- return P(
262
+ }, E.jsxs = function(e, r, t) {
263
+ var n = 1e4 > k.recentlyCreatedOwnerStacks++;
264
+ return S(
265
265
  e,
266
266
  r,
267
267
  t,
268
268
  !0,
269
- n,
270
- l,
271
- u ? Error("react-stack-top-frame") : C,
272
- u ? O(f(e)) : Y
269
+ n ? Error("react-stack-top-frame") : N,
270
+ n ? y(c(e)) : C
273
271
  );
274
272
  };
275
- })()), R;
273
+ })()), E;
276
274
  }
277
- var D;
278
- function ne() {
279
- return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
275
+ var F;
276
+ function te() {
277
+ return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
280
278
  }
281
- var oe = ne();
282
- const se = ({
283
- primary: c = !1,
284
- size: m = "medium",
285
- backgroundColor: i,
286
- label: f,
279
+ var ne = te();
280
+ const ae = ({
281
+ primary: u = !1,
282
+ size: i = "medium",
283
+ backgroundColor: l,
284
+ label: c,
287
285
  ...a
288
286
  }) => {
289
- const s = c ? "storybook-button--primary" : "storybook-button--secondary";
290
- return /* @__PURE__ */ oe.jsx(
287
+ const s = u ? "storybook-button--primary" : "storybook-button--secondary";
288
+ return /* @__PURE__ */ ne.jsx(
291
289
  "button",
292
290
  {
293
291
  type: "button",
294
- className: ["storybook-button", `storybook-button--${m}`, s].join(
292
+ className: ["storybook-button", `storybook-button--${i}`, s].join(
295
293
  " "
296
294
  ),
297
- style: { backgroundColor: i },
295
+ style: { backgroundColor: l },
298
296
  ...a,
299
- children: f
297
+ children: c
300
298
  }
301
299
  );
302
300
  };
303
301
  export {
304
- se as Button
302
+ ae as Button
305
303
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "hans-ui-design-lib",
3
3
  "description": "UI Design System Base Lib",
4
4
  "author": "Victor Hanszman",
5
- "version": "0.0.14",
5
+ "version": "0.0.16",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.cjs.js",
@@ -31,7 +31,6 @@
31
31
  "storybook": "storybook dev -p 6006",
32
32
  "build-storybook": "storybook build",
33
33
  "build": "tsc -p tsconfig.build.json && vite build",
34
- "publish": "npm version patch --no-git-tag-version && npm publish",
35
34
  "publish:patch": "npm version patch --no-git-tag-version && npm publish",
36
35
  "publish:minor": "npm version minor --no-git-tag-version && npm publish",
37
36
  "publish:major": "npm version major --no-git-tag-version && npm publish",
@@ -70,7 +69,6 @@
70
69
  "@vitejs/plugin-react": "^5.0.3",
71
70
  "@vitest/browser": "^3.2.4",
72
71
  "@vitest/coverage-v8": "^3.2.4",
73
- "autoprefixer": "^10.4.21",
74
72
  "eslint": "^9.36.0",
75
73
  "eslint-config-prettier": "^10.1.8",
76
74
  "eslint-plugin-react": "^7.37.5",
@@ -80,7 +78,6 @@
80
78
  "globals": "^16.4.0",
81
79
  "jsdom": "^27.0.0",
82
80
  "playwright": "^1.55.1",
83
- "postcss": "^8.5.6",
84
81
  "prettier": "^3.6.2",
85
82
  "sass": "^1.93.2",
86
83
  "storybook": "^9.1.8",