@keeper-security/keeper-js-ui 0.34.1 → 0.36.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/index.js +1907 -1773
  3. package/dist/style.css +2 -2
  4. package/dist/types/components/layout/box.d.ts +3 -29
  5. package/dist/types/components/layout/box.d.ts.map +1 -1
  6. package/dist/types/components/layout/flex.d.ts +6 -28
  7. package/dist/types/components/layout/flex.d.ts.map +1 -1
  8. package/dist/types/components/ui/alert.d.ts.map +1 -1
  9. package/dist/types/components/ui/autocomplete.d.ts.map +1 -1
  10. package/dist/types/components/ui/avatar.d.ts +21 -17
  11. package/dist/types/components/ui/avatar.d.ts.map +1 -1
  12. package/dist/types/components/ui/checkbox.d.ts +1 -3
  13. package/dist/types/components/ui/checkbox.d.ts.map +1 -1
  14. package/dist/types/components/ui/collapsible.d.ts +13 -5
  15. package/dist/types/components/ui/collapsible.d.ts.map +1 -1
  16. package/dist/types/components/ui/label.d.ts +2 -2
  17. package/dist/types/components/ui/label.d.ts.map +1 -1
  18. package/dist/types/components/ui/loader.d.ts +5 -9
  19. package/dist/types/components/ui/loader.d.ts.map +1 -1
  20. package/dist/types/components/ui/popover.d.ts +31 -15
  21. package/dist/types/components/ui/popover.d.ts.map +1 -1
  22. package/dist/types/components/ui/scroll-area.d.ts +5 -11
  23. package/dist/types/components/ui/scroll-area.d.ts.map +1 -1
  24. package/dist/types/components/ui/separator.d.ts +1 -9
  25. package/dist/types/components/ui/separator.d.ts.map +1 -1
  26. package/dist/types/components/ui/switch.d.ts +9 -10
  27. package/dist/types/components/ui/switch.d.ts.map +1 -1
  28. package/dist/types/components/ui/tooltip.d.ts +31 -17
  29. package/dist/types/components/ui/tooltip.d.ts.map +1 -1
  30. package/dist/types/components/ui/typography.d.ts +1 -1
  31. package/dist/types/components/ui/visually-hidden.d.ts +2 -8
  32. package/dist/types/components/ui/visually-hidden.d.ts.map +1 -1
  33. package/dist/types/hooks/use-direction.d.ts +3 -3
  34. package/dist/types/hooks/use-direction.d.ts.map +1 -1
  35. package/dist/types/hooks/use-tooltip-popover.d.ts +3 -2
  36. package/dist/types/hooks/use-tooltip-popover.d.ts.map +1 -1
  37. package/dist/types/index.d.ts +1 -1
  38. package/dist/types/index.d.ts.map +1 -1
  39. package/dist/types/lib/layout.d.ts +28 -0
  40. package/dist/types/lib/layout.d.ts.map +1 -0
  41. package/dist/types/lib/legacy-props.d.ts +16 -0
  42. package/dist/types/lib/legacy-props.d.ts.map +1 -0
  43. package/package.json +17 -17
@@ -1,33 +1,37 @@
1
- import * as React from 'react';
2
- import { Avatar as AvatarPrimitive } from 'radix-ui';
1
+ import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
3
2
  import { type VariantProps } from 'class-variance-authority';
