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

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-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 fo } from "../Combobox-B16Ne2a8.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";
@@ -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-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-B16Ne2a8.js";
1
+ import { C as m } from "../Combobox-BtUYfFXh.js";
2
2
  export {
3
3
  m as Combobox
4
4
  };
@@ -136,7 +136,15 @@ const ce = 8, I = w((i, l) => {
136
136
  ]
137
137
  }
138
138
  ) }) }),
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 })) }) })
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(
140
+ M,
141
+ {
142
+ ...i,
143
+ deep: n + 1,
144
+ option: a
145
+ },
146
+ t.value
147
+ )) }) })
140
148
  ]
141
149
  }
142
150
  ) : /* @__PURE__ */ e(I, { ...i, ref: l });
@@ -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-BtUYfFXh.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 { 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
+ inputRef?: Ref<HTMLInputElement>;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,34 +1,36 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { FormControl as F } from "../Form/Form.mjs";
3
- import { FormRenderControl as h } from "../Form/FormRenderControl.mjs";
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;
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 j = (u) => {
6
+ const { inputRef: a, form: e, label: s, name: c, onChange: t, onBlur: m, style: C, ...F } = u;
7
7
  return /* @__PURE__ */ p(
8
- h,
8
+ v,
9
9
  {
10
- form: a,
11
- name: s,
12
- label: c,
13
- render: ({ field: r }) => /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
14
- v,
10
+ form: e,
11
+ name: c,
12
+ label: s,
13
+ render: ({ field: r }) => /* @__PURE__ */ p(h, { children: /* @__PURE__ */ p(
14
+ x,
15
15
  {
16
16
  ...r,
17
- ...C,
17
+ ...F,
18
+ style: C,
18
19
  value: r.value || "",
19
20
  onChange: (...n) => {
20
21
  var o;
21
- (o = r.onChange) == null || o.call(r, ...n), m == null || m(...n);
22
+ (o = r.onChange) == null || o.call(r, ...n), t == null || t(...n);
22
23
  },
23
24
  onBlur: (...n) => {
24
25
  var o;
25
- (o = r.onBlur) == null || o.call(r), t == null || t(...n);
26
- }
26
+ (o = r.onBlur) == null || o.call(r), m == null || m(...n);
27
+ },
28
+ ref: a
27
29
  }
28
30
  ) })
29
31
  }
30
32
  );
31
33
  };
32
34
  export {
33
- g as FormInput
35
+ j as FormInput
34
36
  };
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-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.73",
3
+ "version": "0.0.1-beta.76",
4
4
  "description": "UI React Components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [