@prismicio/editor-ui 0.4.49-alpha.feat-onboarding-guide.2 → 0.4.49

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 (54) hide show
  1. package/dist/components/ActionList/ActionList.d.ts +4 -3
  2. package/dist/components/ActionList/ActionList.stories.d.ts +377 -6
  3. package/dist/components/ActionList/index.d.ts +1 -1
  4. package/dist/components/Alert/Alert.stories.d.ts +1 -1
  5. package/dist/components/Avatar/Avatar.d.ts +3 -3
  6. package/dist/components/Avatar/Avatar.stories.d.ts +2 -0
  7. package/dist/components/Box/Box.d.ts +9 -2
  8. package/dist/components/Box/Box.stories.d.ts +3 -7
  9. package/dist/components/Button/Button.d.ts +17 -6
  10. package/dist/components/Button/Button.stories.d.ts +8 -9
  11. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +1 -1
  12. package/dist/components/Calendar/Calendar.d.ts +0 -1
  13. package/dist/components/Card/Card.d.ts +5 -4
  14. package/dist/components/Card/Card.stories.d.ts +16 -3
  15. package/dist/components/CircleIcon/CircleIcon.d.ts +9 -0
  16. package/dist/components/CircleIcon/CircleIcon.stories.d.ts +30 -0
  17. package/dist/components/CircleIcon/index.d.ts +1 -0
  18. package/dist/components/ComboBox/ComboBox.d.ts +4 -0
  19. package/dist/components/Dialog/Dialog.d.ts +6 -6
  20. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +1 -0
  21. package/dist/components/ErrorBoundary/index.d.ts +1 -1
  22. package/dist/components/Icon/iconNames.d.ts +1 -1
  23. package/dist/components/Icon/index.d.ts +1 -1
  24. package/dist/components/IconButton/IconButton.d.ts +4 -5
  25. package/dist/components/Image/Image.d.ts +1 -1
  26. package/dist/components/Image/index.d.ts +1 -1
  27. package/dist/components/List/UnorderedList.d.ts +1 -0
  28. package/dist/components/List/UnorderedList.stories.d.ts +1 -0
  29. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -1
  30. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +4 -3
  31. package/dist/components/Separator/Separator.d.ts +1 -0
  32. package/dist/components/Separator/Separator.stories.d.ts +8 -0
  33. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  34. package/dist/components/Slice/SliceCard.d.ts +2 -2
  35. package/dist/components/Tab/Tab.d.ts +6 -3
  36. package/dist/components/Tab/Tab.stories.d.ts +6 -10
  37. package/dist/components/TagField/TagFieldHeader.d.ts +2 -1
  38. package/dist/components/Text/Text.d.ts +3 -1
  39. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
  40. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +2 -2
  41. package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -4
  42. package/dist/index.cjs.js +130 -128
  43. package/dist/index.d.ts +3 -4
  44. package/dist/index.es.js +11153 -11186
  45. package/dist/style.css +1 -1
  46. package/dist/theme/sx.d.ts +13 -1
  47. package/dist/theme/theme.d.ts +4 -0
  48. package/package.json +4 -5
  49. package/dist/components/LinkDescriptionCard/LinkDescriptionCard.d.ts +0 -13
  50. package/dist/components/LinkDescriptionCard/LinkDescriptionCard.stories.d.ts +0 -6
  51. package/dist/components/LinkDescriptionCard/index.d.ts +0 -1
  52. package/dist/components/LinkImageCard/LinkImageCard.d.ts +0 -8
  53. package/dist/components/LinkImageCard/LinkImageCard.stories.d.ts +0 -11
  54. package/dist/components/LinkImageCard/index.d.ts +0 -1
@@ -1,10 +1,10 @@
1
1
  import { type MouseEvent, type PropsWithChildren, type ReactNode } from "react";
2
2
  import { type IconName } from "../Icon";
3
3
  import { textVariantMapping } from "../Text";
4
- export type ActionListVariants = "borderless" | "bordered";
4
+ export type ActionListVariant = "borderless" | "bordered" | "compact";
5
5
  export interface ActionListProps extends PropsWithChildren {
6
- variant?: ActionListVariants;
7
- gap?: 0 | 8;
6
+ variant?: ActionListVariant;
7
+ gap?: 0 | 4 | 8;
8
8
  }
9
9
  export declare function ActionList(props: ActionListProps): JSX.Element;
10
10
  type Color = "grey" | "tomato";
@@ -30,4 +30,5 @@ export interface ActionListItemProps {
30
30
  completed?: boolean;
31
31
  }
