jenosize-ui 0.2.2 → 0.3.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 +183 -63
- package/THIRD-PARTY-NOTICES.md +95 -0
- package/dist/GradientPicker-Bv3V3vL_.d.ts +144 -0
- package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-s7_s3UDi.d.ts} +1 -1
- package/dist/{Select-Dt5ARIH8.d.ts → Select-r233iMaU.d.ts} +15 -1
- package/dist/{TagInput-BaBeve6L.d.ts → TagInput-w_l9Fp5i.d.ts} +1 -1
- package/dist/area-chart.d.ts +2 -2
- package/dist/area-chart.js +8 -6
- package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
- package/dist/avatar.d.ts +1 -1
- package/dist/avatar.js +12 -10
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +7 -6
- package/dist/bar-chart.d.ts +2 -2
- package/dist/bar-chart.js +8 -6
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/breadcrumb.js +5 -4
- package/dist/button.d.ts +1 -1
- package/dist/button.js +12 -10
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +16 -14
- package/dist/callout.d.ts +4 -2
- package/dist/callout.js +13 -11
- package/dist/card.d.ts +59 -3
- package/dist/card.js +4 -3
- package/dist/carousel.d.ts +169 -0
- package/dist/carousel.js +10 -0
- package/dist/catalog.json +11976 -0
- package/dist/checkbox.js +9 -7
- package/dist/{chunk-AIARANKE.js → chunk-2EUVBRKG.js} +4 -4
- package/dist/{chunk-5ZEUTSCV.js → chunk-2RRPWOKT.js} +6 -6
- package/dist/{chunk-DD5KJVFV.js → chunk-3JFSKCVU.js} +19 -19
- package/dist/{chunk-OACWA4TC.js → chunk-3ZZZPT5G.js} +6 -6
- package/dist/{chunk-LQURV7HQ.js → chunk-47EOHGXM.js} +4 -4
- package/dist/{chunk-CGHYXWTT.js → chunk-4KRCT3Q2.js} +4 -4
- package/dist/chunk-4P3JA653.js +1129 -0
- package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
- package/dist/{chunk-BBKE4W3B.js → chunk-5Z26DU23.js} +7 -7
- package/dist/{chunk-7QXOGAN6.js → chunk-6CJYVYVN.js} +87 -538
- package/dist/{chunk-3HOHLQVP.js → chunk-6FGLABYH.js} +3 -3
- package/dist/{chunk-GQRSABRN.js → chunk-6Q4VVBFO.js} +4 -4
- package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
- package/dist/chunk-7JOW3LEH.js +4852 -0
- package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
- package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
- package/dist/{chunk-7GUPNTAH.js → chunk-7RD5RTHU.js} +7 -7
- package/dist/{chunk-X2VMIBK5.js → chunk-A36W77MQ.js} +4 -4
- package/dist/chunk-AZFHRLYF.js +67 -0
- package/dist/{chunk-CFFWYXDW.js → chunk-B6LYO33Y.js} +5 -5
- package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
- package/dist/{chunk-KHGW72BM.js → chunk-CH2XMCWX.js} +3 -3
- package/dist/{chunk-FNQJJO63.js → chunk-D46OKHTH.js} +4 -4
- package/dist/{chunk-LE44X5GS.js → chunk-D4YGYNNY.js} +9 -9
- package/dist/{chunk-T5574MXM.js → chunk-D7WD4SUC.js} +8 -8
- package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
- package/dist/chunk-EBZNUQ6E.js +525 -0
- package/dist/{chunk-22M75A3N.js → chunk-ED5UCYAV.js} +14 -11
- package/dist/{chunk-IQNVSQRK.js → chunk-EDVYLO2N.js} +5 -5
- package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
- package/dist/{chunk-POQTE7JI.js → chunk-EKQLIUV5.js} +7 -7
- package/dist/{chunk-ULGCGKOE.js → chunk-EKV3CVTY.js} +4 -4
- package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
- package/dist/{chunk-ZZSNTCCL.js → chunk-G7B2QUQP.js} +4 -4
- package/dist/{chunk-SB3DG572.js → chunk-GHRZC5LS.js} +6 -6
- package/dist/{chunk-5YWH2ANQ.js → chunk-GIC6T647.js} +11 -10
- package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
- package/dist/chunk-GV2KTRRP.js +325 -0
- package/dist/{chunk-4RBIWI2Q.js → chunk-GYL4KOPT.js} +3 -3
- package/dist/{chunk-5KSD4WKN.js → chunk-HB6UA6EF.js} +5 -5
- package/dist/{chunk-CGZXQ7PA.js → chunk-HNNNJP3A.js} +3 -3
- package/dist/chunk-HTWGTTSF.js +1011 -0
- package/dist/chunk-IH2F5UNQ.js +109 -0
- package/dist/{chunk-QNIKRB62.js → chunk-INYUL4DX.js} +4 -4
- package/dist/{chunk-SKRR3ZMP.js → chunk-IUB5TSSH.js} +3 -3
- package/dist/chunk-JGGSRKHW.js +344 -0
- package/dist/{chunk-ZR6HNKSN.js → chunk-JHHJNIW2.js} +3 -3
- package/dist/chunk-KBI442IB.js +113 -0
- package/dist/chunk-KBQJIVUB.js +33 -0
- package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
- package/dist/chunk-KNKR5TUM.js +183 -0
- package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
- package/dist/{chunk-5XPMY2LF.js → chunk-LKUAVDWP.js} +5 -5
- package/dist/{chunk-YHBI52P2.js → chunk-LPWSP523.js} +3 -3
- package/dist/{chunk-GLKFFA7N.js → chunk-LY7IJOUF.js} +5 -5
- package/dist/{chunk-R4Z7BINC.js → chunk-LYWQD5KL.js} +8 -8
- 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-T4ZFZTY6.js → chunk-N7DLNDER.js} +4 -4
- package/dist/{chunk-E2YZ7IMT.js → chunk-NDRQETOQ.js} +15 -11
- package/dist/{chunk-ZD3MOLIB.js → chunk-O7CPRU67.js} +4 -4
- package/dist/{chunk-OLLD2BZN.js → chunk-OEYKTHG7.js} +3 -3
- package/dist/{chunk-TX57TNJS.js → chunk-OG3H3RP2.js} +9 -9
- package/dist/{chunk-UGBNYSBN.js → chunk-PFKPKE6O.js} +20 -34
- package/dist/chunk-PRWPFBA5.js +619 -0
- package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
- package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
- package/dist/{chunk-6MMBQVRO.js → chunk-TDKKZA63.js} +9 -9
- package/dist/{chunk-HHYEAFCL.js → chunk-TDXHBS2C.js} +11 -11
- package/dist/{chunk-74AIU53R.js → chunk-THGGU64E.js} +3 -3
- package/dist/chunk-UHSGD4CD.js +364 -0
- package/dist/{chunk-HV2W6HUR.js → chunk-URAURI6G.js} +10 -10
- package/dist/{chunk-D6XO4JVM.js → chunk-UU6KUS5O.js} +42 -20
- package/dist/{chunk-NKG4N6HA.js → chunk-V7KEEDSF.js} +5 -4
- package/dist/{chunk-IEAWNA3V.js → chunk-VDFWWWLL.js} +3 -3
- package/dist/chunk-VHAA22YE.js +11 -0
- package/dist/chunk-WJB5GWAZ.js +20 -0
- package/dist/{chunk-KJ5JUS53.js → chunk-WM6DGNIA.js} +9 -9
- package/dist/{chunk-MFFA5MXY.js → chunk-WUXMLJEC.js} +5 -5
- package/dist/{chunk-YPNL2NBD.js → chunk-XNXBO44X.js} +33 -11
- package/dist/chunk-XPY3XT7L.js +5671 -0
- package/dist/{chunk-54SIZR63.js → chunk-XVFRDKZJ.js} +7 -7
- package/dist/{chunk-LYXPJERB.js → chunk-YDD46AX2.js} +5 -5
- package/dist/{chunk-NC63TYNW.js → chunk-YHQJGNXD.js} +7 -7
- package/dist/{chunk-I6WMNXC7.js → chunk-YKRE5NIH.js} +6 -6
- package/dist/{chunk-RJTVCA62.js → chunk-ZIEGUI25.js} +3 -3
- package/dist/{chunk-5DP7W5HX.js → chunk-ZLDWYTDA.js} +3 -3
- package/dist/color-input.d.ts +93 -0
- package/dist/color-input.js +36 -0
- package/dist/color-picker.d.ts +268 -0
- package/dist/color-picker.js +29 -0
- package/dist/color-value-DYzChVOW.d.ts +129 -0
- package/dist/combobox.d.ts +1 -1
- package/dist/combobox.js +14 -12
- package/dist/data-map.d.ts +1673 -0
- package/dist/data-map.js +36 -0
- package/dist/date-calendar.d.ts +49 -0
- package/dist/date-calendar.js +13 -0
- package/dist/date-input.d.ts +1 -1
- package/dist/date-input.js +12 -10
- package/dist/date-picker.d.ts +15 -131
- package/dist/date-picker.js +26 -21
- package/dist/date-types-CLZek3W2.d.ts +100 -0
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +10 -9
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.js +9 -8
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +5 -4
- package/dist/dropzone.d.ts +3 -3
- package/dist/dropzone.js +18 -16
- package/dist/file-trigger.js +1 -0
- package/dist/form.d.ts +15 -5
- package/dist/form.js +75 -35
- package/dist/header-navigation.d.ts +2 -2
- package/dist/header-navigation.js +20 -18
- package/dist/helper.d.ts +1 -1
- package/dist/helper.js +1 -0
- package/dist/illustration.js +1 -0
- package/dist/index.d.ts +26 -11
- package/dist/index.js +92 -77
- package/dist/indicator.js +5 -4
- package/dist/inline-banner.d.ts +68 -0
- package/dist/inline-banner.js +21 -0
- package/dist/input.d.ts +1 -1
- package/dist/input.js +11 -9
- package/dist/kanban-board.d.ts +2 -2
- package/dist/kanban-board.js +15 -13
- package/dist/labels-CuSlirP_.d.ts +1381 -0
- package/dist/line-chart.d.ts +2 -2
- package/dist/line-chart.js +8 -6
- package/dist/mcp.js +231 -0
- package/dist/number-input.d.ts +1 -1
- package/dist/number-input.js +11 -9
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +15 -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 +11 -9
- package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pie-chart.js +8 -6
- package/dist/popover.d.ts +65 -4
- package/dist/popover.js +9 -8
- package/dist/progress-steps.js +5 -4
- package/dist/progress.js +4 -3
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +4 -3
- package/dist/qr-code.d.ts +227 -0
- package/dist/qr-code.js +20 -0
- package/dist/radar-chart.d.ts +2 -2
- package/dist/radar-chart.js +8 -6
- package/dist/radial-chart.d.ts +2 -2
- package/dist/radial-chart.js +8 -6
- package/dist/radio.js +9 -7
- package/dist/rich-text-editor.d.ts +624 -0
- package/dist/rich-text-editor.js +52 -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 +1 -0
- package/dist/select.d.ts +2 -2
- package/dist/select.js +17 -15
- package/dist/separator.js +3 -2
- package/dist/shared-CGf2D8ZX.d.ts +20 -0
- package/dist/sidebar-navigation.d.ts +73 -32
- package/dist/sidebar-navigation.js +15 -13
- package/dist/sidebar-state.d.ts +76 -0
- package/dist/sidebar-state.js +27 -0
- package/dist/skeleton.js +3 -2
- package/dist/slider.d.ts +321 -0
- package/dist/slider.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +3 -2
- package/dist/table.d.ts +3 -19
- package/dist/table.js +34 -32
- package/dist/tabs.js +3 -2
- package/dist/tag-input.d.ts +3 -3
- package/dist/tag-input.js +14 -12
- package/dist/tag.d.ts +1 -1
- package/dist/tag.js +5 -4
- package/dist/textarea.js +9 -7
- package/dist/theme.css +965 -0
- package/dist/theme.js +13 -11
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +13 -11
- package/dist/tooltip.js +5 -3
- package/dist/tree.d.ts +1 -1
- package/dist/tree.js +7 -6
- package/dist/{types-DR9rAEy1.d.ts → types-BoZ6XeLB.d.ts} +1 -1
- package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-cHo2p7Gn.d.ts} +1 -1
- package/dist/verification-code-input.js +11 -9
- package/package.json +105 -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
|
@@ -0,0 +1,1381 @@
|
|
|
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 CAROUSEL_LABELS: {
|
|
86
|
+
/** The region's `aria-roledescription`. A screen reader reads it after the name, so a site that
|
|
87
|
+
* ships a Thai UI says "แกลเลอรี" rather than the English word. */
|
|
88
|
+
roleDescription: string;
|
|
89
|
+
/** Each slide's `aria-roledescription`. */
|
|
90
|
+
slideRoleDescription: string;
|
|
91
|
+
previous: string;
|
|
92
|
+
next: string;
|
|
93
|
+
/**
|
|
94
|
+
* The live region's text, and each slide's fallback accessible name.
|
|
95
|
+
*
|
|
96
|
+
* `index` is 1-based and `total` is the slide count — both already decided by the component, which
|
|
97
|
+
* is what a ctx carries: formatted display values, never an engine index. A language that puts the
|
|
98
|
+
* total first overrides the whole function rather than fighting the word order.
|
|
99
|
+
*/
|
|
100
|
+
slideOf: (ctx: {
|
|
101
|
+
index: number;
|
|
102
|
+
total: number;
|
|
103
|
+
}) => string;
|
|
104
|
+
/** Each indicator button, and each thumbnail. Deliberately not just "Slide 3" — the position is the
|
|
105
|
+
* whole information a dot carries, and "3" alone does not say how far there is to go. */
|
|
106
|
+
goToSlide: (ctx: {
|
|
107
|
+
index: number;
|
|
108
|
+
total: number;
|
|
109
|
+
}) => string;
|
|
110
|
+
/**
|
|
111
|
+
* Each indicator button once one press moves SEVERAL slides — `slides.perView > 1` or `step > 1`.
|
|
112
|
+
*
|
|
113
|
+
* A second key rather than a re-numbered `goToSlide`, because the component now has two countable
|
|
114
|
+
* things and they do not agree: the pips count PAGES (four items three-per-view is two pages, and
|
|
115
|
+
* `containScroll: "trimSnaps"` is what drops the third), while the thumbnail strip stays one thumb
|
|
116
|
+
* per SLIDE — a picture of slide 3 is not a picture of page 2. `goToSlide` keeps the strip and every
|
|
117
|
+
* ungrouped carousel's pips, so the default English of a one-slide-per-view carousel is unchanged.
|
|
118
|
+
*/
|
|
119
|
+
goToPage: (ctx: {
|
|
120
|
+
index: number;
|
|
121
|
+
total: number;
|
|
122
|
+
}) => string;
|
|
123
|
+
/** The indicator strip's group name. */
|
|
124
|
+
slides: string;
|
|
125
|
+
/** The thumbnail strip's group name. */
|
|
126
|
+
thumbnails: string;
|
|
127
|
+
/** The autoplay toggle, whose LABEL is the state (there is no `aria-pressed` — a toggle that
|
|
128
|
+
* changes both announces twice). */
|
|
129
|
+
pause: string;
|
|
130
|
+
play: string;
|
|
131
|
+
/** Announced when the toggle is used. */
|
|
132
|
+
paused: string;
|
|
133
|
+
playing: string;
|
|
134
|
+
};
|
|
135
|
+
type CarouselLabels = LabelOverrides<typeof CAROUSEL_LABELS>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Every string the colour family authors on the caller's behalf.
|
|
139
|
+
*
|
|
140
|
+
* Almost all of it is an accessible name or a live value readout — the half of a picker a sighted
|
|
141
|
+
* user never sees and a screen-reader user has nothing BUT. The value texts are `Label<Ctx>`
|
|
142
|
+
* functions rather than a `{token}` grammar, and their ctx carries already-FORMATTED display strings
|
|
143
|
+
* (`"62%"`, `"259"`), never numbers: rounding and percent notation are the component's decision, and
|
|
144
|
+
* the label only reorders words.
|
|
145
|
+
*/
|
|
146
|
+
declare const COLOR_PICKER_LABELS: {
|
|
147
|
+
/** The saturation plane, and the two tracks. */
|
|
148
|
+
area: string;
|
|
149
|
+
hue: string;
|
|
150
|
+
alpha: string;
|
|
151
|
+
/** A track that edits opacity as its OWN subject rather than as a colour's channel. */
|
|
152
|
+
opacity: string;
|
|
153
|
+
/** The Solid / Gradient strip. A single mode renders no strip, so these appear together. */
|
|
154
|
+
mode: string;
|
|
155
|
+
solid: string;
|
|
156
|
+
gradient: string;
|
|
157
|
+
/** The value row. */
|
|
158
|
+
format: string;
|
|
159
|
+
value: string;
|
|
160
|
+
alphaPercent: string;
|
|
161
|
+
eyedropper: string;
|
|
162
|
+
/** `<ColorInput>` — the bar, and the staged footer under `commit="confirm"`. */
|
|
163
|
+
placeholder: string;
|
|
164
|
+
openPicker: string;
|
|
165
|
+
required: string;
|
|
166
|
+
cancel: string;
|
|
167
|
+
apply: string;
|
|
168
|
+
/** The gradient body: the direction area, the type row, and the stop list. */
|
|
169
|
+
direction: string;
|
|
170
|
+
gradientType: string;
|
|
171
|
+
typeLinear: string;
|
|
172
|
+
typeRadial: string;
|
|
173
|
+
typeAngular: string;
|
|
174
|
+
typeDiamond: string;
|
|
175
|
+
reverse: string;
|
|
176
|
+
stops: string;
|
|
177
|
+
stopRail: string;
|
|
178
|
+
addStop: string;
|
|
179
|
+
stopOffset: string;
|
|
180
|
+
/** Each endpoint handle and each rail thumb names the stop it moves. */
|
|
181
|
+
stopAt: (c: {
|
|
182
|
+
percent: string;
|
|
183
|
+
}) => string;
|
|
184
|
+
removeStop: (c: {
|
|
185
|
+
percent: string;
|
|
186
|
+
}) => string;
|
|
187
|
+
/** The swatch grid and its header. */
|
|
188
|
+
saved: string;
|
|
189
|
+
add: string;
|
|
190
|
+
swatches: string;
|
|
191
|
+
emptyPalette: string;
|
|
192
|
+
gradientSwatches: string;
|
|
193
|
+
emptyGradients: string;
|
|
194
|
+
areaValue: (c: {
|
|
195
|
+
saturation: string;
|
|
196
|
+
brightness: string;
|
|
197
|
+
}) => string;
|
|
198
|
+
hueValue: (c: {
|
|
199
|
+
degrees: string;
|
|
200
|
+
}) => string;
|
|
201
|
+
alphaValue: (c: {
|
|
202
|
+
percent: string;
|
|
203
|
+
}) => string;
|
|
204
|
+
swatch: (c: {
|
|
205
|
+
color: string;
|
|
206
|
+
}) => string;
|
|
207
|
+
addSwatch: (c: {
|
|
208
|
+
color: string;
|
|
209
|
+
}) => string;
|
|
210
|
+
gradientSwatch: (c: {
|
|
211
|
+
gradient: string;
|
|
212
|
+
}) => string;
|
|
213
|
+
addGradientSwatch: (c: {
|
|
214
|
+
gradient: string;
|
|
215
|
+
}) => string;
|
|
216
|
+
};
|
|
217
|
+
type ColorPickerLabels = LabelOverrides<typeof COLOR_PICKER_LABELS>;
|
|
218
|
+
|
|
219
|
+
declare const COMBOBOX_LABELS: {
|
|
220
|
+
/** The trigger that opens the list without typing. */
|
|
221
|
+
showOptions: string;
|
|
222
|
+
/** The ✕ that empties the input. */
|
|
223
|
+
clear: string;
|
|
224
|
+
/** A multi-value chip's remove button, named after the value it drops. */
|
|
225
|
+
removeValue: (ctx: {
|
|
226
|
+
label: string;
|
|
227
|
+
}) => string;
|
|
228
|
+
/** The free-text creation row. */
|
|
229
|
+
create: (ctx: {
|
|
230
|
+
query: string;
|
|
231
|
+
}) => string;
|
|
232
|
+
/** Defaults behind the `placeholder`, `emptyMessage` and loading props — each prop still wins. */
|
|
233
|
+
placeholder: string;
|
|
234
|
+
emptyMessage: string;
|
|
235
|
+
loading: string;
|
|
236
|
+
};
|
|
237
|
+
type ComboboxLabels = LabelOverrides<typeof COMBOBOX_LABELS>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Every user-facing string the map authors that the caller never passes in.
|
|
241
|
+
*
|
|
242
|
+
* AGENTS §4: the library never owns the words. Each default here is the exact English it would
|
|
243
|
+
* otherwise have been hard-coded as, reachable through the same two composing layers as everything
|
|
244
|
+
* else — an app-wide `<JenosizeUIProvider labels={{ map: {…} }}>` and a per-instance `labels` prop,
|
|
245
|
+
* which wins because it is the more specific statement.
|
|
246
|
+
*
|
|
247
|
+
* **Per-instance CONTENT is not a label and stays a prop.** A layer's `label`, a `MapLevel.label`
|
|
248
|
+
* (จังหวัด / อำเภอ / ตำบล), a `MapCategory.label` and `renderPopup`'s output are the caller's own
|
|
249
|
+
* words and win outright. What lives here is the chrome: the region's name, the controls, the states,
|
|
250
|
+
* the legend's own words, and the announcements a screen-reader user needs because the canvas says
|
|
251
|
+
* nothing.
|
|
252
|
+
*
|
|
253
|
+
* **A ctx carries already-FORMATTED strings** — `count: string`, never `count: number`. The component
|
|
254
|
+
* owns locale and number formatting; the label only reorders words, because a `{token}` grammar
|
|
255
|
+
* cannot express a plural and `Intl.PluralRules` belongs to the app.
|
|
256
|
+
*
|
|
257
|
+
* ## D4 — the engine's own strings are in here too
|
|
258
|
+
*
|
|
259
|
+
* `10-corrections.md` C1 found the hole: MapLibre ships `MapOptions.locale`, a patch table of 26
|
|
260
|
+
* namespaced UI strings, and we never passed it — so `Marker.Title` and the cooperative-gesture help
|
|
261
|
+
* text rendered **English from inside the contained engine adapter, where `pnpm i18n:check` cannot
|
|
262
|
+
* see**. A Thai app showed a Thai UI with an English "Map marker" on every pin. The `engineLocale`
|
|
263
|
+
* group below is what closes it; `style.ts` threads it into the constructor.
|
|
264
|
+
*/
|
|
265
|
+
declare const MAP_LABELS: {
|
|
266
|
+
/** The map region's accessible name, when the caller gives no `aria-label`. */
|
|
267
|
+
region: string;
|
|
268
|
+
/** `aria-roledescription` on the region — a screen reader reads it after the name, so a Thai UI
|
|
269
|
+
* says "แผนที่" instead of the English word. */
|
|
270
|
+
roleDescription: string;
|
|
271
|
+
zoomIn: string;
|
|
272
|
+
zoomOut: string;
|
|
273
|
+
resetView: string;
|
|
274
|
+
/** Frame everything currently drawn. R5 §A — ~84% of the canvas was empty and there was no way to
|
|
275
|
+
* say "fill the frame". */
|
|
276
|
+
fitToData: string;
|
|
277
|
+
fullscreen: string;
|
|
278
|
+
exitFullscreen: string;
|
|
279
|
+
scaleBar: string;
|
|
280
|
+
/** The button that leaves the current level. Distinct from a browser "back". */
|
|
281
|
+
drillUp: string;
|
|
282
|
+
/**
|
|
283
|
+
* The ROOT crumb — the whole dataset, before any drill.
|
|
284
|
+
*
|
|
285
|
+
* Its own key because the root frame has no `parentLabel` by construction (nothing was drilled
|
|
286
|
+
* INTO to reach it), and the trail borrowed `labels.legend` for the fallback — so the first crumb
|
|
287
|
+
* of every drill on every map read the word **"Legend"**.
|
|
288
|
+
*/
|
|
289
|
+
drillRoot: string;
|
|
290
|
+
/** A crumb that is a real destination. `level` is the caller's own word for it. */
|
|
291
|
+
drillTo: (ctx: {
|
|
292
|
+
level: string;
|
|
293
|
+
}) => string;
|
|
294
|
+
layers: string;
|
|
295
|
+
showLayer: (ctx: {
|
|
296
|
+
layer: string;
|
|
297
|
+
}) => string;
|
|
298
|
+
hideLayer: (ctx: {
|
|
299
|
+
layer: string;
|
|
300
|
+
}) => string;
|
|
301
|
+
/** The kind's own word, used when a layer has no `label` of its own. */
|
|
302
|
+
kindChoropleth: string;
|
|
303
|
+
kindPoints: string;
|
|
304
|
+
kindHeatmap: string;
|
|
305
|
+
kindLines: string;
|
|
306
|
+
kindAreas: string;
|
|
307
|
+
kindRaster: string;
|
|
308
|
+
/** The popup's own close button. It used to be an `sr-only` "×", so a mouse user had a card and no
|
|
309
|
+
* visible way to dismiss it. */
|
|
310
|
+
closePopup: string;
|
|
311
|
+
play: string;
|
|
312
|
+
pause: string;
|
|
313
|
+
timeFrame: string;
|
|
314
|
+
loading: string;
|
|
315
|
+
/** Shown when WebGL is unavailable — a permanent state, so it must not offer a retry. */
|
|
316
|
+
unsupported: string;
|
|
317
|
+
loadError: string;
|
|
318
|
+
retry: string;
|
|
319
|
+
/** No feature joined at all: the geometry loaded and nothing matched. Usually a `joinOn` mismatch,
|
|
320
|
+
* which is why the wording points at the data rather than at the network. */
|
|
321
|
+
empty: string;
|
|
322
|
+
legend: string;
|
|
323
|
+
/** The collapse toggle — `legend="collapsed"` only; no other form folds. */
|
|
324
|
+
showLegend: string;
|
|
325
|
+
hideLegend: string;
|
|
326
|
+
/** A section heading in a STACKED legend — with N layers, "Legend" no longer identifies a ramp. */
|
|
327
|
+
legendFor: (ctx: {
|
|
328
|
+
layer: string;
|
|
329
|
+
}) => string;
|
|
330
|
+
/**
|
|
331
|
+
* The `no data` swatch.
|
|
332
|
+
*
|
|
333
|
+
* Load-bearing, not decoration: without it a reader has no way to tell an unjoined region from a
|
|
334
|
+
* region whose value is genuinely `0`, which is the classic choropleth lie.
|
|
335
|
+
*/
|
|
336
|
+
noData: string;
|
|
337
|
+
/** A class whose range is a single value — every feature in it shares one number. */
|
|
338
|
+
binExact: (ctx: {
|
|
339
|
+
value: string;
|
|
340
|
+
}) => string;
|
|
341
|
+
/** A class's range. `from`/`to` arrive ALREADY FORMATTED. */
|
|
342
|
+
binRange: (ctx: {
|
|
343
|
+
from: string;
|
|
344
|
+
to: string;
|
|
345
|
+
}) => string;
|
|
346
|
+
/** The topmost class, which is open-ended. */
|
|
347
|
+
binFrom: (ctx: {
|
|
348
|
+
from: string;
|
|
349
|
+
}) => string;
|
|
350
|
+
/** The denominator, carried into the legend. R3 row 21: a rate whose base is not stated lies. */
|
|
351
|
+
rateSuffix: (ctx: {
|
|
352
|
+
per: string;
|
|
353
|
+
}) => string;
|
|
354
|
+
/** A density surface has no classes, so its legend is a gradient with two ends. */
|
|
355
|
+
heatLow: string;
|
|
356
|
+
heatHigh: string;
|
|
357
|
+
/**
|
|
358
|
+
* A cluster bubble's accessible name. `count` arrives ALREADY FORMATTED — see the header.
|
|
359
|
+
*/
|
|
360
|
+
clusterOf: (ctx: {
|
|
361
|
+
count: string;
|
|
362
|
+
}) => string;
|
|
363
|
+
/** The list that IS the accessible rendering of a point layer. */
|
|
364
|
+
markerList: string;
|
|
365
|
+
/** The whole projection's heading, when it is shown rather than `sr-only`. */
|
|
366
|
+
tableHeading: string;
|
|
367
|
+
/** One section per layer. `kind` is already the localised word from the `kind*` keys above. */
|
|
368
|
+
layerSection: (ctx: {
|
|
369
|
+
layer: string;
|
|
370
|
+
kind: string;
|
|
371
|
+
}) => string;
|
|
372
|
+
/** The accessible table's caption. Layer-qualified AND level-qualified: with N layers "Provinces"
|
|
373
|
+
* no longer identifies which table this is. */
|
|
374
|
+
tableCaption: (ctx: {
|
|
375
|
+
layer: string;
|
|
376
|
+
level: string;
|
|
377
|
+
}) => string;
|
|
378
|
+
tableRegionColumn: string;
|
|
379
|
+
tableValueColumn: string;
|
|
380
|
+
tableCategoryColumn: string;
|
|
381
|
+
/** Above the budget, a section summarises instead of enumerating — see `text-alternative.tsx`. */
|
|
382
|
+
summaryOf: (ctx: {
|
|
383
|
+
count: string;
|
|
384
|
+
layer: string;
|
|
385
|
+
}) => string;
|
|
386
|
+
rangeOf: (ctx: {
|
|
387
|
+
from: string;
|
|
388
|
+
to: string;
|
|
389
|
+
}) => string;
|
|
390
|
+
topN: (ctx: {
|
|
391
|
+
n: string;
|
|
392
|
+
}) => string;
|
|
393
|
+
showAllRows: (ctx: {
|
|
394
|
+
count: string;
|
|
395
|
+
}) => string;
|
|
396
|
+
/** A layer the reader has switched OFF. Rendered `hidden`, not `sr-only`: it is genuinely not being
|
|
397
|
+
* shown, and the two spellings mean different things. */
|
|
398
|
+
hiddenLayer: (ctx: {
|
|
399
|
+
layer: string;
|
|
400
|
+
}) => string;
|
|
401
|
+
/** Imagery has no data to project, and claiming otherwise is a false green. */
|
|
402
|
+
rasterOnly: (ctx: {
|
|
403
|
+
layer: string;
|
|
404
|
+
}) => string;
|
|
405
|
+
/** A density surface has no features to enumerate. */
|
|
406
|
+
densityOnly: (ctx: {
|
|
407
|
+
layer: string;
|
|
408
|
+
count: string;
|
|
409
|
+
}) => string;
|
|
410
|
+
/** D2 — the data export the projection makes free, because we hold the rows and nobody else does. */
|
|
411
|
+
copyData: string;
|
|
412
|
+
copiedData: string;
|
|
413
|
+
drilledInto: (ctx: {
|
|
414
|
+
parent: string;
|
|
415
|
+
level: string;
|
|
416
|
+
count: number;
|
|
417
|
+
}) => string;
|
|
418
|
+
drilledUpTo: (ctx: {
|
|
419
|
+
level: string;
|
|
420
|
+
count: number;
|
|
421
|
+
}) => string;
|
|
422
|
+
layerShown: (ctx: {
|
|
423
|
+
layer: string;
|
|
424
|
+
}) => string;
|
|
425
|
+
layerHidden: (ctx: {
|
|
426
|
+
layer: string;
|
|
427
|
+
}) => string;
|
|
428
|
+
frameChanged: (ctx: {
|
|
429
|
+
frame: string;
|
|
430
|
+
}) => string;
|
|
431
|
+
selectionCleared: string;
|
|
432
|
+
/**
|
|
433
|
+
* One layer's clause in the live region's opening description, for a map with NO choropleth —
|
|
434
|
+
* the five kinds the announcement used to return `""` for.
|
|
435
|
+
*
|
|
436
|
+
* Its own key rather than a second use of `summaryOf`: that one is the accessible TABLE's section
|
|
437
|
+
* summary and reads as a caption ("Stores: 400 items shown."), while this is spoken the moment the
|
|
438
|
+
* map appears. Sharing the string made both sentences the same words in two places, which is how
|
|
439
|
+
* a translator gets one of them wrong. `count` arrives ALREADY FORMATTED.
|
|
440
|
+
*/
|
|
441
|
+
showingLayer: (ctx: {
|
|
442
|
+
layer: string;
|
|
443
|
+
count: string;
|
|
444
|
+
}) => string;
|
|
445
|
+
/** MapLibre's `Marker.Title` — a DOM marker's `title` attribute. English on every pin today. */
|
|
446
|
+
engineMarkerTitle: string;
|
|
447
|
+
/** `CooperativeGesturesHandler.WindowsHelpText`. */
|
|
448
|
+
engineGestureCtrl: string;
|
|
449
|
+
/** `CooperativeGesturesHandler.MacHelpText`. */
|
|
450
|
+
engineGestureMac: string;
|
|
451
|
+
/** `CooperativeGesturesHandler.MobileHelpText`. */
|
|
452
|
+
engineGestureTouch: string;
|
|
453
|
+
/** `Popup.Close`. We render our own popups, but the engine's is one `addProtocol` away from being
|
|
454
|
+
* reachable and the string costs nothing to cover. */
|
|
455
|
+
engineClosePopup: string;
|
|
456
|
+
};
|
|
457
|
+
type MapLabels = LabelOverrides<typeof MAP_LABELS>;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Each segment's accessible name. Untranslated, a DateInput announces "Month, spinbutton" in English
|
|
461
|
+
* inside an otherwise Thai form — the segments are what the user actually focuses, so this is the
|
|
462
|
+
* whole control as far as a screen reader is concerned.
|
|
463
|
+
*
|
|
464
|
+
* `dayPeriod` is a FORMAT rather than prose in many locales; the key exists because some do
|
|
465
|
+
* translate it, and leaving one member of a seven-member table untranslatable is worse than
|
|
466
|
+
* offering it.
|
|
467
|
+
*/
|
|
468
|
+
declare const DATE_INPUT_LABELS: {
|
|
469
|
+
month: string;
|
|
470
|
+
day: string;
|
|
471
|
+
year: string;
|
|
472
|
+
hour: string;
|
|
473
|
+
minute: string;
|
|
474
|
+
second: string;
|
|
475
|
+
dayPeriod: string;
|
|
476
|
+
};
|
|
477
|
+
type DateInputLabels = LabelOverrides<typeof DATE_INPUT_LABELS>;
|
|
478
|
+
|
|
479
|
+
/** One scope for the whole picker family — `DatePicker`, `DateRangePicker` and the two calendars,
|
|
480
|
+
* which share `picker-shared.tsx`. */
|
|
481
|
+
declare const DATE_PICKER_LABELS: {
|
|
482
|
+
/** The trigger's accessible name when the field has no `label`. */
|
|
483
|
+
openCalendar: string;
|
|
484
|
+
openRange: string;
|
|
485
|
+
/** The two typed segments of a range. */
|
|
486
|
+
startDate: string;
|
|
487
|
+
endDate: string;
|
|
488
|
+
/** The confirm footer, shown under `commit="confirm"`. */
|
|
489
|
+
cancel: string;
|
|
490
|
+
apply: string;
|
|
491
|
+
/** Defaults behind the `placeholder` props — each prop still wins. */
|
|
492
|
+
placeholder: string;
|
|
493
|
+
rangePlaceholder: string;
|
|
494
|
+
/** Defaults behind the standalone calendars' `aria-label`. */
|
|
495
|
+
calendarName: string;
|
|
496
|
+
rangeCalendarName: string;
|
|
497
|
+
/**
|
|
498
|
+
* Appended to the trigger's accessible name when the field is required, visually hidden —
|
|
499
|
+
* `aria-required` is illegal on `role="button"`, so the requirement has to travel in the NAME.
|
|
500
|
+
*
|
|
501
|
+
* Deliberately the bare word, NOT the `", required"` that `FIELD_LABELS` and `DROPZONE_LABELS`
|
|
502
|
+
* carry: this converts an existing literal and the pass's rule is that a default is byte-identical
|
|
503
|
+
* to what it replaced. The three spellings SHOULD agree — the comma is a pause a screen reader
|
|
504
|
+
* honours — but changing what a picker announces is a decision, not a conversion.
|
|
505
|
+
*/
|
|
506
|
+
required: string;
|
|
507
|
+
};
|
|
508
|
+
type DatePickerLabels = LabelOverrides<typeof DATE_PICKER_LABELS>;
|
|
509
|
+
|
|
510
|
+
declare const DROPZONE_LABELS: {
|
|
511
|
+
/** The bright half of the prompt — a real `<button>`, which is why it is its own key. */
|
|
512
|
+
clickToUpload: string;
|
|
513
|
+
/**
|
|
514
|
+
* The muted remainder of the same sentence.
|
|
515
|
+
*
|
|
516
|
+
* The two halves are ONE sentence split across an element boundary for styling, and the styled
|
|
517
|
+
* action always comes first. A language that cannot keep that order sets `clickToUpload` to the
|
|
518
|
+
* whole phrase and `dragAndDrop` to `""` (or the reverse) — deliberately a documented workaround
|
|
519
|
+
* rather than a third "whole sentence" key, because interpolating a styled NODE would mean a ctx
|
|
520
|
+
* carrying markup, which this layer does not do.
|
|
521
|
+
*/
|
|
522
|
+
dragAndDrop: string;
|
|
523
|
+
/** Appended to the zone's accessible name when the field is required. */
|
|
524
|
+
required: string;
|
|
525
|
+
};
|
|
526
|
+
type DropzoneLabels = LabelOverrides<typeof DROPZONE_LABELS>;
|
|
527
|
+
declare const FILE_LIST_LABELS: {
|
|
528
|
+
/** The three status words, visible beside each row's glyph. */
|
|
529
|
+
statusUploading: string;
|
|
530
|
+
statusComplete: string;
|
|
531
|
+
statusFailed: string;
|
|
532
|
+
/** The row affordance's verb, which also composes into its accessible name. */
|
|
533
|
+
cancel: string;
|
|
534
|
+
remove: string;
|
|
535
|
+
/** The retry link under a failed row. */
|
|
536
|
+
retry: string;
|
|
537
|
+
/** The fallback failure line, when the upload reported no error of its own. */
|
|
538
|
+
uploadFailed: string;
|
|
539
|
+
/** A bare "Remove" makes a five-row list announce five identical buttons, so the file's name is
|
|
540
|
+
* part of the name. */
|
|
541
|
+
actionForFile: (ctx: {
|
|
542
|
+
verb: string;
|
|
543
|
+
name: string;
|
|
544
|
+
}) => string;
|
|
545
|
+
/** The progress bar's name while a row uploads. */
|
|
546
|
+
uploading: (ctx: {
|
|
547
|
+
name: string;
|
|
548
|
+
}) => string;
|
|
549
|
+
};
|
|
550
|
+
type FileListLabels = LabelOverrides<typeof FILE_LIST_LABELS>;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The Field frame's own copy. It lives on `FieldFrame` / `FieldGroupFrame`, so ONE table serves all
|
|
554
|
+
* 14 Field controls — this is deliberately NOT a per-control `labels` prop, because the frame-parity
|
|
555
|
+
* contract (AGENTS §6) is about the shared frame PROPS and this string is the frame's own.
|
|
556
|
+
*/
|
|
557
|
+
declare const FIELD_LABELS: {
|
|
558
|
+
/** Appended to a required control's accessible name, visually hidden. Leading comma included:
|
|
559
|
+
* it is a name FRAGMENT ("Email, required"), not a sentence. */
|
|
560
|
+
required: string;
|
|
561
|
+
};
|
|
562
|
+
type FieldLabels = LabelOverrides<typeof FIELD_LABELS>;
|
|
563
|
+
|
|
564
|
+
declare const HEADER_NAVIGATION_LABELS: {
|
|
565
|
+
/** The mobile drawer trigger's tooltip, which is also its accessible name. */
|
|
566
|
+
openNavigation: string;
|
|
567
|
+
/** The brand lockup, which is a link with a logo inside and therefore no text of its own. */
|
|
568
|
+
homepage: string;
|
|
569
|
+
};
|
|
570
|
+
type HeaderNavigationLabels = LabelOverrides<typeof HEADER_NAVIGATION_LABELS>;
|
|
571
|
+
|
|
572
|
+
/** The password reveal toggle, whose name flips with state — it names the ACTION, not the state. */
|
|
573
|
+
declare const INPUT_LABELS: {
|
|
574
|
+
showPassword: string;
|
|
575
|
+
hidePassword: string;
|
|
576
|
+
};
|
|
577
|
+
type InputLabels = LabelOverrides<typeof INPUT_LABELS>;
|
|
578
|
+
|
|
579
|
+
declare const KANBAN_BOARD_LABELS: {
|
|
580
|
+
expandColumn: string;
|
|
581
|
+
collapseColumn: string;
|
|
582
|
+
/** The per-column overflow menu's trigger tooltip. */
|
|
583
|
+
columnActions: string;
|
|
584
|
+
/** The fallback behind a column's own `emptyMessage`. */
|
|
585
|
+
emptyColumn: string;
|
|
586
|
+
loadMore: string;
|
|
587
|
+
loading: string;
|
|
588
|
+
loadFailed: string;
|
|
589
|
+
grabbed: (ctx: {
|
|
590
|
+
label: string;
|
|
591
|
+
}) => string;
|
|
592
|
+
/**
|
|
593
|
+
* The cursor's position, as a FRAGMENT composed into three other messages.
|
|
594
|
+
*
|
|
595
|
+
* It stays a separate key precisely because it is a fragment: a translation that reorders
|
|
596
|
+
* "lane, column, position N of M" cannot do so if the phrase is baked into its three callers.
|
|
597
|
+
* The ctx carries already-resolved display titles, never board internals.
|
|
598
|
+
*/
|
|
599
|
+
positionText: (ctx: {
|
|
600
|
+
lane?: string;
|
|
601
|
+
column: string;
|
|
602
|
+
index: number;
|
|
603
|
+
total: number;
|
|
604
|
+
}) => string;
|
|
605
|
+
position: (ctx: {
|
|
606
|
+
label: string;
|
|
607
|
+
position: string;
|
|
608
|
+
}) => string;
|
|
609
|
+
dropped: (ctx: {
|
|
610
|
+
label: string;
|
|
611
|
+
position: string;
|
|
612
|
+
}) => string;
|
|
613
|
+
cancelled: (ctx: {
|
|
614
|
+
label: string;
|
|
615
|
+
column: string;
|
|
616
|
+
}) => string;
|
|
617
|
+
/** The COLUMN reorder (Alt+←/→ on a header), announced through the same one status region. */
|
|
618
|
+
columnMoved: (ctx: {
|
|
619
|
+
column: string;
|
|
620
|
+
index: number;
|
|
621
|
+
total: number;
|
|
622
|
+
}) => string;
|
|
623
|
+
/**
|
|
624
|
+
* Every card's `aria-describedby` — the longest single sentence the board speaks, and the last one
|
|
625
|
+
* still hard-coded. It hid in a module `const`, which is a shape no gate rule matches, behind a
|
|
626
|
+
* `sr-only` the line-scoped `sr-only` rule could not see across.
|
|
627
|
+
*/
|
|
628
|
+
grabHint: string;
|
|
629
|
+
/**
|
|
630
|
+
* `aria-roledescription` — spoken IN PLACE OF the role, so an untranslated value leaves a screen
|
|
631
|
+
* reader with no fallback at all. Three of them, and the gate had no rule for the attribute.
|
|
632
|
+
*/
|
|
633
|
+
roleBoard: string;
|
|
634
|
+
roleColumn: string;
|
|
635
|
+
roleCard: string;
|
|
636
|
+
};
|
|
637
|
+
type KanbanBoardLabels = LabelOverrides<typeof KANBAN_BOARD_LABELS>;
|
|
638
|
+
|
|
639
|
+
/** The stepper's two affordances. Both increment buttons (the ± pair and the chevron stack) share
|
|
640
|
+
* one name — they are the same action drawn twice, and a screen reader should not learn two. */
|
|
641
|
+
declare const NUMBER_INPUT_LABELS: {
|
|
642
|
+
decrease: string;
|
|
643
|
+
increase: string;
|
|
644
|
+
};
|
|
645
|
+
type NumberInputLabels = LabelOverrides<typeof NUMBER_INPUT_LABELS>;
|
|
646
|
+
|
|
647
|
+
declare const PAGINATION_LABELS: {
|
|
648
|
+
/** The `<nav>` landmark. */
|
|
649
|
+
nav: string;
|
|
650
|
+
/** VISIBLE — the readout word before the page number. */
|
|
651
|
+
page: string;
|
|
652
|
+
/**
|
|
653
|
+
* VISIBLE — the words AFTER the page number, carrying the total: `Page` [3] `of 12`.
|
|
654
|
+
*
|
|
655
|
+
* Two keys bracketing the number rather than one whole-sentence key, because under `goto` the
|
|
656
|
+
* middle of that sentence is an `<input>`. A label returns a STRING, so it cannot wrap a node —
|
|
657
|
+
* the field has to sit between two labels. Thai keeps the same order (`หน้า` 3 `จาก 12`), so the
|
|
658
|
+
* bracket is a fit here and not a compromise; a language that puts the total first would need
|
|
659
|
+
* this pair rethought, and the existing `page` key already carried that constraint.
|
|
660
|
+
*/
|
|
661
|
+
ofTotal: (ctx: {
|
|
662
|
+
total: number;
|
|
663
|
+
}) => string;
|
|
664
|
+
/** The jump input's accessible name. */
|
|
665
|
+
goToPage: string;
|
|
666
|
+
/** Each numbered button. */
|
|
667
|
+
pageNumber: (ctx: {
|
|
668
|
+
page: number;
|
|
669
|
+
}) => string;
|
|
670
|
+
/** VISIBLE and also the select's accessible name — one key, both sites, because they are one
|
|
671
|
+
* phrase and a translation that split them would be saying two things. */
|
|
672
|
+
rowsPerPage: string;
|
|
673
|
+
/**
|
|
674
|
+
* VISIBLE — the result count beside the pager.
|
|
675
|
+
*
|
|
676
|
+
* `formatted` arrives already locale-grouped (`"1,204"`), because formatting is the component's
|
|
677
|
+
* decision and a translator must never have to reimplement `toLocaleString`. `count` is the raw
|
|
678
|
+
* number, there for a plural rule: English owns its own two-form branch here, so a language with
|
|
679
|
+
* three forms overrides the whole function rather than fighting a hard-coded `s`.
|
|
680
|
+
*/
|
|
681
|
+
results: (ctx: {
|
|
682
|
+
count: number;
|
|
683
|
+
formatted: string;
|
|
684
|
+
}) => string;
|
|
685
|
+
first: string;
|
|
686
|
+
previous: string;
|
|
687
|
+
next: string;
|
|
688
|
+
last: string;
|
|
689
|
+
};
|
|
690
|
+
type PaginationLabels = LabelOverrides<typeof PAGINATION_LABELS>;
|
|
691
|
+
|
|
692
|
+
/** The two validation sentences the control writes itself. Both already have per-instance props
|
|
693
|
+
* (`brandError` / `luhnError`); this is what those props default to. */
|
|
694
|
+
declare const PAYMENT_INPUT_LABELS: {
|
|
695
|
+
brandError: string;
|
|
696
|
+
luhnError: string;
|
|
697
|
+
};
|
|
698
|
+
type PaymentInputLabels = LabelOverrides<typeof PAYMENT_INPUT_LABELS>;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Four strings. The accessible name is the interesting one: it is a sentence with a hole, so it is a
|
|
702
|
+
* `Label<Ctx>` function rather than a `{token}` grammar — a grammar cannot express a plural and `Intl`
|
|
703
|
+
* belongs to the app. Its ctx carries the value as an already-FORMATTED display string, never a URL
|
|
704
|
+
* object, because reordering words is all a translator should have to do.
|
|
705
|
+
*/
|
|
706
|
+
declare const QR_CODE_LABELS: {
|
|
707
|
+
/** The `sr-only` text the `role="img"` svg is named by. */
|
|
708
|
+
name: (ctx: {
|
|
709
|
+
value: string;
|
|
710
|
+
}) => string;
|
|
711
|
+
/** Shown in place of the name when `value` did not encode. */
|
|
712
|
+
unavailable: string;
|
|
713
|
+
downloadPng: string;
|
|
714
|
+
downloadSvg: string;
|
|
715
|
+
};
|
|
716
|
+
type QrCodeLabels = LabelOverrides<typeof QR_CODE_LABELS>;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* The editor's copy. **Every toolbar control's accessible name lives here**, because a toolbar is
|
|
720
|
+
* ~13 icon-only buttons and an icon-only button's name IS its whole announcement — a hard-coded
|
|
721
|
+
* literal there is a component that cannot be translated at all, not a cosmetic slip.
|
|
722
|
+
*
|
|
723
|
+
* Two things deliberately NOT in this table:
|
|
724
|
+
*
|
|
725
|
+
* - **`placeholder`** — it is per-instance CONTENT, so it stays a prop. Same rule as
|
|
726
|
+
* `emptyMessage`/`label` elsewhere in the library: the table only supplies what a prop DEFAULTS
|
|
727
|
+
* to, and this one has no default worth having.
|
|
728
|
+
* - **The keyboard shortcut hints** (`⌘B`). They are not copy — the modifier glyph is a platform
|
|
729
|
+
* fact and the letter comes from Tiptap's own keymap, so a translator overriding them could only
|
|
730
|
+
* make them wrong. They are composed at the call site from {@link RICH_TEXT_EDITOR_LABELS.shortcut}
|
|
731
|
+
* plus the registry's own `shortcut` string.
|
|
732
|
+
*
|
|
733
|
+
* Per AGENTS §4, every default here is the exact English the component would otherwise have
|
|
734
|
+
* hard-coded, so adding this table changes no rendered pixel.
|
|
735
|
+
*/
|
|
736
|
+
declare const RICH_TEXT_EDITOR_LABELS: {
|
|
737
|
+
/** The `role="toolbar"` container's accessible name. */
|
|
738
|
+
toolbar: string;
|
|
739
|
+
/** The editable region itself, when the caller supplies no `label`/`aria-label`. */
|
|
740
|
+
editor: string;
|
|
741
|
+
/** The bubble strip's own name. **Distinct from {@link RICH_TEXT_EDITOR_LABELS.toolbar} on purpose**:
|
|
742
|
+
* with a `bubbleToolbar` configured there are two `role="toolbar"` regions on the page, and two of
|
|
743
|
+
* them answering to "Text formatting" is a landmark list a screen-reader user cannot navigate. */
|
|
744
|
+
bubbleToolbar: string;
|
|
745
|
+
/** The slash menu's `role="listbox"`. It is not "Commands" — the name has to say how it was reached,
|
|
746
|
+
* because it is the only surface here a user opens by typing a punctuation mark. */
|
|
747
|
+
slashMenu: string;
|
|
748
|
+
/** The `@` menu's `role="listbox"`. */
|
|
749
|
+
mentionMenu: string;
|
|
750
|
+
/** Shown in the `@` menu while the caller's `mentions` function has not answered yet. */
|
|
751
|
+
mentionLoading: string;
|
|
752
|
+
/** Shown when it answered with nobody. **The one status message that is not optional**: an empty
|
|
753
|
+
* directory result is an ANSWER, and a surface that closed instead would read as the feature being
|
|
754
|
+
* broken. The SLASH menu still has no equivalent — there, no rows means the character was prose. */
|
|
755
|
+
mentionEmpty: string;
|
|
756
|
+
bold: string;
|
|
757
|
+
italic: string;
|
|
758
|
+
underline: string;
|
|
759
|
+
strike: string;
|
|
760
|
+
clearFormat: string;
|
|
761
|
+
/** The block-type `<Select>`'s accessible name. */
|
|
762
|
+
blockType: string;
|
|
763
|
+
paragraph: string;
|
|
764
|
+
heading1: string;
|
|
765
|
+
heading2: string;
|
|
766
|
+
heading3: string;
|
|
767
|
+
bulletList: string;
|
|
768
|
+
orderedList: string;
|
|
769
|
+
indent: string;
|
|
770
|
+
outdent: string;
|
|
771
|
+
link: string;
|
|
772
|
+
/** The popover's own heading, when editing an existing link rather than adding one. */
|
|
773
|
+
editLink: string;
|
|
774
|
+
/** The URL field's visible label. */
|
|
775
|
+
linkUrl: string;
|
|
776
|
+
/** Confirm button in the link popover. */
|
|
777
|
+
linkApply: string;
|
|
778
|
+
/** Removes the mark without touching the text it covered. */
|
|
779
|
+
linkRemove: string;
|
|
780
|
+
/** Opens the current target in a new tab. */
|
|
781
|
+
linkOpen: string;
|
|
782
|
+
/** The strip that appears over a link the caret is sitting in. **Distinct from every other toolbar
|
|
783
|
+
* name in this table on purpose**, on the grounds {@link RICH_TEXT_EDITOR_LABELS.bubbleToolbar}
|
|
784
|
+
* gives: two `role="toolbar"` regions answering to one name is a landmark list nobody can
|
|
785
|
+
* navigate. "Actions" rather than "Link", which is already the TOOL's name. */
|
|
786
|
+
linkToolbar: string;
|
|
787
|
+
blockquote: string;
|
|
788
|
+
hr: string;
|
|
789
|
+
code: string;
|
|
790
|
+
codeBlock: string;
|
|
791
|
+
/** The code-block language `<Select>`'s accessible name. The language NAMES themselves are not copy
|
|
792
|
+
* — they are proper nouns, and live in `CODE_LANGUAGES` (see its TSDoc). */
|
|
793
|
+
codeLanguage: string;
|
|
794
|
+
/** The `plain` member's display name — the one language option that IS a word rather than a name. */
|
|
795
|
+
codeLanguagePlain: string;
|
|
796
|
+
taskList: string;
|
|
797
|
+
alignLeft: string;
|
|
798
|
+
alignCenter: string;
|
|
799
|
+
alignRight: string;
|
|
800
|
+
alignJustify: string;
|
|
801
|
+
superscript: string;
|
|
802
|
+
subscript: string;
|
|
803
|
+
/** The text-colour tool's accessible name and its popover's heading. */
|
|
804
|
+
textColor: string;
|
|
805
|
+
/** The highlight tool's. */
|
|
806
|
+
highlight: string;
|
|
807
|
+
/**
|
|
808
|
+
* The "no colour" chip in each grid, and it is a REMOVE rather than a colour — the only way back
|
|
809
|
+
* without it is Clear formatting, which also takes bold and italic with it.
|
|
810
|
+
*
|
|
811
|
+
* One key for both grids on purpose: a chip that removes a text colour and one that removes a
|
|
812
|
+
* highlight say the same word in every language this could be translated into, and two keys would
|
|
813
|
+
* be two things to keep in step for no gain.
|
|
814
|
+
*/
|
|
815
|
+
colorNone: string;
|
|
816
|
+
/**
|
|
817
|
+
* How a colour chip announces itself — the swatch is a coloured square with no text, so this is
|
|
818
|
+
* its whole accessible name.
|
|
819
|
+
*
|
|
820
|
+
* A `Label<Ctx>` rather than a plain string because the colour's own name is the hole in the
|
|
821
|
+
* sentence, and that name may be the CALLER's (a custom `{ name, label }` slot brings its own
|
|
822
|
+
* label, which arrives here as `ctx.color`). The ctx carries an already-DISPLAY string, never a
|
|
823
|
+
* token or a hue id — formatting is the component's decision and the label only orders words.
|
|
824
|
+
*/
|
|
825
|
+
colorSwatch: (ctx: {
|
|
826
|
+
color: string;
|
|
827
|
+
}) => string;
|
|
828
|
+
/** The highlight grid's equivalent. Separate from {@link colorSwatch} because the two grids are on
|
|
829
|
+
* screen at different times and "Highlight blue" is not "Text colour blue". */
|
|
830
|
+
markSwatch: (ctx: {
|
|
831
|
+
color: string;
|
|
832
|
+
}) => string;
|
|
833
|
+
/** The cell grid's equivalent. A third key rather than reusing {@link markSwatch}, even though the
|
|
834
|
+
* two grids paint from the SAME `--color-prose-*-mark` roles: what is being coloured is a table
|
|
835
|
+
* cell, not a run of text, and "Highlight blue" over a cell would name the wrong object. */
|
|
836
|
+
cellSwatch: (ctx: {
|
|
837
|
+
color: string;
|
|
838
|
+
}) => string;
|
|
839
|
+
/**
|
|
840
|
+
* The two group headings in the colour surface.
|
|
841
|
+
*
|
|
842
|
+
* `colorPalette` names the chips the SITE chose (`colors`); `colorCustom` names everything else —
|
|
843
|
+
* a literal already in the document, one the caller passed, and one saved this session. "Custom"
|
|
844
|
+
* rather than "Recent" or "In document" because it is the only word true of all three sources, and
|
|
845
|
+
* it is also what the second pane is: the same word does both jobs, so a reader who presses `+`
|
|
846
|
+
* lands somewhere that is still called what they pressed.
|
|
847
|
+
*/
|
|
848
|
+
colorPalette: string;
|
|
849
|
+
colorCustom: string;
|
|
850
|
+
/**
|
|
851
|
+
* The `+` that opens the picker.
|
|
852
|
+
*
|
|
853
|
+
* Its visible text is the picker's own `add` ("Add"), because the button belongs to the row it
|
|
854
|
+
* sits in — but "Add" alone is not a name a screen-reader user can act on when the same panel also
|
|
855
|
+
* offers eight colours, so the accessible name says what is added.
|
|
856
|
+
*/
|
|
857
|
+
colorAddCustom: string;
|
|
858
|
+
/** Back to the swatch groups. The picker pane is a SECOND pane of the same popover, not a second
|
|
859
|
+
* popover — so the way out of it is Back, and Esc still closes the whole thing. */
|
|
860
|
+
colorBack: string;
|
|
861
|
+
colorNeutral: string;
|
|
862
|
+
colorBrand: string;
|
|
863
|
+
colorRed: string;
|
|
864
|
+
colorAmber: string;
|
|
865
|
+
colorGreen: string;
|
|
866
|
+
colorBlue: string;
|
|
867
|
+
colorPurple: string;
|
|
868
|
+
colorPink: string;
|
|
869
|
+
image: string;
|
|
870
|
+
/** The popover's heading when an image is already selected. */
|
|
871
|
+
editImage: string;
|
|
872
|
+
imageUrl: string;
|
|
873
|
+
/** The alt field's visible label. Deliberately not marked optional in the copy: an empty alt is a
|
|
874
|
+
* decision (a decorative image), and the hint below says so. */
|
|
875
|
+
imageAlt: string;
|
|
876
|
+
imageAltHint: string;
|
|
877
|
+
imageApply: string;
|
|
878
|
+
imageRemove: string;
|
|
879
|
+
/** Turns the picture back into a text link to its own URL — the discoverable form of the undo that
|
|
880
|
+
* a paste already offers, for anyone who does not know ⌘Z reverts a transformation before it
|
|
881
|
+
* reverts content. Deliberately NOT worded like `imageHref` below: that one says where a picture
|
|
882
|
+
* NAVIGATES when clicked, this one says the picture should not be a picture at all. */
|
|
883
|
+
imageToLink: string;
|
|
884
|
+
/** Where the picture goes when clicked. Its own field rather than the link tool, because a picture is
|
|
885
|
+
* a block and cannot carry the link MARK — see `extensions.ts`. */
|
|
886
|
+
imageHref: string;
|
|
887
|
+
imageHrefHint: string;
|
|
888
|
+
/** Announced when a pasted URL turned out to be an image and the link was swapped for one. The
|
|
889
|
+
* document changed without the user acting — a few hundred milliseconds after they pasted — so it
|
|
890
|
+
* is the one edit in this component that owes a live region. */
|
|
891
|
+
imagePasteReplaced: string;
|
|
892
|
+
/** The strip that appears over a selected picture. **Distinct from both other toolbars on purpose**,
|
|
893
|
+
* for the reason {@link RICH_TEXT_EDITOR_LABELS.bubbleToolbar} gives: two regions answering to one
|
|
894
|
+
* name is two regions a screen-reader user cannot tell apart. */
|
|
895
|
+
imageToolbar: string;
|
|
896
|
+
/**
|
|
897
|
+
* Announced after a resize — by drag or by `Shift`+arrow — because the width is the one thing about
|
|
898
|
+
* the picture that changed and nothing on screen says it in words.
|
|
899
|
+
*
|
|
900
|
+
* `ctx.width` arrives **already formatted**, as a display string. Formatting a percentage is the
|
|
901
|
+
* component's decision (it owns the locale), and a label only orders the words around it — see
|
|
902
|
+
* `docs/i18n-policy.md`.
|
|
903
|
+
*/
|
|
904
|
+
imageWidth: (ctx: {
|
|
905
|
+
width: string;
|
|
906
|
+
}) => string;
|
|
907
|
+
/** The other end of the same announcement: a picture narrower than the smallest painted step carries
|
|
908
|
+
* no width at all, so there is no percentage to read out — see `applyImageWidth`. */
|
|
909
|
+
imageNaturalWidth: string;
|
|
910
|
+
/** The full-screen toggle's name — and it does NOT flip to "Exit full screen" when it is on. The
|
|
911
|
+
* button carries `aria-pressed`, which is what states the mode, and a control that renames itself
|
|
912
|
+
* on press is one a screen-reader user cannot find twice. The GLYPH flips (see `ToolSpec.iconActive`),
|
|
913
|
+
* because sighted users read the arrows as the action rather than the state. */
|
|
914
|
+
fullscreen: string;
|
|
915
|
+
table: string;
|
|
916
|
+
tableRows: string;
|
|
917
|
+
tableColumns: string;
|
|
918
|
+
tableHeaderRow: string;
|
|
919
|
+
tableInsert: string;
|
|
920
|
+
/** **Level 1 of the table menu — the four group names**, which are also the tooltips on the floating
|
|
921
|
+
* strip's four group triggers. Each one names the AXIS PAIR rather than the group's internal key
|
|
922
|
+
* ("Insert row or column", not "Insert"): a submenu row and a tooltip are both read on their own,
|
|
923
|
+
* with nothing beside them to say what is being inserted. */
|
|
924
|
+
tableGroupInsert: string;
|
|
925
|
+
tableGroupDelete: string;
|
|
926
|
+
tableGroupCells: string;
|
|
927
|
+
tableGroupHeader: string;
|
|
928
|
+
tableAddRowBefore: string;
|
|
929
|
+
tableAddRowAfter: string;
|
|
930
|
+
tableAddColumnBefore: string;
|
|
931
|
+
tableAddColumnAfter: string;
|
|
932
|
+
tableDeleteRow: string;
|
|
933
|
+
tableDeleteColumn: string;
|
|
934
|
+
tableMergeCells: string;
|
|
935
|
+
tableSplitCell: string;
|
|
936
|
+
/** The two header toggles. Distinct from {@link tableHeaderRow}, which names the CHECKBOX in the
|
|
937
|
+
* insert grid ("should the table I am about to make have one") — this one names the op that turns
|
|
938
|
+
* an existing row into a header and back, and a translation that reused the noun would read as a
|
|
939
|
+
* state rather than an action. */
|
|
940
|
+
tableToggleHeaderRow: string;
|
|
941
|
+
tableToggleHeaderColumn: string;
|
|
942
|
+
tableDelete: string;
|
|
943
|
+
/**
|
|
944
|
+
* The three grips — a bar per column along the table's top edge, one per row down its left, and the
|
|
945
|
+
* corner that takes every cell.
|
|
946
|
+
*
|
|
947
|
+
* A `Label<Ctx>` for the two that name a band, because the band's NUMBER is the hole in the sentence
|
|
948
|
+
* and a `{token}` grammar could not express a language that orders it differently. The ctx carries an
|
|
949
|
+
* already-formatted display string (the component decides that it is 1-based and how it is written),
|
|
950
|
+
* never an index — same rule the colour swatch labels follow.
|
|
951
|
+
*/
|
|
952
|
+
tableSelectColumn: (ctx: {
|
|
953
|
+
index: string;
|
|
954
|
+
}) => string;
|
|
955
|
+
tableSelectRow: (ctx: {
|
|
956
|
+
index: string;
|
|
957
|
+
}) => string;
|
|
958
|
+
/** The corner grip. "All cells" rather than "table": what it selects is every CELL, which is what the
|
|
959
|
+
* ops act on — selecting the table as a NODE is a different thing this does not do. */
|
|
960
|
+
tableSelectAll: string;
|
|
961
|
+
/** The floating strip under a table the caret is inside. A SECOND `role="toolbar"` on the page, so it
|
|
962
|
+
* must not answer to the band's name — two toolbars called "Text formatting" is a list a screen
|
|
963
|
+
* reader user cannot navigate. Same rule as `bubbleToolbar` / `imageToolbar` / `linkToolbar`. */
|
|
964
|
+
/** **Level 1 · the two style groups.** They name an axis pair for the reason the four structural
|
|
965
|
+
* groups do — a submenu row and a strip tooltip are both read with nothing beside them. */
|
|
966
|
+
tableGroupMove: string;
|
|
967
|
+
tableGroupStyle: string;
|
|
968
|
+
tableMoveRowUp: string;
|
|
969
|
+
tableMoveRowDown: string;
|
|
970
|
+
tableMoveColumnLeft: string;
|
|
971
|
+
tableMoveColumnRight: string;
|
|
972
|
+
/** The three sub-headings inside the style group. Each names the axis, so the members below it can
|
|
973
|
+
* be one word each without losing what they are one word ABOUT. */
|
|
974
|
+
/** Heading for the treatment cluster. "Table" rather than "Rows": the axis decides how the whole
|
|
975
|
+
* grid is ruled — `Grid` is not a statement about rows at all — and the members below it are the
|
|
976
|
+
* three looks. */
|
|
977
|
+
tableTreatment: string;
|
|
978
|
+
tableCellAlign: string;
|
|
979
|
+
tableColumnWidth: string;
|
|
980
|
+
/** The treatment members. "Grid" is the resting state and has a real name for the reason the union
|
|
981
|
+
* does (AGENTS §4 — the neither state gets a name), so a reader can choose it back deliberately
|
|
982
|
+
* rather than hunting for an off switch. */
|
|
983
|
+
tableTreatmentGrid: string;
|
|
984
|
+
tableTreatmentStriped: string;
|
|
985
|
+
tableTreatmentPlain: string;
|
|
986
|
+
tableAlignTop: string;
|
|
987
|
+
tableAlignMiddle: string;
|
|
988
|
+
tableAlignBottom: string;
|
|
989
|
+
tableWidthAuto: string;
|
|
990
|
+
tableWidthNarrow: string;
|
|
991
|
+
tableWidthWide: string;
|
|
992
|
+
/** The colour surface a cell opens — the THIRD target of the one shared grid, after the two text
|
|
993
|
+
* marks and the divider. It names what is filled ("Cell"), never how, because the same surface
|
|
994
|
+
* offers a palette name, a literal and a gradient. */
|
|
995
|
+
tableCellFill: string;
|
|
996
|
+
tableToolbar: string;
|
|
997
|
+
/** The floating strip over a selected divider — a FIFTH `role="toolbar"` on the page, so it takes a
|
|
998
|
+
* distinct name for the reason every sibling above does. "Divider" alone is already the TOOL's
|
|
999
|
+
* name ({@link RICH_TEXT_EDITOR_LABELS.hr}), same collision `linkToolbar` avoids. */
|
|
1000
|
+
hrToolbar: string;
|
|
1001
|
+
/** The three textures. They are the HOUSE vocabulary's members (`src/lib/rule.ts`), so the words
|
|
1002
|
+
* here name what a reader sees rather than translating the code's spelling: `line` is drawn solid,
|
|
1003
|
+
* and "Solid" is what every other editor calls it. */
|
|
1004
|
+
hrTextureLine: string;
|
|
1005
|
+
hrTextureDashed: string;
|
|
1006
|
+
hrTextureDot: string;
|
|
1007
|
+
/** The weight toggle. One button rather than a hairline/thick pair, because the axis has exactly
|
|
1008
|
+
* two steps and the resting one needs no button of its own to return to. */
|
|
1009
|
+
hrThick: string;
|
|
1010
|
+
/** The divider's colour surface. Distinct from {@link RICH_TEXT_EDITOR_LABELS.textColor} because the
|
|
1011
|
+
* two write different things — a run's colour and a rule's — and a shared word would name one
|
|
1012
|
+
* popover for both. */
|
|
1013
|
+
hrColor: string;
|
|
1014
|
+
undo: string;
|
|
1015
|
+
redo: string;
|
|
1016
|
+
/** The drag handle's accessible name. It is a real `<button>`, so it is reachable by keyboard and
|
|
1017
|
+
* announces itself; pressing it selects the block, which is the keyboard-usable half of a feature
|
|
1018
|
+
* whose main gesture is a mouse drag. */
|
|
1019
|
+
dragBlock: string;
|
|
1020
|
+
/** The band's `role="search"` region. */
|
|
1021
|
+
findReplace: string;
|
|
1022
|
+
/** The search field's accessible name AND its placeholder — the same word does both jobs here, and
|
|
1023
|
+
* a placeholder that repeats a visible label is the correct pattern for a control with no room for
|
|
1024
|
+
* one. */
|
|
1025
|
+
findLabel: string;
|
|
1026
|
+
replaceLabel: string;
|
|
1027
|
+
/** The `n of m` readout. A function, because the two numbers arrive already formatted and a
|
|
1028
|
+
* translation may want them in the other order. */
|
|
1029
|
+
findCount: (ctx: {
|
|
1030
|
+
position: string;
|
|
1031
|
+
total: string;
|
|
1032
|
+
}) => string;
|
|
1033
|
+
findPrevious: string;
|
|
1034
|
+
findNext: string;
|
|
1035
|
+
/** The button that replaces the CURRENT match only. */
|
|
1036
|
+
replace: string;
|
|
1037
|
+
replaceAll: string;
|
|
1038
|
+
findClose: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* The character and word readouts, and the limited form of the first.
|
|
1041
|
+
*
|
|
1042
|
+
* **Functions, because a count is a sentence with a hole in it** — and the hole carries an
|
|
1043
|
+
* already-FORMATTED string, never the raw number (`docs/i18n-policy.md`). The component owns the
|
|
1044
|
+
* formatting because it owns the locale; the label only decides where the number sits and what the
|
|
1045
|
+
* word around it is. That is also what makes a plural rule expressible: an override can call
|
|
1046
|
+
* `Intl.PluralRules` on its own, which a `{count} characters` token grammar could not.
|
|
1047
|
+
*/
|
|
1048
|
+
characterCount: (ctx: {
|
|
1049
|
+
count: string;
|
|
1050
|
+
}) => string;
|
|
1051
|
+
wordCount: (ctx: {
|
|
1052
|
+
count: string;
|
|
1053
|
+
}) => string;
|
|
1054
|
+
/** The limited form. Deliberately not "N characters of M": the readout sits under a live editor and
|
|
1055
|
+
* is read at a glance, so it is a fraction. */
|
|
1056
|
+
characterLimit: (ctx: {
|
|
1057
|
+
count: string;
|
|
1058
|
+
limit: string;
|
|
1059
|
+
}) => string;
|
|
1060
|
+
/** The counter strip's own accessible name — it is a `role="status"`, so it needs one to be
|
|
1061
|
+
* navigable rather than announced as a bare number. */
|
|
1062
|
+
counter: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* How a shortcut is appended to a control's name in its tooltip — NOT in its accessible name.
|
|
1065
|
+
*
|
|
1066
|
+
* A screen reader already announces the key binding from the platform, so folding it into
|
|
1067
|
+
* `aria-label` would make every button announce its shortcut twice. This key exists so the
|
|
1068
|
+
* bracketing punctuation is translatable; the keys themselves are not copy (see the header).
|
|
1069
|
+
*/
|
|
1070
|
+
shortcut: (ctx: {
|
|
1071
|
+
name: string;
|
|
1072
|
+
keys: string;
|
|
1073
|
+
}) => string;
|
|
1074
|
+
};
|
|
1075
|
+
type RichTextEditorLabels = LabelOverrides<typeof RICH_TEXT_EDITOR_LABELS>;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* `Select`'s one authored string.
|
|
1079
|
+
*
|
|
1080
|
+
* Small, and that is the point: `Select` was one of two Field controls with no scope at all, so an app
|
|
1081
|
+
* could configure `Combobox`'s and `DatePicker`'s placeholder app-wide and then had to pass
|
|
1082
|
+
* `<Select placeholder>` at every call site to reach the same word. A scope with one key is cheaper
|
|
1083
|
+
* than that asymmetry.
|
|
1084
|
+
*/
|
|
1085
|
+
declare const SELECT_LABELS: {
|
|
1086
|
+
/** Default behind the `placeholder` prop — the caller's own prop still wins. */
|
|
1087
|
+
placeholder: string;
|
|
1088
|
+
};
|
|
1089
|
+
type SelectLabels = LabelOverrides<typeof SELECT_LABELS>;
|
|
1090
|
+
|
|
1091
|
+
/** The rail's collapse toggle. The `<nav>` landmark's own name is already an `aria-label` prop
|
|
1092
|
+
* (defaulting to "Main") and stays there — a landmark name is the app's, not the library's. */
|
|
1093
|
+
declare const SIDEBAR_NAVIGATION_LABELS: {
|
|
1094
|
+
expand: string;
|
|
1095
|
+
collapse: string;
|
|
1096
|
+
};
|
|
1097
|
+
type SidebarNavigationLabels = LabelOverrides<typeof SIDEBAR_NAVIGATION_LABELS>;
|
|
1098
|
+
|
|
1099
|
+
/** The three strings a slider authors that the caller never passes in.
|
|
1100
|
+
*
|
|
1101
|
+
* `minimum` / `maximum` name the two thumbs of a RANGE — a single-thumb slider takes its name from
|
|
1102
|
+
* the field label instead and needs neither. Base UI already announces which end a thumb is
|
|
1103
|
+
* through `aria-valuetext` ("1,500 start range"), but that string is hard-coded English inside the
|
|
1104
|
+
* primitive, so it cannot be the only channel that says it: these are the translatable ones. */
|
|
1105
|
+
declare const SLIDER_LABELS: {
|
|
1106
|
+
/** `getAriaLabel(0)` on a range — the lower thumb. */
|
|
1107
|
+
minimum: string;
|
|
1108
|
+
/** `getAriaLabel(1)` on a range — the upper thumb. */
|
|
1109
|
+
maximum: string;
|
|
1110
|
+
/** The `editable` bubble's text input. It is a SECOND focusable control inside the slider, so it
|
|
1111
|
+
* owes its own name — the thumbs keep theirs. */
|
|
1112
|
+
editValue: string;
|
|
1113
|
+
};
|
|
1114
|
+
type SliderLabels = LabelOverrides<typeof SLIDER_LABELS>;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* One scope for the whole table family — `Table.tsx`, `cells.tsx`, `toolbar.tsx` and `cards.tsx`.
|
|
1118
|
+
* `<Table>` resolves it once and threads the reader down as a prop, so an override lands everywhere
|
|
1119
|
+
* at once and the sub-files never re-resolve (there is no table context to hang it on).
|
|
1120
|
+
*/
|
|
1121
|
+
declare const TABLE_LABELS: {
|
|
1122
|
+
selectAll: string;
|
|
1123
|
+
selectRow: string;
|
|
1124
|
+
/** The selection column's header, visually hidden. */
|
|
1125
|
+
selectColumn: string;
|
|
1126
|
+
/** The expansion column's header, visually hidden. */
|
|
1127
|
+
expandColumn: string;
|
|
1128
|
+
/** The row-actions column's header, visually hidden. */
|
|
1129
|
+
actionsColumn: string;
|
|
1130
|
+
expandRow: string;
|
|
1131
|
+
collapseRow: string;
|
|
1132
|
+
/** A column header's help tooltip trigger. */
|
|
1133
|
+
columnInfo: (ctx: {
|
|
1134
|
+
header: string;
|
|
1135
|
+
}) => string;
|
|
1136
|
+
/** The column-visibility trigger in the toolbar. */
|
|
1137
|
+
columns: string;
|
|
1138
|
+
/** The fallback name for a row-action slot that brought none. */
|
|
1139
|
+
rowActions: string;
|
|
1140
|
+
/** The confirmation dialog's DISMISS button. Its sibling `confirmLabel` is per action (the verb
|
|
1141
|
+
* belongs to the deed — "Delete", "Revoke"), but "stop" is one word for the whole app, so it
|
|
1142
|
+
* lives here and a per-action `cancelLabel` still wins. */
|
|
1143
|
+
cancel: string;
|
|
1144
|
+
emptyTitle: string;
|
|
1145
|
+
emptyDescription: string;
|
|
1146
|
+
emptyFilteredTitle: string;
|
|
1147
|
+
emptyFilteredDescription: string;
|
|
1148
|
+
/** The filtered-empty description when a SEARCH is what emptied it — the query is quoted back. */
|
|
1149
|
+
emptySearch: (ctx: {
|
|
1150
|
+
query: string;
|
|
1151
|
+
}) => string;
|
|
1152
|
+
clearFilters: string;
|
|
1153
|
+
errorDescription: string;
|
|
1154
|
+
errorRetry: string;
|
|
1155
|
+
/** Default behind `search.placeholder` / `search.label`. */
|
|
1156
|
+
search: string;
|
|
1157
|
+
/** LIVE REGION. The English default owns its own plural branch — a language with three forms
|
|
1158
|
+
* owns the whole function, and `Intl.PluralRules` belongs to the app. */
|
|
1159
|
+
selectionCount: (ctx: {
|
|
1160
|
+
count: number;
|
|
1161
|
+
}) => string;
|
|
1162
|
+
/** LIVE REGION, announced only after a selection has been made and then cleared. */
|
|
1163
|
+
selectionCleared: string;
|
|
1164
|
+
removeFilter: (ctx: {
|
|
1165
|
+
label: string;
|
|
1166
|
+
}) => string;
|
|
1167
|
+
filterMin: (ctx: {
|
|
1168
|
+
label: string;
|
|
1169
|
+
}) => string;
|
|
1170
|
+
filterMax: (ctx: {
|
|
1171
|
+
label: string;
|
|
1172
|
+
}) => string;
|
|
1173
|
+
/**
|
|
1174
|
+
* The SIGHTED half of those same two inputs. They were the tell that the gate had no
|
|
1175
|
+
* `placeholder` rule: both `aria-label`s above went through this table while the placeholder a
|
|
1176
|
+
* sighted user actually reads sat beside them as a literal.
|
|
1177
|
+
*/
|
|
1178
|
+
filterMinPlaceholder: string;
|
|
1179
|
+
filterMaxPlaceholder: string;
|
|
1180
|
+
filterFrom: (ctx: {
|
|
1181
|
+
label: string;
|
|
1182
|
+
}) => string;
|
|
1183
|
+
filterTo: (ctx: {
|
|
1184
|
+
label: string;
|
|
1185
|
+
}) => string;
|
|
1186
|
+
sortBy: string;
|
|
1187
|
+
/** The "no sort" option in the card-mode sort select. */
|
|
1188
|
+
sortNone: string;
|
|
1189
|
+
};
|
|
1190
|
+
type TableLabels = LabelOverrides<typeof TABLE_LABELS>;
|
|
1191
|
+
|
|
1192
|
+
declare const TAG_LABELS: {
|
|
1193
|
+
/** Names the remove button after the tag it removes, so a row of five is five distinct names. */
|
|
1194
|
+
remove: (ctx: {
|
|
1195
|
+
label: string;
|
|
1196
|
+
}) => string;
|
|
1197
|
+
/** The fallback when the tag's children are a node, which has no text to name it with. */
|
|
1198
|
+
removeGeneric: string;
|
|
1199
|
+
};
|
|
1200
|
+
type TagLabels = LabelOverrides<typeof TAG_LABELS>;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* One scope for both spellings of the control — `TagInput` and `TagInputOuter` — which is the whole
|
|
1204
|
+
* reason it is a scope rather than two defaults. The literal was written twice, once per file, so a
|
|
1205
|
+
* caller wanting a different word had to pass `placeholder` at every call site of BOTH.
|
|
1206
|
+
*/
|
|
1207
|
+
declare const TAG_INPUT_LABELS: {
|
|
1208
|
+
/** Default behind the `placeholder` prop — the caller's own prop still wins. */
|
|
1209
|
+
placeholder: string;
|
|
1210
|
+
};
|
|
1211
|
+
type TagInputLabels = LabelOverrides<typeof TAG_INPUT_LABELS>;
|
|
1212
|
+
|
|
1213
|
+
declare const TOAST_LABELS: {
|
|
1214
|
+
/** The close affordance on every toast. */
|
|
1215
|
+
dismiss: string;
|
|
1216
|
+
/** The viewport landmark. A secondary viewport names its corner so two regions are tellable
|
|
1217
|
+
* apart; the ctx carries the raw `position`, and the space-separated rendering is this default's
|
|
1218
|
+
* decision, not the caller's. */
|
|
1219
|
+
region: (ctx: {
|
|
1220
|
+
position: string;
|
|
1221
|
+
primary: boolean;
|
|
1222
|
+
}) => string;
|
|
1223
|
+
};
|
|
1224
|
+
type ToastLabels = LabelOverrides<typeof TOAST_LABELS>;
|
|
1225
|
+
|
|
1226
|
+
declare const TREE_LABELS: {
|
|
1227
|
+
/** The default behind the `emptyMessage` prop. */
|
|
1228
|
+
emptyMessage: string;
|
|
1229
|
+
/** The OTHER empty state: "nothing matched" and "there is nothing here" are different sentences. */
|
|
1230
|
+
noMatches: (ctx: {
|
|
1231
|
+
query: string;
|
|
1232
|
+
}) => string;
|
|
1233
|
+
/** A branch whose lazy children failed to load, and the button beside it. */
|
|
1234
|
+
loadError: string;
|
|
1235
|
+
retry: string;
|
|
1236
|
+
/** The name a moved node falls back to when its label is a node, not a string. */
|
|
1237
|
+
itemFallback: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* The reorder live region.
|
|
1240
|
+
*
|
|
1241
|
+
* The ctx carries the raw `position` union, not an English preposition — a translation should not
|
|
1242
|
+
* have to parse `"into"`, so the position → verb mapping is this default's job.
|
|
1243
|
+
*/
|
|
1244
|
+
moved: (ctx: {
|
|
1245
|
+
name: string;
|
|
1246
|
+
position: "child" | "before" | "after";
|
|
1247
|
+
target: string;
|
|
1248
|
+
}) => string;
|
|
1249
|
+
/** The same move with no named target. */
|
|
1250
|
+
movedRoot: (ctx: {
|
|
1251
|
+
name: string;
|
|
1252
|
+
}) => string;
|
|
1253
|
+
};
|
|
1254
|
+
type TreeLabels = LabelOverrides<typeof TREE_LABELS>;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* The form layer's authored CHROME copy.
|
|
1258
|
+
*
|
|
1259
|
+
* Deliberately separate from `src/form/messages.tsx`, which is not the same thing under a different
|
|
1260
|
+
* name: that file holds VALIDATION copy, keyed by rule ("required", "minLength"), and it shipped this
|
|
1261
|
+
* exact cascade before `src/lib/labels.ts` generalised it. What lives here is the furniture — a row's
|
|
1262
|
+
* remove button, an array's add button, a file field's trigger and its empty text — none of which is
|
|
1263
|
+
* a rule name and none of which had anywhere to go.
|
|
1264
|
+
*
|
|
1265
|
+
* These were unreachable for a different reason than the components': the gate's scan root was
|
|
1266
|
+
* `src/components`, so the whole `jenosize-ui/form` subpath was never read at all. A scan root is a
|
|
1267
|
+
* claim about coverage, and that one quietly excluded a public entry point.
|
|
1268
|
+
*/
|
|
1269
|
+
declare const FORM_LABELS: {
|
|
1270
|
+
/** `FormArray`'s per-row remove button, when it renders icon-only and has no visible text. */
|
|
1271
|
+
removeRow: string;
|
|
1272
|
+
/** Default behind `FormArray`'s `addLabel` prop — the caller's own prop still wins. */
|
|
1273
|
+
addRow: string;
|
|
1274
|
+
/** Defaults behind `Form.FileInput`'s `buttonLabel` / `placeholder` props — each prop still wins. */
|
|
1275
|
+
uploadButton: string;
|
|
1276
|
+
filePlaceholder: string;
|
|
1277
|
+
};
|
|
1278
|
+
type FormLabels = LabelOverrides<typeof FORM_LABELS>;
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* The ONE place the library decides what its own copy says.
|
|
1282
|
+
*
|
|
1283
|
+
* **Why this is a shared layer and not 108 props.** Twenty-two components author user-facing text
|
|
1284
|
+
* the caller never passes in — `aria-label="Select row"`, a `sr-only` "Actions", the live region's
|
|
1285
|
+
* `"Move cancelled. Card returned to Backlog."`. A Thai app could restyle every pixel of this
|
|
1286
|
+
* library and still ship an English screen reader, because none of that text has a way in.
|
|
1287
|
+
*
|
|
1288
|
+
* **This is not a new mechanism.** `src/form/messages.tsx` already solved it for validation copy,
|
|
1289
|
+
* and its header states the rule: ONE key space, TWO scopes that cascade like CSS, app-level IS
|
|
1290
|
+
* i18n and field-level IS the one-off. This generalises that from 24 rule names to the whole
|
|
1291
|
+
* library:
|
|
1292
|
+
*
|
|
1293
|
+
* instance `labels` prop → <JenosizeUIProvider labels={…}> → the built-in English default
|
|
1294
|
+
*
|
|
1295
|
+
* **Three things it deliberately does NOT do.**
|
|
1296
|
+
*
|
|
1297
|
+
* 1. **It does not hold a central defaults registry.** A `DEFAULT_LABELS` importing all 22
|
|
1298
|
+
* components would make `import { Badge }` pull in Table, Calendar and the whole board —
|
|
1299
|
+
* `pnpm treeshake:check` exists to catch exactly that. So a component passes its OWN defaults
|
|
1300
|
+
* in, and the context carries only the caller's plain nested object, which imports nothing.
|
|
1301
|
+
* 2. **It does not translate.** There is no `th` bundle here and never will be; the library ships
|
|
1302
|
+
* English defaults and a seam, and the app feeds it from whatever i18n runtime it already has.
|
|
1303
|
+
* 3. **It does not replace content props.** `placeholder`, `emptyMessage`, `label`, `aria-label`
|
|
1304
|
+
* are per-instance CONTENT and still win — a label table only supplies what they fall back to.
|
|
1305
|
+
*
|
|
1306
|
+
* The guarantee that makes it safe to adopt: **every built-in default is byte-identical to the
|
|
1307
|
+
* literal it replaced**, so a provider that is not mounted renders exactly what shipped before this
|
|
1308
|
+
* layer existed. Same DOM, same accessible names, same pixels.
|
|
1309
|
+
*/
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* A translatable string.
|
|
1313
|
+
*
|
|
1314
|
+
* `Ctx` is `void` for the ~77 fixed keys ("Select row") and an object for the ~31 that interpolate
|
|
1315
|
+
* caller data (`` `About ${header}` ``). Deliberately the same shape as `FormMessage` — a plain
|
|
1316
|
+
* string where a string is enough, a function where the sentence has a hole in it.
|
|
1317
|
+
*
|
|
1318
|
+
* **A ctx always carries already-FORMATTED display strings**, never a `Date`, a node or a domain
|
|
1319
|
+
* object. Formatting is the component's decision (it owns the locale, the timezone and the era);
|
|
1320
|
+
* the label function only reorders words. A translator must never have to reimplement `formatIn`.
|
|
1321
|
+
*/
|
|
1322
|
+
type Label<Ctx = void> = [Ctx] extends [void] ? string : (ctx: Ctx) => string;
|
|
1323
|
+
/** The shape every component's defaults table satisfies. */
|
|
1324
|
+
type LabelTable = Record<string, string | ((ctx: never) => string)>;
|
|
1325
|
+
/**
|
|
1326
|
+
* A component's table as the CALLER may override it — every key optional, and a key that takes a
|
|
1327
|
+
* ctx also accepts a plain constant string (a language that does not need the interpolation should
|
|
1328
|
+
* not have to write `() => "…"`).
|
|
1329
|
+
*/
|
|
1330
|
+
type LabelOverrides<T extends LabelTable> = {
|
|
1331
|
+
[K in keyof T]?: T[K] extends (ctx: infer C) => string ? string | ((ctx: C) => string) : string;
|
|
1332
|
+
};
|
|
1333
|
+
/**
|
|
1334
|
+
* Every scope the app can override, keyed by component.
|
|
1335
|
+
*
|
|
1336
|
+
* These are **type-only** imports — erased at build, so naming all 22 scopes here costs no runtime
|
|
1337
|
+
* import and cannot drag a component into a bundle that did not ask for it.
|
|
1338
|
+
*/
|
|
1339
|
+
interface LibraryLabels {
|
|
1340
|
+
avatar?: AvatarLabels;
|
|
1341
|
+
badge?: BadgeLabels;
|
|
1342
|
+
breadcrumb?: BreadcrumbLabels;
|
|
1343
|
+
calendar?: CalendarLabels;
|
|
1344
|
+
carousel?: CarouselLabels;
|
|
1345
|
+
chart?: ChartLabels;
|
|
1346
|
+
closeButton?: CloseButtonLabels;
|
|
1347
|
+
colorPicker?: ColorPickerLabels;
|
|
1348
|
+
combobox?: ComboboxLabels;
|
|
1349
|
+
dateInput?: DateInputLabels;
|
|
1350
|
+
datePicker?: DatePickerLabels;
|
|
1351
|
+
dropzone?: DropzoneLabels;
|
|
1352
|
+
field?: FieldLabels;
|
|
1353
|
+
form?: FormLabels;
|
|
1354
|
+
fileList?: FileListLabels;
|
|
1355
|
+
headerNavigation?: HeaderNavigationLabels;
|
|
1356
|
+
input?: InputLabels;
|
|
1357
|
+
kanbanBoard?: KanbanBoardLabels;
|
|
1358
|
+
map?: MapLabels;
|
|
1359
|
+
numberInput?: NumberInputLabels;
|
|
1360
|
+
pagination?: PaginationLabels;
|
|
1361
|
+
paymentInput?: PaymentInputLabels;
|
|
1362
|
+
qrCode?: QrCodeLabels;
|
|
1363
|
+
richTextEditor?: RichTextEditorLabels;
|
|
1364
|
+
select?: SelectLabels;
|
|
1365
|
+
sidebarNavigation?: SidebarNavigationLabels;
|
|
1366
|
+
slider?: SliderLabels;
|
|
1367
|
+
tagInput?: TagInputLabels;
|
|
1368
|
+
table?: TableLabels;
|
|
1369
|
+
tag?: TagLabels;
|
|
1370
|
+
toast?: ToastLabels;
|
|
1371
|
+
tree?: TreeLabels;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/** One scope for all six charts — they share `ChartFrame`, so they share the sentence it renders
|
|
1375
|
+
* in place of a plot. The per-instance `emptyMessage` prop still wins. */
|
|
1376
|
+
declare const CHART_LABELS: {
|
|
1377
|
+
empty: string;
|
|
1378
|
+
};
|
|
1379
|
+
type ChartLabels = LabelOverrides<typeof CHART_LABELS>;
|
|
1380
|
+
|
|
1381
|
+
export type { AvatarLabels as A, BadgeLabels as B, ChartLabels as C, DatePickerLabels as D, FieldLabels as F, HeaderNavigationLabels as H, InputLabels as I, KanbanBoardLabels as K, Label as L, MapLabels as M, NumberInputLabels as N, PaginationLabels as P, QrCodeLabels as Q, RichTextEditorLabels as R, SelectLabels as S, TableLabels as T, BreadcrumbLabels as a, CalendarLabels as b, CarouselLabels as c, CloseButtonLabels as d, ColorPickerLabels as e, ComboboxLabels as f, DateInputLabels as g, DropzoneLabels as h, FileListLabels as i, LabelOverrides as j, LibraryLabels as k, PaymentInputLabels as l, SidebarNavigationLabels as m, SliderLabels as n, TagLabels as o, ToastLabels as p, TreeLabels as q, TagInputLabels as r };
|