@acronis-platform/ui-react 0.31.0 → 0.34.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.
package/dist/react.js CHANGED
@@ -1,25 +1,27 @@
1
1
  import { cn as t } from "./lib/utils.js";
2
2
  import { Avatar as o, AvatarFallback as n, AvatarGroup as S, AvatarImage as i, avatarVariants as c } from "./components/ui/avatar/avatar.js";
3
- import { Breadcrumb as p, BreadcrumbEllipsis as l, BreadcrumbItem as d, BreadcrumbLink as b, BreadcrumbList as m, BreadcrumbPage as I, BreadcrumbSeparator as s } from "./components/ui/breadcrumb/breadcrumb.js";
3
+ import { Breadcrumb as p, BreadcrumbEllipsis as l, BreadcrumbItem as d, BreadcrumbLink as m, BreadcrumbList as b, BreadcrumbPage as I, BreadcrumbSeparator as s } from "./components/ui/breadcrumb/breadcrumb.js";
4
4
  import { Button as y, buttonVariants as f } from "./components/ui/button/button.js";
5
- import { ButtonMenu as M, buttonMenuVariants as P } from "./components/ui/button-menu/button-menu.js";
5
+ import { ButtonMenu as P, buttonMenuVariants as M } from "./components/ui/button-menu/button-menu.js";
6
6
  import { CardFilter as C, cardFilterVariants as B } from "./components/ui/card-filter/card-filter.js";
7
- import { Checkbox as G } from "./components/ui/checkbox/checkbox.js";
7
+ import { Checkbox as L } from "./components/ui/checkbox/checkbox.js";
8
8
  import { Radio as h, RadioGroup as v } from "./components/ui/radio/radio.js";
