@nimbus-ds/components 5.43.0-rc.1 → 5.44.0-rc.1

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 (90) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +1 -5
  3. package/dist/Accordion/index.d.ts +0 -153
  4. package/dist/Accordion/index.js +0 -2
  5. package/dist/Alert/index.d.ts +0 -60
  6. package/dist/Alert/index.js +0 -2
  7. package/dist/Badge/index.d.ts +0 -55
  8. package/dist/Badge/index.js +0 -2
  9. package/dist/Box/index.d.ts +0 -805
  10. package/dist/Box/index.js +0 -2
  11. package/dist/Button/index.d.ts +0 -88
  12. package/dist/Button/index.js +0 -2
  13. package/dist/CHANGELOG.md +0 -806
  14. package/dist/Card/index.d.ts +0 -153
  15. package/dist/Card/index.js +0 -2
  16. package/dist/Checkbox/index.d.ts +0 -68
  17. package/dist/Checkbox/index.js +0 -2
  18. package/dist/Chip/index.d.ts +0 -59
  19. package/dist/Chip/index.js +0 -2
  20. package/dist/Collapsible/index.d.ts +0 -45
  21. package/dist/Collapsible/index.js +0 -2
  22. package/dist/Divider/index.d.ts +0 -30
  23. package/dist/Divider/index.js +0 -2
  24. package/dist/FileUploader/index.d.ts +0 -209
  25. package/dist/FileUploader/index.js +0 -2
  26. package/dist/Icon/index.d.ts +0 -121
  27. package/dist/Icon/index.js +0 -2
  28. package/dist/IconButton/index.d.ts +0 -172
  29. package/dist/IconButton/index.js +0 -2
  30. package/dist/Input/index.d.ts +0 -76
  31. package/dist/Input/index.js +0 -2
  32. package/dist/Label/index.d.ts +0 -55
  33. package/dist/Label/index.js +0 -2
  34. package/dist/Link/index.d.ts +0 -115
  35. package/dist/Link/index.js +0 -2
  36. package/dist/List/index.d.ts +0 -105
  37. package/dist/List/index.js +0 -2
  38. package/dist/Modal/index.d.ts +0 -233
  39. package/dist/Modal/index.js +0 -2
  40. package/dist/MultiSelect/index.d.ts +0 -107
  41. package/dist/MultiSelect/index.js +0 -2
  42. package/dist/Pagination/index.d.ts +0 -41
  43. package/dist/Pagination/index.js +0 -2
  44. package/dist/Popover/index.d.ts +0 -166
  45. package/dist/Popover/index.js +0 -2
  46. package/dist/ProgressBar/index.d.ts +0 -57
  47. package/dist/ProgressBar/index.js +0 -2
  48. package/dist/README.md +0 -235
  49. package/dist/Radio/index.d.ts +0 -62
  50. package/dist/Radio/index.js +0 -2
  51. package/dist/ScrollPane/index.d.ts +0 -926
  52. package/dist/ScrollPane/index.js +0 -2
  53. package/dist/SegmentedControl/index.d.ts +0 -905
  54. package/dist/SegmentedControl/index.js +0 -2
  55. package/dist/Select/index.d.ts +0 -87
  56. package/dist/Select/index.js +0 -2
  57. package/dist/Sidebar/index.d.ts +0 -390
  58. package/dist/Sidebar/index.js +0 -2
  59. package/dist/Skeleton/index.d.ts +0 -31
  60. package/dist/Skeleton/index.js +0 -2
  61. package/dist/Slider/index.d.ts +0 -155
  62. package/dist/Slider/index.js +0 -2
  63. package/dist/Spinner/index.d.ts +0 -53
  64. package/dist/Spinner/index.js +0 -2
  65. package/dist/SplitButton/index.d.ts +0 -1035
  66. package/dist/SplitButton/index.js +0 -2
  67. package/dist/Stepper/index.d.ts +0 -899
  68. package/dist/Stepper/index.js +0 -2
  69. package/dist/Table/index.d.ts +0 -153
  70. package/dist/Table/index.js +0 -2
  71. package/dist/Tabs/index.d.ts +0 -92
  72. package/dist/Tabs/index.js +0 -2
  73. package/dist/Tag/index.d.ts +0 -51
  74. package/dist/Tag/index.js +0 -2
  75. package/dist/Text/index.d.ts +0 -599
  76. package/dist/Text/index.js +0 -2
  77. package/dist/Textarea/index.d.ts +0 -76
  78. package/dist/Textarea/index.js +0 -2
  79. package/dist/Thumbnail/index.d.ts +0 -73
  80. package/dist/Thumbnail/index.js +0 -2
  81. package/dist/Title/index.d.ts +0 -165
  82. package/dist/Title/index.js +0 -2
  83. package/dist/Toast/index.d.ts +0 -56
  84. package/dist/Toast/index.js +0 -2
  85. package/dist/Toggle/index.d.ts +0 -48
  86. package/dist/Toggle/index.js +0 -2
  87. package/dist/Tooltip/index.d.ts +0 -47
  88. package/dist/Tooltip/index.js +0 -2
  89. package/dist/index.d.ts +0 -4565
  90. package/dist/index.js +0 -2
