@pittorica/checkbox-card-react 0.22.0
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/LICENSE +21 -0
- package/README.md +24 -0
- package/dist/CheckboxCard.d.ts +19 -0
- package/dist/CheckboxCard.d.ts.map +1 -0
- package/dist/CheckboxCard.stories.d.ts +7 -0
- package/dist/CheckboxCard.stories.d.ts.map +1 -0
- package/dist/CheckboxCard.test.d.ts +5 -0
- package/dist/CheckboxCard.test.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +266 -0
- package/package.json +45 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Davide Di Criscito
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @pittorica/checkbox-card-react
|
|
2
|
+
|
|
3
|
+
The `CheckboxCard` component.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @pittorica/checkbox-card-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
import { CheckboxCard } from '@pittorica/checkbox-card-react';
|
|
15
|
+
// TODO: Add usage example
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
|
|
20
|
+
This project is licensed under the MIT License.
|
|
21
|
+
|
|
22
|
+
**Copyright (c) 2025 Davide Di Criscito**
|
|
23
|
+
|
|
24
|
+
For the full details, see the [LICENSE](LICENSE) file.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type BoxProps } from '@pittorica/box-react';
|
|
2
|
+
import { type CardProps } from '@pittorica/card-react';
|
|
3
|
+
import type { PittoricaColor } from '@pittorica/text-react';
|
|
4
|
+
export interface CheckboxCardRootProps extends Omit<BoxProps, 'onChange'> {
|
|
5
|
+
value?: string[];
|
|
6
|
+
defaultValue?: string[];
|
|
7
|
+
onValueChange?: (value: string[]) => void;
|
|
8
|
+
orientation?: 'horizontal' | 'vertical';
|
|
9
|
+
color?: PittoricaColor;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
translucent?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface CheckboxCardItemProps extends CardProps {
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const CheckboxCard: (({ value: controlledValue, defaultValue, onValueChange, orientation, color, disabled, translucent, children, className, ...props }: CheckboxCardRootProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
17
|
+
Item: ({ value, children, className, style, translucent: itemTranslucent, ...props }: CheckboxCardItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=CheckboxCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxCard.d.ts","sourceRoot":"","sources":["../src/CheckboxCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAc5D,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC;IACvE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiDD,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD,KAAK,EAAE,MAAM,CAAC;CACf;AAsDD,eAAO,MAAM,YAAY,uIA5FtB,qBAAqB;0FA+CrB,qBAAqB;CA+CtB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CheckboxCard } from './CheckboxCard';
|
|
3
|
+
declare const meta: Meta<typeof CheckboxCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Grid: StoryObj<typeof CheckboxCard>;
|
|
6
|
+
export declare const Translucent: StoryObj<typeof CheckboxCard>;
|
|
7
|
+
//# sourceMappingURL=CheckboxCard.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxCard.stories.d.ts","sourceRoot":"","sources":["../src/CheckboxCard.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAInC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,IAAI,EAAE,QAAQ,CAAC,OAAO,YAAY,CAqB9C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,YAAY,CAarD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxCard.test.d.ts","sourceRoot":"","sources":["../src/CheckboxCard.test.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,2BAA2B,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { jsx as b, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as D, useState as O, use as _ } from "react";
|
|
3
|
+
function B(t) {
|
|
4
|
+
var a, e, r = "";
|
|
5
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
6
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
7
|
+
var o = t.length;
|
|
8
|
+
for (a = 0; a < o; a++) t[a] && (e = B(t[a])) && (r && (r += " "), r += e);
|
|
9
|
+
} else for (e in t) t[e] && (r && (r += " "), r += e);
|
|
10
|
+
return r;
|
|
11
|
+
}
|
|
12
|
+
function R() {
|
|
13
|
+
for (var t, a, e = 0, r = "", o = arguments.length; e < o; e++) (t = arguments[e]) && (a = B(t)) && (r && (r += " "), r += a);
|
|
14
|
+
return r;
|
|
15
|
+
}
|
|
16
|
+
function T(t) {
|
|
17
|
+
var a, e, r = "";
|
|
18
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
19
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
20
|
+
var o = t.length;
|
|
21
|
+
for (a = 0; a < o; a++) t[a] && (e = T(t[a])) && (r && (r += " "), r += e);
|
|
22
|
+
} else for (e in t) t[e] && (r && (r += " "), r += e);
|
|
23
|
+
return r;
|
|
24
|
+
}
|
|
25
|
+
function z() {
|
|
26
|
+
for (var t, a, e = 0, r = "", o = arguments.length; e < o; e++) (t = arguments[e]) && (a = T(t)) && (r && (r += " "), r += a);
|
|
27
|
+
return r;
|
|
28
|
+
}
|
|
29
|
+
const F = ({
|
|
30
|
+
ref: t,
|
|
31
|
+
as: a = "div",
|
|
32
|
+
children: e,
|
|
33
|
+
display: r,
|
|
34
|
+
m: o,
|
|
35
|
+
mt: n,
|
|
36
|
+
mr: c,
|
|
37
|
+
mb: h,
|
|
38
|
+
ml: p,
|
|
39
|
+
p: g,
|
|
40
|
+
pt: m,
|
|
41
|
+
pr: l,
|
|
42
|
+
pb: s,
|
|
43
|
+
pl: d,
|
|
44
|
+
width: v,
|
|
45
|
+
height: f,
|
|
46
|
+
position: u,
|
|
47
|
+
style: y,
|
|
48
|
+
className: x,
|
|
49
|
+
href: $,
|
|
50
|
+
target: C,
|
|
51
|
+
rel: k,
|
|
52
|
+
htmlFor: N,
|
|
53
|
+
type: A,
|
|
54
|
+
disabled: I,
|
|
55
|
+
...j
|
|
56
|
+
}) => {
|
|
57
|
+
const i = {};
|
|
58
|
+
r && (i.display = r), v && (i.width = v), f && (i.height = f), u && (i.position = u), o && (i.margin = `var(--pittorica-space-${o})`), n && (i.marginTop = `var(--pittorica-space-${n})`), c && (i.marginRight = `var(--pittorica-space-${c})`), h && (i.marginBottom = `var(--pittorica-space-${h})`), p && (i.marginLeft = `var(--pittorica-space-${p})`), g && (i.padding = `var(--pittorica-space-${g})`), m && (i.paddingTop = `var(--pittorica-space-${m})`), l && (i.paddingRight = `var(--pittorica-space-${l})`), s && (i.paddingBottom = `var(--pittorica-space-${s})`), d && (i.paddingLeft = `var(--pittorica-space-${d})`);
|
|
59
|
+
const w = {
|
|
60
|
+
...y,
|
|
61
|
+
...i
|
|
62
|
+
};
|
|
63
|
+
return /* @__PURE__ */ b(
|
|
64
|
+
a,
|
|
65
|
+
{
|
|
66
|
+
ref: t,
|
|
67
|
+
className: z("pittorica-box", x),
|
|
68
|
+
style: w,
|
|
69
|
+
href: $,
|
|
70
|
+
target: C,
|
|
71
|
+
rel: k,
|
|
72
|
+
htmlFor: N,
|
|
73
|
+
type: A,
|
|
74
|
+
disabled: I,
|
|
75
|
+
...j,
|
|
76
|
+
children: e
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
F.displayName = "Box";
|
|
81
|
+
function L(t) {
|
|
82
|
+
var a, e, r = "";
|
|
83
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
84
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
85
|
+
var o = t.length;
|
|
86
|
+
for (a = 0; a < o; a++) t[a] && (e = L(t[a])) && (r && (r += " "), r += e);
|
|
87
|
+
} else for (e in t) t[e] && (r && (r += " "), r += e);
|
|
88
|
+
return r;
|
|
89
|
+
}
|
|
90
|
+
function G() {
|
|
91
|
+
for (var t, a, e = 0, r = "", o = arguments.length; e < o; e++) (t = arguments[e]) && (a = L(t)) && (r && (r += " "), r += a);
|
|
92
|
+
return r;
|
|
93
|
+
}
|
|
94
|
+
function S(t) {
|
|
95
|
+
var a, e, r = "";
|
|
96
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
97
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
98
|
+
var o = t.length;
|
|
99
|
+
for (a = 0; a < o; a++) t[a] && (e = S(t[a])) && (r && (r += " "), r += e);
|
|
100
|
+
} else for (e in t) t[e] && (r && (r += " "), r += e);
|
|
101
|
+
return r;
|
|
102
|
+
}
|
|
103
|
+
function H() {
|
|
104
|
+
for (var t, a, e = 0, r = "", o = arguments.length; e < o; e++) (t = arguments[e]) && (a = S(t)) && (r && (r += " "), r += a);
|
|
105
|
+
return r;
|
|
106
|
+
}
|
|
107
|
+
const q = ({
|
|
108
|
+
ref: t,
|
|
109
|
+
as: a = "div",
|
|
110
|
+
children: e,
|
|
111
|
+
display: r,
|
|
112
|
+
m: o,
|
|
113
|
+
mt: n,
|
|
114
|
+
mr: c,
|
|
115
|
+
mb: h,
|
|
116
|
+
ml: p,
|
|
117
|
+
p: g,
|
|
118
|
+
pt: m,
|
|
119
|
+
pr: l,
|
|
120
|
+
pb: s,
|
|
121
|
+
pl: d,
|
|
122
|
+
width: v,
|
|
123
|
+
height: f,
|
|
124
|
+
position: u,
|
|
125
|
+
style: y,
|
|
126
|
+
className: x,
|
|
127
|
+
href: $,
|
|
128
|
+
target: C,
|
|
129
|
+
rel: k,
|
|
130
|
+
htmlFor: N,
|
|
131
|
+
type: A,
|
|
132
|
+
disabled: I,
|
|
133
|
+
...j
|
|
134
|
+
}) => {
|
|
135
|
+
const i = {};
|
|
136
|
+
r && (i.display = r), v && (i.width = v), f && (i.height = f), u && (i.position = u), o && (i.margin = `var(--pittorica-space-${o})`), n && (i.marginTop = `var(--pittorica-space-${n})`), c && (i.marginRight = `var(--pittorica-space-${c})`), h && (i.marginBottom = `var(--pittorica-space-${h})`), p && (i.marginLeft = `var(--pittorica-space-${p})`), g && (i.padding = `var(--pittorica-space-${g})`), m && (i.paddingTop = `var(--pittorica-space-${m})`), l && (i.paddingRight = `var(--pittorica-space-${l})`), s && (i.paddingBottom = `var(--pittorica-space-${s})`), d && (i.paddingLeft = `var(--pittorica-space-${d})`);
|
|
137
|
+
const w = {
|
|
138
|
+
...y,
|
|
139
|
+
...i
|
|
140
|
+
};
|
|
141
|
+
return /* @__PURE__ */ b(
|
|
142
|
+
a,
|
|
143
|
+
{
|
|
144
|
+
ref: t,
|
|
145
|
+
className: H("pittorica-box", x),
|
|
146
|
+
style: w,
|
|
147
|
+
href: $,
|
|
148
|
+
target: C,
|
|
149
|
+
rel: k,
|
|
150
|
+
htmlFor: N,
|
|
151
|
+
type: A,
|
|
152
|
+
disabled: I,
|
|
153
|
+
...j,
|
|
154
|
+
children: e
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
q.displayName = "Box";
|
|
159
|
+
const J = ({
|
|
160
|
+
variant: t = "surface",
|
|
161
|
+
translucent: a = !1,
|
|
162
|
+
children: e,
|
|
163
|
+
className: r,
|
|
164
|
+
style: o,
|
|
165
|
+
...n
|
|
166
|
+
}) => /* @__PURE__ */ b(
|
|
167
|
+
q,
|
|
168
|
+
{
|
|
169
|
+
className: G(
|
|
170
|
+
"pittorica-card",
|
|
171
|
+
`pittorica-card--variant-${t}`,
|
|
172
|
+
{ "pittorica-card--translucent": a },
|
|
173
|
+
r
|
|
174
|
+
),
|
|
175
|
+
style: o,
|
|
176
|
+
...n,
|
|
177
|
+
children: e
|
|
178
|
+
}
|
|
179
|
+
), E = D(
|
|
180
|
+
null
|
|
181
|
+
), K = ({
|
|
182
|
+
value: t,
|
|
183
|
+
defaultValue: a = [],
|
|
184
|
+
onValueChange: e,
|
|
185
|
+
orientation: r = "vertical",
|
|
186
|
+
color: o = "indigo",
|
|
187
|
+
disabled: n,
|
|
188
|
+
translucent: c,
|
|
189
|
+
children: h,
|
|
190
|
+
className: p,
|
|
191
|
+
...g
|
|
192
|
+
}) => {
|
|
193
|
+
const [m, l] = O(a), s = t !== void 0, d = s ? t : m;
|
|
194
|
+
return /* @__PURE__ */ b(
|
|
195
|
+
E,
|
|
196
|
+
{
|
|
197
|
+
value: {
|
|
198
|
+
value: d,
|
|
199
|
+
onItemChange: (f) => {
|
|
200
|
+
const u = d.includes(f) ? d.filter((y) => y !== f) : [...d, f];
|
|
201
|
+
s || l(u), e == null || e(u);
|
|
202
|
+
},
|
|
203
|
+
color: o,
|
|
204
|
+
disabled: n,
|
|
205
|
+
translucent: c
|
|
206
|
+
},
|
|
207
|
+
children: /* @__PURE__ */ b(
|
|
208
|
+
F,
|
|
209
|
+
{
|
|
210
|
+
className: R("pittorica-checkbox-card-root", p),
|
|
211
|
+
"data-orientation": r,
|
|
212
|
+
role: "group",
|
|
213
|
+
...g,
|
|
214
|
+
children: h
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
}, M = ({
|
|
220
|
+
value: t,
|
|
221
|
+
children: a,
|
|
222
|
+
className: e,
|
|
223
|
+
style: r,
|
|
224
|
+
translucent: o,
|
|
225
|
+
...n
|
|
226
|
+
}) => {
|
|
227
|
+
var l, s;
|
|
228
|
+
const c = _(E);
|
|
229
|
+
if (!c)
|
|
230
|
+
throw new Error("CheckboxCard.Item must be used within CheckboxCard.Root");
|
|
231
|
+
const h = o ?? c.translucent, p = c.value.includes(t), m = c.color !== "inherit" && !((l = c.color) != null && l.startsWith("#")) && !((s = c.color) != null && s.startsWith("rgb")) ? `var(--pittorica-${c.color}-9)` : c.color;
|
|
232
|
+
return /* @__PURE__ */ W(
|
|
233
|
+
J,
|
|
234
|
+
{
|
|
235
|
+
...n,
|
|
236
|
+
as: "label",
|
|
237
|
+
translucent: h,
|
|
238
|
+
className: R("pittorica-checkbox-card-item", e),
|
|
239
|
+
"data-state": p ? "checked" : "unchecked",
|
|
240
|
+
"data-disabled": c.disabled,
|
|
241
|
+
style: {
|
|
242
|
+
"--_checkbox-card-color": m,
|
|
243
|
+
...r
|
|
244
|
+
},
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ b(
|
|
247
|
+
"input",
|
|
248
|
+
{
|
|
249
|
+
type: "checkbox",
|
|
250
|
+
className: "pittorica-checkbox-card-input",
|
|
251
|
+
style: { position: "absolute", opacity: 0, pointerEvents: "none" },
|
|
252
|
+
checked: p,
|
|
253
|
+
disabled: c.disabled,
|
|
254
|
+
onChange: () => c.onItemChange(t)
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
a
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
}, U = Object.assign(K, {
|
|
262
|
+
Item: M
|
|
263
|
+
});
|
|
264
|
+
export {
|
|
265
|
+
U as CheckboxCard
|
|
266
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pittorica/checkbox-card-react",
|
|
3
|
+
"version": "0.22.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"clsx": "^2.1.1",
|
|
13
|
+
"@pittorica/box-react": "0.22.0",
|
|
14
|
+
"@pittorica/card-react": "0.22.0",
|
|
15
|
+
"@pittorica/text-react": "0.22.0",
|
|
16
|
+
"@pittorica/flex-react": "0.22.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
20
|
+
"@testing-library/react": "^14.0.0",
|
|
21
|
+
"@types/react": "^19.2.3",
|
|
22
|
+
"@types/react-dom": "^19.2.3",
|
|
23
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
24
|
+
"jsdom": "^22.0.0",
|
|
25
|
+
"typescript": "^5.0.0",
|
|
26
|
+
"vite": "^5.0.0",
|
|
27
|
+
"vitest": "^2.1.9",
|
|
28
|
+
"@pittorica/heading-react": "0.22.0",
|
|
29
|
+
"@pittorica/theme-react": "0.22.0",
|
|
30
|
+
"pittorica": "0.22.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react": ">=19",
|
|
34
|
+
"react-dom": ">=19"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "npm run clean && npm run build:js && npm run build:types",
|
|
38
|
+
"build:js": "vite build",
|
|
39
|
+
"build:types": "tsc -p tsconfig.json",
|
|
40
|
+
"clean": "rm -rf dist",
|
|
41
|
+
"dev": "vite",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"test:watch": "vitest"
|
|
44
|
+
}
|
|
45
|
+
}
|