@acronis-platform/ui-react 0.54.0 → 0.55.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 (65) hide show
  1. package/dist/components/ui/avatar/avatar.js +1 -1
  2. package/dist/components/ui/avatar/avatar.js.map +1 -1
  3. package/dist/components/ui/breadcrumb/breadcrumb.js +5 -5
  4. package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
  5. package/dist/components/ui/chip/chip.js +1 -1
  6. package/dist/components/ui/chip/chip.js.map +1 -1
  7. package/dist/components/ui/combobox/combobox.js +51 -47
  8. package/dist/components/ui/combobox/combobox.js.map +1 -1
  9. package/dist/components/ui/data-table/data-table-column-header.js +7 -7
  10. package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
  11. package/dist/components/ui/data-table/data-table-view-options.js +4 -4
  12. package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
  13. package/dist/components/ui/data-table/data-table.js +1 -1
  14. package/dist/components/ui/data-table/data-table.js.map +1 -1
  15. package/dist/components/ui/dialog/dialog.js +36 -35
  16. package/dist/components/ui/dialog/dialog.js.map +1 -1
  17. package/dist/components/ui/dropdown-menu/dropdown-menu.js +55 -54
  18. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  19. package/dist/components/ui/filter-search/filter-search.js +28 -0
  20. package/dist/components/ui/filter-search/filter-search.js.map +1 -0
  21. package/dist/components/ui/input-date-picker/input-date-picker.js +8 -8
  22. package/dist/components/ui/input-date-picker/input-date-picker.js.map +1 -1
  23. package/dist/components/ui/input-search/input-search.js +11 -12
  24. package/dist/components/ui/input-search/input-search.js.map +1 -1
  25. package/dist/components/ui/input-select/input-select.js +72 -68
  26. package/dist/components/ui/input-select/input-select.js.map +1 -1
  27. package/dist/components/ui/input-text/input-text.js +6 -6
  28. package/dist/components/ui/input-text/input-text.js.map +1 -1
  29. package/dist/components/ui/popover/popover.js +18 -17
  30. package/dist/components/ui/popover/popover.js.map +1 -1
  31. package/dist/components/ui/resizable/resizable.js +24 -32
  32. package/dist/components/ui/resizable/resizable.js.map +1 -1
  33. package/dist/components/ui/sheet/sheet.js +38 -37
  34. package/dist/components/ui/sheet/sheet.js.map +1 -1
  35. package/dist/components/ui/sidebar-primary/sidebar-primary.js +200 -134
  36. package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +1 -1
  37. package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +511 -357
  38. package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +1 -1
  39. package/dist/components/ui/switch/switch.js +6 -6
  40. package/dist/components/ui/switch/switch.js.map +1 -1
  41. package/dist/components/ui/table/table.js +7 -7
  42. package/dist/components/ui/table/table.js.map +1 -1
  43. package/dist/components/ui/tabs/tabs.js +11 -11
  44. package/dist/components/ui/tabs/tabs.js.map +1 -1
  45. package/dist/components/ui/toast/toast.js +35 -33
  46. package/dist/components/ui/toast/toast.js.map +1 -1
  47. package/dist/components/ui/tooltip/tooltip.js +41 -37
  48. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  49. package/dist/index.js +356 -355
  50. package/dist/index.js.map +1 -1
  51. package/dist/lib/portal-container.js +14 -0
  52. package/dist/lib/portal-container.js.map +1 -0
  53. package/dist/react.js +356 -355
  54. package/dist/react.js.map +1 -1
  55. package/dist/src/components/ui/filter-search/filter-search.d.ts +6 -0
  56. package/dist/src/components/ui/filter-search/index.d.ts +2 -0
  57. package/dist/src/components/ui/resizable/index.d.ts +2 -1
  58. package/dist/src/components/ui/resizable/resizable.d.ts +2 -5
  59. package/dist/src/components/ui/sidebar-primary/sidebar-primary.d.ts +48 -3
  60. package/dist/src/components/ui/sidebar-secondary/index.d.ts +1 -1
  61. package/dist/src/components/ui/sidebar-secondary/sidebar-secondary.d.ts +38 -33
  62. package/dist/src/index.d.ts +2 -0
  63. package/dist/src/lib/portal-container.d.ts +36 -0
  64. package/dist/ui-react.css +1 -1
  65. package/package.json +1 -1
