@oneplatformdev/ui 0.0.1-beta.67 → 0.0.1-beta.68
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 +7 -6
- package/AreaChart/AreaChart.mjs +5 -4
- package/Badge/Badge.mjs +7 -6
- package/Calendar/Calendar.mjs +1 -0
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.types.d.ts +3 -3
- package/Command/Command.mjs +3 -2
- package/DataTable/DataTable.mjs +16 -15
- package/Dropzone/Dropzone.mjs +1 -1
- package/Dropzone/DropzoneFilePreview.mjs +1 -1
- package/Dropzone/index.mjs +1 -1
- package/{DropzoneFilePreview-Dhtv8F4u.js → DropzoneFilePreview-C-SoCoO0.js} +16 -15
- package/Form/Form.mjs +5 -4
- package/Form/FormRenderControl.mjs +7 -6
- package/FormCheckbox/FormCheckbox.mjs +10 -9
- package/FormCombobox/FormCombobox.mjs +13 -12
- package/FormDatePicker/FormDatePicker.mjs +7 -6
- package/FormDropzone/FormDropzone.mjs +7 -6
- package/FormInput/FormInput.mjs +7 -6
- package/FormRadio/FormRadio.mjs +11 -10
- package/FormSelect/FormSelect.mjs +6 -5
- package/FormTextarea/FormTextarea.mjs +10 -9
- package/Header/Header.mjs +7 -6
- package/Label/Label.mjs +7 -6
- package/LoadingMask/LoadingMask.mjs +7 -6
- package/LoadingProgress/LoadingProgress.mjs +3 -2
- package/Radio/Radio.mjs +8 -7
- package/Skeleton/Skeleton.mjs +9 -8
- package/TablePagination/TablePagination.mjs +9 -8
- package/Textarea/Textarea.mjs +5 -72
- package/Textarea/index.mjs +2 -2
- package/Textarea/useAutosizeTextArea.mjs +65 -18
- package/Textarea-D1CCXy7E.js +149 -0
- package/Theme/ThemeProvider.mjs +14 -13
- package/Toast/Toast.mjs +3 -2
- package/ToggleGroup/ToggleGroup.mjs +7 -6
- package/Tooltip/Tooltip.mjs +3 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
@@ -1,27 +1,28 @@
|
|
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";
|
4
5
|
import { cn as p } from "@oneplatformdev/utils";
|
5
6
|
import { toggleVariants as f } from "../Toggle/Toggle.mjs";
|
6
7
|
const c = e.createContext({
|
7
8
|
size: "default",
|
8
9
|
variant: "default"
|
9
|
-
}), g = e.forwardRef(({ className: o, variant: r, size: a, children: i, ...
|
10
|
+
}), g = e.forwardRef(({ className: o, variant: r, size: a, children: i, ...m }, s) => /* @__PURE__ */ n(
|
10
11
|
t.Root,
|
11
12
|
{
|
12
|
-
ref:
|
13
|
+
ref: s,
|
13
14
|
className: p("flex items-center justify-center gap-1", o),
|
14
|
-
...
|
15
|
+
...m,
|
15
16
|
children: /* @__PURE__ */ n(c.Provider, { value: { variant: r, size: a }, children: i })
|
16
17
|
}
|
17
18
|
));
|
18
19
|
g.displayName = t.Root.displayName;
|
19
|
-
const d = e.forwardRef(({ className: o, children: r, variant: a, size: i, ...
|
20
|
+
const d = e.forwardRef(({ className: o, children: r, variant: a, size: i, ...m }, s) => {
|
20
21
|
const l = e.useContext(c);
|
21
22
|
return /* @__PURE__ */ n(
|
22
23
|
t.Item,
|
23
24
|
{
|
24
|
-
ref:
|
25
|
+
ref: s,
|
25
26
|
className: p(
|
26
27
|
f({
|
27
28
|
variant: l.variant || a,
|
@@ -29,7 +30,7 @@ const d = e.forwardRef(({ className: o, children: r, variant: a, size: i, ...s }
|
|
29
30
|
}),
|
30
31
|
o
|
31
32
|
),
|
32
|
-
...
|
33
|
+
...m,
|
33
34
|
children: r
|
34
35
|
}
|
35
36
|
);
|
package/Tooltip/Tooltip.mjs
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
2
|
+
import "react";
|
2
3
|
import { TooltipProvider as a, TooltipRoot as c, TooltipTrigger as d, TooltipContent as p } from "./TooltipRoot.mjs";
|
3
|
-
const
|
4
|
+
const T = (r) => {
|
4
5
|
const { trigger: t, children: e, message: i = "", delay: l = 100, ...n } = r;
|
5
6
|
return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ s(c, { delayDuration: l, ...n, children: [
|
6
7
|
/* @__PURE__ */ o(d, { asChild: !0, children: t || e }),
|
@@ -8,5 +9,5 @@ const m = (r) => {
|
|
8
9
|
] }) });
|
9
10
|
};
|
10
11
|
export {
|
11
|
-
|
12
|
+
T as Tooltip
|
12
13
|
};
|
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 { T as rn } from "./Textarea-D1CCXy7E.js";
|
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-C-SoCoO0.js";
|
83
83
|
import { FormDropzone as zn } from "./FormDropzone/FormDropzone.mjs";
|
84
84
|
import { TablePagination as Un } from "./TablePagination/TablePagination.mjs";
|
85
85
|
export {
|