@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.
Files changed (96) hide show
  1. package/dist/index.cjs +1205 -829
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +37 -0
  4. package/dist/index.d.cts +260 -44
  5. package/dist/index.d.ts +260 -44
  6. package/dist/index.js +1140 -767
  7. package/dist/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/dist/CapsuleBlueprint--CgRT7dr.d.cts +0 -426
  10. package/dist/CapsuleBlueprint--CgRT7dr.d.ts +0 -426
  11. package/dist/CapsuleBlueprint-12uQWAvU.d.cts +0 -732
  12. package/dist/CapsuleBlueprint-12uQWAvU.d.ts +0 -732
  13. package/dist/CapsuleBlueprint-1FP6avn4.d.cts +0 -1017
  14. package/dist/CapsuleBlueprint-1FP6avn4.d.ts +0 -1017
  15. package/dist/CapsuleBlueprint-6DmJgar9.d.cts +0 -358
  16. package/dist/CapsuleBlueprint-6DmJgar9.d.ts +0 -358
  17. package/dist/CapsuleBlueprint-B7MPc5wu.d.cts +0 -835
  18. package/dist/CapsuleBlueprint-B7MPc5wu.d.ts +0 -835
  19. package/dist/CapsuleBlueprint-BFHAMKUF.d.cts +0 -991
  20. package/dist/CapsuleBlueprint-BFHAMKUF.d.ts +0 -991
  21. package/dist/CapsuleBlueprint-BG23ZWsl.d.cts +0 -460
  22. package/dist/CapsuleBlueprint-BG23ZWsl.d.ts +0 -460
  23. package/dist/CapsuleBlueprint-BGx-KPqS.d.cts +0 -925
  24. package/dist/CapsuleBlueprint-BGx-KPqS.d.ts +0 -925
  25. package/dist/CapsuleBlueprint-BJYVRyFD.d.cts +0 -449
  26. package/dist/CapsuleBlueprint-BJYVRyFD.d.ts +0 -449
  27. package/dist/CapsuleBlueprint-BQq4ywG4.d.cts +0 -835
  28. package/dist/CapsuleBlueprint-BQq4ywG4.d.ts +0 -835
  29. package/dist/CapsuleBlueprint-BTgmUcyF.d.cts +0 -278
  30. package/dist/CapsuleBlueprint-BTgmUcyF.d.ts +0 -278
  31. package/dist/CapsuleBlueprint-BX2YI1yC.d.cts +0 -415
  32. package/dist/CapsuleBlueprint-BX2YI1yC.d.ts +0 -415
  33. package/dist/CapsuleBlueprint-BfPODmvJ.d.cts +0 -822
  34. package/dist/CapsuleBlueprint-BfPODmvJ.d.ts +0 -822
  35. package/dist/CapsuleBlueprint-BfSPPu5k.d.cts +0 -616
  36. package/dist/CapsuleBlueprint-BfSPPu5k.d.ts +0 -616
  37. package/dist/CapsuleBlueprint-BoPkPR2J.d.cts +0 -785
  38. package/dist/CapsuleBlueprint-BoPkPR2J.d.ts +0 -785
  39. package/dist/CapsuleBlueprint-CJeLH0j2.d.cts +0 -228
  40. package/dist/CapsuleBlueprint-CJeLH0j2.d.ts +0 -228
  41. package/dist/CapsuleBlueprint-CJwXDMzM.d.cts +0 -622
  42. package/dist/CapsuleBlueprint-CJwXDMzM.d.ts +0 -622
  43. package/dist/CapsuleBlueprint-CM125BJI.d.cts +0 -811
  44. package/dist/CapsuleBlueprint-CM125BJI.d.ts +0 -811
  45. package/dist/CapsuleBlueprint-CQPeacGV.d.cts +0 -426
  46. package/dist/CapsuleBlueprint-CQPeacGV.d.ts +0 -426
  47. package/dist/CapsuleBlueprint-CQy2O0UN.d.cts +0 -889
  48. package/dist/CapsuleBlueprint-CQy2O0UN.d.ts +0 -889
  49. package/dist/CapsuleBlueprint-CRy04iCR.d.cts +0 -695
  50. package/dist/CapsuleBlueprint-CRy04iCR.d.ts +0 -695
  51. package/dist/CapsuleBlueprint-CixXdjMu.d.cts +0 -925
  52. package/dist/CapsuleBlueprint-CixXdjMu.d.ts +0 -925
  53. package/dist/CapsuleBlueprint-CjCxwO1O.d.cts +0 -786
  54. package/dist/CapsuleBlueprint-CjCxwO1O.d.ts +0 -786
  55. package/dist/CapsuleBlueprint-Cm10IA2w.d.cts +0 -342
  56. package/dist/CapsuleBlueprint-Cm10IA2w.d.ts +0 -342
  57. package/dist/CapsuleBlueprint-CoGsooJJ.d.cts +0 -492
  58. package/dist/CapsuleBlueprint-CoGsooJJ.d.ts +0 -492
  59. package/dist/CapsuleBlueprint-CpHqUsJK.d.cts +0 -786
  60. package/dist/CapsuleBlueprint-CpHqUsJK.d.ts +0 -786
  61. package/dist/CapsuleBlueprint-CrRg8EVW.d.cts +0 -358
  62. package/dist/CapsuleBlueprint-CrRg8EVW.d.ts +0 -358
  63. package/dist/CapsuleBlueprint-DGxsd0aY.d.cts +0 -785
  64. package/dist/CapsuleBlueprint-DGxsd0aY.d.ts +0 -785
  65. package/dist/CapsuleBlueprint-DYnwizSo.d.cts +0 -698
  66. package/dist/CapsuleBlueprint-DYnwizSo.d.ts +0 -698
  67. package/dist/CapsuleBlueprint-DbLSB78P.d.cts +0 -235
  68. package/dist/CapsuleBlueprint-DbLSB78P.d.ts +0 -235
  69. package/dist/CapsuleBlueprint-DfV8XBEZ.d.cts +0 -1001
  70. package/dist/CapsuleBlueprint-DfV8XBEZ.d.ts +0 -1001
  71. package/dist/CapsuleBlueprint-DiG1FUoM.d.cts +0 -757
  72. package/dist/CapsuleBlueprint-DiG1FUoM.d.ts +0 -757
  73. package/dist/CapsuleBlueprint-DvdeHC13.d.cts +0 -289
  74. package/dist/CapsuleBlueprint-DvdeHC13.d.ts +0 -289
  75. package/dist/CapsuleBlueprint-DvinXyHp.d.cts +0 -342
  76. package/dist/CapsuleBlueprint-DvinXyHp.d.ts +0 -342
  77. package/dist/CapsuleBlueprint-DwW8YOJg.d.cts +0 -925
  78. package/dist/CapsuleBlueprint-DwW8YOJg.d.ts +0 -925
  79. package/dist/CapsuleBlueprint-E069msDY.d.cts +0 -310
  80. package/dist/CapsuleBlueprint-E069msDY.d.ts +0 -310
  81. package/dist/CapsuleBlueprint-LECoxlXA.d.cts +0 -497
  82. package/dist/CapsuleBlueprint-LECoxlXA.d.ts +0 -497
  83. package/dist/CapsuleBlueprint-V9pDg6lh.d.cts +0 -247
  84. package/dist/CapsuleBlueprint-V9pDg6lh.d.ts +0 -247
  85. package/dist/CapsuleBlueprint-bOLrWbIc.d.cts +0 -858
  86. package/dist/CapsuleBlueprint-bOLrWbIc.d.ts +0 -858
  87. package/dist/CapsuleBlueprint-if_tP8K8.d.cts +0 -1022
  88. package/dist/CapsuleBlueprint-if_tP8K8.d.ts +0 -1022
  89. package/dist/CapsuleBlueprint-pP0Ima0I.d.cts +0 -768
  90. package/dist/CapsuleBlueprint-pP0Ima0I.d.ts +0 -768
  91. package/dist/CapsuleBlueprint-w82xP6zg.d.cts +0 -222
  92. package/dist/CapsuleBlueprint-w82xP6zg.d.ts +0 -222
  93. package/dist/CapsuleBlueprint-wdlxOX4L.d.cts +0 -472
  94. package/dist/CapsuleBlueprint-wdlxOX4L.d.ts +0 -472
  95. package/dist/CapsuleBlueprint-wxqu6jA3.d.cts +0 -529
  96. package/dist/CapsuleBlueprint-wxqu6jA3.d.ts +0 -529
