@oneplatformdev/ui 0.0.1-beta.77 → 0.0.1-beta.78
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/Combobox/Combobox.mjs +1 -1
- package/Combobox/ComboboxOptionItem.mjs +3 -4
- package/Combobox/ComboboxOptions.mjs +1 -1
- package/Combobox/index.mjs +1 -1
- package/{Combobox-E9X4tg-I.js → Combobox-BtUYfFXh.js} +3 -4
- package/FormCombobox/FormCombobox.mjs +1 -1
- package/FormInput/FormInput.d.ts +3 -3
- package/FormInput/FormInput.mjs +15 -17
- package/index.mjs +1 -1
- package/package.json +1 -1
package/Combobox/Combobox.mjs
CHANGED
@@ -9,7 +9,7 @@ import "../Command/Command.mjs";
|
|
9
9
|
import "@oneplatformdev/utils";
|
10
10
|
import "@oneplatformdev/hooks";
|
11
11
|
import "lucide-react";
|
12
|
-
import { C as c } from "../Combobox-
|
12
|
+
import { C as c } from "../Combobox-BtUYfFXh.js";
|
13
13
|
export {
|
14
14
|
c as Combobox
|
15
15
|
};
|
@@ -20,7 +20,7 @@ import "../Card/Card.mjs";
|
|
20
20
|
import "../Carousel/Carousel.mjs";
|
21
21
|
import "../Checkbox/Checkbox.mjs";
|
22
22
|
import "@radix-ui/react-collapsible";
|
23
|
-
import { a as
|
23
|
+
import { a as fo } from "../Combobox-BtUYfFXh.js";
|
24
24
|
import "../Command/Command.mjs";
|
25
25
|
import "../DropdownMenu/DropdownMenu.mjs";
|
26
26
|
import "../Table/Table.mjs";
|
@@ -30,12 +30,11 @@ import "../DatePicker/DatePicker.mjs";
|
|
30
30
|
import "../Dialog/Dialog.mjs";
|
31
31
|
import "../Drawer/Drawer.mjs";
|
32
32
|
import "../Form/Form.mjs";
|
33
|
-
import "../
|
33
|
+
import "../Input/Input.mjs";
|
34
34
|
import "../Select/SelectRoot.mjs";
|
35
35
|
import "../Textarea/Textarea.mjs";
|
36
36
|
import "../Separator/Separator.mjs";
|
37
37
|
import "../HoverCard/HoverCard.mjs";
|
38
|
-
import "../Input/Input.mjs";
|
39
38
|
import "../InputOTP/InputOTP.mjs";
|
40
39
|
import "../Label/Label.mjs";
|
41
40
|
import "../Label/labelVariants.mjs";
|
@@ -63,5 +62,5 @@ import "../ToggleGroup/ToggleGroup.mjs";
|
|
63
62
|
import "../Tooltip/TooltipRoot.mjs";
|
64
63
|
import "../Dropzone/Dropzone.mjs";
|
65
64
|
export {
|
66
|
-
|
65
|
+
fo as ComboboxOptionItem
|
67
66
|
};
|
@@ -3,7 +3,7 @@ import "../Button/Button.mjs";
|
|
3
3
|
import "../Button/buttonVariants.mjs";
|
4
4
|
import "react";
|
5
5
|
import "../Collapsible/Collapsible.mjs";
|
6
|
-
import { c as a, b as e } from "../Combobox-
|
6
|
+
import { c as a, b as e } from "../Combobox-BtUYfFXh.js";
|
7
7
|
import "lucide-react";
|
8
8
|
import "@oneplatformdev/utils";
|
9
9
|
export {
|
package/Combobox/index.mjs
CHANGED
@@ -34,12 +34,11 @@ import "./DatePicker/DatePicker.mjs";
|
|
34
34
|
import "./Dialog/Dialog.mjs";
|
35
35
|
import "./Drawer/Drawer.mjs";
|
36
36
|
import "./Form/Form.mjs";
|
37
|
-
import "./
|
37
|
+
import "./Input/Input.mjs";
|
38
38
|
import "./Select/SelectRoot.mjs";
|
39
39
|
import "./Textarea/Textarea.mjs";
|
40
40
|
import "./Separator/Separator.mjs";
|
41
41
|
import "./HoverCard/HoverCard.mjs";
|
42
|
-
import "./Input/Input.mjs";
|
43
42
|
import "./InputOTP/InputOTP.mjs";
|
44
43
|
import "./Label/Label.mjs";
|
45
44
|
import "./Label/labelVariants.mjs";
|
@@ -152,7 +151,7 @@ const ce = 8, I = w((i, l) => {
|
|
152
151
|
}), de = w((i, l) => {
|
153
152
|
const { options: t = [], ...d } = i;
|
154
153
|
return /* @__PURE__ */ e("div", { ref: l, className: "flex flex-col gap-0", children: t.map((r) => /* @__PURE__ */ e(M, { ...d, option: r }, r.value)) });
|
155
|
-
}),
|
154
|
+
}), Nt = w(
|
156
155
|
(i, l) => {
|
157
156
|
var j;
|
158
157
|
const {
|
@@ -294,7 +293,7 @@ const ce = 8, I = w((i, l) => {
|
|
294
293
|
}
|
295
294
|
);
|
296
295
|
export {
|
297
|
-
|
296
|
+
Nt as C,
|
298
297
|
I as a,
|
299
298
|
M as b,
|
300
299
|
de as c
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
2
2
|
import { FormControl as a } from "../Form/Form.mjs";
|
3
3
|
import { FormRenderControl as b } from "../Form/FormRenderControl.mjs";
|
4
|
-
import { C as p } from "../Combobox-
|
4
|
+
import { C as p } from "../Combobox-BtUYfFXh.js";
|
5
5
|
const x = (m) => {
|
6
6
|
const { form: n, label: e, name: t, ...C } = m;
|
7
7
|
return /* @__PURE__ */ o(
|
package/FormInput/FormInput.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { Ref } from 'react';
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
3
3
|
import { FormInputProps } from './FormInput.types';
|
4
4
|
|
5
5
|
export declare const FormInput: <Data extends FieldValues>(props: FormInputProps<Data> & {
|
6
|
-
|
7
|
-
}) =>
|
6
|
+
inputRef?: Ref<HTMLInputElement>;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/FormInput/FormInput.mjs
CHANGED
@@ -1,25 +1,24 @@
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
2
|
-
import { FormControl as
|
3
|
-
import { FormRenderControl as
|
4
|
-
import { Input as
|
5
|
-
|
6
|
-
|
7
|
-
const { form: c, label: s, name: e, onChange: m, onBlur: p, style: F, ...I } = a;
|
2
|
+
import { FormControl as h } from "../Form/Form.mjs";
|
3
|
+
import { FormRenderControl as v } from "../Form/FormRenderControl.mjs";
|
4
|
+
import { Input as x } from "../Input/Input.mjs";
|
5
|
+
const g = (e) => {
|
6
|
+
const { inputRef: t, form: a, label: c, name: s, onChange: m, onBlur: p, style: C, ...F } = e;
|
8
7
|
return /* @__PURE__ */ u(
|
9
|
-
|
8
|
+
v,
|
10
9
|
{
|
11
|
-
form:
|
12
|
-
name:
|
13
|
-
label:
|
14
|
-
render: ({ field: r }) => /* @__PURE__ */ u(
|
15
|
-
|
10
|
+
form: a,
|
11
|
+
name: s,
|
12
|
+
label: c,
|
13
|
+
render: ({ field: r }) => /* @__PURE__ */ u(h, { children: /* @__PURE__ */ u(
|
14
|
+
x,
|
16
15
|
{
|
17
16
|
...r,
|
18
|
-
...
|
17
|
+
...F,
|
19
18
|
ref: (o) => {
|
20
19
|
r.ref(o), typeof t == "function" ? t(o) : t && (t.current = o);
|
21
20
|
},
|
22
|
-
style:
|
21
|
+
style: C,
|
23
22
|
value: r.value || "",
|
24
23
|
onChange: (...o) => {
|
25
24
|
var n;
|
@@ -33,8 +32,7 @@ function y(a, t) {
|
|
33
32
|
) })
|
34
33
|
}
|
35
34
|
);
|
36
|
-
}
|
37
|
-
const B = x(y);
|
35
|
+
};
|
38
36
|
export {
|
39
|
-
|
37
|
+
g as FormInput
|
40
38
|
};
|
package/index.mjs
CHANGED
@@ -20,7 +20,7 @@ import { Carousel as go, CarouselContent as xo, CarouselItem as fo, CarouselNext
|
|
20
20
|
import { ChartContainer as To, ChartLegend as Do, ChartLegendContent as co, ChartStyle as Mo, ChartTooltip as Po, ChartTooltipContent as Ao } from "./Chart/Chart.mjs";
|
21
21
|
import { Checkbox as wo, CheckboxLabel as ho } from "./Checkbox/Checkbox.mjs";
|
22
22
|
import { Collapsible as Fo, CollapsibleContent as Lo, CollapsibleTrigger as Ro } from "./Collapsible/Collapsible.mjs";
|
23
|
-
import { C as Go } from "./Combobox-
|
23
|
+
import { C as Go } from "./Combobox-BtUYfFXh.js";
|
24
24
|
import { Command as Ho, CommandDialog as No, CommandEmpty as Vo, CommandGroup as yo, CommandInput as Eo, CommandItem as Oo, CommandList as zo, CommandSeparator as _o, CommandShortcut as Uo } from "./Command/Command.mjs";
|
25
25
|
import { DataTable as jo } from "./DataTable/DataTable.mjs";
|
26
26
|
import { DatePicker as Jo } from "./DatePicker/DatePicker.mjs";
|