32
32
  export declare const ActionListItem: (props: ActionListItemProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
33
+ export declare function ActionListLabel(props: PropsWithChildren): JSX.Element;
33
34
  export {};
@@ -1,19 +1,390 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./ActionList").ActionListProps>;
2
- export default _default;
1
+ import type { Meta } from "@storybook/react";
2
+ import type { PropsWithChildren } from "react";
3
+ import type { SeparatorProps } from "../Separator/Separator";
4
+ import { ActionList, type ActionListItemProps, type ActionListProps } from "./ActionList";
5
+ declare const meta: Meta<typeof ActionList>;
6
+ export default meta;
3
7
  export declare const Default: {
4
8
  args: {
5
- children: JSX.Element;
9
+ variant: "bordered";
10
+ gap: 8;
11
+ items: ({
12
+ startIcon: "add";
13
+ description: string;
14
+ children: string;
15
+ endIcon?: undefined;
16
+ endAdornment?: undefined;
17
+ color?: undefined;
18
+ disabled?: undefined;
19
+ selected?: undefined;
20
+ } | {
21
+ startIcon: "add";
22
+ endIcon: "folder";
23
+ description: string;
24
+ children: string;
25
+ endAdornment?: undefined;
26
+ color?: undefined;
27
+ disabled?: undefined;
28
+ selected?: undefined;
29
+ } | {
30
+ startIcon: "add";
31
+ description: string;
32
+ endAdornment: JSX.Element;
33
+ children: string;
34
+ endIcon?: undefined;
35
+ color?: undefined;
36
+ disabled?: undefined;
37
+ selected?: undefined;
38
+ } | {
39
+ color: "tomato";
40
+ startIcon: "add";
41
+ endIcon: "folder";
42
+ description: string;
43
+ endAdornment: JSX.Element;
44
+ children: string;
45
+ disabled?: undefined;
46
+ selected?: undefined;
47
+ } | {
48
+ disabled: true;
49
+ startIcon: "add";
50
+ description: string;
51
+ children: string;
52
+ endIcon?: undefined;
53
+ endAdornment?: undefined;
54
+ color?: undefined;
55
+ selected?: undefined;
56
+ } | {
57
+ color: "tomato";
58
+ disabled: true;
59
+ startIcon: "add";
60
+ description: string;
61
+ children: string;
62
+ endIcon?: undefined;
63
+ endAdornment?: undefined;
64
+ selected?: undefined;
65
+ } | {
66
+ startIcon: "add";
67
+ description: string;
68
+ children: string;
69
+ selected: true;
70
+ disabled: true;
71
+ endIcon?: undefined;
72
+ endAdornment?: undefined;
73
+ color?: undefined;
74
+ } | {
75
+ startIcon: "add";
76
+ description: string;
77
+ children: string;
78
+ selected: true;
79
+ endIcon?: undefined;
80
+ endAdornment?: undefined;
81
+ color?: undefined;
82
+ disabled?: undefined;
83
+ })[];
6
84
  };
85
+ decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0a347bb9").R, {
86
+ variant?: import("./ActionList").ActionListVariant | undefined;
87
+ gap?: 0 | 4 | 8 | undefined;
88
+ children?: import("react").ReactNode;
89
+ items: ActionListItemProps[];
90
+ }>[] | undefined;
91
+ parameters?: import("@storybook/types").Parameters | undefined;
92
+ argTypes?: Partial<import("@storybook/types").ArgTypes<ActionListProps & {
93
+ items: ActionListItemProps[];
94
+ }>> | undefined;
95
+ loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
96
+ items: ActionListItemProps[];
97
+ }>[] | undefined;
98
+ render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
99
+ items: ActionListItemProps[];
100
+ }> | undefined;
101
+ name?: string | undefined;
102
+ storyName?: string | undefined;
103
+ play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
104
+ items: ActionListItemProps[];
105
+ }> | undefined;
106
+ tags?: string[] | undefined;
107
+ story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
108
+ items: ActionListItemProps[];
109
+ }, Partial<ActionListProps & {
110
+ items: ActionListItemProps[];
111
+ }>>, "story"> | undefined;
7
112
  };
