@dimasbaguspm/versaur 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/styles.css +14 -6
- package/dist/js/forms/index.js +12 -14
- package/dist/js/image-rectangle-K9jmTTED.js +2607 -0
- package/dist/js/index.js +66 -68
- package/dist/js/layouts/index.js +8 -9
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +21 -20
- package/dist/js/tabs-I4n6MLAv.js +210 -0
- package/dist/js/time-picker-input-jJBtyikv.js +1562 -0
- package/dist/js/{tooltip-D6fUigp2.js → tooltip-nZW9TUz3.js} +293 -297
- package/dist/js/{top-bar-Dx0JVXms.js → top-bar-BMw3gFYA.js} +292 -247
- package/dist/types/forms/checkbox-input/checkbox-input.d.ts +1 -1
- package/dist/types/forms/checkbox-input/types.d.ts +11 -14
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.atoms.d.ts +2 -2
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +1 -1
- package/dist/types/forms/chip-multiple-input/types.d.ts +15 -14
- package/dist/types/forms/chip-single-input/chip-single-input.atoms.d.ts +1 -1
- package/dist/types/forms/chip-single-input/chip-single-input.d.ts +1 -1
- package/dist/types/forms/chip-single-input/types.d.ts +15 -14
- package/dist/types/forms/date-single-picker-input/types.d.ts +10 -0
- package/dist/types/forms/index.d.ts +0 -2
- package/dist/types/forms/pin-field/pin-field.d.ts +2 -2
- package/dist/types/forms/pin-field/types.d.ts +16 -28
- package/dist/types/forms/select-input/index.d.ts +1 -1
- package/dist/types/forms/select-input/select-input.atoms.d.ts +16 -0
- package/dist/types/forms/select-input/select-input.d.ts +4 -7
- package/dist/types/forms/select-input/types.d.ts +32 -9
- package/dist/types/forms/selectable-multiple-input/selectable-multiple-input.d.ts +1 -1
- package/dist/types/forms/selectable-multiple-input/types.d.ts +20 -3
- package/dist/types/forms/selectable-single-input/selectable-single-input.d.ts +1 -1
- package/dist/types/forms/selectable-single-input/types.d.ts +20 -3
- package/dist/types/forms/switch-input/switch-input.atoms.d.ts +7 -8
- package/dist/types/forms/switch-input/switch-input.d.ts +5 -1
- package/dist/types/forms/switch-input/types.d.ts +10 -33
- package/dist/types/forms/text-input/text-input.d.ts +2 -2
- package/dist/types/forms/text-input/types.d.ts +0 -7
- package/dist/types/forms/textarea-input/textarea-input.d.ts +3 -3
- package/dist/types/forms/textarea-input/types.d.ts +33 -18
- package/dist/types/layouts/index.d.ts +1 -2
- package/dist/types/layouts/page-content/index.d.ts +1 -1
- package/dist/types/layouts/page-content/page-content.d.ts +5 -11
- package/dist/types/layouts/page-content/types.d.ts +29 -9
- package/dist/types/layouts/page-header/types.d.ts +13 -0
- package/dist/types/navigation/tabs/tabs.atoms.d.ts +3 -2
- package/dist/types/navigation/tabs/types.d.ts +5 -13
- package/dist/types/navigation/tabs/use-tab-indicator.d.ts +8 -8
- package/dist/types/overlays/drawer/drawer.atoms.d.ts +18 -8
- package/dist/types/overlays/drawer/drawer.d.ts +5 -5
- package/dist/types/overlays/drawer/types.d.ts +11 -15
- package/dist/types/primitive/button/button.d.ts +5 -0
- package/dist/types/primitive/button/types.d.ts +24 -11
- package/dist/types/primitive/button-anchor/button-anchor.d.ts +9 -0
- package/dist/types/primitive/button-anchor/index.d.ts +2 -0
- package/dist/types/primitive/button-anchor/types.d.ts +35 -0
- package/dist/types/primitive/button-icon/button-icon.d.ts +6 -0
- package/dist/types/primitive/button-icon/types.d.ts +21 -10
- package/dist/types/primitive/filter-chip/types.d.ts +0 -10
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/types/templates/pin-verifier-drawer/types.d.ts +0 -5
- package/dist/utils/enforce-subpath-import.js +1 -3
- package/package.json +1 -1
- package/dist/js/image-rectangle-B4nXH4Q5.js +0 -2581
- package/dist/js/tabs-BAzThVka.js +0 -291
- package/dist/js/time-picker-input-JBEgDV2V.js +0 -2049
- package/dist/types/forms/segment-multiple-input/index.d.ts +0 -2
- package/dist/types/forms/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -12
- package/dist/types/forms/segment-multiple-input/segment-multiple-input.d.ts +0 -7
- package/dist/types/forms/segment-multiple-input/types.d.ts +0 -55
- package/dist/types/forms/segment-single-input/index.d.ts +0 -2
- package/dist/types/forms/segment-single-input/segment-single-input.atoms.d.ts +0 -11
- package/dist/types/forms/segment-single-input/segment-single-input.d.ts +0 -7
- package/dist/types/forms/segment-single-input/types.d.ts +0 -55
- package/dist/types/layouts/page-layout/index.d.ts +0 -2
- package/dist/types/layouts/page-layout/page-layout.d.ts +0 -8
- package/dist/types/layouts/page-layout/types.d.ts +0 -20
package/dist/js/tabs-BAzThVka.js
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { c as d, j as s, a as u } from "./index-DOdDlCoL.js";
|
|
2
|
-
import { forwardRef as f, createContext as x, useContext as g, useState as p, useLayoutEffect as y, useRef as h } from "react";
|
|
3
|
-
import { I as w } from "./image-rectangle-B4nXH4Q5.js";
|
|
4
|
-
import "./snackbar-DH8jCh2V.js";
|
|
5
|
-
import { ChevronRight as T } from "lucide-react";
|
|
6
|
-
const j = d(
|
|
7
|
-
"flex items-center gap-2 text-sm text-gray-500"
|
|
8
|
-
), I = d(
|
|
9
|
-
"inline-flex items-center gap-1 transition-colors hover:underline cursor-pointer"
|
|
10
|
-
), B = f(function({ children: t, icon: r, isCurrent: a, className: n, ...o }, i) {
|
|
11
|
-
return /* @__PURE__ */ s.jsx("li", { className: "flex items-center", children: /* @__PURE__ */ s.jsxs(
|
|
12
|
-
"a",
|
|
13
|
-
{
|
|
14
|
-
ref: i,
|
|
15
|
-
"aria-current": a ? "page" : void 0,
|
|
16
|
-
tabIndex: a ? -1 : 0,
|
|
17
|
-
className: u(I(), n),
|
|
18
|
-
...o,
|
|
19
|
-
children: [
|
|
20
|
-
r && /* @__PURE__ */ s.jsx("span", { className: "mr-1 inline-flex", children: r }),
|
|
21
|
-
t
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
) });
|
|
25
|
-
});
|
|
26
|
-
function C() {
|
|
27
|
-
return /* @__PURE__ */ s.jsx(w, { as: T, size: "xs", color: "inherit" });
|
|
28
|
-
}
|
|
29
|
-
const V = f(
|
|
30
|
-
function({ children: t, "aria-label": r = "Breadcrumb", ...a }, n) {
|
|
31
|
-
return /* @__PURE__ */ s.jsx("nav", { "aria-label": r, ...a, children: /* @__PURE__ */ s.jsx("ol", { ref: n, className: j(), children: t }) });
|
|
32
|
-
}
|
|
33
|
-
), F = Object.assign(V, {
|
|
34
|
-
Item: B,
|
|
35
|
-
Separator: C
|
|
36
|
-
}), v = x(null), m = () => {
|
|
37
|
-
const e = g(v);
|
|
38
|
-
if (!e)
|
|
39
|
-
throw new Error("useTabsContext must be used within a TabsProvider");
|
|
40
|
-
return e;
|
|
41
|
-
}, N = d(
|
|
42
|
-
"inline-flex items-center justify-center transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none select-none px-4 py-2 text-sm relative",
|
|
43
|
-
{
|
|
44
|
-
variants: {
|
|
45
|
-
active: {
|
|
46
|
-
true: "font-medium",
|
|
47
|
-
false: "font-normal"
|
|
48
|
-
},
|
|
49
|
-
color: {
|
|
50
|
-
primary: "",
|
|
51
|
-
secondary: "",
|
|
52
|
-
tertiary: "",
|
|
53
|
-
ghost: "",
|
|
54
|
-
neutral: ""
|
|
55
|
-
},
|
|
56
|
-
variant: {
|
|
57
|
-
underline: "bg-transparent border-b-2 border-transparent",
|
|
58
|
-
filled: "rounded-lg bg-none flex-1 min-w-0"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
compoundVariants: [
|
|
62
|
-
// Underline variants
|
|
63
|
-
{
|
|
64
|
-
variant: "underline",
|
|
65
|
-
color: "primary",
|
|
66
|
-
active: !0,
|
|
67
|
-
class: "text-primary border-primary"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
variant: "underline",
|
|
71
|
-
color: "primary",
|
|
72
|
-
active: !1,
|
|
73
|
-
class: "text-foreground hover:text-primary"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
variant: "underline",
|
|
77
|
-
color: "secondary",
|
|
78
|
-
active: !0,
|
|
79
|
-
class: "text-secondary border-secondary"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
variant: "underline",
|
|
83
|
-
color: "secondary",
|
|
84
|
-
active: !1,
|
|
85
|
-
class: "text-foreground hover:text-secondary"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
variant: "underline",
|
|
89
|
-
color: "tertiary",
|
|
90
|
-
active: !0,
|
|
91
|
-
class: "text-tertiary border-tertiary"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
variant: "underline",
|
|
95
|
-
color: "tertiary",
|
|
96
|
-
active: !1,
|
|
97
|
-
class: "text-foreground hover:text-tertiary"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
variant: "underline",
|
|
101
|
-
color: "ghost",
|
|
102
|
-
active: !0,
|
|
103
|
-
class: "text-ghost border-ghost"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
variant: "underline",
|
|
107
|
-
color: "ghost",
|
|
108
|
-
active: !1,
|
|
109
|
-
class: "text-foreground hover:text-ghost"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
variant: "underline",
|
|
113
|
-
color: "neutral",
|
|
114
|
-
active: !0,
|
|
115
|
-
class: "text-foreground border-neutral"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
variant: "underline",
|
|
119
|
-
color: "neutral",
|
|
120
|
-
active: !1,
|
|
121
|
-
class: "text-foreground hover:text-neutral"
|
|
122
|
-
},
|
|
123
|
-
// Filled variant (no color, only white/transparent)
|
|
124
|
-
{
|
|
125
|
-
variant: "filled",
|
|
126
|
-
active: !0,
|
|
127
|
-
class: "bg-white text-foreground shadow-sm"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
variant: "filled",
|
|
131
|
-
active: !1,
|
|
132
|
-
class: "bg-transparent text-foreground hover:bg-white/80"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
defaultVariants: {
|
|
136
|
-
active: !1,
|
|
137
|
-
color: "primary",
|
|
138
|
-
variant: "underline"
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
), R = d(
|
|
142
|
-
"flex flex-row w-full overflow-x-auto whitespace-nowrap",
|
|
143
|
-
{
|
|
144
|
-
variants: {
|
|
145
|
-
variant: {
|
|
146
|
-
underline: "border-b border-border",
|
|
147
|
-
filled: "p-1 bg-neutral rounded-lg gap-2"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
defaultVariants: {
|
|
151
|
-
variant: "underline"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
), S = d(
|
|
155
|
-
"absolute bottom-0 h-0.5 rounded transition-all duration-300",
|
|
156
|
-
{
|
|
157
|
-
variants: {
|
|
158
|
-
color: {
|
|
159
|
-
primary: "bg-primary",
|
|
160
|
-
secondary: "bg-secondary",
|
|
161
|
-
tertiary: "bg-tertiary",
|
|
162
|
-
ghost: "bg-ghost",
|
|
163
|
-
neutral: "bg-neutral"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
defaultVariants: {
|
|
167
|
-
color: "primary"
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
), A = ({
|
|
171
|
-
value: e,
|
|
172
|
-
children: t,
|
|
173
|
-
className: r,
|
|
174
|
-
...a
|
|
175
|
-
}) => {
|
|
176
|
-
const {
|
|
177
|
-
activeTab: n,
|
|
178
|
-
setActiveTab: o,
|
|
179
|
-
color: i,
|
|
180
|
-
variant: l = "underline"
|
|
181
|
-
} = m(), c = n === e;
|
|
182
|
-
return /* @__PURE__ */ s.jsx(
|
|
183
|
-
"button",
|
|
184
|
-
{
|
|
185
|
-
role: "tab",
|
|
186
|
-
id: `tabs-trigger-${e}`,
|
|
187
|
-
"aria-selected": c,
|
|
188
|
-
"aria-controls": `tabs-content-${e}`,
|
|
189
|
-
tabIndex: c ? 0 : -1,
|
|
190
|
-
className: u(
|
|
191
|
-
N({
|
|
192
|
-
active: c,
|
|
193
|
-
color: i,
|
|
194
|
-
variant: l
|
|
195
|
-
}),
|
|
196
|
-
r
|
|
197
|
-
),
|
|
198
|
-
onClick: () => o(e),
|
|
199
|
-
type: "button",
|
|
200
|
-
...a,
|
|
201
|
-
children: t
|
|
202
|
-
}
|
|
203
|
-
);
|
|
204
|
-
}, E = ({
|
|
205
|
-
left: e,
|
|
206
|
-
width: t,
|
|
207
|
-
className: r,
|
|
208
|
-
...a
|
|
209
|
-
}) => {
|
|
210
|
-
const { color: n } = m();
|
|
211
|
-
return /* @__PURE__ */ s.jsx(
|
|
212
|
-
"div",
|
|
213
|
-
{
|
|
214
|
-
"aria-hidden": !0,
|
|
215
|
-
className: u(S({ color: n }), r),
|
|
216
|
-
style: {
|
|
217
|
-
left: e,
|
|
218
|
-
width: t,
|
|
219
|
-
pointerEvents: "none"
|
|
220
|
-
},
|
|
221
|
-
...a
|
|
222
|
-
}
|
|
223
|
-
);
|
|
224
|
-
};
|
|
225
|
-
function $(e, t, r) {
|
|
226
|
-
const [a, n] = p({
|
|
227
|
-
left: 0,
|
|
228
|
-
width: 0
|
|
229
|
-
});
|
|
230
|
-
return y(() => {
|
|
231
|
-
if (!t.current) return;
|
|
232
|
-
const o = t.current.querySelector(
|
|
233
|
-
`#tabs-trigger-${e}`
|
|
234
|
-
);
|
|
235
|
-
if (o) {
|
|
236
|
-
const { offsetLeft: i, offsetWidth: l } = o;
|
|
237
|
-
n({ left: i, width: l }), o.scrollIntoView({
|
|
238
|
-
behavior: "smooth",
|
|
239
|
-
inline: "center",
|
|
240
|
-
block: "nearest"
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}, [e, r, t]), a;
|
|
244
|
-
}
|
|
245
|
-
const k = ({
|
|
246
|
-
value: e,
|
|
247
|
-
onValueChange: t,
|
|
248
|
-
children: r,
|
|
249
|
-
className: a,
|
|
250
|
-
color: n = "primary",
|
|
251
|
-
variant: o = "underline",
|
|
252
|
-
...i
|
|
253
|
-
}) => {
|
|
254
|
-
const l = {
|
|
255
|
-
activeTab: e,
|
|
256
|
-
setActiveTab: t,
|
|
257
|
-
color: n,
|
|
258
|
-
variant: o
|
|
259
|
-
}, c = h(null), b = $(e, c, r);
|
|
260
|
-
return /* @__PURE__ */ s.jsx(v.Provider, { value: l, children: /* @__PURE__ */ s.jsxs(
|
|
261
|
-
"div",
|
|
262
|
-
{
|
|
263
|
-
role: "tablist",
|
|
264
|
-
className: u(
|
|
265
|
-
R({
|
|
266
|
-
variant: o
|
|
267
|
-
}),
|
|
268
|
-
a
|
|
269
|
-
),
|
|
270
|
-
ref: c,
|
|
271
|
-
style: { position: "relative" },
|
|
272
|
-
...i,
|
|
273
|
-
children: [
|
|
274
|
-
r,
|
|
275
|
-
o === "underline" && /* @__PURE__ */ s.jsx(
|
|
276
|
-
E,
|
|
277
|
-
{
|
|
278
|
-
left: b.left,
|
|
279
|
-
width: b.width
|
|
280
|
-
}
|
|
281
|
-
)
|
|
282
|
-
]
|
|
283
|
-
}
|
|
284
|
-
) });
|
|
285
|
-
}, W = Object.assign(k, {
|
|
286
|
-
Trigger: A
|
|
287
|
-
});
|
|
288
|
-
export {
|
|
289
|
-
F as B,
|
|
290
|
-
W as T
|
|
291
|
-
};
|