@atom63/ui-react 0.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -0
- package/dist/button-sktq-nvV.d.ts +13 -0
- package/dist/chunk-7VSPECOH.js +73 -0
- package/dist/chunk-7VSPECOH.js.map +1 -0
- package/dist/chunk-AJLHJRK6.js +11 -0
- package/dist/chunk-AJLHJRK6.js.map +1 -0
- package/dist/chunk-MXNO63TC.js +2745 -0
- package/dist/chunk-MXNO63TC.js.map +1 -0
- package/dist/chunk-STCXERLM.js +354 -0
- package/dist/chunk-STCXERLM.js.map +1 -0
- package/dist/destination-link-C9NKeKLe.d.ts +34 -0
- package/dist/index.d.ts +1605 -0
- package/dist/index.js +7337 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/index.d.ts +196 -0
- package/dist/layout/index.js +500 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/media/index.d.ts +208 -0
- package/dist/media/index.js +1498 -0
- package/dist/media/index.js.map +1 -0
- package/dist/media/media-lightbox/parts/index.d.ts +284 -0
- package/dist/media/media-lightbox/parts/index.js +5 -0
- package/dist/media/media-lightbox/parts/index.js.map +1 -0
- package/dist/theme/index.d.ts +350 -0
- package/dist/theme/index.js +1173 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types-Dxe5IzjE.d.ts +145 -0
- package/package.json +188 -0
- package/src/components/accordion/accordion.css +196 -0
- package/src/components/alert/alert.css +189 -0
- package/src/components/alert-dialog/alert-dialog.css +205 -0
- package/src/components/autocomplete/autocomplete.css +240 -0
- package/src/components/avatar/avatar.css +147 -0
- package/src/components/badge/badge.css +223 -0
- package/src/components/breadcrumb/breadcrumb.css +99 -0
- package/src/components/button/button.css +594 -0
- package/src/components/button-group/button-group.css +412 -0
- package/src/components/calendar/calendar.css +271 -0
- package/src/components/card/card.css +421 -0
- package/src/components/carousel/carousel.css +163 -0
- package/src/components/checkbox/checkbox.css +113 -0
- package/src/components/collapsible/collapsible.css +59 -0
- package/src/components/command/command.css +226 -0
- package/src/components/connected-panel/connected-panel.css +437 -0
- package/src/components/copy-button/copy-button.css +57 -0
- package/src/components/dialog/dialog.css +221 -0
- package/src/components/drawer/drawer.css +265 -0
- package/src/components/empty/empty.css +145 -0
- package/src/components/feedback-state/feedback-state.css +141 -0
- package/src/components/field/field.css +260 -0
- package/src/components/form/form.css +32 -0
- package/src/components/frame/frame.css +115 -0
- package/src/components/hover-card/hover-card.css +80 -0
- package/src/components/input/input.css +291 -0
- package/src/components/input-otp/input-otp.css +145 -0
- package/src/components/item/item.css +216 -0
- package/src/components/kbd/kbd.css +72 -0
- package/src/components/label/label.css +37 -0
- package/src/components/load-more-trigger/load-more-trigger.css +109 -0
- package/src/components/marquee/marquee.css +79 -0
- package/src/components/menu/menu.css +216 -0
- package/src/components/menubar/menubar.css +67 -0
- package/src/components/navigation-menu/navigation-menu.css +275 -0
- package/src/components/pagination/pagination.css +86 -0
- package/src/components/panel-setting-button/panel-setting-button.css +76 -0
- package/src/components/popover/popover.css +89 -0
- package/src/components/preview-card/preview-card.css +69 -0
- package/src/components/progress/progress.css +70 -0
- package/src/components/radio/radio.css +115 -0
- package/src/components/resizable/resizable.css +99 -0
- package/src/components/scroll-area/scroll-area.css +130 -0
- package/src/components/scrollable-list/scrollable-list.css +144 -0
- package/src/components/segmented-control/segmented-control.css +235 -0
- package/src/components/select/select.css +261 -0
- package/src/components/separator/separator.css +43 -0
- package/src/components/sheet/sheet.css +209 -0
- package/src/components/sidebar/sidebar.css +728 -0
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +179 -0
- package/src/components/skeleton/skeleton.css +42 -0
- package/src/components/slider/slider.css +124 -0
- package/src/components/switch/switch.css +149 -0
- package/src/components/table/table.css +183 -0
- package/src/components/tabs/tabs.css +416 -0
- package/src/components/text-ticker/text-ticker.css +139 -0
- package/src/components/textarea/textarea.css +122 -0
- package/src/components/toggle/toggle.css +185 -0
- package/src/components/toggle-group/toggle-group.css +102 -0
- package/src/components/tooltip/tooltip.css +133 -0
- package/src/media/media-lightbox/media-lightbox.css +171 -0
- package/src/styles/index.css +3 -0
- package/src/styles/recipes.css +70 -0
- package/src/styles/reset.css +22 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
import { a as Button } from '../button-sktq-nvV.js';
|
|
4
|
+
import '@atom63/ui-foundation';
|
|
5
|
+
import '@base-ui/react/use-render';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* DS-native personalization model.
|
|
9
|
+
*
|
|
10
|
+
* Every axis is a discrete union except surfaceTint (a 0–100 continuous token).
|
|
11
|
+
* The controller applies these as `data-a63-*` attributes + `--a63-surface-tint`
|
|
12
|
+
* — never inline `--primary`/`--surface-*` (that shadows the semantic layer).
|
|
13
|
+
*/
|
|
14
|
+
type ColorMode = 'light' | 'dark' | 'system';
|
|
15
|
+
type ThemeId = 'modern' | 'aqua' | 'retro' | 'terminal';
|
|
16
|
+
type BrandId = 'auto' | 'b1' | 'b2' | 'b3' | 'b4' | 'b5' | 'b6';
|
|
17
|
+
type SurfaceId = 'n1' | 'n2' | 'n3' | 'n4' | 'n5' | 'n6';
|
|
18
|
+
type TypeScale = 'compact' | 'normal' | 'comfortable' | 'large';
|
|
19
|
+
type RadiusScale = 'none' | 'subtle' | 'default' | 'round';
|
|
20
|
+
type FontFamily = 'sans' | 'serif' | 'mono' | 'pixel';
|
|
21
|
+
type OsSystem = 'macos' | 'windows';
|
|
22
|
+
type IconTheme = 'realistic' | 'color' | 'neutral' | 'primary';
|
|
23
|
+
interface PersonalizationState {
|
|
24
|
+
mode: ColorMode;
|
|
25
|
+
theme: ThemeId;
|
|
26
|
+
brand: BrandId;
|
|
27
|
+
surface: SurfaceId;
|
|
28
|
+
/** 0–100; bends the neutral surfaces toward the brand hue. */
|
|
29
|
+
surfaceTint: number;
|
|
30
|
+
typeScale: TypeScale;
|
|
31
|
+
radius: RadiusScale;
|
|
32
|
+
font: FontFamily;
|
|
33
|
+
os: OsSystem;
|
|
34
|
+
iconTheme: IconTheme;
|
|
35
|
+
/** Wallpaper id (consumer-defined catalog); null = none. Feeds the auto brand. */
|
|
36
|
+
wallpaper: string | null;
|
|
37
|
+
}
|
|
38
|
+
interface PersonalizationOption<T extends string = string> {
|
|
39
|
+
id: T;
|
|
40
|
+
/** Display label for the option (matches the axis value id spelling). */
|
|
41
|
+
name: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
}
|
|
44
|
+
interface PersonalizationController {
|
|
45
|
+
state: PersonalizationState;
|
|
46
|
+
setMode: (mode: ColorMode) => void;
|
|
47
|
+
setTheme: (theme: ThemeId) => void;
|
|
48
|
+
setBrand: (brand: BrandId) => void;
|
|
49
|
+
setSurface: (surface: SurfaceId) => void;
|
|
50
|
+
setSurfaceTint: (surfaceTint: number) => void;
|
|
51
|
+
setTypeScale: (typeScale: TypeScale) => void;
|
|
52
|
+
setRadius: (radius: RadiusScale) => void;
|
|
53
|
+
setFont: (font: FontFamily) => void;
|
|
54
|
+
setOs: (os: OsSystem) => void;
|
|
55
|
+
setIconTheme: (iconTheme: IconTheme) => void;
|
|
56
|
+
setWallpaper: (wallpaper: string | null) => void;
|
|
57
|
+
update: (partial: Partial<PersonalizationState>) => void;
|
|
58
|
+
reset: () => void;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Light/dark mode PROVIDER contract. Relocated from @atom63/theme with
|
|
62
|
+
* `createThemeProvider` — the DS mode context factory. `ThemeMode` is the
|
|
63
|
+
* provider's spelling of `ColorMode` (identical union), kept as an alias so the
|
|
64
|
+
* provider and its consumers read naturally.
|
|
65
|
+
*/
|
|
66
|
+
type ThemeMode = ColorMode;
|
|
67
|
+
type ThemeModeOption = ColorMode;
|
|
68
|
+
type CreateThemeProviderOptions = {
|
|
69
|
+
/** localStorage key (unique per product: `theme`, `ds-theme`, `vf-theme`, …) */
|
|
70
|
+
storageKey: string;
|
|
71
|
+
defaultTheme?: ThemeMode;
|
|
72
|
+
/** Allowed stored values; omit `system` for docs-style binary themes */
|
|
73
|
+
modes?: ThemeModeOption[];
|
|
74
|
+
/** Cross-fade via View Transitions API when available */
|
|
75
|
+
viewTransition?: boolean;
|
|
76
|
+
};
|
|
77
|
+
type ThemeContextValue = {
|
|
78
|
+
theme: ThemeMode;
|
|
79
|
+
setTheme: (theme: ThemeMode) => void;
|
|
80
|
+
/** Flip light ↔ dark (ignores system as a target) */
|
|
81
|
+
toggleTheme: () => void;
|
|
82
|
+
/** Alias for `toggleTheme` (design-system layout) */
|
|
83
|
+
toggle: () => void;
|
|
84
|
+
isDark: boolean;
|
|
85
|
+
isLight: boolean;
|
|
86
|
+
isSystem: boolean;
|
|
87
|
+
isChanging: boolean;
|
|
88
|
+
disableTransitions: () => void;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
type AppearanceSectionId = 'mode' | 'theme' | 'brand' | 'surface' | 'surfaceTint' | 'typeScale' | 'radius' | 'font' | 'os' | 'iconTheme';
|
|
92
|
+
interface AppearancePanelProps {
|
|
93
|
+
controller: PersonalizationController;
|
|
94
|
+
sections?: readonly AppearanceSectionId[];
|
|
95
|
+
className?: string;
|
|
96
|
+
}
|
|
97
|
+
declare function AppearancePanel({ controller, sections, className, }: AppearancePanelProps): React.ReactElement;
|
|
98
|
+
|
|
99
|
+
interface AppearanceMenuProps {
|
|
100
|
+
className?: string;
|
|
101
|
+
closeLabel?: string;
|
|
102
|
+
controller: PersonalizationController;
|
|
103
|
+
defaultOpen?: boolean;
|
|
104
|
+
description?: string;
|
|
105
|
+
enableShortcut?: boolean;
|
|
106
|
+
ignoreOutsideSelector?: string;
|
|
107
|
+
onOpenChange?: (open: boolean) => void;
|
|
108
|
+
open?: boolean;
|
|
109
|
+
panelClassName?: string;
|
|
110
|
+
resetLabel?: string;
|
|
111
|
+
/** Allow-list of appearance sections to render in the panel body. */
|
|
112
|
+
sections?: readonly AppearanceSectionId[];
|
|
113
|
+
shortcutLabel?: string;
|
|
114
|
+
showTrigger?: boolean;
|
|
115
|
+
title?: string;
|
|
116
|
+
triggerLabel?: string;
|
|
117
|
+
}
|
|
118
|
+
interface AppearanceMenuTriggerProps extends Omit<ComponentProps<typeof Button>, 'aria-expanded' | 'aria-haspopup' | 'onClick'> {
|
|
119
|
+
label?: string;
|
|
120
|
+
onOpenChange: (open: boolean) => void;
|
|
121
|
+
open: boolean;
|
|
122
|
+
shortcutLabel?: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Floating appearance flyout — the menu wrapper around {@link AppearancePanel}.
|
|
126
|
+
* Opens bottom-right (portal), toggled by a trigger button and/or the `Cmd+,`
|
|
127
|
+
* shortcut. Web apps typically render it with `showTrigger={false}` and rely on
|
|
128
|
+
* the shortcut; OS shells embed the bare `AppearancePanel` in a settings surface
|
|
129
|
+
* instead.
|
|
130
|
+
*/
|
|
131
|
+
declare function AppearanceMenu({ className, closeLabel, controller, defaultOpen, description, enableShortcut, ignoreOutsideSelector, onOpenChange, open, panelClassName, resetLabel, sections, shortcutLabel, showTrigger, title, triggerLabel, }: AppearanceMenuProps): React.JSX.Element;
|
|
132
|
+
declare function AppearanceMenuTrigger({ label, onKeyDown, onOpenChange, open, shortcutLabel, ...props }: AppearanceMenuTriggerProps): React.JSX.Element;
|
|
133
|
+
|
|
134
|
+
interface AppearanceSectionProps {
|
|
135
|
+
children: ReactNode;
|
|
136
|
+
title: string;
|
|
137
|
+
}
|
|
138
|
+
declare function AppearanceSection({ children, title }: AppearanceSectionProps): React.JSX.Element;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Apply personalization to `root` as DS-native attributes + the surface-tint
|
|
142
|
+
* token. Synchronous and side-effect-narrow: it sets `data-a63-*` + one inline
|
|
143
|
+
* token (`--a63-surface-tint`). It does NOT derive the `auto` brand ramp (the
|
|
144
|
+
* controller's async effect owns `--color-auto-*`), and it NEVER writes inline
|
|
145
|
+
* `--primary`/`--surface-*` — those would shadow the `--a63-*` semantic layer.
|
|
146
|
+
*/
|
|
147
|
+
declare function applyPersonalization(state: PersonalizationState, root?: HTMLElement): void;
|
|
148
|
+
|
|
149
|
+
declare const AUTO_PRIMARY_ID = "auto";
|
|
150
|
+
declare function isAutoPrimary(primary: string): boolean;
|
|
151
|
+
interface ExtractedColor {
|
|
152
|
+
hue: number;
|
|
153
|
+
saturation: number;
|
|
154
|
+
}
|
|
155
|
+
declare const AUTO_FALLBACK_COLOR: ExtractedColor;
|
|
156
|
+
declare function applyAutoColorRamp(root: HTMLElement, color: ExtractedColor): void;
|
|
157
|
+
declare function clearAutoColorRamp(root: HTMLElement): void;
|
|
158
|
+
declare function extractDominantColor(imageSrc: string): Promise<ExtractedColor | null>;
|
|
159
|
+
|
|
160
|
+
interface CreatePersonalizationControllerOptions {
|
|
161
|
+
storageKey: string;
|
|
162
|
+
defaultState: PersonalizationState;
|
|
163
|
+
/**
|
|
164
|
+
* Resolve the active wallpaper to an image URL for the `auto` brand's color
|
|
165
|
+
* extraction. Injected by the consumer so the DS ships no wallpaper assets.
|
|
166
|
+
*/
|
|
167
|
+
resolveWallpaperSrc?: (wallpaper: string | null, isDark: boolean) => string | null | undefined;
|
|
168
|
+
}
|
|
169
|
+
declare function createPersonalizationController({ storageKey, defaultState, resolveWallpaperSrc, }: CreatePersonalizationControllerOptions): {
|
|
170
|
+
PersonalizationProvider: ({ children }: {
|
|
171
|
+
children: ReactNode;
|
|
172
|
+
}) => React.JSX.Element;
|
|
173
|
+
usePersonalization: () => PersonalizationController;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
declare function createThemeProvider(options: CreateThemeProviderOptions): {
|
|
177
|
+
ThemeProvider: ({ children }: {
|
|
178
|
+
children: ReactNode;
|
|
179
|
+
}) => React.JSX.Element;
|
|
180
|
+
useTheme: () => ThemeContextValue;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
declare const MODE_OPTIONS: readonly [{
|
|
184
|
+
readonly id: "light";
|
|
185
|
+
readonly name: "Light";
|
|
186
|
+
}, {
|
|
187
|
+
readonly id: "dark";
|
|
188
|
+
readonly name: "Dark";
|
|
189
|
+
}, {
|
|
190
|
+
readonly id: "system";
|
|
191
|
+
readonly name: "Auto";
|
|
192
|
+
}];
|
|
193
|
+
declare const THEME_OPTIONS: readonly [{
|
|
194
|
+
readonly id: "modern";
|
|
195
|
+
readonly name: "Modern";
|
|
196
|
+
}, {
|
|
197
|
+
readonly id: "aqua";
|
|
198
|
+
readonly name: "Aqua";
|
|
199
|
+
}, {
|
|
200
|
+
readonly id: "retro";
|
|
201
|
+
readonly name: "Retro";
|
|
202
|
+
}, {
|
|
203
|
+
readonly id: "terminal";
|
|
204
|
+
readonly name: "Terminal";
|
|
205
|
+
}];
|
|
206
|
+
declare const BRAND_OPTIONS: readonly [{
|
|
207
|
+
readonly id: "auto";
|
|
208
|
+
readonly name: "Auto";
|
|
209
|
+
}, {
|
|
210
|
+
readonly id: "b1";
|
|
211
|
+
readonly name: "b1";
|
|
212
|
+
}, {
|
|
213
|
+
readonly id: "b2";
|
|
214
|
+
readonly name: "b2";
|
|
215
|
+
}, {
|
|
216
|
+
readonly id: "b3";
|
|
217
|
+
readonly name: "b3";
|
|
218
|
+
}, {
|
|
219
|
+
readonly id: "b4";
|
|
220
|
+
readonly name: "b4";
|
|
221
|
+
}, {
|
|
222
|
+
readonly id: "b5";
|
|
223
|
+
readonly name: "b5";
|
|
224
|
+
}, {
|
|
225
|
+
readonly id: "b6";
|
|
226
|
+
readonly name: "b6";
|
|
227
|
+
}];
|
|
228
|
+
declare const SURFACE_OPTIONS: readonly [{
|
|
229
|
+
readonly id: "n1";
|
|
230
|
+
readonly name: "n1";
|
|
231
|
+
}, {
|
|
232
|
+
readonly id: "n2";
|
|
233
|
+
readonly name: "n2";
|
|
234
|
+
}, {
|
|
235
|
+
readonly id: "n3";
|
|
236
|
+
readonly name: "n3";
|
|
237
|
+
}, {
|
|
238
|
+
readonly id: "n4";
|
|
239
|
+
readonly name: "n4";
|
|
240
|
+
}, {
|
|
241
|
+
readonly id: "n5";
|
|
242
|
+
readonly name: "n5";
|
|
243
|
+
}, {
|
|
244
|
+
readonly id: "n6";
|
|
245
|
+
readonly name: "n6";
|
|
246
|
+
}];
|
|
247
|
+
declare const TYPE_SCALE_OPTIONS: readonly [{
|
|
248
|
+
readonly id: "compact";
|
|
249
|
+
readonly name: "Compact";
|
|
250
|
+
}, {
|
|
251
|
+
readonly id: "normal";
|
|
252
|
+
readonly name: "Normal";
|
|
253
|
+
}, {
|
|
254
|
+
readonly id: "comfortable";
|
|
255
|
+
readonly name: "Comfortable";
|
|
256
|
+
}, {
|
|
257
|
+
readonly id: "large";
|
|
258
|
+
readonly name: "Large";
|
|
259
|
+
}];
|
|
260
|
+
declare const RADIUS_OPTIONS: readonly [{
|
|
261
|
+
readonly id: "none";
|
|
262
|
+
readonly name: "None";
|
|
263
|
+
}, {
|
|
264
|
+
readonly id: "subtle";
|
|
265
|
+
readonly name: "Subtle";
|
|
266
|
+
}, {
|
|
267
|
+
readonly id: "default";
|
|
268
|
+
readonly name: "Default";
|
|
269
|
+
}, {
|
|
270
|
+
readonly id: "round";
|
|
271
|
+
readonly name: "Round";
|
|
272
|
+
}];
|
|
273
|
+
declare const FONT_OPTIONS: readonly [{
|
|
274
|
+
readonly id: "sans";
|
|
275
|
+
readonly name: "Sans";
|
|
276
|
+
}, {
|
|
277
|
+
readonly id: "serif";
|
|
278
|
+
readonly name: "Serif";
|
|
279
|
+
}, {
|
|
280
|
+
readonly id: "mono";
|
|
281
|
+
readonly name: "Mono";
|
|
282
|
+
}, {
|
|
283
|
+
readonly id: "pixel";
|
|
284
|
+
readonly name: "Pixel";
|
|
285
|
+
}];
|
|
286
|
+
declare const OS_OPTIONS: readonly [{
|
|
287
|
+
readonly id: "macos";
|
|
288
|
+
readonly name: "macOS";
|
|
289
|
+
}, {
|
|
290
|
+
readonly id: "windows";
|
|
291
|
+
readonly name: "Windows";
|
|
292
|
+
}];
|
|
293
|
+
declare const ICON_THEME_OPTIONS: readonly [{
|
|
294
|
+
readonly id: "realistic";
|
|
295
|
+
readonly name: "HD";
|
|
296
|
+
}, {
|
|
297
|
+
readonly id: "color";
|
|
298
|
+
readonly name: "Color";
|
|
299
|
+
}, {
|
|
300
|
+
readonly id: "neutral";
|
|
301
|
+
readonly name: "Mono";
|
|
302
|
+
}, {
|
|
303
|
+
readonly id: "primary";
|
|
304
|
+
readonly name: "Primary";
|
|
305
|
+
}];
|
|
306
|
+
|
|
307
|
+
interface RangeTokenControlProps {
|
|
308
|
+
label: string;
|
|
309
|
+
max?: number;
|
|
310
|
+
min?: number;
|
|
311
|
+
onChange: (value: number) => void;
|
|
312
|
+
value: number;
|
|
313
|
+
}
|
|
314
|
+
declare function RangeTokenControl({ label, max, min, onChange, value, }: RangeTokenControlProps): React.ReactElement;
|
|
315
|
+
|
|
316
|
+
interface SegmentedTokenControlProps<T extends string> {
|
|
317
|
+
className?: string;
|
|
318
|
+
onChange: (value: T) => void;
|
|
319
|
+
options: readonly PersonalizationOption<T>[];
|
|
320
|
+
value: T;
|
|
321
|
+
}
|
|
322
|
+
declare function SegmentedTokenControl<T extends string>({ className, onChange, options, value, }: SegmentedTokenControlProps<T>): React.ReactElement;
|
|
323
|
+
|
|
324
|
+
interface SwatchTokenControlProps<T extends string> {
|
|
325
|
+
className?: string;
|
|
326
|
+
onChange: (value: T) => void;
|
|
327
|
+
options: readonly PersonalizationOption<T>[];
|
|
328
|
+
/** Resolve an option id to a CSS color/gradient for its swatch. */
|
|
329
|
+
swatch: (id: T) => string;
|
|
330
|
+
value: T;
|
|
331
|
+
}
|
|
332
|
+
declare function SwatchTokenControl<T extends string>({ className, onChange, options, swatch, value, }: SwatchTokenControlProps<T>): React.ReactElement;
|
|
333
|
+
|
|
334
|
+
interface VisualChoiceOption<T extends string> {
|
|
335
|
+
id: T;
|
|
336
|
+
name: string;
|
|
337
|
+
renderVisual: (selected: boolean) => React.ReactNode;
|
|
338
|
+
}
|
|
339
|
+
interface VisualChoiceControlProps<T extends string> {
|
|
340
|
+
className?: string;
|
|
341
|
+
columns?: 3 | 4;
|
|
342
|
+
/** Accessible name for the group (sr-only `<legend>`), e.g. the axis title. */
|
|
343
|
+
label: string;
|
|
344
|
+
onChange: (value: T) => void;
|
|
345
|
+
options: readonly VisualChoiceOption<T>[];
|
|
346
|
+
value: T;
|
|
347
|
+
}
|
|
348
|
+
declare function VisualChoiceControl<T extends string>({ className, columns, label, onChange, options, value, }: VisualChoiceControlProps<T>): React.ReactElement;
|
|
349
|
+
|
|
350
|
+
export { AUTO_FALLBACK_COLOR, AUTO_PRIMARY_ID, AppearanceMenu, type AppearanceMenuProps, AppearanceMenuTrigger, AppearancePanel, type AppearancePanelProps, AppearanceSection, type AppearanceSectionId, type AppearanceSectionProps, BRAND_OPTIONS, type BrandId, type ColorMode, type CreateThemeProviderOptions, type ExtractedColor, FONT_OPTIONS, type FontFamily, ICON_THEME_OPTIONS, type IconTheme, MODE_OPTIONS, OS_OPTIONS, type OsSystem, type PersonalizationController, type PersonalizationOption, type PersonalizationState, RADIUS_OPTIONS, type RadiusScale, RangeTokenControl, type RangeTokenControlProps, SURFACE_OPTIONS, SegmentedTokenControl, type SegmentedTokenControlProps, type SurfaceId, SwatchTokenControl, type SwatchTokenControlProps, THEME_OPTIONS, TYPE_SCALE_OPTIONS, type ThemeContextValue, type ThemeId, type ThemeMode, type ThemeModeOption, type TypeScale, VisualChoiceControl, type VisualChoiceControlProps, type VisualChoiceOption, applyAutoColorRamp, applyPersonalization, clearAutoColorRamp, createPersonalizationController, createThemeProvider, extractDominantColor, isAutoPrimary };
|