@cjlapao/ui-kit 0.2.3 → 0.2.4
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/dist/index.cjs +1205 -829
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +37 -0
- package/dist/index.d.cts +260 -44
- package/dist/index.d.ts +260 -44
- package/dist/index.js +1140 -767
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/CapsuleBlueprint--CgRT7dr.d.cts +0 -426
- package/dist/CapsuleBlueprint--CgRT7dr.d.ts +0 -426
- package/dist/CapsuleBlueprint-12uQWAvU.d.cts +0 -732
- package/dist/CapsuleBlueprint-12uQWAvU.d.ts +0 -732
- package/dist/CapsuleBlueprint-1FP6avn4.d.cts +0 -1017
- package/dist/CapsuleBlueprint-1FP6avn4.d.ts +0 -1017
- package/dist/CapsuleBlueprint-6DmJgar9.d.cts +0 -358
- package/dist/CapsuleBlueprint-6DmJgar9.d.ts +0 -358
- package/dist/CapsuleBlueprint-B7MPc5wu.d.cts +0 -835
- package/dist/CapsuleBlueprint-B7MPc5wu.d.ts +0 -835
- package/dist/CapsuleBlueprint-BFHAMKUF.d.cts +0 -991
- package/dist/CapsuleBlueprint-BFHAMKUF.d.ts +0 -991
- package/dist/CapsuleBlueprint-BG23ZWsl.d.cts +0 -460
- package/dist/CapsuleBlueprint-BG23ZWsl.d.ts +0 -460
- package/dist/CapsuleBlueprint-BGx-KPqS.d.cts +0 -925
- package/dist/CapsuleBlueprint-BGx-KPqS.d.ts +0 -925
- package/dist/CapsuleBlueprint-BJYVRyFD.d.cts +0 -449
- package/dist/CapsuleBlueprint-BJYVRyFD.d.ts +0 -449
- package/dist/CapsuleBlueprint-BQq4ywG4.d.cts +0 -835
- package/dist/CapsuleBlueprint-BQq4ywG4.d.ts +0 -835
- package/dist/CapsuleBlueprint-BTgmUcyF.d.cts +0 -278
- package/dist/CapsuleBlueprint-BTgmUcyF.d.ts +0 -278
- package/dist/CapsuleBlueprint-BX2YI1yC.d.cts +0 -415
- package/dist/CapsuleBlueprint-BX2YI1yC.d.ts +0 -415
- package/dist/CapsuleBlueprint-BfPODmvJ.d.cts +0 -822
- package/dist/CapsuleBlueprint-BfPODmvJ.d.ts +0 -822
- package/dist/CapsuleBlueprint-BfSPPu5k.d.cts +0 -616
- package/dist/CapsuleBlueprint-BfSPPu5k.d.ts +0 -616
- package/dist/CapsuleBlueprint-BoPkPR2J.d.cts +0 -785
- package/dist/CapsuleBlueprint-BoPkPR2J.d.ts +0 -785
- package/dist/CapsuleBlueprint-CJeLH0j2.d.cts +0 -228
- package/dist/CapsuleBlueprint-CJeLH0j2.d.ts +0 -228
- package/dist/CapsuleBlueprint-CJwXDMzM.d.cts +0 -622
- package/dist/CapsuleBlueprint-CJwXDMzM.d.ts +0 -622
- package/dist/CapsuleBlueprint-CM125BJI.d.cts +0 -811
- package/dist/CapsuleBlueprint-CM125BJI.d.ts +0 -811
- package/dist/CapsuleBlueprint-CQPeacGV.d.cts +0 -426
- package/dist/CapsuleBlueprint-CQPeacGV.d.ts +0 -426
- package/dist/CapsuleBlueprint-CQy2O0UN.d.cts +0 -889
- package/dist/CapsuleBlueprint-CQy2O0UN.d.ts +0 -889
- package/dist/CapsuleBlueprint-CRy04iCR.d.cts +0 -695
- package/dist/CapsuleBlueprint-CRy04iCR.d.ts +0 -695
- package/dist/CapsuleBlueprint-CixXdjMu.d.cts +0 -925
- package/dist/CapsuleBlueprint-CixXdjMu.d.ts +0 -925
- package/dist/CapsuleBlueprint-CjCxwO1O.d.cts +0 -786
- package/dist/CapsuleBlueprint-CjCxwO1O.d.ts +0 -786
- package/dist/CapsuleBlueprint-Cm10IA2w.d.cts +0 -342
- package/dist/CapsuleBlueprint-Cm10IA2w.d.ts +0 -342
- package/dist/CapsuleBlueprint-CoGsooJJ.d.cts +0 -492
- package/dist/CapsuleBlueprint-CoGsooJJ.d.ts +0 -492
- package/dist/CapsuleBlueprint-CpHqUsJK.d.cts +0 -786
- package/dist/CapsuleBlueprint-CpHqUsJK.d.ts +0 -786
- package/dist/CapsuleBlueprint-CrRg8EVW.d.cts +0 -358
- package/dist/CapsuleBlueprint-CrRg8EVW.d.ts +0 -358
- package/dist/CapsuleBlueprint-DGxsd0aY.d.cts +0 -785
- package/dist/CapsuleBlueprint-DGxsd0aY.d.ts +0 -785
- package/dist/CapsuleBlueprint-DYnwizSo.d.cts +0 -698
- package/dist/CapsuleBlueprint-DYnwizSo.d.ts +0 -698
- package/dist/CapsuleBlueprint-DbLSB78P.d.cts +0 -235
- package/dist/CapsuleBlueprint-DbLSB78P.d.ts +0 -235
- package/dist/CapsuleBlueprint-DfV8XBEZ.d.cts +0 -1001
- package/dist/CapsuleBlueprint-DfV8XBEZ.d.ts +0 -1001
- package/dist/CapsuleBlueprint-DiG1FUoM.d.cts +0 -757
- package/dist/CapsuleBlueprint-DiG1FUoM.d.ts +0 -757
- package/dist/CapsuleBlueprint-DvdeHC13.d.cts +0 -289
- package/dist/CapsuleBlueprint-DvdeHC13.d.ts +0 -289
- package/dist/CapsuleBlueprint-DvinXyHp.d.cts +0 -342
- package/dist/CapsuleBlueprint-DvinXyHp.d.ts +0 -342
- package/dist/CapsuleBlueprint-DwW8YOJg.d.cts +0 -925
- package/dist/CapsuleBlueprint-DwW8YOJg.d.ts +0 -925
- package/dist/CapsuleBlueprint-E069msDY.d.cts +0 -310
- package/dist/CapsuleBlueprint-E069msDY.d.ts +0 -310
- package/dist/CapsuleBlueprint-LECoxlXA.d.cts +0 -497
- package/dist/CapsuleBlueprint-LECoxlXA.d.ts +0 -497
- package/dist/CapsuleBlueprint-V9pDg6lh.d.cts +0 -247
- package/dist/CapsuleBlueprint-V9pDg6lh.d.ts +0 -247
- package/dist/CapsuleBlueprint-bOLrWbIc.d.cts +0 -858
- package/dist/CapsuleBlueprint-bOLrWbIc.d.ts +0 -858
- package/dist/CapsuleBlueprint-if_tP8K8.d.cts +0 -1022
- package/dist/CapsuleBlueprint-if_tP8K8.d.ts +0 -1022
- package/dist/CapsuleBlueprint-pP0Ima0I.d.cts +0 -768
- package/dist/CapsuleBlueprint-pP0Ima0I.d.ts +0 -768
- package/dist/CapsuleBlueprint-w82xP6zg.d.cts +0 -222
- package/dist/CapsuleBlueprint-w82xP6zg.d.ts +0 -222
- package/dist/CapsuleBlueprint-wdlxOX4L.d.cts +0 -472
- package/dist/CapsuleBlueprint-wdlxOX4L.d.ts +0 -472
- package/dist/CapsuleBlueprint-wxqu6jA3.d.cts +0 -529
- package/dist/CapsuleBlueprint-wxqu6jA3.d.ts +0 -529
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
declare const BUTTON_VARIANTS: readonly ["solid", "soft", "outline", "ghost", "link", "clear", "icon", "glass"];
|
|
4
|
-
type ButtonVariant = (typeof BUTTON_VARIANTS)[number];
|
|
5
|
-
/** Label weight. Derived from the runtime list for the same reason. */
|
|
6
|
-
declare const BUTTON_WEIGHTS: readonly ["normal", "medium", "semibold", "bold"];
|
|
7
|
-
type ButtonWeight = (typeof BUTTON_WEIGHTS)[number];
|
|
8
|
-
/**
|
|
9
|
-
* The 21 Tailwind palette colours the kit supports.
|
|
10
|
-
*
|
|
11
|
-
* `TrueColor` is derived from this array rather than declared alongside it, so
|
|
12
|
-
* the runtime list and the type can never drift — adding a colour here adds it
|
|
13
|
-
* to the type, the generated theme, and every consumer that enumerates colours.
|
|
14
|
-
*/
|
|
15
|
-
declare const TRUE_COLORS: readonly ["red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "rose", "slate", "gray", "zinc", "neutral", "stone"];
|
|
16
|
-
/**
|
|
17
|
-
* TrueColor is the only valid color type in the ui-kit theme system.
|
|
18
|
-
* All components, tokens, and utilities must use TrueColor exclusively.
|
|
19
|
-
*/
|
|
20
|
-
type TrueColor = (typeof TRUE_COLORS)[number];
|
|
21
|
-
/**
|
|
22
|
-
* Shared size type used across all frameworks and components.
|
|
23
|
-
* Replaces both the old ThemeSize (dead code) and ModalSize.
|
|
24
|
-
*/
|
|
25
|
-
type Size = "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "2xl" | "3xl" | "full";
|
|
26
|
-
/**
|
|
27
|
-
* The size scale every interactive control shares. Derived from the runtime
|
|
28
|
-
* list so the two cannot drift, and so demos/docs can enumerate it.
|
|
29
|
-
*/
|
|
30
|
-
declare const CONTROL_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
31
|
-
type ControlSize = (typeof CONTROL_SIZES)[number];
|
|
32
|
-
/**
|
|
33
|
-
* Strength of a decorative glow behind a control (currently `SearchBar`'s
|
|
34
|
-
* gradient variant).
|
|
35
|
-
*/
|
|
36
|
-
declare const GLOW_INTENSITIES: readonly ["subtle", "soft", "medium", "strong"];
|
|
37
|
-
type GlowIntensity = (typeof GLOW_INTENSITIES)[number];
|
|
38
|
-
/**
|
|
39
|
-
* Surface treatments shared by every text-entry control — `Input`, `Textarea`,
|
|
40
|
-
* `SearchBar`. Defined once here so the three are the same box when they sit
|
|
41
|
-
* next to each other in a form.
|
|
42
|
-
*/
|
|
43
|
-
declare const INPUT_VARIANTS: readonly ["flat", "elevated", "ghost", "underline", "glass", "gradient"];
|
|
44
|
-
type InputVariant = (typeof INPUT_VARIANTS)[number];
|
|
45
|
-
type InputVariantTokens = {
|
|
46
|
-
/** Border, fill, radius, shadow, backdrop. */
|
|
47
|
-
surface: string;
|
|
48
|
-
/** Text and placeholder colours. */
|
|
49
|
-
text: string;
|
|
50
|
-
/** Resting colour for a leading icon or other adornment. */
|
|
51
|
-
icon: string;
|
|
52
|
-
/** True when the surface is see-through and sits over unknown content. */
|
|
53
|
-
translucent: boolean;
|
|
54
|
-
};
|
|
55
|
-
declare const getInputVariantTokens: (variant: InputVariant) => InputVariantTokens;
|
|
56
|
-
/**
|
|
57
|
-
* Surface treatments for containers — `Panel` and anything built on it
|
|
58
|
-
* (`FormSection`). Kept here so the type and the text that sits on those
|
|
59
|
-
* surfaces are defined once, not per component.
|
|
60
|
-
*/
|
|
61
|
-
declare const SURFACE_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass"];
|
|
62
|
-
type SurfaceVariant = (typeof SURFACE_VARIANTS)[number];
|
|
63
|
-
type SurfaceTextTokens = {
|
|
64
|
-
/** Section and card headings. */
|
|
65
|
-
heading: string;
|
|
66
|
-
/** Body copy. */
|
|
67
|
-
body: string;
|
|
68
|
-
/** Secondary copy — descriptions under a label. */
|
|
69
|
-
description: string;
|
|
70
|
-
/** Tertiary copy — hints, counters, "optional" markers. */
|
|
71
|
-
muted: string;
|
|
72
|
-
/** Hairline between regions of the surface. */
|
|
73
|
-
divider: string;
|
|
74
|
-
translucent: boolean;
|
|
75
|
-
};
|
|
76
|
-
declare const getSurfaceTextTokens: (variant: SurfaceVariant) => SurfaceTextTokens;
|
|
77
|
-
/**
|
|
78
|
-
* A full-bleed interactive region on a container surface — a disclosure header,
|
|
79
|
-
* a clickable card row.
|
|
80
|
-
*
|
|
81
|
-
* Two rules learned the hard way, both encoded here so callers cannot get them
|
|
82
|
-
* wrong: a ring colour is inert without a ring *width*, and an outer ring is
|
|
83
|
-
* clipped by any ancestor with `overflow: hidden` (which every `Panel` has), so
|
|
84
|
-
* the ring is inset.
|
|
85
|
-
*/
|
|
86
|
-
type SurfaceTriggerTokens = {
|
|
87
|
-
/** Background wash on hover. Low-alpha, so it works on glass too. */
|
|
88
|
-
hover: string;
|
|
89
|
-
/** Complete focus indicator: outline reset, width, inset, colour. */
|
|
90
|
-
focusRing: string;
|
|
91
|
-
};
|
|
92
|
-
declare const getSurfaceTriggerTokens: (color: TrueColor) => SurfaceTriggerTokens;
|
|
93
|
-
/**
|
|
94
|
-
* Corner radius scale for container surfaces.
|
|
95
|
-
*
|
|
96
|
-
* The token names are historical and do NOT map 1:1 onto Tailwind's radius
|
|
97
|
-
* utilities — `rounded-sm` here is Tailwind's `rounded-lg`. They are kept as
|
|
98
|
-
* they are because the whole kit already calls them by these names and the
|
|
99
|
-
* scale itself is monotonic and correct; renaming would silently reshape every
|
|
100
|
-
* existing card. `getSurfaceCornerRem` exposes the real radius so a demo can
|
|
101
|
-
* label them honestly.
|
|
102
|
-
*
|
|
103
|
-
* `pill` used to be a duplicate of `rounded-lg` (both `rounded-3xl`), which is
|
|
104
|
-
* not what a pill is; it is now a true capsule.
|
|
105
|
-
*/
|
|
106
|
-
declare const SURFACE_CORNERS: readonly ["none", "rounded", "rounded-sm", "rounded-md", "rounded-lg", "rounded-xl", "rounded-full", "pill"];
|
|
107
|
-
type SurfaceCorner = (typeof SURFACE_CORNERS)[number];
|
|
108
|
-
/** The radius a container uses when the caller does not pick one. */
|
|
109
|
-
declare const DEFAULT_SURFACE_CORNER: SurfaceCorner;
|
|
110
|
-
declare const getSurfaceCornerClass: (corner: SurfaceCorner) => string;
|
|
111
|
-
declare const getSurfaceCornerRem: (corner: SurfaceCorner) => string;
|
|
112
|
-
/**
|
|
113
|
-
* Container padding, on the same scale every control uses plus a `none` step,
|
|
114
|
-
* so a Panel's padding and the Button inside it are described in one language.
|
|
115
|
-
*/
|
|
116
|
-
declare const SURFACE_PADDINGS: readonly ["none", "xs", "sm", "md", "lg", "xl"];
|
|
117
|
-
type SurfacePadding = "none" | ControlSize;
|
|
118
|
-
declare const getSurfacePaddingClass: (padding: SurfacePadding) => string;
|
|
119
|
-
/** Every padding token but `none`, for the callers that require a real inset. */
|
|
120
|
-
declare const getSurfacePaddingClasses: () => Record<SurfacePadding, string>;
|
|
121
|
-
/**
|
|
122
|
-
* Geometry and opacity of the `gradient` variant's glow.
|
|
123
|
-
*
|
|
124
|
-
* `pad` is reserved on the control's own wrapper and `inset` positions the glow
|
|
125
|
-
* inside it, so the halo is drawn **within the control's layout box**. Painting
|
|
126
|
-
* it outside — the obvious way — means any ancestor with `overflow: auto`
|
|
127
|
-
* clips it, and `Panel`'s body is `overflow-auto` by default. Same rule as the
|
|
128
|
-
* inset focus ring.
|
|
129
|
-
*/
|
|
130
|
-
type GlowTokens = {
|
|
131
|
-
/** Padding reserved on the wrapper to hold the halo. */
|
|
132
|
-
pad: string;
|
|
133
|
-
/** Glow position inside that padding. The gap left over absorbs the blur. */
|
|
134
|
-
inset: string;
|
|
135
|
-
blur: string;
|
|
136
|
-
idleOpacity: number;
|
|
137
|
-
focusOpacity: number;
|
|
138
|
-
};
|
|
139
|
-
declare const getGlowTokens: (intensity: GlowIntensity) => GlowTokens;
|
|
140
|
-
/**
|
|
141
|
-
* Glow gradient stops: the tone's 600 and 400 shades, read from Tailwind's own
|
|
142
|
-
* custom properties rather than a hard-coded hex table.
|
|
143
|
-
*/
|
|
144
|
-
declare const resolveGlowGradient: (tone: TrueColor, from?: string, to?: string) => [string, string];
|
|
145
|
-
type ButtonTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
146
|
-
type ButtonHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
147
|
-
type ButtonActiveTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
148
|
-
type ButtonActiveHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
149
|
-
type ToggleTheme = Record<TrueColor, string>;
|
|
150
|
-
type CheckboxTheme = Record<TrueColor, string>;
|
|
151
|
-
type SpinnerTheme = Record<TrueColor, [string, string, string, string]>;
|
|
152
|
-
type LoaderTheme = Record<TrueColor, {
|
|
153
|
-
track: string;
|
|
154
|
-
bar: string;
|
|
155
|
-
}>;
|
|
156
|
-
type MultiToggleTheme = Record<TrueColor, {
|
|
157
|
-
active: string;
|
|
158
|
-
activeText: string;
|
|
159
|
-
indicator: string;
|
|
160
|
-
hover: string;
|
|
161
|
-
}>;
|
|
162
|
-
type MultiToggleVariantTokens = {
|
|
163
|
-
softIndicator: string;
|
|
164
|
-
activeText: string;
|
|
165
|
-
hover: string;
|
|
166
|
-
};
|
|
167
|
-
type MultiToggleVariantTheme = Record<TrueColor, MultiToggleVariantTokens>;
|
|
168
|
-
type TabsColorTokens = {
|
|
169
|
-
hoverText: string;
|
|
170
|
-
activeText: string;
|
|
171
|
-
onAccentText: string;
|
|
172
|
-
focusRing: string;
|
|
173
|
-
accentBg: string;
|
|
174
|
-
subtleBg: string;
|
|
175
|
-
subtleHoverBg: string;
|
|
176
|
-
segmentedContainer: string;
|
|
177
|
-
badgeSubtle: string;
|
|
178
|
-
badgeStrong: string;
|
|
179
|
-
badgeOnAccent: string;
|
|
180
|
-
underlineActive: string;
|
|
181
|
-
};
|
|
182
|
-
type TabsTheme = Record<TrueColor, TabsColorTokens>;
|
|
183
|
-
type PanelToneConfig = {
|
|
184
|
-
border: string;
|
|
185
|
-
/**
|
|
186
|
-
* Hairline for the `outlined` variant. Deliberately lighter than `border`
|
|
187
|
-
* and paired with a low-alpha dark value, so the outline reads as a hairline
|
|
188
|
-
* in both modes instead of a hard rule in light mode.
|
|
189
|
-
*/
|
|
190
|
-
outlineBorder: string;
|
|
191
|
-
heading: string;
|
|
192
|
-
muted: string;
|
|
193
|
-
badge: string;
|
|
194
|
-
subtleBg: string;
|
|
195
|
-
tonalBg: string;
|
|
196
|
-
glassBg: string;
|
|
197
|
-
glassBorder: string;
|
|
198
|
-
liquidBg: string;
|
|
199
|
-
liquidBorder: string;
|
|
200
|
-
liquidShadow: string;
|
|
201
|
-
liquidHeading: string;
|
|
202
|
-
overlayGradient: string;
|
|
203
|
-
decorationShape: string;
|
|
204
|
-
decorationGradient: string;
|
|
205
|
-
};
|
|
206
|
-
type PanelTheme = Record<TrueColor, PanelToneConfig>;
|
|
207
|
-
type StepperToneConfig = {
|
|
208
|
-
activeBg: string;
|
|
209
|
-
activeText: string;
|
|
210
|
-
completedBg: string;
|
|
211
|
-
completedText: string;
|
|
212
|
-
pendingBorder: string;
|
|
213
|
-
pendingText: string;
|
|
214
|
-
underlineBase: string;
|
|
215
|
-
};
|
|
216
|
-
type StepperTheme = Record<TrueColor, StepperToneConfig>;
|
|
217
|
-
type BadgeTheme = Record<TrueColor, string>;
|
|
218
|
-
type PillTheme = Record<TrueColor, Record<"solid" | "soft" | "outline", {
|
|
219
|
-
base: string;
|
|
220
|
-
border?: string;
|
|
221
|
-
}>>;
|
|
222
|
-
type AlertTheme = Record<TrueColor, {
|
|
223
|
-
subtle: string;
|
|
224
|
-
solid: string;
|
|
225
|
-
outline: string;
|
|
226
|
-
icon: string;
|
|
227
|
-
text: string;
|
|
228
|
-
border: string;
|
|
229
|
-
dismiss: string;
|
|
230
|
-
}>;
|
|
231
|
-
type StatTileTheme = Record<TrueColor, {
|
|
232
|
-
decorationBg: string;
|
|
233
|
-
iconColor: string;
|
|
234
|
-
divider: string;
|
|
235
|
-
}>;
|
|
236
|
-
type ButtonSelectorColorTokens = {
|
|
237
|
-
selectedBorder: string;
|
|
238
|
-
selectedBg: string;
|
|
239
|
-
selectedIcon: string;
|
|
240
|
-
selectedLabel: string;
|
|
241
|
-
selectedIndicatorBg: string;
|
|
242
|
-
selectedIndicatorBorder: string;
|
|
243
|
-
selectedIndicatorDot: string;
|
|
244
|
-
};
|
|
245
|
-
type ButtonSelectorTheme = Record<TrueColor, ButtonSelectorColorTokens>;
|
|
246
|
-
interface ThemeDefinition {
|
|
247
|
-
button: ButtonTheme;
|
|
248
|
-
buttonHover: ButtonHoverTheme;
|
|
249
|
-
buttonActive: ButtonActiveTheme;
|
|
250
|
-
buttonActiveHover: ButtonActiveHoverTheme;
|
|
251
|
-
toggle: ToggleTheme;
|
|
252
|
-
checkbox: CheckboxTheme;
|
|
253
|
-
spinner: SpinnerTheme;
|
|
254
|
-
loader: LoaderTheme;
|
|
255
|
-
multiToggle: MultiToggleTheme;
|
|
256
|
-
multiToggleVariant: MultiToggleVariantTheme;
|
|
257
|
-
tabs: TabsTheme;
|
|
258
|
-
panel: PanelTheme;
|
|
259
|
-
stepper: StepperTheme;
|
|
260
|
-
badge: BadgeTheme;
|
|
261
|
-
pill: PillTheme;
|
|
262
|
-
alert: AlertTheme;
|
|
263
|
-
statTile: StatTileTheme;
|
|
264
|
-
buttonSelector: ButtonSelectorTheme;
|
|
265
|
-
}
|
|
266
|
-
type DeepPartial<T> = {
|
|
267
|
-
[K in keyof T]?: T[K] extends Record<string, unknown> ? DeepPartial<T[K]> : T[K];
|
|
268
|
-
};
|
|
269
|
-
declare const configureTheme: (overrides: DeepPartial<ThemeDefinition>) => void;
|
|
270
|
-
declare const resetTheme: () => void;
|
|
271
|
-
declare const getButtonColorClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
272
|
-
declare const getButtonHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
273
|
-
declare const getButtonActiveClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
274
|
-
declare const getButtonActiveHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
275
|
-
declare const getButtonBaseClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
276
|
-
declare const getToggleColorClasses: (color: TrueColor) => string;
|
|
277
|
-
declare const getCheckboxColorClasses: (color: TrueColor) => string;
|
|
278
|
-
declare const getSpinnerColorTokens: (color: TrueColor) => [string, string, string, string];
|
|
279
|
-
declare const getLoaderProgressColors: (color: TrueColor) => {
|
|
280
|
-
track: string;
|
|
281
|
-
bar: string;
|
|
282
|
-
};
|
|
283
|
-
declare const getMultiToggleColorTokens: (color: TrueColor) => {
|
|
284
|
-
active: string;
|
|
285
|
-
activeText: string;
|
|
286
|
-
indicator: string;
|
|
287
|
-
hover: string;
|
|
288
|
-
};
|
|
289
|
-
declare const getMultiToggleVariantTokens: (color: TrueColor) => MultiToggleVariantTokens;
|
|
290
|
-
declare const getTabsColorTokens: (color: TrueColor) => TabsColorTokens;
|
|
291
|
-
declare const getPanelToneStyles: (tone: TrueColor) => PanelToneConfig;
|
|
292
|
-
declare const getStepperTonePalette: (tone: TrueColor) => StepperToneConfig;
|
|
293
|
-
declare const getBadgeColorClasses: (color: TrueColor) => string;
|
|
294
|
-
declare const getPillColorClasses: (color: TrueColor, variant: "solid" | "soft" | "outline") => {
|
|
295
|
-
base: string;
|
|
296
|
-
border?: string;
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* @deprecated Use `getAlertVariantTokens(color, variant)`. This bag hands the
|
|
300
|
-
* same icon/text/dismiss classes to every variant, which is unreadable on
|
|
301
|
-
* `solid`. Kept so existing call sites keep compiling.
|
|
302
|
-
*/
|
|
303
|
-
declare const getAlertColorClasses: (color: TrueColor) => AlertTheme[TrueColor];
|
|
304
|
-
/**
|
|
305
|
-
* Alert treatments. `glass` and `liquid-glass` are the same pair `Panel` and
|
|
306
|
-
* `Pill` offer, so a callout dropped on a glass card no longer has to be the
|
|
307
|
-
* one opaque slab in the layout.
|
|
308
|
-
*/
|
|
309
|
-
declare const ALERT_VARIANTS: readonly ["subtle", "solid", "outline", "glass", "liquid-glass"];
|
|
310
|
-
type AlertVariant = (typeof ALERT_VARIANTS)[number];
|
|
311
|
-
/**
|
|
312
|
-
* Where the leading icon sits against the callout's content.
|
|
313
|
-
*
|
|
314
|
-
* `top` is the default and the only one that was previously possible: the icon
|
|
315
|
-
* centres on the *title's* line box, which is what you want for a one- or
|
|
316
|
-
* two-line callout. `center` centres it against the whole block — right when
|
|
317
|
-
* the body runs long enough that a top-aligned glyph looks stranded — and
|
|
318
|
-
* `bottom` pins it to the last line.
|
|
319
|
-
*/
|
|
320
|
-
declare const ALERT_ICON_ALIGNMENTS: readonly ["top", "center", "bottom"];
|
|
321
|
-
type AlertIconAlign = (typeof ALERT_ICON_ALIGNMENTS)[number];
|
|
322
|
-
/**
|
|
323
|
-
* What the callout *means*, as opposed to what colour it is.
|
|
324
|
-
*
|
|
325
|
-
* Both kits' demos have been passing `tone="info"` / `"success"` / `"warning"`
|
|
326
|
-
* / `"danger"` since tone became a `TrueColor` — none of them are one, so every
|
|
327
|
-
* such alert fell through to the blue fallback and four "different" tones
|
|
328
|
-
* rendered identically. The semantics were real and worth keeping; they just
|
|
329
|
-
* belong in their own prop, which resolves to a tone *and* the right icon *and*
|
|
330
|
-
* the right live-region politeness.
|
|
331
|
-
*/
|
|
332
|
-
declare const ALERT_INTENTS: readonly ["info", "success", "warning", "danger", "neutral"];
|
|
333
|
-
type AlertIntent = (typeof ALERT_INTENTS)[number];
|
|
334
|
-
interface AlertIntentConfig {
|
|
335
|
-
tone: TrueColor;
|
|
336
|
-
/** Registry icon name used when the caller does not supply one. */
|
|
337
|
-
icon: string;
|
|
338
|
-
/**
|
|
339
|
-
* How assistive technology should announce it. `role="alert"` is an
|
|
340
|
-
* *assertive* live region: it interrupts whatever the user is reading, which
|
|
341
|
-
* is right for a failure and wrong for a page that merely renders an
|
|
342
|
-
* informational banner on load.
|
|
343
|
-
*/
|
|
344
|
-
live: "assertive" | "polite";
|
|
345
|
-
}
|
|
346
|
-
declare const ALERT_INTENT_CONFIG: Record<AlertIntent, AlertIntentConfig>;
|
|
347
|
-
interface AlertVariantTokens {
|
|
348
|
-
/** Fill plus the callout's base copy colour. */
|
|
349
|
-
surface: string;
|
|
350
|
-
/** Border colour. The `border` utility itself is on the base class. */
|
|
351
|
-
border: string;
|
|
352
|
-
/** Leading icon. */
|
|
353
|
-
icon: string;
|
|
354
|
-
/** Secondary copy under the title. */
|
|
355
|
-
text: string;
|
|
356
|
-
/** Dismiss button: rest, hover and focus ring. */
|
|
357
|
-
dismiss: string;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Replaces the old flat `getAlertColorClasses` bag, which handed the *same*
|
|
361
|
-
* `icon`, `text` and `dismiss` classes to every variant. On `solid` — a
|
|
362
|
-
* `{color}-600` fill — that painted the description `{color}-700` and the icon
|
|
363
|
-
* `{color}-500`, i.e. a dark tone on a saturated tone of itself. It was
|
|
364
|
-
* unreadable at every tone and no test could see it.
|
|
365
|
-
*/
|
|
366
|
-
declare const getAlertVariantTokens: (color: TrueColor, variant: AlertVariant) => AlertVariantTokens;
|
|
367
|
-
declare const getStatTileColorClasses: (color: TrueColor) => StatTileTheme[TrueColor];
|
|
368
|
-
|
|
369
|
-
type IconName = "Add" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "Attached" | "Attachment" | "Back" | "Blueprint" | "Bug" | "Chat" | "CheckCircle" | "ChevronLeft" | "ChevronRight" | "Clean" | "Close" | "Close1" | "CloudOff" | "Cog" | "Complete" | "Container" | "CopyClipboard" | "Dashboard" | "Details" | "Docker copy" | "Docker" | "Dots" | "Download" | "Edit" | "Equal" | "Error" | "Export" | "EyeClosed" | "EyeOpen" | "Globe" | "Help" | "Idea" | "Image" | "Info" | "Key" | "LXC-Old" | "LXC" | "Log" | "Moon" | "Notification" | "Official" | "Offline" | "OpenApp" | "Parameter" | "Pause" | "Praise" | "ReportFeedback" | "Reset" | "Restart" | "Rocket" | "Run" | "Save" | "Scale" | "Script" | "Search" | "Send" | "Settings" | "Shop" | "Star" | "Stop" | "Sun" | "Suspend" | "ThemeAuto" | "ThemeDark" | "ThemeLight" | "Trash" | "UX" | "User" | "Users" | "Verified" | "ViewGrid" | "ViewRows" | "Library" | "Host" | "VirtualMachine" | "Role" | "Roles" | "Cache" | "Claim" | "Claims" | "KeyManagement" | "Windows" | "Ubuntu" | "Debian" | "Apple" | "KaliLinux" | "RedHat" | "Fedora" | "CentOS" | "Clone" | "Copy" | "Live" | "HealthCheck" | "ReverseProxy" | "ReverseProxyCORS" | "ReverseProxyRoutes" | "ReverseProxyFrom" | "ReverseProxyHeadersRequest" | "ReverseProxyHeadersResponse" | "ReverseProxyHTTP" | "ReverseProxyTo" | "ReverseProxyTLS" | "ReverseProxyTCP" | "Refresh" | "Calendar" | "Folder" | "Jobs" | "Warning" | "Artifactory" | "Azure" | "Minio" | "Aws" | "Orchestrator" | "Podman" | "PodmanDesktop" | "Group" | "Pin" | "Database" | "RemoteHost" | "Login" | "Logout" | "Snapshot" | "Revert" | "CleanBrush" | "Pull" | "Push" | "CatalogVersion" | "File" | "Revoke" | "Taint" | "Unlock" | "Check" | "ArrowChevronLeft" | "ArrowChevronRight" | "Drag";
|
|
370
|
-
declare const iconRegistry: Record<IconName, React__default.ForwardRefExoticComponent<React__default.SVGProps<SVGSVGElement>>>;
|
|
371
|
-
|
|
372
|
-
type HelpButtonPlacement = "top" | "bottom" | "left" | "right" | "auto";
|
|
373
|
-
interface HelpButtonProps {
|
|
374
|
-
/**
|
|
375
|
-
* Help content to display in the panel.
|
|
376
|
-
* Pass a `string` to render as Markdown (tables and URLs supported).
|
|
377
|
-
* Pass a `ReactNode` to render arbitrary JSX directly.
|
|
378
|
-
*/
|
|
379
|
-
content: string | React__default.ReactNode;
|
|
380
|
-
/** Optional title shown in the panel header. Defaults to "Help". */
|
|
381
|
-
title?: React__default.ReactNode;
|
|
382
|
-
/**
|
|
383
|
-
* Preferred placement of the floating panel relative to the trigger button.
|
|
384
|
-
* "auto" (default) picks the side with the most available space.
|
|
385
|
-
*/
|
|
386
|
-
placement?: HelpButtonPlacement;
|
|
387
|
-
/** Accent color for the trigger button and the panel header stripe. */
|
|
388
|
-
color?: TrueColor;
|
|
389
|
-
/** Size of the trigger icon button. */
|
|
390
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
391
|
-
/** Icon for the trigger button. Defaults to "Help". */
|
|
392
|
-
icon?: IconName;
|
|
393
|
-
/** Maximum width of the floating panel in px. Defaults to 360. */
|
|
394
|
-
maxWidth?: number;
|
|
395
|
-
/** Extra class applied to the root wrapper. */
|
|
396
|
-
className?: string;
|
|
397
|
-
}
|
|
398
|
-
declare const HelpButton: React__default.FC<HelpButtonProps>;
|
|
399
|
-
|
|
400
|
-
declare enum CapsuleBlueprintValueType {
|
|
401
|
-
String = "string",
|
|
402
|
-
Int = "int",
|
|
403
|
-
Boolean = "boolean",
|
|
404
|
-
Select = "select",
|
|
405
|
-
List = "list",
|
|
406
|
-
Map = "map"
|
|
407
|
-
}
|
|
408
|
-
interface CapsuleBlueprintParameter {
|
|
409
|
-
name: string;
|
|
410
|
-
key: string;
|
|
411
|
-
description?: string;
|
|
412
|
-
type?: string;
|
|
413
|
-
value_type?: CapsuleBlueprintValueType;
|
|
414
|
-
default?: any;
|
|
415
|
-
required?: boolean;
|
|
416
|
-
is_required?: boolean;
|
|
417
|
-
is_secret?: boolean;
|
|
418
|
-
options?: any;
|
|
419
|
-
hint?: string;
|
|
420
|
-
help?: string;
|
|
421
|
-
service_name?: string;
|
|
422
|
-
depends_on?: string[];
|
|
423
|
-
[key: string]: any;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
export { getPillColorClasses as $, type AlertIntent as A, type ButtonVariant as B, type ControlSize as C, DEFAULT_SURFACE_CORNER as D, type SurfaceTriggerTokens as E, TRUE_COLORS as F, type GlowIntensity as G, type HelpButtonProps as H, type IconName as I, configureTheme as J, getAlertColorClasses as K, getAlertVariantTokens as L, getBadgeColorClasses as M, getButtonActiveClasses as N, getButtonActiveHoverClasses as O, getButtonBaseClasses as P, getButtonColorClasses as Q, getButtonHoverClasses as R, type SurfaceCorner as S, type TrueColor as T, getCheckboxColorClasses as U, getGlowTokens as V, getInputVariantTokens as W, getLoaderProgressColors as X, getMultiToggleColorTokens as Y, getMultiToggleVariantTokens as Z, getPanelToneStyles as _, type AlertVariant as a, getSpinnerColorTokens as a0, getStatTileColorClasses as a1, getStepperTonePalette as a2, getSurfaceCornerClass as a3, getSurfaceCornerRem as a4, getSurfacePaddingClass as a5, getSurfacePaddingClasses as a6, getSurfaceTextTokens as a7, getSurfaceTriggerTokens as a8, getTabsColorTokens as a9, getToggleColorClasses as aa, iconRegistry as ab, resetTheme as ac, resolveGlowGradient as ad, HelpButton as ae, type AlertIconAlign as b, type ButtonWeight as c, type Size as d, type SurfaceVariant as e, type SurfacePadding as f, type InputVariant as g, type CapsuleBlueprintParameter as h, type SurfaceTextTokens as i, ALERT_ICON_ALIGNMENTS as j, ALERT_INTENTS as k, ALERT_INTENT_CONFIG as l, ALERT_VARIANTS as m, type AlertIntentConfig as n, type AlertVariantTokens as o, BUTTON_VARIANTS as p, BUTTON_WEIGHTS as q, CONTROL_SIZES as r, CapsuleBlueprintValueType as s, GLOW_INTENSITIES as t, type GlowTokens as u, INPUT_VARIANTS as v, type InputVariantTokens as w, SURFACE_CORNERS as x, SURFACE_PADDINGS as y, SURFACE_VARIANTS as z };
|