8
113
  export declare const WithProgress: {
114
+ name: string;
9
115
  args: {
10
- children: JSX.Element;
116
+ variant: "bordered";
117
+ gap: 8;
118
+ items: ({
119
+ completed: true;
120
+ description: string;
121
+ endAdornment: JSX.Element;
122
+ children: string;
123
+ } | {
124
+ completed: false;
125
+ description: string;
126
+ endAdornment: JSX.Element;
127
+ children: string;
128
+ })[];
11
129
  };
12
- name: string;
130
+ decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0a347bb9").R, {
131
+ variant?: import("./ActionList").ActionListVariant | undefined;
132
+ gap?: 0 | 4 | 8 | undefined;
133
+ children?: import("react").ReactNode;
134
+ items: ActionListItemProps[];
135
+ }>[] | undefined;
136
+ parameters?: import("@storybook/types").Parameters | undefined;
137
+ argTypes?: Partial<import("@storybook/types").ArgTypes<ActionListProps & {
138
+ items: ActionListItemProps[];
139
+ }>> | undefined;
140
+ loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
141
+ items: ActionListItemProps[];
142
+ }>[] | undefined;
143
+ render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
144
+ items: ActionListItemProps[];
145
+ }> | undefined;
146
+ storyName?: string | undefined;
147
+ play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
148
+ items: ActionListItemProps[];
149
+ }> | undefined;
150
+ tags?: string[] | undefined;
151
+ story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
152
+ items: ActionListItemProps[];
153
+ }, Partial<ActionListProps & {
154
+ items: ActionListItemProps[];
155
+ }>>, "story"> | undefined;
13
156
  };
