@cjlapao/ui-kit 0.2.3 → 0.2.5
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/{CapsuleBlueprint-DwDZ7nii.d.cts → CapsuleBlueprint-BI0jdbTt.d.cts} +16 -1
- package/dist/{CapsuleBlueprint-DwDZ7nii.d.ts → CapsuleBlueprint-BI0jdbTt.d.ts} +16 -1
- package/dist/index.cjs +1158 -713
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +73 -0
- package/dist/index.d.cts +320 -46
- package/dist/index.d.ts +320 -46
- package/dist/index.js +1077 -639
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.cts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js.map +1 -1
- package/package.json +3 -3
- 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,235 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "link" | "clear" | "icon" | "glass";
|
|
4
|
-
/**
|
|
5
|
-
* The 21 Tailwind palette colours the kit supports.
|
|
6
|
-
*
|
|
7
|
-
* `TrueColor` is derived from this array rather than declared alongside it, so
|
|
8
|
-
* the runtime list and the type can never drift — adding a colour here adds it
|
|
9
|
-
* to the type, the generated theme, and every consumer that enumerates colours.
|
|
10
|
-
*/
|
|
11
|
-
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"];
|
|
12
|
-
/**
|
|
13
|
-
* TrueColor is the only valid color type in the ui-kit theme system.
|
|
14
|
-
* All components, tokens, and utilities must use TrueColor exclusively.
|
|
15
|
-
*/
|
|
16
|
-
type TrueColor = (typeof TRUE_COLORS)[number];
|
|
17
|
-
/**
|
|
18
|
-
* Shared size type used across all frameworks and components.
|
|
19
|
-
* Replaces both the old ThemeSize (dead code) and ModalSize.
|
|
20
|
-
*/
|
|
21
|
-
type Size = "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "2xl" | "3xl" | "full";
|
|
22
|
-
type ButtonTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
23
|
-
type ButtonHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
24
|
-
type ButtonActiveTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
25
|
-
type ButtonActiveHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
26
|
-
type ToggleTheme = Record<TrueColor, string>;
|
|
27
|
-
type CheckboxTheme = Record<TrueColor, string>;
|
|
28
|
-
type SpinnerTheme = Record<TrueColor, [string, string, string, string]>;
|
|
29
|
-
type LoaderTheme = Record<TrueColor, {
|
|
30
|
-
track: string;
|
|
31
|
-
bar: string;
|
|
32
|
-
}>;
|
|
33
|
-
type MultiToggleTheme = Record<TrueColor, {
|
|
34
|
-
active: string;
|
|
35
|
-
activeText: string;
|
|
36
|
-
indicator: string;
|
|
37
|
-
hover: string;
|
|
38
|
-
}>;
|
|
39
|
-
type MultiToggleVariantTokens = {
|
|
40
|
-
softIndicator: string;
|
|
41
|
-
activeText: string;
|
|
42
|
-
hover: string;
|
|
43
|
-
};
|
|
44
|
-
type MultiToggleVariantTheme = Record<TrueColor, MultiToggleVariantTokens>;
|
|
45
|
-
type TabsColorTokens = {
|
|
46
|
-
hoverText: string;
|
|
47
|
-
activeText: string;
|
|
48
|
-
onAccentText: string;
|
|
49
|
-
focusRing: string;
|
|
50
|
-
accentBg: string;
|
|
51
|
-
subtleBg: string;
|
|
52
|
-
subtleHoverBg: string;
|
|
53
|
-
segmentedContainer: string;
|
|
54
|
-
badgeSubtle: string;
|
|
55
|
-
badgeStrong: string;
|
|
56
|
-
badgeOnAccent: string;
|
|
57
|
-
underlineActive: string;
|
|
58
|
-
};
|
|
59
|
-
type TabsTheme = Record<TrueColor, TabsColorTokens>;
|
|
60
|
-
type PanelToneConfig = {
|
|
61
|
-
border: string;
|
|
62
|
-
/**
|
|
63
|
-
* Hairline for the `outlined` variant. Deliberately lighter than `border`
|
|
64
|
-
* and paired with a low-alpha dark value, so the outline reads as a hairline
|
|
65
|
-
* in both modes instead of a hard rule in light mode.
|
|
66
|
-
*/
|
|
67
|
-
outlineBorder: string;
|
|
68
|
-
heading: string;
|
|
69
|
-
muted: string;
|
|
70
|
-
badge: string;
|
|
71
|
-
subtleBg: string;
|
|
72
|
-
tonalBg: string;
|
|
73
|
-
glassBg: string;
|
|
74
|
-
glassBorder: string;
|
|
75
|
-
liquidBg: string;
|
|
76
|
-
liquidBorder: string;
|
|
77
|
-
liquidShadow: string;
|
|
78
|
-
liquidHeading: string;
|
|
79
|
-
overlayGradient: string;
|
|
80
|
-
decorationShape: string;
|
|
81
|
-
decorationGradient: string;
|
|
82
|
-
};
|
|
83
|
-
type PanelTheme = Record<TrueColor, PanelToneConfig>;
|
|
84
|
-
type StepperToneConfig = {
|
|
85
|
-
activeBg: string;
|
|
86
|
-
activeText: string;
|
|
87
|
-
completedBg: string;
|
|
88
|
-
completedText: string;
|
|
89
|
-
pendingBorder: string;
|
|
90
|
-
pendingText: string;
|
|
91
|
-
underlineBase: string;
|
|
92
|
-
};
|
|
93
|
-
type StepperTheme = Record<TrueColor, StepperToneConfig>;
|
|
94
|
-
type BadgeTheme = Record<TrueColor, string>;
|
|
95
|
-
type PillTheme = Record<TrueColor, Record<"solid" | "soft" | "outline", {
|
|
96
|
-
base: string;
|
|
97
|
-
border?: string;
|
|
98
|
-
}>>;
|
|
99
|
-
type AlertTheme = Record<TrueColor, {
|
|
100
|
-
subtle: string;
|
|
101
|
-
solid: string;
|
|
102
|
-
outline: string;
|
|
103
|
-
icon: string;
|
|
104
|
-
text: string;
|
|
105
|
-
border: string;
|
|
106
|
-
dismiss: string;
|
|
107
|
-
}>;
|
|
108
|
-
type StatTileTheme = Record<TrueColor, {
|
|
109
|
-
decorationBg: string;
|
|
110
|
-
iconColor: string;
|
|
111
|
-
divider: string;
|
|
112
|
-
}>;
|
|
113
|
-
type ButtonSelectorColorTokens = {
|
|
114
|
-
selectedBorder: string;
|
|
115
|
-
selectedBg: string;
|
|
116
|
-
selectedIcon: string;
|
|
117
|
-
selectedLabel: string;
|
|
118
|
-
selectedIndicatorBg: string;
|
|
119
|
-
selectedIndicatorBorder: string;
|
|
120
|
-
selectedIndicatorDot: string;
|
|
121
|
-
};
|
|
122
|
-
type ButtonSelectorTheme = Record<TrueColor, ButtonSelectorColorTokens>;
|
|
123
|
-
interface ThemeDefinition {
|
|
124
|
-
button: ButtonTheme;
|
|
125
|
-
buttonHover: ButtonHoverTheme;
|
|
126
|
-
buttonActive: ButtonActiveTheme;
|
|
127
|
-
buttonActiveHover: ButtonActiveHoverTheme;
|
|
128
|
-
toggle: ToggleTheme;
|
|
129
|
-
checkbox: CheckboxTheme;
|
|
130
|
-
spinner: SpinnerTheme;
|
|
131
|
-
loader: LoaderTheme;
|
|
132
|
-
multiToggle: MultiToggleTheme;
|
|
133
|
-
multiToggleVariant: MultiToggleVariantTheme;
|
|
134
|
-
tabs: TabsTheme;
|
|
135
|
-
panel: PanelTheme;
|
|
136
|
-
stepper: StepperTheme;
|
|
137
|
-
badge: BadgeTheme;
|
|
138
|
-
pill: PillTheme;
|
|
139
|
-
alert: AlertTheme;
|
|
140
|
-
statTile: StatTileTheme;
|
|
141
|
-
buttonSelector: ButtonSelectorTheme;
|
|
142
|
-
}
|
|
143
|
-
type DeepPartial<T> = {
|
|
144
|
-
[K in keyof T]?: T[K] extends Record<string, unknown> ? DeepPartial<T[K]> : T[K];
|
|
145
|
-
};
|
|
146
|
-
declare const configureTheme: (overrides: DeepPartial<ThemeDefinition>) => void;
|
|
147
|
-
declare const resetTheme: () => void;
|
|
148
|
-
declare const getButtonColorClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
149
|
-
declare const getButtonHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
150
|
-
declare const getButtonActiveClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
151
|
-
declare const getButtonActiveHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
152
|
-
declare const getButtonBaseClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
153
|
-
declare const getToggleColorClasses: (color: TrueColor) => string;
|
|
154
|
-
declare const getCheckboxColorClasses: (color: TrueColor) => string;
|
|
155
|
-
declare const getSpinnerColorTokens: (color: TrueColor) => [string, string, string, string];
|
|
156
|
-
declare const getLoaderProgressColors: (color: TrueColor) => {
|
|
157
|
-
track: string;
|
|
158
|
-
bar: string;
|
|
159
|
-
};
|
|
160
|
-
declare const getMultiToggleColorTokens: (color: TrueColor) => {
|
|
161
|
-
active: string;
|
|
162
|
-
activeText: string;
|
|
163
|
-
indicator: string;
|
|
164
|
-
hover: string;
|
|
165
|
-
};
|
|
166
|
-
declare const getMultiToggleVariantTokens: (color: TrueColor) => MultiToggleVariantTokens;
|
|
167
|
-
declare const getTabsColorTokens: (color: TrueColor) => TabsColorTokens;
|
|
168
|
-
declare const getPanelToneStyles: (tone: TrueColor) => PanelToneConfig;
|
|
169
|
-
declare const getStepperTonePalette: (tone: TrueColor) => StepperToneConfig;
|
|
170
|
-
declare const getBadgeColorClasses: (color: TrueColor) => string;
|
|
171
|
-
declare const getPillColorClasses: (color: TrueColor, variant: "solid" | "soft" | "outline") => {
|
|
172
|
-
base: string;
|
|
173
|
-
border?: string;
|
|
174
|
-
};
|
|
175
|
-
declare const getAlertColorClasses: (color: TrueColor) => AlertTheme[TrueColor];
|
|
176
|
-
declare const getStatTileColorClasses: (color: TrueColor) => StatTileTheme[TrueColor];
|
|
177
|
-
|
|
178
|
-
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";
|
|
179
|
-
declare const iconRegistry: Record<IconName, React__default.ForwardRefExoticComponent<React__default.SVGProps<SVGSVGElement>>>;
|
|
180
|
-
|
|
181
|
-
type HelpButtonPlacement = "top" | "bottom" | "left" | "right" | "auto";
|
|
182
|
-
interface HelpButtonProps {
|
|
183
|
-
/**
|
|
184
|
-
* Help content to display in the panel.
|
|
185
|
-
* Pass a `string` to render as Markdown (tables and URLs supported).
|
|
186
|
-
* Pass a `ReactNode` to render arbitrary JSX directly.
|
|
187
|
-
*/
|
|
188
|
-
content: string | React__default.ReactNode;
|
|
189
|
-
/** Optional title shown in the panel header. Defaults to "Help". */
|
|
190
|
-
title?: React__default.ReactNode;
|
|
191
|
-
/**
|
|
192
|
-
* Preferred placement of the floating panel relative to the trigger button.
|
|
193
|
-
* "auto" (default) picks the side with the most available space.
|
|
194
|
-
*/
|
|
195
|
-
placement?: HelpButtonPlacement;
|
|
196
|
-
/** Accent color for the trigger button and the panel header stripe. */
|
|
197
|
-
color?: TrueColor;
|
|
198
|
-
/** Size of the trigger icon button. */
|
|
199
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
200
|
-
/** Icon for the trigger button. Defaults to "Help". */
|
|
201
|
-
icon?: IconName;
|
|
202
|
-
/** Maximum width of the floating panel in px. Defaults to 360. */
|
|
203
|
-
maxWidth?: number;
|
|
204
|
-
/** Extra class applied to the root wrapper. */
|
|
205
|
-
className?: string;
|
|
206
|
-
}
|
|
207
|
-
declare const HelpButton: React__default.FC<HelpButtonProps>;
|
|
208
|
-
|
|
209
|
-
declare enum CapsuleBlueprintValueType {
|
|
210
|
-
String = "string",
|
|
211
|
-
Int = "int",
|
|
212
|
-
Boolean = "boolean",
|
|
213
|
-
Select = "select",
|
|
214
|
-
List = "list",
|
|
215
|
-
Map = "map"
|
|
216
|
-
}
|
|
217
|
-
interface CapsuleBlueprintParameter {
|
|
218
|
-
name: string;
|
|
219
|
-
key: string;
|
|
220
|
-
description?: string;
|
|
221
|
-
type?: string;
|
|
222
|
-
value_type?: CapsuleBlueprintValueType;
|
|
223
|
-
default?: any;
|
|
224
|
-
required?: boolean;
|
|
225
|
-
is_required?: boolean;
|
|
226
|
-
is_secret?: boolean;
|
|
227
|
-
options?: any;
|
|
228
|
-
hint?: string;
|
|
229
|
-
help?: string;
|
|
230
|
-
service_name?: string;
|
|
231
|
-
depends_on?: string[];
|
|
232
|
-
[key: string]: any;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export { type ButtonVariant as B, type CapsuleBlueprintParameter as C, type HelpButtonProps as H, type IconName as I, type Size as S, type TrueColor as T, CapsuleBlueprintValueType as a, TRUE_COLORS as b, configureTheme as c, getBadgeColorClasses as d, getButtonActiveClasses as e, getButtonActiveHoverClasses as f, getAlertColorClasses as g, getButtonBaseClasses as h, getButtonColorClasses as i, getButtonHoverClasses as j, getCheckboxColorClasses as k, getLoaderProgressColors as l, getMultiToggleColorTokens as m, getMultiToggleVariantTokens as n, getPanelToneStyles as o, getPillColorClasses as p, getSpinnerColorTokens as q, getStatTileColorClasses as r, getStepperTonePalette as s, getTabsColorTokens as t, getToggleColorClasses as u, iconRegistry as v, resetTheme as w, HelpButton as x };
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "link" | "clear" | "icon" | "glass";
|
|
4
|
-
/**
|
|
5
|
-
* The 21 Tailwind palette colours the kit supports.
|
|
6
|
-
*
|
|
7
|
-
* `TrueColor` is derived from this array rather than declared alongside it, so
|
|
8
|
-
* the runtime list and the type can never drift — adding a colour here adds it
|
|
9
|
-
* to the type, the generated theme, and every consumer that enumerates colours.
|
|
10
|
-
*/
|
|
11
|
-
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"];
|
|
12
|
-
/**
|
|
13
|
-
* TrueColor is the only valid color type in the ui-kit theme system.
|
|
14
|
-
* All components, tokens, and utilities must use TrueColor exclusively.
|
|
15
|
-
*/
|
|
16
|
-
type TrueColor = (typeof TRUE_COLORS)[number];
|
|
17
|
-
/**
|
|
18
|
-
* Shared size type used across all frameworks and components.
|
|
19
|
-
* Replaces both the old ThemeSize (dead code) and ModalSize.
|
|
20
|
-
*/
|
|
21
|
-
type Size = "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "2xl" | "3xl" | "full";
|
|
22
|
-
type ButtonTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
23
|
-
type ButtonHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
24
|
-
type ButtonActiveTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
25
|
-
type ButtonActiveHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
26
|
-
type ToggleTheme = Record<TrueColor, string>;
|
|
27
|
-
type CheckboxTheme = Record<TrueColor, string>;
|
|
28
|
-
type SpinnerTheme = Record<TrueColor, [string, string, string, string]>;
|
|
29
|
-
type LoaderTheme = Record<TrueColor, {
|
|
30
|
-
track: string;
|
|
31
|
-
bar: string;
|
|
32
|
-
}>;
|
|
33
|
-
type MultiToggleTheme = Record<TrueColor, {
|
|
34
|
-
active: string;
|
|
35
|
-
activeText: string;
|
|
36
|
-
indicator: string;
|
|
37
|
-
hover: string;
|
|
38
|
-
}>;
|
|
39
|
-
type MultiToggleVariantTokens = {
|
|
40
|
-
softIndicator: string;
|
|
41
|
-
activeText: string;
|
|
42
|
-
hover: string;
|
|
43
|
-
};
|
|
44
|
-
type MultiToggleVariantTheme = Record<TrueColor, MultiToggleVariantTokens>;
|
|
45
|
-
type TabsColorTokens = {
|
|
46
|
-
hoverText: string;
|
|
47
|
-
activeText: string;
|
|
48
|
-
onAccentText: string;
|
|
49
|
-
focusRing: string;
|
|
50
|
-
accentBg: string;
|
|
51
|
-
subtleBg: string;
|
|
52
|
-
subtleHoverBg: string;
|
|
53
|
-
segmentedContainer: string;
|
|
54
|
-
badgeSubtle: string;
|
|
55
|
-
badgeStrong: string;
|
|
56
|
-
badgeOnAccent: string;
|
|
57
|
-
underlineActive: string;
|
|
58
|
-
};
|
|
59
|
-
type TabsTheme = Record<TrueColor, TabsColorTokens>;
|
|
60
|
-
type PanelToneConfig = {
|
|
61
|
-
border: string;
|
|
62
|
-
/**
|
|
63
|
-
* Hairline for the `outlined` variant. Deliberately lighter than `border`
|
|
64
|
-
* and paired with a low-alpha dark value, so the outline reads as a hairline
|
|
65
|
-
* in both modes instead of a hard rule in light mode.
|
|
66
|
-
*/
|
|
67
|
-
outlineBorder: string;
|
|
68
|
-
heading: string;
|
|
69
|
-
muted: string;
|
|
70
|
-
badge: string;
|
|
71
|
-
subtleBg: string;
|
|
72
|
-
tonalBg: string;
|
|
73
|
-
glassBg: string;
|
|
74
|
-
glassBorder: string;
|
|
75
|
-
liquidBg: string;
|
|
76
|
-
liquidBorder: string;
|
|
77
|
-
liquidShadow: string;
|
|
78
|
-
liquidHeading: string;
|
|
79
|
-
overlayGradient: string;
|
|
80
|
-
decorationShape: string;
|
|
81
|
-
decorationGradient: string;
|
|
82
|
-
};
|
|
83
|
-
type PanelTheme = Record<TrueColor, PanelToneConfig>;
|
|
84
|
-
type StepperToneConfig = {
|
|
85
|
-
activeBg: string;
|
|
86
|
-
activeText: string;
|
|
87
|
-
completedBg: string;
|
|
88
|
-
completedText: string;
|
|
89
|
-
pendingBorder: string;
|
|
90
|
-
pendingText: string;
|
|
91
|
-
underlineBase: string;
|
|
92
|
-
};
|
|
93
|
-
type StepperTheme = Record<TrueColor, StepperToneConfig>;
|
|
94
|
-
type BadgeTheme = Record<TrueColor, string>;
|
|
95
|
-
type PillTheme = Record<TrueColor, Record<"solid" | "soft" | "outline", {
|
|
96
|
-
base: string;
|
|
97
|
-
border?: string;
|
|
98
|
-
}>>;
|
|
99
|
-
type AlertTheme = Record<TrueColor, {
|
|
100
|
-
subtle: string;
|
|
101
|
-
solid: string;
|
|
102
|
-
outline: string;
|
|
103
|
-
icon: string;
|
|
104
|
-
text: string;
|
|
105
|
-
border: string;
|
|
106
|
-
dismiss: string;
|
|
107
|
-
}>;
|
|
108
|
-
type StatTileTheme = Record<TrueColor, {
|
|
109
|
-
decorationBg: string;
|
|
110
|
-
iconColor: string;
|
|
111
|
-
divider: string;
|
|
112
|
-
}>;
|
|
113
|
-
type ButtonSelectorColorTokens = {
|
|
114
|
-
selectedBorder: string;
|
|
115
|
-
selectedBg: string;
|
|
116
|
-
selectedIcon: string;
|
|
117
|
-
selectedLabel: string;
|
|
118
|
-
selectedIndicatorBg: string;
|
|
119
|
-
selectedIndicatorBorder: string;
|
|
120
|
-
selectedIndicatorDot: string;
|
|
121
|
-
};
|
|
122
|
-
type ButtonSelectorTheme = Record<TrueColor, ButtonSelectorColorTokens>;
|
|
123
|
-
interface ThemeDefinition {
|
|
124
|
-
button: ButtonTheme;
|
|
125
|
-
buttonHover: ButtonHoverTheme;
|
|
126
|
-
buttonActive: ButtonActiveTheme;
|
|
127
|
-
buttonActiveHover: ButtonActiveHoverTheme;
|
|
128
|
-
toggle: ToggleTheme;
|
|
129
|
-
checkbox: CheckboxTheme;
|
|
130
|
-
spinner: SpinnerTheme;
|
|
131
|
-
loader: LoaderTheme;
|
|
132
|
-
multiToggle: MultiToggleTheme;
|
|
133
|
-
multiToggleVariant: MultiToggleVariantTheme;
|
|
134
|
-
tabs: TabsTheme;
|
|
135
|
-
panel: PanelTheme;
|
|
136
|
-
stepper: StepperTheme;
|
|
137
|
-
badge: BadgeTheme;
|
|
138
|
-
pill: PillTheme;
|
|
139
|
-
alert: AlertTheme;
|
|
140
|
-
statTile: StatTileTheme;
|
|
141
|
-
buttonSelector: ButtonSelectorTheme;
|
|
142
|
-
}
|
|
143
|
-
type DeepPartial<T> = {
|
|
144
|
-
[K in keyof T]?: T[K] extends Record<string, unknown> ? DeepPartial<T[K]> : T[K];
|
|
145
|
-
};
|
|
146
|
-
declare const configureTheme: (overrides: DeepPartial<ThemeDefinition>) => void;
|
|
147
|
-
declare const resetTheme: () => void;
|
|
148
|
-
declare const getButtonColorClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
149
|
-
declare const getButtonHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
150
|
-
declare const getButtonActiveClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
151
|
-
declare const getButtonActiveHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
152
|
-
declare const getButtonBaseClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
153
|
-
declare const getToggleColorClasses: (color: TrueColor) => string;
|
|
154
|
-
declare const getCheckboxColorClasses: (color: TrueColor) => string;
|
|
155
|
-
declare const getSpinnerColorTokens: (color: TrueColor) => [string, string, string, string];
|
|
156
|
-
declare const getLoaderProgressColors: (color: TrueColor) => {
|
|
157
|
-
track: string;
|
|
158
|
-
bar: string;
|
|
159
|
-
};
|
|
160
|
-
declare const getMultiToggleColorTokens: (color: TrueColor) => {
|
|
161
|
-
active: string;
|
|
162
|
-
activeText: string;
|
|
163
|
-
indicator: string;
|
|
164
|
-
hover: string;
|
|
165
|
-
};
|
|
166
|
-
declare const getMultiToggleVariantTokens: (color: TrueColor) => MultiToggleVariantTokens;
|
|
167
|
-
declare const getTabsColorTokens: (color: TrueColor) => TabsColorTokens;
|
|
168
|
-
declare const getPanelToneStyles: (tone: TrueColor) => PanelToneConfig;
|
|
169
|
-
declare const getStepperTonePalette: (tone: TrueColor) => StepperToneConfig;
|
|
170
|
-
declare const getBadgeColorClasses: (color: TrueColor) => string;
|
|
171
|
-
declare const getPillColorClasses: (color: TrueColor, variant: "solid" | "soft" | "outline") => {
|
|
172
|
-
base: string;
|
|
173
|
-
border?: string;
|
|
174
|
-
};
|
|
175
|
-
declare const getAlertColorClasses: (color: TrueColor) => AlertTheme[TrueColor];
|
|
176
|
-
declare const getStatTileColorClasses: (color: TrueColor) => StatTileTheme[TrueColor];
|
|
177
|
-
|
|
178
|
-
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";
|
|
179
|
-
declare const iconRegistry: Record<IconName, React__default.ForwardRefExoticComponent<React__default.SVGProps<SVGSVGElement>>>;
|
|
180
|
-
|
|
181
|
-
type HelpButtonPlacement = "top" | "bottom" | "left" | "right" | "auto";
|
|
182
|
-
interface HelpButtonProps {
|
|
183
|
-
/**
|
|
184
|
-
* Help content to display in the panel.
|
|
185
|
-
* Pass a `string` to render as Markdown (tables and URLs supported).
|
|
186
|
-
* Pass a `ReactNode` to render arbitrary JSX directly.
|
|
187
|
-
*/
|
|
188
|
-
content: string | React__default.ReactNode;
|
|
189
|
-
/** Optional title shown in the panel header. Defaults to "Help". */
|
|
190
|
-
title?: React__default.ReactNode;
|
|
191
|
-
/**
|
|
192
|
-
* Preferred placement of the floating panel relative to the trigger button.
|
|
193
|
-
* "auto" (default) picks the side with the most available space.
|
|
194
|
-
*/
|
|
195
|
-
placement?: HelpButtonPlacement;
|
|
196
|
-
/** Accent color for the trigger button and the panel header stripe. */
|
|
197
|
-
color?: TrueColor;
|
|
198
|
-
/** Size of the trigger icon button. */
|
|
199
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
200
|
-
/** Icon for the trigger button. Defaults to "Help". */
|
|
201
|
-
icon?: IconName;
|
|
202
|
-
/** Maximum width of the floating panel in px. Defaults to 360. */
|
|
203
|
-
maxWidth?: number;
|
|
204
|
-
/** Extra class applied to the root wrapper. */
|
|
205
|
-
className?: string;
|
|
206
|
-
}
|
|
207
|
-
declare const HelpButton: React__default.FC<HelpButtonProps>;
|
|
208
|
-
|
|
209
|
-
declare enum CapsuleBlueprintValueType {
|
|
210
|
-
String = "string",
|
|
211
|
-
Int = "int",
|
|
212
|
-
Boolean = "boolean",
|
|
213
|
-
Select = "select",
|
|
214
|
-
List = "list",
|
|
215
|
-
Map = "map"
|
|
216
|
-
}
|
|
217
|
-
interface CapsuleBlueprintParameter {
|
|
218
|
-
name: string;
|
|
219
|
-
key: string;
|
|
220
|
-
description?: string;
|
|
221
|
-
type?: string;
|
|
222
|
-
value_type?: CapsuleBlueprintValueType;
|
|
223
|
-
default?: any;
|
|
224
|
-
required?: boolean;
|
|
225
|
-
is_required?: boolean;
|
|
226
|
-
is_secret?: boolean;
|
|
227
|
-
options?: any;
|
|
228
|
-
hint?: string;
|
|
229
|
-
help?: string;
|
|
230
|
-
service_name?: string;
|
|
231
|
-
depends_on?: string[];
|
|
232
|
-
[key: string]: any;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export { type ButtonVariant as B, type CapsuleBlueprintParameter as C, type HelpButtonProps as H, type IconName as I, type Size as S, type TrueColor as T, CapsuleBlueprintValueType as a, TRUE_COLORS as b, configureTheme as c, getBadgeColorClasses as d, getButtonActiveClasses as e, getButtonActiveHoverClasses as f, getAlertColorClasses as g, getButtonBaseClasses as h, getButtonColorClasses as i, getButtonHoverClasses as j, getCheckboxColorClasses as k, getLoaderProgressColors as l, getMultiToggleColorTokens as m, getMultiToggleVariantTokens as n, getPanelToneStyles as o, getPillColorClasses as p, getSpinnerColorTokens as q, getStatTileColorClasses as r, getStepperTonePalette as s, getTabsColorTokens as t, getToggleColorClasses as u, iconRegistry as v, resetTheme as w, HelpButton as x };
|