@oneplatformdev/ui 0.1.10-113 → 0.1.10-115
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 +24 -0
- package/FormSelect/FormSelect.js +15 -15
- package/FormSelect/FormSelect.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 0.1.10-115 (2025-12-18)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated @oneplatformdev/utils to 0.1.1-164
|
|
6
|
+
- Updated @oneplatformdev/hooks to 0.1.0-150
|
|
7
|
+
- Updated @oneplatformdev/tokens to 0.0.1-137
|
|
8
|
+
|
|
9
|
+
## 0.1.10-114 (2025-12-18)
|
|
10
|
+
|
|
11
|
+
### 🩹 Fixes
|
|
12
|
+
|
|
13
|
+
- update icon size for large button variant ([1e7c0a7](https://github.com/oneplatformdev/core-web/commit/1e7c0a7))
|
|
14
|
+
|
|
15
|
+
### 🧱 Updated Dependencies
|
|
16
|
+
|
|
17
|
+
- Updated @oneplatformdev/utils to 0.1.1-163
|
|
18
|
+
- Updated @oneplatformdev/hooks to 0.1.0-149
|
|
19
|
+
- Updated @oneplatformdev/tokens to 0.0.1-136
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Bohdan Radchenko
|
|
24
|
+
|
|
1
25
|
## 0.1.10-113 (2025-12-18)
|
|
2
26
|
|
|
3
27
|
### 🩹 Fixes
|
package/FormSelect/FormSelect.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { FormControl as
|
|
3
|
-
import { FormRenderControl as
|
|
2
|
+
import { FormControl as u } from "../Form/Form.js";
|
|
3
|
+
import { FormRenderControl as d } 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
|
|
8
|
-
const
|
|
7
|
+
import { Select as f } from "../Select/Select.js";
|
|
8
|
+
const v = (m) => {
|
|
9
9
|
const {
|
|
10
|
-
value: i =
|
|
10
|
+
value: i = null,
|
|
11
11
|
form: p,
|
|
12
12
|
label: a,
|
|
13
|
-
name:
|
|
14
|
-
options:
|
|
15
|
-
onChange:
|
|
13
|
+
name: l,
|
|
14
|
+
options: g = [],
|
|
15
|
+
onChange: c,
|
|
16
16
|
containerProps: s,
|
|
17
17
|
renderTrigger: h,
|
|
18
18
|
onChangePrepare: n,
|
|
19
19
|
...C
|
|
20
20
|
} = m;
|
|
21
21
|
return /* @__PURE__ */ e(
|
|
22
|
-
|
|
22
|
+
d,
|
|
23
23
|
{
|
|
24
24
|
form: p,
|
|
25
|
-
name:
|
|
25
|
+
name: l,
|
|
26
26
|
label: a,
|
|
27
27
|
containerProps: s,
|
|
28
28
|
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
29
|
-
|
|
29
|
+
f,
|
|
30
30
|
{
|
|
31
31
|
value: t.value ?? i,
|
|
32
|
-
options:
|
|
32
|
+
options: g,
|
|
33
33
|
onChange: (r) => {
|
|
34
34
|
const o = n ? n(r) : r;
|
|
35
|
-
t.onChange(o),
|
|
35
|
+
t.onChange(o), c?.(r, o);
|
|
36
36
|
},
|
|
37
|
-
renderTrigger: (r, o) => /* @__PURE__ */ e(
|
|
37
|
+
renderTrigger: (r, o) => /* @__PURE__ */ e(u, { children: h?.(r, o) || o }),
|
|
38
38
|
...C
|
|
39
39
|
}
|
|
40
40
|
)
|
|
@@ -42,6 +42,6 @@ const j = (m) => {
|
|
|
42
42
|
);
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
v 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 =
|
|
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;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneplatformdev/ui",
|
|
3
|
-
"version": "0.1.10-
|
|
3
|
+
"version": "0.1.10-115",
|
|
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-
|
|
109
|
-
"@oneplatformdev/
|
|
110
|
-
"@oneplatformdev/
|
|
108
|
+
"@oneplatformdev/tokens": "^0.0.1-137",
|
|
109
|
+
"@oneplatformdev/hooks": "^0.1.0-150",
|
|
110
|
+
"@oneplatformdev/utils": "^0.1.1-164"
|
|
111
111
|
}
|
|
112
112
|
}
|