package/dist/index.d.ts DELETED
@@ -1,4565 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { ButtonHTMLAttributes, ComponentPropsWithRef, DragEvent, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, SVGAttributes } from 'react';
5
-
6
- export interface SkeletonProperties {
7
- /**
8
- * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
9
- */
10
- width: string;
11
- /**
12
- * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
13
- */
14
- height: string;
15
- /**
16
- * The border radius of the skeleton.
17
- */
18
- borderRadius?: string;
19
- /**
20
- * This is an attribute used to identify a DOM node for testing purposes.
21
- */
22
- "data-testid"?: string;
23
- }
24
- export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
25
- export declare const Skeleton: React.FC<SkeletonProps>;
26
- export type BadgeSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
27
- /**
28
- * This is an attribute used to identify a DOM node for testing purposes.
29
- */
30
- "data-testid"?: string;
31
- };
32
- export type BadgeSkeletonProps = BadgeSkeletonProperties;
33
- declare const BadgeSkeleton: React.FC<BadgeSkeletonProps>;
34
- export interface BadgeComponents {
35
- Skeleton: typeof BadgeSkeleton;
36
- }
37
- export interface BadgeProperties {
38
- /**
39
- * Change the visual style of the badge.
40
- * @default neutral
41
- */
42
- appearance?: "primary" | "success" | "warning" | "danger" | "neutral";
43
- /**
44
- * Total items to be displayed without badge
45
- */
46
- count: number | string;
47
- /**
48
- * Change the color scheme of the badge.
49
- * @default surface
50
- */
51
- theme?: "surface" | "light";
52
- }
53
- export type BadgeProps = BadgeProperties & HTMLAttributes<HTMLElement>;
54
- export declare const Badge: React.FC<BadgeProps> & BadgeComponents;
55
- export type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
56
- export type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
57
- as?: E;
58
- }>>;
59
- export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps = {}
60
- /**
61
- * Extends original type to ensure built in React types play nice
62
- * with polymorphic components still e.g. `React.ElementRef` etc.
63
- */
64
- > extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
65
- /**
66
- * When `as` prop is passed, use this overload.
67
- * Merges original own props (without DOM props) and the inferred props
68
- * from `as` element with the own props taking precendence.
69
- *
70
- * We explicitly avoid `React.ElementType` and manually narrow the prop types
71
- * so that events are typed when using JSX.IntrinsicElements.
72
- */
73
- <As = IntrinsicElementString>(props: As extends "" ? {
74
- as: keyof JSX.IntrinsicElements;
75
- } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
76
- as: As;
77
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
78
- as: As;
79
- }> : never): React.ReactElement | null;
80
- }
81
- export interface Conditions<T> {
82
- xs?: T;
83
- md?: T;
84
- lg?: T;
85
- xl?: T;
86
- xxl?: T;
87
- }
88
- export type AspectRatio = "1/1" | "16/9" | "9/16" | "4/3" | "3/4" | "2/1" | "1/2";
89
- export type BorderStyle = "solid" | "none" | "hidden" | "dashed" | "dotted";
90
- export type BoxSizing = "border-box" | "content-box";
91
- export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
92
- export type Display = "block" | "flex" | "inline-flex" | "grid" | "inline-grid" | "none";
93
- export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
94
- export type FlexDirection = "row" | "row-reverse" | "column" | "column-reverse";
95
- export type JustifyContent = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
96
- export type AlignItems = "stretch" | "flex-start" | "flex-end" | "center" | "baseline";
97
- export type AlignSelf = "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
98
- export type TextAlign = "left" | "right" | "center" | "justify";
99
- export type TextDecoration = "none" | "underline" | "line-through";
100
- export type Position = "absolute" | "fixed" | "relative" | "static" | "sticky";
101
- export type Overflow = "visible" | "hidden" | "scroll" | "auto";
102
- export type PointerEvents = "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all" | "inherit";
103
- export type TransitionTiming = "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end";
104
- export type WordBreak = "normal" | "break-all" | "keep-all" | "break-word";
105
- export type TextOverflow = "clip" | "ellipsis";
106
- export type WhiteSpace = "normal" | "nowrap" | "pre" | "pre-wrap" | "pre-line" | "break-spaces";
107
- export type ScrollbarWidth = "auto" | "none" | "thin";
108
- declare const propertiesBox: {
109
- gap: {
110
- none: string;
111
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
112
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
113
- * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
114
- * such as grid or flex.
115
- */
116
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
117
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
118
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
119
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
120
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
121
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
122
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
123
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
124
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
125
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
126
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
127
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
128
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
129
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
130
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
131
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
132
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
133
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
134
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
135
- };
136
- gridGap: {
137
- none: string;
138
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
139
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
140
- * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
141
- * such as grid or flex.
142
- */
143
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
144
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
145
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
146
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
147
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
148
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
149
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
150
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
151
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
152
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
153
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
154
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
155
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
156
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
157
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
158
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
159
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
160
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
161
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
162
- };
163
- display: Display[];
164
- flexDirection: FlexDirection[];
165
- flexWrap: FlexWrap[];
166
- justifyContent: JustifyContent[];
167
- alignItems: AlignItems[];
168
- alignSelf: AlignSelf[];
169
- pointerEvents: PointerEvents[];
170
- backgroundColor: {
171
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
172
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
173
- "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
174
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
175
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
176
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
177
- "success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
178
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
179
- "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
180
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
181
- "warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
182
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
183
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
184
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
185
- "danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
186
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
187
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
188
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
189
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
190
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
191
- "neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
192
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
193
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
194
- "ai-generative-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
195
- "ai-generative-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
196
- transparent: string;
197
- };
198
- background: {
199
- "ai-generative-interactive-border": string;
200
- "ai-generative-interactive": string;
201
- transparent: string;
202
- };
203
- color: {
204
- currentColor: string;
205
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
206
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
207
- "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
208
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
209
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
210
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
211
- "success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
212
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
213
- "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
214
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
215
- "warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
216
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
217
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
218
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
219
- "danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
220
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
221
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
222
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
223
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
224
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
225
- "neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
226
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
227
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
228
- "ai-generative-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
229
- "ai-generative-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
230
- transparent: string;
231
- };
232
- borderColor: {
233
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
234
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
235
- "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
236
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
237
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
238
- "success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
239
- "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
240
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
241
- "warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
242
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
243
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
244
- "danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
245
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
246
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
247
- "neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
248
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
249
- transparent: string;
250
- };
251
- borderRadius: {
252
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
253
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
254
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
255
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
256
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
257
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
258
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
259
- full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
260
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
261
- half: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
262
- none: string;
263
- };
264
- borderWidth: {
265
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
266
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
267
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
268
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
269
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
270
- none: string;
271
- };
272
- borderStyle: BorderStyle[];
273
- boxSizing: BoxSizing[];
274
- cursor: Cursor[];
275
- spacing: {
276
- none: string;
277
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
278
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
279
- * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
280
- * such as grid or flex.
281
- */
282
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
283
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
284
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
285
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
286
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
287
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
288
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
289
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
290
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
291
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
292
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
293
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
294
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
295
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
296
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
297
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
298
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
299
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
300
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
301
- };
302
- margin: {
303
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
304
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
305
- * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
306
- * such as grid or flex.
307
- */
308
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
309
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
310
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
311
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
312
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
313
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
314
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
315
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
316
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
317
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
318
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
319
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
320
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
321
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
322
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
323
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
324
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
325
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
326
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
327
- auto: string;
328
- none: string;
329
- };
330
- position: Position[];
331
- overflow: Overflow[];
332
- overflowX: Overflow[];
333
- overflowY: Overflow[];
334
- boxShadow: {
335
- "0": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
336
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
337
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
338
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
339
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
340
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
341
- focusRing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
342
- aiFocus: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
343
- };
344
- transitionDuration: {
345
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
346
- fast: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
347
- slow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
348
- slower: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
349
- };
350
- transitionTimingFunction: TransitionTiming[];
351
- textDecoration: TextDecoration[];
352
- zIndex: {
353
- "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
354
- "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
355
- "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
356
- "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
357
- "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
358
- "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
359
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
360
- "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
361
- "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
362
- };
363
- textAlign: TextAlign[];
364
- fontWeight: {
365
- regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
366
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
367
- bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
368
- };
369
- fontSize: {
370
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
371
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
372
- * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
373
- * such as grid or flex.
374
- */
375
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
376
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
377
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
378
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
379
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
380
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
381
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
382
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
383
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
384
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
385
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
386
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
387
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
388
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
389
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
390
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
391
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
392
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
393
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
394
- h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
395
- h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
396
- h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
397
- h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
398
- h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
399
- * This defines the ability for a flex item to grow if necessary.
400
- */
401
- h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
402
- };
403
- lineHeight: {
404
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
405
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
406
- * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
407
- * such as grid or flex.
408
- */
409
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
410
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
411
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
412
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
413
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
414
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
415
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
416
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
417
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
418
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
419
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
420
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
421
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
422
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
423
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
424
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
425
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
426
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
427
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
428
- h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
429
- * The flexWrap property sets whether flex items are forced onto one line or can wrap onto multiple lines.
430
- */
431
- h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
432
- h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
433
- h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
434
- h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
435
- h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
436
- };
437
- scrollbarWidth: ScrollbarWidth[];
438
- };
439
- export type BoxBorderColorProperties = keyof typeof propertiesBox.borderColor;
440
- export type BoxBorderRadiusProperties = keyof typeof propertiesBox.borderRadius;
441
- export type BoxBorderWidthProperties = keyof typeof propertiesBox.borderWidth;
442
- export type BoxBackgroundColorProperties = keyof typeof propertiesBox.backgroundColor;
443
- export type BoxColorProperties = keyof typeof propertiesBox.color;
444
- export type BoxShadowProperties = keyof typeof propertiesBox.boxShadow;
445
- export type BoxSpacingProperties = keyof typeof propertiesBox.spacing;
446
- export type BoxMarginProperties = keyof typeof propertiesBox.margin;
447
- export type BoxGapProperties = keyof typeof propertiesBox.gap;
448
- export type BoxGridGapProperties = keyof typeof propertiesBox.gridGap;
449
- export type BoxZIndexProperties = keyof typeof propertiesBox.zIndex;
450
- export type BoxTransitionDurationProperties = keyof typeof propertiesBox.transitionDuration;
451
- export type BoxFontSizeProperties = keyof typeof propertiesBox.fontSize;
452
- export type BoxFontWeightProperties = keyof typeof propertiesBox.fontWeight;
453
- export type BoxLineHeightProperties = keyof typeof propertiesBox.lineHeight;
454
- export type BoxBackgroundProperties = keyof typeof propertiesBox.background;
455
- export interface BoxConditions<T> extends Conditions<T> {
456
- focus?: T;
457
- focusVisible?: T;
458
- focusWithin?: T;
459
- active?: T;
460
- hover?: T;
461
- disabled?: T;
462
- }
463
- export interface BoxSprinkle {
464
- /**
465
- * The width property specifies the width of a box's content area.
466
- */
467
- width?: string | BoxConditions<string>;
468
- /**
469
- * The height property specifies the height of a box's content area.
470
- */
471
- height?: string | BoxConditions<string>;
472
- /**
473
- * The max width property specifies the width of a box's content area.
474
- */
475
- maxWidth?: string | BoxConditions<string>;
476
- /**
477
- * The max height property specifies the height of a box's content area.
478
- */
479
- maxHeight?: string | BoxConditions<string>;
480
- /**
481
- * The min width property specifies the width of a box's content area.
482
- */
483
- minWidth?: string | BoxConditions<string>;
484
- /**
485
- * The min height property specifies the height of a box's content area.
486
- */
487
- minHeight?: string | BoxConditions<string>;
488
- /**
489
- * The bottom property participates in setting the vertical position of a positioned box.
490
- */
491
- bottom?: string | BoxConditions<string>;
492
- /**
493
- * The left property participates in specifying the horizontal position of a positioned box.
494
- */
495
- left?: string | BoxConditions<string>;
496
- /**
497
- * The right property participates in specifying the horizontal position of a positioned box.
498
- */
499
- right?: string | BoxConditions<string>;
500
- /**
501
- * The top property participates in setting the vertical position of a positioned box.
502
- */
503
- top?: string | BoxConditions<string>;
504
- /**
505
- * This is the shorthand for flexGrow, flexShrink and flexBasis combined.
506
- */
507
- flex?: string | BoxConditions<string>;
508
- /**
509
- * This defines the ability for a flex item to shrink if necessary.
510
- */
511
- flexShrink?: string | BoxConditions<string>;
512
- /**
513
- * This defines the ability for a flex item to grow if necessary.
514
- */
515
- flexGrow?: string | BoxConditions<string>;
516
- /**
517
- * The flexWrap property sets whether flex items are forced onto one line or can wrap onto multiple lines.
518
- */
519
- flexWrap?: FlexWrap | BoxConditions<FlexWrap>;
520
- /**
521
- * The order property controls the order in which they appear in a flex container.
522
- */
523
- order?: string | BoxConditions<string>;
524
- /**
525
- * The gridTemplateColumns property defines the line names and track sizing functions of the grid columns.
526
- */
527
- gridTemplateColumns?: string | BoxConditions<string>;
528
- /**
529
- * The gridTemplateAreas property specifies named grid areas, establishing the cells in the grid and assigning them names.
530
- */
531
- gridTemplateAreas?: string | BoxConditions<string>;
532
- /**
533
- * The gridTemplateRows property defines the line names and track sizing functions of the grid rows.
534
- */
535
- gridTemplateRows?: string | BoxConditions<string>;
536
- /**
537
- * The gridArea shorthand property specifies a grid item's size and location within a grid by contributing a line,
538
- * a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.
539
- */
540
- gridArea?: string | BoxConditions<string>;
541
- /**
542
- * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
543
- * such as grid or flex.
544
- */
545
- display?: Display | BoxConditions<Display>;
546
- /**
547
- * The justifyContent property defines how the browser distributes space between and around content items along
548
- * the main-axis of a flex container, and the inline axis of a grid container.
549
- */
550
- justifyContent?: JustifyContent | BoxConditions<JustifyContent>;
551
- /**
552
- * The flexDirection property sets how flex items are placed in the flex container defining the main axis and the direction.
553
- */
554
- flexDirection?: FlexDirection | BoxConditions<FlexDirection>;
555
- /**
556
- * The alignItems property sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis.
557
- * In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
558
- */
559
- alignItems?: AlignItems | BoxConditions<AlignItems>;
560
- /**
561
- * The alignSelf property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area.
562
- * In Flexbox, it aligns the item on the cross axis.
563
- */
564
- alignSelf?: AlignSelf | BoxConditions<AlignSelf>;
565
- /**
566
- * The gap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
567
- */
568
- gap?: BoxGapProperties | BoxConditions<BoxGapProperties>;
569
- /**
570
- * The gridGap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
571
- */
572
- gridGap?: BoxGridGapProperties | BoxConditions<BoxGridGapProperties>;
573
- /**
574
- * The pointerEvents property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.
575
- */
576
- pointerEvents?: PointerEvents | BoxConditions<PointerEvents>;
577
- /**
578
- * The position property sets how an box is positioned in a document.
579
- */
580
- position?: Position | BoxConditions<Position>;
581
- /**
582
- * The overflow shorthand property sets the desired behavior for an box's overflow.
583
- */
584
- overflow?: Overflow | BoxConditions<Overflow>;
585
- /**
586
- * The overflow-x property sets what shows when content overflows a block-level box's left and right edges.
587
- */
588
- overflowX?: Overflow | BoxConditions<Overflow>;
589
- /**
590
- * The overflow-y property sets what shows when content overflows a block-level box's top and bottom edges.
591
- */
592
- overflowY?: Overflow | BoxConditions<Overflow>;
593
- /**
594
- * The cursor property sets the mouse cursor, if any, to show when the mouse pointer is over an box.
595
- */
596
- cursor?: Cursor | BoxConditions<Cursor>;
597
- /**
598
- * The backgroundColor property sets the background color of the box.
599
- * @default neutral-background
600
- * @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
601
- */
602
- backgroundColor?: BoxBackgroundColorProperties | BoxConditions<BoxBackgroundColorProperties>;
603
- /**
604
- * The color property is used to set the color of the box.
605
- */
606
- color?: BoxColorProperties | BoxConditions<BoxColorProperties>;
607
- /**
608
- * The borderRadius property rounds the corners of an box's outer border edge.
609
- */
610
- borderRadius?: BoxBorderRadiusProperties | BoxConditions<BoxBorderRadiusProperties>;
611
- /**
612
- * The borderWidth property sets the width of an box's border.
613
- */
614
- borderWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
615
- /**
616
- * The borderTopWidth property defines the width of the border at the top of a box.
617
- */
618
- borderTopWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
619
- /**
620
- * The borderBottomWidth property defines the width of the border at the bottom of a box.
621
- */
622
- borderBottomWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
623
- /**
624
- * The borderLeftWidth property defines the width of the border at the left of a box.
625
- */
626
- borderLeftWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
627
- /**
628
- * The borderRightWidth property defines the width of the border at the right of a box.
629
- */
630
- borderRightWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
631
- /**
632
- * The borderWidthX shorthand property defines the width of the element's border on the left and right.
633
- */
634
- borderWidthX?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
635
- /**
636
- * The borderWidthY shorthand property defines the width of the element's border on the top and bottom.
637
- */
638
- borderWidthY?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
639
- /**
640
- * The borderColor property sets the color of the box's four borders.
641
- */
642
- borderColor?: BoxBorderColorProperties | BoxConditions<BoxBorderColorProperties>;
643
- /**
644
- * borderStyle property sets the line style for all four sides of an box's border.
645
- */
646
- borderStyle?: BorderStyle | BoxConditions<BorderStyle>;
647
- /**
648
- * The boxSizing property sets how the total width and height of an box is calculated.
649
- * @default border-box
650
- */
651
- boxSizing?: BoxSizing | BoxConditions<BoxSizing>;
652
- /**
653
- * The boxShadow property adds shadow effects around an box's frame.
654
- */
655
- boxShadow?: BoxShadowProperties | BoxConditions<BoxShadowProperties>;
656
- /**
657
- * The padding properties are used to generate space around an box's content area.
658
- */
659
- padding?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
660
- /**
661
- * The paddingTop property sets the height of the padding area on the top of an box.
662
- */
663
- paddingTop?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
664
- /**
665
- * The paddingBottom property sets the height of the padding area on the bottom of an box.
666
- */
667
- paddingBottom?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
668
- /**
669
- * The paddingLeft property sets the width of the padding area to the left of an box.
670
- */
671
- paddingLeft?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
672
- /**
673
- * The paddingLeft property sets the width of the padding area to the right of an box.
674
- */
675
- paddingRight?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
676
- /**
677
- * The margin shorthand property sets the margin area on all four sides of an box.
678
- */
679
- margin?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
680
- /**
681
- * The marginTop property sets the margin area on the top of an box.
682
- */
683
- marginTop?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
684
- /**
685
- * The marginBottom property sets the margin area on the bottom of an box.
686
- */
687
- marginBottom?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
688
- /**
689
- * The marginLeft property sets the margin area on the left side of an box.
690
- */
691
- marginLeft?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
692
- /**
693
- * The marginRight property sets the margin area on the right side of an box.
694
- */
695
- marginRight?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
696
- /**
697
- * The transitionTimingFunction property sets how intermediate values are calculated for CSS properties being affected by a transition effect.
698
- */
699
- transitionTimingFunction?: TransitionTiming | BoxConditions<TransitionTiming>;
700
- /**
701
- * The transitionProperty property sets the CSS properties to which a transition effect should be applied.
702
- */
703
- transitionProperty?: string | BoxConditions<string>;
704
- /**
705
- * The transitionDelay property specifies the duration to wait before starting a property's transition effect when its value changes.
706
- */
707
- transitionDelay?: string | BoxConditions<string>;
708
- /**
709
- * The transitionDuration property sets the length of time a transition animation should take to complete. By default, the value is 0s, meaning that no animation will occur.
710
- */
711
- transitionDuration?: BoxTransitionDurationProperties | BoxConditions<BoxTransitionDurationProperties>;
712
- /**
713
- * The zIndex property specifies the stack order of the box.
714
- */
715
- zIndex?: BoxZIndexProperties | BoxConditions<BoxZIndexProperties>;
716
- /**
717
- * The background property sets the background of the box.
718
- */
719
- background?: BoxBackgroundProperties | BoxConditions<BoxBackgroundProperties>;
720
- /**
721
- * The backgroundImage property sets one or more background images on an element.
722
- */
723
- backgroundImage?: string | BoxConditions<string>;
724
- /**
725
- * The backgroundPosition property sets the initial position for each background image.
726
- * The position is relative to the position layer set by background-origin.
727
- */
728
- backgroundPosition?: string | BoxConditions<string>;
729
- /**
730
- * The backgroundBlendMode property sets how an element's background images should blend with each
731
- * other and with the element's background color.
732
- */
733
- backgroundBlendMode?: string | BoxConditions<string>;
734
- /**
735
- * The backgroundRepeat property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.
736
- */
737
- backgroundRepeat?: string | BoxConditions<string>;
738
- /**
739
- * The textDecoration shorthand property sets the appearance of decorative lines on text.
740
- */
741
- textDecoration?: TextDecoration | BoxConditions<TextDecoration>;
742
- /**
743
- * The backgroundSize property sets the size of the element's background image. The image can be left to its natural size, stretched, or constrained to fit the available space.
744
- */
745
- backgroundSize?: string | BoxConditions<string>;
746
- /**
747
- * The p shorthand property sets the margin area on all four sides of an box.
748
- */
749
- p?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
750
- /**
751
- * The pl shorthand property sets the width of the padding area to the left of an box.
752
- */
753
- pl?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
754
- /**
755
- * The pl shorthand property sets the width of the padding area to the right of an box.
756
- */
757
- pr?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
758
- /**
759
- * The pt shorthand property sets the height of the padding area on the top of an box.
760
- */
761
- pt?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
762
- /**
763
- * The pb shorthand property sets the height of the padding area on the botton of an box.
764
- */
765
- pb?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
766
- /**
767
- * The px shorthand property defines the width of the left and right padding area of a box.
768
- */
769
- px?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
770
- /**
771
- * The py pt shorthand property sets the height of the padding area at the top and bottom of a box.
772
- */
773
- py?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
774
- /**
775
- * The paddingX shorthand property defines the width of the left and right padding area of a box.
776
- */
777
- paddingX?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
778
- /**
779
- * The paddingY pt shorthand property sets the height of the padding area at the top and bottom of a box.
780
- */
781
- paddingY?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
782
- /**
783
- * The m shorthand property sets the margin area on all four sides of an box.
784
- */
785
- m?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
786
- /**
787
- * The mr property sets the margin area on the right side of an box.
788
- */
789
- mr?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
790
- /**
791
- * The ml property sets the margin area on the left side of an box.
792
- */
793
- ml?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
794
- /**
795
- * The mt property sets the margin area on the top of an box.
796
- */
797
- mt?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
798
- /**
799
- * The marginBottom property sets the margin area on the bottom of an box.
800
- */
801
- mb?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
802
- /**
803
- * The mx property defines the margin area on the left and right side of a box.
804
- */
805
- mx?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
806
- /**
807
- * The my property defines the margin area on the top and bottom of a box
808
- */
809
- my?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
810
- /**
811
- * The marginX property defines the margin area on the left and right side of a box.
812
- */
813
- marginX?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
814
- /**
815
- * The marginY property defines the margin area on the top and bottom of a box
816
- */
817
- marginY?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
818
- /**
819
- * The fontSize property sets the size of the box.
820
- * @default base
821
- */
822
- fontSize?: BoxFontSizeProperties | BoxConditions<BoxFontSizeProperties>;
823
- /**
824
- * The fontWeight property sets how thick or thin characters in box should be displayed.
825
- * @default regular
826
- */
827
- fontWeight?: BoxFontWeightProperties | BoxConditions<BoxFontWeightProperties>;
828
- /**
829
- * The lineHeight property specifies the line height of the box.
830
- * @default base
831
- */
832
- lineHeight?: BoxLineHeightProperties | BoxConditions<BoxLineHeightProperties>;
833
- /**
834
- * The textAlign property specifies the horizontal alignment of box.
835
- * @default left
836
- */
837
- textAlign?: TextAlign | BoxConditions<TextAlign>;
838
- /**
839
- * The scrollbarWidth property specifies the width of the scrollbar.
840
- */
841
- scrollbarWidth?: ScrollbarWidth | BoxConditions<ScrollbarWidth>;
842
- }
843
- declare const fileUploader: {
844
- sprinkle: ((props: {
845
- aspectRatio?: "none" | AspectRatio | undefined;
846
- flexDirection?: "row" | "column" | undefined;
847
- cursor?: Cursor | undefined;
848
- backgroundColor?: "transparent" | "primary-surface" | "neutral-background" | undefined;
849
- borderColor?: "transparent" | "primary-interactive" | "ai-generativeInteractiveHover" | undefined;
850
- }) => string) & {
851
- properties: Set<"aspectRatio" | "backgroundColor" | "cursor" | "flexDirection" | "borderColor">;
852
- };
853
- properties: {
854
- aspectRatio: readonly [
855
- "none",
856
- ...AspectRatio[]
857
- ];
858
- flexDirection: readonly [
859
- "row",
860
- "column"
861
- ];
862
- cursor: Cursor[];
863
- backgroundColor: {
864
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
865
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
866
- transparent: string;
867
- };
868
- borderColor: {
869
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
870
- "ai-generativeInteractiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
871
- transparent: string;
872
- };
873
- borderRadius: {
874
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
875
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
876
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
877
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
878
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
879
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
880
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
881
- full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
882
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
883
- half: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
884
- };
885
- };
886
- classnames: {
887
- container: string;
888
- container__input: string;
889
- disabled: string;
890
- dragging: string;
891
- skeleton: string;
892
- asOverlay: string;
893
- overlay: string;
894
- overlay__content: string;
895
- overlay__content__text: string;
896
- overlay__image: string;
897
- };
898
- };
899
- declare const icon: {
900
- sprinkle: ((props: {
901
- color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "neutral-textHigh" | "success-interactive" | "ai-generative" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | "ai-gradientPurpleHigh" | undefined;
902
- cursor?: Cursor | undefined;
903
- }) => string) & {
904
- properties: Set<"color" | "cursor">;
905
- };
906
- properties: {
907
- color: {
908
- currentColor: string;
909
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
910
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
911
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
912
- "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
913
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
914
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
915
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
916
- "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
917
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
918
- "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
919
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
920
- "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
921
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
922
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
923
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
924
- "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
925
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
926
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
927
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
928
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
929
- "neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
930
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
931
- "ai-gradientPurpleHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
932
- "ai-generative": string;
933
- };
934
- cursor: Cursor[];
935
- };
936
- classnames: {
937
- base: string;
938
- };
939
- };
940
- declare const propertiesIconButton: {
941
- backgroundColor: {
942
- transparent: string;
943
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
944
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
945
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
946
- "ai-generativeSurface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
947
- };
948
- borderColor: {
949
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
950
- "neutral-interactiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
951
- "neutral-interactivePressed": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
952
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
953
- transparent: string;
954
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
955
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
956
- "ai-generativeSurface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
957
- };
958
- };
959
- export type IconButtonBackgroundColorProperties = keyof typeof propertiesIconButton.backgroundColor;
960
- export type IconButtonBorderColorProperties = keyof typeof propertiesIconButton.borderColor;
961
- export interface IconButtonConditions<T> extends Conditions<T> {
962
- focus?: T;
963
- active?: T;
964
- hover?: T;
965
- }
966
- export interface IconButtonSprinkle {
967
- /**
968
- * The size of the component.
969
- * @default 2.75rem
970
- */
971
- size?: string | IconButtonConditions<string>;
972
- /**
973
- * The borderColor property sets the color of the icon button's four borders.
974
- * @default { xs: "neutral-interactive", active: "neutral-interactivePressed", hover: "neutral-interactiveHover", focus: "primary-interactive" }
975
- */
976
- borderColor?: IconButtonBorderColorProperties | IconButtonConditions<IconButtonBorderColorProperties>;
977
- /**
978
- * The backgroundColor property sets the background color of the icon button.
979
- * @default { xs: "neutral-surface", active: "neutral-interactive", hover: "neutral-surfaceHighlight" }
980
- */
981
- backgroundColor?: IconButtonBackgroundColorProperties | IconButtonConditions<IconButtonBackgroundColorProperties>;
982
- }
983
- declare const propertiesText: {
984
- color: {
985
- "ai-generative": "transparent";
986
- currentColor: string; /**
987
- * The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
988
- */
989
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
990
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
991
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
992
- "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
993
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
994
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
995
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
996
- "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
997
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
998
- "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
999
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1000
- "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1001
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1002
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1003
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1004
- "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1005
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1006
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1007
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1008
- "neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1009
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1010
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1011
- };
1012
- textAlign: TextAlign[];
1013
- lineHeight: {
1014
- readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1015
- readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1016
- readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1017
- };
1018
- fontWeight: {
1019
- regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1020
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1021
- bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1022
- };
1023
- fontSize: {
1024
- caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1025
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1026
- highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1027
- };
1028
- wordBreak: WordBreak[];
1029
- textDecoration: TextDecoration[];
1030
- textOverflow: TextOverflow[];
1031
- whiteSpace: WhiteSpace[];
1032
- overflow: Overflow[];
1033
- };
1034
- export type TextColorProperties = keyof typeof propertiesText.color;
1035
- export type TextFontSizeProperties = keyof typeof propertiesText.fontSize;
1036
- export type TextFontWeightProperties = keyof typeof propertiesText.fontWeight;
1037
- export type TextLineHeightProperties = keyof typeof propertiesText.lineHeight;
1038
- export type TextConditions<T> = Conditions<T>;
1039
- export interface TextSprinkle {
1040
- /**
1041
- * The fontSize property sets the size of the text.
1042
- * @default base
1043
- */
1044
- fontSize?: TextFontSizeProperties | TextConditions<TextFontSizeProperties>;
1045
- /**
1046
- * The fontWeight property sets how thick or thin characters in text should be displayed.
1047
- * @default regular
1048
- */
1049
- fontWeight?: TextFontWeightProperties | TextConditions<TextFontWeightProperties>;
1050
- /**
1051
- * The lineHeight property specifies the line height of the text.
1052
- * @default base
1053
- */
1054
- lineHeight?: TextLineHeightProperties | TextConditions<TextLineHeightProperties>;
1055
- /**
1056
- * The textAlign property specifies the horizontal alignment of text.
1057
- * @default left
1058
- */
1059
- textAlign?: TextAlign | TextConditions<TextAlign>;
1060
- /**
1061
- * The color property is used to set the color of the text.
1062
- * Note: Gradients like 'ai-generative' changes other properties like 'width' and 'display', which could make the component behave differently. Ensure to visually test the component when dynamically changing the color.
1063
- * @default neutral-textLow
1064
- */
1065
- color?: TextColorProperties | TextConditions<TextColorProperties>;
1066
- /**
1067
- * The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
1068
- */
1069
- lineClamp?: number | TextConditions<number>;
1070
- /**
1071
- * The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
1072
- */
1073
- WebkitLineClamp?: number | TextConditions<number>;
1074
- /**
1075
- * The wordBreak property sets whether line breaks appear wherever the text would otherwise overflow its content box.
1076
- */
1077
- wordBreak?: WordBreak | TextConditions<WordBreak>;
1078
- /**
1079
- * The textDecoration shorthand property sets the appearance of decorative lines on text.
1080
- */
1081
- textDecoration?: TextDecoration | TextConditions<TextDecoration>;
1082
- /**
1083
- * The textOverflow property specifies how overflowed content that is not displayed should be signaled to the user (e.g., 'ellipsis' for '...', 'clip' for hard cutoff).
1084
- * Note: This property only works when overflow is set to 'hidden'.
1085
- */
1086
- textOverflow?: TextOverflow | TextConditions<TextOverflow>;
1087
- /**
1088
- * The whiteSpace property sets how white space inside an element is handled.
1089
- */
1090
- whiteSpace?: WhiteSpace | TextConditions<WhiteSpace>;
1091
- /**
1092
- * The overflow property specifies what happens if content overflows an element's box.
1093
- */
1094
- overflow?: Overflow | TextConditions<Overflow>;
1095
- }
1096
- declare const text: {
1097
- sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
1098
- {
1099
- config: {
1100
- color: {
1101
- values: {
1102
- currentColor: {
1103
- default: string;
1104
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1105
- };
1106
- "primary-interactive": {
1107
- default: string;
1108
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1109
- };
1110
- "primary-surface": {
1111
- default: string;
1112
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1113
- };
1114
- "primary-textLow": {
1115
- default: string;
1116
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1117
- };
1118
- "success-textLow": {
1119
- default: string;
1120
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1121
- };
1122
- "success-surface": {
1123
- default: string;
1124
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1125
- };
1126
- "warning-interactive": {
1127
- default: string;
1128
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1129
- };
1130
- "warning-surface": {
1131
- default: string;
1132
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1133
- };
1134
- "warning-textLow": {
1135
- default: string;
1136
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1137
- };
1138
- "danger-interactive": {
1139
- default: string;
1140
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1141
- };
1142
- "danger-surface": {
1143
- default: string;
1144
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1145
- };
1146
- "danger-textLow": {
1147
- default: string;
1148
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1149
- };
1150
- "neutral-background": {
1151
- default: string;
1152
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1153
- };
1154
- "neutral-interactive": {
1155
- default: string;
1156
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1157
- };
1158
- "neutral-surface": {
1159
- default: string;
1160
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1161
- };
1162
- "neutral-textLow": {
1163
- default: string;
1164
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1165
- };
1166
- "neutral-textHigh": {
1167
- default: string;
1168
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1169
- };
1170
- "success-interactive": {
1171
- default: string;
1172
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1173
- };
1174
- "ai-generative": {
1175
- default: string;
1176
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1177
- };
1178
- "primary-textHigh": {
1179
- default: string;
1180
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1181
- };
1182
- "success-textHigh": {
1183
- default: string;
1184
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1185
- };
1186
- "warning-textHigh": {
1187
- default: string;
1188
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1189
- };
1190
- "danger-textHigh": {
1191
- default: string;
1192
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1193
- };
1194
- "neutral-textDisabled": {
1195
- default: string;
1196
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1197
- };
1198
- };
1199
- staticScale: {
1200
- "ai-generative": "transparent";
1201
- currentColor: string;
1202
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1203
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1204
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1205
- "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1206
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1207
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1208
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1209
- "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1210
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1211
- "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1212
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1213
- "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1214
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1215
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1216
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1217
- "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1218
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1219
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1220
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1221
- "neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1222
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1223
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1224
- };
1225
- name: "color";
1226
- };
1227
- textAlign: {
1228
- values: {
1229
- center: {
1230
- default: string;
1231
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1232
- };
1233
- left: {
1234
- default: string;
1235
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1236
- };
1237
- right: {
1238
- default: string;
1239
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1240
- };
1241
- justify: {
1242
- default: string;
1243
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1244
- };
1245
- };
1246
- staticScale: TextAlign[];
1247
- name: "textAlign";
1248
- };
1249
- lineHeight: {
1250
- values: {
1251
- caption: {
1252
- default: string;
1253
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1254
- };
1255
- base: {
1256
- default: string;
1257
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1258
- };
1259
- highlight: {
1260
- default: string;
1261
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1262
- };
1263
- };
1264
- staticScale: {
1265
- readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1266
- readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1267
- readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1268
- };
1269
- name: "lineHeight";
1270
- };
1271
- fontWeight: {
1272
- values: {
1273
- regular: {
1274
- default: string;
1275
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1276
- };
1277
- medium: {
1278
- default: string;
1279
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1280
- };
1281
- bold: {
1282
- default: string;
1283
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1284
- };
1285
- };
1286
- staticScale: {
1287
- regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1288
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1289
- bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1290
- };
1291
- name: "fontWeight";
1292
- };
1293
- fontSize: {
1294
- values: {
1295
- caption: {
1296
- default: string;
1297
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1298
- };
1299
- base: {
1300
- default: string;
1301
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1302
- };
1303
- highlight: {
1304
- default: string;
1305
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1306
- };
1307
- };
1308
- staticScale: {
1309
- caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1310
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1311
- highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1312
- };
1313
- name: "fontSize";
1314
- };
1315
- wordBreak: {
1316
- values: {
1317
- normal: {
1318
- default: string;
1319
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1320
- };
1321
- "break-word": {
1322
- default: string;
1323
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1324
- };
1325
- "break-all": {
1326
- default: string;
1327
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1328
- };
1329
- "keep-all": {
1330
- default: string;
1331
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1332
- };
1333
- };
1334
- staticScale: WordBreak[];
1335
- name: "wordBreak";
1336
- };
1337
- textDecoration: {
1338
- values: {
1339
- none: {
1340
- default: string;
1341
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1342
- };
1343
- "line-through": {
1344
- default: string;
1345
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1346
- };
1347
- underline: {
1348
- default: string;
1349
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1350
- };
1351
- };
1352
- staticScale: TextDecoration[];
1353
- name: "textDecoration";
1354
- };
1355
- textOverflow: {
1356
- values: {
1357
- clip: {
1358
- default: string;
1359
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1360
- };
1361
- ellipsis: {
1362
- default: string;
1363
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1364
- };
1365
- };
1366
- staticScale: TextOverflow[];
1367
- name: "textOverflow";
1368
- };
1369
- whiteSpace: {
1370
- values: {
1371
- pre: {
1372
- default: string;
1373
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1374
- };
1375
- normal: {
1376
- default: string;
1377
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1378
- };
1379
- nowrap: {
1380
- default: string;
1381
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1382
- };
1383
- "break-spaces": {
1384
- default: string;
1385
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1386
- };
1387
- "pre-line": {
1388
- default: string;
1389
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1390
- };
1391
- "pre-wrap": {
1392
- default: string;
1393
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1394
- };
1395
- };
1396
- staticScale: WhiteSpace[];
1397
- name: "whiteSpace";
1398
- };
1399
- overflow: {
1400
- values: {
1401
- hidden: {
1402
- default: string;
1403
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1404
- };
1405
- auto: {
1406
- default: string;
1407
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1408
- };
1409
- visible: {
1410
- default: string;
1411
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1412
- };
1413
- scroll: {
1414
- default: string;
1415
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1416
- };
1417
- };
1418
- staticScale: Overflow[];
1419
- name: "overflow";
1420
- };
1421
- };
1422
- } & {
1423
- config: {
1424
- lineClamp: {
1425
- dynamic: {
1426
- default: string;
1427
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1428
- };
1429
- dynamicScale: true;
1430
- name: "lineClamp";
1431
- vars: {
1432
- default: string;
1433
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1434
- };
1435
- };
1436
- WebkitLineClamp: {
1437
- dynamic: {
1438
- default: string;
1439
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1440
- };
1441
- dynamicScale: boolean;
1442
- name: "WebkitLineClamp";
1443
- vars: {
1444
- default: string;
1445
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1446
- };
1447
- };
1448
- };
1449
- } & {
1450
- config: {
1451
- [x: string]: {
1452
- mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "textOverflow" | "whiteSpace" | "wordBreak" | "lineClamp" | "overflow" | "textDecoration" | "WebkitLineClamp")[];
1453
- };
1454
- };
1455
- }
1456
- ]>;
1457
- properties: {
1458
- color: {
1459
- "ai-generative": "transparent";
1460
- currentColor: string;
1461
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1462
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1463
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1464
- "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1465
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1466
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1467
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1468
- "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1469
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1470
- "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1471
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1472
- "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1473
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1474
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1475
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1476
- "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1477
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1478
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1479
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1480
- "neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1481
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1482
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1483
- };
1484
- textAlign: TextAlign[];
1485
- lineHeight: {
1486
- readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1487
- readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1488
- readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1489
- };
1490
- fontWeight: {
1491
- regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1492
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1493
- bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1494
- };
1495
- fontSize: {
1496
- caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1497
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1498
- highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1499
- };
1500
- wordBreak: WordBreak[];
1501
- textDecoration: TextDecoration[];
1502
- textOverflow: TextOverflow[];
1503
- whiteSpace: WhiteSpace[];
1504
- overflow: Overflow[];
1505
- };
1506
- aiColors: {
1507
- readonly "ai-generative": "transparent";
1508
- };
1509
- aiStyles: {
1510
- readonly "ai-generative": string;
1511
- };
1512
- classnames: {
1513
- base: string;
1514
- trim: string;
1515
- aiGenerative: string;
1516
- aiStyles: {
1517
- readonly "ai-generative": string;
1518
- };
1519
- };
1520
- };
1521
- declare const propertiesTitle: {
1522
- color: {
1523
- "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1524
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1525
- "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1526
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1527
- "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1528
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1529
- "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1530
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1531
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1532
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1533
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1534
- };
1535
- textAlign: TextAlign[];
1536
- fontSize: {
1537
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1538
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1539
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1540
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1541
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1542
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1543
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1544
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1545
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1546
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1547
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1548
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1549
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1550
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1551
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1552
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1553
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1554
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1555
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1556
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1557
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1558
- h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1559
- h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1560
- h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1561
- h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1562
- h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1563
- h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1564
- };
1565
- fontWeight: {
1566
- regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1567
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1568
- bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1569
- };
1570
- lineHeight: {
1571
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1572
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1573
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1574
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1575
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1576
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1577
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1578
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1579
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1580
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1581
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1582
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1583
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1584
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1585
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1586
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1587
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1588
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1589
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1590
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1591
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1592
- h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1593
- h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1594
- h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1595
- h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1596
- h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1597
- h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1598
- };
1599
- };
1600
- export type TitleColorProperties = keyof typeof propertiesTitle.color;
1601
- export type TitleFontSizeProperties = keyof typeof propertiesTitle.fontSize;
1602
- export type TitleFontWeightProperties = keyof typeof propertiesTitle.fontWeight;
1603
- export type TitleLineHeightProperties = keyof typeof propertiesTitle.lineHeight;
1604
- export type TitleConditions<T> = Conditions<T>;
1605
- export interface TitleSprinkle {
1606
- /**
1607
- * The fontSize property sets the size of the title.
1608
- * @default base
1609
- */
1610
- fontSize?: TitleFontSizeProperties | TitleConditions<TitleFontSizeProperties>;
1611
- /**
1612
- * The fontWeight property sets how thick or thin characters in title should be displayed.
1613
- * @default regular
1614
- */
1615
- fontWeight?: TitleFontWeightProperties | TitleConditions<TitleFontWeightProperties>;
1616
- /**
1617
- * The lineHeight property specifies the line height of the title.
1618
- * @default base
1619
- */
1620
- lineHeight?: TitleLineHeightProperties | TitleConditions<TitleLineHeightProperties>;
1621
- /**
1622
- * The textAlign property specifies the horizontal alignment of title.
1623
- * @default left
1624
- */
1625
- textAlign?: TextAlign | TitleConditions<TextAlign>;
1626
- /**
1627
- * The color property is used to set the color of the title.
1628
- * @default neutral-textLow
1629
- */
1630
- color?: TitleColorProperties | TitleConditions<TitleColorProperties>;
1631
- }
1632
- declare const list: {
1633
- classnames: {
1634
- container: string;
1635
- container__item: string;
1636
- skeleton: string;
1637
- };
1638
- sprinkle: ((props: {
1639
- padding?: "1" | "2" | "3" | "4" | "5" | "0-5" | "6" | "7" | "8" | undefined;
1640
- }) => string) & {
1641
- properties: Set<"padding">;
1642
- };
1643
- properties: {
1644
- padding: {
1645
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1646
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1647
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1648
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1649
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1650
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1651
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1652
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1653
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1654
- };
1655
- };
1656
- };
1657
- declare const multiSelect: {
1658
- sprinkle: ((props: {
1659
- zIndex?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | {
1660
- xs?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
1661
- md?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
1662
- lg?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
1663
- xl?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
1664
- } | undefined;
1665
- }) => string) & {
1666
- properties: Set<"zIndex">;
1667
- };
1668
- properties: {
1669
- zIndex: {
1670
- "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1671
- "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1672
- "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1673
- "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1674
- "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1675
- "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1676
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1677
- "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1678
- "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1679
- };
1680
- };
1681
- classnames: {
1682
- appearance: Record<"success" | "warning" | "danger" | "neutral", string>;
1683
- container: string;
1684
- container__icon: string;
1685
- container__button: string;
1686
- };
1687
- };
1688
- declare const propertiesPopover: {
1689
- backgroundColor: {
1690
- "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1691
- "primary-interactiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1692
- "success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1693
- "danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1694
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1695
- "warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1696
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1697
- };
1698
- color: {
1699
- "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1700
- "primary-interactiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1701
- "success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1702
- "danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1703
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1704
- "warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1705
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1706
- };
1707
- padding: {
1708
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1709
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1710
- none: string;
1711
- };
1712
- zIndex: {
1713
- "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1714
- "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1715
- "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1716
- "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1717
- "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1718
- "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1719
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1720
- "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1721
- "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1722
- };
1723
- overflow: Overflow[];
1724
- };
1725
- export type PopoverColorProperties = keyof typeof propertiesPopover.color;
1726
- export type PopoverBackgroundColorProperties = keyof typeof propertiesPopover.backgroundColor;
1727
- export type PopoverPaddingProperties = keyof typeof propertiesPopover.padding;
1728
- export type PopoverZIndexProperties = keyof typeof propertiesPopover.zIndex;
1729
- export interface PopoverSprinkle {
1730
- /**
1731
- * The width property specifies the width of a popover's content area.
1732
- * @default fit-content
1733
- */
1734
- width?: string | Conditions<string>;
1735
- /**
1736
- * The maxWidth property specifies the maximum width of a popover's content area.
1737
- */
1738
- maxWidth?: string | Conditions<string>;
1739
- /**
1740
- * The height property specifies the height of a popover's content area.
1741
- */
1742
- height?: string | Conditions<string>;
1743
- /**
1744
- * The zIndex property specifies the stack order of the popover.
1745
- */
1746
- zIndex?: PopoverZIndexProperties | Conditions<PopoverZIndexProperties>;
1747
- /**
1748
- * The backgroundColor property sets the background color of the popover.
1749
- * @default neutral-background
1750
- * @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
1751
- */
1752
- backgroundColor?: PopoverBackgroundColorProperties | Conditions<PopoverBackgroundColorProperties>;
1753
- /**
1754
- * The color property is used to set the color of the popover.
1755
- * @default neutral-background
1756
- */
1757
- color?: PopoverColorProperties | Conditions<PopoverColorProperties>;
1758
- /**
1759
- * The padding properties are used to generate space around an popover's content area.
1760
- * @default base
1761
- */
1762
- padding?: PopoverPaddingProperties | Conditions<PopoverPaddingProperties>;
1763
- /**
1764
- * The overflow shorthand property sets the desired behavior for an popover's content overflow.
1765
- */
1766
- overflow?: Overflow | Conditions<Overflow>;
1767
- }
1768
- declare const spinner: {
1769
- sprinkle: ((props: {
1770
- color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | undefined;
1771
- }) => string) & {
1772
- properties: Set<"color">;
1773
- };
1774
- properties: {
1775
- color: {
1776
- currentColor: string;
1777
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1778
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1779
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1780
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1781
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1782
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1783
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1784
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1785
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1786
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1787
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1788
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1789
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1790
- };
1791
- };
1792
- classnames: {
1793
- base: string;
1794
- };
1795
- };
1796
- declare const link: {
1797
- sprinkle: ((props: {
1798
- textDecoration?: TextDecoration | undefined;
1799
- fontSize?: "caption" | "base" | "highlight" | undefined;
1800
- lineHeight?: "caption" | "base" | "highlight" | undefined;
1801
- }) => string) & {
1802
- properties: Set<"fontSize" | "lineHeight" | "textDecoration">;
1803
- };
1804
- properties: {
1805
- textDecoration: TextDecoration[];
1806
- fontSize: {
1807
- caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1808
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1809
- highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1810
- };
1811
- lineHeight: {
1812
- readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1813
- readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1814
- readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1815
- };
1816
- };
1817
- classnames: {
1818
- base: string;
1819
- appearance: Record<"primary" | "danger" | "neutral" | "neutral-background", string>;
1820
- };
1821
- };
1822
- export interface TooltipSprinkle {
1823
- /**
1824
- * The maxWidth property specifies the maximum width of a popover's content area.
1825
- */
1826
- maxWidth?: string | Conditions<string>;
1827
- }
1828
- declare const thumbnail: {
1829
- sprinkle: ((props: {
1830
- aspectRatio?: AspectRatio | undefined;
1831
- }) => string) & {
1832
- properties: Set<"aspectRatio">;
1833
- };
1834
- properties: {
1835
- aspectRatio: AspectRatio[];
1836
- };
1837
- classnames: {
1838
- container: string;
1839
- container__image: string;
1840
- container__placeholder: string;
1841
- skeleton: string;
1842
- width: string;
1843
- };
1844
- };
1845
- declare const accordion: {
1846
- sprinkle: ((props: {
1847
- borderTop?: "base" | "none" | undefined;
1848
- borderBottom?: "base" | "none" | undefined;
1849
- padding?: "base" | "none" | undefined;
1850
- }) => string) & {
1851
- properties: Set<"borderBottom" | "borderTop" | "padding">;
1852
- };
1853
- properties: {
1854
- borderTop: {
1855
- none: string;
1856
- base: string;
1857
- };
1858
- borderBottom: {
1859
- none: string;
1860
- base: string;
1861
- };
1862
- padding: {
1863
- none: string;
1864
- base: string;
1865
- };
1866
- };
1867
- classnames: {
1868
- header: string;
1869
- header__content: string;
1870
- header__description: string;
1871
- header__title: string;
1872
- header_active: string;
1873
- body: string;
1874
- };
1875
- };
1876
- declare const card: {
1877
- classnames: {
1878
- container: string;
1879
- container__footer: string;
1880
- };
1881
- subComponents: {
1882
- header: {
1883
- sprinkle: ((props: {
1884
- padding?: "base" | "small" | "none" | undefined;
1885
- }) => string) & {
1886
- properties: Set<"padding">;
1887
- };
1888
- properties: {
1889
- padding: {
1890
- base: string;
1891
- small: string;
1892
- none: string;
1893
- };
1894
- };
1895
- };
1896
- body: {
1897
- sprinkle: ((props: {
1898
- padding?: "base" | "small" | "none" | undefined;
1899
- }) => string) & {
1900
- properties: Set<"padding">;
1901
- };
1902
- properties: {
1903
- padding: {
1904
- base: string;
1905
- small: string;
1906
- none: string;
1907
- };
1908
- };
1909
- };
1910
- footer: {
1911
- sprinkle: ((props: {
1912
- padding?: "base" | "small" | "none" | undefined;
1913
- }) => string) & {
1914
- properties: Set<"padding">;
1915
- };
1916
- properties: {
1917
- padding: {
1918
- base: string;
1919
- small: string;
1920
- none: string;
1921
- };
1922
- };
1923
- };
1924
- };
1925
- sprinkle: ((props: {
1926
- backgroundColor?: "primary-surface" | "primary-surfaceHighlight" | "success-surface" | "success-surfaceHighlight" | "warning-surface" | "warning-surfaceHighlight" | "danger-surface" | "danger-surfaceHighlight" | "neutral-background" | "neutral-surface" | "neutral-surfaceHighlight" | undefined;
1927
- padding?: "base" | "small" | "none" | undefined;
1928
- }) => string) & {
1929
- properties: Set<"backgroundColor" | "padding">;
1930
- };
1931
- properties: {
1932
- backgroundColor: {
1933
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1934
- "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1935
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1936
- "success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1937
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1938
- "danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1939
- "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1940
- "warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1941
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1942
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1943
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1944
- };
1945
- padding: {
1946
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1947
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1948
- none: string;
1949
- };
1950
- };
1951
- };
1952
- declare const propertiesModal: {
1953
- padding: {
1954
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1955
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1956
- none: string;
1957
- };
1958
- };
1959
- export type PaddingProperties = keyof typeof propertiesModal.padding;
1960
- export interface ModalSprinkle {
1961
- /**
1962
- * The maxWidth property specifies the maxWidth of a modal's content area. The width of the modal will be defined by the width of the content in this prop.
1963
- * @default { xs: "100%", md: "500px" }
1964
- */
1965
- maxWidth?: string | Conditions<string>;
1966
- /**
1967
- * The padding properties are used to generate space around an modal's content area.
1968
- * @default base
1969
- */
1970
- padding?: PaddingProperties | Conditions<PaddingProperties>;
1971
- }
1972
- declare const modal: {
1973
- classnames: {
1974
- overlay: string;
1975
- overlayScoped: string;
1976
- container: string;
1977
- container__close: string;
1978
- container__footer: string;
1979
- };
1980
- subComponents: {
1981
- header: {
1982
- sprinkle: ((props: {
1983
- padding?: "base" | "small" | "none" | undefined;
1984
- }) => string) & {
1985
- properties: Set<"padding">;
1986
- };
1987
- properties: {
1988
- padding: {
1989
- base: string;
1990
- small: string;
1991
- none: string;
1992
- };
1993
- };
1994
- };
1995
- body: {
1996
- sprinkle: ((props: {
1997
- padding?: "base" | "small" | "none" | undefined;
1998
- }) => string) & {
1999
- properties: Set<"padding">;
2000
- };
2001
- properties: {
2002
- padding: {
2003
- base: string;
2004
- small: string;
2005
- none: string;
2006
- };
2007
- };
2008
- };
2009
- footer: {
2010
- sprinkle: ((props: {
2011
- padding?: "base" | "small" | "none" | undefined;
2012
- }) => string) & {
2013
- properties: Set<"padding">;
2014
- };
2015
- properties: {
2016
- padding: {
2017
- base: string;
2018
- small: string;
2019
- none: string;
2020
- };
2021
- };
2022
- };
2023
- };
2024
- sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
2025
- {
2026
- config: {
2027
- maxWidth: {
2028
- dynamic: {
2029
- default: string;
2030
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2031
- };
2032
- dynamicScale: true;
2033
- name: "maxWidth";
2034
- vars: {
2035
- default: string;
2036
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2037
- };
2038
- };
2039
- padding: {
2040
- dynamic: {
2041
- default: string;
2042
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2043
- };
2044
- dynamicScale: {
2045
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2046
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2047
- none: string;
2048
- };
2049
- name: "padding";
2050
- vars: {
2051
- default: string;
2052
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2053
- };
2054
- };
2055
- };
2056
- } & {
2057
- config: {
2058
- [x: string]: {
2059
- mappings: ("maxWidth" | "padding")[];
2060
- };
2061
- };
2062
- }
2063
- ]>;
2064
- properties: {
2065
- padding: {
2066
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2067
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2068
- none: string;
2069
- };
2070
- };
2071
- };
2072
- declare const sidebarSprinkle: {
2073
- sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
2074
- {
2075
- config: {
2076
- zIndex: {
2077
- values: {
2078
- 100: {
2079
- default: string;
2080
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2081
- };
2082
- 200: {
2083
- default: string;
2084
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2085
- };
2086
- 300: {
2087
- default: string;
2088
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2089
- };
2090
- 400: {
2091
- default: string;
2092
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2093
- };
2094
- 500: {
2095
- default: string;
2096
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2097
- };
2098
- 600: {
2099
- default: string;
2100
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2101
- };
2102
- 700: {
2103
- default: string;
2104
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2105
- };
2106
- 800: {
2107
- default: string;
2108
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2109
- };
2110
- 900: {
2111
- default: string;
2112
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2113
- };
2114
- };
2115
- staticScale: {
2116
- "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2117
- "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2118
- "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2119
- "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2120
- "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2121
- "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2122
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2123
- "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2124
- "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2125
- };
2126
- name: "zIndex";
2127
- };
2128
- padding: {
2129
- values: {
2130
- base: {
2131
- default: string;
2132
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2133
- };
2134
- small: {
2135
- default: string;
2136
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2137
- };
2138
- none: {
2139
- default: string;
2140
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2141
- };
2142
- };
2143
- staticScale: {
2144
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2145
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2146
- none: string;
2147
- };
2148
- name: "padding";
2149
- };
2150
- };
2151
- } & {
2152
- config: {
2153
- maxWidth: {
2154
- dynamic: {
2155
- default: string;
2156
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2157
- };
2158
- dynamicScale: true;
2159
- name: "maxWidth";
2160
- vars: {
2161
- default: string;
2162
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2163
- };
2164
- };
2165
- };
2166
- } & {
2167
- config: {
2168
- [x: string]: {
2169
- mappings: ("zIndex" | "maxWidth" | "padding")[];
2170
- };
2171
- };
2172
- }
2173
- ]>;
2174
- properties: {
2175
- zIndex: {
2176
- "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2177
- "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2178
- "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2179
- "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2180
- "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2181
- "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2182
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2183
- "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2184
- "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2185
- };
2186
- padding: {
2187
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2188
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2189
- none: string;
2190
- };
2191
- };
2192
- };
2193
- export type SidebarPaddingProperties = keyof typeof sidebarSprinkle.properties.padding;
2194
- export type SidebarZIndexProperties = keyof typeof sidebarSprinkle.properties.zIndex;
2195
- export interface SidebarSprinkle {
2196
- /**
2197
- * The maxWidth property specifies the maxWidth of a sidebar's content area.
2198
- * @default 375px
2199
- */
2200
- maxWidth?: string | Conditions<string>;
2201
- /**
2202
- * The zIndex property specifies the stack order of the sidebar.
2203
- */
2204
- zIndex?: SidebarZIndexProperties | Conditions<SidebarZIndexProperties>;
2205
- /**
2206
- * The padding properties are used to generate space around an sidebar's content area.
2207
- * @default base
2208
- */
2209
- padding?: SidebarPaddingProperties | Conditions<SidebarPaddingProperties>;
2210
- }
2211
- declare const sidebar: {
2212
- sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
2213
- {
2214
- config: {
2215
- zIndex: {
2216
- values: {
2217
- 100: {
2218
- default: string;
2219
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2220
- };
2221
- 200: {
2222
- default: string;
2223
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2224
- };
2225
- 300: {
2226
- default: string;
2227
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2228
- };
2229
- 400: {
2230
- default: string;
2231
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2232
- };
2233
- 500: {
2234
- default: string;
2235
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2236
- };
2237
- 600: {
2238
- default: string;
2239
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2240
- };
2241
- 700: {
2242
- default: string;
2243
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2244
- };
2245
- 800: {
2246
- default: string;
2247
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2248
- };
2249
- 900: {
2250
- default: string;
2251
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2252
- };
2253
- };
2254
- staticScale: {
2255
- "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2256
- "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2257
- "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2258
- "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2259
- "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2260
- "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2261
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2262
- "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2263
- "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2264
- };
2265
- name: "zIndex";
2266
- };
2267
- padding: {
2268
- values: {
2269
- base: {
2270
- default: string;
2271
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2272
- };
2273
- small: {
2274
- default: string;
2275
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2276
- };
2277
- none: {
2278
- default: string;
2279
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2280
- };
2281
- };
2282
- staticScale: {
2283
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2284
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2285
- none: string;
2286
- };
2287
- name: "padding";
2288
- };
2289
- };
2290
- } & {
2291
- config: {
2292
- maxWidth: {
2293
- dynamic: {
2294
- default: string;
2295
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2296
- };
2297
- dynamicScale: true;
2298
- name: "maxWidth";
2299
- vars: {
2300
- default: string;
2301
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
2302
- };
2303
- };
2304
- };
2305
- } & {
2306
- config: {
2307
- [x: string]: {
2308
- mappings: ("zIndex" | "maxWidth" | "padding")[];
2309
- };
2310
- };
2311
- }
2312
- ]>;
2313
- properties: {
2314
- zIndex: {
2315
- "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2316
- "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2317
- "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2318
- "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2319
- "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2320
- "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2321
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2322
- "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2323
- "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2324
- };
2325
- padding: {
2326
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2327
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2328
- none: string;
2329
- };
2330
- };
2331
- classnames: {
2332
- overlay: string;
2333
- overlayScoped: string;
2334
- container: string;
2335
- containerScoped: string;
2336
- container__header: string;
2337
- container__body: string;
2338
- container__footer: string;
2339
- position: Record<"left" | "right", string>;
2340
- isVisible: string;
2341
- };
2342
- };
2343
- declare const propertiesTable: {
2344
- backgroundColor: {
2345
- transparent: string;
2346
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2347
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2348
- "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2349
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2350
- "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2351
- };
2352
- padding: {
2353
- base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2354
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2355
- none: string;
2356
- };
2357
- };
2358
- export type TablePaddingProperties = keyof typeof propertiesTable.padding;
2359
- export type TableRowBackgroundColorProperties = keyof typeof propertiesTable.backgroundColor;
2360
- export interface TableConditions<T> extends Conditions<T> {
2361
- rest?: T;
2362
- focus?: T;
2363
- active?: T;
2364
- hover?: T;
2365
- }
2366
- export interface TableSprinkle {
2367
- /**
2368
- * The width property specifies the width of a table's content area.
2369
- */
2370
- width?: string | TableConditions<string>;
2371
- /**
2372
- * The maxWidth property specifies the maxWidth of a table's content area.
2373
- */
2374
- maxWidth?: string | TableConditions<string>;
2375
- /**
2376
- * The minWidth property specifies the minWidth of a table's content area.
2377
- */
2378
- minWidth?: string | TableConditions<string>;
2379
- /**
2380
- * The backgroundColor property sets the background color of the table.
2381
- */
2382
- backgroundColor?: TableRowBackgroundColorProperties | TableConditions<TableRowBackgroundColorProperties>;
2383
- /**
2384
- * The padding properties are used to generate space around an table's content area.
2385
- */
2386
- padding?: TablePaddingProperties | TableConditions<TablePaddingProperties>;
2387
- }
2388
- export interface BoxProperties extends BoxSprinkle {
2389
- /**
2390
- * Element to be rendered inside the Box component.
2391
- * @TJS-type React.ReactNode
2392
- */
2393
- children?: ReactNode;
2394
- }
2395
- export type BoxBaseProps = BoxProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
2396
- export declare const Box: PolymorphicForwardRefComponent<"div", BoxBaseProps>;
2397
- export type BoxProps = ComponentPropsWithRef<typeof Box>;
2398
- export type ButtonSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2399
- export type ButtonSkeletonProps = ButtonSkeletonProperties;
2400
- declare const ButtonSkeleton: React.FC<ButtonSkeletonProps>;
2401
- export interface ButtonComponents {
2402
- Skeleton: typeof ButtonSkeleton;
2403
- }
2404
- export interface ButtonProperties {
2405
- /**
2406
- * The content of the button.
2407
- * @TJS-type React.ReactNode
2408
- */
2409
- children: ReactNode;
2410
- /**
2411
- * Change the visual style of the button.
2412
- * @default neutral
2413
- */
2414
- appearance?: "primary" | "danger" | "neutral" | "transparent" | "ai-primary" | "ai-secondary";
2415
- /**
2416
- * Disables the button, disallowing user interaction.
2417
- * @default false
2418
- */
2419
- disabled?: boolean;
2420
- /**
2421
- * Determines if the button should grow to fill the full width of its container.
2422
- * @default false
2423
- */
2424
- fullWidth?: boolean;
2425
- /**
2426
- * Change the size of the button.
2427
- * @default medium
2428
- */
2429
- size?: "large" | "medium" | "small";
2430
- }
2431
- export type ButtonBaseProps = ButtonProperties & ButtonHTMLAttributes<HTMLButtonElement>;
2432
- export declare const Button: PolymorphicForwardRefComponent<"button" | "a", ButtonBaseProps> & ButtonComponents;
2433
- export type ButtonProps = ComponentPropsWithRef<typeof Button>;
2434
- export type CheckboxSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2435
- export type CheckboxSkeletonProps = CheckboxSkeletonProperties;
2436
- declare const CheckboxSkeleton: React.FC<CheckboxSkeletonProps>;
2437
- export interface CheckboxComponents {
2438
- Skeleton: typeof CheckboxSkeleton;
2439
- }
2440
- export interface CheckboxProperties {
2441
- /**
2442
- * The name of the input element.
2443
- */
2444
- name: string;
2445
- /**
2446
- * Change the visual style of the checkbox.
2447
- * @default neutral
2448
- */
2449
- appearance?: "primary" | "danger";
2450
- /**
2451
- * Modifies true/false value of the native checkbox.
2452
- */
2453
- checked?: boolean;
2454
- /**
2455
- * Modifies the native disabled state of the native checkbox.
2456
- */
2457
- disabled?: boolean;
2458
- /**
2459
- * If true, the component appears indeterminate. This does not set the native input element to indeterminate due to inconsistent behavior across browsers. However, we set a data-indeterminate attribute on the input.
2460
- * @default false
2461
- */
2462
- indeterminate?: boolean;
2463
- /**
2464
- * Text to be rendered inside the component.
2465
- */
2466
- label?: string;
2467
- /**
2468
- * Highlights the checkbox to indicate its value was generated by AI.
2469
- * Applies AI gradient border that persists regardless of checked state.
2470
- * @default false
2471
- */
2472
- aiGenerated?: boolean;
2473
- }
2474
- export type CheckboxProps = CheckboxProperties & InputHTMLAttributes<HTMLInputElement>;
2475
- export declare const Checkbox: React.FC<CheckboxProps> & CheckboxComponents;
2476
- export type ChipSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
2477
- /**
2478
- * This is an attribute used to identify a DOM node for testing purposes.
2479
- */
2480
- "data-testid"?: string;
2481
- };
2482
- export type ChipSkeletonProps = ChipSkeletonProperties;
2483
- declare const ChipSkeleton: React.FC<ChipSkeletonProps>;
2484
- export interface ChipComponents {
2485
- Skeleton: typeof ChipSkeleton;
2486
- }
2487
- export interface ChipProperties {
2488
- /**
2489
- Text to be displayed on chip.
2490
- */
2491
- text: string;
2492
- /**
2493
- * SVG icon to be displayed on chip.
2494
- * @TJS-type React.ReactNode
2495
- */
2496
- icon?: ReactNode;
2497
- /**
2498
- * Informs whether the close icon should be displayed.
2499
- */
2500
- removable?: boolean;
2501
- /**
2502
- * Highlights the chip to indicate its value was generated by AI.
2503
- * Applies AI gradient border and an AI outline.
2504
- */
2505
- aiGenerated?: boolean;
2506
- }
2507
- export type ChipProps = ChipProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
2508
- export declare const Chip: React.FC<ChipProps> & ChipComponents;
2509
- export type FileUploaderSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & Partial<Pick<FileUploaderProps, "aspectRatio">> & {
2510
- /**
2511
- * This is an attribute used to identify a DOM node for testing purposes.
2512
- */
2513
- "data-testid"?: string;
2514
- };
2515
- export type FileUploaderSkeletonProps = FileUploaderSkeletonProperties;
2516
- declare const FileUploaderSkeleton: React.FC<FileUploaderSkeletonProps>;
2517
- export interface FileUploaderOverlayProperties {
2518
- /**
2519
- * Title text displayed in the overlay
2520
- */
2521
- title?: string;
2522
- /**
2523
- * Subtitle text displayed below the title
2524
- */
2525
- subtitle?: string;
2526
- /**
2527
- * Source URL for the image displayed in the overlay
2528
- */
2529
- imageSrc?: string;
2530
- /**
2531
- * Alt text for the image
2532
- */
2533
- imageAlt?: string;
2534
- /**
2535
- * Border color of the overlay
2536
- * @default primary-interactive
2537
- */
2538
- borderColor?: keyof typeof fileUploader.properties.borderColor;
2539
- /**
2540
- * Background color of the overlay
2541
- * @default primary-surface
2542
- */
2543
- backgroundColor?: keyof typeof fileUploader.properties.backgroundColor;
2544
- /**
2545
- * Border radius of the overlay
2546
- * @default 2
2547
- */
2548
- borderRadius?: keyof typeof fileUploader.properties.borderRadius;
2549
- /**
2550
- * Content to render inside the overlay
2551
- */
2552
- children?: ReactNode;
2553
- }
2554
- export type FileUploaderOverlayProps = FileUploaderOverlayProperties & Omit<HTMLAttributes<HTMLDivElement>, "title">;
2555
- declare const FileUploaderOverlay: React.FC<FileUploaderOverlayProps>;
2556
- export interface FileUploaderComponents {
2557
- Skeleton: typeof FileUploaderSkeleton;
2558
- Overlay: typeof FileUploaderOverlay;
2559
- }
2560
- export interface FileUploaderProperties {
2561
- /**
2562
- * Provide additional context to the action.
2563
- */
2564
- placeholder?: string;
2565
- /**
2566
- * Accept file types
2567
- * @default image/jpeg,image/gif,image/png
2568
- */
2569
- accept?: string;
2570
- /**
2571
- * Height value of the file uploader. Defaults to 100%.
2572
- * @default 100%
2573
- */
2574
- height?: string;
2575
- /**
2576
- * Width value of the file uploader. Defaults to 100%.
2577
- * @default 100%
2578
- */
2579
- width?: string;
2580
- /**
2581
- * Permitted aspect ratios for the size of the file uploader.
2582
- * @default 1/1
2583
- */
2584
- aspectRatio?: (typeof fileUploader.properties.aspectRatio)[number];
2585
- /**
2586
- * Defines the position of the placeholder in relation to the icon.
2587
- * @default column
2588
- */
2589
- flexDirection?: (typeof fileUploader.properties.flexDirection)[number];
2590
- /**
2591
- * Callback fired when files are dropped (before validation)
2592
- */
2593
- onDrop?: (event: DragEvent<HTMLLabelElement | HTMLDivElement>) => void;
2594
- /**
2595
- * Callback fired when all dropped files are rejected due to file type validation
2596
- */
2597
- onDropReject?: (event: DragEvent<HTMLLabelElement | HTMLDivElement>) => void;
2598
- /**
2599
- * Callback fired when files are successfully accepted and processed
2600
- */
2601
- onDropSuccess?: (event: DragEvent<HTMLLabelElement | HTMLDivElement>) => void;
2602
- /**
2603
- * Callback fired when an error occurs during file drop processing
2604
- */
2605
- onError?: (error: Error) => void;
2606
- /**
2607
- * Content to render inside the file uploader container
2608
- */
2609
- children?: ReactNode;
2610
- /**
2611
- * Custom overlay element to render when dragging files over the uploader.
2612
- * When defined, this overlay will be displayed instead of children during drag operations.
2613
- */
2614
- dragOverlay?: ReactNode;
2615
- /**
2616
- * When true, the file uploader will not be clickable and files can only be uploaded by dragging and dropping. Useful for invisible upload areas used along FileUploader.Overlay.
2617
- * @default false
2618
- */
2619
- disableClickUpload?: boolean;
2620
- /**
2621
- * When true, the file uploader will be rendered as an overlay. Useful for invisible upload areas used along FileUploader.Overlay.
2622
- * @default false
2623
- */
2624
- asOverlay?: boolean;
2625
- }
2626
- export type FileUploaderProps = FileUploaderProperties & {
2627
- dragOverlay?: ReactElement<FileUploaderOverlayProps>;
2628
- } & InputHTMLAttributes<HTMLInputElement>;
2629
- export declare const FileUploader: React.FC<FileUploaderProps> & FileUploaderComponents;
2630
- export type IconSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
2631
- /**
2632
- * This is an attribute used to identify a DOM node for testing purposes.
2633
- */
2634
- "data-testid"?: string;
2635
- };
2636
- export type IconSkeletonProps = IconSkeletonProperties;
2637
- declare const IconSkeleton: React.FC<IconSkeletonProps>;
2638
- export interface IconComponents {
2639
- Skeleton: typeof IconSkeleton;
2640
- }
2641
- export interface IconProperties {
2642
- /**
2643
- * The SVG contents to display in the Icon.
2644
- * @TJS-type React.ReactNode
2645
- */
2646
- source: ReactNode;
2647
- /**
2648
- * Set the color for the SVG fill.
2649
- * Use "ai-generative" to apply the Nimbus AI generative gradient.
2650
- * @default neutral-textLow
2651
- */
2652
- color?: keyof typeof icon.properties.color | "ai-generative";
2653
- /**
2654
- * The cursor property specifies the mouse cursor to be displayed when pointing over an element.
2655
- * @default inherit
2656
- */
2657
- cursor?: (typeof icon.properties.cursor)[number];
2658
- }
2659
- export type IconProps = IconProperties & HTMLAttributes<HTMLDivElement>;
2660
- export declare const Icon: React.FC<IconProps> & IconComponents;
2661
- /**
2662
- * Checks if a color value is valid (exists and is not "none" or "transparent")
2663
- * @param color - The color value to check
2664
- * @returns True if color is valid, false otherwise
2665
- */
2666
- export declare const isValidColorValue: (color: string | undefined) => boolean;
2667
- /**
2668
- * Checks if a color value can use gradient (valid and not already a URL reference)
2669
- * @param color - The color value to check
2670
- * @returns True if color can use gradient, false otherwise
2671
- */
2672
- export declare const canUseGradient: (color: string) => boolean;
2673
- /**
2674
- * Checks if a color value is a gradient
2675
- * @param color - The color value to check
2676
- * @returns True if color is a known gradient value, false otherwise
2677
- */
2678
- export declare const isGradient: (color: string) => boolean;
2679
- /**
2680
- * Collection of known gradient color values
2681
- */
2682
- export declare const GRADIENT_COLORS: Set<string>;
2683
- export type IconButtonSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height">> & {
2684
- /**
2685
- * This is an attribute used to identify a DOM node for testing purposes.
2686
- */
2687
- "data-testid"?: string;
2688
- };
2689
- export type IconButtonSkeletonProps = IconButtonSkeletonProperties;
2690
- declare const IconButtonSkeleton: React.FC<IconButtonSkeletonProps>;
2691
- export interface IconButtonComponents {
2692
- Skeleton: typeof IconButtonSkeleton;
2693
- }
2694
- export interface IconButtonProperties extends IconButtonSprinkle {
2695
- /**
2696
- * Type of html tag to create for the Icon Button component.
2697
- * @default button
2698
- */
2699
- as?: "button" | "div";
2700
- /**
2701
- * The SVG contents to display in the Icon button.
2702
- * @TJS-type React.ReactNode
2703
- */
2704
- source: ReactNode;
2705
- /**
2706
- * Set the color for the inner Icon fill.
2707
- * @default neutral-textHigh
2708
- */
2709
- color?: IconProps["color"];
2710
- /**
2711
- * AI gradient background appearance for the button container.
2712
- * When provided, container color/border sprinkles are ignored in favor of gradient styles.
2713
- */
2714
- appearance?: "ai-generative";
2715
- }
2716
- export type IconButtonProps = IconButtonProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
2717
- export declare const IconButton: React.FC<IconButtonProps> & IconButtonComponents;
2718
- export type InputPasswordProperties = Pick<InputBaseProps, "appearance" | "disabled" | "aiGenerated">;
2719
- declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
2720
- export type InputSearchProperties = Pick<InputBaseProps, "appearance" | "disabled" | "aiGenerated">;
2721
- declare const InputSearch: React.ForwardRefExoticComponent<InputSearchProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
2722
- export type InputSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2723
- export type InputSkeletonProps = InputSkeletonProperties;
2724
- declare const InputSkeleton: React.FC<InputSkeletonProps>;
2725
- export interface InputComponents {
2726
- Password: typeof InputPassword;
2727
- Search: typeof InputSearch;
2728
- Skeleton: typeof InputSkeleton;
2729
- }
2730
- export interface InputProperties {
2731
- /**
2732
- * Change the visual style of the input.
2733
- * @default neutral
2734
- */
2735
- appearance?: "neutral" | "success" | "warning" | "danger" | "ai-generative";
2736
- /**
2737
- * Highlights the field to indicate its value was generated by AI.
2738
- * Applies AI gradient border, white background and an AI focus ring.
2739
- */
2740
- aiGenerated?: boolean;
2741
- /**
2742
- * Disables the input, disallowing user interaction.
2743
- */
2744
- disabled?: boolean;
2745
- /**
2746
- * Sent icon display position
2747
- * @default start
2748
- */
2749
- appendPosition?: "end" | "start";
2750
- /**
2751
- * SVG icon to be displayed on input.
2752
- * @TJS-type React.ReactNode
2753
- */
2754
- append?: ReactNode;
2755
- /**
2756
- * This is an attribute used to identify a DOM node for testing purposes.
2757
- */
2758
- "data-testid"?: string;
2759
- }
2760
- export type InputBaseProps = InputProperties & InputHTMLAttributes<HTMLInputElement>;
2761
- export declare const Input: React.ForwardRefExoticComponent<InputProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>> & InputComponents;
2762
- export type InputProps = ComponentPropsWithRef<typeof Input>;
2763
- export type LabelSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
2764
- /**
2765
- * This is an attribute used to identify a DOM node for testing purposes.
2766
- */
2767
- "data-testid"?: string;
2768
- };
2769
- export type LabelSkeletonProps = LabelSkeletonProperties;
2770
- declare const LabelSkeleton: React.FC<LabelSkeletonProps>;
2771
- export interface LabelComponents {
2772
- Skeleton: typeof LabelSkeleton;
2773
- }
2774
- export interface LabelProperties {
2775
- /**
2776
- * The content of the label.
2777
- * @TJS-type React.ReactNode
2778
- */
2779
- children: ReactNode;
2780
- /**
2781
- * The for attribute specifies which form element a label is bound to.
2782
- */
2783
- htmlFor?: string;
2784
- /**
2785
- * If true the label will be visually hidden but maintain accessibility purpose
2786
- * @default false
2787
- */
2788
- hidden?: boolean;
2789
- }
2790
- export type LabelProps = LabelProperties & HTMLAttributes<HTMLElement>;
2791
- export declare const Label: React.FC<LabelProps> & LabelComponents;
2792
- export type LinkSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2793
- export type LinkSkeletonProps = LinkSkeletonProperties;
2794
- declare const LinkSkeleton: React.FC<LinkSkeletonProps>;
2795
- export interface LinkComponents {
2796
- Skeleton: typeof LinkSkeleton;
2797
- }
2798
- export interface LinkProperties {
2799
- /**
2800
- * The content of the link.
2801
- * @TJS-type React.ReactNode
2802
- */
2803
- children: ReactNode;
2804
- /**
2805
- * Change the visual style of the link.
2806
- * @default neutral
2807
- */
2808
- appearance?: "primary" | "danger" | "neutral" | "neutral-background";
2809
- /**
2810
- * The textDecoration property specifies the decoration added to link.
2811
- * @default neutral
2812
- */
2813
- textDecoration?: typeof link.properties.textDecoration[number];
2814
- /**
2815
- * The fontSize property sets the size of the link.
2816
- * @default base
2817
- */
2818
- fontSize?: keyof typeof link.properties.fontSize;
2819
- /**
2820
- * The lineHeight property specifies the line height of the link
2821
- * @default base
2822
- */
2823
- lineHeight?: keyof typeof link.properties.lineHeight;
2824
- }
2825
- export type LinkBaseProps = LinkProperties & HTMLAttributes<HTMLElement>;
2826
- export declare const Link: PolymorphicForwardRefComponent<"button" | "a", LinkBaseProps> & LinkComponents;
2827
- export type LinkProps = ComponentPropsWithRef<typeof Link>;
2828
- export type ListSkeletonItemProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
2829
- /**
2830
- * This is an attribute used to identify a DOM node for testing purposes.
2831
- */
2832
- "data-testid"?: string;
2833
- };
2834
- export type ListSkeletonItemProps = ListSkeletonItemProperties;
2835
- declare const ListSkeletonItem: React.FC<ListSkeletonItemProps>;
2836
- export interface ListSkeletonProperties {
2837
- /**
2838
- * The content of the list skeleton.
2839
- * @TJS-type React.ReactNode
2840
- */
2841
- children: ReactNode;
2842
- /**
2843
- * This is an attribute used to identify a DOM node for testing purposes.
2844
- */
2845
- "data-testid"?: string;
2846
- }
2847
- export type ListSkeletonProps = ListSkeletonProperties & HTMLAttributes<HTMLDivElement>;
2848
- declare const ListSkeleton: React.FC<ListSkeletonProps>;
2849
- export interface ListItemProperties {
2850
- /**
2851
- * The content of the list item.
2852
- * @TJS-type React.ReactNode
2853
- */
2854
- children: ReactNode;
2855
- }
2856
- export type ListItemProps = ListItemProperties & HTMLAttributes<HTMLLIElement>;
2857
- declare const ListItem: React.FC<ListItemProps>;
2858
- export interface ListComponents {
2859
- Skeleton: typeof ListSkeleton;
2860
- SkeletonItem: typeof ListSkeletonItem;
2861
- Item: typeof ListItem;
2862
- }
2863
- export interface ListProperties {
2864
- /**
2865
- * The content of the list.
2866
- * @TJS-type React.ReactNode
2867
- */
2868
- children: ReactNode;
2869
- /**
2870
- * Determines the type of html list that will be rendered
2871
- * @default ul
2872
- */
2873
- as?: "ul" | "ol";
2874
- /**
2875
- * The padding of the list.
2876
- * @default 6
2877
- */
2878
- padding?: keyof typeof list.properties.padding;
2879
- }
2880
- export type ListProps = ListProperties & HTMLAttributes<HTMLUListElement | HTMLOListElement>;
2881
- export declare const List: React.FC<ListProps> & ListComponents;
2882
- export type MultiSelectSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2883
- export type MultiSelectSkeletonProps = MultiSelectSkeletonProperties & HTMLAttributes<HTMLDivElement>;
2884
- declare const MultiSelectSkeleton: React.FC<MultiSelectSkeletonProps>;
2885
- export interface MultiSelectComponents {
2886
- Skeleton: typeof MultiSelectSkeleton;
2887
- }
2888
- export interface MultiSelectOption {
2889
- /**
2890
- * Label for the option.
2891
- */
2892
- label: string;
2893
- /**
2894
- * Value of the option
2895
- */
2896
- value: string;
2897
- }
2898
- export interface MultiSelectProperties {
2899
- /**
2900
- * The name of the wrapper element or the select element when native.
2901
- */
2902
- name: string;
2903
- /**
2904
- * The id of the wrapper element or the select element when native.
2905
- */
2906
- id: string;
2907
- /**
2908
- * Change the visual style of the select.
2909
- * @default neutral
2910
- */
2911
- appearance?: "success" | "warning" | "danger" | "neutral";
2912
- /**
2913
- * Options of the MultiSelect
2914
- */
2915
- options: MultiSelectOption[];
2916
- /**
2917
- * Options of the MultiSelect
2918
- */
2919
- onChange?: (values: MultiSelectOption[]) => void;
2920
- /**
2921
- * Deafult of the MultiSelect
2922
- */
2923
- value?: MultiSelectOption[];
2924
- /**
2925
- * ZIndex of the MultiSelect
2926
- */
2927
- zIndex?: keyof typeof multiSelect.properties.zIndex;
2928
- }
2929
- export type MultiSelectBaseProps = MultiSelectProperties & Omit<InputHTMLAttributes<HTMLInputElement>, "children" | "value">;
2930
- export declare const MultiSelect: React.FC<MultiSelectBaseProps> & MultiSelectComponents;
2931
- export type MultiSelectProps = ComponentPropsWithRef<typeof MultiSelect>;
2932
- export type PopoverPlacement = "top" | "right" | "bottom" | "left" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | "top-start" | "top-end";
2933
- export interface PopoverProperties extends PopoverSprinkle {
2934
- /**
2935
- * An HTML element, or a function that returns one. It's used to set the position of the popover.
2936
- * @TJS-type React.ReactNode | ((data: { open: boolean, setVisibility: (visibility: boolean) => void }) => React.ReactNode);
2937
- */
2938
- children: ReactNode | ((data: {
2939
- open: boolean;
2940
- setVisibility: (visibility: boolean) => void;
2941
- }) => ReactNode);
2942
- /**
2943
- * The content of the popover.
2944
- * @TJS-type React.ReactNode
2945
- */
2946
- content: ReactNode;
2947
- /**
2948
- * If true, the component is shown.
2949
- */
2950
- visible?: boolean;
2951
- /**
2952
- * Function to control popover opening and closing.
2953
- * @TJS-type (visible: boolean) => void;
2954
- */
2955
- onVisibility?: (visible: boolean) => void;
2956
- /**
2957
- * Conditional for displaying the popover arrow.
2958
- * @default true
2959
- */
2960
- arrow?: boolean;
2961
- /**
2962
- * A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
2963
- * @default false
2964
- */
2965
- matchReferenceWidth?: boolean;
2966
- /**
2967
- * Position of the popover.
2968
- * @default bottom
2969
- */
2970
- position?: PopoverPlacement;
2971
- /**
2972
- * Adds hover event listeners that change the open state, like CSS :hover.
2973
- * @default false
2974
- */
2975
- enabledHover?: boolean;
2976
- /**
2977
- * Adds click event listeners that change the open state.
2978
- * @default true
2979
- */
2980
- enabledClick?: boolean;
2981
- /**
2982
- * Adds listeners that dismiss (close) the floating element.
2983
- * @default true
2984
- */
2985
- enabledDismiss?: boolean;
2986
- /**
2987
- * Offest displaces the floating element from its core placement along the specified axes.
2988
- * @default 10
2989
- */
2990
- offset?: number;
2991
- /**
2992
- * When enabled, renders an invisible overlay that prevents accidental clicks on elements behind the popover.
2993
- * @default false
2994
- */
2995
- renderOverlay?: boolean;
2996
- }
2997
- export type PopoverProps = PopoverProperties & Omit<HTMLAttributes<HTMLDivElement>, "children" | "content">;
2998
- export declare const Popover: React.FC<PopoverProps>;
2999
- export type RadioSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<RadioProps, "as">> & {
3000
- /**
3001
- * This is an attribute used to identify a DOM node for testing purposes.
3002
- */
3003
- "data-testid"?: string;
3004
- };
3005
- export type RadioSkeletonProps = RadioSkeletonProperties;
3006
- declare const RadioSkeleton: React.FC<RadioSkeletonProps>;
3007
- export interface RadioComponents {
3008
- Skeleton: typeof RadioSkeleton;
3009
- }
3010
- export interface RadioProperties {
3011
- /**
3012
- * Name attribute of the input element.
3013
- */
3014
- name: string;
3015
- /**
3016
- * Change the visual style of the radio.
3017
- * @default radio
3018
- */
3019
- as?: "radio" | "button";
3020
- /**
3021
- * Modifies true/false value of the native radio.
3022
- */
3023
- checked?: boolean;
3024
- /**
3025
- * Modifies the native disabled state of the native radio.
3026
- */
3027
- disabled?: boolean;
3028
- /**
3029
- * Text to be rendered inside the component.
3030
- */
3031
- label?: string;
3032
- }
3033
- export type RadioProps = RadioProperties & InputHTMLAttributes<HTMLInputElement>;
3034
- export declare const Radio: React.FC<RadioProps> & RadioComponents;
3035
- export interface SelectGroupProperties {
3036
- /**
3037
- * Label for the option group.
3038
- */
3039
- label: string;
3040
- /**
3041
- * The content of the option group.
3042
- * @TJS-type React.ReactNode
3043
- */
3044
- children: ReactNode;
3045
- }
3046
- export type SelectGroupProps = SelectGroupProperties & OptgroupHTMLAttributes<HTMLOptGroupElement>;
3047
- declare const SelectGroup: React.FC<SelectGroupProps>;
3048
- export interface SelectOptionProperties {
3049
- /**
3050
- * Label for the option.
3051
- */
3052
- label: string;
3053
- /**
3054
- * Value of the option
3055
- */
3056
- value: string;
3057
- }
3058
- export type SelectOptionProps = SelectOptionProperties & OptionHTMLAttributes<HTMLOptionElement>;
3059
- declare const SelectOption: React.FC<SelectOptionProps>;
3060
- export type SelectSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
3061
- export type SelectSkeletonProps = SelectSkeletonProperties;
3062
- declare const SelectSkeleton: React.FC<SelectSkeletonProps>;
3063
- export interface SelectComponents {
3064
- Group: typeof SelectGroup;
3065
- Option: typeof SelectOption;
3066
- Skeleton: typeof SelectSkeleton;
3067
- }
3068
- export interface SelectProperties {
3069
- /**
3070
- * The name of the wrapper element or the select element when native.
3071
- */
3072
- name: string;
3073
- /**
3074
- * The id of the wrapper element or the select element when native.
3075
- */
3076
- id: string;
3077
- /**
3078
- * The content of the select.
3079
- * @TJS-type React.ReactNode
3080
- */
3081
- children: ReactNode;
3082
- /**
3083
- * Change the visual style of the select.
3084
- * @default neutral
3085
- */
3086
- appearance?: "success" | "warning" | "danger" | "neutral" | "ai-generative";
3087
- /**
3088
- * Shows ai-generative appearance with active ai focus shadow.
3089
- * When true, this styling takes precedence over `appearance`.
3090
- * @default false
3091
- */
3092
- aiGenerated?: boolean;
3093
- }
3094
- export declare const Select: React.ForwardRefExoticComponent<SelectProperties & React.SelectHTMLAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement> & React.RefAttributes<HTMLSelectElement>> & SelectComponents;
3095
- export type SelectProps = ComponentPropsWithRef<typeof Select>;
3096
- export interface SpinnerProperties {
3097
- /**
3098
- * Sets the width and height of the spinner.
3099
- * @default large
3100
- */
3101
- size?: "small" | "medium" | "large" | number;
3102
- /**
3103
- * Set the color for the spinner SVG fill.
3104
- * @default primary-interactive
3105
- */
3106
- color?: keyof typeof spinner.properties.color;
3107
- }
3108
- export type SpinnerProps = SpinnerProperties & SVGAttributes<SVGElement>;
3109
- export declare const Spinner: React.FC<SpinnerProps>;
3110
- /**
3111
- * Available appearance variants for the slider fill.
3112
- * Controls the color scheme of the active range portion of the slider.
3113
- */
3114
- export type SliderAppearance = "primary" | "success" | "warning" | "danger" | "neutral";
3115
- /**
3116
- * Common properties shared between single and range slider modes.
3117
- */
3118
- export interface SliderCommonProperties {
3119
- /**
3120
- * The minimum value of the slider range.
3121
- * @default 0
3122
- */
3123
- min?: number;
3124
- /**
3125
- * The maximum value of the slider range.
3126
- * @default 100
3127
- */
3128
- max?: number;
3129
- /**
3130
- * The step increment between values.
3131
- * @default 1
3132
- */
3133
- step?: number;
3134
- /**
3135
- * Visual appearance of the slider fill.
3136
- * @default "primary"
3137
- */
3138
- appearance?: SliderAppearance;
3139
- /**
3140
- * Whether the slider is disabled.
3141
- * @default false
3142
- */
3143
- disabled?: boolean;
3144
- /**
3145
- * This is an attribute used to identify a DOM node for testing purposes.
3146
- */
3147
- "data-testid"?: string;
3148
- }
3149
- /**
3150
- * Properties specific to single value slider mode.
3151
- * Used for documentation generation.
3152
- */
3153
- export interface SliderProperties extends SliderCommonProperties {
3154
- /**
3155
- * The current value of the slider (single mode).
3156
- */
3157
- value: number;
3158
- /**
3159
- * Callback fired when the value changes.
3160
- */
3161
- onChange?: (value: number) => void;
3162
- /**
3163
- * Callback fired when the user finishes interacting with the slider.
3164
- */
3165
- onChangeEnd?: (value: number) => void;
3166
- /**
3167
- * Accessible label for the slider thumb.
3168
- * @default "Value"
3169
- */
3170
- ariaLabel?: string;
3171
- }
3172
- /**
3173
- * Properties specific to range slider mode (two thumbs).
3174
- */
3175
- export interface SliderRangeProperties extends SliderCommonProperties {
3176
- /**
3177
- * The current minimum value selected on the slider.
3178
- */
3179
- minValue: number;
3180
- /**
3181
- * The current maximum value selected on the slider.
3182
- */
3183
- maxValue: number;
3184
- /**
3185
- * Callback fired when the min or max value changes.
3186
- */
3187
- onChange?: (minValue: number, maxValue: number) => void;
3188
- /**
3189
- * Callback fired when the min value changes.
3190
- */
3191
- onMinChange?: (value: number) => void;
3192
- /**
3193
- * Callback fired when the max value changes.
3194
- */
3195
- onMaxChange?: (value: number) => void;
3196
- /**
3197
- * Callback fired when the user finishes interacting with the slider.
3198
- */
3199
- onChangeEnd?: (minValue: number, maxValue: number) => void;
3200
- /**
3201
- * Accessible label for the minimum value thumb.
3202
- * @default "Minimum value"
3203
- */
3204
- minAriaLabel?: string;
3205
- /**
3206
- * Accessible label for the maximum value thumb.
3207
- * @default "Maximum value"
3208
- */
3209
- maxAriaLabel?: string;
3210
- }
3211
- /**
3212
- * Props for single value slider mode.
3213
- */
3214
- export type SliderBaseProps = SliderProperties & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "className" | "style">;
3215
- /**
3216
- * Props for range slider mode.
3217
- */
3218
- export type SliderRangeBaseProps = SliderRangeProperties & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "className" | "style">;
3219
- declare const SliderRange: React.ForwardRefExoticComponent<SliderRangeProperties & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style" | "onChange"> & React.RefAttributes<HTMLDivElement>>;
3220
- export type SliderRangeProps = ComponentPropsWithRef<typeof SliderRange>;
3221
- declare const SliderBase: React.ForwardRefExoticComponent<SliderProperties & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style" | "onChange"> & React.RefAttributes<HTMLDivElement>>;
3222
- /**
3223
- * Slider component with Range subcomponent.
3224
- *
3225
- * @example
3226
- * // Single value slider
3227
- * <Slider value={50} onChange={(value) => console.log(value)} />
3228
- *
3229
- * @example
3230
- * // Range slider
3231
- * <Slider.Range minValue={25} maxValue={75} onChange={(min, max) => console.log(min, max)} />
3232
- */
3233
- export declare const Slider: React.ForwardRefExoticComponent<SliderProperties & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style" | "onChange"> & React.RefAttributes<HTMLDivElement>> & {
3234
- Range: React.ForwardRefExoticComponent<SliderRangeProperties & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style" | "onChange"> & React.RefAttributes<HTMLDivElement>>;
3235
- };
3236
- export type SliderProps = ComponentPropsWithRef<typeof SliderBase>;
3237
- export type TagSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
3238
- /**
3239
- * This is an attribute used to identify a DOM node for testing purposes.
3240
- */
3241
- "data-testid"?: string;
3242
- };
3243
- export type TagSkeletonProps = TagSkeletonProperties;
3244
- declare const TagSkeleton: React.FC<TagSkeletonProps>;
3245
- export interface TagComponents {
3246
- Skeleton: typeof TagSkeleton;
3247
- }
3248
- export interface TagProperties {
3249
- /**
3250
- * The content of the tag.
3251
- * @TJS-type React.ReactNode
3252
- */
3253
- children: ReactNode;
3254
- /**
3255
- * Change the visual style of the tag.
3256
- * @default neutral
3257
- */
3258
- appearance?: "primary" | "success" | "warning" | "danger" | "neutral" | "ai-generative";
3259
- }
3260
- export type TagProps = TagProperties & HTMLAttributes<HTMLDivElement>;
3261
- export declare const Tag: React.FC<TagProps> & TagComponents;
3262
- export type TextSkeletonProperties = {
3263
- fontSize?: keyof typeof text.properties.fontSize;
3264
- } & Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
3265
- export type TextSkeletonProps = TextSkeletonProperties;
3266
- declare const TextSkeleton: React.FC<TextSkeletonProps>;
3267
- export interface TextComponents {
3268
- Skeleton: typeof TextSkeleton;
3269
- }
3270
- export interface TextProperties extends Omit<TextSprinkle, "WebkitLineClamp"> {
3271
- /**
3272
- * The content of the link.
3273
- * @TJS-type React.ReactNode
3274
- */
3275
- children: ReactNode;
3276
- /**
3277
- * Type of html tag to create for the Text component.
3278
- * @default p
3279
- */
3280
- as?: "p" | "span";
3281
- }
3282
- export type TextProps = TextProperties & Omit<TextSprinkle, "WebkitLineClamp"> & HTMLAttributes<HTMLParagraphElement>;
3283
- export declare const Text: React.FC<TextProps> & TextComponents;
3284
- export type TextareaSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
3285
- export type TextareaSkeletonProps = TextareaSkeletonProperties;
3286
- declare const TextareaSkeleton: React.FC<TextareaSkeletonProps>;
3287
- export interface TextareaComponents {
3288
- Skeleton: typeof TextareaSkeleton;
3289
- }
3290
- export interface TextareaProperties {
3291
- /**
3292
- * Change the visual style of the textarea.
3293
- * @default neutral
3294
- */
3295
- appearance?: "neutral" | "success" | "warning" | "danger" | "ai-generative" | "transparent";
3296
- /**
3297
- * Highlights the field to indicate its value was generated by AI.
3298
- * Applies AI gradient border, white background and an AI focus ring.
3299
- */
3300
- aiGenerated?: boolean;
3301
- /**
3302
- * Number of lines to be rendered for the user to input text
3303
- * @default 2
3304
- */
3305
- lines?: number;
3306
- /**
3307
- * Controls intrinsic sizing behavior of the field. When true, the textarea will grow with content up to the maxLines limit (if provided) and then scroll.
3308
- * @default false
3309
- */
3310
- autoGrow?: boolean;
3311
- /**
3312
- * Caps the textarea visual height to the given number of lines.
3313
- * When used together with autoGrow=true, the textarea will grow
3314
- * with content up to this limit and then scroll.
3315
- */
3316
- maxLines?: number;
3317
- /**
3318
- * Sets the minimum height of the textarea to the given number of lines.
3319
- * The textarea will never shrink below this height, even when empty.
3320
- */
3321
- minLines?: number;
3322
- /**
3323
- * ID of the textarea
3324
- * */
3325
- id: string;
3326
- /**
3327
- * Enable/disable textarea resize functionality
3328
- * @default true
3329
- */
3330
- resize?: boolean;
3331
- }
3332
- export declare const Textarea: React.ForwardRefExoticComponent<TextareaProperties & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.InputHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>> & TextareaComponents;
3333
- export type TextareaProps = ComponentPropsWithRef<typeof Textarea>;
3334
- export type ThumbnailSkeletonProperties = Partial<Pick<ThumbnailProps, "aspectRatio">> & Partial<Pick<SkeletonProps, "width" | "data-testid">>;
3335
- export type ThumbnailSkeletonProps = ThumbnailSkeletonProperties;
3336
- declare const ThumbnailSkeleton: React.FC<ThumbnailSkeletonProps>;
3337
- export interface ThumbnailComponents {
3338
- Skeleton: typeof ThumbnailSkeleton;
3339
- }
3340
- export interface ThumbnailProperties {
3341
- /**
3342
- * The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
3343
- */
3344
- alt: string;
3345
- /**
3346
- * The content of the thumbnail.
3347
- * @TJS-type React.ReactNode
3348
- */
3349
- children?: ReactNode;
3350
- /**
3351
- * Permitted aspect ratios for the size of the thumbnail image.
3352
- * @default 1/1
3353
- */
3354
- aspectRatio?: typeof thumbnail.properties.aspectRatio[number];
3355
- /**
3356
- * Width value of the thumbnail image. Defaults to 100%.
3357
- * @default 100%
3358
- */
3359
- width?: string;
3360
- }
3361
- export type ThumbnailProps = ThumbnailProperties & ImgHTMLAttributes<HTMLImageElement>;
3362
- export declare const Thumbnail: React.FC<ThumbnailProps> & ThumbnailComponents;
3363
- export type TitleSkeletonProperties = Pick<TitleProps, "as"> & Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
3364
- export type TitleSkeletonProps = TitleSkeletonProperties;
3365
- declare const TitleSkeleton: React.FC<TitleSkeletonProps>;
3366
- export interface TitleComponents {
3367
- Skeleton: typeof TitleSkeleton;
3368
- }
3369
- export interface TitleProperties extends TitleSprinkle {
3370
- /**
3371
- * The content of the title.
3372
- * @TJS-type React.ReactNode
3373
- */
3374
- children: ReactNode;
3375
- /**
3376
- * Type of html tag to create for the title.
3377
- * @default h1
3378
- */
3379
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
3380
- }
3381
- export type TitleProps = TitleProperties & HTMLAttributes<HTMLHeadingElement>;
3382
- export declare const Title: React.FC<TitleProps> & TitleComponents;
3383
- export interface ToastProviderProperties {
3384
- /**
3385
- * @TJS-type React.ReactNode
3386
- */
3387
- children: ReactNode;
3388
- }
3389
- export type ToastProviderProps = ToastProviderProperties;
3390
- export declare const ToastProvider: React.FC<ToastProviderProps>;
3391
- export interface ToastComponents {
3392
- Provider: typeof ToastProvider;
3393
- }
3394
- export type Types = "primary" | "success" | "danger" | "progress";
3395
- export interface ToastProperties {
3396
- /**
3397
- * Unique toast ID used when hiding or removing a toast.
3398
- */
3399
- id: string;
3400
- /**
3401
- * The text that should appear in the toast message.
3402
- */
3403
- text: string;
3404
- /**
3405
- * Change the visual style of the toast.
3406
- * @default primary
3407
- */
3408
- type?: Types;
3409
- /**
3410
- * The time in milliseconds that the toast message should persist.
3411
- * @default 4000
3412
- */
3413
- duration?: 4000 | 8000 | 16000;
3414
- /**
3415
- * Tells you whether or not Toast should close automatically.
3416
- * @default true
3417
- */
3418
- autoClose?: boolean;
3419
- /**
3420
- * Tells the toast position when we are using multiple toasts.
3421
- * @default 0
3422
- */
3423
- position?: number;
3424
- }
3425
- export type ToastProps = ToastProperties & HTMLAttributes<HTMLDivElement>;
3426
- export declare const Toast: React.FC<ToastProps> & ToastComponents;
3427
- export interface ToastContextProps {
3428
- closeToast: (id: string) => void;
3429
- addToast: (toast: Omit<ToastProps, "autoClose">) => void;
3430
- }
3431
- export declare const useToast: () => ToastContextProps;
3432
- export type ToggleSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
3433
- export type ToggleSkeletonProps = ToggleSkeletonProperties;
3434
- declare const ToggleSkeleton: React.FC<ToggleSkeletonProps>;
3435
- export interface ToggleComponents {
3436
- Skeleton: typeof ToggleSkeleton;
3437
- }
3438
- export interface ToggleProperties {
3439
- /**
3440
- * The name of the input element.
3441
- */
3442
- name: string;
3443
- /**
3444
- * Sets toggle state to activated or deactivated.
3445
- */
3446
- active?: boolean;
3447
- /**
3448
- * Text to be rendered inside the component
3449
- */
3450
- label?: string;
3451
- }
3452
- export type ToggleProps = ToggleProperties & InputHTMLAttributes<HTMLInputElement>;
3453
- export declare const Toggle: React.FC<ToggleProps> & ToggleComponents;
3454
- export interface TooltipProperties extends TooltipSprinkle {
3455
- /**
3456
- * An HTML element, or a function that returns one. It's used to set the position of the tooltip.
3457
- * @TJS-type React.ReactNode
3458
- */
3459
- children: ReactNode;
3460
- /**
3461
- * The text that should appear in the tooltip message.
3462
- */
3463
- content: string;
3464
- /**
3465
- * Conditional for displaying the popover arrow.
3466
- * @default false
3467
- */
3468
- arrow?: boolean;
3469
- /**
3470
- * Position of the popover.
3471
- * @default bottom
3472
- */
3473
- position?: "top" | "bottom" | "left" | "right";
3474
- }
3475
- export type TooltipProps = TooltipProperties & HTMLAttributes<HTMLDivElement>;
3476
- export declare const Tooltip: React.FC<TooltipProps>;
3477
- export type ProgressBarSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
3478
- declare const ProgressBarSkeleton: React.FC<ProgressBarSkeletonProperties>;
3479
- export interface ProgressBarComponents {
3480
- Skeleton: typeof ProgressBarSkeleton;
3481
- }
3482
- export interface ProgressBarProperties {
3483
- /**
3484
- * Progress value from 0 to 100
3485
- * @note Always renders with a minimum 8px width for visual consistency
3486
- */
3487
- value: number;
3488
- /**
3489
- * Change the visual style of the progress bar.
3490
- * @default neutral
3491
- */
3492
- appearance?: "primary" | "success" | "warning" | "danger" | "neutral" | "ai-generative";
3493
- }
3494
- /**
3495
- * ProgressBar component displays the progress of an operation or task in a visual format.
3496
- * It provides a horizontal bar that fills based on the completion percentage.
3497
- *
3498
- * @component
3499
- * @example
3500
- * <ProgressBar value={50} appearance="primary" />
3501
- *
3502
- * @example
3503
- * // With skeleton loading state
3504
- * <ProgressBar.Skeleton width="200px" />
3505
- */
3506
- export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProperties & Omit<React.HTMLAttributes<HTMLDivElement>, keyof ProgressBarProperties> & React.RefAttributes<HTMLDivElement>> & ProgressBarComponents;
3507
- export type ProgressBarProps = ComponentPropsWithRef<typeof ProgressBar>;
3508
- export interface DividerProperties {
3509
- /**
3510
- * Defines the orientation of the divider.
3511
- * @default horizontal
3512
- */
3513
- orientation?: "horizontal" | "vertical";
3514
- /**
3515
- * Visual appearance color.
3516
- * @default neutral
3517
- */
3518
- appearance?: "neutral";
3519
- /**
3520
- * Thickness level based on shape.border.width tokens.
3521
- * @default 1
3522
- */
3523
- thickness?: 1 | 2 | 3;
3524
- }
3525
- export type DividerProps = DividerProperties & HTMLAttributes<HTMLHRElement>;
3526
- export declare const Divider: React.FC<DividerProps>;
3527
- export interface AccordionBodyProperties {
3528
- /**
3529
- * The content of the accordion body.
3530
- * @TJS-type React.ReactNode
3531
- */
3532
- children: ReactNode;
3533
- /**
3534
- * The borderBottom property defines a lower border of the accordion body.
3535
- * @default none
3536
- */
3537
- borderBottom?: keyof typeof accordion.properties.borderBottom;
3538
- /**
3539
- * The borderTop property defines a top border of the accordion body.
3540
- * @default none
3541
- */
3542
- borderTop?: keyof typeof accordion.properties.borderTop;
3543
- /**
3544
- * Padding properties are used to generate space around the content area of an Accordion.Body..
3545
- * @default base
3546
- */
3547
- padding?: keyof typeof accordion.properties.padding;
3548
- }
3549
- export type AccordionBodyProps = AccordionBodyProperties & HTMLAttributes<HTMLElement>;
3550
- declare const AccordionBody: React.FC<AccordionBodyProps>;
3551
- export interface AccordionItemProperties {
3552
- /**
3553
- * The content of the accordion body.
3554
- * @TJS-type React.ReactNode
3555
- */
3556
- children: ReactNode;
3557
- /**
3558
- * Unique indicator to identify accordion items
3559
- */
3560
- index: string;
3561
- /**
3562
- * This is an attribute used to identify a DOM node for testing purposes.
3563
- */
3564
- testId?: string;
3565
- }
3566
- export type AccordionItemProps = AccordionItemProperties;
3567
- declare const AccordionItem: React.FC<AccordionItemProps>;
3568
- export interface AccordionHeaderProperties {
3569
- /**
3570
- * The content of the accordion header.
3571
- * @TJS-type React.ReactNode | ((data: { selected: string; index: string }) => React.ReactNode);
3572
- */
3573
- children?: ReactNode | ((data: {
3574
- selected: string;
3575
- index: string;
3576
- }) => ReactNode);
3577
- /**
3578
- * The title to display in the accordion header.
3579
- */
3580
- title?: string;
3581
- /**
3582
- * The subtitle to display in the accordion header.
3583
- */
3584
- subtitle?: string;
3585
- /**
3586
- * The SVG contents to display in the accordion header.
3587
- * @TJS-type React.ReactNode
3588
- */
3589
- icon?: ReactNode;
3590
- /**
3591
- * Removes the arrow icon that shows if the accordion item is open or not which makes it possible to create a custom indicator.
3592
- * @default false
3593
- */
3594
- noIconToggle?: boolean;
3595
- /**
3596
- * The borderTop property defines a lower border of the accordion header.
3597
- * @default base
3598
- */
3599
- borderTop?: keyof typeof accordion.properties.borderTop;
3600
- /**
3601
- * The borderBottom property defines a lower border of the accordion header.
3602
- */
3603
- borderBottom?: keyof typeof accordion.properties.borderBottom;
3604
- }
3605
- export type AccordionHeaderProps = AccordionHeaderProperties & Omit<HTMLAttributes<HTMLElement>, "children">;
3606
- declare const AccordionHeader: React.FC<AccordionHeaderProps>;
3607
- export interface AccordionComponents {
3608
- Body: typeof AccordionBody;
3609
- Item: typeof AccordionItem;
3610
- Header: typeof AccordionHeader;
3611
- }
3612
- export interface AccordionBaseProperties {
3613
- /**
3614
- * The content of the accordion.
3615
- * @TJS-type React.ReactNode
3616
- */
3617
- children?: ReactNode;
3618
- }
3619
- export interface UncontrolledAccordionProperties extends AccordionBaseProperties {
3620
- /**
3621
- * Informs which accordion item is open by default, this value must be the same as informed in the index of each item
3622
- */
3623
- selectedDefault?: string;
3624
- }
3625
- export interface ControlledAccordionProperties extends AccordionBaseProperties {
3626
- /**
3627
- * The currently selected accordion item ID.
3628
- */
3629
- selectedItem: string;
3630
- /**
3631
- * Callback fired when the selected accordion item changes.
3632
- * @param selectedId The ID of the selected accordion item
3633
- */
3634
- onItemSelect?: (selectedId: string) => void;
3635
- }
3636
- /**
3637
- * Props for the Accordion component, supporting both controlled and uncontrolled modes
3638
- */
3639
- export type AccordionProps = (UncontrolledAccordionProperties | ControlledAccordionProperties) & Omit<HTMLAttributes<HTMLElement>, "onItemSelect" | "selectedItem">;
3640
- export type AccordionProperties = AccordionBaseProperties & UncontrolledAccordionProperties & ControlledAccordionProperties;
3641
- export declare const Accordion: React.FC<AccordionProps> & AccordionComponents;
3642
- export type AlertSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
3643
- export type AlertSkeletonProps = AlertSkeletonProperties;
3644
- declare const AlertSkeleton: React.FC<AlertSkeletonProps>;
3645
- export interface AlertComponents {
3646
- Skeleton: typeof AlertSkeleton;
3647
- }
3648
- export interface AlertProperties {
3649
- /**
3650
- * The content for the title of the alert.
3651
- */
3652
- title?: string;
3653
- /**
3654
- * Change the visual style of the alert.
3655
- * @default neutral
3656
- */
3657
- appearance?: "primary" | "success" | "warning" | "danger" | "neutral";
3658
- /**
3659
- * The content of the alert.
3660
- * @TJS-type React.ReactNode
3661
- */
3662
- children: ReactNode;
3663
- /**
3664
- * Function to be passed on actioning the dismiss button.
3665
- * @TJS-type () => void;
3666
- */
3667
- onRemove?: () => void;
3668
- /**
3669
- * Determines if the alert is shown or not.
3670
- * @default true
3671
- */
3672
- show?: boolean;
3673
- }
3674
- export type AlertProps = AlertProperties & HTMLAttributes<HTMLElement>;
3675
- export declare const Alert: React.FC<AlertProps> & AlertComponents;
3676
- export interface CardBodyProperties {
3677
- /**
3678
- * The content of the card body.
3679
- * @TJS-type React.ReactNode
3680
- */
3681
- children: ReactNode;
3682
- /**
3683
- * The padding properties are used to generate space around an card's body content area.
3684
- * @default none
3685
- */
3686
- padding?: keyof typeof card.subComponents.body.properties.padding;
3687
- }
3688
- export type CardBodyProps = CardBodyProperties & HTMLAttributes<HTMLElement>;
3689
- declare const CardBody: React.FC<CardBodyProps>;
3690
- export interface CardFooterProperties {
3691
- /**
3692
- * The content of the card footer.
3693
- * @TJS-type React.ReactNode
3694
- */
3695
- children: ReactNode;
3696
- /**
3697
- * The padding properties are used to generate space around an card's footer content area.
3698
- * @default none
3699
- */
3700
- padding?: keyof typeof card.subComponents.footer.properties.padding;
3701
- }
3702
- export type CardFooterProps = CardFooterProperties & HTMLAttributes<HTMLElement>;
3703
- declare const CardFooter: React.FC<CardFooterProps>;
3704
- export interface CardHeaderProperties {
3705
- /**
3706
- * The content of the card header.
3707
- * @TJS-type React.ReactNode
3708
- */
3709
- children?: ReactNode;
3710
- /**
3711
- * The title to display in the card header.
3712
- */
3713
- title?: string;
3714
- /**
3715
- * The padding properties are used to generate space around an card's header content area.
3716
- * @default none
3717
- */
3718
- padding?: keyof typeof card.subComponents.header.properties.padding;
3719
- }
3720
- export type CardHeaderProps = CardHeaderProperties & HTMLAttributes<HTMLElement>;
3721
- declare const CardHeader: React.FC<CardHeaderProps>;
3722
- export interface CardComponents {
3723
- Body: typeof CardBody;
3724
- Footer: typeof CardFooter;
3725
- Header: typeof CardHeader;
3726
- }
3727
- export interface CardProperties {
3728
- /**
3729
- * The content of the card.
3730
- * @TJS-type React.ReactNode
3731
- */
3732
- children: ReactNode;
3733
- /**
3734
- * The padding properties are used to generate space around an card's content area.
3735
- * @default base
3736
- */
3737
- padding?: keyof typeof card.properties.padding;
3738
- /**
3739
- * The backgroundColor property sets the background color of the card.
3740
- * @default neutral-background
3741
- */
3742
- backgroundColor?: keyof typeof card.properties.backgroundColor;
3743
- }
3744
- export type CardProps = CardProperties & HTMLAttributes<HTMLElement>;
3745
- export declare const Card: React.FC<CardProps> & CardComponents;
3746
- export interface CollapsibleBodyProperties {
3747
- /**
3748
- * The content of the collapsible body.
3749
- * @TJS-type React.ReactNode
3750
- */
3751
- children: ReactNode;
3752
- /**
3753
- * Show Collapsible.Body when state is open or closed.
3754
- * @default open
3755
- */
3756
- visibleWhen?: "open" | "closed";
3757
- /**
3758
- * Set the direction that Collapsible.Body going to open
3759
- * @default none
3760
- */
3761
- direction?: "top" | "bottom" | "none";
3762
- }
3763
- export type CollapsibleBodyProps = CollapsibleBodyProperties & HTMLAttributes<HTMLElement>;
3764
- declare const CollapsibleBody: React.FC<CollapsibleBodyProps>;
3765
- export interface CollapsibleItemProperties {
3766
- /**
3767
- * The content of the collapsible body.
3768
- * @TJS-type React.ReactNode
3769
- */
3770
- children: ReactNode;
3771
- }
3772
- export type CollapsibleItemProps = CollapsibleItemProperties;
3773
- declare const CollapsibleItem: React.FC<CollapsibleItemProps>;
3774
- export interface CollapsibleComponents {
3775
- Body: typeof CollapsibleBody;
3776
- Item: typeof CollapsibleItem;
3777
- }
3778
- export interface CollapsibleProperties {
3779
- children?: ReactNode;
3780
- open?: boolean;
3781
- }
3782
- export type CollapsibleBaseProps = CollapsibleProperties & Omit<HTMLAttributes<HTMLElement>, "onChange">;
3783
- export declare const Collapsible: React.FC<CollapsibleProperties> & CollapsibleComponents;
3784
- export type CloseOnOutsidePress = (event: PointerEvent | MouseEvent) => boolean;
3785
- export interface ModalBodyProperties {
3786
- /**
3787
- * The content of the modal body.
3788
- * @TJS-type React.ReactNode
3789
- */
3790
- children: ReactNode;
3791
- /**
3792
- * The padding properties are used to generate space around an modal's body content area.
3793
- * @default none
3794
- */
3795
- padding?: keyof typeof modal.subComponents.body.properties.padding;
3796
- }
3797
- export type ModalBodyProps = ModalBodyProperties & HTMLAttributes<HTMLElement>;
3798
- declare const ModalBody: React.FC<ModalBodyProps>;
3799
- export interface ModalFooterProperties {
3800
- /**
3801
- * The content of the modal footer.
3802
- * @TJS-type React.ReactNode
3803
- */
3804
- children: ReactNode;
3805
- /**
3806
- * The padding properties are used to generate space around an modal's footer content area.
3807
- * @default none
3808
- */
3809
- padding?: keyof typeof modal.subComponents.footer.properties.padding;
3810
- }
3811
- export type ModalFooterProps = ModalFooterProperties & HTMLAttributes<HTMLElement>;
3812
- declare const ModalFooter: React.FC<ModalFooterProps>;
3813
- export interface ModalHeaderProperties {
3814
- /**
3815
- * The content of the modal header.
3816
- * @TJS-type React.ReactNode
3817
- */
3818
- children?: ReactNode;
3819
- /**
3820
- * The title to display in the modal header.
3821
- */
3822
- title?: string;
3823
- /**
3824
- * The padding properties are used to generate space around an modal's header content area.
3825
- * @default none
3826
- */
3827
- padding?: keyof typeof modal.subComponents.header.properties.padding;
3828
- }
3829
- export type ModalHeaderProps = ModalHeaderProperties & HTMLAttributes<HTMLElement>;
3830
- declare const ModalHeader: React.FC<ModalHeaderProps>;
3831
- export interface ModalComponents {
3832
- Body: typeof ModalBody;
3833
- Footer: typeof ModalFooter;
3834
- Header: typeof ModalHeader;
3835
- }
3836
- export interface ModalProperties extends ModalSprinkle {
3837
- /**
3838
- * The content of the modal.
3839
- * @TJS-type React.ReactNode
3840
- */
3841
- children: ReactNode;
3842
- /**
3843
- * Whether the modal is open or not.
3844
- */
3845
- open: boolean;
3846
- /**
3847
- * Callback fired when the component requests to be closed.
3848
- * @TJS-type (open: boolean) => void;
3849
- */
3850
- onDismiss?: (open: boolean) => void;
3851
- /**
3852
- * Id to be embedded in the portal element
3853
- */
3854
- portalId?: string;
3855
- /**
3856
- * Controls whether clicking/pressing outside should close the modal.
3857
- * - boolean: enable/disable dismissal on outside press
3858
- * - function: receive the DOM event and return true to allow closing, false to ignore
3859
- *
3860
- * Defaults to true.
3861
- */
3862
- closeOnOutsidePress?: boolean | CloseOnOutsidePress;
3863
- /**
3864
- * The attribute name to ignore when checking for outside clicks. Useful to
3865
- * mark regions (e.g., a chat) that should not close the modal when clicked.
3866
- * @default "data-nimbus-outside-press-ignore"
3867
- */
3868
- ignoreAttributeName?: string;
3869
- /**
3870
- * The padding properties are used to generate space around an modal's content area.
3871
- * @default base
3872
- */
3873
- padding?: keyof typeof modal.properties.padding;
3874
- }
3875
- export type ModalProps = ModalProperties & {
3876
- /**
3877
- * Root element where the portal should be mounted. When provided and not null,
3878
- * the portal renders inside this element; when null/undefined, the default root is used.
3879
- */
3880
- root?: HTMLElement | null;
3881
- } & HTMLAttributes<HTMLDivElement>;
3882
- export declare const Modal: React.FC<ModalProps> & ModalComponents;
3883
- export interface PaginationItemData {
3884
- pageNumber: number | string;
3885
- isCurrent: boolean;
3886
- }
3887
- export interface PaginationProperties {
3888
- /**
3889
- * The currently selected page.
3890
- */
3891
- activePage: number;
3892
- /**
3893
- * The total number of pages.
3894
- */
3895
- pageCount: number;
3896
- /**
3897
- * Called with event and page number when a page is clicked.
3898
- * @TJS-type (page: number) => void;
3899
- */
3900
- onPageChange: (page: number) => void;
3901
- /**
3902
- * Determines whether page numbers should be shown.
3903
- * @default true
3904
- */
3905
- showNumbers?: boolean;
3906
- /**
3907
- * Custom render function for pagination items.
3908
- */
3909
- renderItem?: (item: PaginationItemData) => React.ReactNode;
3910
- }
3911
- export type PaginationProps = PaginationProperties & HTMLAttributes<HTMLElement>;
3912
- export declare const Pagination: React.FC<PaginationProps>;
3913
- export interface ScrollPaneItemProperties {
3914
- /**
3915
- * The content to be rendered inside the scroll pane item
3916
- */
3917
- children: ReactNode;
3918
- /**
3919
- * Custom class name for styling
3920
- */
3921
- className?: string;
3922
- /**
3923
- * Custom inline styles
3924
- */
3925
- style?: React.CSSProperties;
3926
- /**
3927
- * Callback fired when the item is clicked
3928
- */
3929
- onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
3930
- }
3931
- export type ScrollPaneItemProps = ScrollPaneItemProperties & Omit<React.HTMLAttributes<HTMLDivElement>, "children">;
3932
- export type ScrollPaneArrowProperties = {
3933
- children: ReactNode;
3934
- };
3935
- export type ScrollPaneArrowVerticalEndProperties = ScrollPaneArrowProperties;
3936
- export type ScrollPaneArrowVerticalStartProperties = ScrollPaneArrowProperties;
3937
- export type ScrollPaneArrowHorizontalEndProperties = ScrollPaneArrowProperties;
3938
- export type ScrollPaneArrowHorizontalStartProperties = ScrollPaneArrowProperties;
3939
- export interface ScrollPaneComponents {
3940
- Item: React.FC<ScrollPaneItemProps>;
3941
- ArrowHorizontalStart: React.FC<ScrollPaneArrowHorizontalStartProperties>;
3942
- ArrowHorizontalEnd: React.FC<ScrollPaneArrowHorizontalEndProperties>;
3943
- ArrowVerticalStart: React.FC<ScrollPaneArrowVerticalStartProperties>;
3944
- ArrowVerticalEnd: React.FC<ScrollPaneArrowVerticalEndProperties>;
3945
- }
3946
- export interface ScrollPaneProperties {
3947
- /**
3948
- * The content to be rendered inside the scroll pane
3949
- */
3950
- children: ReactNode;
3951
- /**
3952
- * Whether to show gradient overlays when content overflows
3953
- * @default true
3954
- */
3955
- showGradients?: boolean;
3956
- /**
3957
- * Whether to show navigation arrows for scrolling
3958
- * @default false
3959
- */
3960
- showArrows?: boolean;
3961
- /**
3962
- * Whether to show the scrollbar
3963
- * @default true
3964
- */
3965
- showScrollbar?: boolean;
3966
- /**
3967
- * The direction of the scroll (horizontal or vertical)
3968
- * @default "horizontal"
3969
- */
3970
- direction?: "horizontal" | "vertical";
3971
- /**
3972
- * Whether items should scroll into view when clicked
3973
- * @default true
3974
- */
3975
- scrollToItemOnClick?: boolean;
3976
- /**
3977
- * Enable grab-to-scroll functionality (click and drag to scroll)
3978
- * When enabled, prevents item dragging inside the ScrollPane
3979
- * @default false
3980
- */
3981
- enableGrabScroll?: boolean;
3982
- /**
3983
- * Custom arrow component to render at the start of the scroll area
3984
- */
3985
- scrollPaneArrowStart?: React.ReactNode;
3986
- /**
3987
- * Custom arrow component to render at the end of the scroll area
3988
- */
3989
- scrollPaneArrowEnd?: React.ReactNode;
3990
- /**
3991
- * Props to be passed to the content container
3992
- */
3993
- contentContainerProps?: object;
3994
- }
3995
- export type ScrollPaneProps = ScrollPaneProperties & Omit<BoxProps, "children"> & {
3996
- contentContainerProps?: BoxProps;
3997
- };
3998
- /**
3999
- * ScrollPane component handles responsive scrolls in lists that are overflowing inside a container.
4000
- * It provides gradient overlays, optional navigation arrows, and scroll-to-item functionality.
4001
- *
4002
- * @example
4003
- * <ScrollPane showArrows showGradients showScrollbar>
4004
- * <ScrollPane.Item>Item 1</ScrollPane.Item>
4005
- * <ScrollPane.Item>Item 2</ScrollPane.Item>
4006
- * </ScrollPane>
4007
- */
4008
- export declare const ScrollPane: React.FC<ScrollPaneProps> & ScrollPaneComponents;
4009
- export interface SidebarBodyProperties {
4010
- /**
4011
- * The content of the sidebar body.
4012
- * @TJS-type React.ReactNode
4013
- */
4014
- children: ReactNode;
4015
- /**
4016
- * The padding properties are used to generate space around an sidebar's body content area.
4017
- * @default base
4018
- */
4019
- padding?: keyof typeof sidebar.properties.padding;
4020
- }
4021
- export type SidebarBodyProps = SidebarBodyProperties & HTMLAttributes<HTMLElement>;
4022
- declare const SidebarBody: React.FC<SidebarBodyProps>;
4023
- export interface SidebarFooterProperties {
4024
- /**
4025
- * The content of the sidebar footer.
4026
- * @TJS-type React.ReactNode
4027
- */
4028
- children: ReactNode;
4029
- /**
4030
- * The padding properties are used to generate space around an sidebar's footer content area.
4031
- * @default base
4032
- */
4033
- padding?: keyof typeof sidebar.properties.padding;
4034
- }
4035
- export type SidebarFooterProps = SidebarFooterProperties & HTMLAttributes<HTMLElement>;
4036
- declare const SidebarFooter: React.FC<SidebarFooterProps>;
4037
- export interface SidebarHeaderProperties {
4038
- /**
4039
- * The content of the sidebar header.
4040
- * @TJS-type React.ReactNode
4041
- */
4042
- children?: ReactNode;
4043
- /**
4044
- * The title to display in the sidebar header.
4045
- */
4046
- title?: string;
4047
- /**
4048
- * The padding properties are used to generate space around an sidebar's header content area.
4049
- * @default base
4050
- */
4051
- padding?: keyof typeof sidebar.properties.padding;
4052
- }
4053
- export type SidebarHeaderProps = SidebarHeaderProperties & HTMLAttributes<HTMLElement>;
4054
- declare const SidebarHeader: React.FC<SidebarHeaderProps>;
4055
- export interface SidebarComponents {
4056
- Body: typeof SidebarBody;
4057
- Footer: typeof SidebarFooter;
4058
- Header: typeof SidebarHeader;
4059
- }
4060
- export interface SidebarProperties extends SidebarSprinkle {
4061
- /**
4062
- * Side from which the sidebar will appear.
4063
- * @default right
4064
- */
4065
- position?: "right" | "left";
4066
- /**
4067
- * The padding properties are used to generate space around an sidebar's content area.
4068
- * @default base
4069
- */
4070
- padding?: keyof typeof sidebar.properties.padding;
4071
- /**
4072
- * The content of the sidebar.
4073
- * @TJS-type React.ReactNode
4074
- */
4075
- children: ReactNode;
4076
- /**
4077
- * Callback fired when the component requests to be closed.
4078
- * () => void;
4079
- */
4080
- onRemove?: () => void;
4081
- /**
4082
- * Determines if the sidebar is shown or not.
4083
- * @default true
4084
- */
4085
- open?: boolean;
4086
- /**
4087
- * Determines if RemoveScroll wraps sidebar's children component.
4088
- * @default true
4089
- */
4090
- needRemoveScroll?: boolean;
4091
- /**
4092
- * Controls whether clicking/pressing outside should close the sidebar.
4093
- * - boolean: enable/disable dismissal on outside press
4094
- * - function: receive the DOM event and return true to allow closing, false to ignore
4095
- *
4096
- * Defaults to true for backward compatibility.
4097
- */
4098
- closeOnOutsidePress?: boolean | CloseOnOutsidePress;
4099
- /**
4100
- * The attribute name to ignore when checking for outside clicks.
4101
- * @default "data-nimbus-outside-press-ignore"
4102
- */
4103
- ignoreAttributeName?: string;
4104
- }
4105
- export type SidebarProps = SidebarProperties & {
4106
- /**
4107
- * Root element where the portal should be mounted. When provided and not null,
4108
- * the portal renders inside this element; when null/undefined, the default root is used.
4109
- */
4110
- root?: HTMLElement | null;
4111
- } & HTMLAttributes<HTMLDivElement>;
4112
- export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
4113
- /**
4114
- * Represents the visual state of a step
4115
- */
4116
- export type StepState = "completed" | "started" | "pending";
4117
- export interface StepperItemProperties {
4118
- /**
4119
- * The step number (0-based index) for this item.
4120
- * This is automatically assigned by the parent Stepper component.
4121
- */
4122
- step: number;
4123
- /**
4124
- * The label text to display for this step
4125
- */
4126
- label?: string;
4127
- }
4128
- export type StepperItemProps = StepperItemProperties & HTMLAttributes<HTMLDivElement>;
4129
- export interface StepperCardProperties {
4130
- /**
4131
- * The content to be rendered inside the card container
4132
- * @TJS-type React.ReactNode
4133
- */
4134
- children: ReactNode;
4135
- }
4136
- export type StepperCardProps = StepperCardProperties;
4137
- export interface StepperComponents {
4138
- Item: React.FC<Omit<StepperItemProps, "step">>;
4139
- Card: React.FC<StepperCardProps>;
4140
- }
4141
- export interface BaseStepperProperties {
4142
- /**
4143
- * The currently active step (0-based index).
4144
- * Steps before this will be marked as completed.
4145
- */
4146
- activeStep: number;
4147
- /**
4148
- * The content of the stepper (StepperItem components).
4149
- * Total steps will be calculated automatically based on the number of children.
4150
- * @TJS-type React.ReactNode
4151
- */
4152
- children: ReactNode;
4153
- }
4154
- export interface ControlledStepperProperties extends BaseStepperProperties {
4155
- /**
4156
- * The currently selected step (0-based index).
4157
- * This step will be visually highlighted to show user selection.
4158
- */
4159
- selectedStep: number;
4160
- /**
4161
- * Callback called when a step is selected.
4162
- * Receives the step number (0-based index) as parameter.
4163
- */
4164
- onSelectStep: (step: number) => void;
4165
- }
4166
- /**
4167
- * Props for the Stepper component, supporting both controlled and uncontrolled modes
4168
- */
4169
- export type StepperProps = (BaseStepperProperties | ControlledStepperProperties) & Omit<BoxProps, "display" | "flexWrap" | "gap">;
4170
- export type StepperProperties = BaseStepperProperties & ControlledStepperProperties;
4171
- export declare const Stepper: React.FC<StepperProps> & StepperComponents;
4172
- /**
4173
- * Context value provided by StepperContext to share state between stepper components
4174
- */
4175
- export interface StepperContextValue {
4176
- /**
4177
- * The total number of steps in the stepper
4178
- */
4179
- totalSteps: number;
4180
- /**
4181
- * The currently active step (0-based index)
4182
- */
4183
- activeStep: number;
4184
- /**
4185
- * The currently selected step (0-based index)
4186
- */
4187
- selectedStep?: number;
4188
- /**
4189
- * Callback to handle step selection
4190
- */
4191
- onSelect?: (step: number) => void;
4192
- }
4193
- /**
4194
- * Checks if the stepper is in controlled mode.
4195
- * @param props - The props of the stepper
4196
- * @returns True if the stepper is controlled, false otherwise
4197
- */
4198
- export declare const isControlled: (props: any) => props is ControlledStepperProperties;
4199
- export interface TabsButtonProperties {
4200
- /**
4201
- * Label of the tab button.
4202
- */
4203
- label: string;
4204
- /**
4205
- * Content of the tab button.
4206
- */
4207
- labelContent?: ReactNode;
4208
- /**
4209
- * Determines if tab is active.
4210
- * @default false
4211
- */
4212
- active?: boolean;
4213
- /**
4214
- * Position of the tab inside the tab list.
4215
- */
4216
- index: number;
4217
- /**
4218
- * Function executed when clicking the tab.
4219
- * @TJS-type (index: number) => void;
4220
- */
4221
- setActiveTab: (index: number) => void;
4222
- /**
4223
- * Determines if tab spans all available width.
4224
- * @default false
4225
- */
4226
- fullWidth?: boolean;
4227
- }
4228
- export type TabsButtonProps = TabsButtonProperties & HTMLAttributes<HTMLLIElement>;
4229
- declare const TabsButton: React.FC<TabsButtonProps>;
4230
- export interface TabsItemProperties {
4231
- /**
4232
- * Label of the tabpanel. Used to pair with it's corresponding tab control.
4233
- */
4234
- label: string;
4235
- /**
4236
- * Optional content of the tabpanel.
4237
- * @TJS-type ReactNode;
4238
- */
4239
- labelContent?: ReactNode;
4240
- /**
4241
- * The content of the tabs item.
4242
- * @TJS-type ReactNode | ReactNode[];
4243
- */
4244
- children: ReactNode | ReactNode[];
4245
- }
4246
- export type TabsItemProps = TabsItemProperties & HTMLAttributes<HTMLElement>;
4247
- declare const TabsItem: React.FC<TabsItemProps>;
4248
- export interface TabsComponents {
4249
- Button: typeof TabsButton;
4250
- Item: typeof TabsItem;
4251
- }
4252
- export interface BaseTabsProperties {
4253
- /**
4254
- * The content of the tabs.
4255
- * @TJS-type ReactElement<TabsButtonProps>[];
4256
- */
4257
- children: ReactElement<TabsButtonProps>[];
4258
- /**
4259
- * Sets the indicated tab as active by default. If unset, defaults to first tab.
4260
- */
4261
- preSelectedTab?: number;
4262
- /**
4263
- * Determines if tabs should span available width.
4264
- * @default false
4265
- */
4266
- fullWidth?: boolean;
4267
- }
4268
- export interface ControlledTabsProperties extends BaseTabsProperties {
4269
- /**
4270
- * The currently selected tab index.
4271
- */
4272
- selected: number;
4273
- /**
4274
- * Callback fired when the selected tab changes.
4275
- */
4276
- onTabSelect: (index: number) => void;
4277
- /**
4278
- * preSelectedTab is not used in controlled mode
4279
- */
4280
- preSelectedTab?: never;
4281
- }
4282
- export type TabsProps = (BaseTabsProperties | ControlledTabsProperties) & Omit<HTMLAttributes<HTMLDivElement>, "children" | "onSelect">;
4283
- export declare const Tabs: React.FC<TabsProps> & TabsComponents;
4284
- export interface TableBodyProperties {
4285
- /**
4286
- * The content of the table body.
4287
- * @TJS-type React.ReactNode
4288
- */
4289
- children: ReactNode;
4290
- }
4291
- export type TableBodyProps = TableBodyProperties & HTMLAttributes<HTMLTableSectionElement>;
4292
- declare const TableBody: React.FC<TableBodyProps>;
4293
- export interface TableCellProperties extends TableSprinkle {
4294
- /**
4295
- * The content of the table cell.
4296
- * @TJS-type React.ReactNode
4297
- */
4298
- children: ReactNode;
4299
- /**
4300
- * Type of html tag to create for the table cell.
4301
- * @default td
4302
- */
4303
- as?: "td" | "th";
4304
- /**
4305
- * Column index (0-based) to apply minWidth constraint from the Table's columnLayout.
4306
- * When provided, the cell will inherit minWidth from the corresponding column definition.
4307
- */
4308
- column?: number;
4309
- }
4310
- export type TableCellProps = TableCellProperties & HTMLAttributes<HTMLTableCellElement>;
4311
- declare const TableCell: React.FC<TableCellProps>;
4312
- export interface TableHeadProperties {
4313
- /**
4314
- * The content of the table head.
4315
- * @TJS-type React.ReactNode
4316
- */
4317
- children: ReactNode;
4318
- }
4319
- export type TableHeadProps = TableHeadProperties & HTMLAttributes<HTMLTableSectionElement>;
4320
- declare const TableHead: React.FC<TableHeadProps>;
4321
- export interface TableRowProperties extends TableSprinkle {
4322
- /**
4323
- * The content of the table row.
4324
- * @TJS-type React.ReactNode
4325
- */
4326
- children: ReactNode;
4327
- /**
4328
- * The ID of the table row.
4329
- */
4330
- id?: string;
4331
- /**
4332
- * Function to be passed when clicking on the table row.
4333
- * @TJS-type () => void;
4334
- */
4335
- onClick?: () => void;
4336
- }
4337
- export type TableRowProps = TableRowProperties & HTMLAttributes<HTMLTableRowElement>;
4338
- declare const TableRow: React.FC<TableRowProps>;
4339
- export interface TableComponents {
4340
- Body: typeof TableBody;
4341
- Cell: typeof TableCell;
4342
- Head: typeof TableHead;
4343
- Row: typeof TableRow;
4344
- }
4345
- export interface TableColumnLayout {
4346
- /**
4347
- * Unique identifier for the column.
4348
- */
4349
- id: string;
4350
- /**
4351
- * Fixed width applied to the column. Accepts any valid CSS width value.
4352
- */
4353
- width?: string;
4354
- /**
4355
- * Growth factor that distributes remaining space among columns without a fixed width.
4356
- * Must be a positive number greater than 0.
4357
- */
4358
- grow?: number;
4359
- /**
4360
- * Minimum width constraint for the column. The column will not shrink below this value.
4361
- * Only applies when using `grow`. Accepts any valid CSS width value.
4362
- */
4363
- minWidth?: string;
4364
- }
4365
- export interface TableProperties {
4366
- /**
4367
- * The content of the table.
4368
- * @TJS-type React.ReactNode
4369
- */
4370
- children: ReactNode;
4371
- /**
4372
- * Column sizing definitions applied from left to right. Use `width` for fixed columns and `grow` to distribute the remaining space proportionally.
4373
- */
4374
- columnLayout?: TableColumnLayout[];
4375
- }
4376
- export type TableProps = TableProperties & HTMLAttributes<HTMLTableElement>;
4377
- export declare const Table: React.FC<TableProps> & TableComponents;
4378
- export interface SegmentedControlButtonSkeletonProps {
4379
- /** Width of the skeleton button */
4380
- width?: string;
4381
- /** Height of the skeleton button */
4382
- height?: string;
4383
- }
4384
- export type SegmentedControlButtonProperties = PropsWithChildren<{
4385
- /**
4386
- * Unique identifier for the segment button.
4387
- * Required for proper state management and accessibility.
4388
- */
4389
- id: string;
4390
- /**
4391
- * Label of the segment used for accessibility.
4392
- */
4393
- label?: string;
4394
- /**
4395
- * Determines if segment spans all available width.
4396
- * @default false
4397
- */
4398
- fullWidth?: boolean;
4399
- }>;
4400
- export type SegmentedControlButtonProps = SegmentedControlButtonProperties & ButtonHTMLAttributes<HTMLButtonElement>;
4401
- export interface SegmentedControlButtonComponents {
4402
- Skeleton: React.FC<SegmentedControlButtonSkeletonProps>;
4403
- }
4404
- declare const SegmentedControlButton: PolymorphicForwardRefComponent<"button" | "a", SegmentedControlButtonProps> & SegmentedControlButtonComponents;
4405
- declare const SegmentedControlButtonSkeleton: React.FC<SegmentedControlButtonSkeletonProps>;
4406
- export interface SegmentedControlBaseProps {
4407
- /**
4408
- * The content of the segmented control.
4409
- * Should contain SegmentedControlButton components with unique id props.
4410
- */
4411
- children: ReactNode;
4412
- /**
4413
- * Determines if segments span all available width.
4414
- * @default false
4415
- */
4416
- fullWidth?: boolean;
4417
- }
4418
- /**
4419
- * Component composition structure for the SegmentedControl
4420
- */
4421
- export interface SegmentedControlComponents {
4422
- Button: typeof SegmentedControlButton;
4423
- ButtonSkeleton: typeof SegmentedControlButtonSkeleton;
4424
- }
4425
- export interface ControlledSegmentedControlProperties extends SegmentedControlBaseProps {
4426
- /**
4427
- * The currently selected segment IDs.
4428
- * Allows for single or multiple selection.
4429
- */
4430
- selectedSegments: string[];
4431
- /**
4432
- * Callback fired when the selected segments change.
4433
- * @param selectedIds Array of selected segment IDs
4434
- */
4435
- onSegmentsSelect?: (selectedIds: string[]) => void;
4436
- }
4437
- /**
4438
- * Props for the SegmentedControl component, supporting both controlled and uncontrolled modes
4439
- */
4440
- export type SegmentedControlProps = (SegmentedControlBaseProps | ControlledSegmentedControlProperties) & Omit<BoxProps, "display" | "backgroundColor" | "gap" | "borderRadius" | "children">;
4441
- /**
4442
- * SegmentedControl component for grouped selection controls
4443
- */
4444
- export declare const SegmentedControl: React.FC<SegmentedControlProps> & SegmentedControlComponents;
4445
- export interface SegmentedControlContextValue {
4446
- /**
4447
- * Register a button with its unique identifier
4448
- * @param id The unique identifier for the button
4449
- */
4450
- registerButton: (id: string) => void;
4451
- /**
4452
- * Unregister a button by its identifier
4453
- * @param id The identifier of the button to unregister
4454
- */
4455
- unregisterButton: (id: string) => void;
4456
- /**
4457
- * Toggle a segment's state by ID
4458
- * @param id The unique identifier of the segment to toggle
4459
- */
4460
- toggleSegment: (id: string) => void;
4461
- /**
4462
- * Check if a segment is currently selected by ID
4463
- * @param id The unique identifier of the segment to check
4464
- */
4465
- isSelected: (id: string) => boolean;
4466
- /**
4467
- * Whether buttons should span full width
4468
- */
4469
- fullWidth: boolean;
4470
- }
4471
- /**
4472
- * Hook to use SegmentedControl context with error if not found
4473
- * @throws Error if not within a SegmentedControl
4474
- */
4475
- export declare const useSegmentedControlContext: () => SegmentedControlContextValue;
4476
- export interface SplitButtonActionProperties {
4477
- /**
4478
- * The content of the action item.
4479
- * @TJS-type React.ReactNode
4480
- */
4481
- children: ReactNode;
4482
- /**
4483
- * Optional icon to display before the action text.
4484
- * @TJS-type React.ReactNode
4485
- */
4486
- icon?: ReactNode;
4487
- /**
4488
- * Callback function when the action is clicked.
4489
- * @TJS-type () => void;
4490
- */
4491
- onClick?: () => void;
4492
- /**
4493
- * Disables the action item.
4494
- * @default false
4495
- */
4496
- disabled?: boolean;
4497
- }
4498
- export type SplitButtonActionProps = SplitButtonActionProperties & Pick<BoxProps, "backgroundColor" | "borderWidth" | "display" | "alignItems" | "gap" | "p" | "borderRadius">;
4499
- declare const SplitButtonAction: React.FC<SplitButtonActionProps>;
4500
- export interface SplitButtonPrimaryProperties {
4501
- /**
4502
- * The content of the primary button.
4503
- * @TJS-type React.ReactNode
4504
- */
4505
- children: ReactNode;
4506
- /**
4507
- * Callback function when the primary button is clicked.
4508
- * @TJS-type () => void;
4509
- */
4510
- onClick?: () => void;
4511
- }
4512
- export type SplitButtonPrimaryProps = SplitButtonPrimaryProperties & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "children">;
4513
- declare const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps>;
4514
- export interface SplitButtonSecondaryProperties {
4515
- /**
4516
- * The content of the secondary dropdown menu.
4517
- * @TJS-type React.ReactNode
4518
- */
4519
- children: ReactNode;
4520
- /**
4521
- * Accessible label for the dropdown button.
4522
- * @default "Show more actions"
4523
- */
4524
- ariaLabel?: string;
4525
- }
4526
- export type SplitButtonSecondaryProps = SplitButtonSecondaryProperties & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">;
4527
- declare const SplitButtonSecondary: React.FC<SplitButtonSecondaryProps>;
4528
- export interface SplitButtonComponents {
4529
- Action: typeof SplitButtonAction;
4530
- Primary: typeof SplitButtonPrimary;
4531
- Secondary: typeof SplitButtonSecondary;
4532
- }
4533
- export interface SplitButtonProperties {
4534
- /**
4535
- * The subcomponents (Primary and Secondary).
4536
- * @TJS-type React.ReactNode
4537
- */
4538
- children: ReactNode;
4539
- /**
4540
- * Disables the entire split button.
4541
- * @default false
4542
- */
4543
- disabled?: boolean;
4544
- /**
4545
- * Controls the visibility of the popover.
4546
- */
4547
- open?: boolean;
4548
- /**
4549
- * Callback function to control popover opening and closing.
4550
- * @TJS-type (open: boolean) => void;
4551
- */
4552
- onOpenChange?: (open: boolean) => void;
4553
- /**
4554
- * Position of the popover relative to the button.
4555
- * @default bottom-end
4556
- */
4557
- popoverPosition?: PopoverProps["position"];
4558
- }
4559
- export type SplitButtonProps = SplitButtonProperties & Omit<BoxProps, "children" | "display" | "gap" | "position">;
4560
- /**
4561
- * SplitButton component allows users to perform actions by clicking a primary button and displaying a dropdown menu with additional actions.
4562
- */
4563
- export declare const SplitButton: React.FC<SplitButtonProps> & SplitButtonComponents;
4564
-
4565
- export {};