@acronis-platform/ui-react 0.38.0 → 0.43.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 (78) hide show
  1. package/dist/components/ui/data-table/data-table-column-header.js +48 -0
  2. package/dist/components/ui/data-table/data-table-column-header.js.map +1 -0
  3. package/dist/components/ui/data-table/data-table-pagination.js +89 -0
  4. package/dist/components/ui/data-table/data-table-pagination.js.map +1 -0
  5. package/dist/components/ui/data-table/data-table-toolbar.js +46 -0
  6. package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -0
  7. package/dist/components/ui/data-table/data-table-view-options.js +40 -0
  8. package/dist/components/ui/data-table/data-table-view-options.js.map +1 -0
  9. package/dist/components/ui/data-table/data-table.js +89 -0
  10. package/dist/components/ui/data-table/data-table.js.map +1 -0
  11. package/dist/components/ui/dropdown-menu/dropdown-menu.js +159 -0
  12. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -0
  13. package/dist/components/ui/empty/empty.js +78 -0
  14. package/dist/components/ui/empty/empty.js.map +1 -0
  15. package/dist/components/ui/label/label.js +12 -0
  16. package/dist/components/ui/label/label.js.map +1 -0
  17. package/dist/components/ui/popover/popover.js +48 -0
  18. package/dist/components/ui/popover/popover.js.map +1 -0
  19. package/dist/components/ui/progress/progress.js +30 -0
  20. package/dist/components/ui/progress/progress.js.map +1 -0
  21. package/dist/components/ui/separator/separator.js +22 -0
  22. package/dist/components/ui/separator/separator.js.map +1 -0
  23. package/dist/components/ui/spinner/spinner.js +38 -0
  24. package/dist/components/ui/spinner/spinner.js.map +1 -0
  25. package/dist/components/ui/table/table.js +8 -8
  26. package/dist/components/ui/table/table.js.map +1 -1
  27. package/dist/components/ui/tabs/tabs.js +44 -0
  28. package/dist/components/ui/tabs/tabs.js.map +1 -0
  29. package/dist/components/ui/toast/toast.js +83 -0
  30. package/dist/components/ui/toast/toast.js.map +1 -0
  31. package/dist/components/ui/widget-placeholder/widget-placeholder.js +106 -0
  32. package/dist/components/ui/widget-placeholder/widget-placeholder.js.map +1 -0
  33. package/dist/index.js +210 -142
  34. package/dist/index.js.map +1 -1
  35. package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js +104 -0
  36. package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js.map +1 -0
  37. package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +1900 -0
  38. package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js.map +1 -0
  39. package/dist/react.js +210 -142
  40. package/dist/react.js.map +1 -1
  41. package/dist/src/components/ui/data-table/data-table-column-header.d.ts +8 -0
  42. package/dist/src/components/ui/data-table/data-table-pagination.d.ts +8 -0
  43. package/dist/src/components/ui/data-table/data-table-toolbar.d.ts +9 -0
  44. package/dist/src/components/ui/data-table/data-table-view-options.d.ts +6 -0
  45. package/dist/src/components/ui/data-table/data-table.d.ts +24 -0
  46. package/dist/src/components/ui/data-table/data-table.docs.d.ts +22 -0
  47. package/dist/src/components/ui/data-table/index.d.ts +5 -0
  48. package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +39 -0
  49. package/dist/src/components/ui/dropdown-menu/dropdown-menu.docs.d.ts +25 -0
  50. package/dist/src/components/ui/dropdown-menu/index.d.ts +1 -0
  51. package/dist/src/components/ui/empty/empty.d.ts +9 -0
  52. package/dist/src/components/ui/empty/index.d.ts +1 -0
  53. package/dist/src/components/ui/label/index.d.ts +1 -0
  54. package/dist/src/components/ui/label/label.d.ts +5 -0
  55. package/dist/src/components/ui/label/label.docs.d.ts +10 -0
  56. package/dist/src/components/ui/popover/index.d.ts +1 -0
  57. package/dist/src/components/ui/popover/popover.d.ts +27 -0
  58. package/dist/src/components/ui/popover/popover.docs.d.ts +25 -0
  59. package/dist/src/components/ui/progress/index.d.ts +1 -0
  60. package/dist/src/components/ui/progress/progress.d.ts +9 -0
  61. package/dist/src/components/ui/progress/progress.docs.d.ts +16 -0
  62. package/dist/src/components/ui/separator/index.d.ts +1 -0
  63. package/dist/src/components/ui/separator/separator.d.ts +3 -0
  64. package/dist/src/components/ui/spinner/index.d.ts +1 -0
  65. package/dist/src/components/ui/spinner/spinner.d.ts +9 -0
  66. package/dist/src/components/ui/tabs/index.d.ts +1 -0
  67. package/dist/src/components/ui/tabs/tabs.d.ts +6 -0
  68. package/dist/src/components/ui/tabs/tabs.docs.d.ts +25 -0
  69. package/dist/src/components/ui/tag/tag.d.ts +1 -1
  70. package/dist/src/components/ui/toast/index.d.ts +1 -0
  71. package/dist/src/components/ui/toast/toast.d.ts +48 -0
  72. package/dist/src/components/ui/toast/toast.docs.d.ts +12 -0
  73. package/dist/src/components/ui/widget-placeholder/index.d.ts +1 -0
  74. package/dist/src/components/ui/widget-placeholder/widget-placeholder.d.ts +18 -0
  75. package/dist/src/components/ui/widget-placeholder/widget-placeholder.docs.d.ts +14 -0
  76. package/dist/src/index.d.ts +12 -0
  77. package/dist/ui-react.css +1 -1
  78. package/package.json +5 -3
