@bzync/rui 0.0.5 → 0.0.9
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 +476 -57
- package/dist/autocomplete-D6z5B-WU.cjs +1 -0
- package/dist/{autocomplete-BgKbj6M4.js → autocomplete-bgySuP8X.js} +149 -142
- package/dist/calendar-CQumLNgS.cjs +1 -0
- package/dist/{calendar-j2_zvum1.js → calendar-nkYCMEy3.js} +9 -9
- package/dist/charts-Cot5lCgC.cjs +1 -0
- package/dist/{charts-CxEy2c3M.js → charts-Dscl6UC3.js} +122 -145
- package/dist/cn-B6R3HKzx.cjs +1 -0
- package/dist/{cn-DpgY2leY.js → cn-BJyZJP-y.js} +389 -389
- package/dist/{component-styles-Bgy44fc8.js → component-styles-C2CbHEEA.js} +2 -2
- package/dist/component-styles-DY4wigiq.cjs +1 -0
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.js +2 -2
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.js +3 -3
- package/dist/components/aspect-ratio.cjs +1 -1
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/auth-backdrop.cjs +1 -1
- package/dist/components/auth-backdrop.d.ts +4 -1
- package/dist/components/auth-backdrop.js +12 -8
- package/dist/components/autocomplete/dropdown.d.ts +4 -1
- package/dist/components/autocomplete/multi-trigger.d.ts +3 -1
- package/dist/components/autocomplete/single-trigger.d.ts +3 -1
- package/dist/components/autocomplete/types.d.ts +15 -0
- package/dist/components/autocomplete.cjs +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/avatar-group.cjs +1 -1
- package/dist/components/avatar-group.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/billing-interval-toggle.cjs +1 -1
- package/dist/components/billing-interval-toggle.d.ts +4 -6
- package/dist/components/billing-interval-toggle.js +26 -19
- package/dist/components/blockquote.cjs +1 -1
- package/dist/components/blockquote.js +3 -3
- package/dist/components/breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb.js +2 -2
- package/dist/components/button-group.cjs +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.d.ts +2 -0
- package/dist/components/button.js +79 -36
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/callout.cjs +1 -1
- package/dist/components/callout.js +14 -14
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/charts/shared.d.ts +15 -0
- package/dist/components/charts.cjs +1 -1
- package/dist/components/charts.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.js +3 -3
- package/dist/components/code.cjs +3 -3
- package/dist/components/code.js +4 -4
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.d.ts +8 -1
- package/dist/components/command.js +84 -83
- package/dist/components/confirm-dialog.cjs +1 -1
- package/dist/components/confirm-dialog.d.ts +8 -1
- package/dist/components/confirm-dialog.js +37 -31
- package/dist/components/copy-button.cjs +1 -1
- package/dist/components/copy-button.js +3 -2
- package/dist/components/currency.cjs +1 -1
- package/dist/components/currency.js +1 -1
- package/dist/components/datatable/types.d.ts +4 -0
- package/dist/components/datatable.cjs +1 -1
- package/dist/components/datatable.d.ts +1 -5
- package/dist/components/datatable.js +1 -1
- package/dist/components/datepicker.cjs +1 -1
- package/dist/components/datepicker.d.ts +3 -3
- package/dist/components/datepicker.js +234 -105
- package/dist/components/description-list.cjs +1 -1
- package/dist/components/description-list.js +1 -1
- package/dist/components/divider.cjs +1 -1
- package/dist/components/divider.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.d.ts +6 -1
- package/dist/components/drawer.js +128 -2
- package/dist/components/dropdown-menu-panel.cjs +1 -0
- package/dist/components/dropdown-menu-panel.d.ts +24 -0
- package/dist/components/dropdown-menu-panel.js +84 -0
- package/dist/components/dropdown-menu.cjs +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -1
- package/dist/components/dropdown-menu.js +38 -93
- package/dist/components/empty-state.cjs +1 -1
- package/dist/components/empty-state.d.ts +5 -1
- package/dist/components/empty-state.js +9 -9
- package/dist/components/error-state.cjs +1 -1
- package/dist/components/error-state.js +2 -2
- package/dist/components/file-upload.cjs +1 -1
- package/dist/components/file-upload.js +4 -4
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.d.ts +9 -0
- package/dist/components/form-field.js +49 -14
- package/dist/components/info-button.cjs +1 -1
- package/dist/components/info-button.d.ts +5 -3
- package/dist/components/info-button.js +33 -29
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.cjs +1 -1
- package/dist/components/label.js +2 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/modal.cjs +1 -1
- package/dist/components/modal.d.ts +8 -1
- package/dist/components/modal.js +74 -120
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.js +2 -2
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.js +3 -3
- package/dist/components/otp-input.cjs +1 -1
- package/dist/components/otp-input.js +2 -2
- package/dist/components/overlay.cjs +1 -0
- package/dist/components/overlay.d.ts +52 -0
- package/dist/components/overlay.js +87 -0
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.js +2 -2
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.d.ts +2 -1
- package/dist/components/popover.js +41 -40
- package/dist/components/progressbar.cjs +1 -1
- package/dist/components/progressbar.js +1 -1
- package/dist/components/radio.cjs +1 -1
- package/dist/components/radio.js +3 -3
- package/dist/components/rating.cjs +1 -1
- package/dist/components/rating.js +3 -3
- package/dist/components/richtext.cjs +1 -1
- package/dist/components/richtext.js +45 -18
- package/dist/components/scroll-area.cjs +1 -1
- package/dist/components/scroll-area.js +3 -3
- package/dist/components/select/option-list.d.ts +3 -1
- package/dist/components/select/types.d.ts +4 -0
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/seo.cjs +1 -1
- package/dist/components/seo.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/skeleton.cjs +1 -1
- package/dist/components/skeleton.d.ts +14 -1
- package/dist/components/skeleton.js +56 -4
- package/dist/components/slider.cjs +1 -1
- package/dist/components/slider.js +2 -2
- package/dist/components/slot.cjs +1 -0
- package/dist/components/slot.d.ts +12 -0
- package/dist/components/slot.js +16 -0
- package/dist/components/snackbar-viewport.cjs +1 -0
- package/dist/components/snackbar-viewport.d.ts +27 -0
- package/dist/components/snackbar-viewport.js +181 -0
- package/dist/components/snackbar.cjs +1 -1
- package/dist/components/snackbar.d.ts +5 -1
- package/dist/components/snackbar.js +36 -200
- package/dist/components/spinner.cjs +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/stat.cjs +1 -1
- package/dist/components/stat.js +1 -1
- package/dist/components/status-dot.cjs +1 -1
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.cjs +1 -1
- package/dist/components/stepper.js +5 -5
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.js +37 -43
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.d.ts +6 -4
- package/dist/components/tabs.js +51 -81
- package/dist/components/tag.cjs +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/terminal.cjs +1 -1
- package/dist/components/terminal.js +1 -1
- package/dist/components/textarea.cjs +1 -1
- package/dist/components/textarea.js +3 -3
- package/dist/components/theme-provider.cjs +1 -1
- package/dist/components/theme-provider.js +1 -1
- package/dist/components/theme-toggle.cjs +1 -1
- package/dist/components/theme-toggle.js +27 -3
- package/dist/components/time-picker.cjs +1 -1
- package/dist/components/time-picker.d.ts +2 -0
- package/dist/components/time-picker.js +206 -148
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/toggle.cjs +1 -1
- package/dist/components/toggle.js +2 -2
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.d.ts +2 -1
- package/dist/components/tooltip.js +37 -36
- package/dist/components/tree.cjs +1 -1
- package/dist/components/tree.js +1 -1
- package/dist/components/typography.cjs +1 -1
- package/dist/components/typography.d.ts +2 -3
- package/dist/components/typography.js +37 -24
- package/dist/components/visually-hidden.cjs +1 -0
- package/dist/components/visually-hidden.d.ts +16 -0
- package/dist/components/visually-hidden.js +13 -0
- package/dist/{datatable-yBN4M3UV.js → datatable-BJoZMrKI.js} +6 -6
- package/dist/datatable-t0U7t_xh.cjs +1 -0
- package/dist/icons-Dfetr1L2.cjs +1 -0
- package/dist/icons-Dk7VZ4Ph.js +51 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +126 -99
- package/dist/lib/cn.d.ts +13 -1
- package/dist/lib/component-styles.d.ts +14 -2
- package/dist/lib/icons.d.ts +12 -0
- package/dist/lib/motion.d.ts +58 -0
- package/dist/motion-B2shivEB.cjs +1 -0
- package/dist/motion-gnRzFS5f.js +62 -0
- package/dist/select-ByjnuEcE.cjs +1 -0
- package/dist/{select-ClWrcj3R.js → select-CiMzLhUK.js} +128 -122
- package/dist/styles.css +1 -1
- package/dist/{terminal-CpraMs50.cjs → terminal-1U0ftG3i.cjs} +2 -2
- package/dist/{terminal-BOR2cFi1.js → terminal-VXdxVoAv.js} +4 -4
- package/dist/use-focus-trap-CPLT49gN.cjs +1 -0
- package/dist/use-focus-trap-CS6BXJAB.js +77 -0
- package/dist/{utils-CQ8pvCtk.js → utils-DEw5mQrH.js} +1 -1
- package/dist/{utils-DOFJTw8o.cjs → utils-MnnCTelh.cjs} +1 -1
- package/package.json +56 -9
- package/dist/autocomplete-Bk4pRQ2R.cjs +0 -1
- package/dist/calendar-CUXpVrVE.cjs +0 -1
- package/dist/charts-UDqS1BH1.cjs +0 -1
- package/dist/cn-BdjraxxU.cjs +0 -1
- package/dist/component-styles-DOUctc8_.cjs +0 -1
- package/dist/createLucideIcon-DDY8HuQR.js +0 -42
- package/dist/createLucideIcon-b_X_3fj-.cjs +0 -1
- package/dist/datatable-rzDgQ3r6.cjs +0 -1
- package/dist/drawer-CTeBsYrO.cjs +0 -1
- package/dist/drawer-ixuzyLVS.js +0 -189
- package/dist/select-BFwx--uK.cjs +0 -1
- package/dist/theme-toggle-Bb0BYo51.js +0 -71
- package/dist/theme-toggle-Cld8tktJ.cjs +0 -1
|
@@ -1,36 +1,71 @@
|
|
|
1
|
-
import { t as e } from "../cn-
|
|
2
|
-
import {
|
|
3
|
-
import { Fragment as
|
|
1
|
+
import { t as e } from "../cn-BJyZJP-y.js";
|
|
2
|
+
import { a as t, i as n, o as r, r as i } from "../component-styles-C2CbHEEA.js";
|
|
3
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/form-field.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
className: e(
|
|
5
|
+
function c({ label: t, hint: n, error: i, required: c, htmlFor: l, className: u, children: d, ...f }) {
|
|
6
|
+
return /* @__PURE__ */ s("div", {
|
|
7
|
+
className: e(r, u),
|
|
8
8
|
...f,
|
|
9
9
|
children: [
|
|
10
|
-
|
|
10
|
+
t && /* @__PURE__ */ s("label", {
|
|
11
11
|
htmlFor: l,
|
|
12
12
|
className: e("flex items-center gap-1", "text-xs font-semibold leading-5 text-foreground"),
|
|
13
|
-
children: [
|
|
13
|
+
children: [t, c && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
|
|
14
14
|
"aria-hidden": "true",
|
|
15
15
|
className: "text-destructive",
|
|
16
16
|
children: "*"
|
|
17
|
-
}), /* @__PURE__ */
|
|
17
|
+
}), /* @__PURE__ */ o("span", {
|
|
18
18
|
className: "sr-only",
|
|
19
19
|
children: " (required)"
|
|
20
20
|
})] })]
|
|
21
21
|
}),
|
|
22
22
|
d,
|
|
23
|
-
|
|
23
|
+
i && /* @__PURE__ */ o("p", {
|
|
24
24
|
"aria-live": "polite",
|
|
25
25
|
className: "text-xs leading-5 text-destructive",
|
|
26
|
-
children:
|
|
26
|
+
children: i
|
|
27
27
|
}),
|
|
28
|
-
|
|
28
|
+
n && !i && /* @__PURE__ */ o("p", {
|
|
29
29
|
className: "text-xs leading-5 text-muted-foreground",
|
|
30
|
-
children:
|
|
30
|
+
children: n
|
|
31
31
|
})
|
|
32
32
|
]
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
var l = c;
|
|
36
|
+
function u({ className: n, children: r, required: i, htmlFor: c, ...l }) {
|
|
37
|
+
return /* @__PURE__ */ s("label", {
|
|
38
|
+
htmlFor: c,
|
|
39
|
+
className: e("flex items-center gap-1", t, n),
|
|
40
|
+
...l,
|
|
41
|
+
children: [r, i && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
className: "text-destructive",
|
|
44
|
+
children: " *"
|
|
45
|
+
}), /* @__PURE__ */ o("span", {
|
|
46
|
+
className: "sr-only",
|
|
47
|
+
children: " (required)"
|
|
48
|
+
})] })]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function d({ className: t, ...n }) {
|
|
52
|
+
return /* @__PURE__ */ o("p", {
|
|
53
|
+
className: e(i, t),
|
|
54
|
+
...n
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function f({ className: t, ...r }) {
|
|
58
|
+
return /* @__PURE__ */ o("p", {
|
|
59
|
+
"aria-live": "polite",
|
|
60
|
+
className: e(n, t),
|
|
61
|
+
...r
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function p({ className: t, ...n }) {
|
|
65
|
+
return /* @__PURE__ */ o("div", {
|
|
66
|
+
className: e("flex flex-col gap-1.5", t),
|
|
67
|
+
...n
|
|
68
|
+
});
|
|
69
|
+
}
|
|
35
70
|
//#endregion
|
|
36
|
-
export {
|
|
71
|
+
export { l as Field, p as FieldContent, d as FieldDescription, f as FieldError, u as FieldLabel, c as FormField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.cjs");let n=require("react"),r=require("react/jsx-runtime");var i=(0,n.forwardRef)(({label:n,className:i,type:a=`button`,...o},s)=>(0,r.jsx)(`button`,{ref:s,type:a,className:e.t(t.c,i),"aria-label":n,...o,children:(0,r.jsxs)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,r.jsx)(`path`,{d:`M12 16v-4`}),(0,r.jsx)(`path`,{d:`M12 8h.01`})]})}));i.displayName=`InfoButton`,exports.InfoButton=i;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export interface InfoButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "aria-label"> {
|
|
3
|
+
/** Describes the information that opens; used as the accessible button name. */
|
|
3
4
|
label: string;
|
|
4
|
-
}
|
|
5
|
+
}
|
|
6
|
+
export declare const InfoButton: import('react').ForwardRefExoticComponent<InfoButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { t as e } from "../cn-BJyZJP-y.js";
|
|
3
|
+
import { c as t } from "../component-styles-C2CbHEEA.js";
|
|
4
|
+
import { forwardRef as n } from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
6
|
//#region src/components/info-button.tsx
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
})
|
|
30
|
-
}
|
|
7
|
+
var a = n(({ label: n, className: a, type: o = "button", ...s }, c) => /* @__PURE__ */ r("button", {
|
|
8
|
+
ref: c,
|
|
9
|
+
type: o,
|
|
10
|
+
className: e(t, a),
|
|
11
|
+
"aria-label": n,
|
|
12
|
+
...s,
|
|
13
|
+
children: /* @__PURE__ */ i("svg", {
|
|
14
|
+
width: "15",
|
|
15
|
+
height: "15",
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
fill: "none",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
strokeWidth: "2",
|
|
20
|
+
strokeLinecap: "round",
|
|
21
|
+
strokeLinejoin: "round",
|
|
22
|
+
"aria-hidden": "true",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ r("circle", {
|
|
25
|
+
cx: "12",
|
|
26
|
+
cy: "12",
|
|
27
|
+
r: "10"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ r("path", { d: "M12 16v-4" }),
|
|
30
|
+
/* @__PURE__ */ r("path", { d: "M12 8h.01" })
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
}));
|
|
34
|
+
a.displayName = "InfoButton";
|
|
31
35
|
//#endregion
|
|
32
|
-
export {
|
|
36
|
+
export { a as InfoButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.cjs");let n=require("react"),r=require("react/jsx-runtime");var i={sm:{wrap:`h-7 px-2 gap-1.5`,text:`text-xs`},md:{wrap:`h-9 px-3 gap-2`,text:`text-sm`},lg:{wrap:`h-10 px-3.5 gap-2.5`,text:`text-sm`}},a=(0,n.forwardRef)(({className:a,wrapperClassName:o,wrapperStyle:s,inputClassName:c,labelClassName:l,hintClassName:u,unstyled:d=!1,label:f,hint:p,error:m,prefix:h,suffix:g,size:_=`md`,id:v,autoComplete:y=`on`,style:b,required:x,...S},C)=>{let w=(0,n.useId)(),T=v??w,E=`${T}-message`,D=i[_];return d?(0,r.jsxs)(`div`,{className:e.t(t.o,o),style:s,children:[f&&(0,r.jsxs)(`label`,{htmlFor:T,className:e.t(`text-xs font-semibold leading-5 text-foreground`,l),children:[f,x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`ml-1 text-destructive`,children:`*`}),(0,r.jsx)(`span`,{className:`sr-only`,children:` (required)`})]})]}),(0,r.jsx)(`input`,{ref:C,id:T,required:x,"aria-invalid":m?!0:void 0,"aria-describedby":m||p?E:void 0,autoComplete:y,className:e.t(c,a),style:b,...S}),m&&(0,r.jsx)(`p`,{id:E,"aria-live":`polite`,className:e.t(`text-xs leading-5 text-destructive`,u),children:m}),p&&!m&&(0,r.jsx)(`p`,{id:E,className:e.t(`text-xs leading-5 text-muted-foreground`,u),children:p})]}):(0,r.jsxs)(`div`,{className:e.t(t.o,o),style:s,children:[f&&(0,r.jsxs)(`label`,{htmlFor:T,className:e.t(`text-xs font-semibold leading-5 text-foreground`,l),children:[f,x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`ml-1 text-destructive`,children:`*`}),(0,r.jsx)(`span`,{className:`sr-only`,children:` (required)`})]})]}),(0,r.jsxs)(`div`,{className:e.t(`flex items-center rounded-[var(--radius-md)]`,D.wrap,t.t,m&&`border-destructive/60 hover:border-destructive/70 focus-within:border-destructive focus-within:ring-destructive/25`),children:[h&&(0,r.jsx)(`span`,{className:e.t(`text-slate-400 dark:text-slate-500 shrink-0`,D.text),children:h}),(0,r.jsx)(`input`,{ref:C,id:T,required:x,"aria-invalid":m?!0:void 0,"aria-describedby":m||p?E:void 0,autoComplete:y,className:e.t(`flex-1 min-w-0 bg-transparent outline-none`,`text-foreground placeholder:text-muted-foreground`,`disabled:cursor-not-allowed disabled:opacity-50`,D.text,c,a),style:b,...S}),g&&(0,r.jsx)(`span`,{className:e.t(`text-slate-400 dark:text-slate-500 shrink-0`,D.text),children:g})]}),m&&(0,r.jsx)(`p`,{id:E,"aria-live":`polite`,className:e.t(`text-xs leading-5 text-destructive`,u),children:m}),p&&!m&&(0,r.jsx)(`p`,{id:E,className:e.t(`text-xs leading-5 text-muted-foreground`,u),children:p})]})});a.displayName=`Input`,exports.Input=a;
|
package/dist/components/input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "../cn-
|
|
3
|
-
import { o as t, t as n } from "../component-styles-
|
|
2
|
+
import { t as e } from "../cn-BJyZJP-y.js";
|
|
3
|
+
import { o as t, t as n } from "../component-styles-C2CbHEEA.js";
|
|
4
4
|
import { forwardRef as r, useId as i } from "react";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/input.tsx
|
|
@@ -75,7 +75,7 @@ var c = {
|
|
|
75
75
|
})] })]
|
|
76
76
|
}),
|
|
77
77
|
/* @__PURE__ */ s("div", {
|
|
78
|
-
className: e("flex items-center rounded-[var(--radius-md)]", A.wrap, n, _ && "border-destructive/60 hover:border-destructive/70 focus-within:border-destructive focus-within:ring-destructive/
|
|
78
|
+
className: e("flex items-center rounded-[var(--radius-md)]", A.wrap, n, _ && "border-destructive/60 hover:border-destructive/70 focus-within:border-destructive focus-within:ring-destructive/25"),
|
|
79
79
|
children: [
|
|
80
80
|
v && /* @__PURE__ */ o("span", {
|
|
81
81
|
className: e("text-slate-400 dark:text-slate-500 shrink-0", A.text),
|
package/dist/components/kbd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs");let t=require("react/jsx-runtime");function n({keys:n,size:r=`sm`,className:i,...a}){let o=Array.isArray(n)?n:[n];return(0,t.jsx)(`span`,{className:e.t(`inline-flex items-center gap-0.5`,i),...a,children:o.map((n,i)=>(0,t.jsx)(`kbd`,{className:e.t(`inline-flex items-center justify-center font-mono font-medium rounded border`,`bg-black/6 dark:bg-white/6 border-black/15 dark:border-white/15`,`text-slate-600 dark:text-slate-400`,r===`sm`?`px-1.5 py-0.5 text-[10px] min-w-[18px] h-[18px]`:`px-2 py-1 text-xs min-w-[22px] h-[22px]`),children:n},i))})}exports.Kbd=n;
|
package/dist/components/kbd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.cjs");let n=require("react/jsx-runtime");function r({className:r,children:i,required:a,hint:o,...s}){return(0,n.jsxs)(`label`,{className:e.t(`flex items-center gap-1.5 select-none`,t.a,r),...s,children:[(0,n.jsx)(`span`,{children:i}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{"aria-hidden":`true`,className:`text-destructive leading-none`,children:`*`}),(0,n.jsx)(`span`,{className:`sr-only`,children:` (required)`})]}),o&&(0,n.jsxs)(`span`,{className:`font-normal text-muted-foreground`,children:[`(`,o,`)`]})]})}exports.Label=r;
|
package/dist/components/label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../cn-
|
|
2
|
-
import { a as t } from "../component-styles-
|
|
1
|
+
import { t as e } from "../cn-BJyZJP-y.js";
|
|
2
|
+
import { a as t } from "../component-styles-C2CbHEEA.js";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/label.tsx
|
|
5
5
|
function a({ className: a, children: o, required: s, hint: c, ...l }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs");let t=require("react/jsx-runtime");function n({fixed:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`div`,{className:e.t(`portal-shell flex min-h-dvh w-full bg-bg text-foreground`,n&&`h-dvh min-h-0 overflow-hidden`,r),...a,children:i})}function r({className:n,children:r,...i}){return(0,t.jsx)(`div`,{className:e.t(`flex min-w-0 flex-1 flex-col`,n),...i,children:r})}function i({scrollable:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`main`,{className:e.t(`min-w-0 flex-1`,n&&`overflow-y-auto`,r),...a,children:i})}function a({sticky:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`header`,{className:e.t(`z-30 shrink-0`,n&&`sticky top-0`,r),...a,children:i})}function o({sticky:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`footer`,{className:e.t(`shrink-0 border-t border-border bg-bg/95 px-4 py-4 text-sm text-muted-foreground`,n&&`sticky bottom-0 z-30`,r),...a,children:i})}var s={sm:`max-w-3xl`,md:`max-w-5xl`,lg:`max-w-7xl`,xl:`max-w-screen-2xl`,full:`max-w-none`};function c({size:n=`lg`,gutter:r=!0,className:i,children:a,...o}){return(0,t.jsx)(`div`,{className:e.t(`mx-auto w-full`,s[n],r&&`px-4 sm:px-6 lg:px-8`,i),...o,children:a})}function l({title:n,description:r,eyebrow:i,breadcrumbs:a,actions:o,as:s=`h1`,className:c,...l}){return(0,t.jsxs)(`div`,{className:e.t(`flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between`,c),...l,children:[(0,t.jsxs)(`div`,{className:`min-w-0`,children:[a&&(0,t.jsx)(`div`,{className:`mb-3`,children:a}),i&&(0,t.jsx)(`div`,{className:`mb-1 text-xs font-semibold uppercase tracking-wider text-accent-600 dark:text-accent-400`,children:i}),(0,t.jsx)(s,{className:`text-2xl font-semibold tracking-[-0.02em] text-foreground`,children:n}),r&&(0,t.jsx)(`div`,{className:`mt-1.5 max-w-3xl text-sm leading-6 text-muted-foreground`,children:r})]}),o&&(0,t.jsx)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2`,children:o})]})}var u={none:`gap-0`,xs:`gap-1`,sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`};function d({gap:n=`md`,className:r,children:i,...a}){return(0,t.jsx)(`div`,{className:e.t(`flex flex-col`,u[n],r),...a,children:i})}var f={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},p={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`};function m({gap:n=`md`,wrap:r=!0,align:i=`center`,justify:a=`start`,className:o,children:s,...c}){return(0,t.jsx)(`div`,{className:e.t(`flex`,u[n],r&&`flex-wrap`,f[i],p[a],o),...c,children:s})}exports.AppShell=n,exports.AppShellBody=r,exports.AppShellHeader=a,exports.AppShellMain=i,exports.Container=c,exports.Footer=o,exports.Inline=m,exports.PageHeader=l,exports.Stack=d;
|
package/dist/components/link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs");let t=require("react/jsx-runtime");var n={default:`text-accent-400 hover:text-accent-300`,muted:`text-slate-500 hover:text-slate-700 dark:hover:text-slate-200`,underline:`text-slate-700 dark:text-slate-200 underline underline-offset-2 decoration-black/25 dark:decoration-white/25 hover:decoration-black/50 dark:hover:decoration-white/50`};function r({children:r,className:i,external:a,icon:o,variant:s=`default`,externalRel:c,...l}){return(0,t.jsxs)(`a`,{target:a?`_blank`:void 0,rel:a?c??`noopener noreferrer`:void 0,referrerPolicy:a?`strict-origin-when-cross-origin`:void 0,className:e.t(`inline-flex items-center gap-1 transition-colors cursor-pointer`,n[s],i),...l,children:[r,o&&(0,t.jsx)(`span`,{className:`shrink-0`,"aria-hidden":`true`,children:o}),a&&!o&&(0,t.jsxs)(`svg`,{"aria-hidden":`true`,width:`11`,height:`11`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,t.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,t.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,t.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})]})}exports.Link=r;
|
package/dist/components/link.js
CHANGED
package/dist/components/list.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs");let t=require("react/jsx-runtime");function n({divided:n=!0,className:r,children:i,...a}){return(0,t.jsx)(`ul`,{className:e.t(n&&`divide-y divide-black/8 dark:divide-white/8`,r),...a,children:i})}function r({icon:n,trailing:r,description:i,href:a,active:o,className:s,children:c,onClick:l,...u}){let d=(0,t.jsxs)(`div`,{className:e.t(`flex items-center gap-3 px-3 py-2.5 transition-colors rounded-lg`,(!!a||!!l)&&`cursor-pointer hover:bg-black/4 dark:hover:bg-white/4`,o&&`bg-accent-500/8 text-accent-400`),children:[n&&(0,t.jsx)(`span`,{className:`shrink-0 text-slate-500 dark:text-slate-400`,children:n}),(0,t.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,t.jsx)(`p`,{className:e.t(`text-sm font-medium truncate`,o?`text-accent-400`:`text-slate-700 dark:text-slate-200`),children:c}),i&&(0,t.jsx)(`p`,{className:`text-xs text-slate-500 mt-0.5 truncate`,children:i})]}),r&&(0,t.jsx)(`span`,{className:`shrink-0 text-slate-500`,children:r})]});return(0,t.jsx)(`li`,{className:e.t(s),onClick:l,...u,children:a?(0,t.jsx)(`a`,{href:a,children:d}):d})}exports.List=n,exports.ListItem=r;
|
package/dist/components/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.cjs"),n=require("../use-event-callback-Du9_9eAi.cjs"),r=require("../motion-B2shivEB.cjs"),i=require("../use-focus-trap-CPLT49gN.cjs");let a=require("framer-motion"),o=require("react"),s=require("react/jsx-runtime");var c={sm:`max-w-[380px]`,md:`max-w-[480px]`,lg:`max-w-[560px]`,xl:`max-w-[640px]`,"2xl":`max-w-[720px]`,"7xl":`max-w-3xl`,full:`max-w-[calc(100vw-2rem)]`};function l({open:l,onClose:u,children:d,className:f,overlayClassName:p,panelClassName:m,containerClassName:h,headerClassName:g,iconClassName:_,titleClassName:v,descriptionClassName:y,closeButtonClassName:b,contentClassName:x,size:S=`md`,title:C,description:w,icon:T,showCloseButton:E=!0,closeAriaLabel:D=`Close dialog`,scrollable:O=!1,unstyled:k=!1,ariaLabel:A=`Dialog`,closeOnEscape:j=!0,closeOnOverlayClick:M=!0}){let N=(0,o.useRef)(null),P=(0,o.useId)(),F=(0,o.useId)(),I=n.t(u),{previouslyFocusedRef:L,restoreNow:R}=i.n(l);return i.t(N,{active:l,onEscape:I,closeOnEscape:j}),k?l?(0,s.jsx)(`div`,{ref:N,role:`dialog`,"aria-modal":`true`,className:e.t(f,m),children:d}):null:(0,s.jsx)(a.AnimatePresence,{onExitComplete:R,children:l&&(0,s.jsxs)(`div`,{className:e.t(`fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6`,h),children:[(0,s.jsx)(a.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:r.n.overlay,className:e.t(`absolute inset-0 bg-overlay`,p),onClick:M?I:void 0}),(0,s.jsxs)(a.motion.div,{ref:N,initial:{opacity:0,scale:.98,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:10},transition:r.n.panelEnter,role:`dialog`,"aria-modal":`true`,"aria-labelledby":C?P:void 0,"aria-describedby":w?F:void 0,"aria-label":C?void 0:A,tabIndex:-1,className:e.t(`relative w-full overflow-hidden flex flex-col`,`rounded-[var(--radius-xl)] border border-border bg-surface-raised shadow-overlay`,`max-h-[min(90dvh,720px)]`,c[S],m,f),children:[C&&(0,s.jsxs)(`div`,{className:e.t(`flex items-start justify-between gap-4 border-b border-border px-5 pb-3 pt-4 sm:px-6 shrink-0`,g),children:[(0,s.jsxs)(`div`,{className:`flex gap-3.5 min-w-0 flex-1`,children:[T&&(0,s.jsx)(`div`,{className:e.t(`mt-0.5 shrink-0 text-muted-foreground [&_svg]:size-5`,_),"aria-hidden":`true`,children:T}),(0,s.jsxs)(`div`,{className:`min-w-0 flex-1 pt-0.5`,children:[(0,s.jsx)(`h2`,{id:P,className:e.t(`text-base font-semibold leading-6 text-foreground`,v),children:C}),w&&(0,s.jsx)(`p`,{id:F,className:e.t(`mt-1 text-sm leading-5 text-muted-foreground`,y),children:w})]})]}),E&&(0,s.jsx)(`button`,{type:`button`,"data-modal-close":!0,"aria-label":D,onClick:I,className:e.t(t.c,b),children:(0,s.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,s.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}),!C&&E&&(0,s.jsx)(`button`,{type:`button`,"data-modal-close":!0,"aria-label":D,onClick:I,className:e.t(`absolute right-4 top-4 z-10`,t.c,b),children:(0,s.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,s.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})}),(0,s.jsx)(`div`,{"data-modal-content":!0,className:e.t(`px-5 py-4 sm:px-6 flex-1`,O?`overflow-y-auto overscroll-contain`:`overflow-y-auto`,x),children:d})]})]})})}function u({className:t,children:n,...r}){return(0,s.jsx)(`div`,{className:e.t(`px-5 pt-4 pb-3 sm:px-6 border-b border-border shrink-0`,t),...r,children:n})}function d({as:t=`h2`,className:n,children:r,...i}){return(0,s.jsx)(t,{className:e.t(`text-base font-semibold leading-6 text-foreground`,n),...i,children:r})}function f({className:t,children:n,...r}){return(0,s.jsx)(`p`,{className:e.t(`mt-1 text-sm leading-5 text-muted-foreground`,t),...r,children:n})}function p({className:t,scrollable:n=!1,children:r,...i}){return(0,s.jsx)(`div`,{"data-modal-content":!0,className:e.t(`px-5 py-4 sm:px-6`,n&&`overflow-y-auto flex-1 overscroll-contain`,t),...i,children:r})}function m({className:t,children:n,...r}){return(0,s.jsx)(`div`,{className:e.t(`flex flex-wrap items-center justify-end gap-2 border-t border-border px-5 pb-4 pt-3 sm:px-6 max-sm:flex-col-reverse max-sm:items-stretch`,t),...r,children:n})}exports.Modal=l,exports.ModalBody=p,exports.ModalDescription=f,exports.ModalFooter=m,exports.ModalHeader=u,exports.ModalTitle=d;
|
|
@@ -6,6 +6,13 @@ export interface ModalProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
overlayClassName?: string;
|
|
8
8
|
panelClassName?: string;
|
|
9
|
+
containerClassName?: string;
|
|
10
|
+
headerClassName?: string;
|
|
11
|
+
iconClassName?: string;
|
|
12
|
+
titleClassName?: string;
|
|
13
|
+
descriptionClassName?: string;
|
|
14
|
+
closeButtonClassName?: string;
|
|
15
|
+
contentClassName?: string;
|
|
9
16
|
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "7xl" | "full";
|
|
10
17
|
title?: string;
|
|
11
18
|
description?: string;
|
|
@@ -18,7 +25,7 @@ export interface ModalProps {
|
|
|
18
25
|
closeOnEscape?: boolean;
|
|
19
26
|
closeOnOverlayClick?: boolean;
|
|
20
27
|
}
|
|
21
|
-
export declare function Modal({ open, onClose, children, className, overlayClassName, panelClassName, size, title, description, icon, showCloseButton, closeAriaLabel, scrollable, unstyled, ariaLabel, closeOnEscape, closeOnOverlayClick, }: ModalProps): import("react").JSX.Element | null;
|
|
28
|
+
export declare function Modal({ open, onClose, children, className, overlayClassName, panelClassName, containerClassName, headerClassName, iconClassName, titleClassName, descriptionClassName, closeButtonClassName, contentClassName, size, title, description, icon, showCloseButton, closeAriaLabel, scrollable, unstyled, ariaLabel, closeOnEscape, closeOnOverlayClick, }: ModalProps): import("react").JSX.Element | null;
|
|
22
29
|
export declare function ModalHeader({ className, children, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
23
30
|
export declare function ModalTitle({ as: Tag, className, children, ...props }: HTMLAttributes<HTMLHeadingElement> & {
|
|
24
31
|
as?: "h1" | "h2" | "h3" | "div";
|