@frontify/fondue-components 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fondue-components.js +38 -24
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +18 -38
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components11.js +64 -40
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components12.js +19 -77
- package/dist/fondue-components12.js.map +1 -1
- package/dist/fondue-components13.js +22 -64
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components14.js +39 -46
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components15.js +6 -12
- package/dist/fondue-components15.js.map +1 -1
- package/dist/fondue-components16.js +46 -154
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +54 -117
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +28 -117
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +111 -20
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +65 -14
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +42 -59
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +32 -15
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +5 -19
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +12 -17
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +150 -12
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +110 -27
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +117 -24
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +21 -9
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +31 -109
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +11 -40
- package/dist/fondue-components3.js.map +1 -1
- package/dist/fondue-components30.js +28 -12
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +127 -40
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +21 -8
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +45 -21
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +14 -55
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +60 -18
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +15 -15
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +19 -2
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +16 -38
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +8 -0
- package/dist/fondue-components39.js.map +1 -0
- package/dist/fondue-components4.js +39 -45
- package/dist/fondue-components4.js.map +1 -1
- package/dist/fondue-components40.js +16 -0
- package/dist/fondue-components40.js.map +1 -0
- package/dist/fondue-components41.js +8 -0
- package/dist/fondue-components41.js.map +1 -0
- package/dist/fondue-components42.js +38 -0
- package/dist/fondue-components42.js.map +1 -0
- package/dist/fondue-components43.js +8 -0
- package/dist/fondue-components43.js.map +1 -0
- package/dist/fondue-components44.js +28 -0
- package/dist/fondue-components44.js.map +1 -0
- package/dist/fondue-components45.js +20 -0
- package/dist/fondue-components45.js.map +1 -0
- package/dist/fondue-components46.js +14 -0
- package/dist/fondue-components46.js.map +1 -0
- package/dist/fondue-components47.js +16 -0
- package/dist/fondue-components47.js.map +1 -0
- package/dist/fondue-components48.js +133 -0
- package/dist/fondue-components48.js.map +1 -0
- package/dist/fondue-components49.js +15 -0
- package/dist/fondue-components49.js.map +1 -0
- package/dist/fondue-components5.js +46 -82
- package/dist/fondue-components5.js.map +1 -1
- package/dist/fondue-components50.js +46 -0
- package/dist/fondue-components50.js.map +1 -0
- package/dist/fondue-components51.js +11 -0
- package/dist/fondue-components51.js.map +1 -0
- package/dist/fondue-components52.js +30 -0
- package/dist/fondue-components52.js.map +1 -0
- package/dist/fondue-components53.js +52 -0
- package/dist/fondue-components53.js.map +1 -0
- package/dist/fondue-components54.js +21 -0
- package/dist/fondue-components54.js.map +1 -0
- package/dist/fondue-components55.js +10 -0
- package/dist/fondue-components55.js.map +1 -0
- package/dist/fondue-components56.js +5 -0
- package/dist/fondue-components56.js.map +1 -0
- package/dist/fondue-components57.js +14 -0
- package/dist/fondue-components57.js.map +1 -0
- package/dist/fondue-components58.js +42 -0
- package/dist/fondue-components58.js.map +1 -0
- package/dist/fondue-components6.js +48 -30
- package/dist/fondue-components6.js.map +1 -1
- package/dist/fondue-components7.js +77 -98
- package/dist/fondue-components7.js.map +1 -1
- package/dist/fondue-components8.js +28 -56
- package/dist/fondue-components8.js.map +1 -1
- package/dist/fondue-components9.js +101 -22
- package/dist/fondue-components9.js.map +1 -1
- package/dist/index.d.ts +481 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AriaAttributes } from 'react';
|
|
1
2
|
import { ChangeEvent } from 'react';
|
|
2
3
|
import { FormEvent } from 'react';
|
|
3
4
|
import { ForwardedRef } from 'react';
|
|
@@ -10,6 +11,36 @@ import { ReactNode } from 'react';
|
|
|
10
11
|
import { RefAttributes } from 'react';
|
|
11
12
|
import { SyntheticEvent } from 'react';
|
|
12
13
|
|
|
14
|
+
declare type AriaLabelAttrs = Pick<AriaAttributes, 'aria-label'> & Pick<AriaAttributes, 'aria-labelledby'>;
|
|
15
|
+
|
|
16
|
+
declare type AtLeastOneAriaLabelAttr = AtLeastOneAttr<AriaLabelAttrs>;
|
|
17
|
+
|
|
18
|
+
declare type AtLeastOneAttr<T> = Partial<T> & {
|
|
19
|
+
[K in keyof T]-?: Required<Pick<T, K>>;
|
|
20
|
+
}[keyof T];
|
|
21
|
+
|
|
22
|
+
export declare const Box: {
|
|
23
|
+
({ as: Component, "data-test-id": dataTestId, children, ...props }: BoxProps): JSX_2.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
declare type BoxProps = LayoutComponentProps & {
|
|
28
|
+
/**
|
|
29
|
+
* The element to render the Box component as.
|
|
30
|
+
* @default 'div'
|
|
31
|
+
*/
|
|
32
|
+
as?: 'div' | 'span';
|
|
33
|
+
/**
|
|
34
|
+
* The display property.
|
|
35
|
+
* @default 'block'
|
|
36
|
+
*/
|
|
37
|
+
display?: Responsive<'none' | 'block' | 'inline-block' | 'inline'>;
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
'data-test-id'?: string;
|
|
40
|
+
} & CommonAriaProps;
|
|
41
|
+
|
|
42
|
+
declare type Breakpoint = keyof typeof screens;
|
|
43
|
+
|
|
13
44
|
export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement | null>>;
|
|
14
45
|
|
|
15
46
|
declare type ButtonAspect = 'default' | 'square';
|
|
@@ -129,6 +160,54 @@ declare type CheckboxProps = {
|
|
|
129
160
|
'aria-describedby'?: string;
|
|
130
161
|
};
|
|
131
162
|
|
|
163
|
+
declare type ColorFormat = 'HEX' | 'RGBA';
|
|
164
|
+
|
|
165
|
+
export declare const ColorPicker: {
|
|
166
|
+
Root: ForwardRefExoticComponent<ColorPickerProps & RefAttributes<HTMLDivElement>>;
|
|
167
|
+
Values: ForwardRefExoticComponent< {
|
|
168
|
+
currentColor?: RgbaColor;
|
|
169
|
+
onColorChange?: (color: RgbaColor) => void;
|
|
170
|
+
currentFormat?: "HEX" | "RGBA";
|
|
171
|
+
setCurrentFormat?: (format: "HEX" | "RGBA") => void;
|
|
172
|
+
'data-test-id'?: string;
|
|
173
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
174
|
+
Gradient: ForwardRefExoticComponent< {
|
|
175
|
+
currentColor?: RgbaColor;
|
|
176
|
+
onColorChange?: (color: RgbaColor) => void;
|
|
177
|
+
'data-test-id'?: string;
|
|
178
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
179
|
+
Input: ForwardRefExoticComponent<({
|
|
180
|
+
currentColor?: RgbaColor;
|
|
181
|
+
isOpen?: boolean;
|
|
182
|
+
onClear?: () => void;
|
|
183
|
+
'data-test-id'?: string;
|
|
184
|
+
} & CommonAriaAttrs) & RefAttributes<HTMLDivElement>>;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
declare type ColorPickerProps = {
|
|
188
|
+
/**
|
|
189
|
+
* The children of the color picker component. This can contain multiple `ColorPicker.Values` or `ColorPicker.Gradient` components.
|
|
190
|
+
*/
|
|
191
|
+
children?: ReactNode;
|
|
192
|
+
/**
|
|
193
|
+
* The active color in the color picker
|
|
194
|
+
*/
|
|
195
|
+
currentColor?: RgbaColor;
|
|
196
|
+
/**
|
|
197
|
+
* Event handler called when the color changes
|
|
198
|
+
*/
|
|
199
|
+
onColorChange?: (color: RgbaColor) => void;
|
|
200
|
+
/**
|
|
201
|
+
* The default format to use for the color input
|
|
202
|
+
* @default "HEX"
|
|
203
|
+
*/
|
|
204
|
+
defaultFormat?: ColorFormat;
|
|
205
|
+
/**
|
|
206
|
+
* The test id of the color picker
|
|
207
|
+
*/
|
|
208
|
+
'data-test-id'?: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
132
211
|
declare type ComboboxProps = {
|
|
133
212
|
/**
|
|
134
213
|
* Children of the Combobox component. This can contain the `Select.Slot` components for the label, decorators, clear action and menu.
|
|
@@ -150,6 +229,11 @@ declare type ComboboxProps = {
|
|
|
150
229
|
* The placeholder in the combobox component.
|
|
151
230
|
*/
|
|
152
231
|
placeholder?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Status of the text input
|
|
234
|
+
* @default "neutral"
|
|
235
|
+
*/
|
|
236
|
+
status?: 'neutral' | 'success' | 'error';
|
|
153
237
|
/**
|
|
154
238
|
* Disables the combobox component.
|
|
155
239
|
*/
|
|
@@ -164,6 +248,39 @@ declare type ComboboxProps = {
|
|
|
164
248
|
'data-test-id'?: string;
|
|
165
249
|
};
|
|
166
250
|
|
|
251
|
+
declare type CommonAriaAttrs = Pick<AriaAttributes, 'aria-describedby'> & AtLeastOneAriaLabelAttr;
|
|
252
|
+
|
|
253
|
+
declare type CommonAriaProps = {
|
|
254
|
+
/**
|
|
255
|
+
* Aria label for the component.
|
|
256
|
+
*/
|
|
257
|
+
'aria-label'?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Aria label for the component when it is hidden.
|
|
260
|
+
*/
|
|
261
|
+
'aria-hidden'?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Aria role for the component.
|
|
264
|
+
*/
|
|
265
|
+
role?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Aria described by for the component.
|
|
268
|
+
*/
|
|
269
|
+
'aria-describedby'?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Aria labelled by for the component.
|
|
272
|
+
*/
|
|
273
|
+
'aria-labelledby'?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Aria expanded for the component.
|
|
276
|
+
*/
|
|
277
|
+
'aria-expanded'?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Aria has popup for the component.
|
|
280
|
+
*/
|
|
281
|
+
'aria-haspopup'?: boolean;
|
|
282
|
+
};
|
|
283
|
+
|
|
167
284
|
export declare const Dialog: {
|
|
168
285
|
Root: {
|
|
169
286
|
({ children, ...props }: DialogRootProps): JSX_2.Element;
|
|
@@ -412,6 +529,55 @@ declare type DropdownTriggerProps = {
|
|
|
412
529
|
'data-test-id'?: string;
|
|
413
530
|
};
|
|
414
531
|
|
|
532
|
+
export declare const Flex: {
|
|
533
|
+
({ as: Component, "data-test-id": dataTestId, children, ...props }: FlexProps): JSX_2.Element;
|
|
534
|
+
displayName: string;
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
declare type FlexProps = LayoutComponentProps & {
|
|
538
|
+
/**
|
|
539
|
+
* The element to render the Flex component as.
|
|
540
|
+
* @default 'div'
|
|
541
|
+
*/
|
|
542
|
+
as?: 'div' | 'span';
|
|
543
|
+
/**
|
|
544
|
+
* The display property.
|
|
545
|
+
* @default 'flex'
|
|
546
|
+
*/
|
|
547
|
+
display?: Responsive<'none' | 'flex' | 'inline-flex'>;
|
|
548
|
+
/**
|
|
549
|
+
* The direction of the children.
|
|
550
|
+
* @default 'row'
|
|
551
|
+
*/
|
|
552
|
+
direction?: Responsive<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
|
|
553
|
+
/**
|
|
554
|
+
* The alignment of the children.
|
|
555
|
+
*/
|
|
556
|
+
align?: Responsive<'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline'>;
|
|
557
|
+
/**
|
|
558
|
+
* The justification of the children.
|
|
559
|
+
*/
|
|
560
|
+
justify?: Responsive<'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly'>;
|
|
561
|
+
/**
|
|
562
|
+
* The wrap property.
|
|
563
|
+
*/
|
|
564
|
+
wrap?: Responsive<'nowrap' | 'wrap' | 'wrap-reverse'>;
|
|
565
|
+
/**
|
|
566
|
+
* The gap between the children.
|
|
567
|
+
*/
|
|
568
|
+
gap?: Responsive<SizeValue>;
|
|
569
|
+
/**
|
|
570
|
+
* The horizontal gap between the children.
|
|
571
|
+
*/
|
|
572
|
+
gapX?: Responsive<SizeValue>;
|
|
573
|
+
/**
|
|
574
|
+
* The vertical gap between the children.
|
|
575
|
+
*/
|
|
576
|
+
gapY?: Responsive<SizeValue>;
|
|
577
|
+
children?: ReactNode;
|
|
578
|
+
'data-test-id'?: string;
|
|
579
|
+
} & CommonAriaProps;
|
|
580
|
+
|
|
415
581
|
export declare const Flyout: {
|
|
416
582
|
Root: {
|
|
417
583
|
({ children, ...props }: FlyoutRootProps): JSX_2.Element;
|
|
@@ -449,7 +615,7 @@ declare type FlyoutContentProps = {
|
|
|
449
615
|
* Define the padding of the flyout
|
|
450
616
|
* @default "compact"
|
|
451
617
|
*/
|
|
452
|
-
padding?: 'compact' | 'comfortable' | 'spacious';
|
|
618
|
+
padding?: 'tight' | 'compact' | 'comfortable' | 'spacious';
|
|
453
619
|
/**
|
|
454
620
|
* Define the maximum width of the flyout
|
|
455
621
|
* @default "360px"
|
|
@@ -509,6 +675,58 @@ declare const ForwardedRefTextFieldRoot: ForwardRefExoticComponent<TextInputProp
|
|
|
509
675
|
|
|
510
676
|
declare const ForwardedRefTextFieldSlot: ForwardRefExoticComponent<TextFieldSlotProps & RefAttributes<HTMLDivElement>>;
|
|
511
677
|
|
|
678
|
+
export declare const Grid: {
|
|
679
|
+
({ as: Component, "data-test-id": dataTestId, children, ...props }: GridProps): JSX_2.Element;
|
|
680
|
+
displayName: string;
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
declare type GridProps = LayoutComponentProps & {
|
|
684
|
+
/**
|
|
685
|
+
* The element to render the Grid component as.
|
|
686
|
+
* @default 'div'
|
|
687
|
+
*/
|
|
688
|
+
as?: 'div' | 'span';
|
|
689
|
+
/**
|
|
690
|
+
* The display property.
|
|
691
|
+
* @default 'grid'
|
|
692
|
+
*/
|
|
693
|
+
display?: 'none' | 'grid' | 'inline-grid';
|
|
694
|
+
/**
|
|
695
|
+
* The columns property.
|
|
696
|
+
*/
|
|
697
|
+
columns?: Responsive<string | number>;
|
|
698
|
+
/**
|
|
699
|
+
* The rows property.
|
|
700
|
+
*/
|
|
701
|
+
rows?: Responsive<string | number>;
|
|
702
|
+
/**
|
|
703
|
+
* The flow property.
|
|
704
|
+
*/
|
|
705
|
+
flow?: Responsive<'row' | 'column' | 'dense' | 'row-dense' | 'column-dense'>;
|
|
706
|
+
/**
|
|
707
|
+
* The alignment of the children.
|
|
708
|
+
*/
|
|
709
|
+
align?: Responsive<'start' | 'center' | 'end' | 'baseline' | 'stretch'>;
|
|
710
|
+
/**
|
|
711
|
+
* The justification of the children.
|
|
712
|
+
*/
|
|
713
|
+
justify?: Responsive<'start' | 'center' | 'end' | 'between'>;
|
|
714
|
+
/**
|
|
715
|
+
* The gap between the children.
|
|
716
|
+
*/
|
|
717
|
+
gap?: Responsive<SizeValue>;
|
|
718
|
+
/**
|
|
719
|
+
* The horizontal gap between the children.
|
|
720
|
+
*/
|
|
721
|
+
gapX?: Responsive<SizeValue>;
|
|
722
|
+
/**
|
|
723
|
+
* The vertical gap between the children.
|
|
724
|
+
*/
|
|
725
|
+
gapY?: Responsive<SizeValue>;
|
|
726
|
+
children?: ReactNode;
|
|
727
|
+
'data-test-id'?: string;
|
|
728
|
+
} & CommonAriaProps;
|
|
729
|
+
|
|
512
730
|
export declare const Label: ForwardRefExoticComponent<LabelProps & RefAttributes<HTMLLabelElement>>;
|
|
513
731
|
|
|
514
732
|
declare type LabelProps = {
|
|
@@ -527,6 +745,121 @@ declare type LabelProps = {
|
|
|
527
745
|
'data-test-id'?: string;
|
|
528
746
|
};
|
|
529
747
|
|
|
748
|
+
declare type LayoutComponentProps = {
|
|
749
|
+
/**
|
|
750
|
+
* The margin property of the component.
|
|
751
|
+
*/
|
|
752
|
+
m?: Responsive<SpacingValue>;
|
|
753
|
+
/**
|
|
754
|
+
* The horizontal margin property of the component.
|
|
755
|
+
*/
|
|
756
|
+
mx?: Responsive<SpacingValue>;
|
|
757
|
+
/**
|
|
758
|
+
* The vertical margin property of the component.
|
|
759
|
+
*/
|
|
760
|
+
my?: Responsive<SpacingValue>;
|
|
761
|
+
/**
|
|
762
|
+
* The margin-top property of the component.
|
|
763
|
+
*/
|
|
764
|
+
mt?: Responsive<SpacingValue>;
|
|
765
|
+
/**
|
|
766
|
+
* The margin-right property of the component.
|
|
767
|
+
*/
|
|
768
|
+
mr?: Responsive<SpacingValue>;
|
|
769
|
+
/**
|
|
770
|
+
* The margin-bottom property of the component.
|
|
771
|
+
*/
|
|
772
|
+
mb?: Responsive<SpacingValue>;
|
|
773
|
+
/**
|
|
774
|
+
* The margin-left property of the component.
|
|
775
|
+
*/
|
|
776
|
+
ml?: Responsive<SpacingValue>;
|
|
777
|
+
/**
|
|
778
|
+
* The padding property of the component.
|
|
779
|
+
*/
|
|
780
|
+
p?: Responsive<SpacingValue>;
|
|
781
|
+
/**
|
|
782
|
+
* The horizontal padding property of the component.
|
|
783
|
+
*/
|
|
784
|
+
px?: Responsive<SpacingValue>;
|
|
785
|
+
/**
|
|
786
|
+
* The vertical padding property of the component.
|
|
787
|
+
*/
|
|
788
|
+
py?: Responsive<SpacingValue>;
|
|
789
|
+
/**
|
|
790
|
+
* The padding-top property of the component.
|
|
791
|
+
*/
|
|
792
|
+
pt?: Responsive<SpacingValue>;
|
|
793
|
+
/**
|
|
794
|
+
* The padding-right property of the component.
|
|
795
|
+
*/
|
|
796
|
+
pr?: Responsive<SpacingValue>;
|
|
797
|
+
/**
|
|
798
|
+
* The padding-bottom property of the component.
|
|
799
|
+
*/
|
|
800
|
+
pb?: Responsive<SpacingValue>;
|
|
801
|
+
/**
|
|
802
|
+
* The padding-left property of the component.
|
|
803
|
+
*/
|
|
804
|
+
pl?: Responsive<SpacingValue>;
|
|
805
|
+
/**
|
|
806
|
+
* The width property of the component.
|
|
807
|
+
*/
|
|
808
|
+
width?: Responsive<SizeValue>;
|
|
809
|
+
/**
|
|
810
|
+
* The min-width property of the component.
|
|
811
|
+
*/
|
|
812
|
+
minWidth?: Responsive<SizeValue>;
|
|
813
|
+
/**
|
|
814
|
+
* The max-width property of the component.
|
|
815
|
+
*/
|
|
816
|
+
maxWidth?: Responsive<SizeValue>;
|
|
817
|
+
/**
|
|
818
|
+
* The height property of the component.
|
|
819
|
+
*/
|
|
820
|
+
height?: Responsive<SizeValue>;
|
|
821
|
+
/**
|
|
822
|
+
* The min-height property of the component.
|
|
823
|
+
*/
|
|
824
|
+
minHeight?: Responsive<SizeValue>;
|
|
825
|
+
/**
|
|
826
|
+
* The max-height property of the component.
|
|
827
|
+
*/
|
|
828
|
+
maxHeight?: Responsive<SizeValue>;
|
|
829
|
+
/**
|
|
830
|
+
* The overflow property of the component.
|
|
831
|
+
*/
|
|
832
|
+
overflow?: Responsive<OverflowValue>;
|
|
833
|
+
/**
|
|
834
|
+
* The horizontal overflow property of the component.
|
|
835
|
+
*/
|
|
836
|
+
overflowX?: Responsive<OverflowValue>;
|
|
837
|
+
/**
|
|
838
|
+
* The vertical overflow property of the component.
|
|
839
|
+
*/
|
|
840
|
+
overflowY?: Responsive<OverflowValue>;
|
|
841
|
+
/**
|
|
842
|
+
* The position property of the component.
|
|
843
|
+
*/
|
|
844
|
+
position?: Responsive<PositionValue>;
|
|
845
|
+
/**
|
|
846
|
+
* The top property of the component.
|
|
847
|
+
*/
|
|
848
|
+
top?: Responsive<string>;
|
|
849
|
+
/**
|
|
850
|
+
* The right property of the component.
|
|
851
|
+
*/
|
|
852
|
+
right?: Responsive<string>;
|
|
853
|
+
/**
|
|
854
|
+
* The bottom property of the component.
|
|
855
|
+
*/
|
|
856
|
+
bottom?: Responsive<string>;
|
|
857
|
+
/**
|
|
858
|
+
* The left property of the component.
|
|
859
|
+
*/
|
|
860
|
+
left?: Responsive<string>;
|
|
861
|
+
};
|
|
862
|
+
|
|
530
863
|
export declare const LoadingBar: ForwardRefExoticComponent<LoadingBarProps & RefAttributes<HTMLDivElement>>;
|
|
531
864
|
|
|
532
865
|
declare type LoadingBarProps = {
|
|
@@ -569,6 +902,48 @@ declare type LoadingBarProps = {
|
|
|
569
902
|
'aria-labelledby': string;
|
|
570
903
|
});
|
|
571
904
|
|
|
905
|
+
declare type OverflowValue = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto';
|
|
906
|
+
|
|
907
|
+
declare type PositionValue = 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky';
|
|
908
|
+
|
|
909
|
+
declare type Responsive<TValue> = ({
|
|
910
|
+
[key in Breakpoint]?: TValue;
|
|
911
|
+
} & {
|
|
912
|
+
base?: TValue;
|
|
913
|
+
}) | TValue;
|
|
914
|
+
|
|
915
|
+
declare type RgbaColor = {
|
|
916
|
+
red: number;
|
|
917
|
+
green: number;
|
|
918
|
+
blue: number;
|
|
919
|
+
alpha?: number;
|
|
920
|
+
name?: string;
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
declare const screens: {
|
|
924
|
+
xs: string;
|
|
925
|
+
sm: string;
|
|
926
|
+
md: string;
|
|
927
|
+
lg: string;
|
|
928
|
+
xl: string;
|
|
929
|
+
'2xl': string;
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
export declare const Section: {
|
|
933
|
+
({ "data-test-id": dataTestId, children, ...props }: SectionProps): JSX_2.Element;
|
|
934
|
+
displayName: string;
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
declare type SectionProps = LayoutComponentProps & {
|
|
938
|
+
/**
|
|
939
|
+
* The display property.
|
|
940
|
+
* @default 'block'
|
|
941
|
+
*/
|
|
942
|
+
display?: Responsive<'none' | 'block' | 'inline-block' | 'inline'>;
|
|
943
|
+
children?: ReactNode;
|
|
944
|
+
'data-test-id'?: string;
|
|
945
|
+
} & CommonAriaProps;
|
|
946
|
+
|
|
572
947
|
export declare const SegmentedControl: {
|
|
573
948
|
Root: ForwardRefExoticComponent<SegmentedControlRootProps & RefAttributes<HTMLDivElement>>;
|
|
574
949
|
Item: ForwardRefExoticComponent<SegmentedControlItemProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -630,6 +1005,11 @@ declare type SelectComponentProps = {
|
|
|
630
1005
|
* The placeholder in the select component.
|
|
631
1006
|
*/
|
|
632
1007
|
placeholder?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* Status of the text input
|
|
1010
|
+
* @default "neutral"
|
|
1011
|
+
*/
|
|
1012
|
+
status?: 'neutral' | 'success' | 'error';
|
|
633
1013
|
/**
|
|
634
1014
|
* Disables the select component.
|
|
635
1015
|
*/
|
|
@@ -645,7 +1025,7 @@ declare type SelectComponentProps = {
|
|
|
645
1025
|
};
|
|
646
1026
|
|
|
647
1027
|
declare const SelectInput: {
|
|
648
|
-
({ children, onSelect, value, defaultValue, placeholder, disabled, "aria-label": ariaLabel, "data-test-id": dataTestId, }: SelectComponentProps, forwardedRef: ForwardedRef<HTMLDivElement>): JSX_2.Element;
|
|
1028
|
+
({ children, onSelect, value, defaultValue, placeholder, status, disabled, "aria-label": ariaLabel, "data-test-id": dataTestId, }: SelectComponentProps, forwardedRef: ForwardedRef<HTMLDivElement>): JSX_2.Element;
|
|
649
1029
|
displayName: string;
|
|
650
1030
|
};
|
|
651
1031
|
|
|
@@ -702,6 +1082,104 @@ declare type SelectSlotProps = {
|
|
|
702
1082
|
'data-test-id'?: string;
|
|
703
1083
|
};
|
|
704
1084
|
|
|
1085
|
+
declare type SizeValue = (string & {}) | 'auto' | 'fit-content' | 'intrinsic' | 'max-content' | 'min-content';
|
|
1086
|
+
|
|
1087
|
+
export declare const Slider: ForwardRefExoticComponent<SliderProps & RefAttributes<HTMLButtonElement>>;
|
|
1088
|
+
|
|
1089
|
+
declare type SliderProps = {
|
|
1090
|
+
id?: string;
|
|
1091
|
+
name?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* The default value of the slider
|
|
1094
|
+
* Used for uncontrolled components
|
|
1095
|
+
* @default [0]
|
|
1096
|
+
*/
|
|
1097
|
+
defaultValue?: number[];
|
|
1098
|
+
/**
|
|
1099
|
+
* The controlled value of the slider
|
|
1100
|
+
* @default [0]
|
|
1101
|
+
*/
|
|
1102
|
+
value?: number[];
|
|
1103
|
+
/**
|
|
1104
|
+
* Minimum value of the slider
|
|
1105
|
+
* @default 0
|
|
1106
|
+
*/
|
|
1107
|
+
min?: number;
|
|
1108
|
+
/**
|
|
1109
|
+
* Maximum value of the slider
|
|
1110
|
+
* @default 100
|
|
1111
|
+
*/
|
|
1112
|
+
max?: number;
|
|
1113
|
+
/**
|
|
1114
|
+
* The granularity with which the slider can step through values
|
|
1115
|
+
* @default 1
|
|
1116
|
+
*/
|
|
1117
|
+
step?: number;
|
|
1118
|
+
/**
|
|
1119
|
+
* The minimum steps between thumbs in a range slider
|
|
1120
|
+
* @default 0
|
|
1121
|
+
*/
|
|
1122
|
+
minStepsBetweenThumbs?: number;
|
|
1123
|
+
/**
|
|
1124
|
+
* Disable the slider
|
|
1125
|
+
* @default false
|
|
1126
|
+
*/
|
|
1127
|
+
disabled?: boolean;
|
|
1128
|
+
onChange?: (value: number[]) => void;
|
|
1129
|
+
onCommit?: (value: number[]) => void;
|
|
1130
|
+
'data-test-id'?: string;
|
|
1131
|
+
} & CommonAriaAttrs;
|
|
1132
|
+
|
|
1133
|
+
declare type SpacingValue = (string & {}) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64;
|
|
1134
|
+
|
|
1135
|
+
export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLButtonElement>>;
|
|
1136
|
+
|
|
1137
|
+
declare type SwitchProps = {
|
|
1138
|
+
id?: string;
|
|
1139
|
+
name?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* The size of the switch component.
|
|
1142
|
+
* @default medium
|
|
1143
|
+
*/
|
|
1144
|
+
size?: 'small' | 'medium' | 'large';
|
|
1145
|
+
/**
|
|
1146
|
+
* The active value in the select component. This is used to control the select externally.
|
|
1147
|
+
* @default false
|
|
1148
|
+
*/
|
|
1149
|
+
value?: boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* The default value of the select component. Used for uncontrolled usages.
|
|
1152
|
+
* @default false
|
|
1153
|
+
*/
|
|
1154
|
+
defaultValue?: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* Disables the select component.
|
|
1157
|
+
* @default false
|
|
1158
|
+
*/
|
|
1159
|
+
disabled?: boolean;
|
|
1160
|
+
/**
|
|
1161
|
+
* Whether the switch is required.
|
|
1162
|
+
* @default false
|
|
1163
|
+
*/
|
|
1164
|
+
required?: boolean;
|
|
1165
|
+
/**
|
|
1166
|
+
* Callback function that is called when the switch is toggled.
|
|
1167
|
+
* @param checked - The new checked state of the switch
|
|
1168
|
+
*/
|
|
1169
|
+
onChange?: (checked: boolean) => void;
|
|
1170
|
+
/**
|
|
1171
|
+
* Event handler called when the checkbox is blurred
|
|
1172
|
+
* @param event - The event object
|
|
1173
|
+
*/
|
|
1174
|
+
onBlur?: (event: FormEvent<HTMLButtonElement>) => void;
|
|
1175
|
+
/**
|
|
1176
|
+
* Event handler called when the checkbox is focused
|
|
1177
|
+
* @param event - The event object
|
|
1178
|
+
*/
|
|
1179
|
+
onFocus?: (event: FormEvent<HTMLButtonElement>) => void;
|
|
1180
|
+
'data-test-id'?: string;
|
|
1181
|
+
} & CommonAriaAttrs;
|
|
1182
|
+
|
|
705
1183
|
declare const TextFieldRoot: {
|
|
706
1184
|
({ children, className, status, "data-test-id": dataTestId, ...inputProps }: TextInputProps, ref: ForwardedRef<HTMLInputElement>): JSX_2.Element;
|
|
707
1185
|
displayName: string;
|
|
@@ -819,7 +1297,7 @@ export declare const Tooltip: {
|
|
|
819
1297
|
|
|
820
1298
|
declare type TooltipContentProps = {
|
|
821
1299
|
/**
|
|
822
|
-
* @default spacious
|
|
1300
|
+
* @default "spacious"
|
|
823
1301
|
*/
|
|
824
1302
|
padding?: 'spacious' | 'compact';
|
|
825
1303
|
/**
|