package/dist/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export type FilterSearchProps = React.ComponentPropsWithoutRef<'div'>;
3
+ declare const FilterSearch: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export type FilterSearchActionsProps = React.ComponentPropsWithoutRef<'div'>;
5
+ declare const FilterSearchActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { FilterSearch, FilterSearchActions };
@@ -0,0 +1,2 @@
1
+ export { FilterSearch, FilterSearchActions, } from './filter-search';
2
+ export type { FilterSearchProps, FilterSearchActionsProps } from './filter-search';
@@ -1 +1,2 @@
1
- export { ResizablePanelGroup, ResizablePanel, ResizableHandle, type ResizableHandleProps, } from './resizable';
1
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle, } from './resizable';
2
+ export type { ResizableHandleProps } from './resizable';
@@ -1,9 +1,6 @@
1
1
  import * as ResizablePrimitive from 'react-resizable-panels';
2
2
  declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare function ResizablePanel(props: ResizablePrimitive.PanelProps): import("react/jsx-runtime").JSX.Element;
4
- export interface ResizableHandleProps extends ResizablePrimitive.SeparatorProps {
5
- /** Render the grab-bar pill centered on the handle. */
6
- withHandle?: boolean;
7
- }
8
- declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): import("react/jsx-runtime").JSX.Element;
4
+ export type ResizableHandleProps = ResizablePrimitive.SeparatorProps;
5
+ declare function ResizableHandle({ className, ...props }: ResizableHandleProps): import("react/jsx-runtime").JSX.Element;
9
6
  export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -1,6 +1,16 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
+ /**
5
+ * Tracks whether `ref`'s element is clipping its own content (`scrollWidth >
6
+ * clientWidth`) — used to gate a tooltip so it only opens when a truncated
7
+ * label is actually cut off. Re-measures via `ResizeObserver` (covers the
8
+ * rail's expand/collapse width transition); `enabled` skips measurement
9
+ * entirely (e.g. while collapsed, where the label is `sr-only`).
10
+ */
11
+ declare function useIsOverflowing<T extends Element>(ref: React.RefObject<T | null>, { enabled }: {
12
+ enabled: boolean;
13
+ }): boolean;
4
14
  export interface SidebarPrimaryProps extends React.ComponentPropsWithoutRef<'nav'> {
5
15
  /** Controlled expanded (rail width) state. */
6
16
  expanded?: boolean;
@@ -15,7 +25,22 @@ export interface SidebarPrimaryProps extends React.ComponentPropsWithoutRef<'nav
15
25
  render?: useRender.RenderProp;
16
26
  }
17
27
  declare const SidebarPrimary: React.ForwardRefExoticComponent<SidebarPrimaryProps & React.RefAttributes<HTMLElement>>;
18
- declare const SidebarPrimaryHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ export interface SidebarPrimaryHeaderProps extends React.ComponentPropsWithoutRef<'div'> {
29
+ /**
30
+ * Logo content shown while the rail is expanded (e.g. a full lockup).
31
+ * Pairs with `collapsedLogo` to swap distinct graphics per rail state
32
+ * instead of resizing one. When neither `logo` nor `collapsedLogo` is
33
+ * given, `children` renders in both states (the original single-slot
34
+ * behavior).
35
+ */
36
+ logo?: React.ReactNode;
37
+ /**
38
+ * Logo content shown while the rail is collapsed (e.g. a monogram mark).
39
+ * Falls back to `logo` when omitted.
40
+ */
41
+ collapsedLogo?: React.ReactNode;
42
+ }
43
+ declare const SidebarPrimaryHeader: React.ForwardRefExoticComponent<SidebarPrimaryHeaderProps & React.RefAttributes<HTMLDivElement>>;
19
44
  declare const SidebarPrimaryContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
45
  declare const SidebarPrimaryFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
46
  declare const SidebarPrimarySection: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -29,6 +54,15 @@ export interface SidebarPrimaryMenuItemProps extends Omit<React.ComponentPropsWi
