quirk-ui 0.0.36 → 0.0.37
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/dist/assets/index14.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._callToActionWrapper_1rgso_1{display:flex;width:100%}._left_1rgso_6{justify-content:flex-start}._center_1rgso_10{justify-content:center}._right_1rgso_14{justify-content:flex-end}._callToAction_1rgso_1{display:inline-flex;text-decoration:none;border-radius:var(--radius-md);border:2px solid transparent;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-weight:var(--font-weight-bold);font-family:inherit;background-color:var(--color-primary);cursor:pointer;transition:background-color .25s,border-color .25s;height:40px}._callToAction_1rgso_1:focus,._callToAction_1rgso_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_1rgso_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_1rgso_45{background-color:var(--color-primary);color:#fff}._primary_1rgso_45:hover{background-color:var(--color-secondary);color:#fff}._secondary_1rgso_55{background-color:var(--color-secondary);border-color:var(--color-secondary);color:#fff}._secondary_1rgso_55:hover{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}._ghost_1rgso_67{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._ghost_1rgso_67:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._link_1rgso_80{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._muted_1rgso_89{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_1rgso_98{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._icon_1rgso_107{display:inline-flex}._content_1rgso_111{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_1rgso_120{flex-direction:row-reverse}._iconRight_1rgso_124{flex-direction:row}
|
|
@@ -1,63 +1,84 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import '../../assets/index14.css';const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index14.css';const A = "_callToActionWrapper_1rgso_1", $ = "_left_1rgso_6", u = "_center_1rgso_10", T = "_right_1rgso_14", k = "_callToAction_1rgso_1", N = "_primary_1rgso_45", R = "_secondary_1rgso_55", W = "_ghost_1rgso_67", x = "_link_1rgso_80", C = "_underline_1rgso_98", L = "_icon_1rgso_107", v = "_content_1rgso_111", M = "_iconLeft_1rgso_120", b = "_iconRight_1rgso_124", n = {
|
|
3
|
+
callToActionWrapper: A,
|
|
4
|
+
left: $,
|
|
5
|
+
center: u,
|
|
6
|
+
right: T,
|
|
7
|
+
callToAction: k,
|
|
8
|
+
primary: N,
|
|
9
|
+
secondary: R,
|
|
10
|
+
ghost: W,
|
|
11
|
+
link: x,
|
|
12
|
+
underline: C,
|
|
13
|
+
icon: L,
|
|
14
|
+
content: v,
|
|
15
|
+
iconLeft: M,
|
|
16
|
+
iconRight: b
|
|
17
|
+
}, a = {
|
|
14
18
|
primary: n.primary,
|
|
15
19
|
secondary: n.secondary,
|
|
16
20
|
ghost: n.ghost,
|
|
17
21
|
link: n.link,
|
|
18
22
|
underline: n.underline
|
|
19
|
-
},
|
|
23
|
+
}, _ = {
|
|
24
|
+
left: n.left,
|
|
25
|
+
center: n.center,
|
|
26
|
+
right: n.right
|
|
27
|
+
}, j = {
|
|
20
28
|
left: n.iconLeft,
|
|
21
29
|
right: n.iconRight
|
|
22
30
|
};
|
|
23
|
-
function
|
|
31
|
+
function w({
|
|
24
32
|
variant: c = "primary",
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
alignment: r = "left",
|
|
34
|
+
icon: e,
|
|
35
|
+
iconAlignemnt: g = "right",
|
|
36
|
+
useRouter: E = !1,
|
|
37
|
+
className: s,
|
|
38
|
+
children: p,
|
|
39
|
+
disabled: h = !1,
|
|
31
40
|
...t
|
|
32
41
|
}) {
|
|
33
|
-
const
|
|
34
|
-
/* @__PURE__ */ o("span", { children:
|
|
35
|
-
|
|
42
|
+
const i = /* @__PURE__ */ y("span", { className: `${n.content} ${j[g]}`, children: [
|
|
43
|
+
/* @__PURE__ */ o("span", { children: p }),
|
|
44
|
+
e && /* @__PURE__ */ o("span", { className: n.icon, children: e })
|
|
36
45
|
] });
|
|
37
46
|
if (t.as == "a") {
|
|
38
|
-
const { href:
|
|
47
|
+
const { href: d, target: l, ...f } = t, m = l === "_blank";
|
|
39
48
|
return /* @__PURE__ */ o(
|
|
40
|
-
"
|
|
49
|
+
"div",
|
|
41
50
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
className: `${n.callToActionWrapper} ${_[r]}`,
|
|
52
|
+
children: /* @__PURE__ */ o(
|
|
53
|
+
"a",
|
|
54
|
+
{
|
|
55
|
+
href: d,
|
|
56
|
+
target: l,
|
|
57
|
+
rel: m ? "noopener noreferrer" : void 0,
|
|
58
|
+
className: `${s ?? ""} ${n.callToAction} ${a[c]}`,
|
|
59
|
+
...f,
|
|
60
|
+
children: i
|
|
61
|
+
}
|
|
62
|
+
)
|
|
48
63
|
}
|
|
49
64
|
);
|
|
50
65
|
}
|
|
51
66
|
return /* @__PURE__ */ o(
|
|
52
|
-
"
|
|
67
|
+
"div",
|
|
53
68
|
{
|
|
54
|
-
className: `${
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
69
|
+
className: `${n.callToActionWrapper} ${_[r]}`,
|
|
70
|
+
children: /* @__PURE__ */ o(
|
|
71
|
+
"button",
|
|
72
|
+
{
|
|
73
|
+
className: `${s ?? ""} ${n.callToAction} ${a[c]}`,
|
|
74
|
+
disabled: h,
|
|
75
|
+
...t,
|
|
76
|
+
children: i
|
|
77
|
+
}
|
|
78
|
+
)
|
|
58
79
|
}
|
|
59
80
|
);
|
|
60
81
|
}
|
|
61
82
|
export {
|
|
62
|
-
|
|
83
|
+
w as CallToAction
|
|
63
84
|
};
|
|
@@ -7,6 +7,12 @@ declare const variantClassMap: {
|
|
|
7
7
|
readonly underline: any;
|
|
8
8
|
};
|
|
9
9
|
type Variant = keyof typeof variantClassMap;
|
|
10
|
+
declare const alignmentClassMap: {
|
|
11
|
+
readonly left: any;
|
|
12
|
+
readonly center: any;
|
|
13
|
+
readonly right: any;
|
|
14
|
+
};
|
|
15
|
+
type Alignment = keyof typeof alignmentClassMap;
|
|
10
16
|
declare const iconAlignClassMap: {
|
|
11
17
|
readonly left: any;
|
|
12
18
|
readonly right: any;
|
|
@@ -14,6 +20,7 @@ declare const iconAlignClassMap: {
|
|
|
14
20
|
type IconAlignment = keyof typeof iconAlignClassMap;
|
|
15
21
|
type BaseProps = {
|
|
16
22
|
variant: Variant;
|
|
23
|
+
alignment?: Alignment;
|
|
17
24
|
icon?: React.ReactNode;
|
|
18
25
|
iconAlignemnt?: IconAlignment;
|
|
19
26
|
useRouter?: boolean;
|
|
@@ -30,5 +37,5 @@ type ButtonProps = {
|
|
|
30
37
|
as: "button";
|
|
31
38
|
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
32
39
|
type CallToActionProps = BaseProps & (AnchorProps | ButtonProps);
|
|
33
|
-
export declare function CallToAction({ variant, icon, iconAlignemnt, useRouter, className, children, disabled, ...restProps }: CallToActionProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function CallToAction({ variant, alignment, icon, iconAlignemnt, useRouter, className, children, disabled, ...restProps }: CallToActionProps): import("react/jsx-runtime").JSX.Element;
|
|
34
41
|
export {};
|
package/dist/styles.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
._skeleton_u21vc_1{background-color:#e0e0e0;overflow:hidden;position:relative;display:inline-block;animation:_shimmer_u21vc_1 1.5s infinite;background:linear-gradient(90deg,#e0e0e0,#f0f0f0,#e0e0e0);background-size:200% 100%}._text_u21vc_16{height:16px;width:100%;border-radius:4px}._circle_u21vc_22{border-radius:50%;aspect-ratio:1/1}._rectangle_u21vc_27{border-radius:4px}@keyframes _shimmer_u21vc_1{0%{background-position:-200%}50%{background-position:100%}to{background-position:200%}}
|
|
12
12
|
._buttonGroup_18kpd_1{display:inline-flex;gap:.5rem}._vertical_18kpd_6{flex-direction:column}._horizontal_18kpd_10{flex-direction:row}@media (max-width: 480px){._buttonGroup_18kpd_1{flex-direction:column}}
|
|
13
13
|
._fab_1p460_1{position:fixed;bottom:var(--spacing-lg);right:var(--spacing-lg);z-index:25;background-color:var(--color-primary, #000);color:#fff;border:none;border-radius:var(--radius-full);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);transition:background-color .25s ease-in-out}._fab_1p460_1:hover{background-color:var(--color-secondary)}._sm_1p460_22{width:40px;height:40px}._md_1p460_27{width:56px;height:56px}._lg_1p460_31{width:72px;height:72px}._bottom-right_1p460_36{bottom:var(--spacing-lg);right:var(--spacing-lg)}._bottom-left_1p460_41{bottom:var(--spacing-lg);left:var(--spacing-lg)}._top-right_1p460_46{top:var(--spacing-lg);right:var(--spacing-lg)}._top-left_1p460_51{top:var(--spacing-lg);left:var(--spacing-lg)}._disabled_1p460_56{color:var(--color-muted)}
|
|
14
|
-
.
|
|
14
|
+
._callToActionWrapper_1rgso_1{display:flex;width:100%}._left_1rgso_6{justify-content:flex-start}._center_1rgso_10{justify-content:center}._right_1rgso_14{justify-content:flex-end}._callToAction_1rgso_1{display:inline-flex;text-decoration:none;border-radius:var(--radius-md);border:2px solid transparent;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-weight:var(--font-weight-bold);font-family:inherit;background-color:var(--color-primary);cursor:pointer;transition:background-color .25s,border-color .25s;height:40px}._callToAction_1rgso_1:focus,._callToAction_1rgso_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_1rgso_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_1rgso_45{background-color:var(--color-primary);color:#fff}._primary_1rgso_45:hover{background-color:var(--color-secondary);color:#fff}._secondary_1rgso_55{background-color:var(--color-secondary);border-color:var(--color-secondary);color:#fff}._secondary_1rgso_55:hover{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}._ghost_1rgso_67{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._ghost_1rgso_67:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._link_1rgso_80{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._muted_1rgso_89{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_1rgso_98{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._icon_1rgso_107{display:inline-flex}._content_1rgso_111{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_1rgso_120{flex-direction:row-reverse}._iconRight_1rgso_124{flex-direction:row}
|
|
15
15
|
._iconButton_e9jmu_1{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:var(--spacing-sm);border-radius:var(--radius-md);cursor:pointer;transition:background .25s ease}._iconButton_e9jmu_1:disabled{opacity:.5;cursor:not-allowed}._sm_e9jmu_18{width:32px;height:32px}._md_e9jmu_23{width:40px;height:40px}._lg_e9jmu_28{width:48px;height:48px}._default_e9jmu_33{background-color:#f0f0f0;color:#111}._muted_e9jmu_38{background-color:#bbb;color:var(--color-muted)}._accent_e9jmu_43{background-color:var(--color-primary);color:#fff}._error_e9jmu_48{background-color:var(--color-error);color:#fff}._srOnly_e9jmu_53{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
|
|
16
16
|
h1,h2,h3,h4,h5,h6{line-height:var(--line-height-tight);margin-block:0 var(--spacing-md);color:var(--color-heading)}h1[class*=bg],h2[class*=bg],h3[class*=bg],h4[class*=bg],h5[class*=bg],h6[class*=bg]{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md)}h1{font-size:var(--font-size-h1);font-weight:var(--font-weight-bold);margin-block:0 var(--spacing-md)}h2{font-size:var(--font-size-h2);font-weight:var(--font-weight-bold);margin-block:0 var(--spacing-md)}h3{font-size:var(--font-size-h3);font-weight:var(--font-weight-semibold);margin-block:0 var(--spacing-sm)}h4{font-size:var(--font-size-h4);font-weight:var(--font-weight-semibold);margin-block:0 var(--spacing-sm)}h5{font-size:var(--font-size-h5);font-weight:var(--font-weight-medium);margin-block:var(--spacing-xs)}h6{font-size:var(--font-size-h6);font-weight:var(--font-weight-medium);margin-block:var(--spacing-xs)}
|
|
17
17
|
._grid_1pzcn_1{display:grid;width:100%;gap:var(--spacing-md, 1rem);grid-template-columns:var(--xs-columns, repeat(1, 1fr));grid-auto-rows:1fr}@media (min-width: 480px){._grid_1pzcn_1{grid-template-columns:var(--sm-columns, var(--xs-columns))}}@media (min-width: 768px){._grid_1pzcn_1{grid-template-columns:var(--md-columns, var(--sm-columns))}}@media (min-width: 1024px){._grid_1pzcn_1{grid-template-columns:var(--lg-columns, var(--md-columns))}}@media (min-width: 1280px){._grid_1pzcn_1{grid-template-columns:var(--xl-columns, var(--lg-columns))}}@media (min-width: 1536px){._grid_1pzcn_1{grid-template-columns:var(--2xl-columns, var(--xl-columns))}}
|