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 +0 -4
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +111 -113
- package/package.json +1 -4
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
2
|
-
var
|
|
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
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
if (s !== void 0 && (
|
|
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
|
|
22
|
-
|
|
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:
|
|
26
|
-
type:
|
|
27
|
-
key:
|
|
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 =
|
|
32
|
+
return _.Fragment = i, _.jsx = l, _.jsxs = l, _;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
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
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
function
|
|
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 ===
|
|
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
|
|
59
|
+
case z:
|
|
60
60
|
return "Suspense";
|
|
61
|
-
case
|
|
61
|
+
case G:
|
|
62
62
|
return "SuspenseList";
|
|
63
|
-
case
|
|
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
|
|
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
|
|
80
|
-
return r = e.displayName || null, r !== null ? r :
|
|
81
|
-
case
|
|
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
|
|
84
|
+
return u(e(r));
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function i(e) {
|
|
91
91
|
return "" + e;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function l(e) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
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
|
-
),
|
|
107
|
+
), i(e);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function c(e) {
|
|
111
111
|
if (e === p) return "<>";
|
|
112
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
113
113
|
return "<...>";
|
|
114
114
|
try {
|
|
115
|
-
var r =
|
|
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
|
|
129
|
-
if (
|
|
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
|
|
135
|
+
function d(e, r) {
|
|
136
136
|
function t() {
|
|
137
|
-
|
|
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
|
|
148
|
-
var e =
|
|
149
|
-
return
|
|
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
|
|
154
|
-
|
|
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:
|
|
159
|
-
_owner:
|
|
160
|
-
}, (
|
|
159
|
+
props: t,
|
|
160
|
+
_owner: n
|
|
161
|
+
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
161
162
|
enumerable: !1,
|
|
162
|
-
get:
|
|
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:
|
|
178
|
+
value: R
|
|
178
179
|
}), Object.defineProperty(e, "_debugTask", {
|
|
179
180
|
configurable: !1,
|
|
180
181
|
enumerable: !1,
|
|
181
182
|
writable: !0,
|
|
182
|
-
value:
|
|
183
|
+
value: O
|
|
183
184
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
184
185
|
}
|
|
185
|
-
function
|
|
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 (
|
|
190
|
+
if (Z(o)) {
|
|
190
191
|
for (n = 0; n < o.length; n++)
|
|
191
|
-
|
|
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
|
|
198
|
-
if (
|
|
199
|
-
o =
|
|
200
|
-
var
|
|
201
|
-
return
|
|
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 <
|
|
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
|
-
|
|
213
|
+
f,
|
|
213
214
|
o
|
|
214
|
-
),
|
|
215
|
+
), Y[o + n] = !0);
|
|
215
216
|
}
|
|
216
|
-
if (o = null, t !== void 0 && (
|
|
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
|
|
219
|
-
|
|
219
|
+
for (var A in r)
|
|
220
|
+
A !== "key" && (t[A] = r[A]);
|
|
220
221
|
} else t = r;
|
|
221
|
-
return o &&
|
|
222
|
+
return o && d(
|
|
222
223
|
t,
|
|
223
224
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
224
|
-
),
|
|
225
|
+
), L(
|
|
225
226
|
e,
|
|
226
227
|
o,
|
|
227
|
-
u,
|
|
228
|
-
l,
|
|
229
|
-
a(),
|
|
230
228
|
t,
|
|
231
|
-
|
|
232
|
-
|
|
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
|
|
238
|
+
return typeof e == "object" && e !== null && e.$$typeof === w;
|
|
237
239
|
}
|
|
238
|
-
var
|
|
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
|
-
|
|
243
|
+
b = {
|
|
242
244
|
react_stack_bottom_frame: function(e) {
|
|
243
245
|
return e();
|
|
244
246
|
}
|
|
245
247
|
};
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
+
var g, h = {}, N = b.react_stack_bottom_frame.bind(
|
|
249
|
+
b,
|
|
248
250
|
s
|
|
249
|
-
)(),
|
|
250
|
-
|
|
251
|
-
var
|
|
252
|
-
return
|
|
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
|
-
|
|
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
|
-
},
|
|
263
|
-
var
|
|
264
|
-
return
|
|
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
|
-
|
|
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
|
-
})()),
|
|
273
|
+
})()), E;
|
|
276
274
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
279
|
-
return
|
|
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
|
|
282
|
-
const
|
|
283
|
-
primary:
|
|
284
|
-
size:
|
|
285
|
-
backgroundColor:
|
|
286
|
-
label:
|
|
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 =
|
|
290
|
-
return /* @__PURE__ */
|
|
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--${
|
|
292
|
+
className: ["storybook-button", `storybook-button--${i}`, s].join(
|
|
295
293
|
" "
|
|
296
294
|
),
|
|
297
|
-
style: { backgroundColor:
|
|
295
|
+
style: { backgroundColor: l },
|
|
298
296
|
...a,
|
|
299
|
-
children:
|
|
297
|
+
children: c
|
|
300
298
|
}
|
|
301
299
|
);
|
|
302
300
|
};
|
|
303
301
|
export {
|
|
304
|
-
|
|
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.
|
|
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",
|