29
54
  /** Leading 16px icon (from `@acronis-platform/icons-react`). */
30
55
  icon?: React.ReactNode;
31
56
  children?: React.ReactNode;
57
+ /**
58
+ * Trailing affordance — a `SidebarPrimaryMenuItemExtras` element. Rendered as
59
+ * a flex sibling of the label (its own `gap` from `_global/container/gap`),
60
+ * not nested inside the label's truncating span — nesting it there collapses
61
+ * the row gap and lets `truncate` clip the affordance. Hidden in collapsed/rail
62
+ * mode regardless of node type — the parent wraps it, so this holds even for
63
+ * a raw node rather than `SidebarPrimaryMenuItemExtras`.
64
+ */
65
+ extras?: React.ReactNode;
32
66
  /**
33
67
  * Replace the rendered `<a>` with another element or component (e.g. a router
34
68
  * `Link` or a `<button>`) via Base UI composition.
@@ -41,7 +75,12 @@ export interface SidebarPrimaryMenuItemExtrasProps extends React.ComponentPropsW
41
75
  variant: 'tag' | 'externalLink' | 'shortcut' | 'tag-externalLink';
42
76
  /** Shortcut text (e.g. "⌘H") for the `shortcut` variant. */
43
77
  shortcut?: string;
44
- /** Tag content for the `tag` / `tag-externalLink` variants. */
78
+ /**
79
+ * Tag content for the `tag` / `tag-externalLink` variants. Figma constrains
80
+ * this slot's `Tag` instance to `size="sm"` (no other size is offered on
81
+ * MenuItemExtras) — always pass a `<Tag variant="info" size="sm">`, never the
82
+ * default size.
83
+ */
45
84
  tag?: React.ReactNode;
46
85
  }
47
86
  declare const SidebarPrimaryMenuItemExtras: React.ForwardRefExoticComponent<SidebarPrimaryMenuItemExtrasProps & React.RefAttributes<HTMLSpanElement>>;
@@ -49,6 +88,12 @@ export interface SidebarPrimaryCollapseTriggerProps extends Omit<React.Component
49
88
  /** Leading 16px icon (e.g. a panel-left glyph). */
50
89
  icon?: React.ReactNode;
51
90
  children?: React.ReactNode;
91
+ /**
92
+ * Trailing affordance — a `SidebarPrimaryMenuItemExtras` element (Figma
93
+ * shows a `⌘H` shortcut here). Rendered as a flex sibling of the label, same
94
+ * as `SidebarPrimaryMenuItem`'s `extras` prop.
95
+ */
96
+ extras?: React.ReactNode;
52
97
  }
53
98
  declare const SidebarPrimaryCollapseTrigger: React.ForwardRefExoticComponent<SidebarPrimaryCollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