@@ -1,529 +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
- * The geometry of an interactive control at each shared size.
34
- *
35
- * Every control in the trigger family needs the same answer to "how big is the
36
- * icon, the box, the spinner at this size". That table was copy-pasted into
37
- * `Button` (text padding, icon-only padding, icon and spinner sizes) and
38
- * `IconButton` (square box, icon, `<Spinner>` size) — two copies of one scale,
39
- * drifting independently. It lives here once; the components import it.
40
- */
41
- type ControlSizeTokens = {
42
- /** Font size and padding of a labelled control. */
43
- text: string;
44
- /** Padding of a square (icon-only) control. */
45
- iconOnly: string;
46
- /** Fixed box of a square control (`IconButton`). */
47
- box: string;
48
- /** Space between an icon and its label. */
49
- gap: string;
50
- /** Icon dimensions at this control size — identical across controls. */
51
- icon: string;
52
- /** Dimensions of the inline spinner inside a labelled control. */
53
- spinner: string;
54
- /** Size to pass to `<Spinner>` inside a square control. */
55
- spinnerSize: ControlSize;
56
- };
57
- declare const getControlSizeTokens: (size: ControlSize) => ControlSizeTokens;
58
- /**
59
- * The corner radius every trigger-family control shares, so a `Button` next to
60
- * an `Input` is the same box (both `rounded-lg`). Panel-family containers use
61
- * `DEFAULT_SURFACE_CORNER` instead — a different scale, deliberately.
62
- */
63
- declare const DEFAULT_TRIGGER_CORNER = "rounded-lg";
64
- /**
65
- * Strength of a decorative glow behind a control (currently `SearchBar`'s
66
- * gradient variant).
67
- */
68
- declare const GLOW_INTENSITIES: readonly ["subtle", "soft", "medium", "strong"];
69
- type GlowIntensity = (typeof GLOW_INTENSITIES)[number];
70
- /**
71
- * Surface treatments shared by every text-entry control — `Input`, `Textarea`,
72
- * `SearchBar`. Defined once here so the three are the same box when they sit
73
- * next to each other in a form.
74
- */
75
- declare const INPUT_VARIANTS: readonly ["flat", "elevated", "ghost", "underline", "glass", "gradient"];
76
- type InputVariant = (typeof INPUT_VARIANTS)[number];
77
- type InputVariantTokens = {
78
- /** Border, fill, radius, shadow, backdrop. */
79
- surface: string;
80
- /** Text and placeholder colours. */
81
- text: string;
82
- /** Resting colour for a leading icon or other adornment. */
83
- icon: string;
84
- /** True when the surface is see-through and sits over unknown content. */
85
- translucent: boolean;
86
- };
87
- /**
88
- * The variant's surface with its border colour removed, keeping the width and
89
- * sides.
90
- *
91
- * A validation state paints its own border colour, and `border-rose-500`
92
- * beside the variant's `border-neutral-300` is a same-specificity collision
93
- * whose winner is emission order — measured in the built stylesheet,
94
- * `.border-emerald-500` lands *before* `.border-neutral-300` and
95
- * `.border-rose-500` after it, so an errored field turned rose and a
96
- * successful one stayed grey. Strip the colour so only one class can apply.
97
- */
98
- declare const stripBorderColor: (surface: string) => string;
99
- declare const getInputVariantTokens: (variant: InputVariant) => InputVariantTokens;
100
- /**
101
- * Surface treatments for containers — `Panel` and anything built on it
102
- * (`FormSection`). Kept here so the type and the text that sits on those
103
- * surfaces are defined once, not per component.
104
- */
105
- declare const SURFACE_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass"];
106
- type SurfaceVariant = (typeof SURFACE_VARIANTS)[number];
107
- type SurfaceTextTokens = {
108
- /** Section and card headings. */
109
- heading: string;
110
- /** Body copy. */
111
- body: string;
112
- /** Secondary copy — descriptions under a label. */
113
- description: string;
114
- /** Tertiary copy — hints, counters, "optional" markers. */
115
- muted: string;
116
- /** Hairline between regions of the surface. */
117
- divider: string;
118
- translucent: boolean;
119
- };
120
- declare const getSurfaceTextTokens: (variant: SurfaceVariant) => SurfaceTextTokens;
121
- /**
122
- * A full-bleed interactive region on a container surface — a disclosure header,
123
- * a clickable card row.
124
- *
125
- * Two rules learned the hard way, both encoded here so callers cannot get them
126
- * wrong: a ring colour is inert without a ring *width*, and an outer ring is
127
- * clipped by any ancestor with `overflow: hidden` (which every `Panel` has), so
128
- * the ring is inset.
129
- */
130
- type SurfaceTriggerTokens = {
131
- /** Background wash on hover. Low-alpha, so it works on glass too. */
132
- hover: string;
133
- /** Complete focus indicator: outline reset, width, inset, colour. */
134
- focusRing: string;
135
- };
136
- declare const getSurfaceTriggerTokens: (color: TrueColor) => SurfaceTriggerTokens;
137
- /**
138
- * Corner radius scale for container surfaces.
139
- *
140
- * The token names are historical and do NOT map 1:1 onto Tailwind's radius
141
- * utilities — `rounded-sm` here is Tailwind's `rounded-lg`. They are kept as
142
- * they are because the whole kit already calls them by these names and the
143
- * scale itself is monotonic and correct; renaming would silently reshape every
144
- * existing card. `getSurfaceCornerRem` exposes the real radius so a demo can
145
- * label them honestly.
146
- *
147
- * `pill` used to be a duplicate of `rounded-lg` (both `rounded-3xl`), which is
148
- * not what a pill is; it is now a true capsule.
149
- */
150
- declare const SURFACE_CORNERS: readonly ["none", "rounded", "rounded-sm", "rounded-md", "rounded-lg", "rounded-xl", "rounded-full", "pill"];
151
- type SurfaceCorner = (typeof SURFACE_CORNERS)[number];
152
- /** The radius a container uses when the caller does not pick one. */
153
- declare const DEFAULT_SURFACE_CORNER: SurfaceCorner;
154
- declare const getSurfaceCornerClass: (corner: SurfaceCorner) => string;
155
- declare const getSurfaceCornerRem: (corner: SurfaceCorner) => string;
156
- /**
157
- * Container padding, on the same scale every control uses plus a `none` step,
158
- * so a Panel's padding and the Button inside it are described in one language.
159
- */
160
- declare const SURFACE_PADDINGS: readonly ["none", "xs", "sm", "md", "lg", "xl"];
161
- type SurfacePadding = "none" | ControlSize;
162
- declare const getSurfacePaddingClass: (padding: SurfacePadding) => string;
163
- /** Every padding token but `none`, for the callers that require a real inset. */
164
- declare const getSurfacePaddingClasses: () => Record<SurfacePadding, string>;
165
- /**
166
- * Geometry and opacity of the `gradient` variant's glow.
167
- *
168
- * `pad` is reserved on the control's own wrapper and `inset` positions the glow
169
- * inside it, so the halo is drawn **within the control's layout box**. Painting
170
- * it outside — the obvious way — means any ancestor with `overflow: auto`
171
- * clips it, and `Panel`'s body is `overflow-auto` by default. Same rule as the
172
- * inset focus ring.
173
- */
174
- type GlowTokens = {
175
- /** Padding reserved on the wrapper to hold the halo. */
176
- pad: string;
177
- /** Glow position inside that padding. The gap left over absorbs the blur. */
178
- inset: string;
179
- blur: string;
180
- idleOpacity: number;
181
- focusOpacity: number;
182
- };
183
- declare const getGlowTokens: (intensity: GlowIntensity) => GlowTokens;
184
- /**
185
- * Glow gradient stops: the tone's 600 and 400 shades, read from Tailwind's own
186
- * custom properties rather than a hard-coded hex table.
187
- */
188
- declare const resolveGlowGradient: (tone: TrueColor, from?: string, to?: string) => [string, string];
189
- type ButtonTheme = Record<ButtonVariant, Record<TrueColor, string>>;
190
- type ButtonHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
191
- type ButtonActiveTheme = Record<ButtonVariant, Record<TrueColor, string>>;
192
- type ButtonActiveHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
193
- type ToggleTheme = Record<TrueColor, string>;
194
- type CheckboxTheme = Record<TrueColor, string>;
195
- type SpinnerTheme = Record<TrueColor, [string, string, string, string]>;
196
- type LoaderTheme = Record<TrueColor, {
197
- track: string;
198
- bar: string;
199
- }>;
200
- type MultiToggleTheme = Record<TrueColor, {
201
- active: string;
202
- activeText: string;
203
- indicator: string;
204
- hover: string;
205
- }>;
206
- type MultiToggleVariantTokens = {
207
- softIndicator: string;
208
- activeText: string;
209
- hover: string;
210
- };
211
- type MultiToggleVariantTheme = Record<TrueColor, MultiToggleVariantTokens>;
212
- type TabsColorTokens = {
213
- hoverText: string;
214
- activeText: string;
215
- onAccentText: string;
216
- focusRing: string;
217
- accentBg: string;
218
- subtleBg: string;
219
- subtleHoverBg: string;
220
- segmentedContainer: string;
221
- badgeSubtle: string;
222
- badgeStrong: string;
223
- badgeOnAccent: string;
224
- underlineActive: string;
225
- };
226
- type TabsTheme = Record<TrueColor, TabsColorTokens>;
227
- type PanelToneConfig = {
228
- border: string;
229
- /**
230
- * Hairline for the `outlined` variant. Deliberately lighter than `border`
231
- * and paired with a low-alpha dark value, so the outline reads as a hairline
232
- * in both modes instead of a hard rule in light mode.
233
- */
234
- outlineBorder: string;
235
- heading: string;
236
- muted: string;
237
- badge: string;
238
- subtleBg: string;
239
- tonalBg: string;
240
- glassBg: string;
241
- glassBorder: string;
242
- liquidBg: string;
243
- liquidBorder: string;
244
- liquidShadow: string;
245
- liquidHeading: string;
246
- overlayGradient: string;
247
- decorationShape: string;
248
- decorationGradient: string;
249
- };
250
- type PanelTheme = Record<TrueColor, PanelToneConfig>;
251
- type StepperToneConfig = {
252
- activeBg: string;
253
- activeText: string;
254
- completedBg: string;
255
- completedText: string;
256
- pendingBorder: string;
257
- pendingText: string;
258
- underlineBase: string;
259
- };
260
- type StepperTheme = Record<TrueColor, StepperToneConfig>;
261
- type BadgeTheme = Record<TrueColor, string>;
262
- type PillTheme = Record<TrueColor, Record<"solid" | "soft" | "outline", {
263
- base: string;
264
- border?: string;
265
- }>>;
266
- type AlertTheme = Record<TrueColor, {
267
- subtle: string;
268
- solid: string;
269
- outline: string;
270
- icon: string;
271
- text: string;
272
- border: string;
273
- dismiss: string;
274
- }>;
275
- type StatTileTheme = Record<TrueColor, {
276
- decorationBg: string;
277
- iconColor: string;
278
- divider: string;
279
- }>;
280
- type ButtonSelectorColorTokens = {
281
- selectedBorder: string;
282
- selectedBg: string;
283
- selectedIcon: string;
284
- selectedLabel: string;
285
- selectedIndicatorBg: string;
286
- selectedIndicatorBorder: string;
287
- selectedIndicatorDot: string;
288
- };
289
- type ButtonSelectorTheme = Record<TrueColor, ButtonSelectorColorTokens>;
290
- interface ThemeDefinition {
291
- button: ButtonTheme;
292
- buttonHover: ButtonHoverTheme;
293
- buttonActive: ButtonActiveTheme;
294
- buttonActiveHover: ButtonActiveHoverTheme;
295
- toggle: ToggleTheme;
296
- checkbox: CheckboxTheme;
297
- spinner: SpinnerTheme;
298
- loader: LoaderTheme;
299
- multiToggle: MultiToggleTheme;
300
- multiToggleVariant: MultiToggleVariantTheme;
301
- tabs: TabsTheme;
302
- panel: PanelTheme;
303
- stepper: StepperTheme;
304
- badge: BadgeTheme;
305
- pill: PillTheme;
306
- alert: AlertTheme;
307
- statTile: StatTileTheme;
308
- buttonSelector: ButtonSelectorTheme;
309
- }
310
- type DeepPartial<T> = {
311
- [K in keyof T]?: T[K] extends Record<string, unknown> ? DeepPartial<T[K]> : T[K];
312
- };
313
- declare const configureTheme: (overrides: DeepPartial<ThemeDefinition>) => void;
314
- declare const resetTheme: () => void;
315
- declare const getButtonColorClasses: (variant: ButtonVariant, color: TrueColor) => string;
316
- declare const getButtonHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
317
- declare const getButtonActiveClasses: (variant: ButtonVariant, color: TrueColor) => string;
318
- declare const getButtonActiveHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
319
- declare const getButtonBaseClasses: (variant: ButtonVariant, color: TrueColor) => string;
320
- /**
321
- * The `ButtonVariant`s that read as a slider.
322
- *
323
- * `link` and `clear` are text treatments — a slider has no text to treat —
324
- * and `icon` is a square affordance, so all three are excluded rather than
325
- * aliased onto something else. What remains covers the full range a track
326
- * can express: a saturated fill, a tinted one, a bordered wash, a quiet
327
- * translucent one and a frosted one.
328
- */
329
- declare const SLIDER_VARIANTS: readonly ["solid", "soft", "outline", "ghost", "glass"];
330
- type SliderVariant = (typeof SLIDER_VARIANTS)[number];
331
- interface SliderVariantTokens {
332
- /** Paint for the active track segment, from the start (or min handle) to the value. */
333
- fill: string;
334
- /** Border of the handle. */
335
- handle: string;
336
- /** The handle's focus-ring colour, including its `focus-visible:` prefix. */
337
- ring: string;
338
- }
339
- /**
340
- * Slider treatments — the same visual language `Button` uses, mapped onto a
341
- * slider's two paintable surfaces (the track segment and the handle) so a
342
- * slider dropped next to a button row reads as part of the same UI.
343
- */
344
- declare const getSliderVariantTokens: (color: TrueColor, variant: SliderVariant) => SliderVariantTokens;
345
- declare const getToggleColorClasses: (color: TrueColor) => string;
346
- /**
347
- * @deprecated Returns `accent-{color}-600`, which only paints a *native*
348
- * checkbox — and a native checkbox ignores border, radius and background, so
349
- * every other class the control carried was dead. Use
350
- * `getCheckboxControlTokens`, which styles a real box.
351
- */
352
- declare const getCheckboxColorClasses: (color: TrueColor) => string;
353
- interface CheckboxControlTokens {
354
- /** Fill and border of the box once checked or indeterminate. */
355
- checked: string;
356
- /** Focus ring, driven off the sibling input's focus. */
357
- ring: string;
358
- /** Colour of the tick/dash glyph, which sits on the checked fill. */
359
- glyph: string;
360
- }
361
- /**
362
- * Fills step to `-700` light / `-400` dark rather than the `-600` / `-500` the
363
- * native `accent-color` used, for the same reason `Alert`'s solid variant does:
364
- * a white glyph on `{color}-600` measures 2.94:1 on yellow and 3.06 on lime,
365
- * under even the 3:1 that WCAG asks of a *graphical* object, and on a `-500`
366
- * fill it is worse. At `-700` under white and `-400` under `{color}-950` the
367
- * worst case across all 21 tones is 4.93:1.
368
- */
369
- interface CheckboxVariantTokens {
370
- /** Fill, shadow and backdrop of the resting box. */
371
- fill: string;
372
- /** Resting border colour. Replaced wholesale by the error state. */
373
- border: string;
374
- /** Border colour under the cursor. */
375
- hover: string;
376
- /** True when the box is see-through and sits over unknown content. */
377
- translucent: boolean;
378
- }
379
- declare const getCheckboxVariantTokens: (variant: InputVariant) => CheckboxVariantTokens;
380
- declare const getCheckboxControlTokens: (color: TrueColor) => CheckboxControlTokens;
381
- declare const getSpinnerColorTokens: (color: TrueColor) => [string, string, string, string];
382
- declare const getLoaderProgressColors: (color: TrueColor) => {
383
- track: string;
384
- bar: string;
385
- };
386
- declare const getMultiToggleColorTokens: (color: TrueColor) => {
387
- active: string;
388
- activeText: string;
389
- indicator: string;
390
- hover: string;
391
- };
392
- declare const getMultiToggleVariantTokens: (color: TrueColor) => MultiToggleVariantTokens;
393
- declare const getTabsColorTokens: (color: TrueColor) => TabsColorTokens;
394
- declare const getPanelToneStyles: (tone: TrueColor) => PanelToneConfig;
395
- declare const getStepperTonePalette: (tone: TrueColor) => StepperToneConfig;
396
- declare const getBadgeColorClasses: (color: TrueColor) => string;
397
- declare const getPillColorClasses: (color: TrueColor, variant: "solid" | "soft" | "outline") => {
398
- base: string;
399
- border?: string;
400
- };
401
- /**
402
- * @deprecated Use `getAlertVariantTokens(color, variant)`. This bag hands the
403
- * same icon/text/dismiss classes to every variant, which is unreadable on
404
- * `solid`. Kept so existing call sites keep compiling.
405
- */
406
- declare const getAlertColorClasses: (color: TrueColor) => AlertTheme[TrueColor];
407
- /**
408
- * Alert treatments. `glass` and `liquid-glass` are the same pair `Panel` and
409
- * `Pill` offer, so a callout dropped on a glass card no longer has to be the
410
- * one opaque slab in the layout.
411
- */
412
- declare const ALERT_VARIANTS: readonly ["subtle", "solid", "outline", "glass", "liquid-glass"];
413
- type AlertVariant = (typeof ALERT_VARIANTS)[number];
414
- /**
415
- * Where the leading icon sits against the callout's content.
416
- *
417
- * `top` is the default and the only one that was previously possible: the icon
418
- * centres on the *title's* line box, which is what you want for a one- or
419
- * two-line callout. `center` centres it against the whole block — right when
420
- * the body runs long enough that a top-aligned glyph looks stranded — and
421
- * `bottom` pins it to the last line.
422
- */
423
- declare const ALERT_ICON_ALIGNMENTS: readonly ["top", "center", "bottom"];
424
- type AlertIconAlign = (typeof ALERT_ICON_ALIGNMENTS)[number];
425
- /**
426
- * What the callout *means*, as opposed to what colour it is.
427
- *
428
- * Both kits' demos have been passing `tone="info"` / `"success"` / `"warning"`
429
- * / `"danger"` since tone became a `TrueColor` — none of them are one, so every
430
- * such alert fell through to the blue fallback and four "different" tones
431
- * rendered identically. The semantics were real and worth keeping; they just
432
- * belong in their own prop, which resolves to a tone *and* the right icon *and*
433
- * the right live-region politeness.
434
- */
435
- declare const ALERT_INTENTS: readonly ["info", "success", "warning", "danger", "neutral"];
436
- type AlertIntent = (typeof ALERT_INTENTS)[number];
437
- interface AlertIntentConfig {
438
- tone: TrueColor;
439
- /** Registry icon name used when the caller does not supply one. */
440
- icon: string;
441
- /**
442
- * How assistive technology should announce it. `role="alert"` is an
443
- * *assertive* live region: it interrupts whatever the user is reading, which
444
- * is right for a failure and wrong for a page that merely renders an
445
- * informational banner on load.
446
- */
447
- live: "assertive" | "polite";
448
- }
449
- declare const ALERT_INTENT_CONFIG: Record<AlertIntent, AlertIntentConfig>;
450
- interface AlertVariantTokens {
451
- /** Fill plus the callout's base copy colour. */
452
- surface: string;
453
- /** Border colour. The `border` utility itself is on the base class. */
454
- border: string;
455
- /** Leading icon. */
456
- icon: string;
457
- /** Secondary copy under the title. */
458
- text: string;
459
- /** Dismiss button: rest, hover and focus ring. */
460
- dismiss: string;
461
- }
462
- /**
463
- * Replaces the old flat `getAlertColorClasses` bag, which handed the *same*
464
- * `icon`, `text` and `dismiss` classes to every variant. On `solid` — a
465
- * `{color}-600` fill — that painted the description `{color}-700` and the icon
466
- * `{color}-500`, i.e. a dark tone on a saturated tone of itself. It was
467
- * unreadable at every tone and no test could see it.
468
- */
469
- declare const getAlertVariantTokens: (color: TrueColor, variant: AlertVariant) => AlertVariantTokens;
470
- declare const getStatTileColorClasses: (color: TrueColor) => StatTileTheme[TrueColor];
471
-
472
- 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";
473
- declare const iconRegistry: Record<IconName, React__default.ForwardRefExoticComponent<React__default.SVGProps<SVGSVGElement>>>;
474
-
475
- type HelpButtonPlacement = "top" | "bottom" | "left" | "right" | "auto";
476
- interface HelpButtonProps {
477
- /**
478
- * Help content to display in the panel.
479
- * Pass a `string` to render as Markdown (tables and URLs supported).
480
- * Pass a `ReactNode` to render arbitrary JSX directly.
481
- */
482
- content: string | React__default.ReactNode;
483
- /** Optional title shown in the panel header. Defaults to "Help". */
484
- title?: React__default.ReactNode;
485
- /**
486
- * Preferred placement of the floating panel relative to the trigger button.
487
- * "auto" (default) picks the side with the most available space.
488
- */
489
- placement?: HelpButtonPlacement;
490
- /** Accent color for the trigger button and the panel header stripe. */
491
- color?: TrueColor;
492
- /** Size of the trigger icon button. */
493
- size?: "xs" | "sm" | "md" | "lg";
494
- /** Icon for the trigger button. Defaults to "Help". */
495
- icon?: IconName;
496
- /** Maximum width of the floating panel in px. Defaults to 360. */
497
- maxWidth?: number;
498
- /** Extra class applied to the root wrapper. */
499
- className?: string;
500
- }
501
- declare const HelpButton: React__default.FC<HelpButtonProps>;
502
-
503
- declare enum CapsuleBlueprintValueType {
504
- String = "string",
505
- Int = "int",
506
- Boolean = "boolean",
507
- Select = "select",
508
- List = "list",
509
- Map = "map"
510
- }
511
- interface CapsuleBlueprintParameter {
512
- name: string;
513
- key: string;
514
- description?: string;
515
- type?: string;
516
- value_type?: CapsuleBlueprintValueType;
517
- default?: any;
518
- required?: boolean;
519
- is_required?: boolean;
520
- is_secret?: boolean;
521
- options?: any;
522
- hint?: string;
523
- help?: string;
524
- service_name?: string;
525
- depends_on?: string[];
526
- [key: string]: any;
527
- }
528
-
529
- export { getCheckboxColorClasses as $, type AlertIntent as A, type ButtonVariant as B, type ControlSize as C, DEFAULT_SURFACE_CORNER as D, INPUT_VARIANTS as E, type InputVariantTokens as F, type GlowIntensity as G, type HelpButtonProps as H, type IconName as I, SLIDER_VARIANTS as J, SURFACE_CORNERS as K, SURFACE_PADDINGS as L, SURFACE_VARIANTS as M, type SliderVariantTokens as N, type SurfaceTriggerTokens as O, TRUE_COLORS as P, configureTheme as Q, getAlertColorClasses as R, type SurfaceCorner as S, type TrueColor as T, getAlertVariantTokens as U, getBadgeColorClasses as V, getButtonActiveClasses as W, getButtonActiveHoverClasses as X, getButtonBaseClasses as Y, getButtonColorClasses as Z, getButtonHoverClasses as _, type AlertVariant as a, getCheckboxControlTokens as a0, getCheckboxVariantTokens as a1, getControlSizeTokens as a2, getGlowTokens as a3, getInputVariantTokens as a4, getLoaderProgressColors as a5, getMultiToggleColorTokens as a6, getMultiToggleVariantTokens as a7, getPanelToneStyles as a8, getPillColorClasses as a9, getSliderVariantTokens as aa, getSpinnerColorTokens as ab, getStatTileColorClasses as ac, getStepperTonePalette as ad, getSurfaceCornerClass as ae, getSurfaceCornerRem as af, getSurfacePaddingClass as ag, getSurfacePaddingClasses as ah, getSurfaceTextTokens as ai, getSurfaceTriggerTokens as aj, getTabsColorTokens as ak, getToggleColorClasses as al, iconRegistry as am, resetTheme as an, resolveGlowGradient as ao, stripBorderColor as ap, HelpButton as aq, type AlertIconAlign as b, type ButtonWeight as c, type SurfacePadding as d, type SurfaceVariant as e, type InputVariant as f, type SliderVariant as g, type Size as h, type CapsuleBlueprintParameter as i, type SurfaceTextTokens as j, ALERT_ICON_ALIGNMENTS as k, ALERT_INTENTS as l, ALERT_INTENT_CONFIG as m, ALERT_VARIANTS as n, type AlertIntentConfig as o, type AlertVariantTokens as p, BUTTON_VARIANTS as q, BUTTON_WEIGHTS as r, CONTROL_SIZES as s, CapsuleBlueprintValueType as t, type CheckboxControlTokens as u, type CheckboxVariantTokens as v, type ControlSizeTokens as w, DEFAULT_TRIGGER_CORNER as x, GLOW_INTENSITIES as y, type GlowTokens as z };