@marigold/components 12.0.2 → 12.0.4
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 +175 -60
- package/dist/index.d.ts +175 -60
- package/dist/index.js +1075 -847
- package/dist/index.mjs +798 -566
- package/package.json +4 -4
package/dist/index.d.ts
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
|
/**
|
|
@@ -508,6 +508,61 @@ interface ContainerProps extends GapSpaceProp, AriaRegionProps {
|
|
|
508
508
|
}
|
|
509
509
|
declare const Container: ({ contentLength, align, alignItems, space, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
510
510
|
|
|
511
|
+
interface ContextualHelpContentProps {
|
|
512
|
+
children: React.ReactNode;
|
|
513
|
+
variant?: string;
|
|
514
|
+
size?: string;
|
|
515
|
+
}
|
|
516
|
+
declare const ContextualHelpContent: ({ children, variant, size, }: ContextualHelpContentProps) => react_jsx_runtime.JSX.Element;
|
|
517
|
+
|
|
518
|
+
interface ContextualHelpTitleProps {
|
|
519
|
+
children: React.ReactNode;
|
|
520
|
+
variant?: string;
|
|
521
|
+
size?: string;
|
|
522
|
+
}
|
|
523
|
+
declare const ContextualHelpTitle: ({ children, variant, size, }: ContextualHelpTitleProps) => react_jsx_runtime.JSX.Element;
|
|
524
|
+
|
|
525
|
+
declare const icons$1: {
|
|
526
|
+
help: () => react_jsx_runtime.JSX.Element;
|
|
527
|
+
info: () => react_jsx_runtime.JSX.Element;
|
|
528
|
+
};
|
|
529
|
+
interface ContextualHelpComponent extends ForwardRefExoticComponent<ContextualHelpProps & RefAttributes<HTMLInputElement>> {
|
|
530
|
+
/**
|
|
531
|
+
* Options for the Combobox.
|
|
532
|
+
*/
|
|
533
|
+
Title: typeof ContextualHelpTitle;
|
|
534
|
+
Content: typeof ContextualHelpContent;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Placement of the popover.
|
|
538
|
+
* @default bottom start
|
|
539
|
+
*/
|
|
540
|
+
type Placement = 'top' | 'bottom' | 'left' | 'right' | 'top start' | 'bottom start';
|
|
541
|
+
/**
|
|
542
|
+
* Props for the ContextualHelp component.
|
|
543
|
+
*/
|
|
544
|
+
interface ContextualHelpProps {
|
|
545
|
+
/** Size of the button and popover. */
|
|
546
|
+
size?: 'small' | 'medium' | 'large';
|
|
547
|
+
/** Content rendered inside the popover. */
|
|
548
|
+
children: ReactNode;
|
|
549
|
+
/** Visual variant of the icon (e.g. info or help). */
|
|
550
|
+
variant?: keyof typeof icons$1;
|
|
551
|
+
/** Placement of the popover relative to the button. */
|
|
552
|
+
placement?: Placement;
|
|
553
|
+
/** Optional width size for the popover */
|
|
554
|
+
width?: 'small' | 'medium' | 'large';
|
|
555
|
+
/** Offset (in px) between button and popover. */
|
|
556
|
+
offset?: number;
|
|
557
|
+
/** Whether the popover is open by default (uncontrolled). */
|
|
558
|
+
defaultOpen?: boolean;
|
|
559
|
+
/** Controls the open state of the popover (controlled). */
|
|
560
|
+
open?: boolean;
|
|
561
|
+
/** Handler that is called when the open state changes. */
|
|
562
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
563
|
+
}
|
|
564
|
+
declare const _ContextualHelp: ContextualHelpComponent;
|
|
565
|
+
|
|
511
566
|
interface DialogActions {
|
|
512
567
|
/**
|
|
513
568
|
* Children of the component.
|
|
@@ -535,14 +590,14 @@ interface DialogTitleProps {
|
|
|
535
590
|
}
|
|
536
591
|
declare const DialogTitle: ({ variant, size, children }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
537
592
|
|
|
538
|
-
type RemovedProps$
|
|
593
|
+
type RemovedProps$l = 'children' | 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled';
|
|
539
594
|
interface ModalProps$1 extends RAC.ModalOverlayProps {
|
|
540
595
|
open?: boolean;
|
|
541
596
|
dismissable?: boolean;
|
|
542
597
|
keyboardDismissable?: boolean;
|
|
543
598
|
size?: string;
|
|
544
599
|
}
|
|
545
|
-
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$
|
|
600
|
+
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'>, Omit<ModalProps$1, RemovedProps$l> {
|
|
546
601
|
}
|
|
547
602
|
declare const _DialogTrigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode;
|
|
548
603
|
|
|
@@ -703,9 +758,17 @@ interface GridProps extends GapSpaceProp, HeightProp, AriaRegionProps {
|
|
|
703
758
|
* Children of the layout.
|
|
704
759
|
*/
|
|
705
760
|
children?: ReactNode;
|
|
761
|
+
/**
|
|
762
|
+
* Horizontal alignment for the children.
|
|
763
|
+
*/
|
|
764
|
+
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
765
|
+
/**
|
|
766
|
+
* Vertical alignment for the children.
|
|
767
|
+
*/
|
|
768
|
+
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
706
769
|
}
|
|
707
770
|
declare const Grid: {
|
|
708
|
-
({ children, areas, columns, rows, height, space, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
771
|
+
({ children, areas, columns, rows, alignX, alignY, height, space, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
709
772
|
Area: ({ name, children }: GridAreaProps) => react_jsx_runtime.JSX.Element;
|
|
710
773
|
};
|
|
711
774
|
|
|
@@ -771,8 +834,8 @@ interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
|
771
834
|
}
|
|
772
835
|
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
773
836
|
|
|
774
|
-
type RemovedProps$
|
|
775
|
-
interface InputProps extends Omit<RAC.InputProps, RemovedProps$
|
|
837
|
+
type RemovedProps$k = 'className' | 'style' | 'size';
|
|
838
|
+
interface InputProps extends Omit<RAC.InputProps, RemovedProps$k> {
|
|
776
839
|
icon?: ReactElement<any>;
|
|
777
840
|
action?: ReactElement<any>;
|
|
778
841
|
variant?: string;
|
|
@@ -781,8 +844,8 @@ interface InputProps extends Omit<RAC.InputProps, RemovedProps$j> {
|
|
|
781
844
|
}
|
|
782
845
|
declare const _Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
783
846
|
|
|
784
|
-
type RemovedProps$
|
|
785
|
-
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$
|
|
847
|
+
type RemovedProps$j = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'label' | 'children' | 'style';
|
|
848
|
+
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$j>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
786
849
|
variant?: string;
|
|
787
850
|
size?: string;
|
|
788
851
|
/**
|
|
@@ -817,8 +880,8 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
817
880
|
}
|
|
818
881
|
declare const _DateField: react.ForwardRefExoticComponent<DateFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
819
882
|
|
|
820
|
-
type RemovedProps$
|
|
821
|
-
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
883
|
+
type RemovedProps$i = 'visibleDuration' | 'pageBehavior' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
|
|
884
|
+
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$i> {
|
|
822
885
|
/**
|
|
823
886
|
* Disables the Calendar.
|
|
824
887
|
* @default false
|
|
@@ -842,8 +905,8 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
842
905
|
}
|
|
843
906
|
declare const _Calendar: ({ disabled, readOnly, size, variant, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
844
907
|
|
|
845
|
-
type RemovedProps$
|
|
846
|
-
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$
|
|
908
|
+
type RemovedProps$h = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
909
|
+
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$h>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
847
910
|
/**
|
|
848
911
|
* Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
|
|
849
912
|
*/
|
|
@@ -907,15 +970,15 @@ type InsetProps = (AriaRegionProps & {
|
|
|
907
970
|
});
|
|
908
971
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
909
972
|
|
|
910
|
-
type RemovedProps$
|
|
911
|
-
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$
|
|
973
|
+
type RemovedProps$g = 'className';
|
|
974
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$g> {
|
|
912
975
|
size?: string;
|
|
913
976
|
variant?: string;
|
|
914
977
|
}
|
|
915
978
|
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
916
979
|
|
|
917
|
-
type RemovedProps$
|
|
918
|
-
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$
|
|
980
|
+
type RemovedProps$f = 'className' | 'isDisabled' | 'slot';
|
|
981
|
+
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$f> {
|
|
919
982
|
variant?: string;
|
|
920
983
|
size?: string;
|
|
921
984
|
/**
|
|
@@ -951,14 +1014,14 @@ declare const List: {
|
|
|
951
1014
|
Item: ({ children, ...props }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
952
1015
|
};
|
|
953
1016
|
|
|
954
|
-
type RemovedProps$
|
|
955
|
-
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$
|
|
1017
|
+
type RemovedProps$e = 'className' | 'style' | 'children';
|
|
1018
|
+
interface MenuSectionProps extends Omit<RAC.SectionProps<object>, RemovedProps$e> {
|
|
956
1019
|
title?: string;
|
|
957
1020
|
children: ReactNode;
|
|
958
1021
|
}
|
|
959
1022
|
|
|
960
|
-
type RemovedProps$
|
|
961
|
-
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$
|
|
1023
|
+
type RemovedProps$d = 'style' | 'className';
|
|
1024
|
+
type MenuItemProps = Omit<RAC.MenuItemProps, RemovedProps$d>;
|
|
962
1025
|
|
|
963
1026
|
interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
|
|
964
1027
|
keyboardDismissDisabled?: boolean;
|
|
@@ -968,8 +1031,8 @@ interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDism
|
|
|
968
1031
|
}
|
|
969
1032
|
declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
|
|
970
1033
|
|
|
971
|
-
type RemovedProps$
|
|
972
|
-
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$
|
|
1034
|
+
type RemovedProps$c = 'isOpen' | 'className' | 'style' | 'children';
|
|
1035
|
+
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$c>, Omit<RAC.MenuProps<object>, RemovedProps$c> {
|
|
973
1036
|
/**
|
|
974
1037
|
* Whether the menu is open.
|
|
975
1038
|
* @default false
|
|
@@ -1160,8 +1223,8 @@ interface MultipleSelectProps extends Pick<FieldBaseProps<'label'>, 'width' | 's
|
|
|
1160
1223
|
}
|
|
1161
1224
|
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
1225
|
|
|
1163
|
-
type RemovedProps$
|
|
1164
|
-
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$
|
|
1226
|
+
type RemovedProps$b = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'size';
|
|
1227
|
+
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$b>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1165
1228
|
variant?: string;
|
|
1166
1229
|
size?: string;
|
|
1167
1230
|
/**
|
|
@@ -1332,8 +1395,8 @@ declare function MarigoldProvider<T extends Theme>({ children, className, theme,
|
|
|
1332
1395
|
declare const OverlayContainerProvider: react.Provider<string | undefined>;
|
|
1333
1396
|
declare const usePortalContainer: () => HTMLElement | undefined;
|
|
1334
1397
|
|
|
1335
|
-
type RemovedProps$
|
|
1336
|
-
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$
|
|
1398
|
+
type RemovedProps$a = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
|
|
1399
|
+
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$a> {
|
|
1337
1400
|
variant?: string;
|
|
1338
1401
|
size?: string;
|
|
1339
1402
|
/**
|
|
@@ -1392,8 +1455,8 @@ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$9> {
|
|
|
1392
1455
|
}
|
|
1393
1456
|
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1394
1457
|
|
|
1395
|
-
type RemovedProps$
|
|
1396
|
-
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$
|
|
1458
|
+
type RemovedProps$9 = 'className' | 'style' | 'children' | 'isDisabled';
|
|
1459
|
+
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$9> {
|
|
1397
1460
|
variant?: string;
|
|
1398
1461
|
size?: string;
|
|
1399
1462
|
/**
|
|
@@ -1418,8 +1481,8 @@ interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttri
|
|
|
1418
1481
|
Group: typeof _RadioGroup;
|
|
1419
1482
|
}
|
|
1420
1483
|
|
|
1421
|
-
type RemovedProps$
|
|
1422
|
-
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$
|
|
1484
|
+
type RemovedProps$8 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1485
|
+
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$8>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1423
1486
|
/**
|
|
1424
1487
|
* Action element to display in the search field.
|
|
1425
1488
|
*/
|
|
@@ -1623,8 +1686,8 @@ interface StackProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1623
1686
|
}
|
|
1624
1687
|
declare const Stack: ({ children, space, stretch, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
1625
1688
|
|
|
1626
|
-
type RemovedProps$
|
|
1627
|
-
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$
|
|
1689
|
+
type RemovedProps$7 = 'children' | 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children' | 'slot';
|
|
1690
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$7> {
|
|
1628
1691
|
variant?: string;
|
|
1629
1692
|
size?: string;
|
|
1630
1693
|
/**
|
|
@@ -1676,6 +1739,11 @@ interface TableProps extends Pick<AriaTableProps, 'focusMode' | 'onRowAction' |
|
|
|
1676
1739
|
* Content to display when there are no rows in the table.
|
|
1677
1740
|
*/
|
|
1678
1741
|
emptyState?: () => ReactNode;
|
|
1742
|
+
/**
|
|
1743
|
+
* Control the vertical alignment of table content.
|
|
1744
|
+
* @default middle
|
|
1745
|
+
*/
|
|
1746
|
+
alignY?: Exclude<JSX.IntrinsicElements['td']['valign'], 'baseline' | 'sub' | 'super' | 'bottom'>;
|
|
1679
1747
|
}
|
|
1680
1748
|
interface RowProps extends RowProps$1<any> {
|
|
1681
1749
|
variant?: string;
|
|
@@ -1722,8 +1790,8 @@ interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, 'elementType'
|
|
|
1722
1790
|
}
|
|
1723
1791
|
declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1724
1792
|
|
|
1725
|
-
type RemovedProps$
|
|
1726
|
-
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1793
|
+
type RemovedProps$6 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1794
|
+
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$6>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1727
1795
|
variant?: string;
|
|
1728
1796
|
size?: string;
|
|
1729
1797
|
/**
|
|
@@ -1774,8 +1842,8 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$5>, Pick<R
|
|
|
1774
1842
|
}
|
|
1775
1843
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1776
1844
|
|
|
1777
|
-
type RemovedProps$
|
|
1778
|
-
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$
|
|
1845
|
+
type RemovedProps$5 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
1846
|
+
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$5>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1779
1847
|
variant?: string;
|
|
1780
1848
|
size?: string;
|
|
1781
1849
|
/**
|
|
@@ -1854,8 +1922,8 @@ interface TilesProps extends GapSpaceProp, AriaRegionProps {
|
|
|
1854
1922
|
}
|
|
1855
1923
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
1856
1924
|
|
|
1857
|
-
type RemovedProps$
|
|
1858
|
-
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$
|
|
1925
|
+
type RemovedProps$4 = 'isDisabled' | 'isOpen' | 'children';
|
|
1926
|
+
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$4> {
|
|
1859
1927
|
/**
|
|
1860
1928
|
* The children of the component.
|
|
1861
1929
|
*/
|
|
@@ -1870,8 +1938,8 @@ interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, Rem
|
|
|
1870
1938
|
open?: boolean;
|
|
1871
1939
|
}
|
|
1872
1940
|
|
|
1873
|
-
type RemovedProps$
|
|
1874
|
-
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$
|
|
1941
|
+
type RemovedProps$3 = 'className' | 'isOpen' | 'style';
|
|
1942
|
+
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$3> {
|
|
1875
1943
|
/**
|
|
1876
1944
|
* The children of the component.
|
|
1877
1945
|
*/
|
|
@@ -1888,8 +1956,8 @@ declare const _Tooltip: {
|
|
|
1888
1956
|
Trigger: ({ delay, children, disabled, open, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1889
1957
|
};
|
|
1890
1958
|
|
|
1891
|
-
type RemovedProps$
|
|
1892
|
-
interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$
|
|
1959
|
+
type RemovedProps$2 = 'className' | 'style' | 'children' | 'isRequired';
|
|
1960
|
+
interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$2>, Pick<TagListProps<object>, 'items' | 'children'>, Pick<FieldBaseProps<'label'>, 'label' | 'description'> {
|
|
1893
1961
|
variant?: string;
|
|
1894
1962
|
size?: string;
|
|
1895
1963
|
/**
|
|
@@ -1907,8 +1975,8 @@ interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps$1>, Pick<Ta
|
|
|
1907
1975
|
emptyState?: TagListProps<object>['renderEmptyState'];
|
|
1908
1976
|
}
|
|
1909
1977
|
|
|
1910
|
-
type RemovedProps = 'className' | 'style' | 'isDisabled';
|
|
1911
|
-
interface TagProps extends Omit<RAC.TagProps, RemovedProps> {
|
|
1978
|
+
type RemovedProps$1 = 'className' | 'style' | 'isDisabled';
|
|
1979
|
+
interface TagProps extends Omit<RAC.TagProps, RemovedProps$1> {
|
|
1912
1980
|
variant?: string;
|
|
1913
1981
|
size?: string;
|
|
1914
1982
|
children?: ReactNode;
|
|
@@ -1960,4 +2028,51 @@ declare const _Tabs: {
|
|
|
1960
2028
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
1961
2029
|
};
|
|
1962
2030
|
|
|
1963
|
-
|
|
2031
|
+
type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'slot';
|
|
2032
|
+
interface TimeFieldProps extends Omit<RAC.TimeFieldProps<TimeValue>, RemovedProps>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
2033
|
+
variant?: string;
|
|
2034
|
+
size?: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
2037
|
+
* @default full
|
|
2038
|
+
*/
|
|
2039
|
+
width?: WidthProp['width'];
|
|
2040
|
+
/**
|
|
2041
|
+
* If `true`, the input is disabled.
|
|
2042
|
+
* @default false
|
|
2043
|
+
*/
|
|
2044
|
+
disabled?: RAC.TimeFieldProps<TimeValue>['isDisabled'];
|
|
2045
|
+
/**
|
|
2046
|
+
* If `true`, the input is required.
|
|
2047
|
+
* @default false
|
|
2048
|
+
*/
|
|
2049
|
+
required?: RAC.TimeFieldProps<TimeValue>['isRequired'];
|
|
2050
|
+
/**
|
|
2051
|
+
* If `true`, the field is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
2052
|
+
* @default false
|
|
2053
|
+
*/
|
|
2054
|
+
error?: RAC.TimeFieldProps<TimeValue>['isInvalid'];
|
|
2055
|
+
/**
|
|
2056
|
+
* If `true`, the input is readOnly.
|
|
2057
|
+
* @default false
|
|
2058
|
+
*/
|
|
2059
|
+
readOnly?: RAC.TimeFieldProps<TimeValue>['isReadOnly'];
|
|
2060
|
+
/**
|
|
2061
|
+
* Whether to display the time in 12 or 24 hour format
|
|
2062
|
+
* @default 24
|
|
2063
|
+
*/
|
|
2064
|
+
hourCycle?: 12 | 24 | undefined;
|
|
2065
|
+
/**
|
|
2066
|
+
* Determines the smallest unit that is displayed in the time picker.
|
|
2067
|
+
* @default minute
|
|
2068
|
+
*/
|
|
2069
|
+
granularity?: 'hour' | 'minute' | 'second';
|
|
2070
|
+
/**
|
|
2071
|
+
* Whether to always show leading zeros in the hour field. Default is determined by the user's locale.
|
|
2072
|
+
* @default none
|
|
2073
|
+
*/
|
|
2074
|
+
shouldForceLeadingZeros?: boolean;
|
|
2075
|
+
}
|
|
2076
|
+
declare const _TimeField: react.ForwardRefExoticComponent<TimeFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
2077
|
+
|
|
2078
|
+
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, _ContextualHelp as ContextualHelp, type ContextualHelpProps, _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, _ContextualHelp, gridColsAlign, gridColumn, useFieldGroupContext, usePortalContainer };
|