@vhyxui/react 0.3.0-alpha → 0.4.0-alpha
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/LICENSE +21 -0
- package/README.md +65 -0
- package/dist/Accordion-qtPur3CA.js +81 -0
- package/dist/Accordion-z3QDvyGf.cjs +1 -0
- package/dist/Alert-D4EFVKUy.js +99 -0
- package/dist/Alert-DWB9Gtpv.cjs +1 -0
- package/dist/Avatar-CDoAvY0m.js +51 -0
- package/dist/Avatar-afXJdutp.cjs +1 -0
- package/dist/Badge-DOhfKlXt.cjs +1 -0
- package/dist/Badge-Z6crWSLX.js +38 -0
- package/dist/Breadcrumb-CbPmH-b4.js +90 -0
- package/dist/Breadcrumb-DWRxQvbb.cjs +1 -0
- package/dist/Button-CnNtk6HV.cjs +1 -0
- package/dist/Button-DN5vy24q.js +60 -0
- package/dist/Card-CI7DyOJg.js +79 -0
- package/dist/Card-CZUQhd45.cjs +1 -0
- package/dist/Center-BmKeGEa1.cjs +1 -0
- package/dist/Center-DFq5m7mf.js +22 -0
- package/dist/Checkbox-D-5qaOEj.js +92 -0
- package/dist/Checkbox-DOd4SIx2.cjs +1 -0
- package/dist/Container-CcsVyA6r.cjs +1 -0
- package/dist/Container-DPKIgeDZ.js +21 -0
- package/dist/Dialog-B7Mhq9Qc.cjs +1 -0
- package/dist/Dialog-DhIanyWH.js +258 -0
- package/dist/Drawer-8maigAH9.cjs +1 -0
- package/dist/Drawer-BKizItfr.js +259 -0
- package/dist/Field-DJvjEmzE.cjs +1 -0
- package/dist/Field-Dx9gXxGL.js +120 -0
- package/dist/Grid-Bzzb0usH.cjs +1 -0
- package/dist/Grid-x_OHCzGV.js +25 -0
- package/dist/Heading-BPqfnM8i.js +14 -0
- package/dist/Heading-icKRWRno.cjs +1 -0
- package/dist/Input-B0dEXpG8.js +151 -0
- package/dist/Input-CdS0oZyf.cjs +1 -0
- package/dist/Kbd-C2vxklhy.cjs +1 -0
- package/dist/Kbd-DGURpjWN.js +22 -0
- package/dist/Pagination-CiE9Jzm0.cjs +1 -0
- package/dist/Pagination-UQ53MWnR.js +128 -0
- package/dist/{Popover-j9pNswBn.js → Popover-0QvSlzcQ.js} +53 -53
- package/dist/Popover-Chf2ikqa.cjs +1 -0
- package/dist/Progress-DdWZRQVS.js +75 -0
- package/dist/Progress-lItZES-D.cjs +1 -0
- package/dist/RadioItem-BbIH7LoA.js +141 -0
- package/dist/RadioItem-Cfxch4Gj.cjs +1 -0
- package/dist/Select-CgjfJSB8.js +350 -0
- package/dist/Select-D_oVKzzK.cjs +1 -0
- package/dist/SelectField-DBGtOECg.js +49 -0
- package/dist/SelectField-DdkU9fXq.cjs +1 -0
- package/dist/Separator-BwR51KpL.js +52 -0
- package/dist/Separator-CTncQd7E.cjs +1 -0
- package/dist/Skeleton-C1LTpmVC.js +20 -0
- package/dist/Skeleton-CpzYhkFp.cjs +1 -0
- package/dist/Spinner-BJnT9SOB.cjs +1 -0
- package/dist/{Spinner-BYi9eTfl.js → Spinner-Dz68qwGs.js} +25 -25
- package/dist/Stack--mNjuxZe.cjs +1 -0
- package/dist/Stack-CfwjUv0j.js +49 -0
- package/dist/Switch-I712svE0.cjs +1 -0
- package/dist/{Switch-DOAZfSV0.js → Switch-bIbcXIMH.js} +22 -22
- package/dist/Table-C2TUkSZv.cjs +1 -0
- package/dist/Table-C_jZjmPK.js +67 -0
- package/dist/Tabs-CbmdCTVE.js +220 -0
- package/dist/Tabs-Dfuu2ZVq.cjs +1 -0
- package/dist/Text-CgsfCbWf.cjs +1 -0
- package/dist/Text-Dl4z0gus.js +26 -0
- package/dist/Text.module-CEBydIO4.js +7 -0
- package/dist/Text.module-gGopk2Yk.cjs +1 -0
- package/dist/TextField-B492c5Ct.js +31 -0
- package/dist/TextField-Bp-b0-hG.cjs +1 -0
- package/dist/{Textarea-CLrctxHU.js → Textarea-cloHZ5Sz.js} +41 -41
- package/dist/Textarea-uXK6PrFb.cjs +1 -0
- package/dist/TextareaField-C5naVyA1.cjs +1 -0
- package/dist/TextareaField-CrRndsuY.js +31 -0
- package/dist/Toast-CESL8AKT.cjs +1 -0
- package/dist/Toast-DYqE0PjM.js +167 -0
- package/dist/Tooltip-B-PpSm6T.cjs +1 -0
- package/dist/{Tooltip-BAmErB_g.js → Tooltip-DCCaNX5W.js} +34 -34
- package/dist/VhyxUIProvider-3f3b9ukY.cjs +1 -0
- package/dist/VhyxUIProvider-B2UHeumk.js +58 -0
- package/dist/VisuallyHidden-BWdnOImJ.cjs +1 -0
- package/dist/VisuallyHidden-CPTxPvL_.js +18 -0
- package/dist/accordion.cjs +1 -0
- package/dist/accordion.d.ts +48 -0
- package/dist/accordion.js +5 -0
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +3 -2
- package/dist/avatar.cjs +1 -0
- package/dist/avatar.d.ts +53 -0
- package/dist/avatar.js +7 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +2 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +3 -2
- package/dist/button.cjs +1 -1
- package/dist/button.js +3 -2
- package/dist/card.cjs +1 -1
- package/dist/card.js +3 -2
- package/dist/center.cjs +1 -0
- package/dist/center.d.ts +20 -0
- package/dist/center.js +5 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +3 -2
- package/dist/container.cjs +1 -0
- package/dist/container.d.ts +23 -0
- package/dist/container.js +5 -0
- package/dist/cx-OWdTFKLx.js +15 -0
- package/dist/cx-dgWA95G6.cjs +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +0 -1
- package/dist/dialog.js +3 -2
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +0 -1
- package/dist/drawer.js +3 -2
- package/dist/env-Cqd4Y-Z7.cjs +1 -0
- package/dist/env-lFT_FRkA.js +19 -0
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +6 -6
- package/dist/form.js +5 -4
- package/dist/grid.cjs +1 -0
- package/dist/grid.d.ts +35 -0
- package/dist/grid.js +5 -0
- package/dist/heading.cjs +1 -0
- package/dist/heading.d.ts +25 -0
- package/dist/heading.js +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +440 -20
- package/dist/index.js +96 -62
- package/dist/input.cjs +1 -1
- package/dist/input.js +3 -2
- package/dist/kbd.cjs +1 -0
- package/dist/kbd.d.ts +16 -0
- package/dist/kbd.js +5 -0
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.js +2 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +3 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +2 -1
- package/dist/radio.cjs +1 -1
- package/dist/radio.js +4 -3
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +3 -3
- package/dist/select.js +3 -2
- package/dist/selectfield.cjs +1 -1
- package/dist/selectfield.d.ts +6 -6
- package/dist/selectfield.js +3 -2
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +3 -2
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.d.ts +22 -0
- package/dist/skeleton.js +5 -0
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.js +3 -2
- package/dist/stack.cjs +1 -0
- package/dist/stack.d.ts +58 -0
- package/dist/stack.js +7 -0
- package/dist/style.css +2 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +3 -2
- package/dist/table.cjs +1 -0
- package/dist/table.d.ts +65 -0
- package/dist/table.js +5 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +3 -2
- package/dist/test-utils.cjs +1 -1
- package/dist/test-utils.d.ts +14 -2
- package/dist/test-utils.js +5 -5
- package/dist/text.cjs +1 -0
- package/dist/text.d.ts +38 -0
- package/dist/text.js +5 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +2 -1
- package/dist/textareafield.cjs +1 -1
- package/dist/textareafield.d.ts +6 -6
- package/dist/textareafield.js +2 -1
- package/dist/textfield.cjs +1 -1
- package/dist/textfield.d.ts +6 -6
- package/dist/textfield.js +3 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.js +4 -3
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +3 -2
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +28 -0
- package/dist/utils.js +8 -0
- package/dist/visually-hidden.cjs +1 -0
- package/dist/visually-hidden.d.ts +16 -0
- package/dist/visually-hidden.js +5 -0
- package/package.json +166 -72
- package/dist/Alert-BJ1O0bnK.cjs +0 -1
- package/dist/Alert-am3ANPTH.js +0 -99
- package/dist/Badge-Bbxb4wyt.js +0 -38
- package/dist/Badge-SBO9tGzn.cjs +0 -1
- package/dist/Breadcrumb-Db7ASomJ.js +0 -90
- package/dist/Breadcrumb-StitgXXx.cjs +0 -1
- package/dist/Button-DDMc7-3S.js +0 -58
- package/dist/Button-akOSYEu9.cjs +0 -1
- package/dist/Card-DSCA-Igh.cjs +0 -1
- package/dist/Card-Dh9Pcmfa.js +0 -79
- package/dist/Checkbox-DWl91ci_.js +0 -92
- package/dist/Checkbox-DvkT6QP9.cjs +0 -1
- package/dist/Dialog-CtYu14zl.js +0 -245
- package/dist/Dialog-gPT4noD8.cjs +0 -1
- package/dist/Drawer-BFJxsPG1.js +0 -246
- package/dist/Drawer-BygSIQQn.cjs +0 -1
- package/dist/Field-Bv07PL2M.js +0 -120
- package/dist/Field-D6FSsUGj.cjs +0 -1
- package/dist/Input-BS_t1bl-.js +0 -151
- package/dist/Input-UQ2fQwE7.cjs +0 -1
- package/dist/Pagination-C1h7OTgM.js +0 -128
- package/dist/Pagination-CmmcBPNz.cjs +0 -1
- package/dist/Popover-BlCmIF9J.cjs +0 -1
- package/dist/Progress-DWLr6Bq2.js +0 -75
- package/dist/Progress-FO-4WX0i.cjs +0 -1
- package/dist/RadioItem-BfkTHBxQ.cjs +0 -1
- package/dist/RadioItem-CzHSS_qK.js +0 -141
- package/dist/Select-BkJNe4Lc.cjs +0 -1
- package/dist/Select-DfV10hZt.js +0 -350
- package/dist/SelectField-B6N0uub8.js +0 -49
- package/dist/SelectField-Dxl2Mgbv.cjs +0 -1
- package/dist/Separator-C5lPGzes.cjs +0 -1
- package/dist/Separator-DQT58t90.js +0 -52
- package/dist/Spinner-CeIDpqkx.cjs +0 -1
- package/dist/Switch-BU_Tcttb.cjs +0 -1
- package/dist/Tabs-BTfm4LbV.js +0 -220
- package/dist/Tabs-DuU02-UD.cjs +0 -1
- package/dist/TextField-C3r-6jr6.cjs +0 -1
- package/dist/TextField-DtXQQJJk.js +0 -31
- package/dist/Textarea-H6evM8L4.cjs +0 -1
- package/dist/TextareaField-CpqPinvx.js +0 -31
- package/dist/TextareaField-D234Lyi_.cjs +0 -1
- package/dist/Toast-0acAjZTB.js +0 -167
- package/dist/Toast-ndaxbpcV.cjs +0 -1
- package/dist/Tooltip-CCd6VRvZ.cjs +0 -1
- package/dist/VhyxUIProvider-C7ie8u2L.cjs +0 -1
- package/dist/VhyxUIProvider-DVFSW4q-.js +0 -31
- package/dist/jsx-runtime-BRMkMA8J.cjs +0 -22
- package/dist/jsx-runtime-CL69jGNW.js +0 -279
package/dist/index.js
CHANGED
|
@@ -1,89 +1,123 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { D as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { V as u, r as l } from "./VhyxUIProvider-B2UHeumk.js";
|
|
3
|
+
import { B as S } from "./Button-DN5vy24q.js";
|
|
4
|
+
import { I as A } from "./Input-B0dEXpG8.js";
|
|
5
|
+
import { T as v } from "./Textarea-cloHZ5Sz.js";
|
|
6
|
+
import { S as F } from "./Select-CgjfJSB8.js";
|
|
7
|
+
import { C as D } from "./Checkbox-D-5qaOEj.js";
|
|
8
|
+
import { R as B, a as I } from "./RadioItem-BbIH7LoA.js";
|
|
9
|
+
import { S as w } from "./Switch-bIbcXIMH.js";
|
|
10
|
+
import { F as y, a as G, u as R } from "./Field-Dx9gXxGL.js";
|
|
11
|
+
import { T as U } from "./TextField-B492c5Ct.js";
|
|
12
|
+
import { S as E } from "./SelectField-DBGtOECg.js";
|
|
13
|
+
import { T as N } from "./TextareaField-CrRndsuY.js";
|
|
14
|
+
import { b as t, c as m, d as x } from "./Toast-DYqE0PjM.js";
|
|
15
|
+
import { T as _, a as j } from "./Toast-DYqE0PjM.js";
|
|
16
|
+
import { A as z } from "./Alert-D4EFVKUy.js";
|
|
17
|
+
import { B as M } from "./Badge-Z6crWSLX.js";
|
|
18
|
+
import { P as W } from "./Progress-DdWZRQVS.js";
|
|
19
|
+
import { S as Y } from "./Spinner-Dz68qwGs.js";
|
|
20
|
+
import { D as $ } from "./Dialog-DhIanyWH.js";
|
|
21
|
+
import { D as ar } from "./Drawer-BKizItfr.js";
|
|
22
|
+
import { T as or } from "./Tooltip-DCCaNX5W.js";
|
|
23
|
+
import { P as sr } from "./Popover-0QvSlzcQ.js";
|
|
24
|
+
import { C as mr } from "./Card-CI7DyOJg.js";
|
|
25
|
+
import { S as ir } from "./Separator-BwR51KpL.js";
|
|
26
|
+
import { T as nr } from "./Tabs-CbmdCTVE.js";
|
|
27
|
+
import { B as pr } from "./Breadcrumb-CbPmH-b4.js";
|
|
28
|
+
import { P as lr } from "./Pagination-UQ53MWnR.js";
|
|
29
|
+
import { c as Sr } from "./cx-OWdTFKLx.js";
|
|
30
|
+
import { spaceVar as Ar } from "./utils.js";
|
|
31
|
+
import { H as vr, S as Cr, V as Fr } from "./Stack-CfwjUv0j.js";
|
|
32
|
+
import { G as Dr } from "./Grid-x_OHCzGV.js";
|
|
33
|
+
import { C as Br } from "./Container-DPKIgeDZ.js";
|
|
34
|
+
import { C as kr } from "./Center-DFq5m7mf.js";
|
|
35
|
+
import { T as Hr } from "./Text-Dl4z0gus.js";
|
|
36
|
+
import { H as Gr } from "./Heading-BPqfnM8i.js";
|
|
37
|
+
import { K as hr } from "./Kbd-DGURpjWN.js";
|
|
38
|
+
import { V as Kr } from "./VisuallyHidden-CPTxPvL_.js";
|
|
39
|
+
import { A as Lr, a as Nr, g as Or } from "./Avatar-CDoAvY0m.js";
|
|
40
|
+
import { S as jr } from "./Skeleton-C1LTpmVC.js";
|
|
41
|
+
import { A as zr } from "./Accordion-qtPur3CA.js";
|
|
42
|
+
import { T as Mr } from "./Table-C_jZjmPK.js";
|
|
43
|
+
const i = 5e3;
|
|
44
|
+
function s(e, a, r) {
|
|
30
45
|
const f = {
|
|
31
46
|
message: e,
|
|
32
47
|
variant: a,
|
|
33
|
-
duration: (r == null ? void 0 : r.duration) ??
|
|
48
|
+
duration: (r == null ? void 0 : r.duration) ?? i,
|
|
34
49
|
dismissible: (r == null ? void 0 : r.dismissible) ?? !0
|
|
35
50
|
};
|
|
36
51
|
return (r == null ? void 0 : r.description) !== void 0 && (f.description = r.description), (r == null ? void 0 : r.action) !== void 0 && (f.action = r.action), f;
|
|
37
52
|
}
|
|
38
53
|
function o(e, a) {
|
|
39
|
-
return s(
|
|
54
|
+
return t(s(e, "default", a));
|
|
40
55
|
}
|
|
41
56
|
o.success = function(a, r) {
|
|
42
|
-
return s(
|
|
57
|
+
return t(s(a, "success", r));
|
|
43
58
|
};
|
|
44
59
|
o.danger = function(a, r) {
|
|
45
|
-
return s(
|
|
60
|
+
return t(s(a, "danger", r));
|
|
46
61
|
};
|
|
47
62
|
o.warning = function(a, r) {
|
|
48
|
-
return s(
|
|
63
|
+
return t(s(a, "warning", r));
|
|
49
64
|
};
|
|
50
65
|
o.info = function(a, r) {
|
|
51
|
-
return s(
|
|
66
|
+
return t(s(a, "info", r));
|
|
52
67
|
};
|
|
53
68
|
o.dismiss = function(a) {
|
|
54
|
-
a !== void 0 ?
|
|
69
|
+
a !== void 0 ? m(a) : x();
|
|
55
70
|
};
|
|
56
71
|
const n = o;
|
|
57
72
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
73
|
+
zr as Accordion,
|
|
74
|
+
z as Alert,
|
|
75
|
+
Lr as Avatar,
|
|
76
|
+
Nr as AvatarGroup,
|
|
77
|
+
M as Badge,
|
|
78
|
+
pr as Breadcrumb,
|
|
79
|
+
S as Button,
|
|
80
|
+
mr as Card,
|
|
81
|
+
kr as Center,
|
|
63
82
|
D as Checkbox,
|
|
64
|
-
|
|
65
|
-
|
|
83
|
+
Br as Container,
|
|
84
|
+
$ as Dialog,
|
|
85
|
+
ar as Drawer,
|
|
66
86
|
y as Field,
|
|
67
|
-
|
|
68
|
-
|
|
87
|
+
G as Form,
|
|
88
|
+
Dr as Grid,
|
|
89
|
+
vr as HStack,
|
|
90
|
+
Gr as Heading,
|
|
91
|
+
A as Input,
|
|
92
|
+
hr as Kbd,
|
|
69
93
|
lr as Pagination,
|
|
70
94
|
sr as Popover,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
95
|
+
W as Progress,
|
|
96
|
+
B as RadioGroup,
|
|
97
|
+
I as RadioItem,
|
|
98
|
+
F as Select,
|
|
99
|
+
E as SelectField,
|
|
100
|
+
ir as Separator,
|
|
101
|
+
jr as Skeleton,
|
|
102
|
+
Y as Spinner,
|
|
103
|
+
Cr as Stack,
|
|
104
|
+
w as Switch,
|
|
105
|
+
Mr as Table,
|
|
106
|
+
nr as Tabs,
|
|
107
|
+
Hr as Text,
|
|
108
|
+
U as TextField,
|
|
109
|
+
v as Textarea,
|
|
110
|
+
N as TextareaField,
|
|
111
|
+
_ as Toast,
|
|
112
|
+
j as ToastProvider,
|
|
113
|
+
or as Tooltip,
|
|
114
|
+
Fr as VStack,
|
|
115
|
+
u as VhyxUIProvider,
|
|
116
|
+
Kr as VisuallyHidden,
|
|
117
|
+
Sr as cx,
|
|
118
|
+
Or as getInitials,
|
|
119
|
+
l as resolveSealDomain,
|
|
120
|
+
Ar as spaceVar,
|
|
87
121
|
n as toast,
|
|
88
|
-
|
|
122
|
+
R as useFormContext
|
|
89
123
|
};
|
package/dist/input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Input-CdS0oZyf.cjs");exports.Input=e.Input;
|
package/dist/input.js
CHANGED
package/dist/kbd.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Kbd-C2vxklhy.cjs");exports.Kbd=e.Kbd;
|
package/dist/kbd.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Kbd — keyboard shortcut hint.
|
|
5
|
+
* @example
|
|
6
|
+
* <Kbd keys={['⌘', 'K']} />
|
|
7
|
+
*/
|
|
8
|
+
export declare function Kbd({ keys, children, style, ...rest }: KbdProps): default_2.ReactElement;
|
|
9
|
+
|
|
10
|
+
/** Props for Kbd. */
|
|
11
|
+
export declare interface KbdProps extends default_2.HTMLAttributes<HTMLElement> {
|
|
12
|
+
/** Keys to render joined with "+", e.g. `['⌘', 'K']`. Alternative to children. */
|
|
13
|
+
keys?: string[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { }
|
package/dist/kbd.js
ADDED
package/dist/pagination.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Pagination-CiE9Jzm0.cjs");exports.Pagination=e.Pagination;
|
package/dist/pagination.js
CHANGED
package/dist/popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Popover-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Popover-Chf2ikqa.cjs");exports.Popover=e.Popover;
|
package/dist/popover.js
CHANGED
package/dist/progress.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Progress-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Progress-lItZES-D.cjs");exports.Progress=e.Progress;
|
package/dist/progress.js
CHANGED
package/dist/radio.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./RadioItem-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./RadioItem-Cfxch4Gj.cjs");exports.RadioGroup=e.RadioGroup;exports.RadioItem=e.RadioItem;
|
package/dist/radio.js
CHANGED
package/dist/select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Select-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Select-D_oVKzzK.cjs");exports.Select=e.Select;
|
package/dist/select.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ export declare interface SelectProps extends default_2.HTMLAttributes<HTMLDivEle
|
|
|
66
66
|
/** Called when a new value is selected. */
|
|
67
67
|
onValueChange?: (value: string) => void;
|
|
68
68
|
/** When true, the trigger is disabled. */
|
|
69
|
-
disabled?: boolean;
|
|
69
|
+
disabled?: boolean | undefined;
|
|
70
70
|
/** Size applied to all Select sub-components. @default 'md' */
|
|
71
|
-
size?: SelectSize;
|
|
71
|
+
size?: SelectSize | undefined;
|
|
72
72
|
/** Placeholder text shown when no value is selected. */
|
|
73
|
-
placeholder?: string;
|
|
73
|
+
placeholder?: string | undefined;
|
|
74
74
|
/** VhyxSeal contract override. */
|
|
75
75
|
contract?: Partial<ComponentContract>;
|
|
76
76
|
}
|
package/dist/select.js
CHANGED
package/dist/selectfield.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SelectField-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SelectField-DdkU9fXq.cjs");exports.SelectField=e.SelectField;
|
package/dist/selectfield.d.ts
CHANGED
|
@@ -11,21 +11,21 @@ declare interface FieldProps extends Omit<default_2.HTMLAttributes<HTMLDivElemen
|
|
|
11
11
|
*/
|
|
12
12
|
name: string;
|
|
13
13
|
/** Label rendered above (or beside) the input. */
|
|
14
|
-
label?: default_2.ReactNode;
|
|
14
|
+
label?: default_2.ReactNode | undefined;
|
|
15
15
|
/** Helper text rendered below the input. Connected via aria-describedby. */
|
|
16
|
-
hint?: default_2.ReactNode;
|
|
16
|
+
hint?: default_2.ReactNode | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* Error message. When set, the child input receives aria-invalid and
|
|
19
19
|
* data-error attributes and the error text is announced as a live region.
|
|
20
20
|
* If absent, Field reads the error from the parent Form context automatically.
|
|
21
21
|
*/
|
|
22
|
-
error?: string;
|
|
22
|
+
error?: string | undefined;
|
|
23
23
|
/** When true, renders a required indicator (*) next to the label. */
|
|
24
|
-
required?: boolean;
|
|
24
|
+
required?: boolean | undefined;
|
|
25
25
|
/** When true, renders an optional indicator next to the label. */
|
|
26
|
-
optional?: boolean;
|
|
26
|
+
optional?: boolean | undefined;
|
|
27
27
|
/** Field layout. Overrides the parent Form layout when set. @default 'vertical' */
|
|
28
|
-
layout?: 'vertical' | 'horizontal';
|
|
28
|
+
layout?: 'vertical' | 'horizontal' | undefined;
|
|
29
29
|
/** The single interactive child element (Input, Textarea, Select, etc.). */
|
|
30
30
|
children: default_2.ReactNode;
|
|
31
31
|
}
|
package/dist/selectfield.js
CHANGED
package/dist/separator.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Separator-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Separator-CTncQd7E.cjs");exports.Separator=e.Separator;
|
package/dist/separator.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Skeleton-CpzYhkFp.cjs");exports.Skeleton=e.Skeleton;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Skeleton — loading placeholder. Hidden from assistive tech; pair it with an
|
|
5
|
+
* `aria-busy` container. Respects `prefers-reduced-motion`.
|
|
6
|
+
* @example
|
|
7
|
+
* <Skeleton variant="circle" width={40} height={40} />
|
|
8
|
+
* <Skeleton variant="text" lines={3} />
|
|
9
|
+
*/
|
|
10
|
+
export declare function Skeleton({ variant, width, height, lines, className, style, ...rest }: SkeletonProps): default_2.ReactElement;
|
|
11
|
+
|
|
12
|
+
/** Props for Skeleton. */
|
|
13
|
+
export declare interface SkeletonProps extends default_2.HTMLAttributes<HTMLSpanElement> {
|
|
14
|
+
/** @default 'rect' */
|
|
15
|
+
variant?: 'rect' | 'circle' | 'text';
|
|
16
|
+
width?: string | number;
|
|
17
|
+
height?: string | number;
|
|
18
|
+
/** Repeat as N stacked text lines (last one shorter). */
|
|
19
|
+
lines?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { }
|
package/dist/skeleton.js
ADDED
package/dist/spinner.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Spinner-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Spinner-BJnT9SOB.cjs");exports.Spinner=e.Spinner;
|
package/dist/spinner.js
CHANGED
package/dist/stack.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Stack--mNjuxZe.cjs");exports.HStack=t.HStack;exports.Stack=t.Stack;exports.VStack=t.VStack;
|
package/dist/stack.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
/** Viewport breakpoints shared by responsive layout props. sm 640px · md 768px · lg 1024px. */
|
|
4
|
+
declare type Breakpoint = 'sm' | 'md' | 'lg';
|
|
5
|
+
|
|
6
|
+
/** Props for HStack/VStack — Stack without `direction`. */
|
|
7
|
+
export declare type DirectionalStackProps = Omit<StackProps, 'direction'>;
|
|
8
|
+
|
|
9
|
+
/** Horizontal Stack. Defaults `align="center"`. @example <HStack gap={2}><Button/><Button/></HStack> */
|
|
10
|
+
export declare const HStack: default_2.ForwardRefExoticComponent<DirectionalStackProps & default_2.RefAttributes<HTMLElement>>;
|
|
11
|
+
|
|
12
|
+
/** Spacing steps available in @vhyxui/tokens (`--vhyx-space-*`). */
|
|
13
|
+
declare type Space = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 32;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Stack — the one layout primitive you need most: children in a row or column with consistent gaps.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <Stack gap={4}>
|
|
20
|
+
* <Heading>Title</Heading>
|
|
21
|
+
* <Text tone="subtle">Body</Text>
|
|
22
|
+
* </Stack>
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <Stack direction="row" justify="between" align="center" collapseBelow="md">…</Stack>
|
|
26
|
+
*/
|
|
27
|
+
export declare const Stack: default_2.ForwardRefExoticComponent<StackProps & default_2.RefAttributes<HTMLElement>>;
|
|
28
|
+
|
|
29
|
+
/** Flex alignment keywords. */
|
|
30
|
+
export declare type StackAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
31
|
+
|
|
32
|
+
/** Flex justification keywords. */
|
|
33
|
+
export declare type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
34
|
+
|
|
35
|
+
/** Props for Stack. */
|
|
36
|
+
export declare interface StackProps extends default_2.HTMLAttributes<HTMLElement> {
|
|
37
|
+
/** Element to render. @default 'div' */
|
|
38
|
+
as?: default_2.ElementType;
|
|
39
|
+
/** Main axis. @default 'column' */
|
|
40
|
+
direction?: 'row' | 'column';
|
|
41
|
+
/** Gap between children, in token steps. @default 3 */
|
|
42
|
+
gap?: Space;
|
|
43
|
+
/** Cross-axis alignment. */
|
|
44
|
+
align?: StackAlign;
|
|
45
|
+
/** Main-axis distribution. */
|
|
46
|
+
justify?: StackJustify;
|
|
47
|
+
/** Allow children to wrap onto multiple lines. */
|
|
48
|
+
wrap?: boolean;
|
|
49
|
+
/** Switch a row to a column below this breakpoint (responsive without media queries in your code). */
|
|
50
|
+
collapseBelow?: Breakpoint;
|
|
51
|
+
/** Padding on all sides, in token steps. */
|
|
52
|
+
padding?: Space;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Vertical Stack. @example <VStack gap={4}>…</VStack> */
|
|
56
|
+
export declare const VStack: default_2.ForwardRefExoticComponent<DirectionalStackProps & default_2.RefAttributes<HTMLElement>>;
|
|
57
|
+
|
|
58
|
+
export { }
|