14
157
  export declare const WithReadonlyProgress: {
15
158
  args: {
16
- children: JSX.Element;
159
+ variant: "bordered";
160
+ gap: 8;
161
+ items: ({
162
+ completed: true;
163
+ description: string;
164
+ readOnly: true;
165
+ children: string;
166
+ } | {
167
+ completed: false;
168
+ description: string;
169
+ readOnly: true;
170
+ children: string;
171
+ })[];
17
172
  };
18
173
  name: string;
174
+ decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0a347bb9").R, {
175
+ variant?: import("./ActionList").ActionListVariant | undefined;
176
+ gap?: 0 | 4 | 8 | undefined;
177
+ children?: import("react").ReactNode;
178
+ items: ActionListItemProps[];
179
+ }>[] | undefined;
180
+ parameters?: import("@storybook/types").Parameters | undefined;
181
+ argTypes?: Partial<import("@storybook/types").ArgTypes<ActionListProps & {
182
+ items: ActionListItemProps[];
183
+ }>> | undefined;
184
+ loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
185
+ items: ActionListItemProps[];
186
+ }>[] | undefined;
187
+ render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
188
+ items: ActionListItemProps[];
189
+ }> | undefined;
190
+ storyName?: string | undefined;
191
+ play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
192
+ items: ActionListItemProps[];
193
+ }> | undefined;
194
+ tags?: string[] | undefined;
195
+ story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
196
+ items: ActionListItemProps[];
197
+ }, Partial<ActionListProps & {
198
+ items: ActionListItemProps[];
199
+ }>>, "story"> | undefined;
200
+ };
201
+ export declare const NavigationMenu: {
202
+ parameters: {
203
+ controls: {
204
+ exclude: string[];
205
+ };
206
+ };
207
+ args: {
208
+ gap: 4;
209
+ variant: "compact";
210
+ items: ({
211
+ component: "ActionListLabel";
212
+ children: string;
213
+ backgroundColor?: undefined;
214
+ startIcon?: undefined;
215
+ style?: undefined;
216
+ sx?: undefined;
217
+ selected?: undefined;
218
+ renderEndIcon?: undefined;
219
+ } | {
220
+ component: "ActionListItem";
221
+ backgroundColor: "transparent";
222
+ startIcon: "prismic";
223
+ children: string;
224
+ style?: undefined;
225
+ sx?: undefined;
226
+ selected?: undefined;
227
+ renderEndIcon?: undefined;
228
+ } | {
229
+ component: "ActionListItem";
230
+ backgroundColor: "transparent";
231
+ startIcon: "checkBox";
232
+ children: string;
233
+ style?: undefined;
234
+ sx?: undefined;
235
+ selected?: undefined;
236
+ renderEndIcon?: undefined;
237
+ } | {
238
+ component: "ActionListItem";
239
+ backgroundColor: "transparent";
240
+ startIcon: "colorLens";
241
+ children: string;
242
+ style?: undefined;
243
+ sx?: undefined;
244
+ selected?: undefined;
245
+ renderEndIcon?: undefined;
246
+ } | {
247
+ component: "ActionListItem";
248
+ backgroundColor: "transparent";
249
+ startIcon: "search";
250
+ children: string;
251
+ style?: undefined;
252
+ sx?: undefined;
253
+ selected?: undefined;
254
+ renderEndIcon?: undefined;
255
+ } | {
256
+ component: "ActionListItem";
257
+ backgroundColor: "transparent";
258
+ startIcon: "language";
259
+ children: string;
260
+ style?: undefined;
261
+ sx?: undefined;
262
+ selected?: undefined;
263
+ renderEndIcon?: undefined;
264
+ } | {
265
+ component: "Separator";
266
+ style: "dashed";
267
+ sx: {
268
+ marginBlock: 20;
269
+ };
270
+ children?: undefined;
271
+ backgroundColor?: undefined;
272
+ startIcon?: undefined;
273
+ selected?: undefined;
274
+ renderEndIcon?: undefined;
275
+ } | {
276
+ component: "ActionListItem";
277
+ backgroundColor: "transparent";
278
+ startIcon: "database";
279
+ children: string;
280
+ style?: undefined;
281
+ sx?: undefined;
282
+ selected?: undefined;
283
+ renderEndIcon?: undefined;
284
+ } | {
285
+ component: "ActionListItem";
286
+ backgroundColor: "transparent";
287
+ startIcon: "folder";
288
+ children: string;
289
+ style?: undefined;
290
+ sx?: undefined;
291
+ selected?: undefined;
292
+ renderEndIcon?: undefined;
293
+ } | {
294
+ component: "ActionListItem";
295
+ backgroundColor: "transparent";
296
+ startIcon: "checkBox";
297
+ children: string;
298
+ selected: true;
299
+ style?: undefined;
300
+ sx?: undefined;
301
+ renderEndIcon?: undefined;
302
+ } | {
303
+ component: "ActionListItem";
304
+ backgroundColor: "transparent";
305
+ startIcon: "multipleStop";
306
+ children: string;
307
+ style?: undefined;
308
+ sx?: undefined;
309
+ selected?: undefined;
310
+ renderEndIcon?: undefined;
311
+ } | {
312
+ component: "ActionListItem";
313
+ backgroundColor: "transparent";
314
+ startIcon: "colorLens";
315
+ children: string;
316
+ renderEndIcon: () => JSX.Element;
317
+ style?: undefined;
318
+ sx?: undefined;
319
+ selected?: undefined;
320
+ })[];
321
+ };
322
+ decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0a347bb9").R, {
323
+ variant?: import("./ActionList").ActionListVariant | undefined;
324
+ gap?: 0 | 4 | 8 | undefined;
325
+ children?: import("react").ReactNode;
326
+ items: ((ActionListItemProps & {
327
+ component: "ActionListItem";
328
+ }) | (PropsWithChildren & {
329
+ component: "ActionListLabel";
330
+ }) | (SeparatorProps & {
331
+ component: "Separator";
332
+ }))[];
333
+ }>[] | undefined;
334
+ argTypes?: Partial<import("@storybook/types").ArgTypes<ActionListProps & {
335
+ items: ((ActionListItemProps & {
336
+ component: "ActionListItem";
337
+ }) | (PropsWithChildren & {
338
+ component: "ActionListLabel";
339
+ }) | (SeparatorProps & {
340
+ component: "Separator";
341
+ }))[];
342
+ }>> | undefined;
343
+ loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
344
+ items: ((ActionListItemProps & {
345
+ component: "ActionListItem";
346
+ }) | (PropsWithChildren & {
347
+ component: "ActionListLabel";
348
+ }) | (SeparatorProps & {
349
+ component: "Separator";
350
+ }))[];
351
+ }>[] | undefined;
352
+ render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
353
+ items: ((ActionListItemProps & {
354
+ component: "ActionListItem";
355
+ }) | (PropsWithChildren & {
356
+ component: "ActionListLabel";
357
+ }) | (SeparatorProps & {
358
+ component: "Separator";
359
+ }))[];
360
+ }> | undefined;
361
+ name?: string | undefined;
362
+ storyName?: string | undefined;
363
+ play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
364
+ items: ((ActionListItemProps & {
365
+ component: "ActionListItem";
366
+ }) | (PropsWithChildren & {
367
+ component: "ActionListLabel";
368
+ }) | (SeparatorProps & {
369
+ component: "Separator";
370
+ }))[];
371
+ }> | undefined;
372
+ tags?: string[] | undefined;
373
+ story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ActionListProps & {
374
+ items: ((ActionListItemProps & {
375
+ component: "ActionListItem";
376
+ }) | (PropsWithChildren & {
377
+ component: "ActionListLabel";
378
+ }) | (SeparatorProps & {
379
+ component: "Separator";
380
+ }))[];
381
+ }, Partial<ActionListProps & {
382
+ items: ((ActionListItemProps & {
383
+ component: "ActionListItem";
384
+ }) | (PropsWithChildren & {
385
+ component: "ActionListLabel";
386
+ }) | (SeparatorProps & {
387
+ component: "Separator";
388
+ }))[];
389
+ }>>, "story"> | undefined;
19
390
  };
