@eqtylab/equality 4.15.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/index.cjs +590 -746
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -209
- package/dist/index.d.ts +16 -209
- package/dist/index.js +535 -672
- package/dist/index.js.map +1 -1
- package/dist/skeleton.module.module.css.module.css +4 -1
- package/package.json +2 -4
- package/dist/drawer.module.module.css.module.css +0 -165
- package/dist/list-or-grid-view-toggle.module.module.css.module.css +0 -52
- package/dist/scroll-area.module.module.css.module.css +0 -46
package/dist/index.d.cts
CHANGED
|
@@ -8,7 +8,6 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
|
8
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
9
|
import { Command as Command$1 } from 'cmdk';
|
|
10
10
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
11
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
12
11
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
13
12
|
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
14
13
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -18,7 +17,6 @@ import * as LucideIcons from 'lucide-react';
|
|
|
18
17
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
19
18
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
20
19
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
21
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
22
20
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
23
21
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
22
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
@@ -891,147 +889,6 @@ interface DisplayFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
891
889
|
*/
|
|
892
890
|
declare function DisplayField({ className, variant, elevation, children, prefix, truncate, copy, actions, slot, ...props }: DisplayFieldProps): react_jsx_runtime.JSX.Element;
|
|
893
891
|
|
|
894
|
-
/**
|
|
895
|
-
* **Props**
|
|
896
|
-
* - `activeSnapPoint?: string | number | null`
|
|
897
|
-
* - `setActiveSnapPoint?: (snapPoint: string | number | null) => void`
|
|
898
|
-
* - `children?: ReactNode`
|
|
899
|
-
* - `open?: boolean`
|
|
900
|
-
* - `closeThreshold?: number` (default `0.25`) — Number between 0 and 1 that determines when the drawer should be closed.
|
|
901
|
-
* Example: threshold of 0.5 would close the drawer if the user swiped for 50% of the height of the drawer or more.
|
|
902
|
-
* - `noBodyStyles?: boolean` — When `true` the `body` doesn't get any styles assigned from Vaul
|
|
903
|
-
* - `onOpenChange?: (open: boolean) => void`
|
|
904
|
-
* - `shouldScaleBackground?: boolean` (default `true`)
|
|
905
|
-
* - `setBackgroundColorOnScale?: boolean` (default `true`) — When `false` we don't change body's background color when the drawer is open.
|
|
906
|
-
* - `scrollLockTimeout?: number` (default `500ms`) — Duration for which the drawer is not draggable after scrolling content inside of the drawer.
|
|
907
|
-
* - `fixed?: boolean` — When `true`, don't move the drawer upwards if there's space, but rather only change it's height so it's fully scrollable when the keyboard is open
|
|
908
|
-
* - `handleOnly?: boolean` (default `false`) — When `true` only allows the drawer to be dragged by the `<Drawer.Handle />` component.
|
|
909
|
-
* - `dismissible?: boolean` (default `true`) — When `false` dragging, clicking outside, pressing esc, etc. will not close the drawer.
|
|
910
|
-
* Use this in comination with the `open` prop, otherwise you won't be able to open/close the drawer.
|
|
911
|
-
* - `onDrag?: (event: PointerEvent<HTMLDivElement>, percentageDragged: number) => void`
|
|
912
|
-
* - `onRelease?: (event: PointerEvent<HTMLDivElement>, open: boolean) => void`
|
|
913
|
-
* - `modal?: boolean` (default `true`) — When `false` it allows to interact with elements outside of the drawer without closing it.
|
|
914
|
-
* - `nested?: boolean`
|
|
915
|
-
* - `onClose?: () => void`
|
|
916
|
-
* - `direction?: "top" | "bottom" | "left" | "right"` (default `'bottom'`) — Direction of the drawer. Can be `top` or `bottom`, `left`, `right`.
|
|
917
|
-
* - `defaultOpen?: boolean` (default `false`) — Opened by default, skips initial enter animation. Still reacts to `open` state changes
|
|
918
|
-
* - `disablePreventScroll?: boolean` (default `false`) — When set to `true` prevents scrolling on the document body on mount, and restores it on unmount.
|
|
919
|
-
* - `repositionInputs?: boolean` (default `true when {@link snapPoints } is defined`) — When `true` Vaul will reposition inputs rather than scroll then into view if the keyboard is in the way.
|
|
920
|
-
* Setting it to `false` will fall back to the default browser behavior.
|
|
921
|
-
* - `snapToSequentialPoint?: boolean` (default `false`) — Disabled velocity based swiping for snap points.
|
|
922
|
-
* This means that a snap point won't be skipped even if the velocity is high enough.
|
|
923
|
-
* Useful if each snap point in a drawer is equally important.
|
|
924
|
-
* - `container?: HTMLElement | null`
|
|
925
|
-
* - `onAnimationEnd?: (open: boolean) => void` — Gets triggered after the open or close animation ends, it receives an `open` argument with the `open` state of the drawer by the time the function was triggered.
|
|
926
|
-
* Useful to revert any state changes for example.
|
|
927
|
-
* - `preventScrollRestoration?: boolean`
|
|
928
|
-
* - `autoFocus?: boolean`
|
|
929
|
-
* - `snapPoints?: (string | number)[]` — Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up.
|
|
930
|
-
* Should go from least visible. Example `[0.2, 0.5, 0.8]`.
|
|
931
|
-
* You can also use px values, which doesn't take screen height into account.
|
|
932
|
-
* - `fadeFromIndex?: number` — Index of a `snapPoint` from which the overlay fade should be applied. Defaults to the last snap point.
|
|
933
|
-
*/
|
|
934
|
-
declare const Drawer: {
|
|
935
|
-
({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
936
|
-
displayName: string;
|
|
937
|
-
};
|
|
938
|
-
/**
|
|
939
|
-
* **Props**
|
|
940
|
-
* - `asChild?: boolean`
|
|
941
|
-
*
|
|
942
|
-
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
943
|
-
*/
|
|
944
|
-
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
945
|
-
/**
|
|
946
|
-
* **Props**
|
|
947
|
-
* - `children: React.ReactNode`
|
|
948
|
-
*/
|
|
949
|
-
declare const DrawerPortal: ({ children }: {
|
|
950
|
-
children: React$1.ReactNode;
|
|
951
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
952
|
-
/**
|
|
953
|
-
* **Props**
|
|
954
|
-
* - `asChild?: boolean`
|
|
955
|
-
*
|
|
956
|
-
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
957
|
-
*/
|
|
958
|
-
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
959
|
-
/**
|
|
960
|
-
* **Props**
|
|
961
|
-
* - `asChild?: boolean`
|
|
962
|
-
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
963
|
-
* controlling animation with React animation libraries.
|
|
964
|
-
*
|
|
965
|
-
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
966
|
-
*/
|
|
967
|
-
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
968
|
-
/**
|
|
969
|
-
* **Props**
|
|
970
|
-
* - `asChild?: boolean`
|
|
971
|
-
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
972
|
-
* Can be prevented.
|
|
973
|
-
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void` — Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
974
|
-
* Can be prevented.
|
|
975
|
-
* - `onFocusOutside?: (event: FocusOutsideEvent) => void` — Event handler called when the focus moves outside of the `DismissableLayer`.
|
|
976
|
-
* Can be prevented.
|
|
977
|
-
* - `onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void` — Event handler called when an interaction happens outside the `DismissableLayer`.
|
|
978
|
-
* Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
|
|
979
|
-
* Can be prevented.
|
|
980
|
-
* - `onOpenAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on open.
|
|
981
|
-
* Can be prevented.
|
|
982
|
-
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
983
|
-
* Can be prevented.
|
|
984
|
-
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
985
|
-
* controlling animation with React animation libraries.
|
|
986
|
-
*
|
|
987
|
-
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
988
|
-
*/
|
|
989
|
-
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
990
|
-
/**
|
|
991
|
-
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
992
|
-
*/
|
|
993
|
-
declare const DrawerHeader: {
|
|
994
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
995
|
-
displayName: string;
|
|
996
|
-
};
|
|
997
|
-
/**
|
|
998
|
-
* **Props**
|
|
999
|
-
* - `rowSpan: number`
|
|
1000
|
-
*
|
|
1001
|
-
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1002
|
-
*/
|
|
1003
|
-
declare const DrawerHeaderActions: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1004
|
-
rowSpan: number;
|
|
1005
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1006
|
-
/**
|
|
1007
|
-
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1008
|
-
*/
|
|
1009
|
-
declare const DrawerFooter: {
|
|
1010
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1011
|
-
displayName: string;
|
|
1012
|
-
};
|
|
1013
|
-
/**
|
|
1014
|
-
* **Props**
|
|
1015
|
-
* - `asChild?: boolean`
|
|
1016
|
-
*
|
|
1017
|
-
* Also accepts the standard `HTMLHeadingElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1018
|
-
*/
|
|
1019
|
-
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1020
|
-
/**
|
|
1021
|
-
* **Props**
|
|
1022
|
-
* - `asChild?: boolean`
|
|
1023
|
-
*
|
|
1024
|
-
* Also accepts the standard `HTMLParagraphElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1025
|
-
*/
|
|
1026
|
-
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1027
|
-
/**
|
|
1028
|
-
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1029
|
-
*/
|
|
1030
|
-
declare const DrawerInnerContent: {
|
|
1031
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1032
|
-
displayName: string;
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
892
|
declare const useDropdownMenuSearchQuery: () => {
|
|
1036
893
|
query: string;
|
|
1037
894
|
isSearching: boolean;
|
|
@@ -1119,7 +976,7 @@ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<Dro
|
|
|
1119
976
|
* - `arrowPadding?: number`
|
|
1120
977
|
* - `avoidCollisions?: boolean`
|
|
1121
978
|
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
1122
|
-
* - `collisionPadding?: number | Partial<Record<"top" | "
|
|
979
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
|
|
1123
980
|
* - `sticky?: "partial" | "always"`
|
|
1124
981
|
* - `hideWhenDetached?: boolean`
|
|
1125
982
|
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
@@ -1151,14 +1008,14 @@ declare const DropdownMenuSub: ({ children, ...props }: React$1.ComponentPropsWi
|
|
|
1151
1008
|
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
1152
1009
|
* controlling animation with React animation libraries.
|
|
1153
1010
|
* - `loop?: boolean` — Whether keyboard navigation should loop around
|
|
1154
|
-
* - `side?: "top" | "
|
|
1011
|
+
* - `side?: "top" | "right" | "bottom" | "left"`
|
|
1155
1012
|
* - `sideOffset?: number` (default `4`)
|
|
1156
1013
|
* - `align?: "center" | "start" | "end"`
|
|
1157
1014
|
* - `alignOffset?: number`
|
|
1158
1015
|
* - `arrowPadding?: number`
|
|
1159
1016
|
* - `avoidCollisions?: boolean`
|
|
1160
1017
|
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
1161
|
-
* - `collisionPadding?: number | Partial<Record<"top" | "
|
|
1018
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
|
|
1162
1019
|
* - `sticky?: "partial" | "always"`
|
|
1163
1020
|
* - `hideWhenDetached?: boolean`
|
|
1164
1021
|
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
@@ -1598,27 +1455,6 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
|
|
|
1598
1455
|
*/
|
|
1599
1456
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1600
1457
|
|
|
1601
|
-
type ViewMode = 'grid' | 'list';
|
|
1602
|
-
type ViewOrder = ['grid', 'list'] | ['list', 'grid'];
|
|
1603
|
-
interface ListOrGridViewToggleProps {
|
|
1604
|
-
viewMode: ViewMode;
|
|
1605
|
-
onViewModeChange: (mode: ViewMode) => void;
|
|
1606
|
-
order?: ViewOrder;
|
|
1607
|
-
className?: string;
|
|
1608
|
-
}
|
|
1609
|
-
/**
|
|
1610
|
-
* **Props**
|
|
1611
|
-
* - `viewMode: "grid" | "list"`
|
|
1612
|
-
* - `onViewModeChange: (mode: ViewMode) => void`
|
|
1613
|
-
* - `order?: ViewOrder` (default `['grid', 'list']`)
|
|
1614
|
-
* - `className?: string`
|
|
1615
|
-
*
|
|
1616
|
-
* [List or Grid View Toggle documentation](https://equality.eqtylab.io/components/list-or-grid-view-toggle)
|
|
1617
|
-
*
|
|
1618
|
-
* @deprecated Use `SegmentedControls` instead.
|
|
1619
|
-
*/
|
|
1620
|
-
declare const ListOrGridViewToggle: ({ viewMode, onViewModeChange, order, className, }: ListOrGridViewToggleProps) => react_jsx_runtime.JSX.Element;
|
|
1621
|
-
|
|
1622
1458
|
interface LoadingOverlayProps {
|
|
1623
1459
|
isVisible: boolean;
|
|
1624
1460
|
message?: string;
|
|
@@ -1860,9 +1696,9 @@ interface NavSwitcherLoadedProps {
|
|
|
1860
1696
|
value: string;
|
|
1861
1697
|
/** Called with the picked item's value */
|
|
1862
1698
|
onValueChange: (value: string) => void;
|
|
1863
|
-
/** Hover or focus on an option, for a caller that
|
|
1699
|
+
/** Hover or focus on an option, for a caller that preloads its destination */
|
|
1864
1700
|
onHighlight?: (value: string) => void;
|
|
1865
|
-
/** Hover or focus leaves an option */
|
|
1701
|
+
/** Hover or focus leaves an option, for a caller that cancels its preload */
|
|
1866
1702
|
onHighlightEnd?: () => void;
|
|
1867
1703
|
/** A command at the bottom of the list, kept while searching, such as "Create Project" */
|
|
1868
1704
|
action?: NavSwitcherAction;
|
|
@@ -1880,8 +1716,8 @@ type NavSwitcherProps = NavSwitcherLoadedProps | NavSwitcherLoadingProps;
|
|
|
1880
1716
|
* - `options?: NavSwitcherOption[]` — The items to switch between
|
|
1881
1717
|
* - `value?: string` — The current item's value
|
|
1882
1718
|
* - `onValueChange?: (value: string) => void` — Called with the picked item's value
|
|
1883
|
-
* - `onHighlight?: (value: string) => void` — Hover or focus on an option, for a caller that
|
|
1884
|
-
* - `onHighlightEnd?: () => void` — Hover or focus leaves an option
|
|
1719
|
+
* - `onHighlight?: (value: string) => void` — Hover or focus on an option, for a caller that preloads its destination
|
|
1720
|
+
* - `onHighlightEnd?: () => void` — Hover or focus leaves an option, for a caller that cancels its preload
|
|
1885
1721
|
* - `action?: NavSwitcherAction` — A command at the bottom of the list, kept while searching, such as "Create Project"
|
|
1886
1722
|
*
|
|
1887
1723
|
* [Nav documentation](https://equality.eqtylab.io/components/nav)
|
|
@@ -1994,14 +1830,14 @@ declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive
|
|
|
1994
1830
|
* Can be prevented.
|
|
1995
1831
|
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
1996
1832
|
* controlling animation with React animation libraries.
|
|
1997
|
-
* - `side?: "top" | "
|
|
1833
|
+
* - `side?: "top" | "right" | "bottom" | "left"`
|
|
1998
1834
|
* - `sideOffset?: number` (default `4`)
|
|
1999
1835
|
* - `align?: "center" | "start" | "end"` (default `"center"`)
|
|
2000
1836
|
* - `alignOffset?: number`
|
|
2001
1837
|
* - `arrowPadding?: number`
|
|
2002
1838
|
* - `avoidCollisions?: boolean`
|
|
2003
1839
|
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
2004
|
-
* - `collisionPadding?: number | Partial<Record<"top" | "
|
|
1840
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
|
|
2005
1841
|
* - `sticky?: "partial" | "always"`
|
|
2006
1842
|
* - `hideWhenDetached?: boolean`
|
|
2007
1843
|
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
@@ -2191,35 +2027,6 @@ interface ResourceBadgeProps {
|
|
|
2191
2027
|
*/
|
|
2192
2028
|
declare const ResourceBadge: ({ type, display, closeable, handleClosable, closeLabel, children, }: ResourceBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
2193
2029
|
|
|
2194
|
-
/**
|
|
2195
|
-
* **Props**
|
|
2196
|
-
* - `type?: "auto" | "always" | "scroll" | "hover"`
|
|
2197
|
-
* - `dir?: "ltr" | "rtl"`
|
|
2198
|
-
* - `asChild?: boolean`
|
|
2199
|
-
* - `scrollHideDelay?: number`
|
|
2200
|
-
*
|
|
2201
|
-
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2202
|
-
*
|
|
2203
|
-
* [Scroll Area documentation](https://equality.eqtylab.io/components/scroll-area)
|
|
2204
|
-
*
|
|
2205
|
-
* @deprecated Use a native scrollable element instead — set an overflow and a height on your own
|
|
2206
|
-
* container and leave the browser's scrollbar unstyled.
|
|
2207
|
-
*/
|
|
2208
|
-
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2209
|
-
/**
|
|
2210
|
-
* **Props**
|
|
2211
|
-
* - `asChild?: boolean`
|
|
2212
|
-
* - `forceMount?: true`
|
|
2213
|
-
* - `orientation?: "horizontal" | "vertical"` (default `"vertical"`)
|
|
2214
|
-
*
|
|
2215
|
-
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2216
|
-
*
|
|
2217
|
-
* [Scroll Area documentation](https://equality.eqtylab.io/components/scroll-area)
|
|
2218
|
-
*
|
|
2219
|
-
* @deprecated Part of the deprecated `ScrollArea`. Use a native scrollable element instead.
|
|
2220
|
-
*/
|
|
2221
|
-
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2222
|
-
|
|
2223
2030
|
interface SearchBarProps {
|
|
2224
2031
|
className?: string;
|
|
2225
2032
|
placeholder?: string;
|
|
@@ -2367,14 +2174,14 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimit
|
|
|
2367
2174
|
* Can be prevented.
|
|
2368
2175
|
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
2369
2176
|
* Can be prevented.
|
|
2370
|
-
* - `side?: "top" | "
|
|
2177
|
+
* - `side?: "top" | "right" | "bottom" | "left"`
|
|
2371
2178
|
* - `sideOffset?: number`
|
|
2372
2179
|
* - `align?: "center" | "start" | "end"`
|
|
2373
2180
|
* - `alignOffset?: number`
|
|
2374
2181
|
* - `arrowPadding?: number`
|
|
2375
2182
|
* - `avoidCollisions?: boolean`
|
|
2376
2183
|
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
2377
|
-
* - `collisionPadding?: number | Partial<Record<"top" | "
|
|
2184
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
|
|
2378
2185
|
* - `sticky?: "partial" | "always"`
|
|
2379
2186
|
* - `hideWhenDetached?: boolean`
|
|
2380
2187
|
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
@@ -3054,14 +2861,14 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive
|
|
|
3054
2861
|
* Can be prevented.
|
|
3055
2862
|
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
3056
2863
|
* controlling animation with React animation libraries.
|
|
3057
|
-
* - `side?: "top" | "
|
|
2864
|
+
* - `side?: "top" | "right" | "bottom" | "left"`
|
|
3058
2865
|
* - `sideOffset?: number` (default `4`)
|
|
3059
2866
|
* - `align?: "center" | "start" | "end"`
|
|
3060
2867
|
* - `alignOffset?: number`
|
|
3061
2868
|
* - `arrowPadding?: number`
|
|
3062
2869
|
* - `avoidCollisions?: boolean`
|
|
3063
2870
|
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
3064
|
-
* - `collisionPadding?: number | Partial<Record<"top" | "
|
|
2871
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
|
|
3065
2872
|
* - `sticky?: "partial" | "always"`
|
|
3066
2873
|
* - `hideWhenDetached?: boolean`
|
|
3067
2874
|
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
@@ -3118,7 +2925,7 @@ declare const ThemeProvider: ({ customVars, portalContainer, children }: ThemePr
|
|
|
3118
2925
|
declare const PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
|
|
3119
2926
|
/**
|
|
3120
2927
|
* Container for portalled surfaces — tooltips, popovers, selects, dialogs, sheets,
|
|
3121
|
-
*
|
|
2928
|
+
* dropdown menus.
|
|
3122
2929
|
*
|
|
3123
2930
|
* Resolves to whatever the nearest `PortalContainerProvider` supplies, falling back to
|
|
3124
2931
|
* looking up `#equality-theme-provider-root-portal` in the document so consumers
|
|
@@ -3133,7 +2940,7 @@ interface PortalContainerProviderProps {
|
|
|
3133
2940
|
}
|
|
3134
2941
|
/**
|
|
3135
2942
|
* Supplies the container for portalled surfaces — tooltips, popovers, selects, dialogs,
|
|
3136
|
-
* sheets,
|
|
2943
|
+
* sheets, dropdown menus.
|
|
3137
2944
|
*
|
|
3138
2945
|
* `ThemeProvider` renders one of these automatically, so most consumers never need it
|
|
3139
2946
|
* directly. Reach for it when the container has to be an element you own:
|
|
@@ -3177,4 +2984,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
|
|
|
3177
2984
|
*/
|
|
3178
2985
|
declare const scheduleHighlight: (root?: Node) => Promise<void>;
|
|
3179
2986
|
|
|
3180
|
-
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeDisplayMode, type BadgeProps, BarGraph, type BarGraphProps, BarGraphSegment, type BarGraphSegmentProps, BgGradient, Button, type ButtonProps, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, type CardContentHeaderProps, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, type ControlStatusBadgeDisplayMode, CopyButton, type CopyButtonProps, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, type DisplayFieldProps,
|
|
2987
|
+
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeDisplayMode, type BadgeProps, BarGraph, type BarGraphProps, BarGraphSegment, type BarGraphSegmentProps, BgGradient, Button, type ButtonProps, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, type CardContentHeaderProps, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, type ControlStatusBadgeDisplayMode, CopyButton, type CopyButtonProps, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, type DisplayFieldProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, type Elevation, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, type FormatDateDisplayMode, type FormatDateProps, Heading, Icon, IconButton, type IconButtonProps, type IconProps, InfoCard, Input, type InputProps, Label, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, type NavDrillLevelProps, type NavDrillProps, type NavDrillRequest, NavList, NavListGroup, type NavListGroupProps, NavListItem, type NavListItemProps, type NavListProps, NavListSeparator, NavPanel, type NavPanelProps, NavRail, NavRailItem, type NavRailItemProps, type NavRailProps, NavSwitcher, type NavSwitcherAction, type NavSwitcherOption, type NavSwitcherProps, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressIndicatorStep, type ProgressIndicatorStepProps, RadialGraph, type RadialGraphProps, RadioDropdown, RadioGroup, RadioGroupItem, ResourceBadge, type ResourceDisplayMode, type ResourceType, SearchBar, SectionHeading, type SegmentedControlOption, type SegmentedControlVariant, SegmentedControls, type SegmentedControlsDisplay, type SegmentedControlsProps, type SegmentedControlsSize, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, type SortField, type SortMode, type SortOrder, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, type Theme, ThemeProvider, Toast, ToastAction, type ToastActionElement, ToastClose, ToastContainer, ToastDescription, type ToastProps$1 as ToastProps, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, type ToasterToast, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
|