54
- export { SidebarPrimary, SidebarPrimaryHeader, SidebarPrimaryContent, SidebarPrimaryFooter, SidebarPrimarySection, SidebarPrimaryMenu, SidebarPrimaryMenuItem, SidebarPrimaryMenuItemExtras, SidebarPrimaryCollapseTrigger, sidebarPrimaryMenuItemVariants, };
99
+ export { SidebarPrimary, SidebarPrimaryHeader, SidebarPrimaryContent, SidebarPrimaryFooter, SidebarPrimarySection, SidebarPrimaryMenu, SidebarPrimaryMenuItem, SidebarPrimaryMenuItemExtras, SidebarPrimaryCollapseTrigger, useIsOverflowing, sidebarPrimaryMenuItemVariants, };
@@ -1 +1 @@
1
- export { SidebarSecondary, SidebarSecondaryHeader, SidebarSecondaryContent, SidebarSecondaryCollapsedBreadcrumb, SidebarSecondaryFooter, SidebarSecondarySection, SidebarSecondarySectionLabel, SidebarSecondaryMenu, SidebarSecondaryMenuItem, SidebarSecondaryMenuSub, SidebarSecondaryMenuSubTrigger, SidebarSecondaryMenuSubContent, SidebarSecondaryMenuSubItem, SidebarSecondaryMenuItemExtras, SidebarSecondaryCollapseTrigger, sidebarSecondaryMenuItemVariants, type SidebarSecondaryProps, type SidebarSecondaryHeaderProps, type SidebarSecondaryCollapsedBreadcrumbProps, type SidebarSecondaryMenuItemProps, type SidebarSecondaryMenuSubProps, type SidebarSecondaryMenuSubTriggerProps, type SidebarSecondaryMenuSubContentProps, type SidebarSecondaryMenuSubItemProps, type SidebarSecondaryMenuItemExtrasProps, type SidebarSecondaryCollapseTriggerProps, } from './sidebar-secondary';
1
+ export { SidebarSecondary, SidebarSecondaryHeader, SidebarSecondaryContent, SidebarSecondaryFooter, SidebarSecondarySection, SidebarSecondarySectionLabel, SidebarSecondaryMenu, SidebarSecondaryMenuItem, SidebarSecondaryMenuItemExtras, SidebarSecondaryCollapseTrigger, sidebarSecondaryMenuItemVariants, type SidebarSecondaryProps, type SidebarSecondaryHeaderProps, type SidebarSecondaryMenuItemProps, type SidebarSecondaryMenuItemExtrasProps, type SidebarSecondaryCollapseTriggerProps, } from './sidebar-secondary';
@@ -1,5 +1,4 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
- import { Collapsible } from '@base-ui/react/collapsible';
3
2
  import { VariantProps } from 'class-variance-authority';
4
3
  import * as React from 'react';
5
4
  export interface SidebarSecondaryProps extends React.ComponentPropsWithoutRef<'nav'> {
@@ -9,6 +8,22 @@ export interface SidebarSecondaryProps extends React.ComponentPropsWithoutRef<'n
9
8
  defaultExpanded?: boolean;
10
9
  /** Fires when the expanded state changes (e.g. a consumer toggle). */
11
10
  onExpandedChange?: (expanded: boolean) => void;
11
+ /**
12
+ * Enable the draggable resize edge on the right border.
13
+ * When `true`, the sidebar can be resized between the expanded-width token
14
+ * and twice that value.
15
+ */
16
+ resizable?: boolean;
17
+ /** Controlled width in px (only used when `resizable`). */
18
+ width?: number;
19
+ /** Fires when the width changes due to a drag interaction. */
20
+ onWidthChange?: (width: number) => void;
21
+ /** Accessible label for the resize edge (`role="separator"`). Defaults to `'Resize sidebar'`. */
22
+ resizeAriaLabel?: string;
23
+ /** Tooltip content shown when the sidebar is expanded. Pass `null` to hide the tooltip entirely. */
24
+ resizeTooltipExpanded?: React.ReactNode;
25
+ /** Tooltip content shown when the sidebar is collapsed. Pass `null` to hide the tooltip entirely. */
26
+ resizeTooltipCollapsed?: React.ReactNode;
12
27
  /**
13
28
  * Replace the rendered `<nav>` with another element or component
14
29
  * (Base UI composition). Accepts a React element or a render function.
@@ -23,11 +38,17 @@ export interface SidebarSecondaryHeaderProps extends React.ComponentPropsWithout
23
38
  declare const SidebarSecondaryHeader: React.ForwardRefExoticComponent<SidebarSecondaryHeaderProps & React.RefAttributes<HTMLDivElement>>;
24
39
  declare const SidebarSecondaryContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
40
  export interface SidebarSecondaryCollapsedBreadcrumbProps extends React.ComponentPropsWithoutRef<'div'> {
26
- /** The parent section label (breadcrumbLabel). */
27
- parentLabel: React.ReactNode;
28
- /** The current page label (labelCurrentPage). */
29
- currentLabel: React.ReactNode;
30
- /** Separator between the two; defaults to a 16px ChevronRightIcon (R6). */
41
+ /**
42
+ * The parent section label (breadcrumbLabel).
43
+ * Auto-derived from the `SidebarSecondaryHeader` label when omitted.
44
+ */
45
+ parentLabel?: React.ReactNode;
46
+ /**
47
+ * The current page label (labelCurrentPage).
48
+ * Auto-derived from the selected `SidebarSecondaryMenuItem` when omitted.
49
+ */
50
+ currentLabel?: React.ReactNode;
51
+ /** Separator between the two; defaults to a 16px ChevronDownIcon. */
31
52
  separator?: React.ReactNode;
32
53
  }
