@noya-app/noya-designsystem 0.1.30 → 0.1.32

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 (64) hide show
  1. package/.turbo/turbo-build.log +20 -12
  2. package/.turbo/turbo-lint.log +15 -1
  3. package/CHANGELOG.md +17 -0
  4. package/README.md +13 -1
  5. package/dist/index.css +1 -0
  6. package/dist/index.d.ts +238 -627
  7. package/dist/index.js +4259 -2862
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +4159 -2764
  10. package/dist/index.mjs.map +1 -1
  11. package/package.json +17 -7
  12. package/src/components/ActivityIndicator.tsx +4 -36
  13. package/src/components/Avatar.tsx +63 -62
  14. package/src/components/Button.tsx +53 -170
  15. package/src/components/Chip.tsx +117 -150
  16. package/src/components/ContextMenu.tsx +13 -35
  17. package/src/components/Dialog.tsx +66 -54
  18. package/src/components/Divider.tsx +31 -41
  19. package/src/components/DraggableMenuButton.tsx +29 -30
  20. package/src/components/DropdownMenu.tsx +30 -40
  21. package/src/components/FillInputField.tsx +16 -26
  22. package/src/components/FillPreviewBackground.tsx +18 -22
  23. package/src/components/FloatingWindow.tsx +4 -7
  24. package/src/components/GridView.tsx +70 -200
  25. package/src/components/IconButton.tsx +1 -5
  26. package/src/components/InputField.tsx +258 -234
  27. package/src/components/InputFieldWithCompletions.tsx +20 -27
  28. package/src/components/InspectorContainer.tsx +4 -9
  29. package/src/components/InspectorPrimitives.tsx +135 -109
  30. package/src/components/Label.tsx +5 -36
  31. package/src/components/LabeledElementView.tsx +5 -26
  32. package/src/components/ListView.tsx +239 -167
  33. package/src/components/Popover.tsx +15 -39
  34. package/src/components/Progress.tsx +21 -44
  35. package/src/components/RadioGroup.tsx +6 -71
  36. package/src/components/ScrollArea.tsx +11 -39
  37. package/src/components/SelectMenu.tsx +72 -32
  38. package/src/components/Slider.tsx +7 -43
  39. package/src/components/Spacer.tsx +6 -18
  40. package/src/components/Switch.tsx +4 -42
  41. package/src/components/Text.tsx +31 -66
  42. package/src/components/TextArea.tsx +5 -31
  43. package/src/components/Toast.tsx +15 -57
  44. package/src/components/Tooltip.tsx +4 -13
  45. package/src/components/WorkspaceLayout.tsx +27 -17
  46. package/src/components/internal/Menu.tsx +37 -83
  47. package/src/contexts/DesignSystemConfiguration.tsx +1 -47
  48. package/src/contexts/DialogContext.tsx +2 -10
  49. package/src/hooks/useDarkMode.ts +14 -0
  50. package/src/index.css +108 -0
  51. package/src/index.tsx +4 -5
  52. package/src/theme/index.ts +4 -16
  53. package/src/utils/tailwind.ts +17 -0
  54. package/tailwind.config.ts +223 -0
  55. package/tailwind.d.ts +11 -0
  56. package/tsconfig.json +4 -1
  57. package/tsup.config.ts +16 -0
  58. package/dist/index.d.mts +0 -1455
  59. package/src/components/Grid.tsx +0 -54
  60. package/src/components/Select.tsx +0 -183
  61. package/src/components/Stack.tsx +0 -155
  62. package/src/theme/dark.ts +0 -45
  63. package/src/theme/light.ts +0 -226
  64. package/src/utils/breakpoints.ts +0 -45
package/dist/index.d.ts CHANGED
@@ -1,60 +1,51 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, Ref, ReactHTML } from 'react';
3
- import * as styled_components_dist_types from 'styled-components/dist/types';
4
- import * as styled_components from 'styled-components';
5
- import { CSSObject, CSSProperties as CSSProperties$1 } from 'styled-components';
2
+ import React__default, { CSSProperties, ReactNode, ComponentProps, SyntheticEvent, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, Ref, ReactHTML } from 'react';
6
3
  import * as Icons from '@noya-app/noya-icons';
7
4
  export { Icons };
8
5
  import * as DialogPrimitive from '@radix-ui/react-dialog';
9
6
  import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
10
7
  import { Sketch } from '@noya-app/noya-file-format';
11
- import * as csstype from 'csstype';
12
- import { Property } from 'csstype';
13
8
  import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
14
9
  import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
10
+ import { Property } from 'csstype';
15
11
  import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
16
12
  import { Size } from '@noya-app/noya-geometry';
17
13
  import { IItemScore } from 'vscode-fuzzy-scorer';
18
14
  import { useSortable } from '@dnd-kit/sortable';
19
15
  import * as PopoverPrimitive from '@radix-ui/react-popover';
16
+ import { SelectProps } from '@radix-ui/react-select';
17
+ import { Config } from 'tailwindcss';
18
+ import { ImperativePanelGroupHandle } from 'react-resizable-panels';
20
19
  import { RgbaColor } from '@noya-app/noya-colorpicker';
21
20
 