@@ -0,0 +1,25 @@
1
+ import type * as React from 'react';
2
+ /** Props for `PopoverContent` — the positioned, portaled popover panel. */
3
+ export interface PopoverContentProps {
4
+ /** Which side of the trigger to render on. Defaults to `bottom`. */
5
+ side?: 'top' | 'bottom' | 'left' | 'right' | 'inline-start' | 'inline-end';
6
+ /** Alignment along the chosen side. Defaults to `center`. */
7
+ align?: 'start' | 'center' | 'end';
8
+ /** Distance in px from the trigger. Defaults to `4`. */
9
+ sideOffset?: number;
10
+ /**
11
+ * Render inside a portal (default `true`). Disable only when you supply your
12
+ * own `PopoverPortal` ancestor.
13
+ */
14
+ portal?: boolean;
15
+ /**
16
+ * Portal container. Pass a shadow-root mount for isolated-style previews
17
+ * (the docs demos do this via `useShadowMount`).
18
+ */
19
+ portalContainer?: HTMLElement | null;
20
+ /** Keep the content mounted while closed. */
21
+ keepMounted?: boolean;
22
+ /** Extra classes merged onto the popup. */
23
+ className?: string;
24
+ children?: React.ReactNode;
25
+ }
@@ -0,0 +1 @@
1
+ export { Progress, type ProgressProps } from './progress';
@@ -0,0 +1,9 @@
1
+ import { Progress as ProgressPrimitive } from '@base-ui/react';
2
+ import * as React from 'react';
3
+ export type ProgressProps = Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, 'value'> & {
4
+ value?: number | null;
5
+ };
6
+ declare const Progress: React.ForwardRefExoticComponent<Omit<Omit<Omit<import('@base-ui/react').ProgressRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "value"> & {
7
+ value?: number | null;
8
+ } & React.RefAttributes<HTMLDivElement>>;
9
+ export { Progress };
@@ -0,0 +1,16 @@
1
+ import type * as React from 'react';
2
+ /** Props for `Progress` — a determinate or indeterminate progress bar. */
3
+ export interface ProgressProps {
4
+ /**
5
+ * Completion between `min` and `max`. `null` (the default) renders an
6
+ * indeterminate sliding bar.
7
+ */
8
+ value?: number | null;
9
+ /** The value representing full completion (default `100`). */
10
+ max?: number;
11
+ /** The value representing no completion (default `0`). */
12
+ min?: number;
13
+ /** Extra classes merged onto the root. */
14
+ className?: string;
15
+ children?: React.ReactNode;
16
+ }
@@ -0,0 +1 @@
1
+ export { Separator } from './separator';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ export { Separator };
@@ -0,0 +1 @@
1
+ export { Spinner, spinnerVariants, type SpinnerProps } from './spinner';
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const spinnerVariants: (props?: ({
4
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
7
+ }
8
+ declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
9
+ export { Spinner, spinnerVariants };
@@ -0,0 +1 @@
1
+ export { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs';
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ declare const Tabs: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').TabsRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TabsListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TabsTabProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
5
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').TabsPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,25 @@
1
+ import type * as React from 'react';
2
+ /** Props for `Tabs` (the root). */
3
+ export interface TabsProps {
4
+ /** Controlled selected-tab value. Pair with `onValueChange`. */
5
+ value?: string | number;
6
+ /** Initially selected tab value (uncontrolled). */
7
+ defaultValue?: string | number;
8
+ /** Fired with the newly selected tab value. */
9
+ onValueChange?: (value: string | number, eventDetails: unknown) => void;
10
+ /** Layout and arrow-key navigation orientation. Defaults to `horizontal`. */
11
+ orientation?: 'horizontal' | 'vertical';
12
+ /** A `TabsList` of `TabsTrigger`s plus matching `TabsContent` panels. */
13
+ children?: React.ReactNode;
14
+ }
15
+ /** Props shared by `TabsTrigger` and `TabsContent`. */
16
+ export interface TabsPartProps {
17
+ /**
18
+ * Identifies the tab: a `TabsTrigger` and the `TabsContent` it controls share
19
+ * the same `value`.
20
+ */
21
+ value: string | number;
22
+ /** On `TabsTrigger` — disables selecting that tab. */
23
+ disabled?: boolean;
24
+ children?: React.ReactNode;
25
+ }
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const tagVariants: (props?: ({
4
- variant?: "ai" | "info" | "success" | "warning" | "critical" | "danger" | "neutral" | null | undefined;
4
+ variant?: "ai" | "success" | "info" | "warning" | "critical" | "danger" | "neutral" | null | undefined;
5
5
  size?: "default" | "sm" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface TagProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tagVariants> {
@@ -0,0 +1 @@
1
+ export { toast, Toaster, type ToasterProps, type ToastType, type ToastOptions, } from './toast';
@@ -0,0 +1,48 @@
1
+ import { Toast as ToastPrimitive } from '@base-ui/react/toast';
2
+ import * as React from 'react';
3
+ export type ToastType = 'success' | 'info' | 'warning' | 'error' | 'loading';
4
+ export interface ToastOptions {
5
+ /** Secondary line under the title. */
6
+ description?: React.ReactNode;
7
+ /** Auto-dismiss delay in ms; `0` keeps the toast until dismissed. */
8
+ timeout?: number;
9
+ /** A single inline action button (e.g. Undo). */
10
+ action?: {
11
+ label: React.ReactNode;
12
+ onClick?: () => void;
13
+ };
14
+ /** Stable id — re-adding with the same id updates the toast in place. */
15
+ id?: string;
16
+ }
17
+ /**
18
+ * Imperative toast API. `toast(title, options)` shows a neutral toast;
19
+ * `toast.success` / `info` / `warning` / `error` / `loading` set the variant.
20
+ * `toast.dismiss(id?)` closes one (or all) and `toast.promise` ties a toast to a
21
+ * promise's lifecycle.
22
+ */
23
+ declare const toast: ((title: React.ReactNode, options?: ToastOptions) => string) & {
24
+ success: (title: React.ReactNode, options?: ToastOptions) => string;
25
+ info: (title: React.ReactNode, options?: ToastOptions) => string;
26
+ warning: (title: React.ReactNode, options?: ToastOptions) => string;
27
+ error: (title: React.ReactNode, options?: ToastOptions) => string;
28
+ loading: (title: React.ReactNode, options?: ToastOptions) => string;
29
+ dismiss: (id?: string) => void;
30
+ promise: <Value, T extends any = any>(promiseValue: Promise<Value>, options: import('@base-ui/react').ToastManagerPromiseOptions<Value, T>) => Promise<Value>;
31
+ };
32
+ export interface ToasterProps {
33
+ /** Default auto-dismiss delay in ms for toasts that don't set one. */
34
+ timeout?: number;
35
+ /** Max toasts shown at once; the oldest is dropped past the limit. */
36
+ limit?: number;
37
+ /**
38
+ * Portal container for the toast stack. Pass a shadow-root mount for
39
+ * isolated-style previews (the docs demos do this via `useShadowMount`).
40
+ */
41
+ portalContainer?: ToastPrimitive.Portal.Props['container'];
42
+ }
43
+ /**
44
+ * The toast region. Render once near the app root; it portals a bottom-right
45
+ * stack and renders every queued toast. Trigger toasts with the `toast` API.
46
+ */
47
+ declare function Toaster({ timeout, limit, portalContainer }: ToasterProps): import("react/jsx-runtime").JSX.Element;
48
+ export { toast, Toaster };
@@ -0,0 +1,12 @@
1
+ /** Props for `<Toaster>` — the toast region rendered once near the app root. */
2
+ export interface ToasterProps {
3
+ /** Default auto-dismiss delay in ms for toasts that don't set one (default 5000). */
4
+ timeout?: number;
5
+ /** Max toasts shown at once; the oldest is dropped past the limit (default 3). */
6
+ limit?: number;
7
+ /**
8
+ * Portal container for the toast stack. Pass a shadow-root mount for
9
+ * isolated-style previews (the docs demos do this via `useShadowMount`).
10
+ */
11
+ portalContainer?: HTMLElement | null;
12
+ }
@@ -0,0 +1 @@
1
+ export { WidgetPlaceholder, WidgetPlaceholderHeader, WidgetPlaceholderTitle, WidgetPlaceholderIcon, WidgetPlaceholderContent, WidgetPlaceholderImage, WidgetPlaceholderText, WidgetPlaceholderAction, WidgetPlaceholderFooter, type WidgetPlaceholderProps, } from './widget-placeholder';
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ export interface WidgetPlaceholderProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Make the whole widget focusable and clickable (hover/active surface + focus
5
+ * ring). Wire the behavior via `onClick`.
6
+ */
7
+ interactive?: boolean;
8
+ }
9
+ declare const WidgetPlaceholder: React.ForwardRefExoticComponent<WidgetPlaceholderProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const WidgetPlaceholderHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const WidgetPlaceholderTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const WidgetPlaceholderIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const WidgetPlaceholderContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const WidgetPlaceholderImage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ declare const WidgetPlaceholderText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const WidgetPlaceholderAction: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
17
+ declare const WidgetPlaceholderFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
18
+ export { WidgetPlaceholder, WidgetPlaceholderHeader, WidgetPlaceholderTitle, WidgetPlaceholderIcon, WidgetPlaceholderContent, WidgetPlaceholderImage, WidgetPlaceholderText, WidgetPlaceholderAction, WidgetPlaceholderFooter, };
@@ -0,0 +1,14 @@
1
+ import type * as React from 'react';
2
+ /** Props for `WidgetPlaceholder` — the root widget card. */
3
+ export interface WidgetPlaceholderProps {
4
+ /**
5
+ * Make the whole widget focusable (`tabindex=0`) and clickable — adds
6
+ * hover/active surface tints and a focus ring. Wire the behavior with
7
+ * `onClick`.
8
+ */
9
+ interactive?: boolean;
10
+ /** Extra classes merged onto the root. */
11
+ className?: string;
12
+ /** The composed parts (header / content / footer). */
13
+ children?: React.ReactNode;
14
+ }
@@ -7,24 +7,36 @@ export * from './components/ui/card';
7
7
  export * from './components/ui/card-filter';
8
8
  export * from './components/ui/checkbox';
9
9
  export * from './components/ui/chip';
10
+ export * from './components/ui/data-table';
10
11
  export * from './components/ui/dialog';
12
+ export * from './components/ui/dropdown-menu';
13
+ export * from './components/ui/empty';
11
14
  export * from './components/ui/radio';
12
15
  export * from './components/ui/input-date-picker';
13
16
  export * from './components/ui/input-search';
14
17
  export * from './components/ui/input-select';
15
18
  export * from './components/ui/input-text';
16
19
  export * from './components/ui/input-text-area';
20
+ export * from './components/ui/label';
17
21
  export * from './components/ui/link';
22
+ export * from './components/ui/popover';
23
+ export * from './components/ui/progress';
18
24
  export * from './components/ui/search-global';
19
25
  export { InputText as Input, type InputTextProps as InputProps, } from './components/ui/input-text';
20
26
  export { InputSearch as Search, type InputSearchProps as SearchProps, } from './components/ui/input-search';
21
27
  export { InputTextArea as Textarea, type InputTextAreaProps as TextareaProps, } from './components/ui/input-text-area';
22
28
  export * from './components/ui/select';
29
+ export * from './components/ui/separator';
30
+ export * from './components/ui/spinner';
23
31
  export * from './components/ui/resizable';
24
32
  export * from './components/ui/sidebar-primary';
25
33
  export * from './components/ui/sidebar-secondary';
26
34
  export * from './components/ui/button-icon';
27
35
  export * from './components/ui/switch';
28
36
  export * from './components/ui/table';
37
+ export * from './components/ui/tabs';
38
+ export * from './components/ui/toast';
29
39
  export * from './components/ui/tooltip';
30
40
  export * from './components/ui/tag';
41
+ export { Tag as Badge, type TagProps as BadgeProps, } from './components/ui/tag';
42
+ export * from './components/ui/widget-placeholder';