@acronis-platform/ui-react 0.34.0 → 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.
package/dist/index.js CHANGED
@@ -1,33 +1,34 @@
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 m, BreadcrumbList as b, BreadcrumbPage as I, BreadcrumbSeparator as s } from "./components/ui/breadcrumb/breadcrumb.js";
3
+ import { Breadcrumb as u, 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 P, buttonMenuVariants as M } from "./components/ui/button-menu/button-menu.js";
6
- import { CardFilter as C, cardFilterVariants as B } from "./components/ui/card-filter/card-filter.js";
7
- import { Checkbox as L } from "./components/ui/checkbox/checkbox.js";
8
- import { Radio as h, RadioGroup as v } from "./components/ui/radio/radio.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";
5
+ import { ButtonIcon as P, buttonIconVariants as M } from "./components/ui/button-icon/button-icon.js";
6
+ import { ButtonMenu as C, buttonMenuVariants as V } from "./components/ui/button-menu/button-menu.js";
7
+ import { CardFilter as h, cardFilterVariants as L } from "./components/ui/card-filter/card-filter.js";
8
+ import { Checkbox as v } from "./components/ui/checkbox/checkbox.js";
9
+ import { Chip as k, chipVariants as A } from "./components/ui/chip/chip.js";
10
+ import { Input as E } from "./components/ui/input/input.js";
11
+ import { InputDatePicker as H } from "./components/ui/input-date-picker/input-date-picker.js";
12
+ import { InputSearch as w } from "./components/ui/input-search/input-search.js";
13
+ import { InputSelect as q, InputSelectContent as J, InputSelectDescription as K, InputSelectError as N, InputSelectField as O, InputSelectGroup as Q, InputSelectItem as U, InputSelectLabel as W, InputSelectSearch as X, InputSelectSection as Y, InputSelectSectionLabel as Z, InputSelectStatus as _, InputSelectTrigger as $, InputSelectValue as ee, InputSelect as re, InputSelectContent as te, InputSelectSection as ae, InputSelectSectionLabel as oe, InputSelectItem as ne, InputSelectTrigger as Se, InputSelectValue as ie } from "./components/ui/input-select/input-select.js";
14
+ import { InputText as pe } from "./components/ui/input-text/input-text.js";
15
+ import { InputTextArea as le } from "./components/ui/input-text-area/input-text-area.js";
16
+ import { Link as me } from "./components/ui/link/link.js";
17
+ import { Radio as Ie, RadioGroup as se } from "./components/ui/radio/radio.js";
18
+ import { ResizableHandle as ye, ResizablePanel as fe, ResizablePanelGroup as ge } from "./components/ui/resizable/resizable.js";
19
+ import { Search as Me } from "./components/ui/search/search.js";
20
+ import { SearchGlobal as Ce } from "./components/ui/search-global/search-global.js";
21
+ import { SidebarPrimary as Be, SidebarPrimaryCollapseTrigger as he, SidebarPrimaryContent as Le, SidebarPrimaryFooter as Ge, SidebarPrimaryHeader as ve, SidebarPrimaryMenu as Fe, SidebarPrimaryMenuItem as ke, SidebarPrimaryMenuItemExtras as Ae, SidebarPrimarySection as Re, sidebarPrimaryMenuItemVariants as Ee } from "./components/ui/sidebar-primary/sidebar-primary.js";
22
+ import { SidebarSecondary as He, SidebarSecondaryCollapseTrigger as De, SidebarSecondaryCollapsedBreadcrumb as we, SidebarSecondaryContent as je, SidebarSecondaryFooter as qe, SidebarSecondaryHeader as Je, SidebarSecondaryMenu as Ke, SidebarSecondaryMenuItem as Ne, SidebarSecondaryMenuItemExtras as Oe, SidebarSecondaryMenuSub as Qe, SidebarSecondaryMenuSubContent as Ue, SidebarSecondaryMenuSubItem as We, SidebarSecondaryMenuSubTrigger as Xe, SidebarSecondarySection as Ye, SidebarSecondarySectionLabel as Ze, sidebarSecondaryMenuItemVariants as _e } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
23
+ import { Switch as er } from "./components/ui/switch/switch.js";
24
+ import { Tag as tr, tagVariants as ar } from "./components/ui/tag/tag.js";
25
+ import { Tooltip as nr, TooltipContent as Sr, TooltipProvider as ir, TooltipTrigger as cr } from "./components/ui/tooltip/tooltip.js";
25
26
  export {
26
27
  o as Avatar,
27
28
  n as AvatarFallback,
28
29
  S as AvatarGroup,
29
30
  i as AvatarImage,
30
- p as Breadcrumb,
31
+ u as Breadcrumb,
31
32
  l as BreadcrumbEllipsis,
32
33
  d as BreadcrumbItem,
33
34
  m as BreadcrumbLink,
@@ -35,82 +36,84 @@ export {
35
36
  I as BreadcrumbPage,
36
37
  s as BreadcrumbSeparator,
37
38
  y as Button,
38
- We as ButtonIcon,
39
- P as ButtonMenu,
40
- C as CardFilter,
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,
62
- h as Radio,
63
- v as RadioGroup,
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,
39
+ P as ButtonIcon,
40
+ C as ButtonMenu,
41
+ h as CardFilter,
42
+ v as Checkbox,
43
+ k as Chip,
44
+ E as Input,
45
+ H as InputDatePicker,
46
+ w as InputSearch,
47
+ q as InputSelect,
48
+ J as InputSelectContent,
49
+ K as InputSelectDescription,
50
+ N as InputSelectError,
51
+ O as InputSelectField,
52
+ Q as InputSelectGroup,
53
+ U as InputSelectItem,
54
+ W as InputSelectLabel,
55
+ X as InputSelectSearch,
56
+ Y as InputSelectSection,
57
+ Z as InputSelectSectionLabel,
58
+ _ as InputSelectStatus,
59
+ $ as InputSelectTrigger,
60
+ ee as InputSelectValue,
61
+ pe as InputText,
62
+ le as InputTextArea,
63
+ me as Link,
64
+ Ie as Radio,
65
+ se as RadioGroup,
66
+ ye as ResizableHandle,
67
+ fe as ResizablePanel,
68
+ ge as ResizablePanelGroup,
69
+ Me as Search,
70
+ Ce as SearchGlobal,
71
+ re as Select,
72
+ te as SelectContent,
73
+ ae as SelectGroup,
74
+ oe as SelectGroupLabel,
75
+ ne as SelectItem,
76
+ Se as SelectTrigger,
77
+ ie as SelectValue,
78
+ Be as SidebarPrimary,
79
+ he as SidebarPrimaryCollapseTrigger,
80
+ Le as SidebarPrimaryContent,
81
+ Ge as SidebarPrimaryFooter,
82
+ ve as SidebarPrimaryHeader,
83
+ Fe as SidebarPrimaryMenu,
84
+ ke as SidebarPrimaryMenuItem,
85
+ Ae as SidebarPrimaryMenuItemExtras,
86
+ Re as SidebarPrimarySection,
87
+ He as SidebarSecondary,
88
+ De as SidebarSecondaryCollapseTrigger,
89
+ we as SidebarSecondaryCollapsedBreadcrumb,
90
+ je as SidebarSecondaryContent,
91
+ qe as SidebarSecondaryFooter,
92
+ Je as SidebarSecondaryHeader,
93
+ Ke as SidebarSecondaryMenu,
94
+ Ne as SidebarSecondaryMenuItem,
95
+ Oe as SidebarSecondaryMenuItemExtras,
96
+ Qe as SidebarSecondaryMenuSub,
97
+ Ue as SidebarSecondaryMenuSubContent,
98
+ We as SidebarSecondaryMenuSubItem,
99
+ Xe as SidebarSecondaryMenuSubTrigger,
100
+ Ye as SidebarSecondarySection,
101
+ Ze as SidebarSecondarySectionLabel,
102
+ er as Switch,
103
+ tr as Tag,
104
+ nr as Tooltip,
105
+ Sr as TooltipContent,
106
+ ir as TooltipProvider,
107
+ cr as TooltipTrigger,
106
108
  c as avatarVariants,
107
- Xe as buttonIconVariants,
108
- M as buttonMenuVariants,
109
+ M as buttonIconVariants,
110
+ V as buttonMenuVariants,
109
111
  f as buttonVariants,
110
- B as cardFilterVariants,
112
+ L as cardFilterVariants,
113
+ A as chipVariants,
111
114
  t as cn,
112
- he as sidebarPrimaryMenuItemVariants,
113
- Qe as sidebarSecondaryMenuItemVariants,
114
- nr as tagVariants
115
+ Ee as sidebarPrimaryMenuItemVariants,
116
+ _e as sidebarSecondaryMenuItemVariants,
117
+ ar as tagVariants
115
118
  };
116
119
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,7 +4,7 @@ var Ee = (e) => {
4
4
  var De = (e, t, n) => t.has(e) || Ee("Cannot " + n);
5
5
  var re = (e, t, n) => (De(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Re = (e, t, n) => t.has(e) ? Ee("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Ie = (e, t, n, o) => (De(e, t, "write to private field"), o ? o.call(e, n) : t.set(e, n), n);
6
6
  import { jsx as se } from "react/jsx-runtime";
7
- import { createContext as gt, useState as pe, useRef as F, useEffect as ge, useSyncExternalStore as vt, useMemo as mt, useId as bt, useContext as yt, useLayoutEffect as zt, useCallback as Ue, useImperativeHandle as Ze } from "react";
7
+ import { useState as pe, useRef as F, useEffect as ge, useSyncExternalStore as gt, useMemo as vt, useId as mt, useContext as bt, useLayoutEffect as yt, useCallback as Ue, useImperativeHandle as Ze, createContext as zt } from "react";
8
8
  function St(e, t) {
9
9
  const n = getComputedStyle(e), o = parseFloat(n.fontSize);
10
10
  return t * o;
@@ -1514,10 +1514,10 @@ function Ut() {
1514
1514
  return [e, n];
1515
1515
  }
1516
1516
  function Ce(e) {
1517
- const t = bt();
1517
+ const t = mt();
1518
1518
  return `${e ?? t}`;
1519
1519
  }
1520
- const U = typeof window < "u" ? zt : ge;
1520
+ const U = typeof window < "u" ? yt : ge;
1521
1521
  function ie(e) {
1522
1522
  const t = F(e);
1523
1523
  return U(() => {
@@ -1554,7 +1554,7 @@ function Le(e) {
1554
1554
  t.current[n] = e[n];
1555
1555
  }, [e]), t.current;
1556
1556
  }
1557
- const ct = gt(null);
1557
+ const ct = zt(null);
1558
1558
  function Zt(e, t) {
1559
1559
  const n = F({
1560
1560
  getLayout: () => ({}),
@@ -1627,7 +1627,7 @@ function Kt({
1627
1627
  ), E = Le({
1628
1628
  defaultLayout: n,
1629
1629
  disableCursor: o
1630
- }), O = mt(
1630
+ }), O = vt(
1631
1631
  () => ({
1632
1632
  get disableCursor() {
1633
1633
  return !!E.disableCursor;
@@ -1777,7 +1777,7 @@ function Kt({
1777
1777
  }
1778
1778
  Kt.displayName = "Group";
1779
1779
  function ke() {
1780
- const e = yt(ct);
1780
+ const e = bt(ct);
1781
1781
  return P(
1782
1782
  e,
1783
1783
  "Group Context not found; did you render a Panel or Separator outside of a Group?"
@@ -1875,7 +1875,7 @@ function _t({
1875
1875
  const C = y(v, g);
1876
1876
  if (C)
1877
1877
  return JSON.stringify(C);
1878
- }, x = vt(
1878
+ }, x = gt(
1879
1879
  (C) => ze(v, C),
1880
1880
  w,
1881
1881
  w
package/dist/react.js CHANGED
@@ -1,33 +1,34 @@
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 m, BreadcrumbList as b, BreadcrumbPage as I, BreadcrumbSeparator as s } from "./components/ui/breadcrumb/breadcrumb.js";
3
+ import { Breadcrumb as u, 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 P, buttonMenuVariants as M } from "./components/ui/button-menu/button-menu.js";
6
- import { CardFilter as C, cardFilterVariants as B } from "./components/ui/card-filter/card-filter.js";
7
- import { Checkbox as L } from "./components/ui/checkbox/checkbox.js";
8
- import { Radio as h, RadioGroup as v } from "./components/ui/radio/radio.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";
5
+ import { ButtonIcon as P, buttonIconVariants as M } from "./components/ui/button-icon/button-icon.js";
6
+ import { ButtonMenu as C, buttonMenuVariants as V } from "./components/ui/button-menu/button-menu.js";
7
+ import { CardFilter as h, cardFilterVariants as L } from "./components/ui/card-filter/card-filter.js";
8
+ import { Checkbox as v } from "./components/ui/checkbox/checkbox.js";
9
+ import { Chip as k, chipVariants as A } from "./components/ui/chip/chip.js";
10
+ import { Input as E } from "./components/ui/input/input.js";
11
+ import { InputDatePicker as H } from "./components/ui/input-date-picker/input-date-picker.js";
12
+ import { InputSearch as w } from "./components/ui/input-search/input-search.js";
13
+ import { InputSelect as q, InputSelectContent as J, InputSelectDescription as K, InputSelectError as N, InputSelectField as O, InputSelectGroup as Q, InputSelectItem as U, InputSelectLabel as W, InputSelectSearch as X, InputSelectSection as Y, InputSelectSectionLabel as Z, InputSelectStatus as _, InputSelectTrigger as $, InputSelectValue as ee, InputSelect as re, InputSelectContent as te, InputSelectSection as ae, InputSelectSectionLabel as oe, InputSelectItem as ne, InputSelectTrigger as Se, InputSelectValue as ie } from "./components/ui/input-select/input-select.js";
14
+ import { InputText as pe } from "./components/ui/input-text/input-text.js";
15
+ import { InputTextArea as le } from "./components/ui/input-text-area/input-text-area.js";
16
+ import { Link as me } from "./components/ui/link/link.js";
17
+ import { Radio as Ie, RadioGroup as se } from "./components/ui/radio/radio.js";
18
+ import { ResizableHandle as ye, ResizablePanel as fe, ResizablePanelGroup as ge } from "./components/ui/resizable/resizable.js";
19
+ import { Search as Me } from "./components/ui/search/search.js";
20
+ import { SearchGlobal as Ce } from "./components/ui/search-global/search-global.js";
21
+ import { SidebarPrimary as Be, SidebarPrimaryCollapseTrigger as he, SidebarPrimaryContent as Le, SidebarPrimaryFooter as Ge, SidebarPrimaryHeader as ve, SidebarPrimaryMenu as Fe, SidebarPrimaryMenuItem as ke, SidebarPrimaryMenuItemExtras as Ae, SidebarPrimarySection as Re, sidebarPrimaryMenuItemVariants as Ee } from "./components/ui/sidebar-primary/sidebar-primary.js";
22
+ import { SidebarSecondary as He, SidebarSecondaryCollapseTrigger as De, SidebarSecondaryCollapsedBreadcrumb as we, SidebarSecondaryContent as je, SidebarSecondaryFooter as qe, SidebarSecondaryHeader as Je, SidebarSecondaryMenu as Ke, SidebarSecondaryMenuItem as Ne, SidebarSecondaryMenuItemExtras as Oe, SidebarSecondaryMenuSub as Qe, SidebarSecondaryMenuSubContent as Ue, SidebarSecondaryMenuSubItem as We, SidebarSecondaryMenuSubTrigger as Xe, SidebarSecondarySection as Ye, SidebarSecondarySectionLabel as Ze, sidebarSecondaryMenuItemVariants as _e } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
23
+ import { Switch as er } from "./components/ui/switch/switch.js";
24
+ import { Tag as tr, tagVariants as ar } from "./components/ui/tag/tag.js";
25
+ import { Tooltip as nr, TooltipContent as Sr, TooltipProvider as ir, TooltipTrigger as cr } from "./components/ui/tooltip/tooltip.js";
25
26
  export {
26
27
  o as Avatar,
27
28
  n as AvatarFallback,
28
29
  S as AvatarGroup,
29
30
  i as AvatarImage,
30
- p as Breadcrumb,
31
+ u as Breadcrumb,
31
32
  l as BreadcrumbEllipsis,
32
33
  d as BreadcrumbItem,
33
34
  m as BreadcrumbLink,
@@ -35,82 +36,84 @@ export {
35
36
  I as BreadcrumbPage,
36
37
  s as BreadcrumbSeparator,
37
38
  y as Button,
38
- We as ButtonIcon,
39
- P as ButtonMenu,
40
- C as CardFilter,
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,
62
- h as Radio,
63
- v as RadioGroup,
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,
39
+ P as ButtonIcon,
40
+ C as ButtonMenu,
41
+ h as CardFilter,
42
+ v as Checkbox,
43
+ k as Chip,
44
+ E as Input,
45
+ H as InputDatePicker,
46
+ w as InputSearch,
47
+ q as InputSelect,
48
+ J as InputSelectContent,
49
+ K as InputSelectDescription,
50
+ N as InputSelectError,
51
+ O as InputSelectField,
52
+ Q as InputSelectGroup,
53
+ U as InputSelectItem,
54
+ W as InputSelectLabel,
55
+ X as InputSelectSearch,
56
+ Y as InputSelectSection,
57
+ Z as InputSelectSectionLabel,
58
+ _ as InputSelectStatus,
59
+ $ as InputSelectTrigger,
60
+ ee as InputSelectValue,
61
+ pe as InputText,
62
+ le as InputTextArea,
63
+ me as Link,
64
+ Ie as Radio,
65
+ se as RadioGroup,
66
+ ye as ResizableHandle,
67
+ fe as ResizablePanel,
68
+ ge as ResizablePanelGroup,
69
+ Me as Search,
70
+ Ce as SearchGlobal,
71
+ re as Select,
72
+ te as SelectContent,
73
+ ae as SelectGroup,
74
+ oe as SelectGroupLabel,
75
+ ne as SelectItem,
76
+ Se as SelectTrigger,
77
+ ie as SelectValue,
78
+ Be as SidebarPrimary,
79
+ he as SidebarPrimaryCollapseTrigger,
80
+ Le as SidebarPrimaryContent,
81
+ Ge as SidebarPrimaryFooter,
82
+ ve as SidebarPrimaryHeader,
83
+ Fe as SidebarPrimaryMenu,
84
+ ke as SidebarPrimaryMenuItem,
85
+ Ae as SidebarPrimaryMenuItemExtras,
86
+ Re as SidebarPrimarySection,
87
+ He as SidebarSecondary,
88
+ De as SidebarSecondaryCollapseTrigger,
89
+ we as SidebarSecondaryCollapsedBreadcrumb,
90
+ je as SidebarSecondaryContent,
91
+ qe as SidebarSecondaryFooter,
92
+ Je as SidebarSecondaryHeader,
93
+ Ke as SidebarSecondaryMenu,
94
+ Ne as SidebarSecondaryMenuItem,
95
+ Oe as SidebarSecondaryMenuItemExtras,
96
+ Qe as SidebarSecondaryMenuSub,
97
+ Ue as SidebarSecondaryMenuSubContent,
98
+ We as SidebarSecondaryMenuSubItem,
99
+ Xe as SidebarSecondaryMenuSubTrigger,
100
+ Ye as SidebarSecondarySection,
101
+ Ze as SidebarSecondarySectionLabel,
102
+ er as Switch,
103
+ tr as Tag,
104
+ nr as Tooltip,
105
+ Sr as TooltipContent,
106
+ ir as TooltipProvider,
107
+ cr as TooltipTrigger,
106
108
  c as avatarVariants,
107
- Xe as buttonIconVariants,
108
- M as buttonMenuVariants,
109
+ M as buttonIconVariants,
110
+ V as buttonMenuVariants,
109
111
  f as buttonVariants,
110
- B as cardFilterVariants,
112
+ L as cardFilterVariants,
113
+ A as chipVariants,
111
114
  t as cn,
112
- he as sidebarPrimaryMenuItemVariants,
113
- Qe as sidebarSecondaryMenuItemVariants,
114
- nr as tagVariants
115
+ Ee as sidebarPrimaryMenuItemVariants,
116
+ _e as sidebarSecondaryMenuItemVariants,
117
+ ar as tagVariants
115
118
  };
116
119
  //# 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,20 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const chipVariants: (props?: ({
4
+ variant?: "removable" | "selectable" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface ChipProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof chipVariants> {
7
+ /** Optional leading icon, rendered at 16px before the label. */
8
+ icon?: React.ReactNode;
9
+ /**
10
+ * `selectable` only — applies the selected (active) styling and exposes the
11
+ * chip as a pressed toggle (`role="button"` + `aria-pressed`).
12
+ */
13
+ selected?: boolean;
14
+ /** `removable` only — called when the trailing remove (×) button is pressed. */
15
+ onRemove?: () => void;
16
+ /** Accessible label for the remove button (`removable`). */
17
+ removeLabel?: string;
18
+ }
19
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
20
+ export { Chip, chipVariants };
@@ -0,0 +1 @@
1
+ export { Chip, chipVariants, type ChipProps } from './chip';
@@ -17,6 +17,12 @@ declare const InputSelectContent: React.ForwardRefExoticComponent<Omit<Omit<impo
17
17
  sideOffset?: number;
18
18
  align?: SelectPrimitive.Positioner.Props["align"];
19
19
  side?: SelectPrimitive.Positioner.Props["side"];
20
+ /**
21
+ * Container to portal the dropdown into. Defaults to the document body;
22
+ * pass an element to scope the portal (e.g. a shadow root, so the popup
23
+ * inherits styles defined there).
24
+ */
25
+ portalContainer?: SelectPrimitive.Portal.Props["container"];
20
26
  } & React.RefAttributes<HTMLDivElement>>;
21
27
  /**
22
28
  * Presentational in-dropdown search row (magnifier + input). The consumer wires
@@ -21,7 +21,7 @@ declare const SidebarPrimaryFooter: React.ForwardRefExoticComponent<Omit<React.D
21
21
  declare const SidebarPrimarySection: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const SidebarPrimaryMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
23
23
  declare const sidebarPrimaryMenuItemVariants: (props?: ({
24
- variant?: "unselected" | "selected" | null | undefined;
24
+ variant?: "selected" | "unselected" | null | undefined;
25
25
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
26
26
  export interface SidebarPrimaryMenuItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'>, Omit<VariantProps<typeof sidebarPrimaryMenuItemVariants>, 'variant'> {
27
27
  /** Marks the current route: sets the `selected` variant + `aria-current="page"`. */
@@ -58,7 +58,7 @@ export interface SidebarSecondarySectionLabelProps extends React.ComponentPropsW
58
58
  declare const SidebarSecondarySectionLabel: React.ForwardRefExoticComponent<SidebarSecondarySectionLabelProps & React.RefAttributes<HTMLDivElement>>;
59
59
  declare const SidebarSecondaryMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
60
60
  declare const sidebarSecondaryMenuItemVariants: (props?: ({
61
- variant?: "unselected" | "selected" | null | undefined;
61
+ variant?: "selected" | "unselected" | null | undefined;
62
62
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
63
63
  export interface SidebarSecondaryMenuItemProps extends Omit<React.ComponentPropsWithoutRef<'a'>, 'children'>, Omit<VariantProps<typeof sidebarSecondaryMenuItemVariants>, 'variant'> {
64
64
  /** Marks the current route: sets the `selected` variant + `aria-current="page"`. */
@@ -5,6 +5,7 @@ export * from './components/ui/button';
5
5
  export * from './components/ui/button-menu';
6
6
  export * from './components/ui/card-filter';
7
7
  export * from './components/ui/checkbox';
8
+ export * from './components/ui/chip';
8
9
  export * from './components/ui/radio';
9
10
  export * from './components/ui/input';
10
11
  export * from './components/ui/input-date-picker';