@economic/taco 2.55.0 → 2.56.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/taco.css CHANGED
@@ -337,76 +337,6 @@ table.yt-table tbody.yt-table__body tr.yt-table__row td.yt-table__cell {
337
337
  [class*='text-'] svg circle {
338
338
  stroke: currentColor;
339
339
  }
340
- /* Base styles */
341
- [data-taco='checkbox-container'] [data-taco='checkbox'] {
342
- @apply border-grey-500;
343
- }
344
-
345
- [data-taco='checkbox-container'][data-focus-visible] [data-taco='checkbox'] {
346
- @apply yt-focus;
347
- }
348
-
349
- /* Readonly state */
350
- [data-taco='checkbox-container'][data-readonly] [data-taco='checkbox'] {
351
- @apply cursor-default;
352
- }
353
-
354
- /* Invalid state */
355
- [data-taco='checkbox-container'][data-invalid] [data-taco='checkbox'] {
356
- @apply border-red-500;
357
- }
358
-
359
- /* Selected or indeterminate state */
360
- [data-taco='checkbox-container'][data-selected] [data-taco='checkbox'],
361
- [data-taco='checkbox-container'][data-indeterminate] [data-taco='checkbox'] {
362
- @apply border-blue-500 bg-blue-500;
363
- }
364
-
365
- /* Selected or indeterminate AND invalid state */
366
- [data-taco='checkbox-container'][data-selected][data-invalid] [data-taco='checkbox'],
367
- [data-taco='checkbox-container'][data-indeterminate][data-invalid] [data-taco='checkbox'] {
368
- @apply !border-red-500 !bg-red-500;
369
- }
370
-
371
- /* Disabled state */
372
- [data-taco='checkbox-container'][data-disabled] [data-taco='checkbox'] {
373
- @apply border-grey-500/50 cursor-not-allowed;
374
- }
375
-
376
- [data-taco='checkbox-container'][data-disabled][data-invalid] [data-taco='checkbox'] {
377
- @apply !border-red-500/50 !bg-red-500/50;
378
- }
379
-
380
- [data-taco='checkbox-container'][data-disabled][data-selected] [data-taco='checkbox'],
381
- [data-taco='checkbox-container'][data-disabled][data-indeterminate] [data-taco='checkbox'] {
382
- @apply !bg-blue-500/50;
383
- }
384
-
385
- [data-taco='checkbox-container'][data-disabled][data-selected][data-invalid] [data-taco='checkbox'],
386
- [data-taco='checkbox-container'][data-disabled][data-indeterminate][data-invalid] [data-taco='checkbox'] {
387
- @apply !bg-red-500/50 text-white;
388
- }
389
-
390
- /* Hover states (separate rules for clarity) */
391
- [data-taco='checkbox-container']:hover:not([data-disabled]):not([data-readonly]) [data-taco='checkbox'] {
392
- @apply border-grey-700;
393
- }
394
-
395
- [data-taco='checkbox-container']:hover[data-selected]:not([data-disabled]):not([data-readonly]) [data-taco='checkbox'],
396
- [data-taco='checkbox-container']:hover[data-indeterminate]:not([data-disabled]):not([data-readonly]) [data-taco='checkbox'] {
397
- @apply !border-blue-700 !bg-blue-700;
398
- }
399
-
400
- [data-taco='checkbox-container']:hover[data-invalid]:not([data-disabled]):not([data-readonly]) [data-taco='checkbox'] {
401
- @apply !border-red-700;
402
- }
403
-
404
- [data-taco='checkbox-container']:hover[data-invalid][data-selected]:not([data-disabled]):not([data-readonly])
405
- [data-taco='checkbox'],
406
- [data-taco='checkbox-container']:hover[data-invalid][data-indeterminate]:not([data-disabled]):not([data-readonly])
407
- [data-taco='checkbox'] {
408
- @apply !border-red-700 !bg-red-700;
409
- }
410
340
  [data-taco='scrollable-list'].yt-list--multiselect li:first-child {
411
341
  @apply border-grey-100 border-b-2 pl-4; /* Listbox max-height is dependant on this border-bottom-width value! */
412
342
  }
@@ -876,7 +806,7 @@ table[data-taco^='table'] tr[data-row-id] td[data-cell-truncate='true'] [data-ta
876
806
  @apply focus:absolute focus:overflow-y-auto;
877
807
  }
878
808
 
879
- table[data-taco^='table'] tr[data-row-id] td [data-taco='label'] {
809
+ table[data-taco^='table'] tr[data-row-id] td label {
880
810
  @apply h-fit !min-h-fit w-full !pb-0;
881
811
  }
882
812
 
@@ -915,14 +845,14 @@ table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data
915
845
  @apply !h-4 !w-4;
916
846
  }
917
847
 
918
- table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='icon']:not([data-taco='checkbox'] *),
848
+ table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='icon'],
919
849
  table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='spinner'] {
920
850
  @apply !-my-[3px];
921
851
  }
