@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/components/ui/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/ui/chip/chip.js +70 -0
- package/dist/components/ui/chip/chip.js.map +1 -0
- package/dist/components/ui/input-select/input-select.js +53 -45
- package/dist/components/ui/input-select/input-select.js.map +1 -1
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +1 -1
- package/dist/index.js +99 -96
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js +7 -7
- package/dist/react.js +99 -96
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/chip/chip.d.ts +20 -0
- package/dist/src/components/ui/chip/index.d.ts +1 -0
- package/dist/src/components/ui/input-select/input-select.d.ts +6 -0
- package/dist/src/components/ui/sidebar-primary/sidebar-primary.d.ts +1 -1
- package/dist/src/components/ui/sidebar-secondary/sidebar-secondary.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/ui-react.css +1 -1
- package/package.json +6 -3
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
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { ResizableHandle as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { Tag as
|
|
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
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
k as
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
se as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Ze as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
+
M as buttonIconVariants,
|
|
110
|
+
V as buttonMenuVariants,
|
|
109
111
|
f as buttonVariants,
|
|
110
|
-
|
|
112
|
+
L as cardFilterVariants,
|
|
113
|
+
A as chipVariants,
|
|
111
114
|
t as cn,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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 {
|
|
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 =
|
|
1517
|
+
const t = mt();
|
|
1518
1518
|
return `${e ?? t}`;
|
|
1519
1519
|
}
|
|
1520
|
-
const U = typeof window < "u" ?
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { ResizableHandle as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { Tag as
|
|
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
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
k as
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
se as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Ze as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
+
M as buttonIconVariants,
|
|
110
|
+
V as buttonMenuVariants,
|
|
109
111
|
f as buttonVariants,
|
|
110
|
-
|
|
112
|
+
L as cardFilterVariants,
|
|
113
|
+
A as chipVariants,
|
|
111
114
|
t as cn,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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?: "
|
|
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?: "
|
|
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"`. */
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|