@oneplatformdev/ui 0.1.10-115 → 0.1.10-117

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 0.1.10-117 (2025-12-23)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated @oneplatformdev/utils to 0.1.1-166
6
+ - Updated @oneplatformdev/hooks to 0.1.0-152
7
+ - Updated @oneplatformdev/tokens to 0.0.1-139
8
+
9
+ ## 0.1.10-116 (2025-12-23)
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated @oneplatformdev/utils to 0.1.1-165
14
+ - Updated @oneplatformdev/hooks to 0.1.0-151
15
+ - Updated @oneplatformdev/tokens to 0.0.1-138
16
+
1
17
  ## 0.1.10-115 (2025-12-18)
2
18
 
3
19
  ### 🧱 Updated Dependencies
@@ -1,40 +1,40 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { FormControl as u } from "../Form/Form.js";
3
- import { FormRenderControl as d } from "../Form/FormRenderControl.js";
2
+ import { FormControl as d } from "../Form/Form.js";
3
+ import { FormRenderControl as f } from "../Form/FormRenderControl.js";
4
4
  import "@radix-ui/react-select";
5
5
  import "lucide-react";
6
6
  import "@oneplatformdev/utils";
7
- import { Select as f } from "../Select/Select.js";
8
- const v = (m) => {
7
+ import { Select as u } from "../Select/Select.js";
8
+ const j = (m) => {
9
9
  const {
10
- value: i = null,
10
+ value: i = void 0,
11
11
  form: p,
12
12
  label: a,
13
- name: l,
14
- options: g = [],
15
- onChange: c,
13
+ name: g,
14
+ options: c = [],
15
+ onChange: l,
16
16
  containerProps: s,
17
17
  renderTrigger: h,
18
18
  onChangePrepare: n,
19
19
  ...C
20
20
  } = m;
21
21
  return /* @__PURE__ */ e(
22
- d,
22
+ f,
23
23
  {
24
24
  form: p,
25
- name: l,
25
+ name: g,
26
26
  label: a,
27
27
  containerProps: s,
28
28
  render: ({ field: t }) => /* @__PURE__ */ e(
29
- f,
29
+ u,
30
30
  {
31
- value: t.value ?? i,
32
- options: g,
31
+ value: t.value ?? (i || ""),
32
+ options: c,
33
33
  onChange: (r) => {
34
34
  const o = n ? n(r) : r;
35
- t.onChange(o), c?.(r, o);
35
+ t.onChange(o), l?.(r, o);
36
36
  },
37
- renderTrigger: (r, o) => /* @__PURE__ */ e(u, { children: h?.(r, o) || o }),
37
+ renderTrigger: (r, o) => /* @__PURE__ */ e(d, { children: h?.(r, o) || o }),
38
38
  ...C
39
39
  }
40
40
  )
@@ -42,6 +42,6 @@ const v = (m) => {
42
42
  );
43
43
  };
44
44
  export {
45
- v as FormSelect
45
+ j as FormSelect
46
46
  };
47
47
  //# sourceMappingURL=FormSelect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormSelect.js","sources":["../../src/FormSelect/FormSelect.tsx"],"sourcesContent":["import { FormControl, FormRenderControl } from '../Form';\nimport { Select } from '../Select';\nimport { FormSelectProps } from './FormSelect.types';\nimport { FieldValues } from 'react-hook-form';\n\n// TODO: add description\nexport const FormSelect = <Data extends FieldValues, ExtendOptionData>(\n props: FormSelectProps<Data, ExtendOptionData>\n) => {\n const {\n value = null,\n form,\n label,\n name,\n options = [],\n onChange,\n containerProps,\n renderTrigger,\n onChangePrepare,\n ...rest\n } = props;\n\n return (\n <FormRenderControl\n form={form}\n name={name}\n label={label}\n containerProps={containerProps}\n render={({ field }) => (\n <Select<ExtendOptionData>\n value={field.value ?? (value as string | undefined)}\n options={options}\n onChange={(value) => {\n const nextValue = onChangePrepare ? onChangePrepare(value) : value;\n field.onChange(nextValue);\n onChange?.(value, nextValue);\n }}\n renderTrigger={(p, defaultComponent) => {\n return (\n <FormControl>\n {renderTrigger?.(p, defaultComponent) || defaultComponent}\n </FormControl>\n )\n }}\n {...rest}\n />\n )}\n />\n );\n};\n"],"names":["FormSelect","props","value","form","label","name","options","onChange","containerProps","renderTrigger","onChangePrepare","rest","jsx","FormRenderControl","field","Select","nextValue","p","defaultComponent","FormControl"],"mappings":";;;;;;;AAMO,MAAMA,IAAa,CACxBC,MACG;AACH,QAAM;AAAA,IACJ,OAAAC,IAAQ;AAAA,IACR,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC,IAAU,CAAA;AAAA,IACV,UAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACDV;AAEJ,SACE,gBAAAW;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAV;AAAA,MACA,MAAAE;AAAA,MACA,OAAAD;AAAA,MACA,gBAAAI;AAAA,MACA,QAAQ,CAAC,EAAE,OAAAM,EAAA,MACT,gBAAAF;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,OAAOD,EAAM,SAAUZ;AAAA,UACvB,SAAAI;AAAA,UACA,UAAU,CAACJ,MAAU;AACnB,kBAAMc,IAAYN,IAAkBA,EAAgBR,CAAK,IAAIA;AAC7D,YAAAY,EAAM,SAASE,CAAS,GACxBT,IAAWL,GAAOc,CAAS;AAAA,UAC7B;AAAA,UACA,eAAe,CAACC,GAAGC,wBAEdC,GAAA,EACE,UAAAV,IAAgBQ,GAAGC,CAAgB,KAAKA,GAC3C;AAAA,UAGH,GAAGP;AAAA,QAAA;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"FormSelect.js","sources":["../../src/FormSelect/FormSelect.tsx"],"sourcesContent":["import { FormControl, FormRenderControl } from '../Form';\nimport { Select } from '../Select';\nimport { FormSelectProps } from './FormSelect.types';\nimport { FieldValues } from 'react-hook-form';\n\n// TODO: add description\nexport const FormSelect = <Data extends FieldValues, ExtendOptionData>(\n props: FormSelectProps<Data, ExtendOptionData>\n) => {\n const {\n value = undefined,\n form,\n label,\n name,\n options = [],\n onChange,\n containerProps,\n renderTrigger,\n onChangePrepare,\n ...rest\n } = props;\n\n return (\n <FormRenderControl\n form={form}\n name={name}\n label={label}\n containerProps={containerProps}\n render={({ field }) => (\n <Select<ExtendOptionData>\n value={field.value ?? (value || '')}\n options={options}\n onChange={(value) => {\n const nextValue = onChangePrepare ? onChangePrepare(value) : value;\n field.onChange(nextValue);\n onChange?.(value, nextValue);\n }}\n renderTrigger={(p, defaultComponent) => {\n return (\n <FormControl>\n {renderTrigger?.(p, defaultComponent) || defaultComponent}\n </FormControl>\n )\n }}\n {...rest}\n />\n )}\n />\n );\n};\n"],"names":["FormSelect","props","value","form","label","name","options","onChange","containerProps","renderTrigger","onChangePrepare","rest","jsx","FormRenderControl","field","Select","nextValue","p","defaultComponent","FormControl"],"mappings":";;;;;;;AAMO,MAAMA,IAAa,CACxBC,MACG;AACH,QAAM;AAAA,IACJ,OAAAC,IAAQ;AAAA,IACR,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC,IAAU,CAAA;AAAA,IACV,UAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACDV;AAEJ,SACE,gBAAAW;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAV;AAAA,MACA,MAAAE;AAAA,MACA,OAAAD;AAAA,MACA,gBAAAI;AAAA,MACA,QAAQ,CAAC,EAAE,OAAAM,EAAA,MACT,gBAAAF;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,OAAOD,EAAM,UAAUZ,KAAS;AAAA,UAChC,SAAAI;AAAA,UACA,UAAU,CAACJ,MAAU;AACnB,kBAAMc,IAAYN,IAAkBA,EAAgBR,CAAK,IAAIA;AAC7D,YAAAY,EAAM,SAASE,CAAS,GACxBT,IAAWL,GAAOc,CAAS;AAAA,UAC7B;AAAA,UACA,eAAe,CAACC,GAAGC,wBAEdC,GAAA,EACE,UAAAV,IAAgBQ,GAAGC,CAAgB,KAAKA,GAC3C;AAAA,UAGH,GAAGP;AAAA,QAAA;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAIR;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.1.10-115",
3
+ "version": "0.1.10-117",
4
4
  "description": "UI component library for OnePlatform",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [
@@ -105,8 +105,8 @@
105
105
  "recharts": "^3.2.0",
106
106
  "sonner": "^2.0.7",
107
107
  "vaul": "^1.1.2",
108
- "@oneplatformdev/tokens": "^0.0.1-137",
109
- "@oneplatformdev/hooks": "^0.1.0-150",
110
- "@oneplatformdev/utils": "^0.1.1-164"
108
+ "@oneplatformdev/hooks": "^0.1.0-152",
109
+ "@oneplatformdev/utils": "^0.1.1-166",
110
+ "@oneplatformdev/tokens": "^0.0.1-139"
111
111
  }
112
112
  }