@oneplatformdev/ui 0.0.1-beta.68 → 0.0.1-beta.69
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/Alert/Alert.mjs +6 -7
- package/AreaChart/AreaChart.mjs +4 -5
- package/Badge/Badge.mjs +6 -7
- package/Calendar/Calendar.mjs +0 -1
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Command/Command.mjs +2 -3
- package/DataTable/DataTable.mjs +15 -16
- package/Dropzone/Dropzone.mjs +1 -1
- package/Dropzone/DropzoneFilePreview.mjs +1 -1
- package/Dropzone/index.mjs +1 -1
- package/{DropzoneFilePreview-C-SoCoO0.js → DropzoneFilePreview-Dhtv8F4u.js} +15 -16
- package/Form/Form.mjs +4 -5
- package/Form/FormRenderControl.mjs +6 -7
- package/FormCheckbox/FormCheckbox.mjs +9 -10
- package/FormCombobox/FormCombobox.mjs +12 -13
- package/FormDatePicker/FormDatePicker.mjs +6 -7
- package/FormDropzone/FormDropzone.mjs +6 -7
- package/FormInput/FormInput.mjs +6 -7
- package/FormRadio/FormRadio.mjs +10 -11
- package/FormSelect/FormSelect.mjs +5 -6
- package/FormTextarea/FormTextarea.mjs +9 -10
- package/Header/Header.mjs +6 -7
- package/Label/Label.mjs +6 -7
- package/LoadingMask/LoadingMask.mjs +6 -7
- package/LoadingProgress/LoadingProgress.mjs +2 -3
- package/Radio/Radio.mjs +7 -8
- package/Skeleton/Skeleton.mjs +8 -9
- package/TablePagination/TablePagination.mjs +8 -9
- package/Textarea/Textarea.mjs +72 -5
- package/Textarea/index.mjs +2 -2
- package/Textarea/useAutosizeTextArea.mjs +18 -65
- package/Theme/ThemeProvider.mjs +13 -14
- package/Toast/Toast.mjs +2 -3
- package/ToggleGroup/ToggleGroup.mjs +6 -7
- package/Tooltip/Tooltip.mjs +2 -3
- package/index.mjs +2 -2
- package/package.json +1 -1
- package/Textarea-D1CCXy7E.js +0 -149
package/Header/Header.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import { SidebarTrigger as s } from "../Sidebar/Sidebar.mjs";
|
|
2
|
+
import { SidebarTrigger as t } from "../Sidebar/Sidebar.mjs";
|
|
4
3
|
import { Separator as l } from "../Separator/Separator.mjs";
|
|
5
|
-
const
|
|
4
|
+
const m = (s) => {
|
|
6
5
|
const {
|
|
7
6
|
children: r,
|
|
8
7
|
hideTrigger: a = !1
|
|
9
|
-
} =
|
|
8
|
+
} = s;
|
|
10
9
|
return /* @__PURE__ */ i(
|
|
11
10
|
"header",
|
|
12
11
|
{
|
|
13
12
|
className: "flex h-16 shrink-0 items-center justify-between gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12",
|
|
14
13
|
children: [
|
|
15
14
|
!a && /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
16
|
-
/* @__PURE__ */ e(
|
|
15
|
+
/* @__PURE__ */ e(t, { className: "ml-1" }),
|
|
17
16
|
/* @__PURE__ */ e(l, { orientation: "vertical", className: "mr-2 h-4" })
|
|
18
17
|
] }),
|
|
19
18
|
a ? r : /* @__PURE__ */ e("div", { className: "flex-1 text-right pr-6", children: r })
|
|
@@ -22,6 +21,6 @@ const h = (t) => {
|
|
|
22
21
|
);
|
|
23
22
|
};
|
|
24
23
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
m as Header,
|
|
25
|
+
m as default
|
|
27
26
|
};
|
package/Label/Label.mjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-label";
|
|
4
|
-
import "class-variance-authority";
|
|
5
4
|
import { cn as e } from "@oneplatformdev/utils";
|
|
6
|
-
import { labelVariants as
|
|
7
|
-
const
|
|
5
|
+
import { labelVariants as s } from "./labelVariants.mjs";
|
|
6
|
+
const p = i.forwardRef(({ className: a, ...r }, m) => /* @__PURE__ */ t(
|
|
8
7
|
o.Root,
|
|
9
8
|
{
|
|
10
9
|
ref: m,
|
|
11
|
-
className: e(
|
|
12
|
-
...
|
|
10
|
+
className: e(s(), a),
|
|
11
|
+
...r
|
|
13
12
|
}
|
|
14
13
|
));
|
|
15
|
-
|
|
14
|
+
p.displayName = o.Root.displayName;
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
p as Label
|
|
18
17
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
2
|
import { RenderLoadingMask as r } from "./RenderLoadingMask.mjs";
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
const { fullWidth: s = !1, className: i, ...
|
|
3
|
+
import { cn as o } from "@oneplatformdev/utils";
|
|
4
|
+
const f = (t) => {
|
|
5
|
+
const { fullWidth: s = !1, className: i, ...n } = t;
|
|
7
6
|
return s ? /* @__PURE__ */ e(
|
|
8
7
|
"div",
|
|
9
8
|
{
|
|
10
|
-
...
|
|
11
|
-
className:
|
|
9
|
+
...n,
|
|
10
|
+
className: o(
|
|
12
11
|
"absolute inset-0",
|
|
13
12
|
"flex items-center justify-center",
|
|
14
13
|
i
|
|
@@ -18,5 +17,5 @@ const l = (t) => {
|
|
|
18
17
|
) : /* @__PURE__ */ e(r, {});
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
f as LoadingMask
|
|
22
21
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
2
|
import { cn as r } from "@oneplatformdev/utils";
|
|
4
3
|
import { loadingProgressVariants as a } from "./loadingProgressVariants.mjs";
|
|
5
|
-
const
|
|
4
|
+
const f = (e) => {
|
|
6
5
|
const { className: s, fullWidth: t = !1, size: i, color: l, wrapClassName: n } = e;
|
|
7
6
|
return /* @__PURE__ */ o(
|
|
8
7
|
"div",
|
|
@@ -34,5 +33,5 @@ const h = (e) => {
|
|
|
34
33
|
);
|
|
35
34
|
};
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
f as LoadingProgress
|
|
38
37
|
};
|
package/Radio/Radio.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return !r || typeof r != "function" || !(r != null && r(t, o)) ? u : r == null ? void 0 : r(t, o);
|
|
2
|
+
import { RadioGroup as c, RadioGroupLabel as u } from "../RadioGroup/RadioGroup.mjs";
|
|
3
|
+
const l = (e) => {
|
|
4
|
+
const { options: f = [], renderOption: r, ...s } = e;
|
|
5
|
+
return /* @__PURE__ */ a(c, { ...s, children: f.map((t) => {
|
|
6
|
+
const o = /* @__PURE__ */ a(u, { ...t }, t.value);
|
|
7
|
+
return !r || typeof r != "function" || !(r != null && r(t, u)) ? o : r == null ? void 0 : r(t, u);
|
|
9
8
|
}) });
|
|
10
9
|
};
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
l as Radio
|
|
13
12
|
};
|
package/Skeleton/Skeleton.mjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
|
|
4
|
-
function p({
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as o } from "@oneplatformdev/utils";
|
|
3
|
+
function i({
|
|
5
4
|
className: r,
|
|
6
|
-
...
|
|
5
|
+
...e
|
|
7
6
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ m(
|
|
9
8
|
"div",
|
|
10
9
|
{
|
|
11
|
-
className:
|
|
12
|
-
...
|
|
10
|
+
className: o("animate-pulse rounded-md bg-primary/10", r),
|
|
11
|
+
...e
|
|
13
12
|
}
|
|
14
13
|
);
|
|
15
14
|
}
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
i as Skeleton
|
|
18
17
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Button as i } from "../Button/Button.mjs";
|
|
3
3
|
import "../Button/buttonVariants.mjs";
|
|
4
4
|
import "../Select/SelectRoot.mjs";
|
|
5
5
|
import { Select as P } from "../Select/Select.mjs";
|
|
6
|
-
|
|
7
|
-
const z = ({
|
|
6
|
+
const y = ({
|
|
8
7
|
offset: l,
|
|
9
8
|
limit: a,
|
|
10
9
|
totalRows: s,
|
|
@@ -16,7 +15,7 @@ const z = ({
|
|
|
16
15
|
tNext: v = "Next",
|
|
17
16
|
tOf: h = "Of"
|
|
18
17
|
}) => {
|
|
19
|
-
const
|
|
18
|
+
const r = Math.ceil(l / a) + 1, o = Math.ceil(s / a), m = r === o, b = (e) => {
|
|
20
19
|
t(0), p(parseInt(e));
|
|
21
20
|
}, g = () => {
|
|
22
21
|
let e = l - a;
|
|
@@ -25,8 +24,8 @@ const z = ({
|
|
|
25
24
|
let e = l + a;
|
|
26
25
|
e > s && (e = s - a), t(e);
|
|
27
26
|
};
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ c("div", { className: "flex items-center justify-end space-x-2 py-4", children: [
|
|
28
|
+
/* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
|
|
30
29
|
/* @__PURE__ */ n("span", { className: "text-sm text-nowrap", children: d }),
|
|
31
30
|
/* @__PURE__ */ n(
|
|
32
31
|
P,
|
|
@@ -45,7 +44,7 @@ const z = ({
|
|
|
45
44
|
}
|
|
46
45
|
)
|
|
47
46
|
] }),
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ c("div", { className: "space-x-2", children: [
|
|
49
48
|
/* @__PURE__ */ n(
|
|
50
49
|
i,
|
|
51
50
|
{
|
|
@@ -56,7 +55,7 @@ const z = ({
|
|
|
56
55
|
children: u
|
|
57
56
|
}
|
|
58
57
|
),
|
|
59
|
-
/* @__PURE__ */ n("span", { className: "text-sm", children: `${x} ${
|
|
58
|
+
/* @__PURE__ */ n("span", { className: "text-sm", children: `${x} ${r} ${h} ${o}` }),
|
|
60
59
|
/* @__PURE__ */ n(
|
|
61
60
|
i,
|
|
62
61
|
{
|
|
@@ -71,5 +70,5 @@ const z = ({
|
|
|
71
70
|
] });
|
|
72
71
|
};
|
|
73
72
|
export {
|
|
74
|
-
|
|
73
|
+
y as TablePagination
|
|
75
74
|
};
|
package/Textarea/Textarea.mjs
CHANGED
|
@@ -1,7 +1,74 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as u, Fragment as h, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import { useId as w, useRef as z, useState as A, useImperativeHandle as N, useEffect as y } from "react";
|
|
4
|
+
import { cn as d } from "@oneplatformdev/utils";
|
|
5
|
+
import { useAutosizeTextArea as S } from "./useAutosizeTextArea.mjs";
|
|
6
|
+
const T = v.forwardRef(
|
|
7
|
+
(m, c) => {
|
|
8
|
+
const {
|
|
9
|
+
className: f,
|
|
10
|
+
value: r = "",
|
|
11
|
+
maxHeight: i = Number.MAX_SAFE_INTEGER,
|
|
12
|
+
minHeight: o = 0,
|
|
13
|
+
resizeble: g = !0,
|
|
14
|
+
counter: s = !1,
|
|
15
|
+
id: n = "",
|
|
16
|
+
...e
|
|
17
|
+
} = m, a = w(), t = z(null), [x, b] = A("");
|
|
18
|
+
return S({
|
|
19
|
+
textAreaRef: t,
|
|
20
|
+
triggerAutoSize: x,
|
|
21
|
+
maxHeight: i,
|
|
22
|
+
minHeight: o
|
|
23
|
+
}), N(c, () => ({
|
|
24
|
+
...t.current ?? {},
|
|
25
|
+
textArea: t.current,
|
|
26
|
+
focus: () => {
|
|
27
|
+
var l;
|
|
28
|
+
return (l = t == null ? void 0 : t.current) == null ? void 0 : l.focus();
|
|
29
|
+
},
|
|
30
|
+
maxHeight: i,
|
|
31
|
+
minHeight: o
|
|
32
|
+
})), y(() => {
|
|
33
|
+
b(r);
|
|
34
|
+
}, [e == null ? void 0 : e.defaultValue, r]), /* @__PURE__ */ u(h, { children: [
|
|
35
|
+
/* @__PURE__ */ p(
|
|
36
|
+
"textarea",
|
|
37
|
+
{
|
|
38
|
+
id: n || a,
|
|
39
|
+
...e,
|
|
40
|
+
ref: t,
|
|
41
|
+
value: r,
|
|
42
|
+
className: d(
|
|
43
|
+
"flex min-h-10 w-full px-3 py-2 text-base relative",
|
|
44
|
+
"rounded-md border border-input bg-transparent shadow-sm",
|
|
45
|
+
"placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
46
|
+
g ? "resize" : "resize-none !overflow-hidden",
|
|
47
|
+
s && "pb-2",
|
|
48
|
+
f
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
s && /* @__PURE__ */ u(
|
|
53
|
+
"label",
|
|
54
|
+
{
|
|
55
|
+
htmlFor: n || a,
|
|
56
|
+
className: d(
|
|
57
|
+
"w-full text-right inline-flex items-center justify-end",
|
|
58
|
+
"text-sm font-normal text-muted-foreground",
|
|
59
|
+
"leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
60
|
+
),
|
|
61
|
+
children: [
|
|
62
|
+
String(r || "").length,
|
|
63
|
+
" / ",
|
|
64
|
+
e == null ? void 0 : e.maxLength
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] });
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
T.displayName = "Textarea";
|
|
5
72
|
export {
|
|
6
|
-
|
|
73
|
+
T as Textarea
|
|
7
74
|
};
|
package/Textarea/index.mjs
CHANGED
|
@@ -1,67 +1,20 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import "../Calendar/Calendar.mjs";
|
|
19
|
-
import "../Card/Card.mjs";
|
|
20
|
-
import "../Carousel/Carousel.mjs";
|
|
21
|
-
import "../Checkbox/Checkbox.mjs";
|
|
22
|
-
import "@radix-ui/react-collapsible";
|
|
23
|
-
import "../Combobox/Combobox.mjs";
|
|
24
|
-
import "../Command/Command.mjs";
|
|
25
|
-
import "../DropdownMenu/DropdownMenu.mjs";
|
|
26
|
-
import "../Table/Table.mjs";
|
|
27
|
-
import "@tanstack/react-table";
|
|
28
|
-
import "lucide-react";
|
|
29
|
-
import "../DatePicker/DatePicker.mjs";
|
|
30
|
-
import "../Dialog/Dialog.mjs";
|
|
31
|
-
import "../Drawer/Drawer.mjs";
|
|
32
|
-
import "../Form/Form.mjs";
|
|
33
|
-
import "react-hook-form";
|
|
34
|
-
import "../Input/Input.mjs";
|
|
35
|
-
import "../Select/SelectRoot.mjs";
|
|
36
|
-
import { u as Ao } from "../Textarea-D1CCXy7E.js";
|
|
37
|
-
import "../Separator/Separator.mjs";
|
|
38
|
-
import "../HoverCard/HoverCard.mjs";
|
|
39
|
-
import "../InputOTP/InputOTP.mjs";
|
|
40
|
-
import "../Label/Label.mjs";
|
|
41
|
-
import "../Label/labelVariants.mjs";
|
|
42
|
-
import "../LoadingMask/RenderLoadingMask.mjs";
|
|
43
|
-
import "../LoadingProgress/loadingProgressVariants.mjs";
|
|
44
|
-
import "../Menubar/Menubar.mjs";
|
|
45
|
-
import "../NavigationMenu/NavigationMenu.mjs";
|
|
46
|
-
import "../NavigationMenu/navigationMenuVariants.mjs";
|
|
47
|
-
import "../Pagination/Pagination.mjs";
|
|
48
|
-
import "../Popover/Popover.mjs";
|
|
49
|
-
import "../Progress/Progress.mjs";
|
|
50
|
-
import "../RadioGroup/RadioGroup.mjs";
|
|
51
|
-
import "react-resizable-panels";
|
|
52
|
-
import "../ScrollArea/ScrollArea.mjs";
|
|
53
|
-
import "@oneplatformdev/hooks";
|
|
54
|
-
import "../Sheet/Sheet.mjs";
|
|
55
|
-
import "../Slider/Slider.mjs";
|
|
56
|
-
import "next-themes";
|
|
57
|
-
import "sonner";
|
|
58
|
-
import "../Switch/Switch.mjs";
|
|
59
|
-
import "../Tabs/TabsRoot.mjs";
|
|
60
|
-
import "../Toast/Toast.mjs";
|
|
61
|
-
import "../Toggle/Toggle.mjs";
|
|
62
|
-
import "../ToggleGroup/ToggleGroup.mjs";
|
|
63
|
-
import "../Tooltip/TooltipRoot.mjs";
|
|
64
|
-
import "../Dropzone/Dropzone.mjs";
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
const u = ({
|
|
3
|
+
textAreaRef: r,
|
|
4
|
+
triggerAutoSize: l,
|
|
5
|
+
maxHeight: t = Number.MAX_SAFE_INTEGER,
|
|
6
|
+
minHeight: s = 0
|
|
7
|
+
}) => {
|
|
8
|
+
const [c, i] = f.useState(!0);
|
|
9
|
+
f.useEffect(() => {
|
|
10
|
+
const e = r.current;
|
|
11
|
+
if (e) {
|
|
12
|
+
c && (e.style.minHeight = `${s + 0}px`, t > s && (e.style.maxHeight = `${t}px`), i(!1)), e.style.height = `${s + 0}px`;
|
|
13
|
+
const o = e.scrollHeight;
|
|
14
|
+
o > t ? e.style.height = `${t}px` : e.style.height = `${o + 0}px`;
|
|
15
|
+
}
|
|
16
|
+
}, [r.current, l]);
|
|
17
|
+
};
|
|
65
18
|
export {
|
|
66
|
-
|
|
19
|
+
u as useAutosizeTextArea
|
|
67
20
|
};
|
package/Theme/ThemeProvider.mjs
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "react";
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
2
|
import { ThemeProvider as n } from "next-themes";
|
|
4
|
-
function
|
|
3
|
+
function h(e) {
|
|
5
4
|
const {
|
|
6
5
|
children: r,
|
|
7
6
|
attribute: t = "class",
|
|
8
|
-
defaultTheme:
|
|
9
|
-
enableSystem:
|
|
10
|
-
disableTransitionOnChange:
|
|
11
|
-
...
|
|
7
|
+
defaultTheme: s = "system",
|
|
8
|
+
enableSystem: i = !0,
|
|
9
|
+
disableTransitionOnChange: o = !0,
|
|
10
|
+
...a
|
|
12
11
|
} = e;
|
|
13
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ m(
|
|
14
13
|
n,
|
|
15
14
|
{
|
|
16
15
|
attribute: t,
|
|
17
|
-
defaultTheme:
|
|
18
|
-
enableSystem:
|
|
19
|
-
disableTransitionOnChange:
|
|
20
|
-
...
|
|
16
|
+
defaultTheme: s,
|
|
17
|
+
enableSystem: i,
|
|
18
|
+
disableTransitionOnChange: o,
|
|
19
|
+
...a,
|
|
21
20
|
children: r
|
|
22
21
|
}
|
|
23
22
|
);
|
|
24
23
|
}
|
|
25
24
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
h as ThemeProvider,
|
|
26
|
+
h as default
|
|
28
27
|
};
|
package/Toast/Toast.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-toast";
|
|
4
|
-
import "class-variance-authority";
|
|
5
4
|
import { X as c } from "lucide-react";
|
|
6
5
|
import { cn as a } from "@oneplatformdev/utils";
|
|
7
6
|
import { toastVariants as n } from "./toastVariants.mjs";
|
|
8
|
-
const
|
|
7
|
+
const h = e.Provider, m = i.forwardRef(({ className: o, ...t }, r) => /* @__PURE__ */ s(
|
|
9
8
|
e.Viewport,
|
|
10
9
|
{
|
|
11
10
|
ref: r,
|
|
@@ -75,7 +74,7 @@ export {
|
|
|
75
74
|
u as ToastAction,
|
|
76
75
|
l as ToastClose,
|
|
77
76
|
v as ToastDescription,
|
|
78
|
-
|
|
77
|
+
h as ToastProvider,
|
|
79
78
|
f as ToastTitle,
|
|
80
79
|
m as ToastViewport
|
|
81
80
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-toggle-group";
|
|
4
|
-
import "class-variance-authority";
|
|
5
4
|
import { cn as p } from "@oneplatformdev/utils";
|
|
6
5
|
import { toggleVariants as f } from "../Toggle/Toggle.mjs";
|
|
7
6
|
const c = e.createContext({
|
|
8
7
|
size: "default",
|
|
9
8
|
variant: "default"
|
|
10
|
-
}), g = e.forwardRef(({ className: o, variant: r, size: a, children: i, ...
|
|
9
|
+
}), g = e.forwardRef(({ className: o, variant: r, size: a, children: i, ...s }, m) => /* @__PURE__ */ n(
|
|
11
10
|
t.Root,
|
|
12
11
|
{
|
|
13
|
-
ref:
|
|
12
|
+
ref: m,
|
|
14
13
|
className: p("flex items-center justify-center gap-1", o),
|
|
15
|
-
...
|
|
14
|
+
...s,
|
|
16
15
|
children: /* @__PURE__ */ n(c.Provider, { value: { variant: r, size: a }, children: i })
|
|
17
16
|
}
|
|
18
17
|
));
|
|
19
18
|
g.displayName = t.Root.displayName;
|
|
20
|
-
const d = e.forwardRef(({ className: o, children: r, variant: a, size: i, ...
|
|
19
|
+
const d = e.forwardRef(({ className: o, children: r, variant: a, size: i, ...s }, m) => {
|
|
21
20
|
const l = e.useContext(c);
|
|
22
21
|
return /* @__PURE__ */ n(
|
|
23
22
|
t.Item,
|
|
24
23
|
{
|
|
25
|
-
ref:
|
|
24
|
+
ref: m,
|
|
26
25
|
className: p(
|
|
27
26
|
f({
|
|
28
27
|
variant: l.variant || a,
|
|
@@ -30,7 +29,7 @@ const d = e.forwardRef(({ className: o, children: r, variant: a, size: i, ...m }
|
|
|
30
29
|
}),
|
|
31
30
|
o
|
|
32
31
|
),
|
|
33
|
-
...
|
|
32
|
+
...s,
|
|
34
33
|
children: r
|
|
35
34
|
}
|
|
36
35
|
);
|
package/Tooltip/Tooltip.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
2
|
import { TooltipProvider as a, TooltipRoot as c, TooltipTrigger as d, TooltipContent as p } from "./TooltipRoot.mjs";
|
|
4
|
-
const
|
|
3
|
+
const m = (r) => {
|
|
5
4
|
const { trigger: t, children: e, message: i = "", delay: l = 100, ...n } = r;
|
|
6
5
|
return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ s(c, { delayDuration: l, ...n, children: [
|
|
7
6
|
/* @__PURE__ */ o(d, { asChild: !0, children: t || e }),
|
|
@@ -9,5 +8,5 @@ const T = (r) => {
|
|
|
9
8
|
] }) });
|
|
10
9
|
};
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
m as Tooltip
|
|
13
12
|
};
|
package/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ import { Switch as Na } from "./Switch/Switch.mjs";
|
|
|
68
68
|
import { Table as ya, TableBody as Ea, TableCaption as Oa, TableCell as za, TableFooter as _a, TableHead as Ua, TableHeader as Ya, TableRow as ja } from "./Table/Table.mjs";
|
|
69
69
|
import { TabsContent as Ja, TabsList as Ka, TabsRoot as Qa, TabsTrigger as Wa } from "./Tabs/TabsRoot.mjs";
|
|
70
70
|
import { TabRender as Za, Tabs as $a } from "./Tabs/Tabs.mjs";
|
|
71
|
-
import {
|
|
71
|
+
import { Textarea as rn } from "./Textarea/Textarea.mjs";
|
|
72
72
|
import { ThemeProvider as tn } from "./Theme/ThemeProvider.mjs";
|
|
73
73
|
import { ThemeModeToggle as nn } from "./Theme/ThemeModeToggle.mjs";
|
|
74
74
|
import { Toast as ln, ToastAction as mn, ToastClose as un, ToastDescription as dn, ToastProvider as bn, ToastTitle as gn, ToastViewport as xn } from "./Toast/Toast.mjs";
|
|
@@ -79,7 +79,7 @@ import { ToggleGroup as wn, ToggleGroupItem as hn } from "./ToggleGroup/ToggleGr
|
|
|
79
79
|
import { TooltipContent as Fn, TooltipProvider as Ln, TooltipRoot as Rn, TooltipTrigger as Bn } from "./Tooltip/TooltipRoot.mjs";
|
|
80
80
|
import { Tooltip as kn } from "./Tooltip/Tooltip.mjs";
|
|
81
81
|
import { Dropzone as Nn } from "./Dropzone/Dropzone.mjs";
|
|
82
|
-
import { D as yn, a as En } from "./DropzoneFilePreview-
|
|
82
|
+
import { D as yn, a as En } from "./DropzoneFilePreview-Dhtv8F4u.js";
|
|
83
83
|
import { FormDropzone as zn } from "./FormDropzone/FormDropzone.mjs";
|
|
84
84
|
import { TablePagination as Un } from "./TablePagination/TablePagination.mjs";
|
|
85
85
|
export {
|