@dimasbaguspm/versaur 0.0.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/README.md +81 -0
- package/dist/alert-DzSPXqwS.js +167 -0
- package/dist/app-bar-B4nQkgdL.js +92 -0
- package/dist/avatar-Bsn24V6g.js +91 -0
- package/dist/badge-DqLCHm9q.js +184 -0
- package/dist/bottom-bar-DOQ3gVwW.js +73 -0
- package/dist/breadcrumbs-PJV3izUu.js +59 -0
- package/dist/button-C8OibEPE.js +81 -0
- package/dist/button-float-B8tdLJkX.js +107 -0
- package/dist/button-icon-CWji4cBA.js +89 -0
- package/dist/calendar-CkLj89o2.js +112 -0
- package/dist/checkbox-input-CSboebwt.js +167 -0
- package/dist/chip-input-C1PJPDFq.js +189 -0
- package/dist/cn-Ca4KprQ1.js +2730 -0
- package/dist/components/alert/alert.atoms.d.ts +6 -0
- package/dist/components/alert/alert.d.ts +31 -0
- package/dist/components/alert/alert.stories.d.ts +42 -0
- package/dist/components/alert/helpers.d.ts +14 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/types.d.ts +50 -0
- package/dist/components/alert.js +4 -0
- package/dist/components/app-bar/app-bar.atoms.d.ts +21 -0
- package/dist/components/app-bar/app-bar.d.ts +8 -0
- package/dist/components/app-bar/app-bar.stories.d.ts +19 -0
- package/dist/components/app-bar/helpers.d.ts +6 -0
- package/dist/components/app-bar/index.d.ts +2 -0
- package/dist/components/app-bar/types.d.ts +39 -0
- package/dist/components/app-bar.js +4 -0
- package/dist/components/avatar/avatar.atoms.d.ts +13 -0
- package/dist/components/avatar/avatar.d.ts +24 -0
- package/dist/components/avatar/avatar.stories.d.ts +42 -0
- package/dist/components/avatar/helpers.d.ts +14 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/types.d.ts +46 -0
- package/dist/components/avatar.js +4 -0
- package/dist/components/badge/badge.d.ts +24 -0
- package/dist/components/badge/badge.stories.d.ts +46 -0
- package/dist/components/badge/helpers.d.ts +10 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/types.d.ts +44 -0
- package/dist/components/badge.js +4 -0
- package/dist/components/bottom-bar/bottom-bar.atoms.d.ts +2 -0
- package/dist/components/bottom-bar/bottom-bar.d.ts +4 -0
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +6 -0
- package/dist/components/bottom-bar/helpers.d.ts +7 -0
- package/dist/components/bottom-bar/index.d.ts +2 -0
- package/dist/components/bottom-bar/types.d.ts +32 -0
- package/dist/components/bottom-bar.js +4 -0
- package/dist/components/breadcrumbs/breadcrumbs.atoms.d.ts +9 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +16 -0
- package/dist/components/breadcrumbs/breadcrumbs.stories.d.ts +7 -0
- package/dist/components/breadcrumbs/helpers.d.ts +7 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/breadcrumbs/types.d.ts +21 -0
- package/dist/components/breadcrumbs.js +4 -0
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/button/button.stories.d.ts +50 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/types.d.ts +30 -0
- package/dist/components/button-float/button-float.d.ts +8 -0
- package/dist/components/button-float/button-float.stories.d.ts +27 -0
- package/dist/components/button-float/helpers.d.ts +4 -0
- package/dist/components/button-float/index.d.ts +2 -0
- package/dist/components/button-float/types.d.ts +31 -0
- package/dist/components/button-float.js +4 -0
- package/dist/components/button-icon/button-icon.d.ts +3 -0
- package/dist/components/button-icon/button-icon.stories.d.ts +45 -0
- package/dist/components/button-icon/index.d.ts +2 -0
- package/dist/components/button-icon/types.d.ts +48 -0
- package/dist/components/button-icon.js +4 -0
- package/dist/components/button.js +4 -0
- package/dist/components/calendar/calendar.d.ts +8 -0
- package/dist/components/calendar/calendar.stories.d.ts +6 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/types.d.ts +20 -0
- package/dist/components/calendar.js +4 -0
- package/dist/components/checkbox-input/checkbox-input.atoms.d.ts +9 -0
- package/dist/components/checkbox-input/checkbox-input.d.ts +5 -0
- package/dist/components/checkbox-input/checkbox-input.stories.d.ts +44 -0
- package/dist/components/checkbox-input/context.d.ts +10 -0
- package/dist/components/checkbox-input/helpers.d.ts +11 -0
- package/dist/components/checkbox-input/index.d.ts +2 -0
- package/dist/components/checkbox-input/types.d.ts +46 -0
- package/dist/components/checkbox-input.js +4 -0
- package/dist/components/chip-input/chip-input.atoms.d.ts +10 -0
- package/dist/components/chip-input/chip-input.d.ts +5 -0
- package/dist/components/chip-input/chip-input.stories.d.ts +12 -0
- package/dist/components/chip-input/context.d.ts +11 -0
- package/dist/components/chip-input/helpers.d.ts +4 -0
- package/dist/components/chip-input/index.d.ts +2 -0
- package/dist/components/chip-input/types.d.ts +51 -0
- package/dist/components/chip-input.js +4 -0
- package/dist/components/date-single-picker-input/date-single-picker-input.atoms.d.ts +13 -0
- package/dist/components/date-single-picker-input/date-single-picker-input.d.ts +10 -0
- package/dist/components/date-single-picker-input/date-single-picker-input.docked.d.ts +14 -0
- package/dist/components/date-single-picker-input/date-single-picker-input.docked.stories.d.ts +10 -0
- package/dist/components/date-single-picker-input/date-single-picker-input.modal.d.ts +15 -0
- package/dist/components/date-single-picker-input/date-single-picker-input.modal.stories.d.ts +10 -0
- package/dist/components/date-single-picker-input/helpers.d.ts +3 -0
- package/dist/components/date-single-picker-input/index.d.ts +2 -0
- package/dist/components/date-single-picker-input/types.d.ts +75 -0
- package/dist/components/date-single-picker-input/use-date-single-picker.d.ts +10 -0
- package/dist/components/date-single-picker-input.js +4 -0
- package/dist/components/drawer/context.d.ts +11 -0
- package/dist/components/drawer/drawer.atoms.d.ts +23 -0
- package/dist/components/drawer/drawer.d.ts +16 -0
- package/dist/components/drawer/drawer.stories.d.ts +41 -0
- package/dist/components/drawer/helpers.d.ts +39 -0
- package/dist/components/drawer/index.d.ts +10 -0
- package/dist/components/drawer/types.d.ts +93 -0
- package/dist/components/drawer.js +9 -0
- package/dist/components/icon/helpers.d.ts +4 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.stories.d.ts +39 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/types.d.ts +13 -0
- package/dist/components/icon.js +4 -0
- package/dist/components/index.d.ts +29 -0
- package/dist/components/loading-indicator/helpers.d.ts +9 -0
- package/dist/components/loading-indicator/index.d.ts +1 -0
- package/dist/components/loading-indicator/loading-indicator.atoms.d.ts +10 -0
- package/dist/components/loading-indicator/loading-indicator.d.ts +7 -0
- package/dist/components/loading-indicator/loading-indicator.stories.d.ts +16 -0
- package/dist/components/loading-indicator/types.d.ts +29 -0
- package/dist/components/loading-indicator.js +4 -0
- package/dist/components/menu/context.d.ts +13 -0
- package/dist/components/menu/helpers.d.ts +8 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.atoms.d.ts +14 -0
- package/dist/components/menu/menu.d.ts +7 -0
- package/dist/components/menu/menu.stories.d.ts +22 -0
- package/dist/components/menu/types.d.ts +36 -0
- package/dist/components/menu/use-menu.d.ts +3 -0
- package/dist/components/menu.js +4 -0
- package/dist/components/modal/helpers.d.ts +7 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.atoms.d.ts +8 -0
- package/dist/components/modal/modal.d.ts +7 -0
- package/dist/components/modal/modal.stories.d.ts +13 -0
- package/dist/components/modal/types.d.ts +48 -0
- package/dist/components/modal/use-escape-close.d.ts +6 -0
- package/dist/components/modal/use-focus-trap.d.ts +6 -0
- package/dist/components/modal.js +4 -0
- package/dist/components/radio-input/context.d.ts +11 -0
- package/dist/components/radio-input/helpers.d.ts +11 -0
- package/dist/components/radio-input/index.d.ts +2 -0
- package/dist/components/radio-input/radio-input.atoms.d.ts +9 -0
- package/dist/components/radio-input/radio-input.d.ts +5 -0
- package/dist/components/radio-input/radio-input.stories.d.ts +74 -0
- package/dist/components/radio-input/types.d.ts +54 -0
- package/dist/components/radio-input.js +4 -0
- package/dist/components/segment-multiple-input/context.d.ts +12 -0
- package/dist/components/segment-multiple-input/helpers.d.ts +15 -0
- package/dist/components/segment-multiple-input/index.d.ts +2 -0
- package/dist/components/segment-multiple-input/segment-multiple-input.atoms.d.ts +12 -0
- package/dist/components/segment-multiple-input/segment-multiple-input.d.ts +7 -0
- package/dist/components/segment-multiple-input/segment-multiple-input.stories.d.ts +66 -0
- package/dist/components/segment-multiple-input/types.d.ts +55 -0
- package/dist/components/segment-multiple-input.js +4 -0
- package/dist/components/segment-single-input/context.d.ts +12 -0
- package/dist/components/segment-single-input/helpers.d.ts +15 -0
- package/dist/components/segment-single-input/index.d.ts +2 -0
- package/dist/components/segment-single-input/segment-single-input.atoms.d.ts +11 -0
- package/dist/components/segment-single-input/segment-single-input.d.ts +7 -0
- package/dist/components/segment-single-input/segment-single-input.stories.d.ts +57 -0
- package/dist/components/segment-single-input/types.d.ts +55 -0
- package/dist/components/segment-single-input.js +4 -0
- package/dist/components/select-input/helpers.d.ts +3 -0
- package/dist/components/select-input/index.d.ts +2 -0
- package/dist/components/select-input/select-input.d.ts +9 -0
- package/dist/components/select-input/select-input.stories.d.ts +50 -0
- package/dist/components/select-input/types.d.ts +29 -0
- package/dist/components/select-input.js +4 -0
- package/dist/components/skeleton/helpers.d.ts +6 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/skeleton.d.ts +6 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +25 -0
- package/dist/components/skeleton/types.d.ts +17 -0
- package/dist/components/skeleton.js +4 -0
- package/dist/components/snackbar/helpers.d.ts +8 -0
- package/dist/components/snackbar/index.d.ts +2 -0
- package/dist/components/snackbar/snackbar.atoms.d.ts +10 -0
- package/dist/components/snackbar/snackbar.d.ts +6 -0
- package/dist/components/snackbar/snackbar.stories.d.ts +8 -0
- package/dist/components/snackbar/types.d.ts +40 -0
- package/dist/components/snackbar.js +4 -0
- package/dist/components/switch-input/helpers.d.ts +18 -0
- package/dist/components/switch-input/index.d.ts +3 -0
- package/dist/components/switch-input/switch-input.atoms.d.ts +28 -0
- package/dist/components/switch-input/switch-input.d.ts +6 -0
- package/dist/components/switch-input/switch-input.stories.d.ts +10 -0
- package/dist/components/switch-input/types.d.ts +49 -0
- package/dist/components/switch-input.js +7 -0
- package/dist/components/tabs/context.d.ts +3 -0
- package/dist/components/tabs/helpers.d.ts +8 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs.atoms.d.ts +10 -0
- package/dist/components/tabs/tabs.d.ts +5 -0
- package/dist/components/tabs/tabs.stories.d.ts +17 -0
- package/dist/components/tabs/types.d.ts +41 -0
- package/dist/components/tabs/use-tab-indicator.d.ts +13 -0
- package/dist/components/tabs.js +4 -0
- package/dist/components/text/helpers.d.ts +18 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +7 -0
- package/dist/components/text/text.stories.d.ts +14 -0
- package/dist/components/text/types.d.ts +30 -0
- package/dist/components/text-input/helpers.d.ts +3 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/text-input.d.ts +9 -0
- package/dist/components/text-input/text-input.stories.d.ts +20 -0
- package/dist/components/text-input/types.d.ts +33 -0
- package/dist/components/text-input.js +4 -0
- package/dist/components/text.js +4 -0
- package/dist/components/textarea-input/helpers.d.ts +4 -0
- package/dist/components/textarea-input/index.d.ts +2 -0
- package/dist/components/textarea-input/textarea-input.d.ts +10 -0
- package/dist/components/textarea-input/textarea-input.stories.d.ts +50 -0
- package/dist/components/textarea-input/types.d.ts +40 -0
- package/dist/components/textarea-input.js +4 -0
- package/dist/components/tile/helpers.d.ts +8 -0
- package/dist/components/tile/index.d.ts +2 -0
- package/dist/components/tile/tile.d.ts +11 -0
- package/dist/components/tile/tile.stories.d.ts +35 -0
- package/dist/components/tile/types.d.ts +23 -0
- package/dist/components/tile.js +4 -0
- package/dist/components/top-bar/helpers.d.ts +26 -0
- package/dist/components/top-bar/index.d.ts +2 -0
- package/dist/components/top-bar/top-bar.atoms.d.ts +6 -0
- package/dist/components/top-bar/top-bar.d.ts +8 -0
- package/dist/components/top-bar/top-bar.stories.d.ts +15 -0
- package/dist/components/top-bar/types.d.ts +38 -0
- package/dist/components/top-bar.js +4 -0
- package/dist/date-single-picker-input--Ew0O9NQ.js +252 -0
- package/dist/drawer-DrnAR2a4.js +218 -0
- package/dist/helpers-CEDtBUGM.js +37 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/icon-D-lTZMHY.js +44 -0
- package/dist/index-DU1SCUkk.js +329 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +68 -0
- package/dist/loading-indicator-BZMnT5PA.js +168 -0
- package/dist/menu-BZvilMF7.js +174 -0
- package/dist/modal-BGAtqMl9.js +149 -0
- package/dist/radio-input-BRGoevZY.js +173 -0
- package/dist/segment-multiple-input-VwHCqFd6.js +229 -0
- package/dist/segment-single-input-Cqoo7-C2.js +228 -0
- package/dist/select-input-DCb0usvK.js +108 -0
- package/dist/skeleton-D4X5USf_.js +59 -0
- package/dist/snackbar-CYias-fJ.js +79 -0
- package/dist/styles.css +115 -0
- package/dist/switch-input-C5s1lvYh.js +186 -0
- package/dist/tabs-C8aRKfxS.js +216 -0
- package/dist/text-B7e-au41.js +120 -0
- package/dist/text-input-BsWvUk_H.js +73 -0
- package/dist/textarea-input-DZExXEE8.js +102 -0
- package/dist/tile-Du7YciCG.js +51 -0
- package/dist/top-bar-ErHvwR4K.js +62 -0
- package/package.json +97 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import ne from "react";
|
|
2
|
+
var P = { exports: {} }, y = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var W;
|
|
13
|
+
function ae() {
|
|
14
|
+
if (W) return y;
|
|
15
|
+
W = 1;
|
|
16
|
+
var n = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
17
|
+
function t(a, u, l) {
|
|
18
|
+
var _ = null;
|
|
19
|
+
if (l !== void 0 && (_ = "" + l), u.key !== void 0 && (_ = "" + u.key), "key" in u) {
|
|
20
|
+
l = {};
|
|
21
|
+
for (var E in u)
|
|
22
|
+
E !== "key" && (l[E] = u[E]);
|
|
23
|
+
} else l = u;
|
|
24
|
+
return u = l.ref, {
|
|
25
|
+
$$typeof: n,
|
|
26
|
+
type: a,
|
|
27
|
+
key: _,
|
|
28
|
+
ref: u !== void 0 ? u : null,
|
|
29
|
+
props: l
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return y.Fragment = s, y.jsx = t, y.jsxs = t, y;
|
|
33
|
+
}
|
|
34
|
+
var A = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var L;
|
|
45
|
+
function oe() {
|
|
46
|
+
return L || (L = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function n(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === ee ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case T:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case z:
|
|
56
|
+
return "Profiler";
|
|
57
|
+
case O:
|
|
58
|
+
return "StrictMode";
|
|
59
|
+
case H:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case Z:
|
|
62
|
+
return "SuspenseList";
|
|
63
|
+
case K:
|
|
64
|
+
return "Activity";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case x:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case X:
|
|
73
|
+
return (e.displayName || "Context") + ".Provider";
|
|
74
|
+
case G:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case B:
|
|
77
|
+
var r = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case Q:
|
|
80
|
+
return r = e.displayName || null, r !== null ? r : n(e.type) || "Memo";
|
|
81
|
+
case C:
|
|
82
|
+
r = e._payload, e = e._init;
|
|
83
|
+
try {
|
|
84
|
+
return n(e(r));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function s(e) {
|
|
91
|
+
return "" + e;
|
|
92
|
+
}
|
|
93
|
+
function t(e) {
|
|
94
|
+
try {
|
|
95
|
+
s(e);
|
|
96
|
+
var r = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
r = !0;
|
|
99
|
+
}
|
|
100
|
+
if (r) {
|
|
101
|
+
r = console;
|
|
102
|
+
var o = r.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return o.call(
|
|
104
|
+
r,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
i
|
|
107
|
+
), s(e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function a(e) {
|
|
111
|
+
if (e === T) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === C)
|
|
113
|
+
return "<...>";
|
|
114
|
+
try {
|
|
115
|
+
var r = n(e);
|
|
116
|
+
return r ? "<" + r + ">" : "<...>";
|
|
117
|
+
} catch {
|
|
118
|
+
return "<...>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function u() {
|
|
122
|
+
var e = g.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
124
|
+
}
|
|
125
|
+
function l() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
127
|
+
}
|
|
128
|
+
function _(e) {
|
|
129
|
+
if (Y.call(e, "key")) {
|
|
130
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (r && r.isReactWarning) return !1;
|
|
132
|
+
}
|
|
133
|
+
return e.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function E(e, r) {
|
|
136
|
+
function o() {
|
|
137
|
+
I || (I = !0, console.error(
|
|
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
|
+
r
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: o,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function S() {
|
|
148
|
+
var e = n(this.type);
|
|
149
|
+
return F[e] || (F[e] = !0, console.error(
|
|
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
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
+
}
|
|
153
|
+
function f(e, r, o, i, R, m, h, p) {
|
|
154
|
+
return o = m.ref, e = {
|
|
155
|
+
$$typeof: j,
|
|
156
|
+
type: e,
|
|
157
|
+
key: r,
|
|
158
|
+
props: m,
|
|
159
|
+
_owner: R
|
|
160
|
+
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
161
|
+
enumerable: !1,
|
|
162
|
+
get: S
|
|
163
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
164
|
+
configurable: !1,
|
|
165
|
+
enumerable: !1,
|
|
166
|
+
writable: !0,
|
|
167
|
+
value: 0
|
|
168
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
169
|
+
configurable: !1,
|
|
170
|
+
enumerable: !1,
|
|
171
|
+
writable: !0,
|
|
172
|
+
value: null
|
|
173
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
174
|
+
configurable: !1,
|
|
175
|
+
enumerable: !1,
|
|
176
|
+
writable: !0,
|
|
177
|
+
value: h
|
|
178
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
179
|
+
configurable: !1,
|
|
180
|
+
enumerable: !1,
|
|
181
|
+
writable: !0,
|
|
182
|
+
value: p
|
|
183
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
184
|
+
}
|
|
185
|
+
function v(e, r, o, i, R, m, h, p) {
|
|
186
|
+
var c = r.children;
|
|
187
|
+
if (c !== void 0)
|
|
188
|
+
if (i)
|
|
189
|
+
if (re(c)) {
|
|
190
|
+
for (i = 0; i < c.length; i++)
|
|
191
|
+
b(c[i]);
|
|
192
|
+
Object.freeze && Object.freeze(c);
|
|
193
|
+
} else
|
|
194
|
+
console.error(
|
|
195
|
+
"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
|
+
else b(c);
|
|
198
|
+
if (Y.call(r, "key")) {
|
|
199
|
+
c = n(e);
|
|
200
|
+
var k = Object.keys(r).filter(function(te) {
|
|
201
|
+
return te !== "key";
|
|
202
|
+
});
|
|
203
|
+
i = 0 < k.length ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}", D[c + i] || (k = 0 < k.length ? "{" + k.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
205
|
+
let props = %s;
|
|
206
|
+
<%s {...props} />
|
|
207
|
+
React keys must be passed directly to JSX without using spread:
|
|
208
|
+
let props = %s;
|
|
209
|
+
<%s key={someKey} {...props} />`,
|
|
210
|
+
i,
|
|
211
|
+
c,
|
|
212
|
+
k,
|
|
213
|
+
c
|
|
214
|
+
), D[c + i] = !0);
|
|
215
|
+
}
|
|
216
|
+
if (c = null, o !== void 0 && (t(o), c = "" + o), _(r) && (t(r.key), c = "" + r.key), "key" in r) {
|
|
217
|
+
o = {};
|
|
218
|
+
for (var N in r)
|
|
219
|
+
N !== "key" && (o[N] = r[N]);
|
|
220
|
+
} else o = r;
|
|
221
|
+
return c && E(
|
|
222
|
+
o,
|
|
223
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
224
|
+
), f(
|
|
225
|
+
e,
|
|
226
|
+
c,
|
|
227
|
+
m,
|
|
228
|
+
R,
|
|
229
|
+
u(),
|
|
230
|
+
o,
|
|
231
|
+
h,
|
|
232
|
+
p
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
function b(e) {
|
|
236
|
+
typeof e == "object" && e !== null && e.$$typeof === j && e._store && (e._store.validated = 1);
|
|
237
|
+
}
|
|
238
|
+
var d = ne, j = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), G = Symbol.for("react.consumer"), X = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), g = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, re = Array.isArray, w = console.createTask ? console.createTask : function() {
|
|
239
|
+
return null;
|
|
240
|
+
};
|
|
241
|
+
d = {
|
|
242
|
+
"react-stack-bottom-frame": function(e) {
|
|
243
|
+
return e();
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
var I, F = {}, V = d["react-stack-bottom-frame"].bind(
|
|
247
|
+
d,
|
|
248
|
+
l
|
|
249
|
+
)(), $ = w(a(l)), D = {};
|
|
250
|
+
A.Fragment = T, A.jsx = function(e, r, o, i, R) {
|
|
251
|
+
var m = 1e4 > g.recentlyCreatedOwnerStacks++;
|
|
252
|
+
return v(
|
|
253
|
+
e,
|
|
254
|
+
r,
|
|
255
|
+
o,
|
|
256
|
+
!1,
|
|
257
|
+
i,
|
|
258
|
+
R,
|
|
259
|
+
m ? Error("react-stack-top-frame") : V,
|
|
260
|
+
m ? w(a(e)) : $
|
|
261
|
+
);
|
|
262
|
+
}, A.jsxs = function(e, r, o, i, R) {
|
|
263
|
+
var m = 1e4 > g.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return v(
|
|
265
|
+
e,
|
|
266
|
+
r,
|
|
267
|
+
o,
|
|
268
|
+
!0,
|
|
269
|
+
i,
|
|
270
|
+
R,
|
|
271
|
+
m ? Error("react-stack-top-frame") : V,
|
|
272
|
+
m ? w(a(e)) : $
|
|
273
|
+
);
|
|
274
|
+
};
|
|
275
|
+
}()), A;
|
|
276
|
+
}
|
|
277
|
+
var M;
|
|
278
|
+
function se() {
|
|
279
|
+
return M || (M = 1, process.env.NODE_ENV === "production" ? P.exports = ae() : P.exports = oe()), P.exports;
|
|
280
|
+
}
|
|
281
|
+
var ie = se();
|
|
282
|
+
function q(n) {
|
|
283
|
+
var s, t, a = "";
|
|
284
|
+
if (typeof n == "string" || typeof n == "number") a += n;
|
|
285
|
+
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
286
|
+
var u = n.length;
|
|
287
|
+
for (s = 0; s < u; s++) n[s] && (t = q(n[s])) && (a && (a += " "), a += t);
|
|
288
|
+
} else for (t in n) n[t] && (a && (a += " "), a += t);
|
|
289
|
+
return a;
|
|
290
|
+
}
|
|
291
|
+
function ue() {
|
|
292
|
+
for (var n, s, t = 0, a = "", u = arguments.length; t < u; t++) (n = arguments[t]) && (s = q(n)) && (a && (a += " "), a += s);
|
|
293
|
+
return a;
|
|
294
|
+
}
|
|
295
|
+
const U = (n) => typeof n == "boolean" ? `${n}` : n === 0 ? "0" : n, J = ue, ce = (n, s) => (t) => {
|
|
296
|
+
var a;
|
|
297
|
+
if (s?.variants == null) return J(n, t?.class, t?.className);
|
|
298
|
+
const { variants: u, defaultVariants: l } = s, _ = Object.keys(u).map((f) => {
|
|
299
|
+
const v = t?.[f], b = l?.[f];
|
|
300
|
+
if (v === null) return null;
|
|
301
|
+
const d = U(v) || U(b);
|
|
302
|
+
return u[f][d];
|
|
303
|
+
}), E = t && Object.entries(t).reduce((f, v) => {
|
|
304
|
+
let [b, d] = v;
|
|
305
|
+
return d === void 0 || (f[b] = d), f;
|
|
306
|
+
}, {}), S = s == null || (a = s.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((f, v) => {
|
|
307
|
+
let { class: b, className: d, ...j } = v;
|
|
308
|
+
return Object.entries(j).every((x) => {
|
|
309
|
+
let [T, O] = x;
|
|
310
|
+
return Array.isArray(O) ? O.includes({
|
|
311
|
+
...l,
|
|
312
|
+
...E
|
|
313
|
+
}[T]) : {
|
|
314
|
+
...l,
|
|
315
|
+
...E
|
|
316
|
+
}[T] === O;
|
|
317
|
+
}) ? [
|
|
318
|
+
...f,
|
|
319
|
+
b,
|
|
320
|
+
d
|
|
321
|
+
] : f;
|
|
322
|
+
}, []);
|
|
323
|
+
return J(n, _, S, t?.class, t?.className);
|
|
324
|
+
};
|
|
325
|
+
export {
|
|
326
|
+
ue as a,
|
|
327
|
+
ce as c,
|
|
328
|
+
ie as j
|
|
329
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { A as t } from "./alert-DzSPXqwS.js";
|
|
2
|
+
import { A as e } from "./app-bar-B4nQkgdL.js";
|
|
3
|
+
import { A as s } from "./avatar-Bsn24V6g.js";
|
|
4
|
+
import { B as x } from "./badge-DqLCHm9q.js";
|
|
5
|
+
import { B as n } from "./bottom-bar-DOQ3gVwW.js";
|
|
6
|
+
import { B as S } from "./breadcrumbs-PJV3izUu.js";
|
|
7
|
+
import { B as c } from "./button-C8OibEPE.js";
|
|
8
|
+
import { B as T } from "./button-icon-CWji4cBA.js";
|
|
9
|
+
import { B as l } from "./button-float-B8tdLJkX.js";
|
|
10
|
+
import { C as D } from "./checkbox-input-CSboebwt.js";
|
|
11
|
+
import { C as d } from "./chip-input-C1PJPDFq.js";
|
|
12
|
+
import { D as A } from "./date-single-picker-input--Ew0O9NQ.js";
|
|
13
|
+
import { D as k, c as C, d as L, b as M, a as v, u as y } from "./drawer-DrnAR2a4.js";
|
|
14
|
+
import { I as R } from "./icon-D-lTZMHY.js";
|
|
15
|
+
import { M as O } from "./menu-BZvilMF7.js";
|
|
16
|
+
import { R as j } from "./radio-input-BRGoevZY.js";
|
|
17
|
+
import { S as z } from "./segment-single-input-Cqoo7-C2.js";
|
|
18
|
+
import { S as G } from "./segment-multiple-input-VwHCqFd6.js";
|
|
19
|
+
import { S as K } from "./select-input-DCb0usvK.js";
|
|
20
|
+
import { S as Q } from "./snackbar-CYias-fJ.js";
|
|
21
|
+
import { T as V } from "./tabs-C8aRKfxS.js";
|
|
22
|
+
import { T as X } from "./text-B7e-au41.js";
|
|
23
|
+
import { T as Z } from "./text-input-BsWvUk_H.js";
|
|
24
|
+
import { T as $ } from "./textarea-input-DZExXEE8.js";
|
|
25
|
+
import { T as or } from "./tile-Du7YciCG.js";
|
|
26
|
+
import { T as ar } from "./top-bar-ErHvwR4K.js";
|
|
27
|
+
import { L as pr } from "./loading-indicator-BZMnT5PA.js";
|
|
28
|
+
import { S as mr, c as xr, b as fr, a as nr } from "./switch-input-C5s1lvYh.js";
|
|
29
|
+
import { S as Sr } from "./skeleton-D4X5USf_.js";
|
|
30
|
+
export {
|
|
31
|
+
t as Alert,
|
|
32
|
+
e as AppBar,
|
|
33
|
+
s as Avatar,
|
|
34
|
+
x as Badge,
|
|
35
|
+
n as BottomBar,
|
|
36
|
+
S as Breadcrumbs,
|
|
37
|
+
c as Button,
|
|
38
|
+
l as ButtonFloat,
|
|
39
|
+
T as ButtonIcon,
|
|
40
|
+
D as CheckboxInput,
|
|
41
|
+
d as ChipInput,
|
|
42
|
+
A as DateSinglePickerInput,
|
|
43
|
+
k as Drawer,
|
|
44
|
+
C as DrawerBody,
|
|
45
|
+
L as DrawerFooter,
|
|
46
|
+
M as DrawerHeader,
|
|
47
|
+
v as DrawerOverlay,
|
|
48
|
+
R as Icon,
|
|
49
|
+
pr as LoadingIndicator,
|
|
50
|
+
O as Menu,
|
|
51
|
+
j as RadioInput,
|
|
52
|
+
G as SegmentMultipleInput,
|
|
53
|
+
z as SegmentSingleInput,
|
|
54
|
+
K as SelectInput,
|
|
55
|
+
Sr as Skeleton,
|
|
56
|
+
Q as Snackbar,
|
|
57
|
+
mr as SwitchInput,
|
|
58
|
+
xr as SwitchLabel,
|
|
59
|
+
fr as SwitchThumb,
|
|
60
|
+
nr as SwitchTrack,
|
|
61
|
+
V as Tabs,
|
|
62
|
+
X as Text,
|
|
63
|
+
$ as TextAreaInput,
|
|
64
|
+
Z as TextInput,
|
|
65
|
+
or as Tile,
|
|
66
|
+
ar as TopBar,
|
|
67
|
+
y as useDrawerContext
|
|
68
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { c as b, j as o } from "./index-DU1SCUkk.js";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { c as d } from "./cn-Ca4KprQ1.js";
|
|
4
|
+
const g = b(
|
|
5
|
+
"inline-block border animate-spin rounded-full",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
sm: "w-4 h-4 border-2",
|
|
10
|
+
md: "w-6 h-6 border-2",
|
|
11
|
+
lg: "w-8 h-8 border-4"
|
|
12
|
+
},
|
|
13
|
+
color: {
|
|
14
|
+
primary: "border-coral border-t-transparent ",
|
|
15
|
+
secondary: "border-sage border-t-transparent",
|
|
16
|
+
tertiary: "border-mist border-t-transparent",
|
|
17
|
+
ghost: "border-slate border-t-transparent",
|
|
18
|
+
neutral: "border-neutral border-t-transparent",
|
|
19
|
+
success: "border-success border-t-transparent",
|
|
20
|
+
info: "border-info border-t-transparent",
|
|
21
|
+
warning: "border-warning border-t-transparent",
|
|
22
|
+
danger: "border-danger border-t-transparent"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
size: "md",
|
|
27
|
+
color: "primary"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
), c = b("relative w-full h-1 overflow-hidden rounded", {
|
|
31
|
+
variants: {
|
|
32
|
+
color: {
|
|
33
|
+
primary: "bg-coral",
|
|
34
|
+
secondary: "bg-sage",
|
|
35
|
+
tertiary: "bg-mist",
|
|
36
|
+
ghost: "bg-slate",
|
|
37
|
+
neutral: "bg-neutral",
|
|
38
|
+
success: "bg-success",
|
|
39
|
+
info: "bg-info",
|
|
40
|
+
warning: "bg-warning",
|
|
41
|
+
danger: "bg-danger"
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
sm: "h-1",
|
|
45
|
+
md: "h-2",
|
|
46
|
+
lg: "h-3"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
defaultVariants: {
|
|
50
|
+
color: "primary",
|
|
51
|
+
size: "md"
|
|
52
|
+
}
|
|
53
|
+
}), u = (r) => {
|
|
54
|
+
switch (r) {
|
|
55
|
+
case "primary":
|
|
56
|
+
return "bg-coral";
|
|
57
|
+
case "secondary":
|
|
58
|
+
return "bg-sage";
|
|
59
|
+
case "tertiary":
|
|
60
|
+
return "bg-mist";
|
|
61
|
+
case "ghost":
|
|
62
|
+
return "bg-slate";
|
|
63
|
+
case "neutral":
|
|
64
|
+
return "bg-neutral";
|
|
65
|
+
case "success":
|
|
66
|
+
return "bg-success";
|
|
67
|
+
case "info":
|
|
68
|
+
return "bg-info";
|
|
69
|
+
case "warning":
|
|
70
|
+
return "bg-warning";
|
|
71
|
+
case "danger":
|
|
72
|
+
return "bg-danger";
|
|
73
|
+
default:
|
|
74
|
+
return "bg-coral";
|
|
75
|
+
}
|
|
76
|
+
}, m = i.forwardRef(
|
|
77
|
+
({
|
|
78
|
+
color: r = "primary",
|
|
79
|
+
size: e = "md",
|
|
80
|
+
ariaLabel: a = "Loading",
|
|
81
|
+
className: n,
|
|
82
|
+
...t
|
|
83
|
+
}, s) => /* @__PURE__ */ o.jsx(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
ref: s,
|
|
87
|
+
role: "status",
|
|
88
|
+
"aria-label": a,
|
|
89
|
+
className: d(g({ color: r, size: e }), n),
|
|
90
|
+
...t
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
), f = i.forwardRef(
|
|
94
|
+
({
|
|
95
|
+
color: r = "primary",
|
|
96
|
+
size: e = "md",
|
|
97
|
+
ariaLabel: a = "Loading",
|
|
98
|
+
className: n,
|
|
99
|
+
...t
|
|
100
|
+
}, s) => /* @__PURE__ */ o.jsxs(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
ref: s,
|
|
104
|
+
role: "progressbar",
|
|
105
|
+
"aria-label": a,
|
|
106
|
+
className: d(
|
|
107
|
+
c({ color: r, size: e }),
|
|
108
|
+
"bg-neutral/40 relative overflow-hidden",
|
|
109
|
+
n
|
|
110
|
+
),
|
|
111
|
+
...t,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ o.jsx(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: d(
|
|
117
|
+
"absolute left-0 top-0 w-full h-full rounded bg-neutral/40 pointer-events-none"
|
|
118
|
+
),
|
|
119
|
+
"aria-hidden": "true"
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ o.jsx(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
className: d(
|
|
126
|
+
"absolute left-0 top-0 h-full w-1/3 animate-loading-bar rounded-full",
|
|
127
|
+
u(r)
|
|
128
|
+
),
|
|
129
|
+
"aria-hidden": "true"
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
), p = i.forwardRef(
|
|
136
|
+
({
|
|
137
|
+
type: r = "spinner",
|
|
138
|
+
size: e = "md",
|
|
139
|
+
color: a = "primary",
|
|
140
|
+
ariaLabel: n = "Loading",
|
|
141
|
+
className: t,
|
|
142
|
+
...s
|
|
143
|
+
}, l) => r === "bar" ? /* @__PURE__ */ o.jsx(
|
|
144
|
+
f,
|
|
145
|
+
{
|
|
146
|
+
ref: l,
|
|
147
|
+
color: a,
|
|
148
|
+
size: e,
|
|
149
|
+
ariaLabel: n,
|
|
150
|
+
className: t,
|
|
151
|
+
...s
|
|
152
|
+
}
|
|
153
|
+
) : /* @__PURE__ */ o.jsx(
|
|
154
|
+
m,
|
|
155
|
+
{
|
|
156
|
+
ref: l,
|
|
157
|
+
color: a,
|
|
158
|
+
size: e,
|
|
159
|
+
ariaLabel: n,
|
|
160
|
+
className: t,
|
|
161
|
+
...s
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
);
|
|
165
|
+
p.displayName = "LoadingIndicator";
|
|
166
|
+
export {
|
|
167
|
+
p as L
|
|
168
|
+
};
|