@pittorica/section-react 0.23.0 → 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 +29 -27
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ function b(r) {
8
8
  } else for (i in r) r[i] && (t && (t += " "), t += i);
9
9
  return t;
10
10
  }
11
- function q() {
11
+ function S() {
12
12
  for (var r, a, i = 0, t = "", o = arguments.length; i < o; i++) (r = arguments[i]) && (a = b(r)) && (t && (t += " "), t += a);
13
13
  return t;
14
14
  }
@@ -21,7 +21,7 @@ function $(r) {
21
21
  } else for (i in r) r[i] && (t && (t += " "), t += i);
22
22
  return t;
23
23
  }
24
- function z() {
24
+ function k() {
25
25
  for (var r, a, i = 0, t = "", o = arguments.length; i < o; i++) (r = arguments[i]) && (a = $(r)) && (t && (t += " "), t += a);
26
26
  return t;
27
27
  }
@@ -31,14 +31,14 @@ const x = ({
31
31
  children: i,
32
32
  display: t,
33
33
  m: o,
34
- mt: p,
35
- mr: s,
36
- mb: n,
34
+ mt: n,
35
+ mr: p,
36
+ mb: s,
37
37
  ml: c,
38
38
  p: f,
39
- pt: l,
40
- pr: g,
41
- pb: m,
39
+ pt: m,
40
+ pr: l,
41
+ pb: g,
42
42
  pl: d,
43
43
  width: h,
44
44
  height: u,
@@ -46,16 +46,17 @@ const x = ({
46
46
  style: A,
47
47
  className: N,
48
48
  href: j,
49
- target: B,
50
- rel: T,
51
- htmlFor: w,
52
- type: F,
53
- disabled: L,
54
- ...R
49
+ target: w,
50
+ rel: B,
51
+ htmlFor: F,
52
+ type: L,
53
+ name: R,
54
+ disabled: T,
55
+ ...q
55
56
  }) => {
56
57
  const e = {};
57
- t && (e.display = t), h && (e.width = h), u && (e.height = u), v && (e.position = v), o && (e.margin = `var(--pittorica-space-${o})`), p && (e.marginTop = `var(--pittorica-space-${p})`), s && (e.marginRight = `var(--pittorica-space-${s})`), n && (e.marginBottom = `var(--pittorica-space-${n})`), c && (e.marginLeft = `var(--pittorica-space-${c})`), f && (e.padding = `var(--pittorica-space-${f})`), l && (e.paddingTop = `var(--pittorica-space-${l})`), g && (e.paddingRight = `var(--pittorica-space-${g})`), m && (e.paddingBottom = `var(--pittorica-space-${m})`), d && (e.paddingLeft = `var(--pittorica-space-${d})`);
58
- const k = {
58
+ t && (e.display = t), h && (e.width = h), u && (e.height = u), v && (e.position = v), o && (e.margin = `var(--pittorica-space-${o})`), n && (e.marginTop = `var(--pittorica-space-${n})`), p && (e.marginRight = `var(--pittorica-space-${p})`), s && (e.marginBottom = `var(--pittorica-space-${s})`), c && (e.marginLeft = `var(--pittorica-space-${c})`), f && (e.padding = `var(--pittorica-space-${f})`), m && (e.paddingTop = `var(--pittorica-space-${m})`), l && (e.paddingRight = `var(--pittorica-space-${l})`), g && (e.paddingBottom = `var(--pittorica-space-${g})`), d && (e.paddingLeft = `var(--pittorica-space-${d})`);
59
+ const z = {
59
60
  ...A,
60
61
  ...e
61
62
  };
@@ -63,21 +64,22 @@ const x = ({
63
64
  a,
64
65
  {
65
66
  ref: r,
66
- className: z("pittorica-box", N),
67
- style: k,
67
+ className: k("pittorica-box", N),
68
+ style: z,
68
69
  href: j,
69
- target: B,
70
- rel: T,
71
- htmlFor: w,
72
- type: F,
73
- disabled: L,
74
- ...R,
70
+ target: w,
71
+ rel: B,
72
+ htmlFor: F,
73
+ type: L,
74
+ name: R,
75
+ disabled: T,
76
+ ...q,
75
77
  children: i
76
78
  }
77
79
  );
78
80
  };
79
81
  x.displayName = "Box";
80
- const C = ({
82
+ const D = ({
81
83
  children: r,
82
84
  as: a = "section",
83
85
  size: i = "3",
@@ -87,12 +89,12 @@ const C = ({
87
89
  x,
88
90
  {
89
91
  as: a,
90
- className: q("pittorica-section", t),
92
+ className: S("pittorica-section", t),
91
93
  "data-size": i,
92
94
  ...o,
93
95
  children: r
94
96
  }
95
97
  );
96
98
  export {
97
- C as Section
99
+ D as Section
98
100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pittorica/section-react",
3
- "version": "0.23.0",
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.0"
13
+ "@pittorica/box-react": "0.23.2"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@testing-library/jest-dom": "^6.9.1",
@@ -22,9 +22,9 @@
22
22
  "typescript": "^5.0.0",
23
23
  "vite": "^5.0.0",
24
24
  "vitest": "^2.1.9",
25
- "@pittorica/text-react": "0.23.0",
26
- "@pittorica/theme-react": "0.23.0",
27
- "pittorica": "0.23.0"
25
+ "pittorica": "0.23.2",
26
+ "@pittorica/theme-react": "0.23.2",
27
+ "@pittorica/text-react": "0.23.2"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=19",