@oneplatformdev/ui 0.0.1-beta.73 → 0.0.1-beta.74

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.
@@ -1,2 +1,2 @@
1
1
  export * from './Checkbox';
2
- export type * from './Checkbox.types.ts';
2
+ export type * from './Checkbox.types';
@@ -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-B16Ne2a8.js";
12
+ import { C as c } from "../Combobox-E9X4tg-I.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 fo } from "../Combobox-B16Ne2a8.js";
23
+ import { a as no } from "../Combobox-E9X4tg-I.js";
24
24
  import "../Command/Command.mjs";
25
25
  import "../DropdownMenu/DropdownMenu.mjs";
26
26
  import "../Table/Table.mjs";
@@ -30,11 +30,12 @@ import "../DatePicker/DatePicker.mjs";
30
30
  import "../Dialog/Dialog.mjs";
31
31
  import "../Drawer/Drawer.mjs";
32
32
  import "../Form/Form.mjs";
33
- import "../Input/Input.mjs";
33
+ import "../FormInput/FormInput.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";
38
39
  import "../InputOTP/InputOTP.mjs";
39
40
  import "../Label/Label.mjs";
40
41
  import "../Label/labelVariants.mjs";
@@ -62,5 +63,5 @@ import "../ToggleGroup/ToggleGroup.mjs";
62
63
  import "../Tooltip/TooltipRoot.mjs";
63
64
  import "../Dropzone/Dropzone.mjs";
64
65
  export {
65
- fo as ComboboxOptionItem
66
+ no as ComboboxOptionItem
66
67
  };
@@ -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-B16Ne2a8.js";
6
+ import { c as a, b as e } from "../Combobox-E9X4tg-I.js";
7
7
  import "lucide-react";
8
8
  import "@oneplatformdev/utils";
9
9
  export {
@@ -1,4 +1,4 @@
1
- import { C as m } from "../Combobox-B16Ne2a8.js";
1
+ import { C as m } from "../Combobox-E9X4tg-I.js";
2
2
  export {
3
3
  m as Combobox
4
4
  };
@@ -34,11 +34,12 @@ import "./DatePicker/DatePicker.mjs";
34
34
  import "./Dialog/Dialog.mjs";
35
35
  import "./Drawer/Drawer.mjs";
36
36
  import "./Form/Form.mjs";
37
- import "./Input/Input.mjs";
37
+ import "./FormInput/FormInput.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";
42
43
  import "./InputOTP/InputOTP.mjs";
43
44
  import "./Label/Label.mjs";
44
45
  import "./Label/labelVariants.mjs";
@@ -136,14 +137,22 @@ const ce = 8, I = w((i, l) => {
136
137
  ]
137
138
  }
138
139
  ) }) }),
139
- /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-0", children: t == null ? void 0 : t.items.map((a) => /* @__PURE__ */ e(M, { ...i, deep: n + 1, option: a })) }) })
140
+ /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-0", children: t == null ? void 0 : t.items.map((a) => /* @__PURE__ */ e(
141
+ M,
142
+ {
143
+ ...i,
144
+ deep: n + 1,
145
+ option: a
146
+ },
147
+ t.value
148
+ )) }) })
140
149
  ]
141
150
  }
142
151
  ) : /* @__PURE__ */ e(I, { ...i, ref: l });
143
152
  }), de = w((i, l) => {
144
153
  const { options: t = [], ...d } = i;
145
154
  return /* @__PURE__ */ e("div", { ref: l, className: "flex flex-col gap-0", children: t.map((r) => /* @__PURE__ */ e(M, { ...d, option: r }, r.value)) });
146
- }), Nt = w(
155
+ }), St = w(
147
156
  (i, l) => {
148
157
  var j;
149
158
  const {
@@ -285,7 +294,7 @@ const ce = 8, I = w((i, l) => {
285
294
  }
286
295
  );
287
296
  export {
288
- Nt as C,
297
+ St as C,
289
298
  I as a,
290
299
  M as b,
291
300
  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-B16Ne2a8.js";
4
+ import { C as p } from "../Combobox-E9X4tg-I.js";
5
5
  const x = (m) => {
6
6
  const { form: n, label: e, name: t, ...C } = m;
7
7
  return /* @__PURE__ */ o(
@@ -1,4 +1,7 @@
1
+ import { ReactElement, Ref } from 'react';
1
2
  import { FieldValues } from 'react-hook-form';
2
3
  import { FormInputProps } from './FormInput.types';
3
4
 
4
- export declare const FormInput: <Data extends FieldValues>(props: FormInputProps<Data>) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const FormInput: <Data extends FieldValues>(props: FormInputProps<Data> & {
6
+ ref?: Ref<HTMLInputElement>;
7
+ }) => ReactElement;
@@ -1,20 +1,23 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { FormControl as F } from "../Form/Form.mjs";
2
+ import { FormControl as C } from "../Form/Form.mjs";
3
3
  import { FormRenderControl as h } from "../Form/FormRenderControl.mjs";
4
4
  import { Input as v } from "../Input/Input.mjs";
5
- const g = (u) => {
6
- const { form: a, label: c, name: s, onChange: m, onBlur: t, ...C } = u;
5
+ import { forwardRef as x } from "react";
6
+ function R(u, a) {
7
+ const { form: c, label: e, name: s, onChange: m, onBlur: t, style: F, ...I } = u;
7
8
  return /* @__PURE__ */ p(
8
9
  h,
9
10
  {
10
- form: a,
11
+ form: c,
11
12
  name: s,
12
- label: c,
13
- render: ({ field: r }) => /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
13
+ label: e,
14
+ render: ({ field: r }) => /* @__PURE__ */ p(C, { children: /* @__PURE__ */ p(
14
15
  v,
15
16
  {
16
17
  ...r,
17
- ...C,
18
+ ...I,
19
+ ref: a,
20
+ style: F,
18
21
  value: r.value || "",
19
22
  onChange: (...n) => {
20
23
  var o;
@@ -28,7 +31,8 @@ const g = (u) => {
28
31
  ) })
29
32
  }
30
33
  );
31
- };
34
+ }
35
+ const B = x(R);
32
36
  export {
33
- g as FormInput
37
+ B as FormInput
34
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-B16Ne2a8.js";
23
+ import { C as Go } from "./Combobox-E9X4tg-I.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.0.1-beta.73",
3
+ "version": "0.0.1-beta.74",
4
4
  "description": "UI React Components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [