jenosize-ui 0.1.0 → 0.2.1
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 +13 -10
- package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
- package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
- package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
- package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
- package/dist/area-chart.d.ts +54 -0
- package/dist/area-chart.js +9 -0
- package/dist/avatar.d.ts +24 -0
- package/dist/avatar.js +13 -7
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +6 -5
- package/dist/bar-chart.d.ts +32 -0
- package/dist/bar-chart.js +9 -0
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +5 -3
- package/dist/button.d.ts +16 -1
- package/dist/button.js +10 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +18 -14
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +12 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -1
- package/dist/card.js +7 -3
- package/dist/checkbox.js +9 -7
- package/dist/chunk-22M75A3N.js +396 -0
- package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
- package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/chunk-4VGEJG4M.js +1510 -0
- package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/chunk-5DP7W5HX.js +254 -0
- package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
- package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
- package/dist/chunk-5ZEUTSCV.js +147 -0
- package/dist/chunk-5ZPUAGOP.js +19 -0
- package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
- package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
- package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
- package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
- package/dist/chunk-7VLYQR4D.js +44 -0
- package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
- package/dist/chunk-AFYXSZGW.js +23 -0
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
- package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
- package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
- package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
- package/dist/chunk-BLIZ3CL3.js +49 -0
- package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
- package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
- package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
- package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
- package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
- package/dist/chunk-FKVPAEJ6.js +57 -0
- package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
- package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
- package/dist/chunk-GLKFFA7N.js +171 -0
- package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
- package/dist/chunk-HHYEAFCL.js +525 -0
- package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
- package/dist/chunk-IQNVSQRK.js +605 -0
- package/dist/chunk-KHGW72BM.js +10 -0
- package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
- package/dist/chunk-LCG34A5T.js +98 -0
- package/dist/chunk-LLPWQDF7.js +26 -0
- package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
- package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
- package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
- package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/chunk-NKG4N6HA.js +188 -0
- package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
- package/dist/chunk-OLLD2BZN.js +33 -0
- package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
- package/dist/chunk-PO2TYK3C.js +17 -0
- package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
- package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
- package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
- package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
- package/dist/chunk-SKRR3ZMP.js +10 -0
- package/dist/chunk-T4ZFZTY6.js +62 -0
- package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
- package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
- package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
- package/dist/chunk-ULGCGKOE.js +77 -0
- package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
- package/dist/chunk-X2X7Q7NW.js +17 -0
- package/dist/chunk-YHBI52P2.js +10 -0
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
- package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
- package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
- package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +15 -12
- package/dist/control-size-CaxQhkKh.d.ts +3 -0
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +12 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +25 -20
- package/dist/dialog.d.ts +37 -5
- package/dist/dialog.js +12 -8
- package/dist/drawer.d.ts +20 -3
- package/dist/drawer.js +11 -7
- package/dist/dropdown-menu.d.ts +26 -2
- package/dist/dropdown-menu.js +9 -4
- package/dist/dropzone.d.ts +35 -0
- package/dist/dropzone.js +23 -0
- package/dist/form.d.ts +82 -3
- package/dist/form.js +205 -45
- package/dist/header-navigation.d.ts +19 -4
- package/dist/header-navigation.js +23 -16
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +32 -8
- package/dist/index.js +87 -62
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +10 -8
- package/dist/kanban-board.d.ts +489 -0
- package/dist/kanban-board.js +25 -0
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +36 -0
- package/dist/line-chart.js +9 -0
- package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +10 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +14 -10
- package/dist/panel-El4oI68p.d.ts +9 -0
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +10 -8
- package/dist/pie-chart.d.ts +64 -0
- package/dist/pie-chart.js +9 -0
- package/dist/popover.d.ts +9 -3
- package/dist/popover.js +11 -7
- package/dist/progress-steps.d.ts +275 -0
- package/dist/progress-steps.js +8 -0
- package/dist/progress.d.ts +21 -1
- package/dist/progress.js +3 -2
- package/dist/provider.d.ts +212 -0
- package/dist/provider.js +7 -0
- package/dist/radar-chart.d.ts +77 -0
- package/dist/radar-chart.js +9 -0
- package/dist/radial-chart.d.ts +73 -0
- package/dist/radial-chart.js +9 -0
- package/dist/radio.js +9 -7
- package/dist/rule-BqzaIwJy.d.ts +80 -0
- package/dist/scroll-area.d.ts +62 -0
- package/dist/scroll-area.js +7 -0
- package/dist/select.d.ts +3 -3
- package/dist/select.js +17 -14
- package/dist/separator.d.ts +114 -0
- package/dist/separator.js +5 -0
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +80 -12
- package/dist/sidebar-navigation.js +18 -9
- package/dist/skeleton.d.ts +61 -0
- package/dist/skeleton.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +148 -42
- package/dist/table.js +39 -33
- package/dist/tabs.d.ts +22 -0
- package/dist/tabs.js +3 -3
- package/dist/tag-input.d.ts +3 -2
- package/dist/tag-input.js +13 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +4 -3
- package/dist/textarea.js +7 -5
- package/dist/theme.css +151 -6
- package/dist/theme.js +11 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +12 -9
- package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +3 -2
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +8 -6
- package/dist/types-DR9rAEy1.d.ts +188 -0
- package/dist/use-uploads-KaPqDklo.d.ts +482 -0
- package/dist/verification-code-input.d.ts +84 -0
- package/dist/verification-code-input.js +14 -0
- package/package.json +70 -9
- package/dist/card-nWicloNi.d.ts +0 -80
- package/dist/chunk-24TO7E32.js +0 -42
- package/dist/chunk-FXIBGTS5.js +0 -14
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/chunk-ZZT2E5VT.js +0 -24
- package/dist/shared-BNXAdgh2.d.ts +0 -9
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { C as ControlSize } from './control-size-CaxQhkKh.js';
|
|
3
|
+
|
|
4
|
+
type VerificationCodeInputSize = ControlSize;
|
|
5
|
+
/** What each slot accepts. Drives `inputMode`, the hidden input's validation `pattern`, and which
|
|
6
|
+
* characters a paste keeps. `"none"` accepts anything. */
|
|
7
|
+
type VerificationCodeValidationType = "numeric" | "alpha" | "alphanumeric" | "none";
|
|
8
|
+
/** Which glyph a masked slot shows in place of its character. The switch and its setting are ONE
|
|
9
|
+
* prop (`mask?: false | VerificationCodeMask`), like `useTable({ paginate: false | {…} })` — a
|
|
10
|
+
* separate `maskGlyph` would be silently dead whenever masking is off (AGENTS §11). */
|
|
11
|
+
type VerificationCodeMask = "star" | "dot";
|
|
12
|
+
interface VerificationCodeInputProps extends Omit<React.ComponentPropsWithoutRef<"div">, "onChange" | "defaultValue" | "children"> {
|
|
13
|
+
/**
|
|
14
|
+
* Slot count. A NUMBER renders one flat row (`6` → ▢▢▢▢▢▢). An ARRAY renders groups separated by
|
|
15
|
+
* a dash (`[3, 3]` → ▢▢▢ – ▢▢▢) and the total length is the SUM, so a `length`/`groups`
|
|
16
|
+
* disagreement is unspellable and there is no dev-warn policing a state the type invented.
|
|
17
|
+
*
|
|
18
|
+
* REQUIRED, with no default: a code's length is dictated by whatever service issues it, never by
|
|
19
|
+
* a house opinion.
|
|
20
|
+
*/
|
|
21
|
+
length: number | readonly number[];
|
|
22
|
+
/** Box size + inter-box gap + text size. @default "md" */
|
|
23
|
+
size?: VerificationCodeInputSize;
|
|
24
|
+
/** Controlled value — the whole code as one string, shorter than the total while incomplete. */
|
|
25
|
+
value?: string;
|
|
26
|
+
/** Uncontrolled initial value (same shape as {@link VerificationCodeInputProps.value}). */
|
|
27
|
+
defaultValue?: string;
|
|
28
|
+
/** Fires with the WHOLE code on every edit, never a single character. */
|
|
29
|
+
onValueChange?: (value: string) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Fires the moment the last slot fills — including on a paste that completes the code.
|
|
32
|
+
*
|
|
33
|
+
* Prefer this over the group's `onBlur` for validation: blur bubbles, so `onBlur` also fires on
|
|
34
|
+
* every move between slots and would validate mid-entry.
|
|
35
|
+
*/
|
|
36
|
+
onComplete?: (value: string) => void;
|
|
37
|
+
/** What each slot accepts. @default "numeric" */
|
|
38
|
+
validationType?: VerificationCodeValidationType;
|
|
39
|
+
/**
|
|
40
|
+
* Hide the entered characters, for PIN entry — `"star"` (✳) or `"dot"` (●), `false` to show them.
|
|
41
|
+
*
|
|
42
|
+
* Either mode renders the slots as `type="password"`, so the real characters stay unreadable and
|
|
43
|
+
* uncopyable; the browser's own bullets are then hidden and WE draw the glyph, because a browser
|
|
44
|
+
* offers no way to choose it (and draws a different one per platform).
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
mask?: false | VerificationCodeMask;
|
|
49
|
+
/** Submit the owning `<form>` the instant the code completes. @default false */
|
|
50
|
+
autoSubmit?: boolean;
|
|
51
|
+
/** Show the value but refuse edits. @default false */
|
|
52
|
+
readOnly?: boolean;
|
|
53
|
+
/** Visible label (`Field.Label`), which names the slot group. */
|
|
54
|
+
label?: string;
|
|
55
|
+
/** Help-circle tooltip after the label (title line). @see tooltipDescription */
|
|
56
|
+
tooltip?: string;
|
|
57
|
+
/** Optional secondary line under {@link tooltip} in the tooltip surface. */
|
|
58
|
+
tooltipDescription?: string;
|
|
59
|
+
/** Helper text under the field (`Field.Description`). Hidden while an `error` shows. */
|
|
60
|
+
hint?: React.ReactNode;
|
|
61
|
+
/** Marks the field required for form submission. @default false */
|
|
62
|
+
required?: boolean;
|
|
63
|
+
/** Suppress the visual required `*` while keeping `required` semantics. @default false */
|
|
64
|
+
hideRequiredIndicator?: boolean;
|
|
65
|
+
/** Error state: red edge + error focus ring and `aria-invalid` on every slot. @default false */
|
|
66
|
+
invalid?: boolean;
|
|
67
|
+
/** Optional error message (`Field.Error`). A non-empty `error` also implies `invalid`. */
|
|
68
|
+
error?: string;
|
|
69
|
+
/** Disables every slot. @default false */
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
/** Whether the field column takes `w-full`. Only OBSERVABLE where the parent would otherwise let
|
|
72
|
+
* the column shrink-to-fit (a flex row / grid cell) — in a plain block container it fills either
|
|
73
|
+
* way. Bound the field with a width in `className` (`w-64`, `max-w-56`). @default true */
|
|
74
|
+
fullWidth?: boolean;
|
|
75
|
+
/** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()`. */
|
|
76
|
+
className?: string;
|
|
77
|
+
/** Name of the hidden submission input `OTPField.Root` renders (form integration). */
|
|
78
|
+
name?: string;
|
|
79
|
+
/** Id of the first slot; the rest derive theirs from it (`{id}-2`, `{id}-3`, …). */
|
|
80
|
+
id?: string;
|
|
81
|
+
}
|
|
82
|
+
declare function VerificationCodeInput(props: VerificationCodeInputProps): React.JSX.Element;
|
|
83
|
+
|
|
84
|
+
export { VerificationCodeInput, type VerificationCodeInputProps, type VerificationCodeInputSize, type VerificationCodeMask, type VerificationCodeValidationType };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";export { VerificationCodeInput } from './chunk-5ZEUTSCV.js';
|
|
2
|
+
import './chunk-X2VMIBK5.js';
|
|
3
|
+
import './chunk-5KSD4WKN.js';
|
|
4
|
+
import './chunk-7ZM7SNCZ.js';
|
|
5
|
+
import './chunk-52IFGFTL.js';
|
|
6
|
+
import './chunk-KZP6B6B3.js';
|
|
7
|
+
import './chunk-AFYXSZGW.js';
|
|
8
|
+
import './chunk-O4GRKO3I.js';
|
|
9
|
+
import './chunk-BLIZ3CL3.js';
|
|
10
|
+
import './chunk-ZSNJ6UA3.js';
|
|
11
|
+
import './chunk-RJTVCA62.js';
|
|
12
|
+
import './chunk-QDYE5LVT.js';
|
|
13
|
+
//# sourceMappingURL=verification-code-input.js.map
|
|
14
|
+
//# sourceMappingURL=verification-code-input.js.map
|
package/package.json
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jenosize-ui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Opinionated React component library — styled-on-headless on Base UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Jenosize",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "git+ssh://git@gitlab.jenosize.io/package/jenosize-ui.git"
|
|
11
|
-
},
|
|
12
|
-
"homepage": "https://www.jenosize.com",
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://gitlab.jenosize.io/package/jenosize-ui/-/issues"
|
|
15
|
-
},
|
|
16
8
|
"publishConfig": {
|
|
17
9
|
"access": "public"
|
|
18
10
|
},
|
|
@@ -56,6 +48,14 @@
|
|
|
56
48
|
"types": "./dist/theme-script.d.ts",
|
|
57
49
|
"import": "./dist/theme-script.js"
|
|
58
50
|
},
|
|
51
|
+
"./provider": {
|
|
52
|
+
"types": "./dist/provider.d.ts",
|
|
53
|
+
"import": "./dist/provider.js"
|
|
54
|
+
},
|
|
55
|
+
"./helper": {
|
|
56
|
+
"types": "./dist/helper.d.ts",
|
|
57
|
+
"import": "./dist/helper.js"
|
|
58
|
+
},
|
|
59
59
|
"./button": {
|
|
60
60
|
"types": "./dist/button.d.ts",
|
|
61
61
|
"import": "./dist/button.js"
|
|
@@ -96,6 +96,10 @@
|
|
|
96
96
|
"types": "./dist/file-trigger.d.ts",
|
|
97
97
|
"import": "./dist/file-trigger.js"
|
|
98
98
|
},
|
|
99
|
+
"./dropzone": {
|
|
100
|
+
"types": "./dist/dropzone.d.ts",
|
|
101
|
+
"import": "./dist/dropzone.js"
|
|
102
|
+
},
|
|
99
103
|
"./payment-input": {
|
|
100
104
|
"types": "./dist/payment-input.d.ts",
|
|
101
105
|
"import": "./dist/payment-input.js"
|
|
@@ -108,6 +112,10 @@
|
|
|
108
112
|
"types": "./dist/tag-input.d.ts",
|
|
109
113
|
"import": "./dist/tag-input.js"
|
|
110
114
|
},
|
|
115
|
+
"./verification-code-input": {
|
|
116
|
+
"types": "./dist/verification-code-input.d.ts",
|
|
117
|
+
"import": "./dist/verification-code-input.js"
|
|
118
|
+
},
|
|
111
119
|
"./breadcrumb": {
|
|
112
120
|
"types": "./dist/breadcrumb.d.ts",
|
|
113
121
|
"import": "./dist/breadcrumb.js"
|
|
@@ -164,6 +172,10 @@
|
|
|
164
172
|
"types": "./dist/progress.d.ts",
|
|
165
173
|
"import": "./dist/progress.js"
|
|
166
174
|
},
|
|
175
|
+
"./progress-steps": {
|
|
176
|
+
"types": "./dist/progress-steps.d.ts",
|
|
177
|
+
"import": "./dist/progress-steps.js"
|
|
178
|
+
},
|
|
167
179
|
"./toast": {
|
|
168
180
|
"types": "./dist/toast.d.ts",
|
|
169
181
|
"import": "./dist/toast.js"
|
|
@@ -176,6 +188,10 @@
|
|
|
176
188
|
"types": "./dist/tree.d.ts",
|
|
177
189
|
"import": "./dist/tree.js"
|
|
178
190
|
},
|
|
191
|
+
"./kanban-board": {
|
|
192
|
+
"types": "./dist/kanban-board.d.ts",
|
|
193
|
+
"import": "./dist/kanban-board.js"
|
|
194
|
+
},
|
|
179
195
|
"./calendar": {
|
|
180
196
|
"types": "./dist/calendar.d.ts",
|
|
181
197
|
"import": "./dist/calendar.js"
|
|
@@ -200,6 +216,42 @@
|
|
|
200
216
|
"types": "./dist/card.d.ts",
|
|
201
217
|
"import": "./dist/card.js"
|
|
202
218
|
},
|
|
219
|
+
"./skeleton": {
|
|
220
|
+
"types": "./dist/skeleton.d.ts",
|
|
221
|
+
"import": "./dist/skeleton.js"
|
|
222
|
+
},
|
|
223
|
+
"./scroll-area": {
|
|
224
|
+
"types": "./dist/scroll-area.d.ts",
|
|
225
|
+
"import": "./dist/scroll-area.js"
|
|
226
|
+
},
|
|
227
|
+
"./separator": {
|
|
228
|
+
"types": "./dist/separator.d.ts",
|
|
229
|
+
"import": "./dist/separator.js"
|
|
230
|
+
},
|
|
231
|
+
"./area-chart": {
|
|
232
|
+
"types": "./dist/area-chart.d.ts",
|
|
233
|
+
"import": "./dist/area-chart.js"
|
|
234
|
+
},
|
|
235
|
+
"./bar-chart": {
|
|
236
|
+
"types": "./dist/bar-chart.d.ts",
|
|
237
|
+
"import": "./dist/bar-chart.js"
|
|
238
|
+
},
|
|
239
|
+
"./line-chart": {
|
|
240
|
+
"types": "./dist/line-chart.d.ts",
|
|
241
|
+
"import": "./dist/line-chart.js"
|
|
242
|
+
},
|
|
243
|
+
"./pie-chart": {
|
|
244
|
+
"types": "./dist/pie-chart.d.ts",
|
|
245
|
+
"import": "./dist/pie-chart.js"
|
|
246
|
+
},
|
|
247
|
+
"./radar-chart": {
|
|
248
|
+
"types": "./dist/radar-chart.d.ts",
|
|
249
|
+
"import": "./dist/radar-chart.js"
|
|
250
|
+
},
|
|
251
|
+
"./radial-chart": {
|
|
252
|
+
"types": "./dist/radial-chart.d.ts",
|
|
253
|
+
"import": "./dist/radial-chart.js"
|
|
254
|
+
},
|
|
203
255
|
"./icons": {
|
|
204
256
|
"types": "./dist/icons.d.ts",
|
|
205
257
|
"import": "./dist/icons.js"
|
|
@@ -226,6 +278,7 @@
|
|
|
226
278
|
"scripts": {
|
|
227
279
|
"build": "node scripts/clean-dist.mjs && tsup && pnpm build:css",
|
|
228
280
|
"build:css": "tailwindcss -i src/styles/styles.css -o dist/styles.css --minify",
|
|
281
|
+
"build:play": "vite build --base ./ --outDir ../dist-play --emptyOutDir",
|
|
229
282
|
"typecheck": "tsc --noEmit",
|
|
230
283
|
"dev": "vite",
|
|
231
284
|
"preview": "vite preview",
|
|
@@ -259,6 +312,8 @@
|
|
|
259
312
|
"docs:check": "node scripts/check-docs-props.mjs --check",
|
|
260
313
|
"docs:index": "node scripts/check-docs-index.mjs",
|
|
261
314
|
"index:check": "node scripts/check-docs-index.mjs --check",
|
|
315
|
+
"changed:audit": "node scripts/check-changed-tags.mjs",
|
|
316
|
+
"changed:check": "node scripts/check-changed-tags.mjs --check",
|
|
262
317
|
"play:audit": "node scripts/check-playground-code.mjs",
|
|
263
318
|
"play:check": "node scripts/check-playground-code.mjs --check",
|
|
264
319
|
"snippet:audit": "node scripts/check-playground-snippets.mjs",
|
|
@@ -271,6 +326,10 @@
|
|
|
271
326
|
"slots:check": "node scripts/check-slots.mjs --check",
|
|
272
327
|
"seamless:audit": "node scripts/check-seamless.mjs",
|
|
273
328
|
"seamless:check": "node scripts/check-seamless.mjs --check",
|
|
329
|
+
"i18n:audit": "node scripts/check-i18n.mjs",
|
|
330
|
+
"i18n:check": "node scripts/check-i18n.mjs --check",
|
|
331
|
+
"rule:audit": "node scripts/check-rules.mjs",
|
|
332
|
+
"rule:check": "node scripts/check-rules.mjs --check",
|
|
274
333
|
"props:audit": "node scripts/check-prop-types.mjs",
|
|
275
334
|
"props:check": "node scripts/check-prop-types.mjs --check",
|
|
276
335
|
"state:audit": "node scripts/check-state-owner.mjs",
|
|
@@ -301,6 +360,7 @@
|
|
|
301
360
|
"lucide-react": "^1.29.0",
|
|
302
361
|
"react-day-picker": "^10.0.1",
|
|
303
362
|
"react-hook-form": "^7.80.0",
|
|
363
|
+
"recharts": "^3.10.1",
|
|
304
364
|
"tailwind-merge": "^3.0.0"
|
|
305
365
|
},
|
|
306
366
|
"peerDependencies": {
|
|
@@ -325,6 +385,7 @@
|
|
|
325
385
|
"@vitejs/plugin-react": "^4.3.0",
|
|
326
386
|
"@vitest/coverage-v8": "^4.1.10",
|
|
327
387
|
"axe-core": "^4.12.1",
|
|
388
|
+
"esbuild": "^0.25.12",
|
|
328
389
|
"eslint": "^10.6.0",
|
|
329
390
|
"eslint-config-prettier": "^10.1.8",
|
|
330
391
|
"eslint-import-resolver-typescript": "^4.4.5",
|
package/dist/card-nWicloNi.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The **in-flow card surface** — one recipe for every bordered/rounded panel that sits in the
|
|
5
|
-
* document flow, so the library stops shipping three spellings of the same box.
|
|
6
|
-
*
|
|
7
|
-
* Before this table there were three, and they disagreed on the edge technique alone:
|
|
8
|
-
* `table/shared.ts` used `ring-1 ring-secondary` + `shadow-xs`, `field/option-row.tsx` used
|
|
9
|
-
* `border border-secondary` + no shadow, and the playground had ~88 distinct strings approximating
|
|
10
|
-
* both. Each `SURFACE_VARIANT` member below reproduces one of those, so the axis is derived from
|
|
11
|
-
* what already shipped rather than invented.
|
|
12
|
-
*
|
|
13
|
-
* **Ring, never border.** `lib/color.ts`'s `OUTLINE` table already commits to `ring-1 ring-inset`
|
|
14
|
-
* for exactly this reason: a `border` adds to the box, so a bordered card renders 2px larger than a
|
|
15
|
-
* ringed sibling in the same row — the defect that got `Badge`'s `modern` variant deleted. Measured
|
|
16
|
-
* on the `bordered` option row: the old `border` recipe boxed 200×50, the inset-ring one 200×48.
|
|
17
|
-
* An inset ring paints *inside* the border-box, so a surface never changes size when its edge
|
|
18
|
-
* changes weight — and a heavier selected edge cannot bleed onto whatever sits next to it.
|
|
19
|
-
*
|
|
20
|
-
* **Not the overlay family.** Dialog / Drawer / Toast / the four listbox popups are a separate,
|
|
21
|
-
* already-consistent recipe — `ring-1 ring-secondary_alt ring-inset` + `shadow-lg`/`xl`, where the
|
|
22
|
-
* alpha `border-alt` hairline reads correctly over whatever the popup floats above. Floating
|
|
23
|
-
* elevation is a different concern from an in-flow card; do not merge them into this table.
|
|
24
|
-
*
|
|
25
|
-
* This module lives in `src/lib/` (not `src/components/`) so it is invisible to the dependency-graph
|
|
26
|
-
* gate — `field/` is FOUNDATION and may import only foundation, so it could not reach a
|
|
27
|
-
* `components/card/` module at all. Same reason `cn`, `slot` and `seamless` live here.
|
|
28
|
-
*/
|
|
29
|
-
/** Which edge + fill the surface wears. */
|
|
30
|
-
type SurfaceVariant = "elevated" | "outlined" | "subtle";
|
|
31
|
-
/** The inner gutter. `none` means the caller owns all spacing (full-bleed content, e.g. a table). */
|
|
32
|
-
type SurfacePadding = "none" | "sm" | "md" | "lg";
|
|
33
|
-
declare const SURFACE_VARIANTS: readonly SurfaceVariant[];
|
|
34
|
-
declare const SURFACE_PADDINGS: readonly SurfacePadding[];
|
|
35
|
-
|
|
36
|
-
type CardVariant = SurfaceVariant;
|
|
37
|
-
type CardPadding = SurfacePadding;
|
|
38
|
-
/** `title` is a `ReactNode` here, which collides with the DOM's `title?: string` tooltip attribute. */
|
|
39
|
-
interface CardProps extends Omit<React.ComponentPropsWithoutRef<"div">, "title"> {
|
|
40
|
-
/**
|
|
41
|
-
* Edge + fill. Every member differs from its neighbours by FILL — `elevated` is a raised surface
|
|
42
|
-
* (+ `shadow-sm` in light, where a shadow can be seen) · `outlined` sits flush with the page,
|
|
43
|
-
* for a card nested in an already-elevated surface or repeated in a dense list · `subtle` is a
|
|
44
|
-
* sunken well that reads as background rather than as an object. @default "elevated"
|
|
45
|
-
*/
|
|
46
|
-
variant?: CardVariant;
|
|
47
|
-
/**
|
|
48
|
-
* Inner gutter. `none` hands ALL spacing to the caller — use it for full-bleed content that must
|
|
49
|
-
* reach the radius (a table, a media header). @default "md"
|
|
50
|
-
*/
|
|
51
|
-
padding?: CardPadding;
|
|
52
|
-
/**
|
|
53
|
-
* Draw a full-bleed hairline between the header and the body, and the body and the footer.
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
dividers?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* The card's headline. A `ReactNode`, so pass a heading element (`<h3>`) when the card should sit
|
|
59
|
-
* in the document outline — the wrapper is a `<div>` precisely so that stays valid HTML.
|
|
60
|
-
*/
|
|
61
|
-
title?: React.ReactNode;
|
|
62
|
-
/** One supporting line under the title. */
|
|
63
|
-
description?: React.ReactNode;
|
|
64
|
-
/** Leading header node — an `<Avatar>`, an icon. The node keeps its own a11y semantics. */
|
|
65
|
-
leading?: React.ReactNode;
|
|
66
|
-
/** Trailing header node — a `<Badge>`, a `<DropdownMenu>` trigger, an action `<Button>`. */
|
|
67
|
-
trailing?: React.ReactNode;
|
|
68
|
-
/** Footer row, below the body. */
|
|
69
|
-
footer?: React.ReactNode;
|
|
70
|
-
/** **Layout/spacing only** (width, margin, grid/flex), merged via `cn()`. Never restyles the surface. */
|
|
71
|
-
className?: string;
|
|
72
|
-
/** The body. */
|
|
73
|
-
children?: React.ReactNode;
|
|
74
|
-
}
|
|
75
|
-
declare function Card({ variant, padding, dividers, title, description, leading, trailing, footer, className, children, ...rest }: CardProps): React.JSX.Element;
|
|
76
|
-
declare namespace Card {
|
|
77
|
-
var displayName: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export { Card as C, SURFACE_PADDINGS as S, type CardPadding as a, type CardProps as b, type CardVariant as c, SURFACE_VARIANTS as d, type SurfacePadding as e, type SurfaceVariant as f };
|
package/dist/chunk-24TO7E32.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ArrowDown, ArrowRight, Bell, Calendar, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, CircleAlert, CircleCheck, CircleHelp, CircleX, Columns3, EllipsisVertical, Eye, EyeOff, GripVertical, Inbox, Info, LoaderCircle, Menu, Minus, Moon, PanelLeft, Plus, Search, Slash, Sun, TriangleAlert, User, X } from 'lucide-react';
|
|
2
|
-
|
|
3
|
-
// src/components/icons/core/index.ts
|
|
4
|
-
var ArrowDownIcon = ArrowDown;
|
|
5
|
-
var ArrowRightIcon = ArrowRight;
|
|
6
|
-
var BellIcon = Bell;
|
|
7
|
-
var CalendarIcon = Calendar;
|
|
8
|
-
var CheckIcon = Check;
|
|
9
|
-
var ChevronDownIcon = ChevronDown;
|
|
10
|
-
var ChevronLeftIcon = ChevronLeft;
|
|
11
|
-
var ChevronRightIcon = ChevronRight;
|
|
12
|
-
var ChevronsLeftIcon = ChevronsLeft;
|
|
13
|
-
var ChevronsRightIcon = ChevronsRight;
|
|
14
|
-
var ChevronsUpDownIcon = ChevronsUpDown;
|
|
15
|
-
var ChevronUpIcon = ChevronUp;
|
|
16
|
-
var CircleAlertIcon = CircleAlert;
|
|
17
|
-
var CircleCheckIcon = CircleCheck;
|
|
18
|
-
var CircleHelpIcon = CircleHelp;
|
|
19
|
-
var CircleXIcon = CircleX;
|
|
20
|
-
var Columns3Icon = Columns3;
|
|
21
|
-
var EllipsisVerticalIcon = EllipsisVertical;
|
|
22
|
-
var EyeIcon = Eye;
|
|
23
|
-
var EyeOffIcon = EyeOff;
|
|
24
|
-
var GripVerticalIcon = GripVertical;
|
|
25
|
-
var InboxIcon = Inbox;
|
|
26
|
-
var InfoIcon = Info;
|
|
27
|
-
var LoaderCircleIcon = LoaderCircle;
|
|
28
|
-
var MenuIcon = Menu;
|
|
29
|
-
var MinusIcon = Minus;
|
|
30
|
-
var MoonIcon = Moon;
|
|
31
|
-
var PanelLeftIcon = PanelLeft;
|
|
32
|
-
var PlusIcon = Plus;
|
|
33
|
-
var SearchIcon = Search;
|
|
34
|
-
var SlashIcon = Slash;
|
|
35
|
-
var SunIcon = Sun;
|
|
36
|
-
var TriangleAlertIcon = TriangleAlert;
|
|
37
|
-
var UserIcon = User;
|
|
38
|
-
var XIcon = X;
|
|
39
|
-
|
|
40
|
-
export { ArrowDownIcon, ArrowRightIcon, BellIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleHelpIcon, CircleXIcon, Columns3Icon, EllipsisVerticalIcon, EyeIcon, EyeOffIcon, GripVerticalIcon, InboxIcon, InfoIcon, LoaderCircleIcon, MenuIcon, MinusIcon, MoonIcon, PanelLeftIcon, PlusIcon, SearchIcon, SlashIcon, SunIcon, TriangleAlertIcon, UserIcon, XIcon };
|
|
41
|
-
//# sourceMappingURL=chunk-24TO7E32.js.map
|
|
42
|
-
//# sourceMappingURL=chunk-24TO7E32.js.map
|
package/dist/chunk-FXIBGTS5.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
function SkeletonBar({ className }) {
|
|
5
|
-
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: cn("animate-pulse rounded-lg bg-tertiary", className) });
|
|
6
|
-
}
|
|
7
|
-
var SKELETON_WIDTHS = ["w-3/5", "w-4/5", "w-2/3", "w-11/12", "w-1/2", "w-3/4"];
|
|
8
|
-
function skeletonWidth(index) {
|
|
9
|
-
return SKELETON_WIDTHS[index % SKELETON_WIDTHS.length];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { SKELETON_WIDTHS, SkeletonBar, skeletonWidth };
|
|
13
|
-
//# sourceMappingURL=chunk-FXIBGTS5.js.map
|
|
14
|
-
//# sourceMappingURL=chunk-FXIBGTS5.js.map
|
package/dist/chunk-MFJP5FA7.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// src/lib/surface.ts
|
|
2
|
-
var SURFACE_VARIANTS = ["elevated", "outlined", "subtle"];
|
|
3
|
-
var SURFACE_PADDINGS = ["none", "sm", "md", "lg"];
|
|
4
|
-
var SURFACE_BASE = "rounded-xl";
|
|
5
|
-
var SURFACE_VARIANT = {
|
|
6
|
-
elevated: "bg-primary_alt shadow-sm ring-1 ring-secondary ring-inset",
|
|
7
|
-
outlined: "bg-primary ring-1 ring-secondary ring-inset",
|
|
8
|
-
subtle: "bg-sunken ring-1 ring-secondary ring-inset"
|
|
9
|
-
};
|
|
10
|
-
var SURFACE_EDGE_OVERLAY = "relative isolate after:pointer-events-none after:absolute after:inset-0 after:z-4 after:rounded-[inherit] after:ring-1 after:ring-secondary after:ring-inset";
|
|
11
|
-
var SURFACE_PADDING = {
|
|
12
|
-
none: "",
|
|
13
|
-
sm: "p-3",
|
|
14
|
-
md: "p-4",
|
|
15
|
-
lg: "p-6"
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { SURFACE_BASE, SURFACE_EDGE_OVERLAY, SURFACE_PADDING, SURFACE_PADDINGS, SURFACE_VARIANT, SURFACE_VARIANTS };
|
|
19
|
-
//# sourceMappingURL=chunk-MFJP5FA7.js.map
|
|
20
|
-
//# sourceMappingURL=chunk-MFJP5FA7.js.map
|
package/dist/chunk-ZZT2E5VT.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useScrollFade } from './chunk-O2LG3PNI.js';
|
|
2
|
-
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function PopupScrollViewport({ axis = "vertical", max, className, children }) {
|
|
7
|
-
const ref = React.useRef(null);
|
|
8
|
-
const { maskImage } = useScrollFade(ref, { axis });
|
|
9
|
-
const overflow = axis === "vertical" ? "overflow-y-auto" : "overflow-x-auto";
|
|
10
|
-
const capKey = axis === "vertical" ? "maxHeight" : "maxWidth";
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
ref,
|
|
15
|
-
className: cn(overflow, "overscroll-contain outline-none", className),
|
|
16
|
-
style: { [capKey]: max, ...maskImage && { maskImage, WebkitMaskImage: maskImage } },
|
|
17
|
-
children
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { PopupScrollViewport };
|
|
23
|
-
//# sourceMappingURL=chunk-ZZT2E5VT.js.map
|
|
24
|
-
//# sourceMappingURL=chunk-ZZT2E5VT.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type DialogSize = "sm" | "md" | "lg";
|
|
4
|
-
/** A footer is a plain node, or a render-fn given a `close()` helper — the latter
|
|
5
|
-
* lets footer buttons dismiss the dialog in BOTH controlled and uncontrolled
|
|
6
|
-
* (`trigger`) modes without a `Dialog.Close` part. */
|
|
7
|
-
type DialogFooter = React.ReactNode | ((close: () => void) => React.ReactNode);
|
|
8
|
-
|
|
9
|
-
export type { DialogFooter as D, DialogSize as a };
|