4
- declare const avatarVariants: (props?: ({
5
- size?: "sm" | "md" | "lg" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
8
- }
9
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
3
+ import * as React from 'react';
10
4
  /**
11
5
  * -----------------------------------------------------------------------------
12
- * AvatarImage
6
+ * Avatar
13
7
  * -----------------------------------------------------------------------------
14
8
  */
15
- declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
9
+ declare const avatarVariants: (props?: ({
10
+ size?: "sm" | "md" | "lg" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export interface AvatarProps extends AvatarPrimitive.Root.Props, VariantProps<typeof avatarVariants> {
13
+ }
14
+ export declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
16
15
  /**
17
16
  * -----------------------------------------------------------------------------
18
17
  * AvatarFallback
19
18
  * -----------------------------------------------------------------------------
20
19
  */
21
- declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
20
+ export declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AvatarFallbackProps & {
22
21
  value: string;
23
- } & React.RefAttributes<HTMLSpanElement>>;
24
- declare const AvatarStatus: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
25
- status?: "active" | "inactive" | null | undefined;
26
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
22
+ }, "ref"> & React.RefAttributes<HTMLSpanElement>>;
27
23
  /**
28
24
  * -----------------------------------------------------------------------------
29
- * Exports
25
+ * AvatarImage
30
26
  * -----------------------------------------------------------------------------
31
27
  */
32
- export { Avatar, AvatarImage, AvatarFallback, AvatarStatus, type AvatarProps };
28
+ export declare const AvatarImage: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AvatarImageProps, "ref"> & React.RefAttributes<HTMLImageElement>>;
29
+ export declare const AvatarStatus: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
30
+ ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
31
+ } & {
32
+ render?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, {}> | undefined;
33
+ } & VariantProps<(props?: ({
34
+ status?: "active" | "inactive" | null | undefined;
35
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLDivElement>>;
36
+ export {};
33
37
  //# sourceMappingURL=avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,cAAc;;8EAiBnB,CAAA;AAED,UAAU,WACR,SACE,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAC3D,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE1C,QAAA,MAAM,MAAM,qFAUV,CAAA;AAGF;;;;GAIG;AAEH,QAAA,MAAM,WAAW,gKAaf,CAAA;AAGF;;;;GAIG;AAEH,QAAA,MAAM,cAAc;WAGT,MAAM;yCAiBf,CAAA;AAiCF,QAAA,MAAM,YAAY;;sHAWhB,CAAA;AAoCF;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;;GAIG;AAEH,QAAA,MAAM,cAAc;;8EAenB,CAAA;AAED,MAAM,WAAW,WACf,SAAQ,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE5E,eAAO,MAAM,MAAM,kGAgBlB,CAAA;AAGD;;;;GAIG;AAEH,eAAO,MAAM,cAAc;WAEiB,MAAM;iDAuBhD,CAAA;AAGF;;;;GAIG;AAEH,eAAO,MAAM,WAAW,iIAiBtB,CAAA;AA+BF,eAAO,MAAM,YAAY;;;;;;8HAcvB,CAAA"}
@@ -1,5 +1,3 @@
1
1
  import * as React from 'react';
2
- import { Checkbox as CheckboxPrimitive } from 'radix-ui';
3
- declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Checkbox };
2
+ export declare const Checkbox: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").CheckboxRootProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
5
3
  //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAKxD,QAAA,MAAM,QAAQ,iKAyBZ,CAAA;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAoB9B,eAAO,MAAM,QAAQ,6KAkCnB,CAAA"}
@@ -1,7 +1,15 @@
1
- import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
2
1
  import React from 'react';
3
- declare const Collapsible: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
- declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- export { Collapsible, CollapsibleContent, CollapsibleTrigger };
2
+ export declare const Collapsible: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").CollapsibleRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ /**
4
+ * -----------------------------------------------------------------------------
5
+ * CollapsibleContent
6
+ * -----------------------------------------------------------------------------
7
+ */
8
+ export declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ /**
10
+ * -----------------------------------------------------------------------------
11
+ * CollapsibleTrigger
12
+ * -----------------------------------------------------------------------------
13
+ */
14
+ export declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
15
  //# sourceMappingURL=collapsible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,QAAA,MAAM,WAAW,iKASf,CAAA;AAGF,QAAA,MAAM,kBAAkB,8KAiBtB,CAAA;AAGF,QAAA,MAAM,kBAAkB,wKAStB,CAAA;AAGF,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA"}
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,WAAW,sLAWtB,CAAA;AAGF;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,uLAW7B,CAAA;AAGF;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,+LAsB7B,CAAA"}
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- import { Label as LabelPrimitive } from 'radix-ui';
3
1
  import { type VariantProps } from 'class-variance-authority';
2
+ import { Label as LabelPrimitive } from 'radix-ui';
3
+ import * as React from 'react';
4
4
  declare const labelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
5
  interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/ui/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa,oFAMjB,CAAA;AAEF,UAAU,UACR,SACE,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,EAC1D,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,KAAK,qFAUT,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/ui/label.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,aAAa,oFASjB,CAAA;AAEF,UAAU,UACR,SACE,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,EAC1D,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,KAAK,qFAUT,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,CAAA"}
@@ -1,17 +1,13 @@
1
- import * as React from 'react';
1
+ import { useRender } from '@base-ui/react/use-render';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
3
4
  declare const loaderVariants: (props?: ({
4
5
  color?: "current" | "destructive" | "neutral" | "primary" | "secondary" | "success" | null | undefined;
5
6
  loading?: boolean | null | undefined;
6
7
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
7
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- interface LoaderProps extends Omit<React.ComponentProps<'svg'>, 'color'>, VariantProps<typeof loaderVariants> {
9
+ interface LoaderProps extends Omit<useRender.ComponentProps<'svg'>, 'color'>, VariantProps<typeof loaderVariants> {
9
10
  }
10
- declare const Loader: React.ForwardRefExoticComponent<Omit<LoaderProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
11
- /**
12
- * -----------------------------------------------------------------------------
13
- * Exports
14
- * -----------------------------------------------------------------------------
15
- */
16
- export { Loader, type LoaderProps };
11
+ export declare const Loader: React.ForwardRefExoticComponent<Omit<LoaderProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
12
+ export {};
17
13
  //# sourceMappingURL=loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/components/ui/loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMjE,QAAA,MAAM,cAAc;;;;8EAgCnB,CAAA;AAED,UAAU,WACR,SACE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAC1C,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE1C,QAAA,MAAM,MAAM,gGA4FX,CAAA;AAID;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/components/ui/loader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,cAAc;;;;8EAgCnB,CAAA;AAED,UAAU,WACR,SACE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAC9C,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE1C,eAAO,MAAM,MAAM,gGAmGlB,CAAA"}
@@ -1,33 +1,49 @@
1
+ import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
1
2
  import * as React from 'react';
2
- import { Popover as PopoverPrimitive } from 'radix-ui';
3
- declare function Popover(props: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
4
- declare namespace Popover {
5
- var displayName: string | undefined;
6
- }
3
+ type OutsideEvent = CustomEvent<{
4
+ originalEvent: Event;
5
+ }>;
6
+ type OutsideHandler = (event: OutsideEvent) => void;
7
+ type LegacyComposition = {
8
+ /** @deprecated Use render instead. Explicit render takes precedence. */
9
+ asChild?: boolean;
10
+ };
11
+ type PositioningProps = Pick<PopoverPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'anchor' | 'arrowPadding' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding' | 'disableAnchorTracking' | 'positionMethod' | 'side' | 'sideOffset' | 'sticky'>;
12
+ type PopoverContentProps = PopoverPrimitive.Popup.Props & PositioningProps & {
13
+ container?: PopoverPrimitive.Portal.Props['container'];
14
+ /** @deprecated Use root onOpenChange and details.cancel(). */
15
+ onInteractOutside?: OutsideHandler;
16
+ portalProps?: Omit<PopoverPrimitive.Portal.Props, 'children'>;
17
+ positionerProps?: Omit<PopoverPrimitive.Positioner.Props, 'children'>;
18
+ };
19
+ export declare function Popover<Payload = unknown>({ onOpenChange, ...props }: PopoverPrimitive.Root.Props<Payload>): React.JSX.Element;
7
20
  /**
8
21
  * -----------------------------------------------------------------------------
9
- * PopoverTrigger
22
+ * PopoverAnchor
10
23
  * -----------------------------------------------------------------------------
11
24
  */
12
- declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
25
+ export declare const PopoverAnchor: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
+ ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
27
+ } & {
28
+ render?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, {}> | undefined;
29
+ } & LegacyComposition, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
30
  /**
14
31
  * -----------------------------------------------------------------------------
15
- * PopoverContent
32
+ * PopoverClose
16
33
  * -----------------------------------------------------------------------------
17
34
  */
18
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
19
- container?: React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>["container"];
20
- } & React.RefAttributes<HTMLDivElement>>;
35
+ export declare const PopoverClose: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").PopoverCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
21
36
  /**
22
37
  * -----------------------------------------------------------------------------
23
- * PopoverAnchor
38
+ * PopoverContent
24
39
  * -----------------------------------------------------------------------------
25
40
  */
26
- declare const PopoverAnchor: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
+ export declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
27
42
  /**
28
43
  * -----------------------------------------------------------------------------
29
- * Exports
44
+ * PopoverTrigger
30
45
  * -----------------------------------------------------------------------------
31
46
  */
32
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
47
+ export declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.Trigger.Props<unknown>, "ref"> & LegacyComposition & React.RefAttributes<HTMLButtonElement>>;
48
+ export {};
33
49
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAItD,iBAAS,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAEzE;kBAFQ,OA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,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IAC7D,eAAe,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;CACtE,CAAA;AAEH,wBAAgB,OAAO,CAAC,OAAO,GAAG,OAAO,EAAE,EACzC,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,qBAuCtC;AAED;;;;GAIG;AAEH,eAAO,MAAM,aAAa;;;;oEAmBxB,CAAA;AAGF;;;;GAIG;AAEH,eAAO,MAAM,YAAY,yLASvB,CAAA;AAGF;;;;GAIG;AAEH,eAAO,MAAM,cAAc,yGAgH1B,CAAA;AAGD;;;;GAIG;AAEH,eAAO,MAAM,cAAc,oJA8D1B,CAAA"}
@@ -1,19 +1,13 @@
1
+ import { ScrollArea as ScrollAreaPrimitive } from '@base-ui/react/scroll-area';
1
2
  import * as React from 'react';
2
- import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
3
- interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {
4
- axis?: 'x' | 'y' | 'both';
3
+ export interface ScrollAreaProps extends ScrollAreaPrimitive.Root.Props {
4
+ axis?: 'both' | 'x' | 'y';
5
5
  }
6
- declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
7
  /**
8
8
  * -----------------------------------------------------------------------------
9
9
  * ScrollAreaViewport
10
10
  * -----------------------------------------------------------------------------
11
11
  */
12
- declare const ScrollAreaViewport: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- /**
14
- * -----------------------------------------------------------------------------
15
- * Exports
16
- * -----------------------------------------------------------------------------
17
- */
18
- export { ScrollArea, ScrollAreaViewport, type ScrollAreaProps };
12
+ export declare const ScrollAreaViewport: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ScrollAreaViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
13
  //# sourceMappingURL=scroll-area.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAsB5D,UAAU,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAC9D,OAAO,mBAAmB,CAAC,IAAI,CAChC;IACC,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,MAAM,CAAA;CAC1B;AAED,QAAA,MAAM,UAAU,wFAsCd,CAAA;AAGF;;;;GAIG;AAEH,QAAA,MAAM,kBAAkB,uKAwBtB,CAAA;AAuCF;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,KAAK,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,eAAgB,SAAQ,mBAAmB,CAAC,IAAI,CAAC,KAAK;IACrE,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAAA;CAC1B;AAsBD,eAAO,MAAM,UAAU,qGAiCtB,CAAA;AAGD;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,sIAiC7B,CAAA"}
@@ -1,11 +1,3 @@
1
1
  import * as React from 'react';
2
- import { Separator as SeparatorPrimitive } from 'radix-ui';
3
- type SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;
4
- declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- /**
6
- * -----------------------------------------------------------------------------
7
- * Exports
8
- * -----------------------------------------------------------------------------
9
- */
10
- export { Separator, type SeparatorProps };
2
+ export declare const Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
3
  //# sourceMappingURL=separator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAI1D,KAAK,cAAc,GAAG,KAAK,CAAC,wBAAwB,CAClD,OAAO,kBAAkB,CAAC,IAAI,CAC/B,CAAA;AAED,QAAA,MAAM,SAAS,6JAuBd,CAAA;AAGD;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAoB9B,eAAO,MAAM,SAAS,6HAkBpB,CAAA"}
@@ -1,6 +1,10 @@
1
- import * as React from 'react';
2
- import { Switch as SwitchPrimitive } from 'radix-ui';
3
1
  import type { AtLeastOneRequired } from '../../lib/types';
2
+ import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
3
+ import { type VariantProps } from 'class-variance-authority';
4
+ import * as React from 'react';
5
+ declare const switchVariants: (props?: ({
6
+ variant?: "default" | "proposed" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
8
  type SwitchPropsA11y = {
5
9
  id: string;
6
10
  'aria-labelledby': string;
@@ -15,12 +19,7 @@ type SwitchHiddenProps = {
15
19
  } | {
16
20
  'aria-hidden': true | 'true';
17
21
  };
18
- type SwitchProps = (SwitchAccessibleProps | SwitchHiddenProps) & React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>;
19
- declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
20
- /**
21
- * -----------------------------------------------------------------------------
22
- * Exports
23
- * -----------------------------------------------------------------------------
24
- */
25
- export { Switch, type SwitchProps };
22
+ export type SwitchProps = (SwitchAccessibleProps | SwitchHiddenProps) & React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & VariantProps<typeof switchVariants>;
23
+ export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLElement>>;
24
+ export {};
26
25
  //# sourceMappingURL=switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,KAAK,qBAAqB,GAAG,kBAAkB,CAAC,eAAe,CAAC,GAAG;IAEjE,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,aAAa,CAAC,EAAE,KAAK,CAAA;CACtB,CAAA;AAED,KAAK,iBAAiB,GAAG;IAAE,MAAM,EAAE,IAAI,CAAA;C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FAsBlB,CAAA"}
@@ -1,36 +1,50 @@
1
+ import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
1
2
  import * as React from 'react';
2
- import { Tooltip as TooltipPrimitive } from 'radix-ui';
3
- declare function Tooltip(props: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
4
- declare namespace Tooltip {
5
- var displayName: string | undefined;
6
- }
7
3
  /**
8
4
  * -----------------------------------------------------------------------------
9
- * TooltipProvider
5
+ * Tooltip
10
6
  * -----------------------------------------------------------------------------
11
7
  */
12
- declare function TooltipProvider({ delayDuration, disableHoverableContent, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
13
- declare namespace TooltipProvider {
14
- var displayName: string | undefined;
8
+ type TooltipProps<Payload = unknown> = TooltipPrimitive.Root.Props<Payload> & {
9
+ /** @deprecated Use disableHoverablePopup instead. The native prop takes precedence. */
10
+ disableHoverableContent?: boolean;
11
+ };
12
+ export declare function Tooltip<Payload = unknown>(props: TooltipProps<Payload>): React.JSX.Element;
13
+ export declare namespace Tooltip {
14
+ var displayName: string;
15
15
  }
16
16
  /**
17
17
  * -----------------------------------------------------------------------------
18
- * TooltipTrigger
18
+ * TooltipProvider
19
19
  * -----------------------------------------------------------------------------
20
20
  */
21
- declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
21
+ export declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): React.JSX.Element;
22
+ export declare namespace TooltipProvider {
23
+ var displayName: string;
24
+ }
22
25
  /**
23
26
  * -----------------------------------------------------------------------------
24
- * TooltipContent
27
+ * TooltipTrigger
25
28
  * -----------------------------------------------------------------------------
26
29
  */
27
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
28
- container?: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Portal>["container"];
29
- } & React.RefAttributes<HTMLDivElement>>;
30
+ type TooltipTriggerProps = TooltipPrimitive.Trigger.Props & {
31
+ /** @deprecated Use render instead. An explicit render takes precedence. */
32
+ asChild?: boolean;
33
+ };
34
+ export declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
30
35
  /**
31
36
  * -----------------------------------------------------------------------------
32
- * Exports
37
+ * TooltipContent
33
38
  * -----------------------------------------------------------------------------
34
39
  */
35
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
40
+ type PositioningProps = Pick<TooltipPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'anchor' | 'arrowPadding' | 'collisionAvoidance' | 'collisionPadding' | 'disableAnchorTracking' | 'positionMethod' | 'side' | 'sideOffset' | 'sticky'>;
41
+ type TooltipContentProps = TooltipPrimitive.Popup.Props & PositioningProps & {
42
+ collisionBoundary?: TooltipPrimitive.Positioner.Props['collisionBoundary'] | null;
43
+ container?: TooltipPrimitive.Portal.Props['container'];
44
+ keepMounted?: TooltipPrimitive.Portal.Props['keepMounted'];
45
+ portalProps?: Omit<TooltipPrimitive.Portal.Props, 'children' | 'container' | 'keepMounted'>;
46
+ positionerProps?: Omit<TooltipPrimitive.Positioner.Props, keyof PositioningProps | 'children' | 'collisionBoundary'>;
47
+ };
48
+ export declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
49
+ export {};
36
50
  //# sourceMappingURL=tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAItD,iBAAS,OAAO,CAAC,KAAK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BAAgB,CAAC,OAAO,CAAC,KAAK,GAAG;IAC1D,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,cAAc,4GAgCzB,CAAA;AAGF;;;;GAIG;AAEH,KAAK,gBAAgB,GAAG,IAAI,CAC1B,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAC/B,OAAO,GACP,aAAa,GACb,QAAQ,GACR,cAAc,GACd,oBAAoB,GACpB,kBAAkB,GAClB,uBAAuB,GACvB,gBAAgB,GAChB,MAAM,GACN,YAAY,GACZ,QAAQ,CACX,CAAA;AAED,KAAK,mBAAmB,GAAG,gBAAgB,CAAC,KAAK,CAAC,KAAK,GACrD,gBAAgB,GAAG;IACjB,iBAAiB,CAAC,EACd,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,mBAAmB,CAAC,GACtD,IAAI,CAAA;IACR,SAAS,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;IACtD,WAAW,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,IAAI,CAChB,gBAAgB,CAAC,MAAM,CAAC,KAAK,EAC7B,UAAU,GAAG,WAAW,GAAG,aAAa,CACzC,CAAA;IACD,eAAe,CAAC,EAAE,IAAI,CACpB,gBAAgB,CAAC,UAAU,CAAC,KAAK,EACjC,MAAM,gBAAgB,GAAG,UAAU,GAAG,mBAAmB,CAC1D,CAAA;CACF,CAAA;AAEH,eAAO,MAAM,cAAc,yGAkG1B,CAAA"}
@@ -15,7 +15,7 @@ declare const typographyVariants: (props?: ({
15
15
  screenReaderOnly?: boolean | null | undefined;
16
16
  truncate?: boolean | null | undefined;
17
17
  whitespace?: "pre" | "normal" | "nowrap" | "break-spaces" | "pre-line" | "pre-wrap" | null | undefined;
18
- wordBreak?: "all" | "words" | "normal" | "keep" | null | undefined;
18
+ wordBreak?: "all" | "normal" | "words" | "keep" | null | undefined;
19
19
  wrap?: "wrap" | "balance" | "nowrap" | "pretty" | null | undefined;
20
20
  weight?: "bold" | "black" | "normal" | "medium" | "thin" | "light" | "extralight" | "regular" | "semibold" | "extrabold" | null | undefined;
21
21
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,10 +1,4 @@
1
+ import { useRender } from '@base-ui/react/use-render';
1
2
  import * as React from 'react';
2
- import { VisuallyHidden as VisuallyHiddenPrimitive } from 'radix-ui';
3
- declare const VisuallyHidden: React.ForwardRefExoticComponent<Omit<VisuallyHiddenPrimitive.VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- /**
5
- * -----------------------------------------------------------------------------
6
- * Exports
7
- * -----------------------------------------------------------------------------
8
- */
9
- export { VisuallyHidden };
3
+ export declare const VisuallyHidden: React.ForwardRefExoticComponent<Omit<useRender.ComponentProps<"span", {}, import("@base-ui/react").HTMLProps>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
10
4
  //# sourceMappingURL=visually-hidden.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../../src/components/ui/visually-hidden.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAEpE,QAAA,MAAM,cAAc,yKAsBlB,CAAA;AAIF;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../../src/components/ui/visually-hidden.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,eAAO,MAAM,cAAc,+JA0BzB,CAAA"}
@@ -4,7 +4,7 @@ interface DirectionProviderProps {
4
4
  children?: React.ReactNode;
5
5
  dir: Direction;
6
6
  }
7
- declare const useDirection: typeof DirectionPrimitive.useDirection;
8
- declare function DirectionProvider(props: DirectionProviderProps): import("react").JSX.Element;
9
- export { DirectionProvider, useDirection };
7
+ export declare function DirectionProvider({ children, dir }: DirectionProviderProps): import("react").JSX.Element;
8
+ export declare const useDirection: typeof DirectionPrimitive.useDirection;
9
+ export {};
10
10
  //# sourceMappingURL=use-direction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-direction.d.ts","sourceRoot":"","sources":["../../src/hooks/use-direction.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE1D,KAAK,SAAS,GAAG,KAAK,GAAG,KAAK,CAAA;AAC9B,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,GAAG,EAAE,SAAS,CAAA;CACf;AAED,QAAA,MAAM,YAAY,wCAAkC,CAAA;AAEpD,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAEvD;AAED,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"use-direction.d.ts","sourceRoot":"","sources":["../../src/hooks/use-direction.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE1D,KAAK,SAAS,GAAG,KAAK,GAAG,KAAK,CAAA;AAC9B,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,GAAG,EAAE,SAAS,CAAA;CACf;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,sBAAsB,+BAQ1E;AAED,eAAO,MAAM,YAAY,wCAAkC,CAAA"}
@@ -1,11 +1,12 @@
1
- declare function useTooltipPopover(): {
1
+ import type { Tooltip } from '@base-ui/react/tooltip';
2
+ export declare function useTooltipPopover(): {
2
3
  tooltipOpen: boolean;
3
4
  onPopoverOpenChange: (newState: boolean) => void;
4
5
  onTooltipContentEscape: () => void;
6
+ onTooltipOpenChange: (open: boolean, details: Tooltip.Root.ChangeEventDetails) => void;
5
7
  onTriggerBlur: () => void;
6
8
  onTriggerFocus: () => void;
7
9
  onTriggerMouseEnter: () => void;
8
10
  onTriggerMouseLeave: () => void;
9
11
  };
10
- export { useTooltipPopover };
11
12
  //# sourceMappingURL=use-tooltip-popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-tooltip-popover.d.ts","sourceRoot":"","sources":["../../src/hooks/use-tooltip-popover.ts"],"names":[],"mappings":"AAEA,iBAAS,iBAAiB;;oCAqBmB,OAAO;;;;;;EA6BnD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"use-tooltip-popover.d.ts","sourceRoot":"","sources":["../../src/hooks/use-tooltip-popover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAGrD,wBAAgB,iBAAiB;;oCAqBY,OAAO;;gCAS1C,OAAO,WACJ,OAAO,CAAC,IAAI,CAAC,kBAAkB;;;;;EA+B3C"}
@@ -15,7 +15,7 @@ export { BaseInput, Input } from './components/ui/input';
15
15
  export { Label } from './components/ui/label';
16
16
  export { List, ListItem, ListItemArrow, ListItemButton, ListItemSecondaryActions, ListItemText, ListLabel, ListSeparator, } from './components/ui/list';
17
17
  export { Loader } from './components/ui/loader';
18
- export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger, } from './components/ui/popover';
18
+ export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, } from './components/ui/popover';
19
19
  export { ScrollArea, ScrollAreaViewport } from './components/ui/scroll-area';
20
20
  export { SearchInput } from './components/ui/search-input';
21
21
  export { Select, SelectContent, SelectGroup, SelectLabel, SelectSeparator, SelectItem, SelectTrigger, SelectValue, } from './components/ui/select';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAGpB,OAAO,EACL,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,GACX,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,QAAQ,EACR,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,GACb,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE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iCAAiC,CAAA;AAGhE,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAG/C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAG/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGrD,OAAO,EACL,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,eAAe,GAChB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,GACf,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAG/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,28 @@
1
+ import type { BlockBaseProps } from '../lib/types';
2
+ import { useRender } from '@base-ui/react/use-render';
3
+ import { type VariantProps } from 'class-variance-authority';
4
+ import * as React from 'react';
5
+ declare const boxVariants: (props?: ({
6
+ display?: "none" | "block" | "inline-block" | null | undefined;
7
+ grow?: 0 | 1 | null | undefined;
8
+ position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | null | undefined;
9
+ self?: "center" | "end" | "start" | "auto" | "baseline" | "stretch" | null | undefined;
10
+ shrink?: 0 | 1 | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export type LayoutBaseProps = Omit<BlockBaseProps, 'className' | 'style'> & Pick<useRender.ComponentProps<'div'>, 'className' | 'render' | 'style'> & VariantProps<typeof boxVariants> & {
13
+ basis?: React.CSSProperties['flexBasis'];
14
+ flex?: React.CSSProperties['flex'];
15
+ order?: React.CSSProperties['order'];
16
+ };
17
+ export type LayoutCompositionProps = {
18
+ /** @deprecated Use render={<Element />} instead. */
19
+ as?: React.ElementType | React.ReactElement;
20
+ asChild?: never;
21
+ } | {
22
+ as?: never;
23
+ /** @deprecated Use render={<Element />} instead. */
24
+ asChild?: boolean;
25
+ };
26
+ export declare function useLayoutRender(componentName: 'Box' | 'Flex', { as, asChild, basis, children, className, display, flex, grow, m, mb, me, ms, mt, mx, my, order, p, pb, pe, position, ps, pt, px, py, render, self, shrink, style: styleProp, ...props }: LayoutBaseProps & LayoutCompositionProps, ref: React.ForwardedRef<HTMLElement>, extraClassName?: string, extraStyle?: React.CSSProperties): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
27
+ export {};
28
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/lib/layout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,WAAW;;;;;;8EAkCf,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,GACvE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC,GACvE,YAAY,CAAC,OAAO,WAAW,CAAC,GAAG;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAA;IACxC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;CACrC,CAAA;AAEH,MAAM,MAAM,sBAAsB,GAC9B;IACE,oDAAoD;IACpD,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,YAAY,CAAA;IAC3C,OAAO,CAAC,EAAE,KAAK,CAAA;CAChB,GACD;IACE,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAEL,wBAAgB,eAAe,CAC7B,aAAa,EAAE,KAAK,GAAG,MAAM,EAC7B,EACE,EAAE,EACF,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,CAAC,EACD,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,KAAK,EACL,CAAC,EACD,EAAE,EACF,EAAE,EACF,QAAQ,EACR,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,MAAM,EACN,IAAI,EACJ,MAAM,EACN,KAAK,EAAE,SAAS,EAChB,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,sBAAsB,EAC3C,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,EACpC,cAAc,CAAC,EAAE,MAAM,EACvB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,sEA6DjC"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export type LegacyPropConversion<Props extends object, Converted extends object> = {
3
+ convert: (value: unknown, props: Readonly<Props>) => Partial<Converted>;
4
+ replacement: string;
5
+ when?: (value: unknown, props: Readonly<Props>) => boolean;
6
+ };
7
+ export declare function convertLegacyProps<Props extends object, Converted extends object>(component: string, props: Props, conversions: Readonly<Record<string, LegacyPropConversion<Props, Converted>>>): Converted;
8
+ export declare function resolveLegacyRender<Render>(component: string, asChild: boolean | undefined, children: React.ReactNode, render: Render): {
9
+ children: React.ReactNode;
10
+ render: Render;
11
+ } | {
12
+ children: undefined;
13
+ render: React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
14
+ };
15
+ export declare function warnLegacyProps(component: string, props: object, replacements: Readonly<Record<string, string>>): void;
16
+ //# sourceMappingURL=legacy-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-props.d.ts","sourceRoot":"","sources":["../../src/lib/legacy-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,MAAM,oBAAoB,CAC9B,KAAK,SAAS,MAAM,EACpB,SAAS,SAAS,MAAM,IACtB;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,SAAS,CAAC,CAAA;IACvE,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,OAAO,CAAA;CAC3D,CAAA;AAGD,wBAAgB,kBAAkB,CAChC,KAAK,SAAS,MAAM,EACpB,SAAS,SAAS,MAAM,EAExB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAC5E,SAAS,CAkDX;AAGD,wBAAgB,mBAAmB,CAAC,MAAM,EACxC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,MAAM,EAAE,MAAM;;;;;;EAaf;AAGD,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,QAa/C"}