@oneplatformdev/ui 0.1.99-beta.55 → 0.1.99-beta.56
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,36 @@
|
|
|
1
|
+
## 0.1.99-beta.56 (2026-01-15)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **App:** add routing for button and button-icon pages, enhance navigation ([ad89b21](https://github.com/oneplatformdev/core-web/commit/ad89b21))
|
|
6
|
+
- **Button:** enhance button component with new variants, adornments, and improved props ([0d373b8](https://github.com/oneplatformdev/core-web/commit/0d373b8))
|
|
7
|
+
- enhance FormSelect with onChangePrepare and updated onChange signature ([3b4402b](https://github.com/oneplatformdev/core-web/commit/3b4402b))
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- **FormSelect:** ensure default value is an empty string when undefined ([056631f](https://github.com/oneplatformdev/core-web/commit/056631f))
|
|
12
|
+
- update icon size for large button variant ([1e7c0a7](https://github.com/oneplatformdev/core-web/commit/1e7c0a7))
|
|
13
|
+
- add min-width to large button variant ([e34bc71](https://github.com/oneplatformdev/core-web/commit/e34bc71))
|
|
14
|
+
- handle undefined value in FormSelect component ([9c7ae4a](https://github.com/oneplatformdev/core-web/commit/9c7ae4a))
|
|
15
|
+
- minor alert dialog content ([#41](https://github.com/oneplatformdev/core-web/pull/41))
|
|
16
|
+
- update Dialog component title font size for better readability and add .env to .gitignore ([9646134](https://github.com/oneplatformdev/core-web/commit/9646134))
|
|
17
|
+
- adjust Dialog component styling for better alignment and update container size in CSS ([afaa5af](https://github.com/oneplatformdev/core-web/commit/afaa5af))
|
|
18
|
+
- update XIcon styling in Dialog component for improved visibility ([164338b](https://github.com/oneplatformdev/core-web/commit/164338b))
|
|
19
|
+
- update dialog primitive close ([5e7c577](https://github.com/oneplatformdev/core-web/commit/5e7c577))
|
|
20
|
+
- update dialog primitive close ([560b5ba](https://github.com/oneplatformdev/core-web/commit/560b5ba))
|
|
21
|
+
- update dialog primitive close ([f63b143](https://github.com/oneplatformdev/core-web/commit/f63b143))
|
|
22
|
+
|
|
23
|
+
### 🧱 Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated @oneplatformdev/utils to 0.1.99-beta.56
|
|
26
|
+
- Updated @oneplatformdev/hooks to 0.1.99-beta.56
|
|
27
|
+
- Updated @oneplatformdev/tokens to 0.1.99-beta.56
|
|
28
|
+
|
|
29
|
+
### ❤️ Thank You
|
|
30
|
+
|
|
31
|
+
- Bohdan Radchenko @BohdanRadchenko
|
|
32
|
+
- BohdanRadchenko
|
|
33
|
+
|
|
1
34
|
## 0.1.99-beta.53 (2026-01-15)
|
|
2
35
|
|
|
3
36
|
### 🧱 Updated Dependencies
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormRenderControl.d.ts","sourceRoot":"","sources":["../../src/Form/FormRenderControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormRenderControl.d.ts","sourceRoot":"","sources":["../../src/Form/FormRenderControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAqCnE,eAAO,MAAM,iBAAiB,GAC5B,IAAI,SAAS,WAAW,GAAG,WAAW,EAEtC,OAAO,sBAAsB,CAAC,IAAI,CAAC,4CA+CpC,CAAC"}
|
|
@@ -1,57 +1,62 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { FormField as
|
|
1
|
+
import { jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { FormField as u, FormItem as d, FormMessage as f, FormLabel as h } from "./Form.js";
|
|
3
3
|
import "@radix-ui/react-tooltip";
|
|
4
|
-
import "@oneplatformdev/utils";
|
|
5
|
-
import { Tooltip as
|
|
4
|
+
import { cn as l } from "@oneplatformdev/utils";
|
|
5
|
+
import { Tooltip as F } from "../Tooltip/Tooltip.js";
|
|
6
|
+
import { cloneElement as P } from "react";
|
|
6
7
|
const b = (n) => {
|
|
7
|
-
const { label:
|
|
8
|
-
return
|
|
9
|
-
|
|
8
|
+
const { label: t, tooltip: s, tooltipProps: r } = n, o = /* @__PURE__ */ e(h, { children: t });
|
|
9
|
+
return t ? s ? /* @__PURE__ */ e(
|
|
10
|
+
F,
|
|
10
11
|
{
|
|
11
|
-
message:
|
|
12
|
+
message: s,
|
|
12
13
|
showQuestionMark: !0,
|
|
13
14
|
questionIconSize: "xs",
|
|
14
15
|
contentProps: {
|
|
15
16
|
side: "right",
|
|
16
17
|
align: "center"
|
|
17
18
|
},
|
|
18
|
-
...
|
|
19
|
-
|
|
19
|
+
...r,
|
|
20
|
+
triggerProps: {
|
|
21
|
+
...r?.triggerProps,
|
|
22
|
+
className: l("cursor-help", r?.triggerProps?.className)
|
|
23
|
+
},
|
|
24
|
+
children: P(o, { className: l("cursor-help", o.props.classNames) })
|
|
20
25
|
}
|
|
21
|
-
) :
|
|
22
|
-
},
|
|
26
|
+
) : o : null;
|
|
27
|
+
}, T = (n) => {
|
|
23
28
|
const {
|
|
24
|
-
form:
|
|
25
|
-
name:
|
|
26
|
-
label:
|
|
27
|
-
tooltip:
|
|
28
|
-
tooltipProps:
|
|
29
|
-
render:
|
|
30
|
-
containerProps:
|
|
31
|
-
...
|
|
29
|
+
form: t,
|
|
30
|
+
name: s,
|
|
31
|
+
label: r,
|
|
32
|
+
tooltip: o,
|
|
33
|
+
tooltipProps: i,
|
|
34
|
+
render: m,
|
|
35
|
+
containerProps: p = {},
|
|
36
|
+
...c
|
|
32
37
|
} = n;
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
38
|
+
return /* @__PURE__ */ e(
|
|
39
|
+
u,
|
|
35
40
|
{
|
|
36
|
-
control:
|
|
37
|
-
name:
|
|
38
|
-
render: (
|
|
39
|
-
/* @__PURE__ */
|
|
41
|
+
control: t.control,
|
|
42
|
+
name: s,
|
|
43
|
+
render: (a) => /* @__PURE__ */ g(d, { ...p, children: [
|
|
44
|
+
/* @__PURE__ */ e(
|
|
40
45
|
b,
|
|
41
46
|
{
|
|
42
|
-
label:
|
|
43
|
-
tooltip:
|
|
44
|
-
tooltipProps:
|
|
47
|
+
label: r,
|
|
48
|
+
tooltip: o,
|
|
49
|
+
tooltipProps: i
|
|
45
50
|
}
|
|
46
51
|
),
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */
|
|
52
|
+
m(a),
|
|
53
|
+
/* @__PURE__ */ e(f, {})
|
|
49
54
|
] }),
|
|
50
|
-
...
|
|
55
|
+
...c
|
|
51
56
|
}
|
|
52
57
|
);
|
|
53
58
|
};
|
|
54
59
|
export {
|
|
55
|
-
|
|
60
|
+
T as FormRenderControl
|
|
56
61
|
};
|
|
57
62
|
//# sourceMappingURL=FormRenderControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormRenderControl.js","sources":["../../src/Form/FormRenderControl.tsx"],"sourcesContent":["import { FieldValues } from \"react-hook-form\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"FormRenderControl.js","sources":["../../src/Form/FormRenderControl.tsx"],"sourcesContent":["import { FieldValues } from \"react-hook-form\";\n\nimport { FormField, FormItem, FormLabel, FormMessage } from \"./Form\";\nimport { FormRenderControlProps } from \"./FormRenderControl.types\";\nimport { Tooltip } from \"../Tooltip\";\nimport { cloneElement } from \"react\";\nimport { cn } from \"@oneplatformdev/utils\";\n\ninterface IFormLabelWithTooltipProps<\n Data extends FieldValues = FieldValues,\n> extends Pick<FormRenderControlProps<Data>, 'label' | 'tooltip' | 'tooltipProps'> {\n}\n\nconst FormLabelWithTooltip = <\n Data extends FieldValues = FieldValues,\n>(props: IFormLabelWithTooltipProps<Data>) => {\n const { label, tooltip, tooltipProps } = props;\n const cmp = <FormLabel>{label}</FormLabel>;\n if (!label) return null;\n if (!tooltip) return cmp;\n return (\n <Tooltip\n message={tooltip}\n showQuestionMark\n questionIconSize=\"xs\"\n contentProps={{\n side: \"right\",\n align: \"center\"\n }}\n {...tooltipProps}\n triggerProps={{\n ...tooltipProps?.triggerProps,\n className: cn('cursor-help', tooltipProps?.triggerProps?.className),\n }}\n >\n {cloneElement(cmp, { className: cn('cursor-help', cmp.props.classNames) })}\n </Tooltip>\n )\n}\n\nexport const FormRenderControl = <\n Data extends FieldValues = FieldValues,\n>(\n props: FormRenderControlProps<Data>\n) => {\n const {\n form,\n name,\n label,\n tooltip,\n tooltipProps,\n render,\n containerProps = {},\n ...rest\n } = props;\n return (\n <FormField\n control={form.control}\n name={name}\n render={(params) => (\n <FormItem {...containerProps}>\n <FormLabelWithTooltip\n label={label}\n tooltip={tooltip}\n tooltipProps={tooltipProps}\n />\n {/*{(label || tooltip) && (*/}\n {/* <FormLabel className={cn(\"flex items-center gap-1\")}>*/}\n {/* {label && <span>{label}</span>}*/}\n {/* {tooltip && (*/}\n {/* <Tooltip*/}\n {/* message={tooltip}*/}\n {/* showQuestionMark*/}\n {/* questionIconSize=\"xs\"*/}\n {/* contentProps={{*/}\n {/* side: \"right\",*/}\n {/* align: \"center\"*/}\n {/* }}*/}\n {/* {...props.tooltipProps}*/}\n {/* />*/}\n {/* )}*/}\n {/* </FormLabel>*/}\n {/*)}*/}\n {render(params)}\n <FormMessage/>\n </FormItem>\n )}\n {...rest}\n />\n );\n};\n"],"names":["FormLabelWithTooltip","props","label","tooltip","tooltipProps","cmp","jsx","FormLabel","Tooltip","cn","cloneElement","FormRenderControl","form","name","render","containerProps","rest","FormField","params","jsxs","FormItem","FormMessage"],"mappings":";;;;;;AAaA,MAAMA,IAAuB,CAE3BC,MAA4C;AAC5C,QAAM,EAAE,OAAAC,GAAO,SAAAC,GAAS,cAAAC,EAAA,IAAiBH,GACnCI,IAAM,gBAAAC,EAACC,GAAA,EAAW,UAA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
|
|
4
4
|
"description": "UI component library for OnePlatform",
|
|
5
5
|
"author": "One Platform Development Team",
|
|
6
6
|
"keywords": [
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
"recharts": "^3.2.0",
|
|
106
106
|
"sonner": "^2.0.7",
|
|
107
107
|
"vaul": "^1.1.2",
|
|
108
|
-
"@oneplatformdev/
|
|
109
|
-
"@oneplatformdev/utils": "^0.1.99-beta.
|
|
110
|
-
"@oneplatformdev/
|
|
108
|
+
"@oneplatformdev/hooks": "^0.1.99-beta.56",
|
|
109
|
+
"@oneplatformdev/utils": "^0.1.99-beta.56",
|
|
110
|
+
"@oneplatformdev/tokens": "^0.1.99-beta.56"
|
|
111
111
|
},
|
|
112
112
|
"scripts": {
|
|
113
113
|
"chromatic": "chromatic"
|