@marigold/components 12.0.1 → 12.0.3
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/index.d.mts +116 -61
- package/dist/index.d.ts +116 -61
- package/dist/index.js +497 -421
- package/dist/index.mjs +324 -248
- package/package.json +25 -25
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Orientation, RefObject, AriaLabelingProps as AriaLabelingProps$1 } from '@react-types/shared';
|
|
2
2
|
export { Selection } from '@react-types/shared';
|
|
3
3
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
4
|
-
import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, TextAlignProp, ObjectFitProp, ObjectPositionProp,
|
|
4
|
+
import { GapSpaceProp, AspectProp, WidthProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, PlaceItemsProp, MaxWidthProp, HeightProp, alignment, TextAlignProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp } from '@marigold/system';
|
|
5
5
|
export { DateFormat, NumericFormat, ThemeProvider, useTheme } from '@marigold/system';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import RAC, { ValidationResult, Key, DialogProps as DialogProps$1, DateValue, SlotProps, TagListProps, ProgressBarProps } from 'react-aria-components';
|
|
7
|
+
import RAC, { ValidationResult, Key, DialogProps as DialogProps$1, DateValue, SlotProps, TagListProps, ProgressBarProps, TimeValue } from 'react-aria-components';
|
|
8
8
|
export { RouterProvider } from 'react-aria-components';
|
|
9
9
|
import * as react from 'react';
|
|
10
10
|
import react__default, { ReactNode, ReactElement, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, CSSProperties, Dispatch, SetStateAction, JSX } from 'react';
|
|
@@ -17,8 +17,8 @@ import { AriaTableProps } from '@react-aria/table';
|
|
|
17
17
|
import { TableStateProps, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1, RowProps as RowProps$1 } from '@react-stately/table';
|
|
18
18
|
export { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
19
19
|
|
|
20
|
-
type RemovedProps$
|
|
21
|
-
interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$
|
|
20
|
+
type RemovedProps$s = 'isDisabled' | 'isExpanded';
|
|
21
|
+
interface DisclosureProps extends Omit<RAC.DisclosureProps, RemovedProps$s> {
|
|
22
22
|
/** Whether the item is disabled. */
|
|
23
23
|
disabled?: RAC.DisclosureProps['isDisabled'];
|
|
24
24
|
/** Whether the item is expanded (controlled). */
|
|
@@ -34,8 +34,8 @@ interface AccordionHeaderProps {
|
|
|
34
34
|
children?: ReactNode;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
type RemovedProps$
|
|
38
|
-
interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$
|
|
37
|
+
type RemovedProps$r = 'isDisabled';
|
|
38
|
+
interface AccordionProps extends Omit<RAC.DisclosureGroupProps, RemovedProps$r> {
|
|
39
39
|
/** Whether all items are disabled. */
|
|
40
40
|
disabled?: RAC.DisclosureGroupProps['isDisabled'];
|
|
41
41
|
variant?: string;
|
|
@@ -152,8 +152,8 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
|
|
|
152
152
|
}
|
|
153
153
|
declare const _ListBox: ListBoxComponent;
|
|
154
154
|
|
|
155
|
-
type RemovedProps$
|
|
156
|
-
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$
|
|
155
|
+
type RemovedProps$q = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
|
|
156
|
+
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$q>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
157
157
|
/**
|
|
158
158
|
* The value of the input (uncontrolled).
|
|
159
159
|
*/
|
|
@@ -220,8 +220,8 @@ interface AutocompleteComponent extends ForwardRefExoticComponent<AutocompletePr
|
|
|
220
220
|
}
|
|
221
221
|
declare const _Autocomplete: AutocompleteComponent;
|
|
222
222
|
|
|
223
|
-
type RemovedProps$
|
|
224
|
-
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$
|
|
223
|
+
type RemovedProps$p = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange';
|
|
224
|
+
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$p>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
225
225
|
variant?: string;
|
|
226
226
|
size?: string;
|
|
227
227
|
/**
|
|
@@ -302,8 +302,8 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
302
302
|
}
|
|
303
303
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
304
304
|
|
|
305
|
-
type RemovedProps$
|
|
306
|
-
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$
|
|
305
|
+
type RemovedProps$o = 'isDisabled' | 'isPending';
|
|
306
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$o> {
|
|
307
307
|
variant?: string;
|
|
308
308
|
size?: string;
|
|
309
309
|
/**
|
|
@@ -361,8 +361,8 @@ interface CenterProps extends GapSpaceProp, AriaRegionProps {
|
|
|
361
361
|
}
|
|
362
362
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
363
363
|
|
|
364
|
-
type RemovedProps$
|
|
365
|
-
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$
|
|
364
|
+
type RemovedProps$n = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
365
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$n>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
366
366
|
/**
|
|
367
367
|
* The children of the component
|
|
368
368
|
*/
|
|
@@ -402,8 +402,8 @@ interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$m
|
|
|
402
402
|
}
|
|
403
403
|
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
404
404
|
|
|
405
|
-
type RemovedProps$
|
|
406
|
-
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$
|
|
405
|
+
type RemovedProps$m = 'children' | 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
|
|
406
|
+
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$m> {
|
|
407
407
|
variant?: string;
|
|
408
408
|
size?: string;
|
|
409
409
|
/**
|
|
@@ -535,14 +535,14 @@ interface DialogTitleProps {
|
|
|
535
535
|
}
|
|
536
536
|
declare const DialogTitle: ({ variant, size, children }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
537
537
|
|
|
538
|
-
type RemovedProps$
|
|
538
|
+
type RemovedProps$l = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
|
|
539
539
|
interface ModalProps$1 extends RAC.ModalOverlayProps {
|
|
540
540
|
open?: boolean;
|
|
541
541
|
dismissable?: boolean;
|
|
542
542
|
keyboardDismissable?: boolean;
|
|
543
543
|
size?: string;
|
|
544
544
|
}
|
|
545
|
-
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$
|
|
545
|
+
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$l> {
|
|
546
546
|
}
|
|
547
547
|
declare const _DialogTrigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode;
|
|
548
548
|
|
|
@@ -703,9 +703,17 @@ interface GridProps extends GapSpaceProp, HeightProp, AriaRegionProps {
|
|
|
703
703
|
* Children of the layout.
|
|
704
704
|
*/
|
|
705
705
|
children?: ReactNode;
|
|
706
|
+
/**
|
|
707
|
+
* Horizontal alignment for the children.
|
|
708
|
+
*/
|
|
709
|
+
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
710
|
+
/**
|
|
711
|
+
* Vertical alignment for the children.
|
|
712
|
+
*/
|
|
713
|
+
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
706
714
|
}
|
|
707
715
|
declare const Grid: {
|
|
708
|
-
({ children, areas, columns, rows, height, space, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
716
|
+
({ children, areas, columns, rows, alignX, alignY, height, space, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
709
717
|
Area: ({ name, children }: GridAreaProps) => react_jsx_runtime.JSX.Element;
|
|
710
718
|
};
|
|
711
719
|
|
|
@@ -771,8 +779,8 @@ interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
|
771
779
|
}
|
|
772
780
|
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
773
781
|
|
|
774
|
-
type RemovedProps$
|
|
775
|
-
interface InputProps extends Omit<RAC.InputProps, RemovedProps$
|
|
782
|
+
type RemovedProps$k = 'className' | 'style' | 'size';
|
|
783
|
+
interface InputProps extends Omit<RAC.InputProps, RemovedProps$k> {
|
|
776
784
|
icon?: ReactElement<any>;
|
|
777
785
|
action?: ReactElement<any>;
|
|
778
786
|
variant?: string;
|
|
@@ -781,8 +789,8 @@ interface InputProps extends Omit<RAC.InputProps, RemovedProps$j> {
|
|
|
781
789
|
}
|
|
782
790
|
declare const _Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
783
791
|
|
|
784
|
-
type RemovedProps$
|
|
785
|
-
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$
|
|
792
|
+
type RemovedProps$j = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'label' | 'children' | 'style';
|
|
793
|
+
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$j>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
786
794
|
variant?: string;
|
|
787
795
|
size?: string;
|
|
788
796
|
/**
|
|
@@ -817,8 +825,8 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
817
825
|
}
|
|
818
826
|
declare const _DateField: react.ForwardRefExoticComponent<DateFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
819
827
|
|
|
820
|
-
type RemovedProps$
|
|
821
|
-
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
828
|
+
type RemovedProps$i = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
|
|
829
|
+
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$i> {
|
|
822
830
|
/**
|
|
823
831
|
* Disables the Calendar.
|
|
824
832
|
* @default false
|
|
@@ -842,8 +850,8 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
842
850
|
}
|
|
843
851
|
declare const _Calendar: ({ disabled, readOnly, size, variant, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
844
852
|
|
|
845
|
-
type RemovedProps$
|
|
846
|
-
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$
|
|
853
|
+
type RemovedProps$h = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
854
|
+
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$h>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
847
855
|
/**
|
|
848
856
|
* Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
|
|
849
857
|
*/
|
|
@@ -907,15 +915,15 @@ type InsetProps = (AriaRegionProps & {
|
|
|
907
915
|
});
|
|
908
916
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
909
917
|
|
|
910
|
-
type RemovedProps$
|
|
911
|
-
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$
|
|
918
|
+
type RemovedProps$g = 'className';
|
|
919
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$g> {
|
|
912
920
|
size?: string;
|
|
913
921
|
variant?: string;
|
|
914
922
|
}
|
|
915
923
|
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
916
924
|
|
|
917
|
-
type RemovedProps$
|
|
918
|
-
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$
|
|
925
|
+
type RemovedProps$f = 'className' | 'isDisabled' | 'slot';
|
|
926
|
+
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$f> {
|
|
919
927
|
variant?: string;
|
|
920
928
|
size?: string;
|
|
921
929
|
/**
|
|
@@ -951,14 +959,14 @@ declare const List: {
|
|
|
951
959
|
Item: ({ children, ...props }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
952
960
|
};
|
|
953
961
|
|
|
954
|
-
type RemovedProps$
|
|
955
|
-
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$
|
|
962
|
+
type RemovedProps$e = 'className' | 'style' | 'children';
|
|
963
|
+
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$e> {
|
|
956
964
|
title?: string;
|
|
957
965
|
children: ReactNode;
|
|
958
966
|
}
|
|
959
967
|
|
|
960
|
-
type RemovedProps$
|
|
961
|
-
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$
|
|
968
|
+
type RemovedProps$d = 'style' | 'className';
|
|
969
|
+
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$d>;
|
|
962
970
|
|
|
963
971
|
interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
|
|
964
972
|
keyboardDismissDisabled?: boolean;
|
|
@@ -968,8 +976,8 @@ interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDism
|
|
|
968
976
|
}
|
|
969
977
|
declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
|
|
970
978
|
|
|
971
|
-
type RemovedProps$
|
|
972
|
-
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$
|
|
979
|
+
type RemovedProps$c = 'isOpen' | 'className' | 'style' | 'children';
|
|
980
|
+
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$c>, Omit<RAC.MenuProps<object>, RemovedProps$c> {
|
|
973
981
|
/**
|
|
974
982
|
* Whether the menu is open.
|
|
975
983
|
* @default false
|
|
@@ -1160,8 +1168,8 @@ interface MultipleSelectProps extends Pick<FieldBaseProps<'label'>, 'width' | 's
|
|
|
1160
1168
|
}
|
|
1161
1169
|
declare const Multiselect: ({ disabled, readOnly, items, selectedItems, defaultSelectedItems, defaultValue, error, errorMessage, size, variant, placeholder, description, onChange, onSelectionChange, ...rest }: MultipleSelectProps) => react_jsx_runtime.JSX.Element;
|
|
1162
1170
|
|
|
1163
|
-
type RemovedProps$
|
|
1164
|
-
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$
|
|
1171
|
+
type RemovedProps$b = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'size';
|
|
1172
|
+
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$b>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1165
1173
|
variant?: string;
|
|
1166
1174
|
size?: string;
|
|
1167
1175
|
/**
|
|
@@ -1332,8 +1340,8 @@ declare function MarigoldProvider<T extends Theme>({ children, className, theme,
|
|
|
1332
1340
|
declare const OverlayContainerProvider: react.Provider<string | undefined>;
|
|
1333
1341
|
declare const usePortalContainer: () => HTMLElement | undefined;
|
|
1334
1342
|
|
|
1335
|
-
type RemovedProps$
|
|
1336
|
-
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$
|
|
1343
|
+
type RemovedProps$a = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
|
|
1344
|
+
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$a> {
|
|
1337
1345
|
variant?: string;
|
|
1338
1346
|
size?: string;
|
|
1339
1347
|
/**
|
|
@@ -1392,8 +1400,8 @@ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$9> {
|
|
|
1392
1400
|
}
|
|
1393
1401
|
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1394
1402
|
|
|
1395
|
-
type RemovedProps$
|
|
1396
|
-
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$
|
|
1403
|
+
type RemovedProps$9 = 'className' | 'style' | 'children' | 'isDisabled';
|
|
1404
|
+
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$9> {
|
|
1397
1405
|
variant?: string;
|
|
1398
1406
|
size?: string;
|
|
1399
1407
|
/**
|
|
@@ -1418,8 +1426,8 @@ interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttri
|
|
|
1418
1426
|
Group: typeof _RadioGroup;
|
|
1419
1427
|
}
|
|
1420
1428
|
|
|
1421
|
-
type RemovedProps$
|
|
1422
|
-
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$
|
|
1429
|
+
type RemovedProps$8 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1430
|
+
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$8>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1423
1431
|
/**
|
|
1424
1432
|
* Action element to display in the search field.
|
|
1425
1433
|
*/
|
|
@@ -1530,7 +1538,7 @@ interface SelectProps<T extends object> extends Omit<RAC.SelectProps<T>, RemoveP
|
|
|
1530
1538
|
/**
|
|
1531
1539
|
* Handler that is called when the selection changes.
|
|
1532
1540
|
*/
|
|
1533
|
-
onChange?: RAC.
|
|
1541
|
+
onChange?: ((key: RAC.Key) => void) | undefined;
|
|
1534
1542
|
}
|
|
1535
1543
|
interface SelectComponent extends ForwardRefExoticComponent<SelectProps<object> & RefAttributes<HTMLDivElement>> {
|
|
1536
1544
|
/**
|
|
@@ -1623,8 +1631,8 @@ interface StackProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1623
1631
|
}
|
|
1624
1632
|
declare const Stack: ({ children, space, stretch, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
1625
1633
|
|
|
1626
|
-
type RemovedProps$
|
|
1627
|
-
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$
|
|
1634
|
+
type RemovedProps$7 = 'children' | 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children' | 'slot';
|
|
1635
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$7> {
|
|
1628
1636
|
variant?: string;
|
|
1629
1637
|
size?: string;
|
|
1630
1638
|
/**
|
|
@@ -1722,8 +1730,8 @@ interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, 'elementType'
|
|
|
1722
1730
|
}
|
|
1723
1731
|
declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1724
1732
|
|
|
1725
|
-
type RemovedProps$
|
|
1726
|
-
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1733
|
+
type RemovedProps$6 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1734
|
+
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$6>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1727
1735
|
variant?: string;
|
|
1728
1736
|
size?: string;
|
|
1729
1737
|
/**
|
|
@@ -1774,8 +1782,8 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$5>, Pick<R
|
|
|
1774
1782
|
}
|
|
1775
1783
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1776
1784
|
|
|
1777
|
-
type RemovedProps$
|
|
1778
|
-
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1785
|
+
type RemovedProps$5 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
1786
|
+
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$5>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1779
1787
|
variant?: string;
|
|
1780
1788
|
size?: string;
|
|
1781
1789
|
/**
|
|
@@ -1854,8 +1862,8 @@ interface TilesProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1854
1862
|
}
|
|
1855
1863
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
1856
1864
|
|
|
1857
|
-
type RemovedProps$
|
|
1858
|
-
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$
|
|
1865
|
+
type RemovedProps$4 = 'isDisabled' | 'isOpen' | 'children';
|
|
1866
|
+
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$4> {
|
|
1859
1867
|
/**
|
|
1860
1868
|
* The children of the component.
|
|
1861
1869
|
*/
|
|
@@ -1870,8 +1878,8 @@ interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, Rem
|
|
|
1870
1878
|
open?: boolean;
|
|
1871
1879
|
}
|
|
1872
1880
|
|
|
1873
|
-
type RemovedProps$
|
|
1874
|
-
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$
|
|
1881
|
+
type RemovedProps$3 = 'className' | 'isOpen' | 'style';
|
|
1882
|
+
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$3> {
|
|
1875
1883
|
/**
|
|
1876
1884
|
* The children of the component.
|
|
1877
1885
|
*/
|
|
@@ -1888,8 +1896,8 @@ declare const _Tooltip: {
|
|
|
1888
1896
|
Trigger: ({ delay, children, disabled, open, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1889
1897
|
};
|
|
1890
1898
|
|
|
1891
|
-
type RemovedProps$
|
|
1892
|
-
interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$
|
|
1899
|
+
type RemovedProps$2 = 'className' | 'style' | 'children' | 'isRequired';
|
|
1900
|
+
interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$2>, Pick<TagListProps<object>, 'items' | 'children'>, Pick<FieldBaseProps<'label'>, 'label' | 'description'> {
|
|
1893
1901
|
variant?: string;
|
|
1894
1902
|
size?: string;
|
|
1895
1903
|
/**
|
|
@@ -1907,8 +1915,8 @@ interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$1>, Pick<Ta
|
|
|
1907
1915
|
emptyState?: TagListProps<object>['renderEmptyState'];
|
|
1908
1916
|
}
|
|
1909
1917
|
|
|
1910
|
-
type RemovedProps = 'className' | 'style' | 'isDisabled';
|
|
1911
|
-
interface TagProps extends Omit<RAC.TagProps, RemovedProps> {
|
|
1918
|
+
type RemovedProps$1 = 'className' | 'style' | 'isDisabled';
|
|
1919
|
+
interface TagProps extends Omit<RAC.TagProps, RemovedProps$1> {
|
|
1912
1920
|
variant?: string;
|
|
1913
1921
|
size?: string;
|
|
1914
1922
|
children?: ReactNode;
|
|
@@ -1960,4 +1968,51 @@ declare const _Tabs: {
|
|
|
1960
1968
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
1961
1969
|
};
|
|
1962
1970
|
|
|
1963
|
-
|
|
1971
|
+
type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'slot';
|
|
1972
|
+
interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProps>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1973
|
+
variant?: string;
|
|
1974
|
+
size?: string;
|
|
1975
|
+
/**
|
|
1976
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1977
|
+
* @default full
|
|
1978
|
+
*/
|
|
1979
|
+
width?: WidthProp['width'];
|
|
1980
|
+
/**
|
|
1981
|
+
* If `true`, the input is disabled.
|
|
1982
|
+
* @default false
|
|
1983
|
+
*/
|
|
1984
|
+
disabled?: RAC.TimeFieldProps<TimeValue>['isDisabled'];
|
|
1985
|
+
/**
|
|
1986
|
+
* If `true`, the input is required.
|
|
1987
|
+
* @default false
|
|
1988
|
+
*/
|
|
1989
|
+
required?: RAC.TimeFieldProps<TimeValue>['isRequired'];
|
|
1990
|
+
/**
|
|
1991
|
+
* If `true`, the field is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
1992
|
+
* @default false
|
|
1993
|
+
*/
|
|
1994
|
+
error?: RAC.TimeFieldProps<TimeValue>['isInvalid'];
|
|
1995
|
+
/**
|
|
1996
|
+
* If `true`, the input is readOnly.
|
|
1997
|
+
* @default false
|
|
1998
|
+
*/
|
|
1999
|
+
readOnly?: RAC.TimeFieldProps<TimeValue>['isReadOnly'];
|
|
2000
|
+
/**
|
|
2001
|
+
* Whether to display the time in 12 or 24 hour format
|
|
2002
|
+
* @default 24
|
|
2003
|
+
*/
|
|
2004
|
+
hourCycle?: 12 | 24 | undefined;
|
|
2005
|
+
/**
|
|
2006
|
+
* Determines the smallest unit that is displayed in the time picker.
|
|
2007
|
+
* @default minute
|
|
2008
|
+
*/
|
|
2009
|
+
granularity?: 'hour' | 'minute' | 'second';
|
|
2010
|
+
/**
|
|
2011
|
+
* Whether to always show leading zeros in the hour field. Default is determined by the user's locale.
|
|
2012
|
+
* @default none
|
|
2013
|
+
*/
|
|
2014
|
+
shouldForceLeadingZeros?: boolean;
|
|
2015
|
+
}
|
|
2016
|
+
declare const _TimeField: react.ForwardRefExoticComponent<TimeFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
2017
|
+
|
|
2018
|
+
export { Accordion, AccordionItem, type AccordionProps, ActionMenu, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, type CheckboxComponent, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, type DisclosureProps, _Divider as Divider, type DividerProps, Drawer, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, _Form as Form, type FormProps, Grid, type GridProps, _Header as Header, type HeaderProps, _Headline as Headline, type HeadlineProps, Image, type ImageProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, _Modal as Modal, type ModalProps, Multiselect, NonModal, type NonModalProps, type NonModalRenderProps, _NumberField as NumberField, type NumberFieldProps, OverlayContainerProvider, _Pagination as Pagination, type PaginationProps, _Popover as Popover, type PopoverProps, _Radio as Radio, type RadioComponent, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, type RemovedProps$m as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _Select as Select, type SelectComponent, _SelectList as SelectList, type SelectListProps, type SelectProps, _Slider as Slider, type SliderProps, Split, Stack, type StackProps, _Switch as Switch, type SwitchProps, Table, type TableProps, _Tabs as Tabs, type TabsProps, _Tag as Tag, type TagProps, type TemplateValue, _Text as Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, Tiles, type TilesProps, _TimeField as TimeField, type TimeFieldProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, type XLoaderProps, gridColsAlign, gridColumn, useFieldGroupContext, usePortalContainer };
|