33
54
  declare const SidebarSecondaryCollapsedBreadcrumb: React.ForwardRefExoticComponent<SidebarSecondaryCollapsedBreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
@@ -63,32 +84,15 @@ declare const sidebarSecondaryMenuItemVariants: (props?: ({
63
84
  export interface SidebarSecondaryMenuItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'>, Omit<VariantProps<typeof sidebarSecondaryMenuItemVariants>, 'variant'> {
64
85
  /** Marks the current route: sets the `selected` variant + `aria-current="page"`. */
65
86
  selected?: boolean;
66
- /** Optional leading 16px icon (Level-1 only; `hasIcon` in Figma). */
87
+ /** Optional leading 16px icon (`hasIcon` in Figma). */
67
88
  icon?: React.ReactNode;
89
+ /** Trailing extras (tag, shortcut, external-link icon — `hasExtras` in Figma). */
90
+ extras?: React.ReactNode;
68
91
  children?: React.ReactNode;
69
92
  /** Replace the rendered `<a>` (e.g. a router `Link` or a `<button>`). */
70
93
  render?: useRender.RenderProp;
71
94
  }
72
95
  declare const SidebarSecondaryMenuItem: React.ForwardRefExoticComponent<SidebarSecondaryMenuItemProps & React.RefAttributes<HTMLAnchorElement>>;
73
- export type SidebarSecondaryMenuSubProps = React.ComponentPropsWithoutRef<typeof Collapsible.Root>;
74
- declare const SidebarSecondaryMenuSub: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsibleRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
75
- export interface SidebarSecondaryMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof Collapsible.Trigger> {
76
- /** Marks the parent row as selected. */
77
- selected?: boolean;
78
- /** Optional leading 16px icon. */
79
- icon?: React.ReactNode;
80
- }
81
- declare const SidebarSecondaryMenuSubTrigger: React.ForwardRefExoticComponent<SidebarSecondaryMenuSubTriggerProps & React.RefAttributes<HTMLButtonElement>>;
82
- export type SidebarSecondaryMenuSubContentProps = React.ComponentPropsWithoutRef<typeof Collapsible.Panel>;
83
- declare const SidebarSecondaryMenuSubContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
84
- export interface SidebarSecondaryMenuSubItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'> {
85
- /** Marks the current route (Level-2 — no icon). */
86
- selected?: boolean;
87
- children?: React.ReactNode;
88
- /** Replace the rendered `<a>` (e.g. a router `Link`). */
89
- render?: useRender.RenderProp;
90
- }
91
- declare const SidebarSecondaryMenuSubItem: React.ForwardRefExoticComponent<SidebarSecondaryMenuSubItemProps & React.RefAttributes<HTMLAnchorElement>>;
92
96
  export interface SidebarSecondaryMenuItemExtrasProps extends React.ComponentPropsWithoutRef<'span'> {
93
97
  /** Which trailing affordance to render. */
94
98
  variant: 'tag' | 'externalLink' | 'shortcut' | 'tag-externalLink';
@@ -99,14 +103,15 @@ export interface SidebarSecondaryMenuItemExtrasProps extends React.ComponentProp
99
103
  }
100
104
  declare const SidebarSecondaryMenuItemExtras: React.ForwardRefExoticComponent<SidebarSecondaryMenuItemExtrasProps & React.RefAttributes<HTMLSpanElement>>;
101
105
  export interface SidebarSecondaryCollapseTriggerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'children'> {
102
- /** Leading 16px icon (e.g. a panel-left glyph). */
106
+ /** Icon shown when the sidebar is expanded (collapse affordance). */
103
107
  icon?: React.ReactNode;
104
- /**
105
- * Optional trailing keyboard-shortcut hint (e.g. `⌘J`), right-aligned and
106
- * hidden alongside the label in collapsed mode.
107
- */
108
- shortcut?: React.ReactNode;
108
+ /** Icon shown when the sidebar is collapsed (expand affordance). Falls back to `icon` when omitted. */
109
+ expandIcon?: React.ReactNode;
110
+ /** Tooltip text shown when the sidebar is collapsed. Defaults to `'Expand'`. */
111
+ expandTooltip?: React.ReactNode;
112
+ /** Trailing extras (e.g. a keyboard shortcut hint), same slot as `SidebarSecondaryMenuItem`. */
113
+ extras?: React.ReactNode;
109
114
  children?: React.ReactNode;
110
115
  }
111
116
  declare const SidebarSecondaryCollapseTrigger: React.ForwardRefExoticComponent<SidebarSecondaryCollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
112
- export { SidebarSecondary, SidebarSecondaryHeader, SidebarSecondaryContent, SidebarSecondaryCollapsedBreadcrumb, SidebarSecondaryFooter, SidebarSecondarySection, SidebarSecondarySectionLabel, SidebarSecondaryMenu, SidebarSecondaryMenuItem, SidebarSecondaryMenuSub, SidebarSecondaryMenuSubTrigger, SidebarSecondaryMenuSubContent, SidebarSecondaryMenuSubItem, SidebarSecondaryMenuItemExtras, SidebarSecondaryCollapseTrigger, sidebarSecondaryMenuItemVariants, };
117
+ export { SidebarSecondary, SidebarSecondaryHeader, SidebarSecondaryContent, SidebarSecondaryCollapsedBreadcrumb, SidebarSecondaryFooter, SidebarSecondarySection, SidebarSecondarySectionLabel, SidebarSecondaryMenu, SidebarSecondaryMenuItem, SidebarSecondaryMenuItemExtras, SidebarSecondaryCollapseTrigger, sidebarSecondaryMenuItemVariants, };
@@ -1,4 +1,5 @@
1
1
  export { cn } from './lib/utils';
2
+ export { PortalContainerProvider, usePortalContainer, type PortalContainerProviderProps, } from './lib/portal-container';
2
3
  export * from './components/ui/accordion';
3
4
  export * from './components/ui/alert';
4
5
  export * from './components/ui/app-shell';
@@ -55,6 +56,7 @@ export * from './components/ui/resizable';
55
56
  export * from './components/ui/sidebar-primary';
56
57
  export * from './components/ui/sidebar-secondary';
57
58
  export * from './components/ui/button-icon';
59
+ export * from './components/ui/filter-search';
58
60
  export * from './components/ui/switch';
59
61
  export * from './components/ui/table';
60
62
  export * from './components/ui/tabs';
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ export interface PortalContainerProviderProps {
3
+ /**
4
+ * The DOM element portaled content should render into (e.g. a `<div>` inside
5
+ * a shadow root). When set, every ui-react portaling component
6
+ * (`Popover`, `DropdownMenu`, `Tooltip`, `Dialog`, `Sheet`, `Select`,
7
+ * `Combobox`, `Toast`) will mount its popup inside this element instead of
8
+ * `document.body`.
9
+ */
10
+ container: HTMLElement | null;
11
+ children: React.ReactNode;
12
+ }
13
+ /**
14
+ * Provides a default portal container for all ui-react portaling components.
15
+ *
16
+ * Wrap your app (or a subtree) so that popups, dialogs, tooltips, toasts, etc.
17
+ * render inside the given container instead of `document.body`. This is the
18
+ * recommended way for shadow-DOM MFEs to keep portaled content inside the
19
+ * shadow root where adopted stylesheets apply.
20
+ *
21
+ * Individual components' `portalContainer` prop overrides this context.
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * // Inside a shadow-DOM MFE — all portals go into the shadow root
26
+ * <PortalContainerProvider container={shadowRootMountDiv}>
27
+ * <App />
28
+ * </PortalContainerProvider>
29
+ * ```
30
+ */
31
+ export declare function PortalContainerProvider({ container, children }: PortalContainerProviderProps): import("react/jsx-runtime").JSX.Element;
32
+ /**
33
+ * Returns the portal container set by the nearest `PortalContainerProvider`,
34
+ * or `undefined` if none exists (letting Base UI default to `document.body`).
35
+ */
36
+ export declare function usePortalContainer(): HTMLElement | null | undefined;