@pittorica/skeleton-react 0.23.1 → 0.23.2

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/index.js +26 -24
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as s, Fragment as S } from "react/jsx-runtime";
1
+ import { jsx as s, Fragment as q } from "react/jsx-runtime";
2
2
  function b(t) {
3
3
  var e, i, r = "";
4
4
  if (typeof t == "string" || typeof t == "number") r += t;
@@ -8,7 +8,7 @@ function b(t) {
8
8
  } else for (i in t) t[i] && (r && (r += " "), r += i);
9
9
  return r;
10
10
  }
11
- function q() {
11
+ function z() {
12
12
  for (var t, e, i = 0, r = "", o = arguments.length; i < o; i++) (t = arguments[i]) && (e = b(t)) && (r && (r += " "), r += e);
13
13
  return r;
14
14
  }
@@ -21,7 +21,7 @@ function $(t) {
21
21
  } else for (i in t) t[i] && (r && (r += " "), r += i);
22
22
  return r;
23
23
  }
24
- function z() {
24
+ function C() {
25
25
  for (var t, e, i = 0, r = "", o = arguments.length; i < o; i++) (t = arguments[i]) && (e = $(t)) && (r && (r += " "), r += e);
26
26
  return r;
27
27
  }
@@ -36,8 +36,8 @@ const k = ({
36
36
  mb: c,
37
37
  ml: l,
38
38
  p: g,
39
- pt: f,
40
- pr: m,
39
+ pt: m,
40
+ pr: f,
41
41
  pb: d,
42
42
  pl: h,
43
43
  width: u,
@@ -47,15 +47,16 @@ const k = ({
47
47
  className: N,
48
48
  href: A,
49
49
  target: j,
50
- rel: B,
51
- htmlFor: F,
52
- type: R,
53
- disabled: T,
54
- ...w
50
+ rel: w,
51
+ htmlFor: B,
52
+ type: F,
53
+ name: R,
54
+ disabled: L,
55
+ ...S
55
56
  }) => {
56
57
  const a = {};
57
- r && (a.display = r), u && (a.width = u), y && (a.height = y), v && (a.position = v), o && (a.margin = `var(--pittorica-space-${o})`), p && (a.marginTop = `var(--pittorica-space-${p})`), n && (a.marginRight = `var(--pittorica-space-${n})`), c && (a.marginBottom = `var(--pittorica-space-${c})`), l && (a.marginLeft = `var(--pittorica-space-${l})`), g && (a.padding = `var(--pittorica-space-${g})`), f && (a.paddingTop = `var(--pittorica-space-${f})`), m && (a.paddingRight = `var(--pittorica-space-${m})`), d && (a.paddingBottom = `var(--pittorica-space-${d})`), h && (a.paddingLeft = `var(--pittorica-space-${h})`);
58
- const L = {
58
+ r && (a.display = r), u && (a.width = u), y && (a.height = y), v && (a.position = v), o && (a.margin = `var(--pittorica-space-${o})`), p && (a.marginTop = `var(--pittorica-space-${p})`), n && (a.marginRight = `var(--pittorica-space-${n})`), c && (a.marginBottom = `var(--pittorica-space-${c})`), l && (a.marginLeft = `var(--pittorica-space-${l})`), g && (a.padding = `var(--pittorica-space-${g})`), m && (a.paddingTop = `var(--pittorica-space-${m})`), f && (a.paddingRight = `var(--pittorica-space-${f})`), d && (a.paddingBottom = `var(--pittorica-space-${d})`), h && (a.paddingLeft = `var(--pittorica-space-${h})`);
59
+ const T = {
59
60
  ...x,
60
61
  ...a
61
62
  };
@@ -63,21 +64,22 @@ const k = ({
63
64
  e,
64
65
  {
65
66
  ref: t,
66
- className: z("pittorica-box", N),
67
- style: L,
67
+ className: C("pittorica-box", N),
68
+ style: T,
68
69
  href: A,
69
70
  target: j,
70
- rel: B,
71
- htmlFor: F,
72
- type: R,
73
- disabled: T,
74
- ...w,
71
+ rel: w,
72
+ htmlFor: B,
73
+ type: F,
74
+ name: R,
75
+ disabled: L,
76
+ ...S,
75
77
  children: i
76
78
  }
77
79
  );
78
80
  };
79
81
  k.displayName = "Box";
80
- const C = ({
82
+ const D = ({
81
83
  children: t,
82
84
  loading: e = !0,
83
85
  variant: i = "rect",
@@ -90,7 +92,7 @@ const C = ({
90
92
  {
91
93
  ...n,
92
94
  ref: p,
93
- className: q(
95
+ className: z(
94
96
  "pittorica-skeleton",
95
97
  "pittorica-skeleton--loading",
96
98
  {
@@ -106,8 +108,8 @@ const C = ({
106
108
  },
107
109
  children: t
108
110
  }
109
- ) : /* @__PURE__ */ s(S, { children: t });
110
- C.displayName = "Skeleton";
111
+ ) : /* @__PURE__ */ s(q, { children: t });
112
+ D.displayName = "Skeleton";
111
113
  export {
112
- C as Skeleton
114
+ D as Skeleton
113
115
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pittorica/skeleton-react",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "dependencies": {
12
12
  "clsx": "^2.1.1",
13
- "@pittorica/box-react": "0.23.1"
13
+ "@pittorica/box-react": "0.23.2"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@testing-library/jest-dom": "^6.9.1",
@@ -22,10 +22,10 @@
22
22
  "typescript": "^5.0.0",
23
23
  "vite": "^5.0.0",
24
24
  "vitest": "^2.1.9",
25
- "@pittorica/flex-react": "0.23.1",
26
- "@pittorica/text-react": "0.23.1",
27
- "@pittorica/theme-react": "0.23.1",
28
- "pittorica": "0.23.1"
25
+ "@pittorica/flex-react": "0.23.2",
26
+ "@pittorica/text-react": "0.23.2",
27
+ "@pittorica/theme-react": "0.23.2",
28
+ "pittorica": "0.23.2"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": ">=19",