22
- interface Props$j {
21
+ interface Props$f {
23
22
  size?: number;
24
23
  opacity?: number;
25
24
  color?: string;
26
25
  trackColor?: string;
27
26
  }
28
- declare const ActivityIndicator: (props: Props$j) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
27
+ declare const ActivityIndicator: (props: Props$f) => React__default.ReactElement | null;
29
28
 
30
29
  declare const Avatar: (props: {
31
- image?: string | undefined;
32
- name?: string | undefined;
33
- fallback?: string | undefined;
34
- size?: number | undefined;
35
- overflow?: number | undefined;
36
- style?: React__default.CSSProperties | undefined;
37
- className?: string | undefined;
38
- } & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
30
+ image?: string;
31
+ name?: string;
32
+ fallback?: string;
33
+ size?: number;
34
+ overflow?: number;
35
+ style?: React__default.CSSProperties;
36
+ className?: string;
37
+ } & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
39
38
  declare function AvatarStack({ size, children, }: {
40
39
  size?: number;
41
40
  children: React__default.ReactNode;
42
41
  }): React__default.JSX.Element;
43
42
 
44
43
  type ButtonVariant = "normal" | "primary" | "primaryGradient" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
45
- type ButtonSize = "normal" | "large";
46
- declare const ButtonElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
47
- $active: boolean;
48
- $variant: ButtonVariant;
49
- $size: ButtonSize;
50
- $flex?: CSSProperties["flex"];
51
- $defaultBackground?: string | undefined;
52
- }>> & string;
44
+ type ButtonSize = "small" | "normal" | "large" | "floating";
53
45
  interface ButtonRootProps {
54
46
  id?: string;
55
47
  className?: string;
56
48
  style?: CSSProperties;
57
- flex?: CSSProperties["flex"];
58
49
  tabIndex?: number;
59
50
  children: ReactNode;
60
51
  active?: boolean;
@@ -62,8 +53,8 @@ interface ButtonRootProps {
62
53
  variant?: ButtonVariant;
63
54
  size?: ButtonSize;
64
55
  tooltip?: ReactNode;
65
- onClick?: (event: React__default.MouseEvent) => void;
66
- onPointerDown?: (event: React__default.PointerEvent) => void;
56
+ onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
57
+ onPointerDown?: (event: React__default.PointerEvent<HTMLButtonElement>) => void;
67
58
  contentStyle?: CSSProperties;
68
59
  defaultBackground?: string;
69
60
  as?: React__default.ElementType;
@@ -72,7 +63,7 @@ interface ButtonRootProps {
72
63
  target?: string;
73
64
  rel?: string;
74
65
  }
75
- declare const Button: (props: ButtonRootProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
66
+ declare const Button: (props: ButtonRootProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
76
67
 
77
68
  type ChipColorScheme = "primary" | "secondary" | "error";
78
69
  type ChipSize = "small" | "medium" | "large";
@@ -95,153 +86,7 @@ interface ChipProps {
95
86
  style?: React__default.CSSProperties;
96
87
  tabIndex?: number;
97
88
  }
98
- declare const Chip: (props: ChipProps & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
99
-
100
- declare const name$1: string;
101
- declare const colors$1: {
102
- logo: {
103
- fill: string;
104
- highlight: string;
105
- };
106
- background: string;
107
- text: string;
108
- textMuted: string;
109
- textSubtle: string;
110
- textDisabled: string;
111
- textDecorativeLight: string;
112
- dividerSubtle: string;
113
- divider: string;
114
- dividerStrong: string;
115
- primary: string;
116
- primaryLight: string;
117
- primaryPastel: string;
118
- secondary: string;
119
- secondaryLight: string;
120
- secondaryPastel: string;
121
- secondaryBright: string;
122
- warning: string;
123
- neutralBackground: string;
124
- inputBackground: string;
125
- inputBackgroundLight: string;
126
- codeBackground: string;
127
- codeBackgroundLight: string;
128
- readonly codeBackgroundDark: string;
129
- codeBackgroundDecorativeDark: string;
130
- selectedBackground: string;
131
- transparentChecker: string;
132
- activeBackground: string;
133
- scrollbar: string;
134
- placeholderDots: string;
135
- breadcrumb: {
136
- readonly text: string;
137
- readonly textHover: string;
138
- readonly icon: string;
139
- };
140
- listView: {
141
- raisedBackground: string;
142
- editingBackground: string;
143
- };
144
- canvas: {
145
- background: string;
146
- readonly selectionStroke: string;
147
- dragHandleStroke: string;
148
- measurement: string;
149
- sliceOutline: string;
150
- grid: string;
151
- };
152
- sidebar: {
153
- background: string;
154
- backgroundTransparent: string;
155
- };
156
- popover: {
157
- background: string;
158
- divider: string;
159
- };
160
- slider: {
161
- background: string;
162
- border: string;
163
- };
164
- radioGroup: {
165
- background: string;
166
- };
167
- icon: string;
168
- iconSelected: string;
169
- mask: string;
170
- imageOverlay: string;
171
- readonly dragOutline: string;
172
- selection: string;
173
- thumbnailBackground: string;
174
- thumbnailShadow: string;
175
- inlineCode: {
176
- text: string;
177
- background: string;
178
- };
179
- textLink: string;
180
- textLinkFocused: string;
181
- };
182
- declare const fonts: {
183
- normal: string;
184
- monospace: string;
185
- };
186
- declare const textStyles: {
187
- title: CSSObject;
188
- subtitle: CSSObject;
189
- heading1: CSSObject;
190
- heading2: CSSObject;
191
- heading3: CSSObject;
192
- heading4: CSSObject;
193
- heading5: CSSObject;
194
- body: CSSObject;
195
- small: CSSObject;
196
- button: CSSObject;
197
- code: CSSObject;
198
- label: CSSObject;
199
- };
200
- declare const sizes: {
201
- inset: {
202
- top: number;
203
- };
204
- sidebarWidth: number;
205
- toolbar: {
206
- height: number;
207
- itemSeparator: number;
208
- };
209
- inspector: {
210
- horizontalSeparator: number;
211
- verticalSeparator: number;
212
- };
213
- spacing: {
214
- nano: number;
215
- micro: number;
216
- small: number;
217
- medium: number;
218
- large: number;
219
- xlarge: number;
220
- xxlarge: number;
221
- };
222
- dialog: {
223
- padding: number;
224
- };
225
- };
226
-
227
- declare const lightTheme_fonts: typeof fonts;
228
- declare const lightTheme_sizes: typeof sizes;
229
- declare const lightTheme_textStyles: typeof textStyles;
230
- declare namespace lightTheme {
231
- export { colors$1 as colors, lightTheme_fonts as fonts, name$1 as name, lightTheme_sizes as sizes, lightTheme_textStyles as textStyles };
232
- }
233
-
234
- type Theme = typeof lightTheme;
235
- declare module 'styled-components' {
236
- interface DefaultTheme extends Theme {
237
- }
238
- }
239
- interface Colors {
240
- }
241
- type PickByValue<T, V> = Pick<T, {
242
- [K in keyof T]-?: T[K] extends V ? K : never;
243
- }[keyof T]>;
244
- type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
89
+ declare const Chip: (props: ChipProps & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
245
90
 
246
91
  type IconName = keyof typeof Icons;
247
92
 
@@ -263,7 +108,7 @@ type MenuItem<T extends string> = typeof SEPARATOR_ITEM | RegularMenuItem<T>;
263
108
  type ExtractMenuItemType<T> = T extends RegularMenuItem<infer U> ? U : never;
264
109
  declare const KeyboardShortcut: (props: {
265
110
  shortcut: string;
266
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
111
+ }) => React__default.ReactElement | null;
267
112
 
268
113
  interface MenuItemProps<T extends string> {
269
114
  value?: T;
@@ -284,14 +129,13 @@ interface MenuProps<T extends string> {
284
129
  shouldBindKeyboardShortcuts?: boolean;
285
130
  onOpenChange?: (open: boolean) => void;
286
131
  }
287
- declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
132
+ declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement | null;
288
133
 
289
- declare const StyledContent: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<DialogPrimitive.DialogContentProps & React__default.RefAttributes<HTMLDivElement>, never>> & string & Omit<React__default.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & React__default.RefAttributes<HTMLDivElement>>, keyof React__default.Component<any, {}, any>>;
290
- declare const CloseButtonContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
134
+ declare const StyledContent: (props: Omit<DialogPrimitive.DialogContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
291
135
  interface IDialog {
292
136
  containsElement: (element: HTMLElement) => boolean;
293
137
  }
294
- interface Props$i {
138
+ interface Props$e {
295
139
  title?: ReactNode;
296
140
  description?: ReactNode;
297
141
  children?: ReactNode;
@@ -301,30 +145,33 @@ interface Props$i {
301
145
  onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>["onOpenAutoFocus"];
302
146
  closeOnInteractOutside?: boolean;
303
147
  }
304
- declare const Dialog: (props: Props$i & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
305
- declare const FullscreenDialog: (props: Props$i & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
148
+ declare const Dialog: (props: Props$e & React__default.RefAttributes<IDialog>) => React__default.ReactElement | null;
149
+ declare const FullscreenDialog: (props: Props$e & React__default.RefAttributes<IDialog>) => React__default.ReactElement | null;
306
150
 
307
- type DividerVariant = "normal" | "strong" | "subtle";
151
+ type DividerVariant = "normal" | "subtle" | "strong";
308
152
  interface DividerProps {
309
153
  variant?: DividerVariant;
310
- overflow?: number;
154
+ overflow?: number | string;
155
+ className?: string;
156
+ style?: React__default.CSSProperties;
311
157
  }
312
- declare const Divider: (props: DividerProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
313
- declare const DividerVertical: (props: DividerProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
158
+ declare const Divider: (props: DividerProps) => React__default.ReactElement | null;
159
+ declare const DividerVertical: (props: DividerProps) => React__default.ReactElement | null;
314
160
 
315
161
  /**
316
162
  * A button that opens a menu when clicked, but also allows dragging the
317
163
  */
318
164
  declare const DraggableMenuButton: <T extends string>(props: {
319
- items?: MenuItem<T>[] | undefined;
320
- onSelect?: ((value: T) => void) | undefined;
321
- isVisible?: boolean | undefined;
322
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
165
+ items?: MenuItem<T>[];
166
+ onSelect?: (value: T) => void;
167
+ isVisible?: boolean;
168
+ }) => React__default.ReactElement | null;
323
169
 
324
170
  declare const DropdownMenu: <T extends string>(props: MenuProps<T> & {
325
- open?: boolean | undefined;
326
- onCloseAutoFocus?: ((event: React__default.SyntheticEvent<unknown, Event>) => void) | undefined;
327
- } & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "side" | "sideOffset" | "alignOffset" | "collisionPadding"> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
171
+ open?: boolean;
172
+ onCloseAutoFocus?: React__default.EventHandler<SyntheticEvent<unknown>>;
173
+ emptyState?: React__default.ReactNode;
174
+ } & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "side" | "sideOffset" | "alignOffset" | "collisionPadding"> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
328
175
 
329
176
  declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
330
177
  declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
@@ -337,22 +184,21 @@ type SketchPattern = {
337
184
  patternTileScale: number;
338
185
  };
339
186
 
340
- interface Props$h {
187
+ interface Props$d {
341
188
  id?: string;
342
189
  value?: Sketch.Color | Sketch.Gradient | SketchPattern;
343
- flex?: CSSProperties["flex"];
344
190
  }
345
- declare const FillInputField: (props: Props$h & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
191
+ declare const FillInputField: (props: Props$d & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
346
192
 
347
193
  declare const PatternPreviewBackground: (props: {
348
194
  fillType: Sketch.PatternFillType;
349
195
  tileScale: number;
350
196
  imageRef: string;
351
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
352
- interface Props$g {
197
+ }) => React__default.ReactElement | null;
198
+ interface Props$c {
353
199
  value?: Sketch.Color | Sketch.Gradient | SketchPattern;
354
200
  }
355
- declare const FillPreviewBackground: (props: Props$g) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
201
+ declare const FillPreviewBackground: (props: Props$c) => React__default.ReactElement | null;
356
202
 
357
203
  interface FloatingWindowProps {
358
204
  title?: string;
@@ -373,7 +219,7 @@ interface FloatingWindowProps {
373
219
  }
374
220
  declare const FloatingWindow: React__default.FC<FloatingWindowProps>;
375
221
 
376
- interface Props$f {
222
+ interface Props$b {
377
223
  value: Sketch.GradientStop[];
378
224
  selectedStop: number;
379
225
  onChangeColor: (color: Sketch.Color) => void;
@@ -382,32 +228,7 @@ interface Props$f {
382
228
  onDelete: () => void;
383
229
  onSelectStop: (index: number) => void;
384
230
  }
385
- declare const GradientPicker: (props: Props$f) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
386
-
387
- type GridProps = {
388
- columns?: string;
389
- rows?: string;
390
- alignItems?: 'start' | 'center' | 'end';
391
- justifyItems?: 'start' | 'center' | 'end';
392
- placeItems?: 'start' | 'center' | 'end';
393
- width?: number | string;
394
- minWidth?: number | string;
395
- maxWidth?: number | string;
396
- height?: number | string;
397
- minHeight?: number | string;
398
- maxHeight?: number | string;
399
- padding?: number | string;
400
- paddingX?: number | string;
401
- paddingXStart?: number | string;
402
- paddingXEnd?: number | string;
403
- paddingY?: number | string;
404
- paddingYStart?: number | string;
405
- paddingYEnd?: number | string;
406
- gap?: number | string;
407
- gapX?: number | string;
408
- gapY?: number | string;
409
- background?: keyof Colors;
410
- };
231
+ declare const GradientPicker: (props: Props$b) => React__default.ReactElement | null;
411
232
 
412
233
  type GridViewSize = "xxs" | "xs" | "small" | "medium" | "large" | "xl";
413
234
  interface ItemProps$2<MenuItemType extends string = string> {
@@ -438,27 +259,27 @@ interface GridViewRootProps extends Partial<GridViewContextValue> {
438
259
  scrollable?: boolean;
439
260
  }
440
261
  declare namespace GridView {
441
- const Root: (props: GridViewRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
442
- const Item: <MenuItemType extends string>(props: ItemProps$2<MenuItemType> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
262
+ const Root: (props: GridViewRootProps) => React__default.ReactElement | null;
263
+ const Item: <MenuItemType extends string>(props: ItemProps$2<MenuItemType> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
443
264
  const Section: (props: {
444
- children?: React__default.ReactNode;
445
- padding?: csstype.Property.Padding<string | number> | undefined;
446
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
265
+ children?: ReactNode;
266
+ className?: string;
267
+ }) => React__default.ReactElement | null;
447
268
  const SectionHeader: (props: {
448
269
  title: string;
449
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
270
+ }) => React__default.ReactElement | null;
450
271
  }
451
272
 
452
- declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
273
+ declare const IconButton: (props: Omit<ButtonRootProps, "size" | "flex" | "children" | "variant"> & {
453
274
  iconName: IconName;
454
- className?: string | undefined;
455
- style?: React__default.CSSProperties | undefined;
456
- selected?: boolean | undefined;
457
- color?: string | undefined;
458
- size?: number | undefined;
459
- } & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
460
-
461
- type Props$e = {
275
+ className?: string;
276
+ style?: CSSProperties;
277
+ selected?: boolean;
278
+ color?: string;
279
+ size?: number;
280
+ } & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
281
+
282
+ type Props$a = {
462
283
  id?: string;
463
284
  style?: any;
464
285
  className?: string;
@@ -476,13 +297,13 @@ type Props$e = {
476
297
  onFocusChange?: (isFocused: boolean) => void;
477
298
  onBlur?: FocusEventHandler;
478
299
  } & Pick<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "autoCapitalize" | "autoCorrect" | "spellCheck" | "autoFocus">;
479
- type ReadOnlyProps = Props$e & {
300
+ type ReadOnlyProps = Props$a & {
480
301
  readOnly: true;
481
302
  };
482
- type ControlledProps = Props$e & {
303
+ type ControlledProps = Props$a & {
483
304
  onChange: (value: string) => void;
484
305
  };
485
- type SubmittableProps = Props$e & {
306
+ type SubmittableProps = Props$a & {
486
307
  onSubmit: (value: string) => void;
487
308
  allowSubmittingWithSameValue?: boolean;
488
309
  submitAutomaticallyAfterDelay?: number;
@@ -495,6 +316,7 @@ interface InputFieldLabelProps {
495
316
  children?: ReactNode;
496
317
  pointerEvents?: Property.PointerEvents;
497
318
  style?: React__default.CSSProperties;
319
+ className?: string;
498
320
  }
499
321
  interface InputFieldDropdownProps<T extends string> {
500
322
  id?: string;
@@ -502,18 +324,10 @@ interface InputFieldDropdownProps<T extends string> {
502
324
  onSelect: (value: T) => void;
503
325
  children?: ReactNode;
504
326
  }
505
- type InputFieldVariant = "normal" | "bare";
506
- declare const InputElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(TextInputProps & React__default.RefAttributes<HTMLInputElement>) & styled_components_dist_types.BaseObject, {
507
- disabled?: boolean | undefined;
508
- readOnly?: boolean | undefined;
509
- $labelPosition: LabelPosition;
510
- $labelSize: number;
511
- $hasLabel: boolean;
512
- $hasDropdown: boolean;
513
- $textAlign?: Property.TextAlign | undefined;
514
- $variant?: InputFieldVariant | undefined;
515
- $size: InputFieldSize;
516
- }>> & string & Omit<(props: TextInputProps & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null, keyof React__default.Component<any, {}, any>>;
327
+ type InputFieldInputProps = TextInputProps & {
328
+ textAlign?: Property.TextAlign;
329
+ variant?: "bare";
330
+ };
517
331
  type InputFieldNumberInputProps = Omit<TextInputProps, "value" | "onChange" | "onKeyDown" | "onSubmit"> & {
518
332
  value: number | undefined;
519
333
  onNudge?: (value: number) => void;
@@ -542,23 +356,20 @@ interface InputFieldRootProps {
542
356
  className?: string;
543
357
  }
544
358
  declare namespace InputField {
545
- const Root: (props: InputFieldRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
546
- const Input: (props: (TextInputProps & {
547
- textAlign?: Property.TextAlign | undefined;
548
- variant?: "bare" | undefined;
549
- }) & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
359
+ const Root: (props: InputFieldRootProps) => React__default.ReactElement | null;
360
+ const Input: (props: InputFieldInputProps & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement | null;
550
361
  const Typeahead: (props: {
551
362
  prefix: string;
552
363
  value: string;
553
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
554
- const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
555
- const DropdownMenu: <T extends string>(props: InputFieldDropdownProps<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
556
- const Button: (props: {
557
- children?: React__default.ReactNode;
558
- onClick?: (() => void) | undefined;
559
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
560
- const Label: (props: InputFieldLabelProps & React__default.RefAttributes<HTMLLabelElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
561
- const PrimitiveElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
364
+ }) => React__default.ReactElement | null;
365
+ const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement | null;
366
+ const DropdownMenu: <T extends string>(props: InputFieldDropdownProps<T>) => React__default.ReactElement | null;
367
+ const Button: (props: React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
368
+ const Label: (props: InputFieldLabelProps & React__default.RefAttributes<HTMLLabelElement>) => React__default.ReactElement | null;
369
+ const PrimitiveElement: ({ readOnly, disabled, className, ...props }: {
370
+ readOnly?: boolean;
371
+ disabled?: boolean;
372
+ } & React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>) => React__default.JSX.Element;
562
373
  }
563
374
 
564
375
  declare function fuzzyScore({ item, query }: {
@@ -626,8 +437,8 @@ interface RootProps {
626
437
  axis?: "x" | "y";
627
438
  }
628
439
  declare namespace Sortable {
629
- const Item: <T extends HTMLElement>(props: ItemProps$1<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
630
- const Root: (props: RootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
440
+ const Item: <T extends HTMLElement>(props: ItemProps$1<T>) => React__default.ReactElement | null;
441
+ const Root: (props: RootProps) => React__default.ReactElement | null;
631
442
  }
632
443
 
633
444
  type ListRowMarginType = "none" | "top" | "bottom" | "vertical";
@@ -694,7 +505,7 @@ interface IVirtualizedList {
694
505
  type ListViewItemInfo = {
695
506
  isDragging: boolean;
696
507
  };
697
- type ChildrenProps$1 = {
508
+ type ChildrenProps = {
698
509
  children: ReactNode;
699
510
  };
700
511
  type RenderProps<T> = {
@@ -729,30 +540,30 @@ type ListViewRootProps = {
729
540
  colorScheme?: ListColorScheme;
730
541
  };
731
542
  declare namespace ListView {
732
- const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
733
- const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
734
- const Row: <MenuItemType extends string>(props: ListViewRowProps<MenuItemType> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
735
- const Root: <T = any>(props: ((ChildrenProps$1 | RenderProps<T>) & ListViewRootProps) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
543
+ const RowTitle: (props: {
544
+ className?: string;
545
+ children: React__default.ReactNode;
546
+ } & React__default.HTMLAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
547
+ const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement | null;
548
+ const Row: <MenuItemType extends string>(props: ListViewRowProps<MenuItemType> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
549
+ const Root: <T = any>(props: ((ChildrenProps | RenderProps<T>) & ListViewRootProps) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
736
550
  const RowContext: React__default.Context<ListRowContextValue>;
737
551
  type ClickInfo = ListViewClickInfo;
738
552
  type ItemInfo = ListViewItemInfo;
739
553
  type RowProps<MenuItemType extends string = string> = ListViewRowProps<MenuItemType>;
740
554
  type VirtualizedList = IVirtualizedList;
741
- const DragIndicator: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
555
+ const DragIndicator: (props: React__default.HTMLAttributes<HTMLDivElement> & {
742
556
  $relativeDropPosition: RelativeDropPosition;
743
557
  $gap: number;
744
558
  $offsetLeft: number;
745
559
  $colorScheme: ListColorScheme;
746
- }>> & string;
560
+ } & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
747
561
  const rowHeight = 31;
748
562
  const sectionHeaderLabelHeight = 27;
749
563
  const calculateHeight: (items: number, headerCount: number, headerVariant: ListViewSectionHeaderVariant) => number;
750
564
  const normalizeDestinationIndex: (index: number, position: "above" | "below") => number;
751
565
  }
752
566
 
753
- declare const CompletionToken: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
754
- $type: IToken["type"];
755
- }>> & string;
756
567
  interface CompletionMenuProps {
757
568
  items: CompletionListItem[];
758
569
  selectedIndex: number;
@@ -760,8 +571,8 @@ interface CompletionMenuProps {
760
571
  onHoverIndex: (index: number) => void;
761
572
  listSize: Size;
762
573
  }
763
- declare const CompletionMenu: (props: CompletionMenuProps & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
764
- type Props$d = {
574
+ declare const CompletionMenu: (props: CompletionMenuProps & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
575
+ type InputFieldWithCompletionsProps = {
765
576
  loading?: boolean;
766
577
  initialValue?: string;
767
578
  placeholder?: string;
@@ -779,32 +590,29 @@ type Props$d = {
779
590
  hideChildrenWhenFocused?: boolean;
780
591
  hideMenuWhenEmptyValue?: boolean;
781
592
  };
782
- interface IInputFieldWithCompletions {
593
+ interface InputFieldWithCompletionsRef {
783
594
  focus(): void;
784
595
  setValue(value: string): void;
785
596
  selectAllInputText(): void;
786
597
  }
787
- declare const InputFieldWithCompletions: (props: Props$d & React__default.RefAttributes<IInputFieldWithCompletions>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
598
+ declare const InputFieldWithCompletions: (props: InputFieldWithCompletionsProps & React__default.RefAttributes<InputFieldWithCompletionsRef>) => React__default.ReactElement | null;
788
599
 
789
600
  declare const InspectorContainer: (props: {
790
601
  header?: React__default.ReactNode;
791
602
  children?: React__default.ReactNode;
792
603
  fallback?: React__default.ReactNode;
793
- showDividers?: boolean | undefined;
794
- id?: string | undefined;
795
- className?: string | undefined;
796
- style?: React__default.CSSProperties | undefined;
797
- } & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
604
+ showDividers?: boolean;
605
+ id?: string;
606
+ className?: string;
607
+ style?: React__default.CSSProperties;
608
+ } & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
798
609
 
799
610
  interface LabelRootProps {
800
611
  label: ReactNode;
801
612
  children: ReactNode;
802
613
  }
803
614
  declare namespace Label {
804
- const Label: (props: styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
805
- $selected?: boolean | undefined;
806
- }>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
807
- const Root: (props: LabelRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
615
+ const Root: (props: LabelRootProps) => React__default.ReactElement | null;
808
616
  }
809
617
 
810
618
  interface ContainerProps {
@@ -814,10 +622,10 @@ interface ContainerProps {
814
622
  index: number;
815
623
  }) => ReactNode;
816
624
  }
817
- declare const LabeledElementView: (props: ContainerProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
625
+ declare const LabeledElementView: (props: ContainerProps) => React__default.ReactElement | null;
818
626
 
819
627
  type PopoverVariant = "normal" | "large";
820
- interface Props$c extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
628
+ interface Props$9 extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
821
629
  children: React__default.ReactNode;
822
630
  trigger: React__default.ReactNode;
823
631
  variant?: PopoverVariant;
@@ -828,15 +636,13 @@ interface Props$c extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content
828
636
  onClickClose?: () => void;
829
637
  showArrow?: boolean;
830
638
  }
831
- declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$c): React__default.JSX.Element;
639
+ declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$9): React__default.JSX.Element;
832
640
 
833
- type ProgressVariant = 'normal' | 'warning' | 'primary' | 'secondary';
834
- declare function Progress({ value, width, height, flex, variant, }: {
641
+ type ProgressVariant = "normal" | "warning" | "primary" | "secondary";
642
+ declare function Progress({ value, variant, className, }: {
835
643
  value: number;
836
- height?: CSSProperties['height'];
837
- width?: CSSProperties['width'];
838
- flex?: CSSProperties['flex'];
839
644
  variant?: ProgressVariant;
645
+ className?: string;
840
646
  }): React__default.JSX.Element;
841
647
 
842
648
  type RadioGroupColorScheme = "primary" | "secondary";
@@ -846,7 +652,7 @@ interface ItemProps {
846
652
  children: ReactNode;
847
653
  disabled?: boolean;
848
654
  }
849
- interface Props$b {
655
+ interface Props$8 {
850
656
  id?: string;
851
657
  value?: string;
852
658
  onValueChange?: (value: string) => void;
@@ -856,37 +662,16 @@ interface Props$b {
856
662
  children: ReactNode;
857
663
  }
858
664
  declare namespace RadioGroup {
859
- const Root: (props: Props$b) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
860
- const Item: (props: ItemProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
665
+ const Root: (props: Props$8) => React__default.ReactElement | null;
666
+ const Item: (props: ItemProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
861
667
  }
862
668
 
863
- interface Props$a {
669
+ interface Props$7 {
864
670
  children?: ReactNode | ((scrollElementRef: HTMLDivElement) => ReactNode);
865
671
  }
866
- declare const ScrollArea: (props: Props$a) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
672
+ declare const ScrollArea: (props: Props$7) => React__default.ReactElement | null;
867
673
 
868
- interface SelectOptionProps<T extends string> {
869
- value: T;
870
- title?: string;
871
- onSelect?: () => void;
872
- }
873
- declare const SelectOption: <T extends string>(props: SelectOptionProps<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
874
- type ChildrenProps<T> = {
875
- children: ReactNode;
876
- } | {
877
- options: readonly T[];
878
- getTitle?: (option: T, index: number) => string;
879
- onChange: (value: T) => void;
880
- };
881
- type Props$9<T extends string> = ChildrenProps<T> & {
882
- id: string;
883
- flex?: CSSProperties["flex"];
884
- value: T;
885
- label?: ReactNode;
886
- };
887
- declare const Select: <T extends string>(props: Props$9<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
888
-
889
- type Props$8<T extends string> = {
674
+ type Props$6<T extends string> = {
890
675
  id?: string;
891
676
  style?: React__default.CSSProperties;
892
677
  className?: string;
@@ -896,181 +681,87 @@ type Props$8<T extends string> = {
896
681
  placeholder?: string;
897
682
  disabled?: boolean;
898
683
  readOnly?: boolean;
899
- };
900
- declare const SelectMenu: <T extends string = string>(props: Props$8<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
684
+ label?: React__default.ReactNode;
685
+ } & Pick<SelectProps, "open">;
686
+ declare const SelectMenu: <T extends string = string>(props: Props$6<T>) => React__default.ReactElement | null;
901
687
 
902
- interface Props$7 {
688
+ interface Props$5 {
903
689
  id?: string;
904
690
  value: number;
905
691
  onValueChange: (value: number) => void;
906
692
  min: number;
907
693
  max: number;
908
694
  }
909
- declare const Slider: ({ id, value, onValueChange, min, max, }: Props$7) => React__default.JSX.Element;
695
+ declare const Slider: ({ id, value, onValueChange, min, max, }: Props$5) => React__default.JSX.Element;
910
696
 
911
- interface Props$6 {
697
+ interface Props$4 {
912
698
  size?: number | string;
913
699
  inline?: boolean;
914
700
  }
915
701
  declare namespace Spacer {
916
- const Vertical: (props: Props$6 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
917
- const Horizontal: (props: Props$6 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
918
- }
919
-
920
- type BreakpointKey = number | string;
921
- type Breakpoint<T extends object> = [BreakpointKey, T];
922
- type BreakpointCollection<T extends object> = Breakpoint<T>[] | Record<BreakpointKey, T>;
923
-
924
- declare function withSeparatorElements(elements: ReactNode, separator: ReactNode | (() => ReactNode)): (string | number | React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | React$1.ReactPortal)[];
925
-
926
- interface StyleProps$1 {
927
- display?: "flex" | "inline-flex" | "none" | "block";
928
- visibility?: CSSProperties["visibility"];
929
- position?: CSSProperties["position"];
930
- zIndex?: CSSProperties["zIndex"];
931
- gap?: CSSProperties["gap"];
932
- inset?: CSSProperties["inset"];
933
- top?: CSSProperties["top"];
934
- right?: CSSProperties["right"];
935
- bottom?: CSSProperties["bottom"];
936
- left?: CSSProperties["left"];
937
- flexDirection?: CSSProperties["flexDirection"];
938
- justifyContent?: CSSProperties["justifyContent"];
939
- alignItems?: CSSProperties["alignItems"];
940
- alignSelf?: CSSProperties["alignSelf"];
941
- flex?: CSSProperties["flex"];
942
- flexWrap?: CSSProperties["flexWrap"];
943
- height?: CSSProperties["height"];
944
- minHeight?: CSSProperties["minHeight"];
945
- maxHeight?: CSSProperties["maxHeight"];
946
- width?: CSSProperties["width"];
947
- minWidth?: CSSProperties["minWidth"];
948
- maxWidth?: CSSProperties["maxWidth"];
949
- aspectRatio?: CSSProperties["aspectRatio"];
950
- padding?: CSSProperties["padding"];
951
- paddingVertical?: string | number;
952
- paddingHorizontal?: string | number;
953
- margin?: CSSProperties["margin"];
954
- background?: CSSProperties["background"];
955
- backgroundSize?: CSSProperties["backgroundSize"];
956
- backgroundPosition?: CSSProperties["backgroundPosition"];
957
- borderRadius?: CSSProperties["borderRadius"];
958
- overflowX?: CSSProperties["overflowX"];
959
- overflowY?: CSSProperties["overflowY"];
960
- overflow?: CSSProperties["overflow"];
961
- textOverflow?: CSSProperties["textOverflow"];
962
- boxShadow?: CSSProperties["boxShadow"];
963
- outline?: CSSProperties["outline"];
964
- border?: CSSProperties["border"];
965
- borderTop?: CSSProperties["borderTop"];
966
- borderRight?: CSSProperties["borderRight"];
967
- borderBottom?: CSSProperties["borderBottom"];
968
- borderLeft?: CSSProperties["borderLeft"];
969
- cursor?: CSSProperties["cursor"];
970
- userSelect?: CSSProperties["userSelect"];
971
- transition?: CSSProperties["transition"];
972
- opacity?: CSSProperties["opacity"];
973
- filter?: CSSProperties["filter"];
974
- color?: CSSProperties["color"];
975
- order?: CSSProperties["order"];
976
- pointerEvents?: CSSProperties["pointerEvents"];
977
- lineHeight?: CSSProperties["lineHeight"];
978
- isolation?: CSSProperties["isolation"];
979
- backdropFilter?: CSSProperties["backdropFilter"];
980
- }
981
- type StackBreakpointList = BreakpointCollection<StyleProps$1>;
982
- interface Props$5 extends StyleProps$1 {
983
- id?: string;
984
- as?: keyof ReactHTML;
985
- className?: string;
986
- children?: ReactNode;
987
- separator?: Parameters<typeof withSeparatorElements>[1];
988
- breakpoints?: StackBreakpointList | null | false;
989
- href?: string;
990
- tabIndex?: number;
702
+ const Vertical: (props: Props$4 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
703
+ const Horizontal: (props: Props$4 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
991
704
  }
992
- type StackProps = Omit<Props$5, "flexDirection">;
993
- declare const Stack: {
994
- V: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
995
- H: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
996
- };
997
705
 
998
706
  type SwitchColorScheme = "normal" | "primary" | "secondary";
999
- interface Props$4 {
707
+ interface Props$3 {
1000
708
  value: boolean;
1001
709
  onChange: (value: boolean) => void;
1002
710
  /** @default normal */
1003
711
  colorScheme?: SwitchColorScheme;
1004
712
  disabled?: boolean;
1005
713
  }
1006
- declare const Switch: ({ value, onChange, colorScheme, disabled, }: Props$4) => React__default.JSX.Element;
1007
-
1008
- type StyleProps = {
1009
- flex?: CSSProperties$1["flex"];
1010
- padding?: CSSProperties$1["padding"];
1011
- background?: CSSProperties$1["background"];
1012
- borderRadius?: CSSProperties$1["borderRadius"];
1013
- textAlign?: CSSProperties$1["textAlign"];
1014
- fontWeight?: CSSProperties$1["fontWeight"];
1015
- fontStyle?: CSSProperties$1["fontStyle"];
1016
- fontSize?: CSSProperties$1["fontSize"];
1017
- lineHeight?: CSSProperties$1["lineHeight"];
1018
- fontFamily?: CSSProperties$1["fontFamily"];
1019
- wordBreak?: CSSProperties$1["wordBreak"];
1020
- whiteSpace?: CSSProperties$1["whiteSpace"];
1021
- height?: CSSProperties$1["height"];
1022
- width?: CSSProperties$1["width"];
1023
- minWidth?: CSSProperties$1["minWidth"];
1024
- maxWidth?: CSSProperties$1["maxWidth"];
1025
- opacity?: CSSProperties$1["opacity"];
1026
- position?: CSSProperties$1["position"];
1027
- overflow?: CSSProperties$1["overflow"];
1028
- textOverflow?: CSSProperties$1["textOverflow"];
1029
- textDecoration?: CSSProperties$1["textDecoration"];
1030
- display?: CSSProperties$1["display"];
1031
- top?: CSSProperties$1["top"];
1032
- right?: CSSProperties$1["right"];
1033
- bottom?: CSSProperties$1["bottom"];
1034
- left?: CSSProperties$1["left"];
1035
- userSelect?: CSSProperties$1["userSelect"];
1036
- cursor?: CSSProperties$1["cursor"];
1037
- };
1038
- type TextBreakpointList = BreakpointCollection<StyleProps>;
1039
- interface Props$3 extends StyleProps {
714
+ declare const Switch: ({ value, onChange, colorScheme, disabled, }: Props$3) => React__default.JSX.Element;
715
+
716
+ declare const config: Config;
717
+
718
+ type Theme = typeof config.theme.extend;
719
+
720
+ /**
721
+ * Utility for merging classes conditionally. Right side will override left side if there are any conflicts.
722
+ * Usage: cn('bg-red-500 text-white', 'bg-blue-500') // Returns: 'text-white bg-blue-500'
723
+ * @danger do not use this function to concatenate class names. Use it to merge classes conditionally.
724
+ */
725
+ declare const cn: (...classes: (string | boolean | undefined | null)[]) => string;
726
+ type ThemeExtend = NonNullable<Theme['extend']>;
727
+ type ThemeColor = keyof ThemeExtend['colors'];
728
+
729
+ type Variant = "title" | "subtitle" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "body" | "small" | "button" | "code" | "label";
730
+ declare const textStyles: Record<Variant, string>;
731
+ type TextProps = {
1040
732
  as?: keyof ReactHTML;
1041
733
  href?: string;
1042
734
  className?: string;
1043
735
  style?: React__default.CSSProperties;
1044
- variant: keyof Theme["textStyles"];
1045
- breakpoints?: BreakpointCollection<StyleProps> | null | false;
1046
- color?: ThemeColorName;
736
+ variant: Variant;
737
+ color?: ThemeColor;
1047
738
  children: ReactNode;
1048
739
  onClick?: () => void;
1049
740
  onDoubleClick?: () => void;
1050
741
  onKeyDown?: (event: React__default.KeyboardEvent<HTMLSpanElement>) => void;
1051
742
  tabIndex?: number;
1052
- }
1053
- declare const Text$1: (props: Props$3 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1054
- type PresetProps = Omit<Props$3, "variant">;
1055
- declare const Heading1: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1056
- declare const Heading2: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1057
- declare const Heading3: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1058
- declare const Heading4: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1059
- declare const Heading5: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1060
- declare const Body: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1061
- declare const Small: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
743
+ };
744
+ declare const Text$1: (props: TextProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
745
+ type PresetProps = Omit<TextProps, "variant">;
746
+ declare const Heading1: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
747
+ declare const Heading2: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
748
+ declare const Heading3: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
749
+ declare const Heading4: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
750
+ declare const Heading5: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
751
+ declare const Body: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
752
+ declare const Small: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
1062
753
  declare const Italic: ({ children }: {
1063
754
  children: ReactNode;
1064
755
  }) => React__default.JSX.Element;
1065
756
 
1066
757
  declare const useAutoResize: (value: string) => React__default.MutableRefObject<HTMLTextAreaElement | null>;
1067
- declare const AutoResizingTextArea: (props: Omit<styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>, "onChange" | "value"> & {
758
+ declare const AutoResizingTextArea: (props: {
1068
759
  onChangeText: (value: string) => void;
1069
- value?: string | undefined;
1070
- } & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
760
+ value?: string;
761
+ } & React__default.TextareaHTMLAttributes<HTMLTextAreaElement> & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement | null;
1071
762
 
1072
763
  declare const Toast: ({ title, content, children, ...props }: {
1073
- title?: string | undefined;
764
+ title?: string;
1074
765
  content: ReactNode;
1075
766
  children?: React__default.ReactNode;
1076
767
  }) => React__default.JSX.Element;
@@ -1082,7 +773,7 @@ interface Props$2 {
1082
773
  children: ReactNode;
1083
774
  content: ReactNode;
1084
775
  }
1085
- declare const Tooltip: (props: Props$2) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
776
+ declare const Tooltip: (props: Props$2) => React__default.ReactElement | null;
1086
777
 
1087
778
  type TreeRowBaseProps = {
1088
779
  icon?: Exclude<ReactNode, string> | IconName;
@@ -1094,43 +785,51 @@ type TreeRowBaseProps = {
1094
785
  type TreeViewRowProps<MenuItemType extends string> = ListView.RowProps<MenuItemType> & TreeRowBaseProps;
1095
786
  declare namespace TreeView {
1096
787
  const Root: <T = any>(props: (({
1097
- children: React__default.ReactNode;
788
+ children: ReactNode;
1098
789
  } | {
1099
790
  data: T[];
1100
791
  renderItem: (item: T, index: number, info: {
1101
792
  isDragging: boolean;
1102
- }) => React__default.ReactNode;
793
+ }) => ReactNode;
1103
794
  keyExtractor: (item: T, index: number) => string;
1104
- sortable?: boolean | undefined;
1105
- virtualized?: _noya_app_noya_geometry.Size | undefined;
795
+ sortable?: boolean;
796
+ virtualized?: _noya_app_noya_geometry.Size;
1106
797
  }) & {
1107
- id?: string | undefined;
1108
- className?: string | undefined;
1109
- style?: React__default.CSSProperties | undefined;
1110
- onPress?: (() => void) | undefined;
1111
- scrollable?: boolean | undefined;
1112
- expandable?: boolean | undefined;
1113
- onMoveItem?: ((sourceIndex: number, destinationIndex: number, position: RelativeDropPosition) => void) | undefined;
1114
- indentation?: number | undefined;
1115
- acceptsDrop?: DropValidator | undefined;
1116
- pressEventName?: ("onClick" | "onPointerDown") | undefined;
1117
- variant?: ("normal" | "bare" | "padded") | undefined;
1118
- sectionHeaderVariant?: ("label" | "normal") | undefined;
1119
- divider?: boolean | undefined;
1120
- gap?: number | undefined;
1121
- colorScheme?: ("primary" | "secondary") | undefined;
1122
- }) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1123
- const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1124
- const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1125
- const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
798
+ id?: string;
799
+ className?: string;
800
+ style?: React__default.CSSProperties;
801
+ onPress?: () => void;
802
+ scrollable?: boolean;
803
+ expandable?: boolean;
804
+ onMoveItem?: (sourceIndex: number, destinationIndex: number, position: RelativeDropPosition) => void;
805
+ indentation?: number;
806
+ acceptsDrop?: DropValidator;
807
+ pressEventName?: "onClick" | "onPointerDown";
808
+ variant?: "normal" | "bare" | "padded";
809
+ sectionHeaderVariant?: "label" | "normal";
810
+ divider?: boolean;
811
+ gap?: number;
812
+ colorScheme?: "primary" | "secondary";
813
+ }) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
814
+ const RowTitle: (props: {
815
+ className?: string;
816
+ children: React__default.ReactNode;
817
+ } & React__default.HTMLAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
818
+ const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement | null;
819
+ const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement | null;
1126
820
  type ClickInfo = ListView.ClickInfo;
1127
821
  type RowProps<MenuItemType extends string> = TreeViewRowProps<MenuItemType>;
1128
822
  }
1129
823
 
824
+ declare const EDITOR_PANEL_GROUP_ID = "editor-panel-group";
825
+ declare const LEFT_SIDEBAR_ID = "editor-left-sidebar";
826
+ declare const RIGHT_SIDEBAR_ID = "editor-right-sidebar";
827
+ declare const CONTENT_AREA_ID = "editor-content-area";
1130
828
  type PanelLayoutState = {
1131
829
  leftSidebarCollapsed: boolean;
1132
830
  rightSidebarCollapsed: boolean;
1133
831
  };
832
+ declare function usePreservePanelSize(panelGroupRef: React__default.RefObject<ImperativePanelGroupHandle | null>, setPanelLayoutState?: (state: PanelLayoutState) => void): void;
1134
833
 
1135
834
  interface Props$1 {
1136
835
  autoSavePrefix?: string;
@@ -1164,24 +863,17 @@ type IWorkspaceLayout = {
1164
863
  toggleLeftSidebar: () => void;
1165
864
  toggleRightSidebar: () => void;
1166
865
  };
1167
- declare const WorkspaceLayout: (props: Props$1 & React__default.RefAttributes<IWorkspaceLayout>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
866
+ declare const WorkspaceLayout: (props: Props$1 & React__default.RefAttributes<IWorkspaceLayout>) => React__default.ReactElement | null;
1168
867
 
1169
- declare const DesignSystemThemeProvider: (props: {
1170
- children: ReactNode;
1171
- theme?: typeof lightTheme | undefined;
1172
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1173
868
  type DesignSystemConfigurationContextValue = {
1174
869
  platform: PlatformName;
1175
870
  };
1176
871
  declare const DesignSystemConfigurationProvider: (props: {
1177
872
  children: ReactNode;
1178
- theme?: "dark" | "light" | typeof lightTheme | undefined;
1179
- platform?: PlatformName | undefined;
1180
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
873
+ platform?: PlatformName;
874
+ }) => React__default.ReactElement | null;
1181
875
  declare function useDesignSystemConfiguration(): DesignSystemConfigurationContextValue;
1182
- declare function useDesignSystemTheme(): styled_components.DefaultTheme;
1183
876
 
1184
- declare const Row$1: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
1185
877
  type DialogContextValue = {
1186
878
  openInputDialog(title: string, inputValue?: string): Promise<string | undefined>;
1187
879
  containsElement(element: HTMLElement): boolean;
@@ -1189,7 +881,7 @@ type DialogContextValue = {
1189
881
  declare const DialogProvider: ({ children, }: {
1190
882
  children: ReactNode;
1191
883
  }) => React__default.JSX.Element;
1192
- declare function useOpenInputDialog(): (title: string, inputValue?: string | undefined) => Promise<string | undefined>;
884
+ declare function useOpenInputDialog(): (title: string, inputValue?: string) => Promise<string | undefined>;
1193
885
  declare function useDialogContainsElement(): (element: HTMLElement) => boolean;
1194
886
 
1195
887
  type FloatingWindowContextValue = {
@@ -1210,8 +902,8 @@ type ImageDataContextValue = {
1210
902
  };
1211
903
  declare const ImageDataProvider: (props: {
1212
904
  children: ReactNode;
1213
- getImageData?: ((ref: string) => ArrayBuffer | undefined) | undefined;
1214
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
905
+ getImageData?: (ref: string) => ArrayBuffer | undefined;
906
+ }) => React__default.ReactElement | null;
1215
907
  declare function useImageData(ref: string): ArrayBuffer | undefined;
1216
908
 
1217
909
  type GlobalInputBlurContextValue = {
@@ -1281,109 +973,24 @@ declare const mediaQuery: {
1281
973
  xlarge: string;
1282
974
  };
1283
975
 
1284
- declare const name: string;
1285
- declare const colors: {
1286
- logo: {
1287
- fill: string;
1288
- highlight: string;
1289
- };
1290
- background: string;
1291
- text: string;
1292
- textMuted: string;
1293
- textSubtle: string;
1294
- textDisabled: string;
1295
- textDecorativeLight: string;
1296
- dividerSubtle: string;
1297
- divider: string;
1298
- dividerStrong: string;
1299
- primary: string;
1300
- primaryLight: string;
1301
- primaryPastel: string;
1302
- secondary: string;
1303
- secondaryLight: string;
1304
- secondaryPastel: string;
1305
- secondaryBright: string;
1306
- warning: string;
1307
- neutralBackground: string;
1308
- inputBackground: string;
1309
- inputBackgroundLight: string;
1310
- codeBackground: string;
1311
- codeBackgroundLight: string;
1312
- readonly codeBackgroundDark: string;
1313
- codeBackgroundDecorativeDark: string;
1314
- selectedBackground: string;
1315
- transparentChecker: string;
1316
- activeBackground: string;
1317
- scrollbar: string;
1318
- placeholderDots: string;
1319
- breadcrumb: {
1320
- readonly text: string;
1321
- readonly textHover: string;
1322
- readonly icon: string;
1323
- };
1324
- listView: {
1325
- raisedBackground: string;
1326
- editingBackground: string;
1327
- };
1328
- canvas: {
1329
- background: string;
1330
- readonly selectionStroke: string;
1331
- dragHandleStroke: string;
1332
- measurement: string;
1333
- sliceOutline: string;
1334
- grid: string;
1335
- };
1336
- sidebar: {
1337
- background: string;
1338
- backgroundTransparent: string;
1339
- };
1340
- popover: {
1341
- background: string;
1342
- divider: string;
1343
- };
1344
- slider: {
1345
- background: string;
1346
- border: string;
1347
- };
1348
- radioGroup: {
1349
- background: string;
1350
- };
1351
- icon: string;
1352
- iconSelected: string;
1353
- mask: string;
1354
- imageOverlay: string;
1355
- readonly dragOutline: string;
1356
- selection: string;
1357
- thumbnailBackground: string;
1358
- thumbnailShadow: string;
1359
- inlineCode: {
1360
- text: string;
1361
- background: string;
1362
- };
1363
- textLink: string;
1364
- textLinkFocused: string;
1365
- };
1366
-
1367
- declare const dark_colors: typeof colors;
1368
- declare const dark_fonts: typeof fonts;
1369
- declare const dark_name: typeof name;
1370
- declare const dark_sizes: typeof sizes;
1371
- declare const dark_textStyles: typeof textStyles;
1372
- declare namespace dark {
1373
- export { dark_colors as colors, dark_fonts as fonts, dark_name as name, dark_sizes as sizes, dark_textStyles as textStyles };
1374
- }
1375
-
1376
976
  type Optional<T> = T | false | null | undefined;
1377
977
  type MenuConfig<T extends string> = Optional<Optional<RegularMenuItem<T>>[]>[];
1378
978
  declare function createSectionedMenu<T extends string>(...sections: MenuConfig<T>): MenuItem<T>[];
1379
979
 
1380
980
  declare function getGradientBackground(value: Sketch.GradientStop[], type: Sketch.GradientType, direction?: number): string;
1381
981
 
982
+ declare function useDarkMode(elementRef: React.RefObject<HTMLElement>): {
983
+ isDark: boolean;
984
+ elementRef: React$1.RefObject<HTMLElement>;
985
+ };
986
+
1382
987
  declare function sketchColorToRgba(value: Sketch.Color): RgbaColor;
1383
988
  declare function sketchColorToRgbaString(value: Sketch.Color): string;
1384
989
  declare function rgbaToSketchColor(value: RgbaColor): Sketch.Color;
1385
990
  declare function sketchColorToHex(value: Sketch.Color): string;
1386
991
 
992
+ declare function withSeparatorElements(elements: ReactNode, separator: ReactNode | (() => ReactNode)): (string | number | React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | React$1.ReactPortal)[];
993
+
1387
994
  type SetNumberMode = "replace" | "adjust";
1388
995
  declare function getNewValue(value: number, mode: SetNumberMode, delta?: number): number;
1389
996
  type DimensionValue = number | undefined;
@@ -1397,45 +1004,37 @@ interface Props {
1397
1004
  disabled?: boolean;
1398
1005
  trigger?: "change" | "submit";
1399
1006
  }
1400
- declare const DimensionInput: (props: Props) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1401
-
1402
- declare const Section: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1403
- $padding?: CSSProperties["padding"];
1404
- $gap?: CSSProperties["gap"];
1405
- }>> & string;
1406
- declare const SectionHeader: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
1407
- declare const Title: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1408
- $textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
1409
- }>> & string;
1410
- declare const Row: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1411
- $gap?: CSSProperties["gap"];
1412
- }>> & string;
1413
- declare const Column: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
1414
- declare const Checkbox: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
1415
- declare const Text: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
1007
+ declare const DimensionInput: (props: Props) => React__default.ReactElement | null;
1008
+
1009
+ declare const Section: (props: React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
1010
+ declare const SectionHeader: (props: React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
1011
+ type TitleTextStyle = "small" | "heading5" | "heading4" | "heading3";
1012
+ declare const Title: (props: React__default.HTMLAttributes<HTMLDivElement> & {
1013
+ $textStyle?: TitleTextStyle;
1014
+ } & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
1015
+ declare const Row: (props: React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
1016
+ declare const Column: (props: React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
1017
+ declare const Checkbox: (props: React__default.InputHTMLAttributes<HTMLInputElement> & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement | null;
1018
+ declare const Text: (props: React__default.HTMLAttributes<HTMLSpanElement> & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
1416
1019
  declare const VerticalSeparator: () => React__default.JSX.Element;
1417
1020
  declare const HorizontalSeparator: () => React__default.JSX.Element;
1418
- declare const RowLabel: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
1419
- $textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
1420
- }>> & string;
1421
- declare const LabeledRow: (props: {
1422
- id?: string | undefined;
1021
+ declare const RowLabel: (props: React__default.HTMLAttributes<HTMLSpanElement> & {
1022
+ $textStyle?: TitleTextStyle | "label";
1023
+ } & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
1024
+ interface LabeledRowProps {
1025
+ id?: string;
1423
1026
  children: ReactNode;
1424
1027
  label: ReactNode;
1425
- labelTextStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
1426
- gap?: CSSProperties["gap"];
1028
+ labelTextStyle?: TitleTextStyle;
1427
1029
  right?: ReactNode;
1428
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1429
- declare const LabeledSliderRow: (props: {
1430
- children: ReactNode;
1431
- label: string;
1432
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1030
+ className?: string;
1031
+ }
1032
+ declare const LabeledRow: (props: LabeledRowProps) => React__default.ReactElement | null;
1433
1033
 
1434
1034
  declare const InspectorPrimitives_Checkbox: typeof Checkbox;
1435
1035
  declare const InspectorPrimitives_Column: typeof Column;
1436
1036
  declare const InspectorPrimitives_HorizontalSeparator: typeof HorizontalSeparator;
1437
1037
  declare const InspectorPrimitives_LabeledRow: typeof LabeledRow;
1438
- declare const InspectorPrimitives_LabeledSliderRow: typeof LabeledSliderRow;
1439
1038
  declare const InspectorPrimitives_Row: typeof Row;
1440
1039
  declare const InspectorPrimitives_RowLabel: typeof RowLabel;
1441
1040
  declare const InspectorPrimitives_Section: typeof Section;
@@ -1444,7 +1043,19 @@ declare const InspectorPrimitives_Text: typeof Text;
1444
1043
  declare const InspectorPrimitives_Title: typeof Title;
1445
1044
  declare const InspectorPrimitives_VerticalSeparator: typeof VerticalSeparator;
1446
1045
  declare namespace InspectorPrimitives {
1447
- export { InspectorPrimitives_Checkbox as Checkbox, InspectorPrimitives_Column as Column, InspectorPrimitives_HorizontalSeparator as HorizontalSeparator, InspectorPrimitives_LabeledRow as LabeledRow, InspectorPrimitives_LabeledSliderRow as LabeledSliderRow, InspectorPrimitives_Row as Row, InspectorPrimitives_RowLabel as RowLabel, InspectorPrimitives_Section as Section, InspectorPrimitives_SectionHeader as SectionHeader, InspectorPrimitives_Text as Text, InspectorPrimitives_Title as Title, InspectorPrimitives_VerticalSeparator as VerticalSeparator };
1046
+ export {
1047
+ InspectorPrimitives_Checkbox as Checkbox,
1048
+ InspectorPrimitives_Column as Column,
1049
+ InspectorPrimitives_HorizontalSeparator as HorizontalSeparator,
1050
+ InspectorPrimitives_LabeledRow as LabeledRow,
1051
+ InspectorPrimitives_Row as Row,
1052
+ InspectorPrimitives_RowLabel as RowLabel,
1053
+ InspectorPrimitives_Section as Section,
1054
+ InspectorPrimitives_SectionHeader as SectionHeader,
1055
+ InspectorPrimitives_Text as Text,
1056
+ InspectorPrimitives_Title as Title,
1057
+ InspectorPrimitives_VerticalSeparator as VerticalSeparator,
1058
+ };
1448
1059
  }
1449
1060
 
1450
1061
  declare module "react" {
@@ -1452,4 +1063,4 @@ declare module "react" {
1452
1063
  function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
1453
1064
  }
1454
1065
 
1455
- export { ActivityIndicator, AutoResizingTextArea, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IInputFieldWithCompletions, type IScoredItem, type IToken, type IVirtualizedList, type IWorkspaceLayout, IconButton, type IconName, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectMenu, SelectOption, type SetNumberMode, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, renderIcon, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useAutoResize, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
1066
+ export { ActivityIndicator, AutoResizingTextArea, Avatar, AvatarStack, Body, Button, ButtonRootProps, CONTENT_AREA_ID, Chip, ChipProps, CompletionItem, CompletionListItem, CompletionMenu, CompletionSectionHeader, ContextMenu, DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, DialogContextValue, DialogProvider, DimensionInput, DimensionValue, Divider, DividerVertical, DraggableMenuButton, DropValidator, DropdownMenu, EDITOR_PANEL_GROUP_ID, EditableRowProps, ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, GridView, GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, HoverEvent, HoverEvents, HoverProps, IDialog, IScoredItem, IToken, IVirtualizedList, IWorkspaceLayout, IconButton, IconName, ImageDataContextValue, ImageDataProvider, InputField, InputFieldInputProps, InputFieldSize, InputFieldWithCompletions, InputFieldWithCompletionsProps, InputFieldWithCompletionsRef, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabeledElementView, ListRowMarginType, ListRowPosition, ListView, MatchRange, MenuConfig, MenuItem, MenuItemProps, MenuProps, Optional, PanelLayoutState, PatternPreviewBackground, Popover, Progress, RIGHT_SIDEBAR_ID, RadioGroup, RegularMenuItem, RelativeDropPosition, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, SelectMenu, SetNumberMode, SketchPattern, Slider, Small, Sortable, Spacer, SupportedCanvasUploadType, SupportedImageUploadType, Switch, Text$1 as Text, TextProps, Theme, ThemeColor, Toast, ToastProvider, Tooltip, TreeView, WorkspaceLayout, cn, createSectionedMenu, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, mediaQuery, normalizeListDestinationIndex, renderIcon, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, textStyles, useAutoResize, useCurrentFloatingWindowInternal, useDarkMode, useDesignSystemConfiguration, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, usePreservePanelSize, withSeparatorElements };