@@ -1 +1 @@
1
- export { ActionList, ActionListItem } from "./ActionList";
1
+ export { ActionList, ActionListItem, ActionListLabel } from "./ActionList";
@@ -7,7 +7,7 @@ declare const meta: {
7
7
  argTypes: {
8
8
  icon: {
9
9
  control: string;
10
- options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "attachFile", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "contentPaste", "createNewFolder", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "invite", "javascript", "json", "keyboardArrowDown", "keyboardArrowUp", "label", "language", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notStarted", "notes", "openInFull", "openInNew", "outbound", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "sentimentSatisfied", "settings", "settingsEthernet", "smartDisplay", "svelte", "tabletMac", "tag", "terminal", "textFields", "title", "toggleOff", "translate", "typescript", "unfoldMore", "unsplash", "upload", "videocam", "viewDay", "visibility", "vue", "zoomOutMap"];
10
+ options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "attachFile", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "contentPaste", "createNewFolder", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "invite", "javascript", "json", "keyboardArrowDown", "keyboardArrowUp", "label", "language", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notStarted", "notes", "openInFull", "openInNew", "outbound", "people", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "sentimentSatisfied", "settings", "settingsEthernet", "smartDisplay", "svelte", "tabletMac", "tag", "terminal", "textFields", "title", "toggleOff", "translate", "typescript", "unfoldMore", "unsplash", "upload", "videocam", "viewDay", "visibility", "vue", "zoomOutMap"];
11
11
  };
12
12
  color: {
13
13
  control: string;
@@ -1,8 +1,8 @@
1
1
  export interface AvatarProps {
2
2
  imageUrl?: string;
3
- firstName: string;
4
- lastName: string;
3
+ firstName?: string;
4
+ lastName?: string;
5
5
  hasBorder?: boolean;
6
- size?: 24 | 32;
6
+ size?: 16 | 24 | 32;
7
7
  }
8
8
  export declare function Avatar(props: AvatarProps): JSX.Element;
@@ -5,6 +5,8 @@ export declare const Default: {
5
5
  firstName: string;
6
6
  lastName: string;
7
7
  imageUrl: string;
8
+ hasBorder: boolean;
9
+ size: number;
8
10
  };
9
11
  name: string;
10
12
  };
@@ -20,11 +20,18 @@ export type BoxProps = {
20
20
  animation?: Animation;
21
21
  transition?: Transition;
22
22
  padding?: Padding;
23
+ /**
24
+ * @deprecated Use or add a more specific component
25
+ */
23
26
  border?: Border;
27
+ /**
28
+ * @deprecated Use or add a more specific component
29
+ */
24
30
  borderRadius?: BorderRadius;
31
+ /**
32
+ * @deprecated Use or add a more specific component
33
+ */
25
34
  borderStyle?: ThemeKeys<"borderStyle">;
26
- borderColor?: ThemeKeys<"color">;
27
- boxShadow?: ThemeKeys<"boxShadow">;
28
35
  backgroundColor?: ThemeKeys<"color">;
29
36
  opacity?: ThemeKeys<"opacity">;
30
37
  visibility?: "hidden" | "visible";
@@ -59,9 +59,7 @@ export declare const Default: {
59
59
  bottomRight?: 0 | 2 | 1 | "50%" | "100%" | "inherit" | 4 | 6 | 8 | 10 | 12 | undefined;
60
60
  }) | undefined;
61
61
  borderStyle?: "none" | "dashed" | "solid" | undefined;
62
- borderColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
63
- boxShadow?: "1" | "2" | "4" | "none" | "3" | "-1" | "purpleFocus" | "ghostFocus" | "greenFocus" | "amberFocus" | "tomatoFocus" | "indigoFocus" | "gradient" | "greyFocus" | "cropper" | undefined;
64
- backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
62
+ backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato5" | "tomato6" | "tomato7" | "tomato8" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
65
63
  opacity?: 0 | 1 | 0.1 | 0.3 | 0.4 | 0.5 | 0.6 | 0.8 | 0.9 | undefined;
66
64
  visibility?: "hidden" | "visible" | undefined;
67
65
  overflowY?: "auto" | "hidden" | undefined;
@@ -125,9 +123,7 @@ export declare const Default: {
125
123
  bottomRight?: 0 | 2 | 1 | "50%" | "100%" | "inherit" | 4 | 6 | 8 | 10 | 12 | undefined;
126
124
  }) | undefined;
127
125
  borderStyle?: "none" | "dashed" | "solid" | undefined;
128
- borderColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
129
- boxShadow?: "1" | "2" | "4" | "none" | "3" | "-1" | "purpleFocus" | "ghostFocus" | "greenFocus" | "amberFocus" | "tomatoFocus" | "indigoFocus" | "gradient" | "greyFocus" | "cropper" | undefined;
130
- backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
126
+ backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato5" | "tomato6" | "tomato7" | "tomato8" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
131
127
  opacity?: 0 | 1 | 0.1 | 0.3 | 0.4 | 0.5 | 0.6 | 0.8 | 0.9 | undefined;
132
128
  visibility?: "hidden" | "visible" | undefined;
133
129
  overflowY?: "auto" | "hidden" | undefined;
@@ -139,7 +135,7 @@ export declare const Default: {
139
135
  alignItems?: "center" | "flex-start" | undefined;
140
136
  justifyContent?: "center" | "end" | "space-between" | undefined;
141
137
  display?: "flex" | "inline-flex" | undefined;
142
- flexDirection?: "column" | "row" | undefined;
138
+ flexDirection?: "row" | "column" | undefined;
143
139
  gridTemplateColumns?: undefined;
144
140
  gridTemplateRows?: undefined;
145
141
  ref?: import("react").Ref<HTMLElement> | undefined;
@@ -4,6 +4,12 @@ import type { SX } from "../../theme";
4
4
  import { type IconName } from "../Icon";
5
5
  export interface ButtonProps {
6
6
  children?: ReactNode;
7
+ /**
8
+ * If true, children must be a valid ReactElement and it will be used as the
9
+ * top level component instead of <button>.
10
+ * Note that said component must be implemented with forwardRef() and spread/provide all its props to its first child VNode.
11
+ */
12
+ asChild?: boolean;
7
13
  /** Note that white is only supported for the invisible button */
8
14
  color?: "grey" | "darkGrey" | "purple" | "dark" | "tomato" | "amber" | "green" | "white" | "indigo";
9
15
  size?: "small" | "medium" | "large";
@@ -22,17 +28,13 @@ export interface ButtonProps {
22
28
  * Buttons have a bold text by default. You can override this by passing "normal".
23
29
  */
24
30
  textWeight?: "normal" | "bold";
31
+ radius?: "normal" | "full";
25
32
  sx?: SX;
26
33
  startIcon?: IconName;
27
34
  endIcon?: IconName;
28
35
  renderStartIcon?: (icon: ReactNode) => ReactNode;
29
36
  renderEndIcon?: (icon: ReactNode) => ReactNode;
30
37
  hotkeys?: Keys;
31
- onClick?: (event: MouseEvent | KeyboardEvent) => void;
32
- onMouseEnter?: (event: MouseEvent) => void;
33
- onMouseLeave?: (event: MouseEvent) => void;
34
- onMouseDown?: (event: MouseEvent) => void;
35
- onMouseUp?: (event: MouseEvent) => void;
36
38
  /** Invisible variant in the design system. Used for icon buttons with no background */
37
39
  invisible?: boolean;
38
40
  /** Removes padding around the icon. Will only apply to icon only buttons. */
@@ -40,6 +42,15 @@ export interface ButtonProps {
40
42
  /** Underlines the text content of the button. Only applies to invisible buttons */
41
43
  underline?: boolean;
42
44
  hiddenLabel?: string;
43
- className?: string;
45
+ onClick?: (event: MouseEvent | KeyboardEvent) => void;
46
+ onMouseDown?: (event: MouseEvent) => void;
47
+ onMouseUp?: (event: MouseEvent) => void;
44
48
  }
45
49
  export declare const Button: (props: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
50
+ interface ButtonChildrenProps {
51
+ children: ReactNode;
52
+ buttonChildren?: ReactNode;
53
+ asChild: boolean;
54
+ }
55
+ export declare const ButtonChildren: (props: ButtonChildrenProps & import("react").RefAttributes<Element>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
56
+ export {};