922
852
 
923
853
  table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='badge'],
924
854
  table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='badge-icon'],
925
- table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='icon']:not([data-taco='checkbox'] *),
855
+ table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='icon'],
926
856
  table[data-taco^='table'][data-table-font-size='small'] tr[data-row-id] td [data-taco='spinner'] {
927
857
  @apply !-my-0.5 !text-xs;
928
858
  }
@@ -1089,7 +1019,7 @@ table[data-taco^='table'][data-table-font-size='medium'] tr[data-row-id] td [dat
1089
1019
  @apply !-my-1.5;
1090
1020
  }
1091
1021
 
1092
- table[data-taco^='table'][data-table-font-size='medium'] tr[data-row-id] td [data-taco='icon']:not([data-taco='checkbox'] *) {
1022
+ table[data-taco^='table'][data-table-font-size='medium'] tr[data-row-id] td [data-taco='icon'] {
1093
1023
  @apply !-my-0.5;
1094
1024
  }
1095
1025
 
@@ -1203,7 +1133,7 @@ table[data-taco^='table'][data-table-font-size='large'] tr[data-row-id] td [data
1203
1133
  @apply !-my-1;
1204
1134
  }
1205
1135
 
1206
- table[data-taco^='table'][data-table-font-size='large'] tr[data-row-id] td [data-taco='icon']:not([data-taco='checkbox'] *) {
1136
+ table[data-taco^='table'][data-table-font-size='large'] tr[data-row-id] td [data-taco='icon'] {
1207
1137
  @apply !-my-0.5;
1208
1138
  }
1209
1139
 
@@ -1556,11 +1486,11 @@ table[data-taco='table3'][data-table-editing-mode] tbody tr[data-row-editing-mov
1556
1486
  @apply border-r-2 border-blue-500 pr-[calc(var(--table-cell-padding-x)_-_2px)];
1557
1487
  }
1558
1488
 
1559
- table[data-taco^='table3'][data-table-editing-mode] [data-cell-align='center'] > [data-taco='label'] {
1489
+ table[data-taco^='table3'][data-table-editing-mode] [data-cell-align='center'] > label {
1560
1490
  @apply flex-row justify-center text-center;
1561
1491
  }
1562
1492
 
1563
- table[data-taco^='table3'][data-table-editing-mode] [data-cell-align='right'] > [data-taco='label'] {
1493
+ table[data-taco^='table3'][data-table-editing-mode] [data-cell-align='right'] > label {
1564
1494
  @apply flex-row justify-end text-right;
1565
1495
  }
1566
1496
 
package/dist/taco.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { BuiltInAggregationFn } from '@tanstack/react-table';
2
2
  import { BuiltInSortingFn } from '@tanstack/react-table';
3
- import { CheckboxProps as CheckboxProps_2 } from 'react-aria-components';
4
3
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
5
4
  import { CollapsibleProps } from '@radix-ui/react-collapsible';
6
5
  import { ColumnFilter } from '@tanstack/react-table';
@@ -11,9 +10,6 @@ import { ColumnSizingState } from '@tanstack/react-table';
11
10
  import { ColumnSort } from '@tanstack/react-table';
12
11
  import { default as default_2 } from 'react';
13
12
  import * as DialogPrimitive from '@radix-ui/react-dialog';
14
- import { DisclosureGroupProps } from 'react-aria-components';
15
- import { DisclosurePanelProps } from 'react-aria-components';
16
- import { DisclosureProps } from 'react-aria-components';
17
13
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
18
14
  import { IdType } from 'react-table';
19
15
  import { Matcher } from 'react-day-picker';
@@ -22,26 +18,26 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
22
18
  import * as React_2 from 'react';
23
19
  import { ScaleType } from 'recharts/types/util/types';
24
20
  import { SortingState } from '@tanstack/react-table';
25
- import { SwitchProps as SwitchProps_2 } from 'react-aria-components';
26
21
  import { VisibilityState } from '@tanstack/react-table';
27
22
 
28
23
  export declare const Accordion: {
29
24
  (props: AccordionProps): default_2.JSX.Element;
30
- Item: ({ disabled, className, ...otherProps }: AccordionItemProps) => default_2.JSX.Element;
25
+ Item: (props: AccordionItemProps) => default_2.JSX.Element;
31
26
  Trigger: default_2.ForwardRefExoticComponent<AccordionTriggerProps & default_2.RefAttributes<HTMLButtonElement>>;
32
- Content: default_2.ForwardRefExoticComponent<DisclosurePanelProps & default_2.RefAttributes<HTMLDivElement>>;
27
+ Content: default_2.ForwardRefExoticComponent<AccordionContentProps & default_2.RefAttributes<HTMLDivElement>>;
33
28
  };
34
29
 
35
- declare type AccordionBaseProps = Omit<DisclosureGroupProps, 'id' | 'allowsMultipleExpanded' | 'isDisabled' | 'expandedKeys' | 'defaultExpandedKeys' | 'onExpandedChange'> & {
30
+ declare type AccordionBaseProps = {
36
31
  children: default_2.ReactNode[];
37
32
  /** Change what heading element accordion regions will render */
38
33
  as?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
39
34
  /** Additional classes for Accordion root element */
40
35
  className?: string;
41
- disabled?: boolean;
42
36
  };
43
37
 
44
- declare type AccordionItemProps = Omit<DisclosureProps, 'id' | 'isDisabled' | 'onExpandedChange' | 'defaultExpanded' | 'isExpanded'> & {
38
+ export declare type AccordionContentProps = default_2.HTMLAttributes<HTMLElement>;
39
+
40
+ export declare type AccordionItemProps = default_2.HTMLAttributes<HTMLDivElement> & {
45
41
  id: string;
46
42
  disabled?: boolean;
47
43
  };
@@ -452,20 +448,23 @@ export declare type CardProps = Omit<React_2.HTMLAttributes<HTMLDivElement>, 'ti
452
448
  menu?: (props: Partial<MenuProps>) => JSX.Element;
453
449
  };
454
450
 
455
- export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLInputElement>>;
451
+ export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
456
452
 
457
- export declare type CheckboxProps = Omit<RemapReactAriaIsProperties<CheckboxProps_2>, 'defaultSelected' | 'onChange'> & {
453
+ declare type CheckboxBaseProps = Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onChange'> & {
454
+ /**
455
+ * Indeterminate state should only be used with sub-checkboxes. The indeterminate state is shown if not all
456
+ * sub-checkboxes are selected. This only affects the style, changing the icon in the checkbox.
457
+ */
458
+ indeterminate?: boolean;
459
+ invalid?: boolean;
458
460
  /** Label for the checkbox */
459
461
  label?: React_2.ReactNode;
460
462
  /** Displays loading state in checkbox */
461
463
  loading?: boolean;
462
- onClick?: (event: React_2.MouseEvent<HTMLSpanElement>) => void;
463
- } & Either<{
464
- checked: boolean;
465
- onChange: (checked: boolean) => void;
466
- }, {
467
- defaultChecked?: boolean;
468
- }>;
464
+ required?: boolean;
465
+ };
466
+
467
+ export declare type CheckboxProps = UncontrolledCheckboxProps | ControlledCheckboxProps;
469
468
 
470
469
  export declare namespace CollectionPrimitive {
471
470
  export {
@@ -587,6 +586,18 @@ declare const Content: default_2.ForwardRefExoticComponent<LayoutContentProps &
587
586
 
588
587
  declare const Content_2: default_2.ForwardRefExoticComponent<Navigation2ContentProps & default_2.RefAttributes<HTMLLIElement>>;
589
588
 
589
+ export declare interface ControlledCheckboxProps extends CheckboxBaseProps {
590
+ defaultChecked?: never;
591
+ checked: boolean;
592
+ onChange: (checked: boolean) => void;
593
+ }
594
+
595
+ declare interface ControlledModeSwitchProps extends ModeSwitchBaseProps {
596
+ defaultChecked?: never;
597
+ checked: boolean;
598
+ onChange: (checked: boolean) => void;
599
+ }
600
+
590
601
  declare interface ControlledRadioGroupProps extends RadioGroupBaseProps {
591
602
  defaultValue?: never;
592
603
  /** Handler called when the value changes */
@@ -595,6 +606,12 @@ declare interface ControlledRadioGroupProps extends RadioGroupBaseProps {
595
606
  value?: RadioGroupItemValue;
596
607
  }
597
608
 
609
+ export declare interface ControlledSwitchProps extends SwitchBaseProps {
610
+ defaultChecked?: never;
611
+ checked: boolean;
612
+ onChange: (checked: boolean) => void;
613
+ }
614
+
598
615
  export declare const convertRowIndexPathToNumberArray: (rowIndexPath: RowIndexPath) => number[];
599
616
 
600
617
  declare const createListboxValueSetter: (multiple: boolean, setValue: default_2.Dispatch<default_2.SetStateAction<Listbox2Value | undefined>>) => (nextValue: Listbox2Value) => void;
@@ -1162,8 +1179,6 @@ declare type DrawerTriggerProps = React_2.HTMLAttributes<HTMLButtonElement>;
1162
1179
 
1163
1180
  declare type DrawerVariant = 'overlay' | 'embedded';
1164
1181
 
1165
- export declare type Either<T, U> = Only<T, U> | Only<U, T>;
1166
-
1167
1182
  export declare const Field: React_2.ForwardRefExoticComponent<React_2.LabelHTMLAttributes<HTMLLabelElement> & {
1168
1183
  /** Content of the field */
1169
1184
  children: React_2.ReactNode;
@@ -1892,8 +1907,8 @@ export declare namespace List {
1892
1907
  children: JSX.Element | JSX.Element[];
1893
1908
  defaultOpen?: boolean;
1894
1909
  } & default_2.RefAttributes<HTMLDivElement>>;
1895
- var Switch: default_2.ForwardRefExoticComponent<ComposableListItemProps<"div"> & Required<Pick<SwitchProps, "onChange" | "checked">> & default_2.RefAttributes<HTMLDivElement>>;
1896
- var Checkbox: default_2.ForwardRefExoticComponent<ComposableListItemProps<"div"> & Required<Pick<SwitchProps, "onChange" | "checked">> & default_2.RefAttributes<HTMLDivElement>>;
1910
+ var Switch: default_2.ForwardRefExoticComponent<ComposableListItemProps<"div"> & Omit<ControlledSwitchProps, "title"> & default_2.RefAttributes<HTMLDivElement>>;
1911
+ var Checkbox: default_2.ForwardRefExoticComponent<ComposableListItemProps<"div"> & Omit<ControlledSwitchProps, "title"> & default_2.RefAttributes<HTMLDivElement>>;
1897
1912
  var Group: default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLDivElement>, "children"> & {
1898
1913
  children: JSX.Element | JSX.Element[];
1899
1914
  } & default_2.RefAttributes<HTMLDivElement>>;
@@ -2024,7 +2039,7 @@ export declare type ListButtonProps = Omit<ComposableListItemProps<'button'>, 'o
2024
2039
  onClick: default_2.MouseEventHandler<HTMLButtonElement>;
2025
2040
  };
2026
2041
 
2027
- export declare type ListCheckboxProps = ComposableListItemProps<'div'> & Required<Pick<CheckboxProps, 'checked' | 'onChange'>>;
2042
+ export declare type ListCheckboxProps = ComposableListItemProps<'div'> & ControlledCheckboxProps;
2028
2043
 
2029
2044
  export declare type ListCollapsibleProps = Omit<ComposableListItemProps<typeof CollapsiblePrimitive.Root>, 'children'> & {
2030
2045
  children: JSX.Element | JSX.Element[];
@@ -2053,7 +2068,7 @@ export declare type ListProps = default_2.HTMLAttributes<HTMLDivElement> & {
2053
2068
  children: JSX.Element | (JSX.Element | boolean | null | undefined)[];
2054
2069
  };
2055
2070
 
2056
- export declare type ListSwitchProps = ComposableListItemProps<'div'> & Required<Pick<SwitchProps, 'checked' | 'onChange'>>;
2071
+ export declare type ListSwitchProps = ComposableListItemProps<'div'> & Omit<ControlledSwitchProps, 'title'>;
2057
2072
 
2058
2073
  declare type Locale_2 = 'en-GB' | 'da-DK' | 'sv-SE' | 'no-NO';
2059
2074
  export { Locale_2 as Locale }
@@ -2195,18 +2210,13 @@ export declare type MenuTriggerProps = Omit<React_2.HTMLAttributes<HTMLButtonEle
2195
2210
 
2196
2211
  export declare function mergeRefs<T = any>(refs: Array<default_2.MutableRefObject<T> | default_2.LegacyRef<T>>): default_2.RefCallback<T>;
2197
2212
 
2198
- export declare const ModeSwitch: React_2.ForwardRefExoticComponent<ModeSwitchProps & React_2.RefAttributes<HTMLInputElement>>;
2213
+ export declare const ModeSwitch: React_2.ForwardRefExoticComponent<ModeSwitchProps & React_2.RefAttributes<HTMLButtonElement>>;
2199
2214
 
2200
- export declare type ModeSwitchProps = Omit<RemapReactAriaIsProperties<SwitchProps_2>, 'defaultSelected' | 'onChange'> & {
2201
- /** Label for the checkbox */
2202
- label?: React_2.ReactNode;
2203
- onClick?: (event: React_2.MouseEvent<HTMLSpanElement>) => void;
2204
- } & Either<{
2205
- checked: boolean;
2206
- onChange: (checked: boolean) => void;
2207
- }, {
2208
- defaultChecked?: boolean;
2209
- }>;
2215
+ declare type ModeSwitchBaseProps = Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onChange'> & {
2216
+ required?: boolean;
2217
+ };
2218
+
2219
+ export declare type ModeSwitchProps = UncontrolledModeSwitchProps | ControlledModeSwitchProps;
2210
2220
 
2211
2221
  export declare const MultiListbox: React_2.ForwardRefExoticComponent<Pick<React_2.InputHTMLAttributes<HTMLInputElement>, "onFocus" | "onChange"> & Omit<React_2.InputHTMLAttributes<HTMLElement>, "onChange" | "defaultValue" | "value"> & {
2212
2222
  /** Data indicating the options in listbox */
@@ -2299,12 +2309,6 @@ export declare type NavigationPanelProps = default_2.HTMLAttributes<HTMLDivEleme
2299
2309
 
2300
2310
  export declare type NavigationProps = default_2.HTMLAttributes<HTMLDivElement>;
2301
2311
 
2302
- declare type Only<T, U> = {
2303
- [P in keyof T]: T[P];
2304
- } & {
2305
- [P in keyof U]?: never;
2306
- };
2307
-
2308
2312
  declare const Option_2: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLDivElement> & {
2309
2313
  disabled?: boolean;
2310
2314
  value: Listbox2OptionValue;
@@ -2534,10 +2538,6 @@ export declare type RadioGroupItemValue = string | number | boolean | null;
2534
2538
 
2535
2539
  export declare type RadioGroupProps = UncontrolledRadioGroupProps | ControlledRadioGroupProps;
2536
2540
 
2537
- export declare type RemapReactAriaIsProperties<T> = {
2538
- [K in keyof T as K extends `is${infer Rest}` ? Uncapitalize<Rest> : K]: T[K];
2539
- };
2540
-
2541
2541
  export declare const removeChildTableRow: <TRow extends {}>(data: Row<TRow>[], rowIndexPath: RowIndexPath) => Row<TRow>[];
2542
2542
 
2543
2543
  declare const Report_2: (<TType = unknown>(props: ReportProps<TType> & default_2.RefAttributes<ReportRef>) => JSX.Element) & {
@@ -2869,18 +2869,15 @@ declare interface SubtleBadgeProps extends BadgeBaseProps {
2869
2869
  status?: never;
2870
2870
  }
2871
2871
 
2872
- export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLInputElement>>;
2872
+ export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLButtonElement>>;
2873
2873
 
2874
- export declare type SwitchProps = Omit<RemapReactAriaIsProperties<SwitchProps_2>, 'defaultSelected' | 'onChange'> & {
2875
- /** Label for the checkbox */
2874
+ declare type SwitchBaseProps = Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onChange'> & {
2875
+ /** Label for the switch */
2876
2876
  label?: React_2.ReactNode;
2877
- onClick?: (event: React_2.MouseEvent<HTMLSpanElement>) => void;
2878
- } & Either<{
2879
- checked: boolean;
2880
- onChange: (checked: boolean) => void;
2881
- }, {
2882
- defaultChecked?: boolean;
2883
- }>;
2877
+ required?: boolean;
2878
+ };
2879
+
2880
+ export declare type SwitchProps = UncontrolledSwitchProps | ControlledSwitchProps;
2884
2881
 
2885
2882
  export declare type TabContentProps = React_2.HTMLAttributes<HTMLDivElement> & {
2886
2883
  /**
@@ -3108,6 +3105,7 @@ export declare type TableCommonProps<TType = unknown> = TableFeatureProps<TType>
3108
3105
  defaultRowGroupColumnId?: keyof TType;
3109
3106
  defaultSettings?: TableSettings;
3110
3107
  emptyState?: TableEmptyStateRenderer;
3108
+ enableLocalKeyboardShortcuts?: boolean;
3111
3109
  preset?: TablePreset;
3112
3110
  rowActions?: TableRowActionRenderer<TType>[];
3113
3111
  rowActionsForGroup?: TableRowActionGroupRenderer<TType>[];
@@ -3730,12 +3728,30 @@ export declare type TruncateProps = {
3730
3728
  tooltip: string;
3731
3729
  };
3732
3730
 
3731
+ export declare interface UncontrolledCheckboxProps extends CheckboxBaseProps {
3732
+ checked?: never;
3733
+ onChange?: never;
3734
+ defaultChecked?: boolean;
3735
+ }
3736
+
3737
+ declare interface UncontrolledModeSwitchProps extends ModeSwitchBaseProps {
3738
+ checked?: never;
3739
+ onChange?: never;
3740
+ defaultChecked?: boolean;
3741
+ }
3742
+
3733
3743
  declare interface UncontrolledRadioGroupProps extends RadioGroupBaseProps {
3734
3744
  defaultValue?: RadioGroupItemValue;
3735
3745
  onChange?: never;
3736
3746
  value?: never;
3737
3747
  }
3738
3748
 
3749
+ export declare interface UncontrolledSwitchProps extends SwitchBaseProps {
3750
+ checked?: never;
3751
+ onChange?: never;
3752
+ defaultChecked?: boolean;
3753
+ }
3754
+
3739
3755
  export declare const useBoundaryOverflowDetection: (ref: default_2.RefObject<HTMLElement>, dependencies?: any[]) => number | null | undefined;
3740
3756
 
3741
3757
  export declare const useBoundingClientRectListener: (ref: React_2.RefObject<HTMLElement>, dependencies?: Array<any>) => DOMRectReadOnly | undefined;