jenosize-ui 0.2.1 → 0.3.0
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 +183 -63
- package/THIRD-PARTY-NOTICES.md +15 -0
- package/dist/GradientPicker-CQm3GT7F.d.ts +144 -0
- package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-Cz5jFB3p.d.ts} +1 -1
- package/dist/{Select-Dt5ARIH8.d.ts → Select-CXOAMlk7.d.ts} +15 -1
- package/dist/{TagInput-BaBeve6L.d.ts → TagInput-CzIrONr-.d.ts} +1 -1
- package/dist/area-chart.d.ts +2 -2
- package/dist/area-chart.js +7 -6
- package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
- package/dist/avatar.d.ts +1 -1
- package/dist/avatar.js +12 -11
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +6 -6
- package/dist/bar-chart.d.ts +2 -2
- package/dist/bar-chart.js +7 -6
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/breadcrumb.js +4 -4
- package/dist/button.d.ts +1 -1
- package/dist/button.js +11 -10
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +16 -15
- package/dist/callout.d.ts +4 -2
- package/dist/callout.js +12 -11
- package/dist/card.d.ts +59 -3
- package/dist/card.js +4 -4
- package/dist/carousel.d.ts +169 -0
- package/dist/carousel.js +9 -0
- package/dist/catalog.json +11180 -0
- package/dist/checkbox.js +8 -7
- package/dist/{chunk-MVG5MABV.js → chunk-26XQU3TC.js} +8 -8
- package/dist/{chunk-X2X7Q7NW.js → chunk-2R3QWWOT.js} +3 -3
- package/dist/{chunk-AIARANKE.js → chunk-3JQKVC2K.js} +4 -4
- package/dist/chunk-3P3QZPHV.js +109 -0
- package/dist/{chunk-GLKFFA7N.js → chunk-44AWXIQK.js} +5 -5
- package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
- package/dist/{chunk-5XPMY2LF.js → chunk-5ECTNYKU.js} +5 -5
- package/dist/{chunk-6B6BWTXC.js → chunk-5GBA6X6A.js} +5 -5
- package/dist/{chunk-UGKELBNC.js → chunk-5SGF47TZ.js} +9 -9
- package/dist/{chunk-POQTE7JI.js → chunk-5XSR757T.js} +7 -7
- package/dist/{chunk-GZMDZF2V.js → chunk-6FGLABYH.js} +3 -3
- package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
- package/dist/{chunk-SKRR3ZMP.js → chunk-737A4YNC.js} +3 -3
- package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
- package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
- package/dist/{chunk-54SIZR63.js → chunk-7UCKFULR.js} +7 -7
- package/dist/{chunk-LQURV7HQ.js → chunk-7ZA3QZRP.js} +4 -4
- package/dist/{chunk-X2VMIBK5.js → chunk-A4YPUS6C.js} +4 -4
- package/dist/{chunk-5ZEUTSCV.js → chunk-B4OVIE2X.js} +6 -6
- package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
- package/dist/{chunk-667ZHY3T.js → chunk-BJHLW25G.js} +85 -538
- package/dist/{chunk-ULGCGKOE.js → chunk-BKBINQJZ.js} +4 -4
- package/dist/{chunk-CFFWYXDW.js → chunk-BXQFBFT7.js} +5 -5
- package/dist/{chunk-I6WMNXC7.js → chunk-CQGMOPLG.js} +6 -6
- package/dist/{chunk-FNQJJO63.js → chunk-CUONE6LA.js} +4 -4
- package/dist/{chunk-FFMTYQXE.js → chunk-CVCS5G3E.js} +43 -21
- package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
- package/dist/{chunk-A323V6AI.js → chunk-DYRGHXT5.js} +3 -3
- package/dist/{chunk-T4ZFZTY6.js → chunk-EHML2DLR.js} +4 -4
- package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
- package/dist/{chunk-E2YZ7IMT.js → chunk-ESDSTS5N.js} +6 -6
- package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
- package/dist/chunk-EXRVOGJ5.js +325 -0
- package/dist/{chunk-YHBI52P2.js → chunk-GDW6NFYN.js} +3 -3
- package/dist/chunk-GOCO45FF.js +619 -0
- package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
- package/dist/{chunk-PO2TYK3C.js → chunk-GWYDOZGQ.js} +3 -3
- package/dist/{chunk-LO22VQL5.js → chunk-HNNNJP3A.js} +4 -4
- package/dist/{chunk-ZZSNTCCL.js → chunk-IESEBPYA.js} +4 -4
- package/dist/{chunk-3H444OJA.js → chunk-JZ4HGFWK.js} +3 -3
- package/dist/chunk-KBQJIVUB.js +33 -0
- package/dist/{chunk-CKMWBVRR.js → chunk-KCM4KEZ2.js} +4 -4
- package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
- package/dist/{chunk-FH7Z7SGQ.js → chunk-KNW3IUWX.js} +12 -11
- package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
- package/dist/{chunk-LYXPJERB.js → chunk-L7Z6XGBU.js} +5 -5
- package/dist/{chunk-ZHAT2XZ4.js → chunk-LLUWBQK6.js} +10 -10
- package/dist/{chunk-QHH6AUR3.js → chunk-MDKVYC6R.js} +7 -7
- package/dist/{chunk-22M75A3N.js → chunk-MS6DY4CE.js} +14 -11
- package/dist/{chunk-LLPWQDF7.js → chunk-MTOTPAYZ.js} +3 -3
- package/dist/{chunk-AZ7DKRBY.js → chunk-MVF7FA4D.js} +5 -5
- package/dist/{chunk-AIGYMTCU.js → chunk-MVUNB43J.js} +3 -3
- package/dist/{chunk-ZMFY7WAY.js → chunk-O24HHIQG.js} +41 -39
- package/dist/{chunk-NKG4N6HA.js → chunk-O5EHNNPS.js} +4 -4
- package/dist/{chunk-5DP7W5HX.js → chunk-OIPFTJS6.js} +3 -3
- package/dist/{chunk-U4WSJAYK.js → chunk-OXNIEIOY.js} +20 -20
- package/dist/chunk-P2BGR77C.js +344 -0
- package/dist/{chunk-CGHYXWTT.js → chunk-PFAFTLN3.js} +4 -4
- package/dist/{chunk-4RBIWI2Q.js → chunk-Q2KR7PSX.js} +3 -3
- package/dist/{chunk-7GUPNTAH.js → chunk-QSOLK2I2.js} +7 -7
- package/dist/chunk-QTWRR7IS.js +1129 -0
- package/dist/{chunk-OLLD2BZN.js → chunk-QZHAL4BL.js} +3 -3
- package/dist/{chunk-OACWA4TC.js → chunk-R25NHHYT.js} +6 -6
- package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
- package/dist/{chunk-S5TEWPWW.js → chunk-S5LLA36K.js} +10 -10
- package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
- package/dist/{chunk-KHGW72BM.js → chunk-SGMVB7HD.js} +3 -3
- package/dist/{chunk-FKVPAEJ6.js → chunk-SKJC2KYD.js} +4 -3
- package/dist/chunk-SKPKL47Y.js +5671 -0
- package/dist/{chunk-6MMBQVRO.js → chunk-TCTTZHUS.js} +9 -9
- package/dist/chunk-U5X3MLM5.js +67 -0
- package/dist/chunk-UHSGD4CD.js +364 -0
- package/dist/chunk-UJ4WEQHR.js +525 -0
- package/dist/{chunk-6H4LNWQ7.js → chunk-VDFWWWLL.js} +9 -4
- package/dist/{chunk-5KSD4WKN.js → chunk-VIKV25VP.js} +5 -5
- package/dist/chunk-WJB5GWAZ.js +20 -0
- package/dist/{chunk-HHYEAFCL.js → chunk-XAQQ4LYL.js} +11 -11
- package/dist/{chunk-4VGEJG4M.js → chunk-XCFFM2C7.js} +9 -9
- package/dist/chunk-XKTD3X6Z.js +183 -0
- package/dist/{chunk-GQRSABRN.js → chunk-XWXXKEG6.js} +4 -4
- package/dist/chunk-YGFTNICV.js +110 -0
- package/dist/{chunk-T5574MXM.js → chunk-YGJL7QS7.js} +8 -8
- package/dist/{chunk-SB3DG572.js → chunk-YKPTUANT.js} +6 -6
- package/dist/{chunk-YQYVGWIC.js → chunk-YQAYAJ2T.js} +33 -11
- package/dist/chunk-YXYZW6WU.js +998 -0
- package/dist/{chunk-IQNVSQRK.js → chunk-Z6NSOC6T.js} +5 -5
- package/dist/{chunk-BBKE4W3B.js → chunk-ZAWGG4H2.js} +7 -7
- package/dist/{chunk-BFVJHH7S.js → chunk-ZF362B2X.js} +5 -5
- package/dist/{chunk-RJTVCA62.js → chunk-ZJIY642R.js} +3 -3
- package/dist/color-input.d.ts +93 -0
- package/dist/color-input.js +35 -0
- package/dist/color-picker.d.ts +268 -0
- package/dist/color-picker.js +28 -0
- package/dist/color-value-DYzChVOW.d.ts +129 -0
- package/dist/combobox.d.ts +1 -1
- package/dist/combobox.js +13 -12
- package/dist/date-calendar.d.ts +49 -0
- package/dist/date-calendar.js +12 -0
- package/dist/date-input.d.ts +1 -1
- package/dist/date-input.js +11 -10
- package/dist/date-picker.d.ts +15 -131
- package/dist/date-picker.js +26 -22
- package/dist/date-types-DrDdF6WJ.d.ts +100 -0
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +10 -10
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.js +9 -9
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +6 -6
- package/dist/dropzone.d.ts +3 -3
- package/dist/dropzone.js +17 -16
- package/dist/form.d.ts +15 -5
- package/dist/form.js +75 -36
- package/dist/header-navigation.d.ts +2 -2
- package/dist/header-navigation.js +21 -20
- package/dist/helper.d.ts +1 -1
- package/dist/index.d.ts +25 -11
- package/dist/index.js +92 -79
- package/dist/indicator.js +4 -4
- package/dist/inline-banner.d.ts +68 -0
- package/dist/inline-banner.js +20 -0
- package/dist/input.d.ts +1 -1
- package/dist/input.js +10 -9
- package/dist/kanban-board.d.ts +2 -2
- package/dist/kanban-board.js +16 -15
- package/dist/labels-C992bt7G.d.ts +1160 -0
- package/dist/line-chart.d.ts +2 -2
- package/dist/line-chart.js +7 -6
- package/dist/mcp.js +231 -0
- package/dist/number-input.d.ts +1 -1
- package/dist/number-input.js +10 -9
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +14 -13
- package/dist/{card-D56VxyAe.d.ts → panel-CUGm_Mxy.d.ts} +9 -57
- package/dist/payment-input.d.ts +3 -3
- package/dist/payment-input.js +10 -9
- package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pie-chart.js +7 -6
- package/dist/popover.d.ts +65 -4
- package/dist/popover.js +9 -9
- package/dist/progress-steps.js +4 -4
- package/dist/progress.js +3 -3
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +3 -3
- package/dist/qr-code.d.ts +227 -0
- package/dist/qr-code.js +19 -0
- package/dist/radar-chart.d.ts +2 -2
- package/dist/radar-chart.js +7 -6
- package/dist/radial-chart.d.ts +2 -2
- package/dist/radial-chart.js +7 -6
- package/dist/radio.js +8 -7
- package/dist/rich-text-editor.d.ts +624 -0
- package/dist/rich-text-editor.js +51 -0
- package/dist/rich-text-highlight.d.ts +11 -0
- package/dist/rich-text-highlight.js +65 -0
- package/dist/rich-text-sanitize.d.ts +17 -0
- package/dist/rich-text-sanitize.js +176 -0
- package/dist/scroll-area.js +2 -2
- package/dist/select.d.ts +2 -2
- package/dist/select.js +17 -16
- package/dist/separator.js +2 -2
- package/dist/shared-CGf2D8ZX.d.ts +20 -0
- package/dist/sidebar-navigation.d.ts +76 -27
- package/dist/sidebar-navigation.js +16 -15
- package/dist/sidebar-state.d.ts +76 -0
- package/dist/sidebar-state.js +27 -0
- package/dist/skeleton.js +2 -2
- package/dist/slider.d.ts +321 -0
- package/dist/slider.js +13 -0
- package/dist/styles.css +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +2 -2
- package/dist/table.d.ts +3 -19
- package/dist/table.js +34 -33
- package/dist/tabs.js +2 -2
- package/dist/tag-input.d.ts +3 -3
- package/dist/tag-input.js +13 -12
- package/dist/tag.d.ts +1 -1
- package/dist/tag.js +4 -4
- package/dist/textarea.js +8 -7
- package/dist/theme.css +965 -0
- package/dist/theme.js +12 -11
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +12 -11
- package/dist/tooltip.js +4 -3
- package/dist/tree.d.ts +1 -1
- package/dist/tree.js +6 -6
- package/dist/{types-DR9rAEy1.d.ts → types-DYFl0CEB.d.ts} +1 -1
- package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-2E7n0PWT.d.ts} +1 -1
- package/dist/verification-code-input.js +10 -9
- package/package.json +92 -8
- package/dist/chunk-BLIZ3CL3.js +0 -49
- package/dist/labels-DPrh0se9.d.ts +0 -627
- package/dist/panel-El4oI68p.d.ts +0 -9
- package/dist/shared-BYXJPnsN.d.ts +0 -11
|
@@ -1,627 +0,0 @@
|
|
|
1
|
-
declare const AVATAR_LABELS: {
|
|
2
|
-
/** The verified indicator's accessible name — the one Avatar marker that carries meaning. */
|
|
3
|
-
verified: string;
|
|
4
|
-
/** The `+N` tile's trigger, when the group's overflow opens a list. */
|
|
5
|
-
showMore: (ctx: {
|
|
6
|
-
count: number;
|
|
7
|
-
}) => string;
|
|
8
|
-
/** The `+N` tile itself, which is a `role="img"` and needs a name of its own. */
|
|
9
|
-
overflowCount: (ctx: {
|
|
10
|
-
count: number;
|
|
11
|
-
}) => string;
|
|
12
|
-
/** The overflow list with nothing in it. */
|
|
13
|
-
empty: string;
|
|
14
|
-
/** A revealed avatar that carries no `name`. */
|
|
15
|
-
unknownName: string;
|
|
16
|
-
/** The presence dot's two states — the marker is a dot, so its name is all it says. */
|
|
17
|
-
online: string;
|
|
18
|
-
offline: string;
|
|
19
|
-
};
|
|
20
|
-
type AvatarLabels = LabelOverrides<typeof AVATAR_LABELS>;
|
|
21
|
-
|
|
22
|
-
/** The default behind the `dismissLabel` prop — the prop is still the per-instance answer. */
|
|
23
|
-
declare const BADGE_LABELS: {
|
|
24
|
-
dismiss: string;
|
|
25
|
-
};
|
|
26
|
-
type BadgeLabels = LabelOverrides<typeof BADGE_LABELS>;
|
|
27
|
-
|
|
28
|
-
declare const BREADCRUMB_LABELS: {
|
|
29
|
-
/** The "…" trigger. The English default owns its own `count === 1` branch — a language with a
|
|
30
|
-
* different plural rule owns the whole function, which is why this is not a string. */
|
|
31
|
-
showHidden: (ctx: {
|
|
32
|
-
count: number;
|
|
33
|
-
}) => string;
|
|
34
|
-
};
|
|
35
|
-
type BreadcrumbLabels = LabelOverrides<typeof BREADCRUMB_LABELS>;
|
|
36
|
-
|
|
37
|
-
/** `CloseButton` is what Dialog, AlertDialog, Drawer and Popover render, so this one key names
|
|
38
|
-
* every overlay's close affordance. The `label` prop remains the per-instance override. */
|
|
39
|
-
declare const CLOSE_BUTTON_LABELS: {
|
|
40
|
-
close: string;
|
|
41
|
-
};
|
|
42
|
-
type CloseButtonLabels = LabelOverrides<typeof CLOSE_BUTTON_LABELS>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Every ctx here carries an **already-formatted** display string (`when`, `time`, `period`),
|
|
46
|
-
* produced by `formatIn` with the resolved locale, timezone and era. A label function never
|
|
47
|
-
* receives a `Date` — formatting is the calendar's decision and translation only reorders words.
|
|
48
|
-
*/
|
|
49
|
-
declare const CALENDAR_LABELS: {
|
|
50
|
-
/** The grid's landmark name, when the caller gave none. */
|
|
51
|
-
nav: (ctx: {
|
|
52
|
-
period: string;
|
|
53
|
-
}) => string;
|
|
54
|
-
agendaEmpty: string;
|
|
55
|
-
/** VISIBLE — the time grid's all-day row, in the hour gutter. Lowercase, matching the hour labels
|
|
56
|
-
* beneath it ("9 AM"), and the one string in this scope a user READS rather than hears. */
|
|
57
|
-
allDay: string;
|
|
58
|
-
/** A day cell that cannot take an event. */
|
|
59
|
-
unavailable: (ctx: {
|
|
60
|
-
name: string;
|
|
61
|
-
}) => string;
|
|
62
|
-
/** A time-grid slot button — the same "(unavailable)" suffix, on a name that includes the hour. */
|
|
63
|
-
slot: (ctx: {
|
|
64
|
-
when: string;
|
|
65
|
-
placeable: boolean;
|
|
66
|
-
}) => string;
|
|
67
|
-
/** The week-of-month readout. */
|
|
68
|
-
weekNumber: (ctx: {
|
|
69
|
-
week: number;
|
|
70
|
-
}) => string;
|
|
71
|
-
grabbed: (ctx: {
|
|
72
|
-
title: string;
|
|
73
|
-
}) => string;
|
|
74
|
-
movedTo: (ctx: {
|
|
75
|
-
title: string;
|
|
76
|
-
when: string;
|
|
77
|
-
}) => string;
|
|
78
|
-
nowEndsAt: (ctx: {
|
|
79
|
-
title: string;
|
|
80
|
-
time: string;
|
|
81
|
-
}) => string;
|
|
82
|
-
};
|
|
83
|
-
type CalendarLabels = LabelOverrides<typeof CALENDAR_LABELS>;
|
|
84
|
-
|
|
85
|
-
declare const COMBOBOX_LABELS: {
|
|
86
|
-
/** The trigger that opens the list without typing. */
|
|
87
|
-
showOptions: string;
|
|
88
|
-
/** The ✕ that empties the input. */
|
|
89
|
-
clear: string;
|
|
90
|
-
/** A multi-value chip's remove button, named after the value it drops. */
|
|
91
|
-
removeValue: (ctx: {
|
|
92
|
-
label: string;
|
|
93
|
-
}) => string;
|
|
94
|
-
/** The free-text creation row. */
|
|
95
|
-
create: (ctx: {
|
|
96
|
-
query: string;
|
|
97
|
-
}) => string;
|
|
98
|
-
/** Defaults behind the `placeholder`, `emptyMessage` and loading props — each prop still wins. */
|
|
99
|
-
placeholder: string;
|
|
100
|
-
emptyMessage: string;
|
|
101
|
-
loading: string;
|
|
102
|
-
};
|
|
103
|
-
type ComboboxLabels = LabelOverrides<typeof COMBOBOX_LABELS>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Each segment's accessible name. Untranslated, a DateInput announces "Month, spinbutton" in English
|
|
107
|
-
* inside an otherwise Thai form — the segments are what the user actually focuses, so this is the
|
|
108
|
-
* whole control as far as a screen reader is concerned.
|
|
109
|
-
*
|
|
110
|
-
* `dayPeriod` is a FORMAT rather than prose in many locales; the key exists because some do
|
|
111
|
-
* translate it, and leaving one member of a seven-member table untranslatable is worse than
|
|
112
|
-
* offering it.
|
|
113
|
-
*/
|
|
114
|
-
declare const DATE_INPUT_LABELS: {
|
|
115
|
-
month: string;
|
|
116
|
-
day: string;
|
|
117
|
-
year: string;
|
|
118
|
-
hour: string;
|
|
119
|
-
minute: string;
|
|
120
|
-
second: string;
|
|
121
|
-
dayPeriod: string;
|
|
122
|
-
};
|
|
123
|
-
type DateInputLabels = LabelOverrides<typeof DATE_INPUT_LABELS>;
|
|
124
|
-
|
|
125
|
-
/** One scope for the whole picker family — `DatePicker`, `DateRangePicker` and the two calendars,
|
|
126
|
-
* which share `picker-shared.tsx`. */
|
|
127
|
-
declare const DATE_PICKER_LABELS: {
|
|
128
|
-
/** The trigger's accessible name when the field has no `label`. */
|
|
129
|
-
openCalendar: string;
|
|
130
|
-
openRange: string;
|
|
131
|
-
/** The two typed segments of a range. */
|
|
132
|
-
startDate: string;
|
|
133
|
-
endDate: string;
|
|
134
|
-
/** The confirm footer, shown under `commit="confirm"`. */
|
|
135
|
-
cancel: string;
|
|
136
|
-
apply: string;
|
|
137
|
-
/** Defaults behind the `placeholder` props — each prop still wins. */
|
|
138
|
-
placeholder: string;
|
|
139
|
-
rangePlaceholder: string;
|
|
140
|
-
/** Defaults behind the standalone calendars' `aria-label`. */
|
|
141
|
-
calendarName: string;
|
|
142
|
-
rangeCalendarName: string;
|
|
143
|
-
/**
|
|
144
|
-
* Appended to the trigger's accessible name when the field is required, visually hidden —
|
|
145
|
-
* `aria-required` is illegal on `role="button"`, so the requirement has to travel in the NAME.
|
|
146
|
-
*
|
|
147
|
-
* Deliberately the bare word, NOT the `", required"` that `FIELD_LABELS` and `DROPZONE_LABELS`
|
|
148
|
-
* carry: this converts an existing literal and the pass's rule is that a default is byte-identical
|
|
149
|
-
* to what it replaced. The three spellings SHOULD agree — the comma is a pause a screen reader
|
|
150
|
-
* honours — but changing what a picker announces is a decision, not a conversion.
|
|
151
|
-
*/
|
|
152
|
-
required: string;
|
|
153
|
-
};
|
|
154
|
-
type DatePickerLabels = LabelOverrides<typeof DATE_PICKER_LABELS>;
|
|
155
|
-
|
|
156
|
-
declare const DROPZONE_LABELS: {
|
|
157
|
-
/** The bright half of the prompt — a real `<button>`, which is why it is its own key. */
|
|
158
|
-
clickToUpload: string;
|
|
159
|
-
/**
|
|
160
|
-
* The muted remainder of the same sentence.
|
|
161
|
-
*
|
|
162
|
-
* The two halves are ONE sentence split across an element boundary for styling, and the styled
|
|
163
|
-
* action always comes first. A language that cannot keep that order sets `clickToUpload` to the
|
|
164
|
-
* whole phrase and `dragAndDrop` to `""` (or the reverse) — deliberately a documented workaround
|
|
165
|
-
* rather than a third "whole sentence" key, because interpolating a styled NODE would mean a ctx
|
|
166
|
-
* carrying markup, which this layer does not do.
|
|
167
|
-
*/
|
|
168
|
-
dragAndDrop: string;
|
|
169
|
-
/** Appended to the zone's accessible name when the field is required. */
|
|
170
|
-
required: string;
|
|
171
|
-
};
|
|
172
|
-
type DropzoneLabels = LabelOverrides<typeof DROPZONE_LABELS>;
|
|
173
|
-
declare const FILE_LIST_LABELS: {
|
|
174
|
-
/** The three status words, visible beside each row's glyph. */
|
|
175
|
-
statusUploading: string;
|
|
176
|
-
statusComplete: string;
|
|
177
|
-
statusFailed: string;
|
|
178
|
-
/** The row affordance's verb, which also composes into its accessible name. */
|
|
179
|
-
cancel: string;
|
|
180
|
-
remove: string;
|
|
181
|
-
/** The retry link under a failed row. */
|
|
182
|
-
retry: string;
|
|
183
|
-
/** The fallback failure line, when the upload reported no error of its own. */
|
|
184
|
-
uploadFailed: string;
|
|
185
|
-
/** A bare "Remove" makes a five-row list announce five identical buttons, so the file's name is
|
|
186
|
-
* part of the name. */
|
|
187
|
-
actionForFile: (ctx: {
|
|
188
|
-
verb: string;
|
|
189
|
-
name: string;
|
|
190
|
-
}) => string;
|
|
191
|
-
/** The progress bar's name while a row uploads. */
|
|
192
|
-
uploading: (ctx: {
|
|
193
|
-
name: string;
|
|
194
|
-
}) => string;
|
|
195
|
-
};
|
|
196
|
-
type FileListLabels = LabelOverrides<typeof FILE_LIST_LABELS>;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* The Field frame's own copy. It lives on `FieldFrame` / `FieldGroupFrame`, so ONE table serves all
|
|
200
|
-
* 14 Field controls — this is deliberately NOT a per-control `labels` prop, because the frame-parity
|
|
201
|
-
* contract (AGENTS §6) is about the shared frame PROPS and this string is the frame's own.
|
|
202
|
-
*/
|
|
203
|
-
declare const FIELD_LABELS: {
|
|
204
|
-
/** Appended to a required control's accessible name, visually hidden. Leading comma included:
|
|
205
|
-
* it is a name FRAGMENT ("Email, required"), not a sentence. */
|
|
206
|
-
required: string;
|
|
207
|
-
};
|
|
208
|
-
type FieldLabels = LabelOverrides<typeof FIELD_LABELS>;
|
|
209
|
-
|
|
210
|
-
declare const HEADER_NAVIGATION_LABELS: {
|
|
211
|
-
/** The mobile drawer trigger's tooltip, which is also its accessible name. */
|
|
212
|
-
openNavigation: string;
|
|
213
|
-
/** The brand lockup, which is a link with a logo inside and therefore no text of its own. */
|
|
214
|
-
homepage: string;
|
|
215
|
-
};
|
|
216
|
-
type HeaderNavigationLabels = LabelOverrides<typeof HEADER_NAVIGATION_LABELS>;
|
|
217
|
-
|
|
218
|
-
/** The password reveal toggle, whose name flips with state — it names the ACTION, not the state. */
|
|
219
|
-
declare const INPUT_LABELS: {
|
|
220
|
-
showPassword: string;
|
|
221
|
-
hidePassword: string;
|
|
222
|
-
};
|
|
223
|
-
type InputLabels = LabelOverrides<typeof INPUT_LABELS>;
|
|
224
|
-
|
|
225
|
-
declare const KANBAN_BOARD_LABELS: {
|
|
226
|
-
expandColumn: string;
|
|
227
|
-
collapseColumn: string;
|
|
228
|
-
/** The per-column overflow menu's trigger tooltip. */
|
|
229
|
-
columnActions: string;
|
|
230
|
-
/** The fallback behind a column's own `emptyMessage`. */
|
|
231
|
-
emptyColumn: string;
|
|
232
|
-
loadMore: string;
|
|
233
|
-
loading: string;
|
|
234
|
-
loadFailed: string;
|
|
235
|
-
grabbed: (ctx: {
|
|
236
|
-
label: string;
|
|
237
|
-
}) => string;
|
|
238
|
-
/**
|
|
239
|
-
* The cursor's position, as a FRAGMENT composed into three other messages.
|
|
240
|
-
*
|
|
241
|
-
* It stays a separate key precisely because it is a fragment: a translation that reorders
|
|
242
|
-
* "lane, column, position N of M" cannot do so if the phrase is baked into its three callers.
|
|
243
|
-
* The ctx carries already-resolved display titles, never board internals.
|
|
244
|
-
*/
|
|
245
|
-
positionText: (ctx: {
|
|
246
|
-
lane?: string;
|
|
247
|
-
column: string;
|
|
248
|
-
index: number;
|
|
249
|
-
total: number;
|
|
250
|
-
}) => string;
|
|
251
|
-
position: (ctx: {
|
|
252
|
-
label: string;
|
|
253
|
-
position: string;
|
|
254
|
-
}) => string;
|
|
255
|
-
dropped: (ctx: {
|
|
256
|
-
label: string;
|
|
257
|
-
position: string;
|
|
258
|
-
}) => string;
|
|
259
|
-
cancelled: (ctx: {
|
|
260
|
-
label: string;
|
|
261
|
-
column: string;
|
|
262
|
-
}) => string;
|
|
263
|
-
/** The COLUMN reorder (Alt+←/→ on a header), announced through the same one status region. */
|
|
264
|
-
columnMoved: (ctx: {
|
|
265
|
-
column: string;
|
|
266
|
-
index: number;
|
|
267
|
-
total: number;
|
|
268
|
-
}) => string;
|
|
269
|
-
/**
|
|
270
|
-
* Every card's `aria-describedby` — the longest single sentence the board speaks, and the last one
|
|
271
|
-
* still hard-coded. It hid in a module `const`, which is a shape no gate rule matches, behind a
|
|
272
|
-
* `sr-only` the line-scoped `sr-only` rule could not see across.
|
|
273
|
-
*/
|
|
274
|
-
grabHint: string;
|
|
275
|
-
/**
|
|
276
|
-
* `aria-roledescription` — spoken IN PLACE OF the role, so an untranslated value leaves a screen
|
|
277
|
-
* reader with no fallback at all. Three of them, and the gate had no rule for the attribute.
|
|
278
|
-
*/
|
|
279
|
-
roleBoard: string;
|
|
280
|
-
roleColumn: string;
|
|
281
|
-
roleCard: string;
|
|
282
|
-
};
|
|
283
|
-
type KanbanBoardLabels = LabelOverrides<typeof KANBAN_BOARD_LABELS>;
|
|
284
|
-
|
|
285
|
-
/** The stepper's two affordances. Both increment buttons (the ± pair and the chevron stack) share
|
|
286
|
-
* one name — they are the same action drawn twice, and a screen reader should not learn two. */
|
|
287
|
-
declare const NUMBER_INPUT_LABELS: {
|
|
288
|
-
decrease: string;
|
|
289
|
-
increase: string;
|
|
290
|
-
};
|
|
291
|
-
type NumberInputLabels = LabelOverrides<typeof NUMBER_INPUT_LABELS>;
|
|
292
|
-
|
|
293
|
-
declare const PAGINATION_LABELS: {
|
|
294
|
-
/** The `<nav>` landmark. */
|
|
295
|
-
nav: string;
|
|
296
|
-
/** VISIBLE — the readout word before the page number. */
|
|
297
|
-
page: string;
|
|
298
|
-
/**
|
|
299
|
-
* VISIBLE — the words AFTER the page number, carrying the total: `Page` [3] `of 12`.
|
|
300
|
-
*
|
|
301
|
-
* Two keys bracketing the number rather than one whole-sentence key, because under `goto` the
|
|
302
|
-
* middle of that sentence is an `<input>`. A label returns a STRING, so it cannot wrap a node —
|
|
303
|
-
* the field has to sit between two labels. Thai keeps the same order (`หน้า` 3 `จาก 12`), so the
|
|
304
|
-
* bracket is a fit here and not a compromise; a language that puts the total first would need
|
|
305
|
-
* this pair rethought, and the existing `page` key already carried that constraint.
|
|
306
|
-
*/
|
|
307
|
-
ofTotal: (ctx: {
|
|
308
|
-
total: number;
|
|
309
|
-
}) => string;
|
|
310
|
-
/** The jump input's accessible name. */
|
|
311
|
-
goToPage: string;
|
|
312
|
-
/** Each numbered button. */
|
|
313
|
-
pageNumber: (ctx: {
|
|
314
|
-
page: number;
|
|
315
|
-
}) => string;
|
|
316
|
-
/** VISIBLE and also the select's accessible name — one key, both sites, because they are one
|
|
317
|
-
* phrase and a translation that split them would be saying two things. */
|
|
318
|
-
rowsPerPage: string;
|
|
319
|
-
/**
|
|
320
|
-
* VISIBLE — the result count beside the pager.
|
|
321
|
-
*
|
|
322
|
-
* `formatted` arrives already locale-grouped (`"1,204"`), because formatting is the component's
|
|
323
|
-
* decision and a translator must never have to reimplement `toLocaleString`. `count` is the raw
|
|
324
|
-
* number, there for a plural rule: English owns its own two-form branch here, so a language with
|
|
325
|
-
* three forms overrides the whole function rather than fighting a hard-coded `s`.
|
|
326
|
-
*/
|
|
327
|
-
results: (ctx: {
|
|
328
|
-
count: number;
|
|
329
|
-
formatted: string;
|
|
330
|
-
}) => string;
|
|
331
|
-
first: string;
|
|
332
|
-
previous: string;
|
|
333
|
-
next: string;
|
|
334
|
-
last: string;
|
|
335
|
-
};
|
|
336
|
-
type PaginationLabels = LabelOverrides<typeof PAGINATION_LABELS>;
|
|
337
|
-
|
|
338
|
-
/** The two validation sentences the control writes itself. Both already have per-instance props
|
|
339
|
-
* (`brandError` / `luhnError`); this is what those props default to. */
|
|
340
|
-
declare const PAYMENT_INPUT_LABELS: {
|
|
341
|
-
brandError: string;
|
|
342
|
-
luhnError: string;
|
|
343
|
-
};
|
|
344
|
-
type PaymentInputLabels = LabelOverrides<typeof PAYMENT_INPUT_LABELS>;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* `Select`'s one authored string.
|
|
348
|
-
*
|
|
349
|
-
* Small, and that is the point: `Select` was one of two Field controls with no scope at all, so an app
|
|
350
|
-
* could configure `Combobox`'s and `DatePicker`'s placeholder app-wide and then had to pass
|
|
351
|
-
* `<Select placeholder>` at every call site to reach the same word. A scope with one key is cheaper
|
|
352
|
-
* than that asymmetry.
|
|
353
|
-
*/
|
|
354
|
-
declare const SELECT_LABELS: {
|
|
355
|
-
/** Default behind the `placeholder` prop — the caller's own prop still wins. */
|
|
356
|
-
placeholder: string;
|
|
357
|
-
};
|
|
358
|
-
type SelectLabels = LabelOverrides<typeof SELECT_LABELS>;
|
|
359
|
-
|
|
360
|
-
/** The rail's collapse toggle. The `<nav>` landmark's own name is already an `aria-label` prop
|
|
361
|
-
* (defaulting to "Main") and stays there — a landmark name is the app's, not the library's. */
|
|
362
|
-
declare const SIDEBAR_NAVIGATION_LABELS: {
|
|
363
|
-
expand: string;
|
|
364
|
-
collapse: string;
|
|
365
|
-
};
|
|
366
|
-
type SidebarNavigationLabels = LabelOverrides<typeof SIDEBAR_NAVIGATION_LABELS>;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* One scope for the whole table family — `Table.tsx`, `cells.tsx`, `toolbar.tsx` and `cards.tsx`.
|
|
370
|
-
* `<Table>` resolves it once and threads the reader down as a prop, so an override lands everywhere
|
|
371
|
-
* at once and the sub-files never re-resolve (there is no table context to hang it on).
|
|
372
|
-
*/
|
|
373
|
-
declare const TABLE_LABELS: {
|
|
374
|
-
selectAll: string;
|
|
375
|
-
selectRow: string;
|
|
376
|
-
/** The selection column's header, visually hidden. */
|
|
377
|
-
selectColumn: string;
|
|
378
|
-
/** The expansion column's header, visually hidden. */
|
|
379
|
-
expandColumn: string;
|
|
380
|
-
/** The row-actions column's header, visually hidden. */
|
|
381
|
-
actionsColumn: string;
|
|
382
|
-
expandRow: string;
|
|
383
|
-
collapseRow: string;
|
|
384
|
-
/** A column header's help tooltip trigger. */
|
|
385
|
-
columnInfo: (ctx: {
|
|
386
|
-
header: string;
|
|
387
|
-
}) => string;
|
|
388
|
-
/** The column-visibility trigger in the toolbar. */
|
|
389
|
-
columns: string;
|
|
390
|
-
/** The fallback name for a row-action slot that brought none. */
|
|
391
|
-
rowActions: string;
|
|
392
|
-
/** The confirmation dialog's DISMISS button. Its sibling `confirmLabel` is per action (the verb
|
|
393
|
-
* belongs to the deed — "Delete", "Revoke"), but "stop" is one word for the whole app, so it
|
|
394
|
-
* lives here and a per-action `cancelLabel` still wins. */
|
|
395
|
-
cancel: string;
|
|
396
|
-
emptyTitle: string;
|
|
397
|
-
emptyDescription: string;
|
|
398
|
-
emptyFilteredTitle: string;
|
|
399
|
-
emptyFilteredDescription: string;
|
|
400
|
-
/** The filtered-empty description when a SEARCH is what emptied it — the query is quoted back. */
|
|
401
|
-
emptySearch: (ctx: {
|
|
402
|
-
query: string;
|
|
403
|
-
}) => string;
|
|
404
|
-
clearFilters: string;
|
|
405
|
-
errorDescription: string;
|
|
406
|
-
errorRetry: string;
|
|
407
|
-
/** Default behind `search.placeholder` / `search.label`. */
|
|
408
|
-
search: string;
|
|
409
|
-
/** LIVE REGION. The English default owns its own plural branch — a language with three forms
|
|
410
|
-
* owns the whole function, and `Intl.PluralRules` belongs to the app. */
|
|
411
|
-
selectionCount: (ctx: {
|
|
412
|
-
count: number;
|
|
413
|
-
}) => string;
|
|
414
|
-
/** LIVE REGION, announced only after a selection has been made and then cleared. */
|
|
415
|
-
selectionCleared: string;
|
|
416
|
-
removeFilter: (ctx: {
|
|
417
|
-
label: string;
|
|
418
|
-
}) => string;
|
|
419
|
-
filterMin: (ctx: {
|
|
420
|
-
label: string;
|
|
421
|
-
}) => string;
|
|
422
|
-
filterMax: (ctx: {
|
|
423
|
-
label: string;
|
|
424
|
-
}) => string;
|
|
425
|
-
/**
|
|
426
|
-
* The SIGHTED half of those same two inputs. They were the tell that the gate had no
|
|
427
|
-
* `placeholder` rule: both `aria-label`s above went through this table while the placeholder a
|
|
428
|
-
* sighted user actually reads sat beside them as a literal.
|
|
429
|
-
*/
|
|
430
|
-
filterMinPlaceholder: string;
|
|
431
|
-
filterMaxPlaceholder: string;
|
|
432
|
-
filterFrom: (ctx: {
|
|
433
|
-
label: string;
|
|
434
|
-
}) => string;
|
|
435
|
-
filterTo: (ctx: {
|
|
436
|
-
label: string;
|
|
437
|
-
}) => string;
|
|
438
|
-
sortBy: string;
|
|
439
|
-
/** The "no sort" option in the card-mode sort select. */
|
|
440
|
-
sortNone: string;
|
|
441
|
-
};
|
|
442
|
-
type TableLabels = LabelOverrides<typeof TABLE_LABELS>;
|
|
443
|
-
|
|
444
|
-
declare const TAG_LABELS: {
|
|
445
|
-
/** Names the remove button after the tag it removes, so a row of five is five distinct names. */
|
|
446
|
-
remove: (ctx: {
|
|
447
|
-
label: string;
|
|
448
|
-
}) => string;
|
|
449
|
-
/** The fallback when the tag's children are a node, which has no text to name it with. */
|
|
450
|
-
removeGeneric: string;
|
|
451
|
-
};
|
|
452
|
-
type TagLabels = LabelOverrides<typeof TAG_LABELS>;
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* One scope for both spellings of the control — `TagInput` and `TagInputOuter` — which is the whole
|
|
456
|
-
* reason it is a scope rather than two defaults. The literal was written twice, once per file, so a
|
|
457
|
-
* caller wanting a different word had to pass `placeholder` at every call site of BOTH.
|
|
458
|
-
*/
|
|
459
|
-
declare const TAG_INPUT_LABELS: {
|
|
460
|
-
/** Default behind the `placeholder` prop — the caller's own prop still wins. */
|
|
461
|
-
placeholder: string;
|
|
462
|
-
};
|
|
463
|
-
type TagInputLabels = LabelOverrides<typeof TAG_INPUT_LABELS>;
|
|
464
|
-
|
|
465
|
-
declare const TOAST_LABELS: {
|
|
466
|
-
/** The close affordance on every toast. */
|
|
467
|
-
dismiss: string;
|
|
468
|
-
/** The viewport landmark. A secondary viewport names its corner so two regions are tellable
|
|
469
|
-
* apart; the ctx carries the raw `position`, and the space-separated rendering is this default's
|
|
470
|
-
* decision, not the caller's. */
|
|
471
|
-
region: (ctx: {
|
|
472
|
-
position: string;
|
|
473
|
-
primary: boolean;
|
|
474
|
-
}) => string;
|
|
475
|
-
};
|
|
476
|
-
type ToastLabels = LabelOverrides<typeof TOAST_LABELS>;
|
|
477
|
-
|
|
478
|
-
declare const TREE_LABELS: {
|
|
479
|
-
/** The default behind the `emptyMessage` prop. */
|
|
480
|
-
emptyMessage: string;
|
|
481
|
-
/** The OTHER empty state: "nothing matched" and "there is nothing here" are different sentences. */
|
|
482
|
-
noMatches: (ctx: {
|
|
483
|
-
query: string;
|
|
484
|
-
}) => string;
|
|
485
|
-
/** A branch whose lazy children failed to load, and the button beside it. */
|
|
486
|
-
loadError: string;
|
|
487
|
-
retry: string;
|
|
488
|
-
/** The name a moved node falls back to when its label is a node, not a string. */
|
|
489
|
-
itemFallback: string;
|
|
490
|
-
/**
|
|
491
|
-
* The reorder live region.
|
|
492
|
-
*
|
|
493
|
-
* The ctx carries the raw `position` union, not an English preposition — a translation should not
|
|
494
|
-
* have to parse `"into"`, so the position → verb mapping is this default's job.
|
|
495
|
-
*/
|
|
496
|
-
moved: (ctx: {
|
|
497
|
-
name: string;
|
|
498
|
-
position: "child" | "before" | "after";
|
|
499
|
-
target: string;
|
|
500
|
-
}) => string;
|
|
501
|
-
/** The same move with no named target. */
|
|
502
|
-
movedRoot: (ctx: {
|
|
503
|
-
name: string;
|
|
504
|
-
}) => string;
|
|
505
|
-
};
|
|
506
|
-
type TreeLabels = LabelOverrides<typeof TREE_LABELS>;
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* The form layer's authored CHROME copy.
|
|
510
|
-
*
|
|
511
|
-
* Deliberately separate from `src/form/messages.tsx`, which is not the same thing under a different
|
|
512
|
-
* name: that file holds VALIDATION copy, keyed by rule ("required", "minLength"), and it shipped this
|
|
513
|
-
* exact cascade before `src/lib/labels.ts` generalised it. What lives here is the furniture — a row's
|
|
514
|
-
* remove button, an array's add button, a file field's trigger and its empty text — none of which is
|
|
515
|
-
* a rule name and none of which had anywhere to go.
|
|
516
|
-
*
|
|
517
|
-
* These were unreachable for a different reason than the components': the gate's scan root was
|
|
518
|
-
* `src/components`, so the whole `jenosize-ui/form` subpath was never read at all. A scan root is a
|
|
519
|
-
* claim about coverage, and that one quietly excluded a public entry point.
|
|
520
|
-
*/
|
|
521
|
-
declare const FORM_LABELS: {
|
|
522
|
-
/** `FormArray`'s per-row remove button, when it renders icon-only and has no visible text. */
|
|
523
|
-
removeRow: string;
|
|
524
|
-
/** Default behind `FormArray`'s `addLabel` prop — the caller's own prop still wins. */
|
|
525
|
-
addRow: string;
|
|
526
|
-
/** Defaults behind `Form.FileInput`'s `buttonLabel` / `placeholder` props — each prop still wins. */
|
|
527
|
-
uploadButton: string;
|
|
528
|
-
filePlaceholder: string;
|
|
529
|
-
};
|
|
530
|
-
type FormLabels = LabelOverrides<typeof FORM_LABELS>;
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* The ONE place the library decides what its own copy says.
|
|
534
|
-
*
|
|
535
|
-
* **Why this is a shared layer and not 108 props.** Twenty-two components author user-facing text
|
|
536
|
-
* the caller never passes in — `aria-label="Select row"`, a `sr-only` "Actions", the live region's
|
|
537
|
-
* `"Move cancelled. Card returned to Backlog."`. A Thai app could restyle every pixel of this
|
|
538
|
-
* library and still ship an English screen reader, because none of that text has a way in.
|
|
539
|
-
*
|
|
540
|
-
* **This is not a new mechanism.** `src/form/messages.tsx` already solved it for validation copy,
|
|
541
|
-
* and its header states the rule: ONE key space, TWO scopes that cascade like CSS, app-level IS
|
|
542
|
-
* i18n and field-level IS the one-off. This generalises that from 24 rule names to the whole
|
|
543
|
-
* library:
|
|
544
|
-
*
|
|
545
|
-
* instance `labels` prop → <JenosizeUIProvider labels={…}> → the built-in English default
|
|
546
|
-
*
|
|
547
|
-
* **Three things it deliberately does NOT do.**
|
|
548
|
-
*
|
|
549
|
-
* 1. **It does not hold a central defaults registry.** A `DEFAULT_LABELS` importing all 22
|
|
550
|
-
* components would make `import { Badge }` pull in Table, Calendar and the whole board —
|
|
551
|
-
* `pnpm treeshake:check` exists to catch exactly that. So a component passes its OWN defaults
|
|
552
|
-
* in, and the context carries only the caller's plain nested object, which imports nothing.
|
|
553
|
-
* 2. **It does not translate.** There is no `th` bundle here and never will be; the library ships
|
|
554
|
-
* English defaults and a seam, and the app feeds it from whatever i18n runtime it already has.
|
|
555
|
-
* 3. **It does not replace content props.** `placeholder`, `emptyMessage`, `label`, `aria-label`
|
|
556
|
-
* are per-instance CONTENT and still win — a label table only supplies what they fall back to.
|
|
557
|
-
*
|
|
558
|
-
* The guarantee that makes it safe to adopt: **every built-in default is byte-identical to the
|
|
559
|
-
* literal it replaced**, so a provider that is not mounted renders exactly what shipped before this
|
|
560
|
-
* layer existed. Same DOM, same accessible names, same pixels.
|
|
561
|
-
*/
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* A translatable string.
|
|
565
|
-
*
|
|
566
|
-
* `Ctx` is `void` for the ~77 fixed keys ("Select row") and an object for the ~31 that interpolate
|
|
567
|
-
* caller data (`` `About ${header}` ``). Deliberately the same shape as `FormMessage` — a plain
|
|
568
|
-
* string where a string is enough, a function where the sentence has a hole in it.
|
|
569
|
-
*
|
|
570
|
-
* **A ctx always carries already-FORMATTED display strings**, never a `Date`, a node or a domain
|
|
571
|
-
* object. Formatting is the component's decision (it owns the locale, the timezone and the era);
|
|
572
|
-
* the label function only reorders words. A translator must never have to reimplement `formatIn`.
|
|
573
|
-
*/
|
|
574
|
-
type Label<Ctx = void> = [Ctx] extends [void] ? string : (ctx: Ctx) => string;
|
|
575
|
-
/** The shape every component's defaults table satisfies. */
|
|
576
|
-
type LabelTable = Record<string, string | ((ctx: never) => string)>;
|
|
577
|
-
/**
|
|
578
|
-
* A component's table as the CALLER may override it — every key optional, and a key that takes a
|
|
579
|
-
* ctx also accepts a plain constant string (a language that does not need the interpolation should
|
|
580
|
-
* not have to write `() => "…"`).
|
|
581
|
-
*/
|
|
582
|
-
type LabelOverrides<T extends LabelTable> = {
|
|
583
|
-
[K in keyof T]?: T[K] extends (ctx: infer C) => string ? string | ((ctx: C) => string) : string;
|
|
584
|
-
};
|
|
585
|
-
/**
|
|
586
|
-
* Every scope the app can override, keyed by component.
|
|
587
|
-
*
|
|
588
|
-
* These are **type-only** imports — erased at build, so naming all 22 scopes here costs no runtime
|
|
589
|
-
* import and cannot drag a component into a bundle that did not ask for it.
|
|
590
|
-
*/
|
|
591
|
-
interface LibraryLabels {
|
|
592
|
-
avatar?: AvatarLabels;
|
|
593
|
-
badge?: BadgeLabels;
|
|
594
|
-
breadcrumb?: BreadcrumbLabels;
|
|
595
|
-
calendar?: CalendarLabels;
|
|
596
|
-
chart?: ChartLabels;
|
|
597
|
-
closeButton?: CloseButtonLabels;
|
|
598
|
-
combobox?: ComboboxLabels;
|
|
599
|
-
dateInput?: DateInputLabels;
|
|
600
|
-
datePicker?: DatePickerLabels;
|
|
601
|
-
dropzone?: DropzoneLabels;
|
|
602
|
-
field?: FieldLabels;
|
|
603
|
-
form?: FormLabels;
|
|
604
|
-
fileList?: FileListLabels;
|
|
605
|
-
headerNavigation?: HeaderNavigationLabels;
|
|
606
|
-
input?: InputLabels;
|
|
607
|
-
kanbanBoard?: KanbanBoardLabels;
|
|
608
|
-
numberInput?: NumberInputLabels;
|
|
609
|
-
pagination?: PaginationLabels;
|
|
610
|
-
paymentInput?: PaymentInputLabels;
|
|
611
|
-
select?: SelectLabels;
|
|
612
|
-
sidebarNavigation?: SidebarNavigationLabels;
|
|
613
|
-
tagInput?: TagInputLabels;
|
|
614
|
-
table?: TableLabels;
|
|
615
|
-
tag?: TagLabels;
|
|
616
|
-
toast?: ToastLabels;
|
|
617
|
-
tree?: TreeLabels;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/** One scope for all six charts — they share `ChartFrame`, so they share the sentence it renders
|
|
621
|
-
* in place of a plot. The per-instance `emptyMessage` prop still wins. */
|
|
622
|
-
declare const CHART_LABELS: {
|
|
623
|
-
empty: string;
|
|
624
|
-
};
|
|
625
|
-
type ChartLabels = LabelOverrides<typeof CHART_LABELS>;
|
|
626
|
-
|
|
627
|
-
export type { AvatarLabels as A, BadgeLabels as B, ChartLabels as C, DateInputLabels as D, FieldLabels as F, HeaderNavigationLabels as H, InputLabels as I, KanbanBoardLabels as K, Label as L, NumberInputLabels as N, PaginationLabels as P, SelectLabels as S, TableLabels as T, BreadcrumbLabels as a, CalendarLabels as b, CloseButtonLabels as c, ComboboxLabels as d, DatePickerLabels as e, DropzoneLabels as f, FileListLabels as g, LabelOverrides as h, LibraryLabels as i, PaymentInputLabels as j, SidebarNavigationLabels as k, TagLabels as l, ToastLabels as m, TreeLabels as n, TagInputLabels as o };
|
package/dist/panel-El4oI68p.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { R as RuleTexture } from './rule-BqzaIwJy.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* How a panel's header/footer rules are drawn — the library-wide texture vocabulary plus the named
|
|
5
|
-
* off state. See {@link PanelChromeProps.dividers}.
|
|
6
|
-
*/
|
|
7
|
-
type PanelDividers = RuleTexture | "none";
|
|
8
|
-
|
|
9
|
-
export type { PanelDividers as P };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type PopoverSize = "sm" | "md" | "lg";
|
|
4
|
-
/** A footer is a plain node, or a render-fn given a `close()` helper — the latter lets
|
|
5
|
-
* footer buttons dismiss the popover in BOTH controlled and uncontrolled (`trigger`)
|
|
6
|
-
* modes without a `Popover.Close` part. Same contract as `DialogFooter`. */
|
|
7
|
-
type PopoverFooter = React.ReactNode | ((close: () => void) => React.ReactNode);
|
|
8
|
-
type PopoverSide = "top" | "right" | "bottom" | "left";
|
|
9
|
-
type PopoverAlign = "start" | "center" | "end";
|
|
10
|
-
|
|
11
|
-
export type { PopoverAlign as P, PopoverFooter as a, PopoverSide as b, PopoverSize as c };
|