@hortiview/shared-components 1.8.0 → 1.8.1

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,9 @@
1
+ ## [1.8.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.8.0...v1.8.1) (2025-05-09)
2
+
3
+ ### Styles
4
+
5
+ * margin for checkbox set to 0 ([22cd0b6](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/22cd0b6aa2d42b4fe4c640ba94e8e0c1f47e475b))
6
+
1
7
  ## [1.8.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.7.0...v1.8.0) (2025-05-07)
2
8
 
3
9
  ### Features
@@ -1 +1 @@
1
- ._invalid_1waaq_1 *[class*=mdc-checkbox__background]{border-color:var(--lmnt-theme-danger)!important}
1
+ ._invalid_1l2r2_1 *[class*=mdc-checkbox__background]{border-color:var(--lmnt-theme-danger)!important}._checkbox_1l2r2_5{margin:0}._checkbox_1l2r2_5 input{width:2.5rem;height:2.5rem}
@@ -1,44 +1,44 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { C as d } from "../../../index.es-BvrQnJ3j.js";
3
- import { G as h } from "../../../index.es-DntoATwO.js";
4
- import { useFormContext as C, Controller as u } from "react-hook-form";
5
- import '../../../assets/FormCheckBox.css';const v = "_invalid_1waaq_1", x = {
6
- invalid: v
7
- }, b = ({
8
- propertyName: n,
9
- label: e,
2
+ import { C as m } from "../../../index.es-BvrQnJ3j.js";
3
+ import { useFormContext as k, Controller as C } from "react-hook-form";
4
+ import '../../../assets/FormCheckBox.css';const b = "_invalid_1l2r2_1", d = "_checkbox_1l2r2_5", c = {
5
+ invalid: b,
6
+ checkbox: d
7
+ }, $ = ({
8
+ propertyName: e,
9
+ label: n,
10
10
  validate: t,
11
- required: a,
12
- onChange: c,
13
- disabled: i
11
+ required: s,
12
+ onChange: a,
13
+ disabled: l
14
14
  }) => {
15
- const { control: s } = C();
15
+ const { control: h } = k();
16
16
  return /* @__PURE__ */ r(
17
- u,
17
+ C,
18
18
  {
19
- name: n,
20
- control: s,
19
+ name: e,
20
+ control: h,
21
21
  rules: {
22
- required: a,
22
+ required: s,
23
23
  validate: t
24
24
  },
25
- render: ({ field: o, fieldState: l }) => /* @__PURE__ */ r(h, { direction: "vertical", gap: "none", children: /* @__PURE__ */ r(
26
- d,
25
+ render: ({ field: o, fieldState: i }) => /* @__PURE__ */ r(
26
+ m,
27
27
  {
28
- "data-testid": `checkbox-${n}`,
28
+ "data-testid": `checkbox-${e}`,
29
29
  ...o,
30
- className: l.error ? x.invalid : "",
31
- label: e,
32
- onChange: (...m) => {
33
- o.onChange(...m), c?.();
30
+ className: `${c.checkbox} ${i.error ? c.invalid : ""}`,
31
+ label: n,
32
+ onChange: (...x) => {
33
+ o.onChange(...x), a?.();
34
34
  },
35
35
  checked: o.value,
36
- disabled: i
36
+ disabled: l
37
37
  }
38
- ) })
38
+ )
39
39
  }
40
40
  );
41
41
  };
42
42
  export {
43
- b as FormCheckBox
43
+ $ as FormCheckBox
44
44
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/shared-components",
3
3
  "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
- "version": "1.8.0",
4
+ "version": "1.8.1",
5
5
  "type": "module",
6
6
  "repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
7
7
  "author": "Falk Menge <falk.menge.ext@bayer.com>",