quirk-ui 0.0.96 → 0.0.98
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/index12.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._buttonGroup_ervmb_1{display:flex;gap:.5rem}._buttonGroup_ervmb_1>*{align-self:center;justify-content:center;width:auto}@media (max-width: 480px){._buttonGroup_ervmb_1>*{width:100%}}._left_ervmb_16{justify-content:flex-start}._center_ervmb_20{justify-content:center;margin:0 auto}._center_ervmb_20>*{align-self:center;justify-content:center}._right_ervmb_30{justify-content:flex-end}._vertical_ervmb_34{flex-direction:column}._horizontal_ervmb_38{flex-direction:row}@media (max-width: 480px){._buttonGroup_ervmb_1{flex-direction:column}}
|
package/dist/assets/index14.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._callToAction_hl6wu_1{display:inline-flex;justify-content:center;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_hl6wu_1:focus,._callToAction_hl6wu_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_hl6wu_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_hl6wu_29{background-color:var(--color-primary);color:#fff}._primary_hl6wu_29:hover{background-color:var(--color-secondary);color:#fff}._primaryInverted_hl6wu_39{border-color:#fff;background-color:#fff;color:var(--color-primary)}._primaryInverted_hl6wu_39:hover{border-color:var(--color-secondary);background-color:var(--color-secondary);color:var(--color-primary)}._secondary_hl6wu_51{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._secondary_hl6wu_51:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._secondaryInverted_hl6wu_64{background-color:transparent;border-color:#fff;border-width:2px;color:#fff}._secondaryInverted_hl6wu_64:hover{border-color:#fff;background-color:#fff;color:var(--color-primary)}._link_hl6wu_77{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._linkInverted_hl6wu_86{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_hl6wu_95{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._underlineInverted_hl6wu_104{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._muted_hl6wu_113{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._icon_hl6wu_122{display:inline-flex}._content_hl6wu_126{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_hl6wu_135{flex-direction:row-reverse}._iconRight_hl6wu_139{flex-direction:row}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/index12.css';const s = "
|
|
2
|
+
import '../../assets/index12.css';const s = "_buttonGroup_ervmb_1", _ = "_left_ervmb_16", a = "_center_ervmb_20", u = "_right_ervmb_30", v = "_vertical_ervmb_34", b = "_horizontal_ervmb_38", t = {
|
|
3
3
|
buttonGroup: s,
|
|
4
4
|
left: _,
|
|
5
5
|
center: a,
|
|
6
|
-
right:
|
|
7
|
-
vertical:
|
|
8
|
-
horizontal:
|
|
9
|
-
},
|
|
6
|
+
right: u,
|
|
7
|
+
vertical: v,
|
|
8
|
+
horizontal: b
|
|
9
|
+
}, h = {
|
|
10
10
|
left: t.left,
|
|
11
11
|
center: t.center,
|
|
12
12
|
right: t.right
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
children:
|
|
14
|
+
function f({
|
|
15
|
+
children: r,
|
|
16
16
|
className: o,
|
|
17
|
-
alignment:
|
|
18
|
-
orientation:
|
|
19
|
-
role:
|
|
17
|
+
alignment: e = "left",
|
|
18
|
+
orientation: n = "horizontal",
|
|
19
|
+
role: m = "group",
|
|
20
20
|
...l
|
|
21
21
|
}) {
|
|
22
|
-
const c =
|
|
22
|
+
const c = n === "vertical" ? t.vertical : t.horizontal;
|
|
23
23
|
return /* @__PURE__ */ i(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
|
-
className: `${o ?? ""} ${t.buttonGroup} ${c} ${
|
|
26
|
+
className: `${o ?? ""} ${t.buttonGroup} ${c} ${h[e]}`,
|
|
27
27
|
...l,
|
|
28
|
-
children:
|
|
28
|
+
children: r
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
f as ButtonGroup
|
|
34
34
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import '../../assets/index14.css';const
|
|
3
|
-
callToAction:
|
|
4
|
-
primary:
|
|
5
|
-
primaryInverted:
|
|
6
|
-
secondary:
|
|
7
|
-
secondaryInverted:
|
|
8
|
-
link:
|
|
1
|
+
import { jsx as e, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index14.css';const v = "_callToAction_hl6wu_1", I = "_primary_hl6wu_29", p = "_primaryInverted_hl6wu_39", m = "_secondary_hl6wu_51", w = "_secondaryInverted_hl6wu_64", f = "_link_hl6wu_77", k = "_linkInverted_hl6wu_86", g = "_underline_hl6wu_95", $ = "_underlineInverted_hl6wu_104", A = "_icon_hl6wu_122", T = "_content_hl6wu_126", x = "_iconLeft_hl6wu_135", R = "_iconRight_hl6wu_139", n = {
|
|
3
|
+
callToAction: v,
|
|
4
|
+
primary: I,
|
|
5
|
+
primaryInverted: p,
|
|
6
|
+
secondary: m,
|
|
7
|
+
secondaryInverted: w,
|
|
8
|
+
link: f,
|
|
9
9
|
linkInverted: k,
|
|
10
10
|
underline: g,
|
|
11
11
|
underlineInverted: $,
|
|
@@ -13,7 +13,7 @@ import '../../assets/index14.css';const p = "_callToAction_1tdql_1", m = "_prima
|
|
|
13
13
|
content: T,
|
|
14
14
|
iconLeft: x,
|
|
15
15
|
iconRight: R
|
|
16
|
-
},
|
|
16
|
+
}, s = {
|
|
17
17
|
primary: n.primary,
|
|
18
18
|
primaryInverted: n.primaryInverted,
|
|
19
19
|
secondary: n.secondary,
|
|
@@ -27,29 +27,29 @@ import '../../assets/index14.css';const p = "_callToAction_1tdql_1", m = "_prima
|
|
|
27
27
|
right: n.iconRight
|
|
28
28
|
};
|
|
29
29
|
function j({
|
|
30
|
-
variant:
|
|
30
|
+
variant: t = "primary",
|
|
31
31
|
icon: o,
|
|
32
|
-
iconAlignemnt:
|
|
32
|
+
iconAlignemnt: a = "right",
|
|
33
33
|
useRouter: C = !1,
|
|
34
34
|
className: i,
|
|
35
|
-
children:
|
|
35
|
+
children: d,
|
|
36
36
|
disabled: _ = !1,
|
|
37
|
-
...
|
|
37
|
+
...r
|
|
38
38
|
}) {
|
|
39
|
-
const c = /* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */ e("span", { children:
|
|
39
|
+
const c = /* @__PURE__ */ y("span", { className: `${n.content} ${L[a]}`, children: [
|
|
40
|
+
/* @__PURE__ */ e("span", { children: d }),
|
|
41
41
|
o && /* @__PURE__ */ e("span", { className: n.icon, children: o })
|
|
42
42
|
] });
|
|
43
|
-
if (
|
|
44
|
-
const { href:
|
|
43
|
+
if (r.as == "a") {
|
|
44
|
+
const { href: u, target: l, ...h } = r;
|
|
45
45
|
return /* @__PURE__ */ e(
|
|
46
46
|
"a",
|
|
47
47
|
{
|
|
48
|
-
href:
|
|
48
|
+
href: u,
|
|
49
49
|
target: l,
|
|
50
50
|
rel: l === "_blank" ? "noopener noreferrer" : void 0,
|
|
51
|
-
className: `${i ?? ""} ${n.callToAction} ${
|
|
52
|
-
...
|
|
51
|
+
className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
|
|
52
|
+
...h,
|
|
53
53
|
children: c
|
|
54
54
|
}
|
|
55
55
|
);
|
|
@@ -57,9 +57,9 @@ function j({
|
|
|
57
57
|
return /* @__PURE__ */ e(
|
|
58
58
|
"button",
|
|
59
59
|
{
|
|
60
|
-
className: `${i ?? ""} ${n.callToAction} ${
|
|
60
|
+
className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
|
|
61
61
|
disabled: _,
|
|
62
|
-
...
|
|
62
|
+
...r,
|
|
63
63
|
children: c
|
|
64
64
|
}
|
|
65
65
|
);
|
package/dist/styles.css
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
._spinner_sf4mt_1{display:inline-flex;align-items:center;justify-content:center;position:relative}._small_sf4mt_8{width:24px;height:24px}._medium_sf4mt_13{width:48px;height:48px}._large_sf4mt_18{width:72px;height:72px}._prong_sf4mt_23{width:8%;height:30%;background-color:currentColor;border-radius:4px;position:absolute;top:67%;transform-origin:center -55%;animation:_fade_sf4mt_1 1s linear infinite}._primary_sf4mt_34{color:var(--color-primary)}._success_sf4mt_38{color:var(--color-success)}._warning_sf4mt_42{color:var(--color-warning)}._danger_sf4mt_46{color:var(--color-error)}@keyframes _fade_sf4mt_1{0%{opacity:1}to{opacity:.2}}._prong_sf4mt_23:nth-child(1){transform:rotate(0);animation-delay:-.9s}._prong_sf4mt_23:nth-child(2){transform:rotate(36deg);animation-delay:-.8s}._prong_sf4mt_23:nth-child(3){transform:rotate(72deg);animation-delay:-.7s}._prong_sf4mt_23:nth-child(4){transform:rotate(108deg);animation-delay:-.6s}._prong_sf4mt_23:nth-child(5){transform:rotate(144deg);animation-delay:-.5s}._prong_sf4mt_23:nth-child(6){transform:rotate(180deg);animation-delay:-.4s}._prong_sf4mt_23:nth-child(7){transform:rotate(216deg);animation-delay:-.3s}._prong_sf4mt_23:nth-child(8){transform:rotate(252deg);animation-delay:-.2s}._prong_sf4mt_23:nth-child(9){transform:rotate(288deg);animation-delay:-.1s}._prong_sf4mt_23:nth-child(10){transform:rotate(324deg);animation-delay:0s}
|
|
10
10
|
._spacer_1pz5u_1{flex-shrink:0;background:none}._horizontal_1pz5u_6{width:100%;height:auto}._vertical_1pz5u_11{height:100%;width:auto}._sm_1pz5u_16{height:.5rem;width:.5rem}._md_1pz5u_21{height:1rem;width:1rem}._lg_1pz5u_26{height:2rem;width:2rem}._xl_1pz5u_31{height:3rem;width:3rem}
|
|
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_ervmb_1{display:flex;gap:.5rem}._buttonGroup_ervmb_1>*{align-self:center;justify-content:center;width:auto}@media (max-width: 480px){._buttonGroup_ervmb_1>*{width:100%}}._left_ervmb_16{justify-content:flex-start}._center_ervmb_20{justify-content:center;margin:0 auto}._center_ervmb_20>*{align-self:center;justify-content:center}._right_ervmb_30{justify-content:flex-end}._vertical_ervmb_34{flex-direction:column}._horizontal_ervmb_38{flex-direction:row}@media (max-width: 480px){._buttonGroup_ervmb_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
|
+
._callToAction_hl6wu_1{display:inline-flex;justify-content:center;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_hl6wu_1:focus,._callToAction_hl6wu_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_hl6wu_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_hl6wu_29{background-color:var(--color-primary);color:#fff}._primary_hl6wu_29:hover{background-color:var(--color-secondary);color:#fff}._primaryInverted_hl6wu_39{border-color:#fff;background-color:#fff;color:var(--color-primary)}._primaryInverted_hl6wu_39:hover{border-color:var(--color-secondary);background-color:var(--color-secondary);color:var(--color-primary)}._secondary_hl6wu_51{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._secondary_hl6wu_51:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._secondaryInverted_hl6wu_64{background-color:transparent;border-color:#fff;border-width:2px;color:#fff}._secondaryInverted_hl6wu_64:hover{border-color:#fff;background-color:#fff;color:var(--color-primary)}._link_hl6wu_77{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._linkInverted_hl6wu_86{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_hl6wu_95{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._underlineInverted_hl6wu_104{color:#fff;background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._muted_hl6wu_113{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._icon_hl6wu_122{display:inline-flex}._content_hl6wu_126{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_hl6wu_135{flex-direction:row-reverse}._iconRight_hl6wu_139{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,._h1_1nzl1_7,._h2_1nzl1_8,._h3_1nzl1_9,._h4_1nzl1_10,._h5_1nzl1_11,._h6_1nzl1_12{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],._h1_1nzl1_7[class*=bg],._h2_1nzl1_8[class*=bg],._h3_1nzl1_9[class*=bg],._h4_1nzl1_10[class*=bg],._h5_1nzl1_11[class*=bg],._h6_1nzl1_12[class*=bg]{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md)}h1,._h1_1nzl1_7{font-size:var(--font-size-h1);font-weight:var(--font-weight-bold);margin-block:0 var(--spacing-sm)}h2,._h2_1nzl1_8{font-size:var(--font-size-h2);font-weight:var(--font-weight-bold);margin-block:0 var(--spacing-sm)}h3,._h3_1nzl1_9{font-size:var(--font-size-h3);font-weight:var(--font-weight-semibold);margin-block:0 var(--spacing-sm)}h4,._h4_1nzl1_10{font-size:var(--font-size-h4);font-weight:var(--font-weight-semibold);margin-block:0 var(--spacing-sm)}h5,._h5_1nzl1_11{font-size:var(--font-size-h5);font-weight:var(--font-weight-medium);margin-block:var(--spacing-xs)}h6,._h6_1nzl1_12{font-size:var(--font-size-h6);font-weight:var(--font-weight-medium);margin-block:var(--spacing-xs)}
|
|
17
17
|
._grid_10mi0_1{display:grid;width:100%;gap:var(--spacing-md, 1rem);grid-template-columns:var(--xs-columns, repeat(1, 1fr));grid-auto-rows:auto 1fr}@media (min-width: 480px){._grid_10mi0_1{grid-template-columns:var(--sm-columns, var(--xs-columns));grid-auto-rows:auto 1fr}}@media (min-width: 768px){._grid_10mi0_1{grid-template-columns:var(--md-columns, var(--sm-columns));grid-auto-rows:1fr}}@media (min-width: 1024px){._grid_10mi0_1{grid-template-columns:var(--lg-columns, var(--md-columns))}}@media (min-width: 1280px){._grid_10mi0_1{grid-template-columns:var(--xl-columns, var(--lg-columns))}}@media (min-width: 1536px){._grid_10mi0_1{grid-template-columns:var(--2xl-columns, var(--xl-columns))}}
|