@acronis-platform/ui-react 0.21.2

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 (82) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +72 -0
  3. package/dist/components/ui/breadcrumb/breadcrumb.js +116 -0
  4. package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -0
  5. package/dist/components/ui/button/button.js +50 -0
  6. package/dist/components/ui/button/button.js.map +1 -0
  7. package/dist/components/ui/button-dropdown/button-dropdown.js +52 -0
  8. package/dist/components/ui/button-dropdown/button-dropdown.js.map +1 -0
  9. package/dist/components/ui/button-icon/button-icon.js +35 -0
  10. package/dist/components/ui/button-icon/button-icon.js.map +1 -0
  11. package/dist/components/ui/checkbox/checkbox.js +68 -0
  12. package/dist/components/ui/checkbox/checkbox.js.map +1 -0
  13. package/dist/components/ui/input/input.js +22 -0
  14. package/dist/components/ui/input/input.js.map +1 -0
  15. package/dist/components/ui/input-text-area/input-text-area.js +21 -0
  16. package/dist/components/ui/input-text-area/input-text-area.js.map +1 -0
  17. package/dist/components/ui/radio/radio.js +44 -0
  18. package/dist/components/ui/radio/radio.js.map +1 -0
  19. package/dist/components/ui/search/search.js +93 -0
  20. package/dist/components/ui/search/search.js.map +1 -0
  21. package/dist/components/ui/select/select.js +105 -0
  22. package/dist/components/ui/select/select.js.map +1 -0
  23. package/dist/components/ui/sidebar-primary/sidebar-primary.js +242 -0
  24. package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +1 -0
  25. package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +372 -0
  26. package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +1 -0
  27. package/dist/components/ui/switch/switch.js +41 -0
  28. package/dist/components/ui/switch/switch.js.map +1 -0
  29. package/dist/components/ui/tag/tag.js +47 -0
  30. package/dist/components/ui/tag/tag.js.map +1 -0
  31. package/dist/components/ui/tooltip/tooltip.js +49 -0
  32. package/dist/components/ui/tooltip/tooltip.js.map +1 -0
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.js +79 -0
  35. package/dist/index.js.map +1 -0
  36. package/dist/lib/utils.js +9 -0
  37. package/dist/lib/utils.js.map +1 -0
  38. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +36 -0
  39. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js.map +1 -0
  40. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  41. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
  42. package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2996 -0
  43. package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  44. package/dist/react.d.ts +2 -0
  45. package/dist/react.js +79 -0
  46. package/dist/react.js.map +1 -0
  47. package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +30 -0
  48. package/dist/src/components/ui/breadcrumb/index.d.ts +1 -0
  49. package/dist/src/components/ui/button/button.d.ts +16 -0
  50. package/dist/src/components/ui/button/index.d.ts +1 -0
  51. package/dist/src/components/ui/button-dropdown/button-dropdown.d.ts +29 -0
  52. package/dist/src/components/ui/button-dropdown/index.d.ts +1 -0
  53. package/dist/src/components/ui/button-icon/button-icon.d.ts +20 -0
  54. package/dist/src/components/ui/button-icon/index.d.ts +1 -0
  55. package/dist/src/components/ui/checkbox/checkbox.d.ts +10 -0
  56. package/dist/src/components/ui/checkbox/index.d.ts +1 -0
  57. package/dist/src/components/ui/input/index.d.ts +1 -0
  58. package/dist/src/components/ui/input/input.d.ts +4 -0
  59. package/dist/src/components/ui/input-text-area/index.d.ts +1 -0
  60. package/dist/src/components/ui/input-text-area/input-text-area.d.ts +4 -0
  61. package/dist/src/components/ui/radio/index.d.ts +1 -0
  62. package/dist/src/components/ui/radio/radio.d.ts +8 -0
  63. package/dist/src/components/ui/search/index.d.ts +1 -0
  64. package/dist/src/components/ui/search/search.d.ts +7 -0
  65. package/dist/src/components/ui/select/index.d.ts +1 -0
  66. package/dist/src/components/ui/select/select.d.ts +14 -0
  67. package/dist/src/components/ui/sidebar-primary/index.d.ts +1 -0
  68. package/dist/src/components/ui/sidebar-primary/sidebar-primary.d.ts +54 -0
  69. package/dist/src/components/ui/sidebar-secondary/index.d.ts +1 -0
  70. package/dist/src/components/ui/sidebar-secondary/sidebar-secondary.d.ts +85 -0
  71. package/dist/src/components/ui/switch/index.d.ts +1 -0
  72. package/dist/src/components/ui/switch/switch.d.ts +8 -0
  73. package/dist/src/components/ui/tag/index.d.ts +1 -0
  74. package/dist/src/components/ui/tag/tag.d.ts +12 -0
  75. package/dist/src/components/ui/tooltip/index.d.ts +1 -0
  76. package/dist/src/components/ui/tooltip/tooltip.d.ts +13 -0
  77. package/dist/src/index.d.ts +16 -0
  78. package/dist/src/lib/utils.d.ts +2 -0
  79. package/dist/src/react.d.ts +1 -0
  80. package/dist/styles.d.ts +1 -0
  81. package/dist/ui-react.css +1 -0
  82. package/package.json +119 -0
