prometeo-design-system 4.1.8 → 4.1.9

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.
Files changed (2) hide show
  1. package/dist/CheckBox.es.js +24 -21
  2. package/package.json +1 -2
@@ -1,9 +1,10 @@
1
1
  import { j as a } from "./jsx-runtime-GkKLlHH4.js";
2
- import { memo as m, forwardRef as k, useId as g, useRef as v, useCallback as C } from "react";
3
- import { Check as y } from "./Icons/Check.es.js";
4
- const s = k(
5
- ({ className: l, disabled: e, onChange: i, value: d, ...t }, r) => {
6
- const u = g(), o = v(null), f = `
2
+ import { c as s } from "./cn-B6yFEsav.js";
3
+ import { memo as k, forwardRef as g, useId as v, useRef as C, useCallback as y } from "react";
4
+ import { Check as j } from "./Icons/Check.es.js";
5
+ const i = g(
6
+ ({ className: l, disabled: e, onChange: d, value: u, ...t }, r) => {
7
+ const f = v(), o = C(null), p = `
7
8
  after:content-[""]
8
9
  after:absolute
9
10
  after:top-1/2
@@ -25,7 +26,7 @@ const s = k(
25
26
  transition-all
26
27
  duration-200
27
28
  ease-in-out
28
- `, h = "hover:#hover-span:opacity-100", p = "bg-primary-light", x = `
29
+ `, h = "hover:#hover-span:opacity-100", x = "bg-primary-light", m = `
29
30
  bg-transparent
30
31
  border-[2px]
31
32
  aria-checked:border-none
@@ -34,7 +35,7 @@ const s = k(
34
35
  `, b = {
35
36
  selected: "bg-primary-default-disabled!",
36
37
  default: "border-neutral-default-disabled "
37
- }, c = C(() => {
38
+ }, c = y(() => {
38
39
  if (o.current)
39
40
  return o.current.click();
40
41
  }, []);
@@ -56,12 +57,14 @@ const s = k(
56
57
  {
57
58
  id: "checkbox-box",
58
59
  "aria-checked": t.checked,
59
- className: `grid place-items-center absolute size-[18px] rounded-[2px]
60
- ${f}
61
- ${x}
62
- ${t.checked ? p : ""}
63
- ${e ? b[t.checked ? "selected" : "default"] : ""}
64
- `,
60
+ className: s(
61
+ "grid place-items-center absolute size-[18px] rounded-[2px]",
62
+ p,
63
+ m,
64
+ t.checked ? x : "",
65
+ e && b[t.checked ? "selected" : "default"],
66
+ l
67
+ ),
65
68
  onClick: c,
66
69
  draggable: !1,
67
70
  children: [
@@ -69,13 +72,13 @@ const s = k(
69
72
  "input",
70
73
  {
71
74
  type: "checkbox",
72
- id: u,
75
+ id: f,
73
76
  ref: (n) => {
74
77
  o.current = n, typeof r == "function" ? r(n) : r && (r.current = n);
75
78
  },
76
- onChange: i,
77
- value: d,
78
- className: `${l} ${h}`,
79
+ onChange: d,
80
+ value: u,
81
+ className: s(h),
79
82
  disabled: e,
80
83
  style: {
81
84
  position: "absolute",
@@ -92,7 +95,7 @@ const s = k(
92
95
  }
93
96
  ),
94
97
  t.checked && /* @__PURE__ */ a.jsx(
95
- y,
98
+ j,
96
99
  {
97
100
  size: 18,
98
101
  className: `absolute ${e ? "icon-neutral-strong-disabled" : ""} pointer-events-none icon-neutral-strong-default`
@@ -105,8 +108,8 @@ const s = k(
105
108
  );
106
109
  }
107
110
  );
108
- s.displayName = "CheckBox";
109
- const w = m(s);
111
+ i.displayName = "CheckBox";
112
+ const $ = k(i);
110
113
  export {
111
- w as default
114
+ $ as default
112
115
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "4.1.8",
4
+ "version": "4.1.9",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",
@@ -240,7 +240,6 @@
240
240
  "migrate:utilities": "node scripts/migrate-utilities.js"
241
241
  },
242
242
  "devDependencies": {
243
- "@biomejs/biome": "2.2.7",
244
243
  "@emotion/is-prop-valid": "^1.4.0",
245
244
  "@eslint/js": "^9.33.0",
246
245
  "@originjs/vite-plugin-federation": "^1.4.1",