jenosize-ui 0.2.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 +2 -2
- 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 +3 -2
- package/dist/area-chart.js +6 -5
- package/dist/avatar.d.ts +5 -0
- package/dist/avatar.js +9 -8
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +5 -4
- package/dist/bar-chart.d.ts +3 -2
- package/dist/bar-chart.js +6 -5
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +4 -2
- package/dist/button.d.ts +6 -1
- package/dist/button.js +9 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +15 -13
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +11 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -51
- package/dist/card.js +5 -5
- package/dist/checkbox.js +8 -7
- package/dist/{chunk-75M43ELV.js → chunk-22M75A3N.js} +75 -45
- package/dist/{chunk-A46ED5JQ.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-RNXRZGXN.js → chunk-3H444OJA.js} +5 -3
- package/dist/{chunk-DJYWPJZ3.js → chunk-3QXLIZIX.js} +3 -12
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-ILICYNK7.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/{chunk-FIGBJGH2.js → chunk-4VGEJG4M.js} +115 -79
- package/dist/{chunk-EX374YWB.js → chunk-54SIZR63.js} +15 -7
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/{chunk-NA35YZRD.js → chunk-5DP7W5HX.js} +13 -11
- package/dist/{chunk-QKDEQFOQ.js → chunk-5KSD4WKN.js} +13 -4
- package/dist/{chunk-RIXEUAPY.js → chunk-5XPMY2LF.js} +5 -5
- package/dist/{chunk-6UBYHSBX.js → chunk-5ZEUTSCV.js} +5 -5
- package/dist/{chunk-DCGTB7P7.js → chunk-667ZHY3T.js} +111 -39
- package/dist/{chunk-MYQ3FD4Y.js → chunk-6B6BWTXC.js} +8 -5
- package/dist/{chunk-6HJA7NPL.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-JAVNGTOE.js → chunk-6MMBQVRO.js} +58 -43
- package/dist/{chunk-JMWYCT63.js → chunk-7GUPNTAH.js} +14 -6
- package/dist/{chunk-TBN644IN.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-BD5YKFRA.js → chunk-A323V6AI.js} +5 -3
- package/dist/{chunk-AC6ZWKRN.js → chunk-AFYXSZGW.js} +2 -2
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-54S5CUY6.js → chunk-AIGYMTCU.js} +5 -4
- package/dist/{chunk-C6OTOTKI.js → chunk-AZ7DKRBY.js} +5 -5
- package/dist/{chunk-QBHQOX23.js → chunk-BBKE4W3B.js} +18 -10
- package/dist/{chunk-4BRMM3I5.js → chunk-BFVJHH7S.js} +7 -6
- package/dist/{chunk-FFTRB2UU.js → chunk-CFFWYXDW.js} +18 -6
- package/dist/{chunk-42FCPC77.js → chunk-CGHYXWTT.js} +10 -4
- package/dist/{chunk-VEOYCAJP.js → chunk-CKMWBVRR.js} +27 -7
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-NMERLWT7.js → chunk-E2YZ7IMT.js} +23 -7
- package/dist/{chunk-GAFGIT4Q.js → chunk-FFMTYQXE.js} +30 -10
- package/dist/{chunk-L53Y7KUV.js → chunk-FH7Z7SGQ.js} +61 -28
- package/dist/{chunk-5JRM3OES.js → chunk-FNQJJO63.js} +3 -3
- package/dist/{chunk-MD4AR43X.js → chunk-FWRHBMWT.js} +3 -3
- package/dist/{chunk-4K6V6NNK.js → chunk-GLKFFA7N.js} +10 -8
- package/dist/{chunk-EDOUI2BG.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-BNIWT6CW.js → chunk-GZMDZF2V.js} +7 -6
- package/dist/{chunk-HSVBTIP2.js → chunk-HHYEAFCL.js} +70 -27
- package/dist/{chunk-P7DH62UY.js → chunk-I6WMNXC7.js} +5 -5
- package/dist/{chunk-34J5AANZ.js → chunk-IQNVSQRK.js} +3 -3
- package/dist/{chunk-MCUASLZH.js → chunk-KHGW72BM.js} +3 -3
- package/dist/{chunk-4R7WDDCW.js → chunk-KZP6B6B3.js} +4 -4
- package/dist/{chunk-7HV6EIGZ.js → chunk-LLPWQDF7.js} +3 -3
- package/dist/{chunk-FZBZGA3P.js → chunk-LO22VQL5.js} +4 -4
- package/dist/{chunk-JXHZHUB3.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-EDT5J5WK.js → chunk-LYXPJERB.js} +14 -4
- package/dist/{chunk-6IUTVDNI.js → chunk-MCQG4H6T.js} +35 -3
- package/dist/{chunk-JYBGO6GY.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-PXEJ5RKO.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/{chunk-VWGAMOSE.js → chunk-NKG4N6HA.js} +3 -3
- package/dist/{chunk-A5WQLN4B.js → chunk-OACWA4TC.js} +14 -52
- package/dist/{chunk-LBYCCLVI.js → chunk-OLLD2BZN.js} +9 -9
- package/dist/{chunk-T2WAD4QP.js → chunk-POQTE7JI.js} +55 -16
- package/dist/{chunk-74HPBSVY.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-VH35QHD4.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-DTMYD63D.js → chunk-S5TEWPWW.js} +46 -26
- package/dist/{chunk-3GT43XPK.js → chunk-SB3DG572.js} +15 -8
- package/dist/{chunk-NKDW6C7K.js → chunk-SKRR3ZMP.js} +3 -3
- package/dist/{chunk-CTENRS34.js → chunk-T4ZFZTY6.js} +8 -6
- package/dist/{chunk-YLEHYDXC.js → chunk-T5574MXM.js} +33 -45
- package/dist/{chunk-USL3TDZM.js → chunk-U4WSJAYK.js} +321 -105
- package/dist/{chunk-4W6AYGLR.js → chunk-UGKELBNC.js} +55 -39
- package/dist/{chunk-M5TVCASC.js → chunk-ULGCGKOE.js} +8 -6
- package/dist/{chunk-JUWDRRD6.js → chunk-X2VMIBK5.js} +4 -4
- package/dist/{chunk-763VS2FY.js → chunk-YHBI52P2.js} +3 -3
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Z3SDKIA.js → chunk-YQYVGWIC.js} +5 -5
- package/dist/{chunk-4HKDD3PR.js → chunk-ZHAT2XZ4.js} +91 -57
- package/dist/{chunk-CWMFEF6R.js → chunk-ZMFY7WAY.js} +60 -24
- package/dist/{chunk-WKWAUU64.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +12 -11
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +11 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +23 -21
- package/dist/dialog.d.ts +21 -1
- package/dist/dialog.js +10 -8
- package/dist/drawer.d.ts +11 -1
- package/dist/drawer.js +9 -7
- package/dist/dropdown-menu.d.ts +12 -0
- package/dist/dropdown-menu.js +6 -5
- package/dist/dropzone.d.ts +3 -2
- package/dist/dropzone.js +13 -12
- package/dist/form.d.ts +5 -4
- package/dist/form.js +60 -44
- package/dist/header-navigation.d.ts +5 -1
- package/dist/header-navigation.js +21 -19
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +81 -76
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +9 -8
- package/dist/kanban-board.d.ts +21 -81
- package/dist/kanban-board.js +14 -12
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +3 -2
- package/dist/line-chart.js +6 -5
- package/dist/{nav-DcCyt00p.d.ts → nav-CKKqjBs6.d.ts} +10 -0
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +9 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +11 -10
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +9 -8
- package/dist/pie-chart.d.ts +7 -3
- package/dist/pie-chart.js +6 -5
- package/dist/popover.js +9 -7
- package/dist/progress-steps.js +2 -2
- 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 +7 -3
- package/dist/radar-chart.js +6 -5
- package/dist/radial-chart.d.ts +7 -3
- package/dist/radial-chart.js +6 -5
- package/dist/radio.js +8 -7
- package/dist/select.d.ts +2 -1
- package/dist/select.js +14 -13
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +28 -7
- package/dist/sidebar-navigation.js +15 -13
- package/dist/skeleton.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +56 -6
- package/dist/table.js +36 -34
- 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 +12 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +3 -2
- package/dist/textarea.js +6 -5
- package/dist/theme.css +69 -6
- package/dist/theme.js +10 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +11 -9
- package/dist/{tooltip-surface-Dmvb8v5K.d.ts → tooltip-surface-C2I9o2QM.d.ts} +1 -1
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.js +3 -3
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +5 -4
- package/dist/{types-6kvYwtRH.d.ts → types-DR9rAEy1.d.ts} +45 -13
- package/dist/{use-uploads-ButS4dGe.d.ts → use-uploads-KaPqDklo.d.ts} +9 -0
- package/dist/verification-code-input.js +8 -7
- package/package.json +12 -1
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/shared-BNXAdgh2.d.ts +0 -9
- package/dist/surface-DFyDnrTJ.d.ts +0 -34
package/dist/tree.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { n as TreeLabels } from './labels-DPrh0se9.js';
|
|
3
4
|
|
|
4
5
|
/** What a slot function is told about the row it is rendering into. */
|
|
5
6
|
interface TreeNodeState {
|
|
@@ -287,6 +288,10 @@ interface TreeProps<Id extends string = string> extends Omit<React.ComponentProp
|
|
|
287
288
|
guide?: TreeGuide;
|
|
288
289
|
/** Shown when the tree has no visible nodes, and inside an expanded empty branch. */
|
|
289
290
|
emptyMessage?: React.ReactNode;
|
|
291
|
+
/** Override the component's own copy — what `emptyMessage` defaults to, the no-matches sentence,
|
|
292
|
+
* a failed branch's error + retry, and what the reorder live region announces. Merges under
|
|
293
|
+
* `<JenosizeUIProvider labels={{ tree }}>`; see `docs/i18n-policy.md`. */
|
|
294
|
+
labels?: TreeLabels;
|
|
290
295
|
render?: useRender.RenderProp<React.ComponentProps<"ul">>;
|
|
291
296
|
/** Layout/spacing for the `<ul>` only, merged via `cn()`. Cannot restyle rows. */
|
|
292
297
|
className?: string;
|
package/dist/tree.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
"use client";export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './chunk-
|
|
1
|
+
"use client";export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './chunk-POQTE7JI.js';
|
|
2
2
|
import './chunk-5ZPUAGOP.js';
|
|
3
3
|
import './chunk-P6CON2R2.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-LLPWQDF7.js';
|
|
5
5
|
import './chunk-F6NLE6XJ.js';
|
|
6
|
-
import './chunk-52IFGFTL.js';
|
|
7
6
|
import './chunk-EDSK6FEH.js';
|
|
7
|
+
import './chunk-52IFGFTL.js';
|
|
8
8
|
import './chunk-BLIZ3CL3.js';
|
|
9
|
-
import './chunk-QDYE5LVT.js';
|
|
10
9
|
import './chunk-ZSNJ6UA3.js';
|
|
10
|
+
import './chunk-RJTVCA62.js';
|
|
11
|
+
import './chunk-QDYE5LVT.js';
|
|
11
12
|
//# sourceMappingURL=tree.js.map
|
|
12
13
|
//# sourceMappingURL=tree.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ChartLabels } from './labels-DPrh0se9.js';
|
|
2
|
+
import { T as TooltipTone } from './tooltip-surface-C2I9o2QM.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* The public type surface for the chart family. No JSX, no recharts — `primitives.ts` alone names
|
|
@@ -9,22 +10,50 @@ import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
|
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
|
-
* A
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* A mark's colour — **any CSS colour value**.
|
|
14
|
+
*
|
|
15
|
+
* ```tsx
|
|
16
|
+
* "#e11d48" · "oklch(62% .21 25)" · "var(--color-utility-blue-600)" · token("utility-blue-600")
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* This used to be a closed union over the six hues `theme.css` declares, and the reason was
|
|
20
|
+
* mechanical rather than aesthetic: the colour travelled as a Tailwind CLASS
|
|
21
|
+
* (`text-utility-blue-600`) resolved by `fill="currentColor"`, Tailwind scans source text, and an
|
|
22
|
+
* undeclared or computed class emits nothing at all — no warning, no error, no gate, just an
|
|
23
|
+
* unpainted mark. So the vocabulary had to be closed, and `data` being an arbitrary-length array
|
|
24
|
+
* while `palette` held exactly six hues was the direct consequence.
|
|
25
|
+
*
|
|
26
|
+
* The colour now travels as a `style={{ color }}` VALUE instead (`src/components/chart/palette.ts`),
|
|
27
|
+
* so nothing has to be legible to a static scanner and the ceiling is gone. What is lost with the
|
|
28
|
+
* union is the compile-time guarantee, and it is bought back in two places rather than one:
|
|
29
|
+
* **`token()`** (`src/lib/token.ts`) is a closed generated union for every house colour, and a
|
|
30
|
+
* dev-mode tripwire warns on a value that is not a CSS colour at all. Neither can catch a
|
|
31
|
+
* misspelled `var(--nope)` — that is always valid CSS — which is exactly why `token()` exists.
|
|
32
|
+
*
|
|
33
|
+
* One migration hazard worth knowing: the old hue NAMES are gone, and three of them (`"green"`,
|
|
34
|
+
* `"red"`, `"blue"`) are valid CSS colours, so they would now paint the CSS colour rather than the
|
|
35
|
+
* house token. The dev warning names each of the six explicitly.
|
|
16
36
|
*/
|
|
17
|
-
type ChartColor =
|
|
37
|
+
type ChartColor = string;
|
|
18
38
|
/**
|
|
19
|
-
*
|
|
39
|
+
* The colours that series with no explicit `color` cycle through, **in order**.
|
|
40
|
+
*
|
|
41
|
+
* ```tsx
|
|
42
|
+
* palette={[token("utility-blue-600"), token("utility-green-600"), "#e11d48"]}
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* As long as you like. Past the list's length it cycles, and `useSeriesColors` emits one dev
|
|
46
|
+
* warning per mount naming the count — the same rule as before, now keyed on YOUR length rather
|
|
47
|
+
* than on a constant six.
|
|
20
48
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
49
|
+
* `[]` — the default — is the house **brand ramp**: six steps of one hue, looping. That is right
|
|
50
|
+
* for ORDINAL series (this year / last year / forecast), where a hue would imply a category that
|
|
51
|
+
* isn't there; a three-series revenue trend rendered green/amber/red reads as *semantic state* when
|
|
52
|
+
* it isn't. For series that genuinely are separate categories, pass distinct hues.
|
|
24
53
|
*
|
|
25
|
-
* @default
|
|
54
|
+
* @default []
|
|
26
55
|
*/
|
|
27
|
-
type ChartPalette =
|
|
56
|
+
type ChartPalette = readonly ChartColor[];
|
|
28
57
|
/**
|
|
29
58
|
* One plotted series.
|
|
30
59
|
*
|
|
@@ -107,7 +136,7 @@ interface CartesianChartBaseProps<T extends object> {
|
|
|
107
136
|
xGroup?: keyof T & string;
|
|
108
137
|
/** ORDER drives colour order — deterministic, unlike a keyed record. */
|
|
109
138
|
series: readonly ChartSeries<NoInfer<T>>[];
|
|
110
|
-
/** @default
|
|
139
|
+
/** @default [] — the house brand ramp, looping. */
|
|
111
140
|
palette?: ChartPalette;
|
|
112
141
|
/** Plot height in px. @default 240 — the reference's `h-60`. */
|
|
113
142
|
height?: number;
|
|
@@ -147,6 +176,9 @@ interface CartesianChartBaseProps<T extends object> {
|
|
|
147
176
|
tooltipTone?: TooltipTone;
|
|
148
177
|
/** Shown instead of the plot when `data` is empty. @default "No data to display" */
|
|
149
178
|
emptyMessage?: string;
|
|
179
|
+
/** Override the chart family's own copy — what `emptyMessage` defaults to. One scope for all six
|
|
180
|
+
* charts. Merges under `<JenosizeUIProvider labels={{ chart }}>`; see `docs/i18n-policy.md`. */
|
|
181
|
+
labels?: ChartLabels;
|
|
150
182
|
/** Names the figure and captions the screen-reader data table. */
|
|
151
183
|
"aria-label"?: string;
|
|
152
184
|
/** **Layout/spacing only**, merged via `cn()`. Never restyles an axis, a mark or the tooltip. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { f as DropzoneLabels, g as FileListLabels } from './labels-DPrh0se9.js';
|
|
3
4
|
import { S as SemanticColor } from './color-CtSxc1Rh.js';
|
|
4
5
|
|
|
5
6
|
interface DropFileEntry {
|
|
@@ -290,6 +291,10 @@ interface DropzoneProps extends Omit<useRender.ComponentProps<"button">, "childr
|
|
|
290
291
|
* the column shrink-to-fit (a flex row / grid cell). Bound it with a width in `className`.
|
|
291
292
|
* @default true */
|
|
292
293
|
fullWidth?: boolean;
|
|
294
|
+
/** Override the component's own copy — the upload prompt and the required suffix. `prompt` is the
|
|
295
|
+
* whole sentence, for a language that cannot keep the action first. Merges under
|
|
296
|
+
* `<JenosizeUIProvider labels={{ dropzone }}>`; see `docs/i18n-policy.md`. */
|
|
297
|
+
labels?: DropzoneLabels;
|
|
293
298
|
/** Layout/spacing only, merged via `cn()` onto the field column. Never restyles the surface. */
|
|
294
299
|
className?: string;
|
|
295
300
|
}
|
|
@@ -322,6 +327,10 @@ interface FileListProps extends Omit<React.ComponentPropsWithoutRef<"ul">, "chil
|
|
|
322
327
|
fileIcon?: (file: UploadFile) => React.ReactNode;
|
|
323
328
|
/** Layout/spacing only, merged via `cn()` onto the `<ul>`. Never reaches a row. */
|
|
324
329
|
className?: string;
|
|
330
|
+
/** Override the component's own copy — the three status words, the row affordance verbs, the
|
|
331
|
+
* retry link and the fallback failure line. Merges under
|
|
332
|
+
* `<JenosizeUIProvider labels={{ fileList }}>`; see `docs/i18n-policy.md`. */
|
|
333
|
+
labels?: FileListLabels;
|
|
325
334
|
}
|
|
326
335
|
/**
|
|
327
336
|
* The rows an upload produces — one `<li>` per file, in whichever treatment the host picks.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
"use client";export { VerificationCodeInput } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
"use client";export { VerificationCodeInput } from './chunk-5ZEUTSCV.js';
|
|
2
|
+
import './chunk-X2VMIBK5.js';
|
|
3
|
+
import './chunk-5KSD4WKN.js';
|
|
4
|
+
import './chunk-7ZM7SNCZ.js';
|
|
4
5
|
import './chunk-52IFGFTL.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-AC6ZWKRN.js';
|
|
6
|
+
import './chunk-KZP6B6B3.js';
|
|
7
|
+
import './chunk-AFYXSZGW.js';
|
|
8
8
|
import './chunk-O4GRKO3I.js';
|
|
9
9
|
import './chunk-BLIZ3CL3.js';
|
|
10
|
-
import './chunk-QDYE5LVT.js';
|
|
11
10
|
import './chunk-ZSNJ6UA3.js';
|
|
11
|
+
import './chunk-RJTVCA62.js';
|
|
12
|
+
import './chunk-QDYE5LVT.js';
|
|
12
13
|
//# sourceMappingURL=verification-code-input.js.map
|
|
13
14
|
//# sourceMappingURL=verification-code-input.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jenosize-ui",
|
|
3
|
-
"version": "0.2.
|
|
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",
|
|
@@ -48,6 +48,14 @@
|
|
|
48
48
|
"types": "./dist/theme-script.d.ts",
|
|
49
49
|
"import": "./dist/theme-script.js"
|
|
50
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
|
+
},
|
|
51
59
|
"./button": {
|
|
52
60
|
"types": "./dist/button.d.ts",
|
|
53
61
|
"import": "./dist/button.js"
|
|
@@ -318,6 +326,8 @@
|
|
|
318
326
|
"slots:check": "node scripts/check-slots.mjs --check",
|
|
319
327
|
"seamless:audit": "node scripts/check-seamless.mjs",
|
|
320
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",
|
|
321
331
|
"rule:audit": "node scripts/check-rules.mjs",
|
|
322
332
|
"rule:check": "node scripts/check-rules.mjs --check",
|
|
323
333
|
"props:audit": "node scripts/check-prop-types.mjs",
|
|
@@ -375,6 +385,7 @@
|
|
|
375
385
|
"@vitejs/plugin-react": "^4.3.0",
|
|
376
386
|
"@vitest/coverage-v8": "^4.1.10",
|
|
377
387
|
"axe-core": "^4.12.1",
|
|
388
|
+
"esbuild": "^0.25.12",
|
|
378
389
|
"eslint": "^10.6.0",
|
|
379
390
|
"eslint-config-prettier": "^10.1.8",
|
|
380
391
|
"eslint-import-resolver-typescript": "^4.4.5",
|
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
|
|
@@ -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 };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The **in-flow card surface** — one recipe for every bordered/rounded panel that sits in the
|
|
3
|
-
* document flow, so the library stops shipping three spellings of the same box.
|
|
4
|
-
*
|
|
5
|
-
* Before this table there were three, and they disagreed on the edge technique alone:
|
|
6
|
-
* `table/shared.ts` used `ring-1 ring-secondary` + `shadow-xs`, `field/option-row.tsx` used
|
|
7
|
-
* `border border-secondary` + no shadow, and the playground had ~88 distinct strings approximating
|
|
8
|
-
* both. Each `SURFACE_VARIANT` member below reproduces one of those, so the axis is derived from
|
|
9
|
-
* what already shipped rather than invented.
|
|
10
|
-
*
|
|
11
|
-
* **Ring, never border.** `lib/color.ts`'s `OUTLINE` table already commits to `ring-1 ring-inset`
|
|
12
|
-
* for exactly this reason: a `border` adds to the box, so a bordered card renders 2px larger than a
|
|
13
|
-
* ringed sibling in the same row — the defect that got `Badge`'s `modern` variant deleted. Measured
|
|
14
|
-
* on the `bordered` option row: the old `border` recipe boxed 200×50, the inset-ring one 200×48.
|
|
15
|
-
* An inset ring paints *inside* the border-box, so a surface never changes size when its edge
|
|
16
|
-
* changes weight — and a heavier selected edge cannot bleed onto whatever sits next to it.
|
|
17
|
-
*
|
|
18
|
-
* **Not the overlay family.** Dialog / Drawer / Toast / the four listbox popups are a separate,
|
|
19
|
-
* already-consistent recipe — `ring-1 ring-secondary_alt ring-inset` + `shadow-lg`/`xl`, where the
|
|
20
|
-
* alpha `border-alt` hairline reads correctly over whatever the popup floats above. Floating
|
|
21
|
-
* elevation is a different concern from an in-flow card; do not merge them into this table.
|
|
22
|
-
*
|
|
23
|
-
* This module lives in `src/lib/` (not `src/components/`) so it is invisible to the dependency-graph
|
|
24
|
-
* gate — `field/` is FOUNDATION and may import only foundation, so it could not reach a
|
|
25
|
-
* `components/card/` module at all. Same reason `cn`, `slot` and `seamless` live here.
|
|
26
|
-
*/
|
|
27
|
-
/** Which edge + fill the surface wears. */
|
|
28
|
-
type SurfaceVariant = "elevated" | "outlined" | "subtle";
|
|
29
|
-
/** The inner gutter. `none` means the caller owns all spacing (full-bleed content, e.g. a table). */
|
|
30
|
-
type SurfacePadding = "none" | "sm" | "md" | "lg";
|
|
31
|
-
declare const SURFACE_VARIANTS: readonly SurfaceVariant[];
|
|
32
|
-
declare const SURFACE_PADDINGS: readonly SurfacePadding[];
|
|
33
|
-
|
|
34
|
-
export { SURFACE_PADDINGS as S, SURFACE_VARIANTS as a, type SurfacePadding as b, type SurfaceVariant as c };
|