@@ -0,0 +1,29 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ declare const buttonDropdownVariants: (props?: ({
5
+ variant?: "secondary" | "primary" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonDropdownProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof buttonDropdownVariants> {
8
+ /**
9
+ * Whether the associated menu is open. Flips the trailing chevron
10
+ * (down → up), applies the open (`*-active`) treatment, and reflects
11
+ * `aria-expanded`. Control this in sync with the menu you trigger.
12
+ */
13
+ open?: boolean;
14
+ /** Label content rendered before the chevron. */
15
+ children?: React.ReactNode;
16
+ /**
17
+ * Replace the rendered `<button>` with another element or component
18
+ * (Base UI composition). Accepts a React element or a render function —
19
+ * the component's props and class names are merged onto it.
20
+ */
21
+ render?: useRender.RenderProp;
22
+ }
23
+ /**
24
+ * A button that opens a dropdown menu: a label followed by a chevron that
25
+ * points up while `open`. Pair it with the menu/popover it controls and keep
26
+ * the `open` prop in sync.
27
+ */
28
+ declare const ButtonDropdown: React.ForwardRefExoticComponent<ButtonDropdownProps & React.RefAttributes<HTMLButtonElement>>;
29
+ export { ButtonDropdown, buttonDropdownVariants };
@@ -0,0 +1 @@
1
+ export { ButtonDropdown, buttonDropdownVariants, type ButtonDropdownProps, } from './button-dropdown';
@@ -0,0 +1,20 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ declare const buttonIconVariants: (props?: ({
5
+ variant?: "secondary" | "ghost" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonIconVariants> {
8
+ /**
9
+ * Replace the rendered `<button>` with another element or component
10
+ * (Base UI composition). Accepts a React element or a render function —
11
+ * the component's props and class names are merged onto it.
12
+ */
13
+ render?: useRender.RenderProp;
14
+ }
15
+ /**
16
+ * Icon-only button. The icon is passed as `children`; provide an `aria-label`
17
+ * (or `aria-labelledby`) so the control has an accessible name.
18
+ */
19
+ declare const ButtonIcon: React.ForwardRefExoticComponent<ButtonIconProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export { ButtonIcon, buttonIconVariants };
@@ -0,0 +1 @@
1
+ export { ButtonIcon, buttonIconVariants, type ButtonIconProps, } from './button-icon';
@@ -0,0 +1,10 @@
1
+ import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
2
+ import * as React from 'react';
3
+ export interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
4
+ /** Optional label rendered beside the box; names the control. */
5
+ label?: React.ReactNode;
6
+ /** Optional secondary description rendered under the label. */
7
+ description?: React.ReactNode;
8
+ }
9
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLElement>>;
10
+ export { Checkbox };
@@ -0,0 +1 @@
1
+ export { Checkbox, type CheckboxProps } from './checkbox';
@@ -0,0 +1 @@
1
+ export { Input, type InputProps } from './input';
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export type InputProps = React.ComponentPropsWithoutRef<'input'>;
3
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
4
+ export { Input };
@@ -0,0 +1 @@
1
+ export { InputTextArea, type InputTextAreaProps } from './input-text-area';
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export type InputTextAreaProps = React.ComponentPropsWithoutRef<'textarea'>;
3
+ declare const InputTextArea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
4
+ export { InputTextArea };
@@ -0,0 +1 @@
1
+ export { RadioGroup, Radio, type RadioGroupProps, type RadioProps, } from './radio';
@@ -0,0 +1,8 @@
1
+ import { Radio as RadioPrimitive } from '@base-ui/react/radio';
2
+ import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';
3
+ import * as React from 'react';
4
+ export type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive>;
5
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.Props<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export type RadioProps = React.ComponentPropsWithoutRef<typeof RadioPrimitive.Root>;
7
+ declare const Radio: React.ForwardRefExoticComponent<Omit<RadioPrimitive.Root.Props<unknown>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
8
+ export { RadioGroup, Radio };
@@ -0,0 +1 @@
1
+ export { Search, type SearchProps } from './search';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface SearchProps extends React.ComponentPropsWithoutRef<'input'> {
3
+ /** Called when the clear (×) button is pressed, after the value is cleared. */
4
+ onClear?: () => void;
5
+ }
6
+ declare const Search: React.ForwardRefExoticComponent<SearchProps & React.RefAttributes<HTMLInputElement>>;
7
+ export { Search };
@@ -0,0 +1 @@
1
+ export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectGroupLabel, } from './select';
@@ -0,0 +1,14 @@
1
+ import { Select as SelectPrimitive } from '@base-ui/react/select';
2
+ import * as React from 'react';
3
+ declare const Select: typeof SelectPrimitive.Root;
4
+ declare const SelectGroup: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const SelectValue: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SelectValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SelectTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SelectPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
8
+ sideOffset?: number;
9
+ align?: SelectPrimitive.Positioner.Props["align"];
10
+ side?: SelectPrimitive.Positioner.Props["side"];
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SelectItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
13
+ declare const SelectGroupLabel: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SelectGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectGroupLabel, };
@@ -0,0 +1 @@
1
+ export { SidebarPrimary, SidebarPrimaryHeader, SidebarPrimaryContent, SidebarPrimaryFooter, SidebarPrimarySection, SidebarPrimaryMenu, SidebarPrimaryMenuItem, SidebarPrimaryMenuItemExtras, SidebarPrimaryCollapseTrigger, sidebarPrimaryMenuItemVariants, type SidebarPrimaryProps, type SidebarPrimaryMenuItemProps, type SidebarPrimaryMenuItemExtrasProps, type SidebarPrimaryCollapseTriggerProps, } from './sidebar-primary';
@@ -0,0 +1,54 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ export interface SidebarPrimaryProps extends React.ComponentPropsWithoutRef<'nav'> {
5
+ /** Controlled expanded (rail width) state. */
6
+ expanded?: boolean;
7
+ /** Uncontrolled initial expanded state. Defaults to `true` (full width). */
8
+ defaultExpanded?: boolean;
9
+ /** Fires when the expanded state changes (e.g. a consumer toggle). */
10
+ onExpandedChange?: (expanded: boolean) => void;
11
+ /**
12
+ * Replace the rendered `<nav>` with another element or component
13
+ * (Base UI composition). Accepts a React element or a render function.
14
+ */
15
+ render?: useRender.RenderProp;
16
+ }
17
+ 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>>;
19
+ declare const SidebarPrimaryContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const SidebarPrimaryFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ declare const SidebarPrimarySection: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
+ declare const SidebarPrimaryMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
23
+ declare const sidebarPrimaryMenuItemVariants: (props?: ({
24
+ variant?: "unselected" | "selected" | null | undefined;
25
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
26
+ export interface SidebarPrimaryMenuItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'>, Omit<VariantProps<typeof sidebarPrimaryMenuItemVariants>, 'variant'> {
27
+ /** Marks the current route: sets the `selected` variant + `aria-current="page"`. */
28
+ selected?: boolean;
29
+ /** Leading 16px icon (from `@acronis-platform/icons-react`). */
30
+ icon?: React.ReactNode;
31
+ children?: React.ReactNode;
32
+ /**
33
+ * Replace the rendered `<a>` with another element or component (e.g. a router
34
+ * `Link` or a `<button>`) via Base UI composition.
35
+ */
36
+ render?: useRender.RenderProp;
37
+ }
38
+ declare const SidebarPrimaryMenuItem: React.ForwardRefExoticComponent<SidebarPrimaryMenuItemProps & React.RefAttributes<HTMLAnchorElement>>;
39
+ export interface SidebarPrimaryMenuItemExtrasProps extends React.ComponentPropsWithoutRef<'span'> {
40
+ /** Which trailing affordance to render. */
41
+ variant: 'tag' | 'externalLink' | 'shortcut' | 'tag-externalLink';
42
+ /** Shortcut text (e.g. "⌘H") for the `shortcut` variant. */
43
+ shortcut?: string;
44
+ /** Tag content for the `tag` / `tag-externalLink` variants. */
45
+ tag?: React.ReactNode;
46
+ }
47
+ declare const SidebarPrimaryMenuItemExtras: React.ForwardRefExoticComponent<SidebarPrimaryMenuItemExtrasProps & React.RefAttributes<HTMLSpanElement>>;
48
+ export interface SidebarPrimaryCollapseTriggerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'children'> {
49
+ /** Leading 16px icon (e.g. a panel-left glyph). */
50
+ icon?: React.ReactNode;
51
+ children?: React.ReactNode;
52
+ }
53
+ declare const SidebarPrimaryCollapseTrigger: React.ForwardRefExoticComponent<SidebarPrimaryCollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
54
+ export { SidebarPrimary, SidebarPrimaryHeader, SidebarPrimaryContent, SidebarPrimaryFooter, SidebarPrimarySection, SidebarPrimaryMenu, SidebarPrimaryMenuItem, SidebarPrimaryMenuItemExtras, SidebarPrimaryCollapseTrigger, sidebarPrimaryMenuItemVariants, };
@@ -0,0 +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';
@@ -0,0 +1,85 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { Collapsible } from '@base-ui/react/collapsible';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as React from 'react';
5
+ export interface SidebarSecondaryProps extends React.ComponentPropsWithoutRef<'nav'> {
6
+ /** Controlled expanded (rail width) state. */
7
+ expanded?: boolean;
8
+ /** Uncontrolled initial expanded state. Defaults to `true` (full width). */
9
+ defaultExpanded?: boolean;
10
+ /** Fires when the expanded state changes (e.g. a consumer toggle). */
11
+ onExpandedChange?: (expanded: boolean) => void;
12
+ /**
13
+ * Replace the rendered `<nav>` with another element or component
14
+ * (Base UI composition). Accepts a React element or a render function.
15
+ */
16
+ render?: useRender.RenderProp;
17
+ }
18
+ declare const SidebarSecondary: React.ForwardRefExoticComponent<SidebarSecondaryProps & React.RefAttributes<HTMLElement>>;
19
+ export interface SidebarSecondaryHeaderProps extends React.ComponentPropsWithoutRef<'div'> {
20
+ /** Heading text (or pass as children). */
21
+ label?: React.ReactNode;
22
+ }
23
+ declare const SidebarSecondaryHeader: React.ForwardRefExoticComponent<SidebarSecondaryHeaderProps & React.RefAttributes<HTMLDivElement>>;
24
+ declare const SidebarSecondaryContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ 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). */
31
+ separator?: React.ReactNode;
32
+ }
33
+ declare const SidebarSecondaryCollapsedBreadcrumb: React.ForwardRefExoticComponent<SidebarSecondaryCollapsedBreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
34
+ declare const SidebarSecondaryFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
35
+ declare const SidebarSecondarySection: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
36
+ declare const SidebarSecondarySectionLabel: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
37
+ declare const SidebarSecondaryMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
38
+ declare const sidebarSecondaryMenuItemVariants: (props?: ({
39
+ variant?: "unselected" | "selected" | null | undefined;
40
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
41
+ export interface SidebarSecondaryMenuItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'>, Omit<VariantProps<typeof sidebarSecondaryMenuItemVariants>, 'variant'> {
42
+ /** Marks the current route: sets the `selected` variant + `aria-current="page"`. */
43
+ selected?: boolean;
44
+ /** Optional leading 16px icon (Level-1 only; `hasIcon` in Figma). */
45
+ icon?: React.ReactNode;
46
+ children?: React.ReactNode;
47
+ /** Replace the rendered `<a>` (e.g. a router `Link` or a `<button>`). */
48
+ render?: useRender.RenderProp;
49
+ }
50
+ declare const SidebarSecondaryMenuItem: React.ForwardRefExoticComponent<SidebarSecondaryMenuItemProps & React.RefAttributes<HTMLAnchorElement>>;
51
+ export type SidebarSecondaryMenuSubProps = React.ComponentPropsWithoutRef<typeof Collapsible.Root>;
52
+ declare const SidebarSecondaryMenuSub: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsibleRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
53
+ export interface SidebarSecondaryMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof Collapsible.Trigger> {
54
+ /** Marks the parent row as selected. */
55
+ selected?: boolean;
56
+ /** Optional leading 16px icon. */
57
+ icon?: React.ReactNode;
58
+ }
59
+ declare const SidebarSecondaryMenuSubTrigger: React.ForwardRefExoticComponent<SidebarSecondaryMenuSubTriggerProps & React.RefAttributes<HTMLButtonElement>>;
60
+ export type SidebarSecondaryMenuSubContentProps = React.ComponentPropsWithoutRef<typeof Collapsible.Panel>;
61
+ declare const SidebarSecondaryMenuSubContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
62
+ export interface SidebarSecondaryMenuSubItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'> {
63
+ /** Marks the current route (Level-2 — no icon). */
64
+ selected?: boolean;
65
+ children?: React.ReactNode;
66
+ /** Replace the rendered `<a>` (e.g. a router `Link`). */
67
+ render?: useRender.RenderProp;
68
+ }
69
+ declare const SidebarSecondaryMenuSubItem: React.ForwardRefExoticComponent<SidebarSecondaryMenuSubItemProps & React.RefAttributes<HTMLAnchorElement>>;
70
+ export interface SidebarSecondaryMenuItemExtrasProps extends React.ComponentPropsWithoutRef<'span'> {
71
+ /** Which trailing affordance to render. */
72
+ variant: 'tag' | 'externalLink' | 'shortcut' | 'tag-externalLink';
73
+ /** Shortcut text for the `shortcut` variant. */
74
+ shortcut?: string;
75
+ /** Tag content for the `tag` / `tag-externalLink` variants. */
76
+ tag?: React.ReactNode;
77
+ }
78
+ declare const SidebarSecondaryMenuItemExtras: React.ForwardRefExoticComponent<SidebarSecondaryMenuItemExtrasProps & React.RefAttributes<HTMLSpanElement>>;
79
+ export interface SidebarSecondaryCollapseTriggerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'children'> {
80
+ /** Leading 16px icon (e.g. a panel-left glyph). */
81
+ icon?: React.ReactNode;
82
+ children?: React.ReactNode;
83
+ }
84
+ declare const SidebarSecondaryCollapseTrigger: React.ForwardRefExoticComponent<SidebarSecondaryCollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
85
+ export { SidebarSecondary, SidebarSecondaryHeader, SidebarSecondaryContent, SidebarSecondaryCollapsedBreadcrumb, SidebarSecondaryFooter, SidebarSecondarySection, SidebarSecondarySectionLabel, SidebarSecondaryMenu, SidebarSecondaryMenuItem, SidebarSecondaryMenuSub, SidebarSecondaryMenuSubTrigger, SidebarSecondaryMenuSubContent, SidebarSecondaryMenuSubItem, SidebarSecondaryMenuItemExtras, SidebarSecondaryCollapseTrigger, sidebarSecondaryMenuItemVariants, };
@@ -0,0 +1 @@
1
+ export { Switch, type SwitchProps } from './switch';
@@ -0,0 +1,8 @@
1
+ import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
2
+ import * as React from 'react';
3
+ export interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
4
+ /** Optional label rendered beside the toggle; names the control. */
5
+ label?: React.ReactNode;
6
+ }
7
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLElement>>;
8
+ export { Switch };
@@ -0,0 +1 @@
1
+ export { Tag, tagVariants, type TagProps } from './tag';
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const tagVariants: (props?: ({
4
+ variant?: "ai" | "info" | "success" | "warning" | "critical" | "danger" | "neutral" | null | undefined;
5
+ size?: "default" | "sm" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface TagProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tagVariants> {
8
+ /** Optional leading icon, rendered at 16px before the label. */
9
+ icon?: React.ReactNode;
10
+ }
11
+ declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
12
+ export { Tag, tagVariants };
@@ -0,0 +1 @@
1
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from './tooltip';
@@ -0,0 +1,13 @@
1
+ import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
2
+ import * as React from 'react';
3
+ declare const TooltipProvider: React.FC<import('@base-ui/react').TooltipProviderProps>;
4
+ declare const Tooltip: <Payload>(props: TooltipPrimitive.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const TooltipTrigger: TooltipPrimitive.Trigger;
6
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TooltipPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
7
+ sideOffset?: number;
8
+ side?: TooltipPrimitive.Positioner.Props["side"];
9
+ align?: TooltipPrimitive.Positioner.Props["align"];
10
+ portalContainer?: TooltipPrimitive.Portal.Props["container"];
11
+ keepMounted?: TooltipPrimitive.Portal.Props["keepMounted"];
12
+ } & React.RefAttributes<HTMLDivElement>>;
13
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,16 @@
1
+ export { cn } from './lib/utils';
2
+ export * from './components/ui/breadcrumb';
3
+ export * from './components/ui/button';
4
+ export * from './components/ui/button-dropdown';
5
+ export * from './components/ui/checkbox';
6
+ export * from './components/ui/radio';
7
+ export * from './components/ui/input';
8
+ export * from './components/ui/input-text-area';
9
+ export * from './components/ui/search';
10
+ export * from './components/ui/select';
11
+ export * from './components/ui/sidebar-primary';
12
+ export * from './components/ui/sidebar-secondary';
13
+ export * from './components/ui/button-icon';
14
+ export * from './components/ui/switch';
15
+ export * from './components/ui/tooltip';
16
+ export * from './components/ui/tag';
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -0,0 +1 @@
1
+ export {}