9
- import { Input as A } from "./components/ui/input/input.js";
10
- import { InputSearch as E } from "./components/ui/input-search/input-search.js";
11
- import { InputSelect as z, InputSelectContent as H, InputSelectDescription as w, InputSelectError as D, InputSelectField as j, InputSelectGroup as q, InputSelectItem as J, InputSelectLabel as K, InputSelectSearch as N, InputSelectSection as O, InputSelectSectionLabel as Q, InputSelectStatus as U, InputSelectTrigger as W, InputSelectValue as X, InputSelect as Y, InputSelectContent as Z, InputSelectSection as _, InputSelectSectionLabel as $, InputSelectItem as ee, InputSelectTrigger as re, InputSelectValue as te } from "./components/ui/input-select/input-select.js";
12
- import { InputText as oe } from "./components/ui/input-text/input-text.js";
13
- import { InputTextArea as Se } from "./components/ui/input-text-area/input-text-area.js";
14
- import { Search as ce } from "./components/ui/search/search.js";
15
- import { SearchGlobal as pe } from "./components/ui/search-global/search-global.js";
16
- import { ResizableHandle as de, ResizablePanel as be, ResizablePanelGroup as me } from "./components/ui/resizable/resizable.js";
17
- import { SidebarPrimary as se, SidebarPrimaryCollapseTrigger as xe, SidebarPrimaryContent as ye, SidebarPrimaryFooter as fe, SidebarPrimaryHeader as ge, SidebarPrimaryMenu as Me, SidebarPrimaryMenuItem as Pe, SidebarPrimaryMenuItemExtras as Te, SidebarPrimarySection as Ce, sidebarPrimaryMenuItemVariants as Be } from "./components/ui/sidebar-primary/sidebar-primary.js";
18
- import { SidebarSecondary as Ge, SidebarSecondaryCollapseTrigger as Le, SidebarSecondaryCollapsedBreadcrumb as he, SidebarSecondaryContent as ve, SidebarSecondaryFooter as Fe, SidebarSecondaryHeader as Ae, SidebarSecondaryMenu as Re, SidebarSecondaryMenuItem as Ee, SidebarSecondaryMenuItemExtras as ke, SidebarSecondaryMenuSub as ze, SidebarSecondaryMenuSubContent as He, SidebarSecondaryMenuSubItem as we, SidebarSecondaryMenuSubTrigger as De, SidebarSecondarySection as je, SidebarSecondarySectionLabel as qe, sidebarSecondaryMenuItemVariants as Je } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
19
- import { ButtonIcon as Ne, buttonIconVariants as Oe } from "./components/ui/button-icon/button-icon.js";
20
- import { Switch as Ue } from "./components/ui/switch/switch.js";
21
- import { Tooltip as Xe, TooltipContent as Ye, TooltipProvider as Ze, TooltipTrigger as _e } from "./components/ui/tooltip/tooltip.js";
22
- import { Tag as er, tagVariants as rr } from "./components/ui/tag/tag.js";
9
+ import { Input as k } from "./components/ui/input/input.js";
10
+ import { InputDatePicker as R } from "./components/ui/input-date-picker/input-date-picker.js";
11
+ import { InputSearch as z } from "./components/ui/input-search/input-search.js";
12
+ import { InputSelect as D, InputSelectContent as w, InputSelectDescription as j, InputSelectError as q, InputSelectField as J, InputSelectGroup as K, InputSelectItem as N, InputSelectLabel as O, InputSelectSearch as Q, InputSelectSection as U, InputSelectSectionLabel as W, InputSelectStatus as X, InputSelectTrigger as Y, InputSelectValue as Z, InputSelect as _, InputSelectContent as $, InputSelectSection as ee, InputSelectSectionLabel as re, InputSelectItem as te, InputSelectTrigger as ae, InputSelectValue as oe } from "./components/ui/input-select/input-select.js";
13
+ import { InputText as Se } from "./components/ui/input-text/input-text.js";
14
+ import { InputTextArea as ce } from "./components/ui/input-text-area/input-text-area.js";
15
+ import { Link as pe } from "./components/ui/link/link.js";
16
+ import { Search as de } from "./components/ui/search/search.js";
17
+ import { SearchGlobal as be } from "./components/ui/search-global/search-global.js";
18
+ import { ResizableHandle as se, ResizablePanel as xe, ResizablePanelGroup as ye } from "./components/ui/resizable/resizable.js";
19
+ import { SidebarPrimary as ge, SidebarPrimaryCollapseTrigger as Pe, SidebarPrimaryContent as Me, SidebarPrimaryFooter as Te, SidebarPrimaryHeader as Ce, SidebarPrimaryMenu as Be, SidebarPrimaryMenuItem as Ve, SidebarPrimaryMenuItemExtras as Le, SidebarPrimarySection as Ge, sidebarPrimaryMenuItemVariants as he } from "./components/ui/sidebar-primary/sidebar-primary.js";
20
+ import { SidebarSecondary as Fe, SidebarSecondaryCollapseTrigger as ke, SidebarSecondaryCollapsedBreadcrumb as Ae, SidebarSecondaryContent as Re, SidebarSecondaryFooter as Ee, SidebarSecondaryHeader as ze, SidebarSecondaryMenu as He, SidebarSecondaryMenuItem as De, SidebarSecondaryMenuItemExtras as we, SidebarSecondaryMenuSub as je, SidebarSecondaryMenuSubContent as qe, SidebarSecondaryMenuSubItem as Je, SidebarSecondaryMenuSubTrigger as Ke, SidebarSecondarySection as Ne, SidebarSecondarySectionLabel as Oe, sidebarSecondaryMenuItemVariants as Qe } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
21
+ import { ButtonIcon as We, buttonIconVariants as Xe } from "./components/ui/button-icon/button-icon.js";
22
+ import { Switch as Ze } from "./components/ui/switch/switch.js";
23
+ import { Tooltip as $e, TooltipContent as er, TooltipProvider as rr, TooltipTrigger as tr } from "./components/ui/tooltip/tooltip.js";
24
+ import { Tag as or, tagVariants as nr } from "./components/ui/tag/tag.js";
23
25
  export {
24
26
  o as Avatar,
25
27
  n as AvatarFallback,
@@ -28,85 +30,87 @@ export {
28
30
  p as Breadcrumb,
29
31
  l as BreadcrumbEllipsis,
30
32
  d as BreadcrumbItem,
31
- b as BreadcrumbLink,
32
- m as BreadcrumbList,
33
+ m as BreadcrumbLink,
34
+ b as BreadcrumbList,
33
35
  I as BreadcrumbPage,
34
36
  s as BreadcrumbSeparator,
35
37
  y as Button,
36
- Ne as ButtonIcon,
37
- M as ButtonMenu,
38
+ We as ButtonIcon,
39
+ P as ButtonMenu,
38
40
  C as CardFilter,
39
- G as Checkbox,
40
- A as Input,
41
- E as InputSearch,
42
- z as InputSelect,
43
- H as InputSelectContent,
44
- w as InputSelectDescription,
45
- D as InputSelectError,
46
- j as InputSelectField,
47
- q as InputSelectGroup,
48
- J as InputSelectItem,
49
- K as InputSelectLabel,
50
- N as InputSelectSearch,
51
- O as InputSelectSection,
52
- Q as InputSelectSectionLabel,
53
- U as InputSelectStatus,
54
- W as InputSelectTrigger,
55
- X as InputSelectValue,
56
- oe as InputText,
57
- Se as InputTextArea,
41
+ L as Checkbox,
42
+ k as Input,
43
+ R as InputDatePicker,
44
+ z as InputSearch,
45
+ D as InputSelect,
46
+ w as InputSelectContent,
47
+ j as InputSelectDescription,
48
+ q as InputSelectError,
49
+ J as InputSelectField,
50
+ K as InputSelectGroup,
51
+ N as InputSelectItem,
52
+ O as InputSelectLabel,
53
+ Q as InputSelectSearch,
54
+ U as InputSelectSection,
55
+ W as InputSelectSectionLabel,
56
+ X as InputSelectStatus,
57
+ Y as InputSelectTrigger,
58
+ Z as InputSelectValue,
59
+ Se as InputText,
60
+ ce as InputTextArea,
61
+ pe as Link,
58
62
  h as Radio,
59
63
  v as RadioGroup,
60
- de as ResizableHandle,
61
- be as ResizablePanel,
62
- me as ResizablePanelGroup,
63
- ce as Search,
64
- pe as SearchGlobal,
65
- Y as Select,
66
- Z as SelectContent,
67
- _ as SelectGroup,
68
- $ as SelectGroupLabel,
69
- ee as SelectItem,
70
- re as SelectTrigger,
71
- te as SelectValue,
72
- se as SidebarPrimary,
73
- xe as SidebarPrimaryCollapseTrigger,
74
- ye as SidebarPrimaryContent,
75
- fe as SidebarPrimaryFooter,
76
- ge as SidebarPrimaryHeader,
77
- Me as SidebarPrimaryMenu,
78
- Pe as SidebarPrimaryMenuItem,
79
- Te as SidebarPrimaryMenuItemExtras,
80
- Ce as SidebarPrimarySection,
81
- Ge as SidebarSecondary,
82
- Le as SidebarSecondaryCollapseTrigger,
83
- he as SidebarSecondaryCollapsedBreadcrumb,
84
- ve as SidebarSecondaryContent,
85
- Fe as SidebarSecondaryFooter,
86
- Ae as SidebarSecondaryHeader,
87
- Re as SidebarSecondaryMenu,
88
- Ee as SidebarSecondaryMenuItem,
89
- ke as SidebarSecondaryMenuItemExtras,
90
- ze as SidebarSecondaryMenuSub,
91
- He as SidebarSecondaryMenuSubContent,
92
- we as SidebarSecondaryMenuSubItem,
93
- De as SidebarSecondaryMenuSubTrigger,
94
- je as SidebarSecondarySection,
95
- qe as SidebarSecondarySectionLabel,
96
- Ue as Switch,
97
- er as Tag,
98
- Xe as Tooltip,
99
- Ye as TooltipContent,
100
- Ze as TooltipProvider,
101
- _e as TooltipTrigger,
64
+ se as ResizableHandle,
65
+ xe as ResizablePanel,
66
+ ye as ResizablePanelGroup,
67
+ de as Search,
68
+ be as SearchGlobal,
69
+ _ as Select,
70
+ $ as SelectContent,
71
+ ee as SelectGroup,
72
+ re as SelectGroupLabel,
73
+ te as SelectItem,
74
+ ae as SelectTrigger,
75
+ oe as SelectValue,
76
+ ge as SidebarPrimary,
77
+ Pe as SidebarPrimaryCollapseTrigger,
78
+ Me as SidebarPrimaryContent,
79
+ Te as SidebarPrimaryFooter,
80
+ Ce as SidebarPrimaryHeader,
81
+ Be as SidebarPrimaryMenu,
82
+ Ve as SidebarPrimaryMenuItem,
83
+ Le as SidebarPrimaryMenuItemExtras,
84
+ Ge as SidebarPrimarySection,
85
+ Fe as SidebarSecondary,
86
+ ke as SidebarSecondaryCollapseTrigger,
87
+ Ae as SidebarSecondaryCollapsedBreadcrumb,
88
+ Re as SidebarSecondaryContent,
89
+ Ee as SidebarSecondaryFooter,
90
+ ze as SidebarSecondaryHeader,
91
+ He as SidebarSecondaryMenu,
92
+ De as SidebarSecondaryMenuItem,
93
+ we as SidebarSecondaryMenuItemExtras,
94
+ je as SidebarSecondaryMenuSub,
95
+ qe as SidebarSecondaryMenuSubContent,
96
+ Je as SidebarSecondaryMenuSubItem,
97
+ Ke as SidebarSecondaryMenuSubTrigger,
98
+ Ne as SidebarSecondarySection,
99
+ Oe as SidebarSecondarySectionLabel,
100
+ Ze as Switch,
101
+ or as Tag,
102
+ $e as Tooltip,
103
+ er as TooltipContent,
104
+ rr as TooltipProvider,
105
+ tr as TooltipTrigger,
102
106
  c as avatarVariants,
103
- Oe as buttonIconVariants,
104
- P as buttonMenuVariants,
107
+ Xe as buttonIconVariants,
108
+ M as buttonMenuVariants,
105
109
  f as buttonVariants,
106
110
  B as cardFilterVariants,
107
111
  t as cn,
108
- Be as sidebarPrimaryMenuItemVariants,
109
- Je as sidebarSecondaryMenuItemVariants,
110
- rr as tagVariants
112
+ he as sidebarPrimaryMenuItemVariants,
113
+ Qe as sidebarSecondaryMenuItemVariants,
114
+ nr as tagVariants
111
115
  };
112
116
  //# sourceMappingURL=react.js.map
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 @@
1
+ export { InputDatePicker, type InputDatePickerProps, } from './input-date-picker';
@@ -0,0 +1,27 @@
1
+ import * as React from 'react';
2
+ export interface InputDatePickerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'value'> {
3
+ /** Field label, rendered above the box. */
4
+ label?: React.ReactNode;
5
+ /** Marks the field required — appends a `*` after the label. */
6
+ required?: boolean;
7
+ /** Helper text below the box. Hidden while `error` is set. */
8
+ description?: React.ReactNode;
9
+ /** Error message below the box. Its presence switches the field to the error treatment. */
10
+ error?: React.ReactNode;
11
+ /** Single date or a start–end range. */
12
+ pickerType?: 'date' | 'dateRange';
13
+ /** Hint shown when no value is selected. */
14
+ placeholder?: React.ReactNode;
15
+ /** Formatted selected date (`pickerType="date"`). */
16
+ value?: React.ReactNode;
17
+ /** Formatted range start (`pickerType="dateRange"`). */
18
+ startDate?: React.ReactNode;
19
+ /** Formatted range end (`pickerType="dateRange"`). */
20
+ endDate?: React.ReactNode;
21
+ /** Separator between range dates. */
22
+ separator?: React.ReactNode;
23
+ /** Whether the (consumer-owned) calendar popup is open — paints the active border. */
24
+ open?: boolean;
25
+ }
26
+ declare const InputDatePicker: React.ForwardRefExoticComponent<InputDatePickerProps & React.RefAttributes<HTMLButtonElement>>;
27
+ export { InputDatePicker };
@@ -0,0 +1 @@
1
+ export { Link, type LinkProps } from './link';
@@ -0,0 +1,15 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import * as React from 'react';
3
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
+ /** Append a trailing external-link icon (e.g. for links that leave the app). */
5
+ external?: boolean;
6
+ /** Render the link inert: disabled color, removed from the tab order, no navigation. */
7
+ disabled?: boolean;
8
+ /**
9
+ * Replace the rendered `<a>` with another element or component (Base UI
10
+ * composition) — e.g. a router `Link`. Props and class names are merged onto it.
11
+ */
12
+ render?: useRender.RenderProp;
13
+ }
14
+ declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
15
+ export { Link };
@@ -101,6 +101,11 @@ declare const SidebarSecondaryMenuItemExtras: React.ForwardRefExoticComponent<Si
101
101
  export interface SidebarSecondaryCollapseTriggerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'children'> {
102
102
  /** Leading 16px icon (e.g. a panel-left glyph). */
103
103
  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;
104
109
  children?: React.ReactNode;
105
110
  }
106
111
  declare const SidebarSecondaryCollapseTrigger: React.ForwardRefExoticComponent<SidebarSecondaryCollapseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -7,10 +7,12 @@ export * from './components/ui/card-filter';
7
7
  export * from './components/ui/checkbox';
8
8
  export * from './components/ui/radio';
9
9
  export * from './components/ui/input';
10
+ export * from './components/ui/input-date-picker';
10
11
  export * from './components/ui/input-search';
11
12
  export * from './components/ui/input-select';
12
13
  export * from './components/ui/input-text';
13
14
  export * from './components/ui/input-text-area';
15
+ export * from './components/ui/link';
14
16
  export * from './components/ui/search';
15
17
  export * from './components/ui/search-global';
16
18
  export * from './components/ui/select';