@versini/ui-card 0.0.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 +3 -0
- package/dist/components/Card/Card.js +5 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +134 -0
- package/dist/style.css +1 -0
- package/dist/style.js +0 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Arno Versini
|
|
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
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { SpacingProps } from '@versini/ui-private/dist/utilities';
|
|
3
|
+
|
|
4
|
+
declare const CARD_CLASSNAME = "av-card";
|
|
5
|
+
|
|
6
|
+
type CardProps = {
|
|
7
|
+
/**
|
|
8
|
+
* The children to render.
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* If the header prop is not provided, the Card must be
|
|
13
|
+
* described via aria-labelledby.
|
|
14
|
+
*/
|
|
15
|
+
"aria-labelledby"?: string;
|
|
16
|
+
/**
|
|
17
|
+
* CSS class(es) to add to the body.
|
|
18
|
+
*/
|
|
19
|
+
bodyClassName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* CSS class(es) to add to the main component wrapper.
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* If true, the card will be smaller.
|
|
26
|
+
*/
|
|
27
|
+
compact?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The content to render in the footer.
|
|
30
|
+
*/
|
|
31
|
+
footer?: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* CSS class(es) to add to the footer.
|
|
34
|
+
*/
|
|
35
|
+
footerClassName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The content to render in the header.
|
|
38
|
+
*/
|
|
39
|
+
header?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* CSS class(es) to add to the header.
|
|
42
|
+
*/
|
|
43
|
+
headerClassName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The mode of Card. This will change the color of the Card.
|
|
46
|
+
*/
|
|
47
|
+
mode?: "darker" | "dark" | "light" | "system" | "alt-system";
|
|
48
|
+
/**
|
|
49
|
+
* Whether or not to render the Card with a border.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
noBorder?: boolean;
|
|
53
|
+
} & SpacingProps;
|
|
54
|
+
|
|
55
|
+
declare const Card: ({ header, headerClassName, footer, footerClassName, children, className, bodyClassName, "aria-labelledby": ariaLabelledby, spacing, mode, compact, noBorder, ...otherProps }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
export { CARD_CLASSNAME, Card };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { jsx as n, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { useId as x } from "react";
|
|
3
|
+
import b from "clsx";
|
|
4
|
+
/*!
|
|
5
|
+
@versini/ui-card v0.0.0
|
|
6
|
+
© 2024 gizmette.com
|
|
7
|
+
*/
|
|
8
|
+
try {
|
|
9
|
+
window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
|
|
10
|
+
version: "0.0.0",
|
|
11
|
+
buildTime: "09/16/2024 07:11 PM EDT",
|
|
12
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
13
|
+
license: "MIT"
|
|
14
|
+
});
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
const u = "av-card";
|
|
18
|
+
function I(r) {
|
|
19
|
+
const e = x();
|
|
20
|
+
return `${r}${e}`;
|
|
21
|
+
}
|
|
22
|
+
const $ = (r) => {
|
|
23
|
+
let e = "";
|
|
24
|
+
if (typeof r == "number" || typeof r == "string")
|
|
25
|
+
e = "m-" + r;
|
|
26
|
+
else {
|
|
27
|
+
const d = [];
|
|
28
|
+
(r == null ? void 0 : r.t) !== void 0 && d.push(`mt-${r.t}`), (r == null ? void 0 : r.r) !== void 0 && d.push(`mr-${r.r}`), (r == null ? void 0 : r.b) !== void 0 && d.push(`mb-${r.b}`), (r == null ? void 0 : r.l) !== void 0 && d.push(`ml-${r.l}`), e = d.join(" ");
|
|
29
|
+
}
|
|
30
|
+
return e;
|
|
31
|
+
}, A = ({
|
|
32
|
+
className: r,
|
|
33
|
+
headerClassName: e,
|
|
34
|
+
bodyClassName: d,
|
|
35
|
+
footerClassName: t,
|
|
36
|
+
spacing: p,
|
|
37
|
+
mode: o,
|
|
38
|
+
compact: l,
|
|
39
|
+
noBorder: i
|
|
40
|
+
}) => {
|
|
41
|
+
const f = b(
|
|
42
|
+
u,
|
|
43
|
+
r,
|
|
44
|
+
"rounded-md",
|
|
45
|
+
$(p),
|
|
46
|
+
{
|
|
47
|
+
"border-none": i,
|
|
48
|
+
"border-2": !i,
|
|
49
|
+
"p-4": !l,
|
|
50
|
+
"p-1 sm:p-2": l,
|
|
51
|
+
"border-border-accent bg-surface-darker text-copy-light": o === "darker",
|
|
52
|
+
"border-border-accent bg-surface-dark text-copy-light": o === "dark",
|
|
53
|
+
"border-border-dark bg-surface-lighter text-copy-dark": o === "light",
|
|
54
|
+
"border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": o === "system",
|
|
55
|
+
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": o === "alt-system"
|
|
56
|
+
}
|
|
57
|
+
), h = e || b(`${u}__header mt-0 border-b-2`, {
|
|
58
|
+
"text-copy-light border-border-accent": o === "darker",
|
|
59
|
+
"border-border-accent": o === "dark",
|
|
60
|
+
"border-border-medium": o === "light",
|
|
61
|
+
"border-border-medium dark:border-border-accent": o === "system",
|
|
62
|
+
"border-border-accent dark:border-border-medium": o === "alt-system",
|
|
63
|
+
"mb-4": !l,
|
|
64
|
+
"mb-2": l
|
|
65
|
+
}), g = b(d), k = t || b(`${u}__footer pt-2`);
|
|
66
|
+
return {
|
|
67
|
+
wrapper: f,
|
|
68
|
+
header: h,
|
|
69
|
+
body: g,
|
|
70
|
+
footer: k
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
function C({
|
|
74
|
+
id: r,
|
|
75
|
+
content: e,
|
|
76
|
+
userAriaLabelledby: d,
|
|
77
|
+
className: t
|
|
78
|
+
}) {
|
|
79
|
+
return typeof e == "string" ? /* @__PURE__ */ n("h2", { id: r, className: t, children: e }) : d ? /* @__PURE__ */ n("div", { className: t, children: e }) : e ? /* @__PURE__ */ n("div", { className: t, id: r, children: e }) : null;
|
|
80
|
+
}
|
|
81
|
+
const D = ({
|
|
82
|
+
header: r,
|
|
83
|
+
headerClassName: e,
|
|
84
|
+
footer: d,
|
|
85
|
+
footerClassName: t,
|
|
86
|
+
children: p,
|
|
87
|
+
className: o,
|
|
88
|
+
bodyClassName: l,
|
|
89
|
+
"aria-labelledby": i,
|
|
90
|
+
spacing: f,
|
|
91
|
+
mode: h = "system",
|
|
92
|
+
compact: g = !1,
|
|
93
|
+
noBorder: k = !1,
|
|
94
|
+
..._
|
|
95
|
+
}) => {
|
|
96
|
+
let s = null, c = null;
|
|
97
|
+
const m = typeof r == "string", y = I(u), a = A({
|
|
98
|
+
className: o,
|
|
99
|
+
headerClassName: e,
|
|
100
|
+
bodyClassName: l,
|
|
101
|
+
footerClassName: t,
|
|
102
|
+
spacing: f,
|
|
103
|
+
mode: h,
|
|
104
|
+
compact: g,
|
|
105
|
+
noBorder: k
|
|
106
|
+
});
|
|
107
|
+
return m ? (s = y, c = s) : !m && r && i ? (s = null, c = i) : !m && r && !i ? (s = y, c = s) : (s = null, c = i || null), /* @__PURE__ */ n("div", { className: a.wrapper, children: /* @__PURE__ */ v(
|
|
108
|
+
"section",
|
|
109
|
+
{
|
|
110
|
+
...c && {
|
|
111
|
+
"aria-labelledby": c
|
|
112
|
+
},
|
|
113
|
+
className: a.body,
|
|
114
|
+
..._,
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ n(
|
|
117
|
+
C,
|
|
118
|
+
{
|
|
119
|
+
...s && { id: s },
|
|
120
|
+
content: r,
|
|
121
|
+
className: a.header,
|
|
122
|
+
userAriaLabelledby: i
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ n("div", { children: p }),
|
|
126
|
+
d ? /* @__PURE__ */ n("div", { className: a.footer, children: d }) : null
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
) });
|
|
130
|
+
};
|
|
131
|
+
export {
|
|
132
|
+
u as CARD_CLASSNAME,
|
|
133
|
+
D as Card
|
|
134
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}@keyframes blink{50%{fill:transparent}}.m-0{margin:0}.m-1{margin:.25rem}.m-10{margin:2.5rem}.m-11{margin:2.75rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.m-2{margin:.5rem}.m-20{margin:5rem}.m-24{margin:6rem}.m-28{margin:7rem}.m-3{margin:.75rem}.m-32{margin:8rem}.m-36{margin:9rem}.m-4{margin:1rem}.m-44{margin:11rem}.m-48{margin:12rem}.m-5{margin:1.25rem}.m-52{margin:13rem}.m-56{margin:14rem}.m-6{margin:1.5rem}.m-60{margin:15rem}.m-64{margin:16rem}.m-7{margin:1.75rem}.m-72{margin:18rem}.m-8{margin:2rem}.m-80{margin:20rem}.m-9{margin:2.25rem}.m-96{margin:24rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-11{margin-bottom:2.75rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-28{margin-bottom:7rem}.mb-3{margin-bottom:.75rem}.mb-32{margin-bottom:8rem}.mb-36{margin-bottom:9rem}.mb-4{margin-bottom:1rem}.mb-44{margin-bottom:11rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.mb-52{margin-bottom:13rem}.mb-56{margin-bottom:14rem}.mb-6{margin-bottom:1.5rem}.mb-60{margin-bottom:15rem}.mb-64{margin-bottom:16rem}.mb-7{margin-bottom:1.75rem}.mb-72{margin-bottom:18rem}.mb-8{margin-bottom:2rem}.mb-80{margin-bottom:20rem}.mb-9{margin-bottom:2.25rem}.mb-96{margin-bottom:24rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-10{margin-left:2.5rem}.ml-11{margin-left:2.75rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-44{margin-left:11rem}.ml-48{margin-left:12rem}.ml-5{margin-left:1.25rem}.ml-52{margin-left:13rem}.ml-56{margin-left:14rem}.ml-6{margin-left:1.5rem}.ml-60{margin-left:15rem}.ml-64{margin-left:16rem}.ml-7{margin-left:1.75rem}.ml-72{margin-left:18rem}.ml-8{margin-left:2rem}.ml-80{margin-left:20rem}.ml-9{margin-left:2.25rem}.ml-96{margin-left:24rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-11{margin-right:2.75rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mr-24{margin-right:6rem}.mr-28{margin-right:7rem}.mr-3{margin-right:.75rem}.mr-32{margin-right:8rem}.mr-36{margin-right:9rem}.mr-4{margin-right:1rem}.mr-44{margin-right:11rem}.mr-48{margin-right:12rem}.mr-5{margin-right:1.25rem}.mr-52{margin-right:13rem}.mr-56{margin-right:14rem}.mr-6{margin-right:1.5rem}.mr-60{margin-right:15rem}.mr-64{margin-right:16rem}.mr-7{margin-right:1.75rem}.mr-72{margin-right:18rem}.mr-8{margin-right:2rem}.mr-80{margin-right:20rem}.mr-9{margin-right:2.25rem}.mr-96{margin-right:24rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-44{margin-top:11rem}.mt-48{margin-top:12rem}.mt-5{margin-top:1.25rem}.mt-52{margin-top:13rem}.mt-56{margin-top:14rem}.mt-6{margin-top:1.5rem}.mt-60{margin-top:15rem}.mt-64{margin-top:16rem}.mt-7{margin-top:1.75rem}.mt-72{margin-top:18rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.mt-9{margin-top:2.25rem}.mt-96{margin-top:24rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b-2{border-bottom-width:2px}.border-none{border-style:none}.border-border-accent{--tw-border-opacity: 1;border-color:var(--av-border-accent, rgb(169 185 173 / var(--tw-border-opacity)))}.border-border-dark{--tw-border-opacity: 1;border-color:var(--av-border-dark, rgb(15 23 42 / var(--tw-border-opacity)))}.border-border-medium{--tw-border-opacity: 1;border-color:var(--av-border-medium, rgb(148 163 184 / var(--tw-border-opacity)))}.bg-surface-dark{--tw-bg-opacity: 1;background-color:var(--av-surface-dark, rgb(51 65 85 / var(--tw-bg-opacity)))}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity)))}.bg-surface-lighter{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity)))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.pt-2{padding-top:.5rem}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity)))}@media (min-width: 640px){.sm\:p-2{padding:.5rem}}@media (prefers-color-scheme: dark){.dark\:border-border-accent{--tw-border-opacity: 1;border-color:var(--av-border-accent, rgb(169 185 173 / var(--tw-border-opacity)))}.dark\:border-border-dark{--tw-border-opacity: 1;border-color:var(--av-border-dark, rgb(15 23 42 / var(--tw-border-opacity)))}.dark\:border-border-medium{--tw-border-opacity: 1;border-color:var(--av-border-medium, rgb(148 163 184 / var(--tw-border-opacity)))}.dark\:bg-surface-dark{--tw-bg-opacity: 1;background-color:var(--av-surface-dark, rgb(51 65 85 / var(--tw-bg-opacity)))}.dark\:bg-surface-lighter{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.dark\:text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity)))}}
|
package/dist/style.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@versini/ui-card",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Arno Versini",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/aversini/ui-components",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git@github.com:aversini/ui-components.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build:check": "tsc",
|
|
22
|
+
"build:js": "vite build",
|
|
23
|
+
"build:types": "tsup",
|
|
24
|
+
"build": "npm-run-all --serial clean build:check build:js build:types",
|
|
25
|
+
"clean": "rimraf dist tmp",
|
|
26
|
+
"dev:js": "vite build --watch --mode development",
|
|
27
|
+
"dev:types": "tsup --watch src",
|
|
28
|
+
"dev": "npm-run-all clean --parallel dev:js dev:types",
|
|
29
|
+
"lint": "biome lint src",
|
|
30
|
+
"start": "static-server dist --port 5173",
|
|
31
|
+
"test:coverage:ui": "vitest --coverage --ui",
|
|
32
|
+
"test:coverage": "vitest run --coverage",
|
|
33
|
+
"test:watch": "vitest",
|
|
34
|
+
"test": "vitest run"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "^18.3.1",
|
|
38
|
+
"react-dom": "^18.3.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@versini/ui-styles": "1.9.7"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@floating-ui/react": "0.26.24",
|
|
45
|
+
"@tailwindcss/typography": "0.5.15",
|
|
46
|
+
"@versini/ui-hooks": "4.1.3",
|
|
47
|
+
"@versini/ui-private": "1.4.9",
|
|
48
|
+
"clsx": "2.1.1",
|
|
49
|
+
"tailwindcss": "3.4.11"
|
|
50
|
+
},
|
|
51
|
+
"sideEffects": [
|
|
52
|
+
"**/*.css"
|
|
53
|
+
],
|
|
54
|
+
"gitHead": "1a0855708584f41c825efe170da4aa13ff163453"
|
|
55
|
+
}
|