@oneplatformdev/ui 0.0.1-beta.78 → 0.0.1-beta.79

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.
@@ -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-BtUYfFXh.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-BtUYfFXh.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-BtUYfFXh.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-BtUYfFXh.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";
@@ -151,7 +152,7 @@ const ce = 8, I = w((i, l) => {
151
152
  }), de = w((i, l) => {
152
153
  const { options: t = [], ...d } = i;
153
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)) });
154
- }), Nt = w(
155
+ }), St = w(
155
156
  (i, l) => {
156
157
  var j;
157
158
  const {
@@ -293,7 +294,7 @@ const ce = 8, I = w((i, l) => {
293
294
  }
294
295
  );
295
296
  export {
296
- Nt as C,
297
+ St as C,
297
298
  I as a,
298
299
  M as b,
299
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-BtUYfFXh.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,7 +1,7 @@
1
- import { Ref } from 'react';
1
+ import { ReactElement, 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
- inputRef?: Ref<HTMLInputElement>;
7
- }) => import("react/jsx-runtime").JSX.Element;
6
+ ref?: Ref<HTMLInputElement>;
7
+ }) => ReactElement;
@@ -1,24 +1,25 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
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;
2
+ import { FormControl as C } from "../Form/Form.mjs";
3
+ import { FormRenderControl as h } from "../Form/FormRenderControl.mjs";
4
+ import { Input as v } from "../Input/Input.mjs";
5
+ import { forwardRef as x } from "react";
6
+ function y(a, t) {
7
+ const { form: c, label: s, name: e, onChange: m, onBlur: p, style: F, ...I } = a;
7
8
  return /* @__PURE__ */ u(
8
- v,
9
+ h,
9
10
  {
10
- form: a,
11
- name: s,
12
- label: c,
13
- render: ({ field: r }) => /* @__PURE__ */ u(h, { children: /* @__PURE__ */ u(
14
- x,
11
+ form: c,
12
+ name: e,
13
+ label: s,
14
+ render: ({ field: r }) => /* @__PURE__ */ u(C, { children: /* @__PURE__ */ u(
15
+ v,
15
16
  {
16
17
  ...r,
17
- ...F,
18
+ ...I,
18
19
  ref: (o) => {
19
20
  r.ref(o), typeof t == "function" ? t(o) : t && (t.current = o);
20
21
  },
21
- style: C,
22
+ style: F,
22
23
  value: r.value || "",
23
24
  onChange: (...o) => {
24
25
  var n;
@@ -32,7 +33,8 @@ const g = (e) => {
32
33
  ) })
33
34
  }
34
35
  );
35
- };
36
+ }
37
+ const B = x(y);
36
38
  export {
37
- g as FormInput
39
+ B as FormInput
38
40
  };
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-BtUYfFXh.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.78",
3
+ "version": "0.0.1-beta.79",
4
4
  "description": "UI React Components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [