@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.
@@ -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-E9X4tg-I.js";
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 no } from "../Combobox-E9X4tg-I.js";
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 "../FormInput/FormInput.mjs";
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
- no as ComboboxOptionItem
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-E9X4tg-I.js";
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 {
@@ -1,4 +1,4 @@
1
- import { C as m } from "../Combobox-E9X4tg-I.js";
1
+ import { C as m } from "../Combobox-BtUYfFXh.js";
2
2
  export {
3
3
  m as Combobox
4
4
  };
@@ -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 "./FormInput/FormInput.mjs";
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
- }), St = w(
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
- St as C,
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-E9X4tg-I.js";
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(
@@ -1,7 +1,7 @@
1
- import { ReactElement, Ref } from 'react';
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
- ref?: Ref<HTMLInputElement>;
7
- }) => ReactElement;
6
+ inputRef?: Ref<HTMLInputElement>;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,25 +1,24 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
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;
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
- h,
8
+ v,
10
9
  {
11
- form: c,
12
- name: e,
13
- label: s,
14
- render: ({ field: r }) => /* @__PURE__ */ u(C, { children: /* @__PURE__ */ u(
15
- v,
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
- ...I,
17
+ ...F,
19
18
  ref: (o) => {
20
19
  r.ref(o), typeof t == "function" ? t(o) : t && (t.current = o);
21
20
  },
22
- style: F,
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
- B as FormInput
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-E9X4tg-I.js";
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.0.1-beta.77",
3
+ "version": "0.0.1-beta.78",
4
4
  "description": "UI React Components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [