@a4ui/core 0.37.1 → 0.38.1
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/README.md +8 -7
- package/dist/Collapse-Cr5cDqAl.js +375 -0
- package/dist/charts/AreaChart.d.ts +38 -0
- package/dist/charts/BarChart.d.ts +17 -1
- package/dist/charts/PieChart.d.ts +29 -0
- package/dist/charts/RadialBarChart.d.ts +33 -0
- package/dist/charts/index.d.ts +5 -0
- package/dist/charts/shared.d.ts +111 -0
- package/dist/charts.js +1493 -780
- package/dist/commerce.js +625 -634
- package/dist/elements.css +1076 -8
- package/dist/elements.iife.js +1 -6
- package/dist/elements.js +7774 -9133
- package/dist/full.css +1076 -8
- package/dist/index.d.ts +30 -3
- package/dist/index.js +17502 -15126
- package/dist/layout/Aurora.d.ts +16 -0
- package/dist/layout/EffectsToggle.d.ts +1 -1
- package/dist/layout/SpaceBackground.d.ts +1 -1
- package/dist/motion-CTIBwMCA.js +104 -0
- package/dist/styles.css +110 -3
- package/dist/ui/AspectRatio.d.ts +19 -0
- package/dist/ui/Attachment.d.ts +70 -0
- package/dist/ui/ButtonGroup.d.ts +37 -0
- package/dist/ui/ChatMarker.d.ts +20 -0
- package/dist/ui/ChatThread.d.ts +32 -8
- package/dist/ui/ContactSection.d.ts +49 -0
- package/dist/ui/CtaBanner.d.ts +28 -0
- package/dist/ui/Drawer.d.ts +5 -2
- package/dist/ui/Faq.d.ts +29 -0
- package/dist/ui/FeatureGrid.d.ts +35 -0
- package/dist/ui/Field.d.ts +148 -0
- package/dist/ui/Hero.d.ts +48 -0
- package/dist/ui/InputGroup.d.ts +93 -0
- package/dist/ui/Item.d.ts +63 -0
- package/dist/ui/Label.d.ts +23 -0
- package/dist/ui/Menubar.d.ts +83 -0
- package/dist/ui/Message.d.ts +51 -5
- package/dist/ui/Modal.d.ts +8 -2
- package/dist/ui/NativeSelect.d.ts +26 -0
- package/dist/ui/NavigationMenu.d.ts +85 -0
- package/dist/ui/PromptComposer.d.ts +5 -0
- package/dist/ui/Prose.d.ts +21 -0
- package/dist/ui/Questionnaire.d.ts +71 -0
- package/dist/ui/ScrollArea.d.ts +30 -0
- package/dist/ui/Sidebar.d.ts +229 -0
- package/dist/ui/SiteFooter.d.ts +39 -0
- package/dist/ui/SiteNav.d.ts +35 -0
- package/dist/ui/TeamGrid.d.ts +33 -0
- package/dist/ui/Testimonials.d.ts +37 -0
- package/dist/ui/internal/sectionKit.d.ts +22 -0
- package/dist/ui/internal/socialIcons.d.ts +9 -0
- package/package.json +38 -26
- package/preset.d.ts +23 -0
- package/src/charts/AreaChart.tsx +206 -0
- package/src/charts/BarChart.tsx +241 -5
- package/src/charts/DonutChart.tsx +8 -11
- package/src/charts/LineChart.tsx +2 -3
- package/src/charts/PieChart.tsx +145 -0
- package/src/charts/RadialBarChart.tsx +141 -0
- package/src/charts/index.ts +14 -0
- package/src/charts/shared.tsx +304 -0
- package/src/index.ts +192 -3
- package/src/layout/Aurora.tsx +36 -7
- package/src/layout/sceneEffects.ts +22 -3
- package/src/ui/AlertDialog.tsx +6 -3
- package/src/ui/AspectRatio.tsx +35 -0
- package/src/ui/Attachment.tsx +189 -0
- package/src/ui/ButtonGroup.tsx +89 -0
- package/src/ui/ChatMarker.tsx +58 -0
- package/src/ui/ChatThread.tsx +115 -23
- package/src/ui/Command.tsx +6 -3
- package/src/ui/ContactSection.tsx +199 -0
- package/src/ui/CtaBanner.tsx +62 -0
- package/src/ui/DateField.tsx +2 -1
- package/src/ui/DateRangePicker.tsx +2 -1
- package/src/ui/Drawer.tsx +43 -7
- package/src/ui/Faq.tsx +57 -0
- package/src/ui/FeatureGrid.tsx +77 -0
- package/src/ui/Field.tsx +374 -0
- package/src/ui/Hero.tsx +146 -0
- package/src/ui/Image.tsx +6 -3
- package/src/ui/InputGroup.tsx +219 -0
- package/src/ui/Item.tsx +185 -0
- package/src/ui/Label.tsx +50 -0
- package/src/ui/Menubar.tsx +212 -0
- package/src/ui/Message.tsx +139 -13
- package/src/ui/Modal.tsx +47 -8
- package/src/ui/MultiSelect.tsx +2 -1
- package/src/ui/NativeSelect.tsx +66 -0
- package/src/ui/NavigationMenu.tsx +262 -0
- package/src/ui/PromptComposer.tsx +11 -0
- package/src/ui/Prose.tsx +63 -0
- package/src/ui/Questionnaire.tsx +331 -0
- package/src/ui/ScrollArea.tsx +70 -0
- package/src/ui/Sidebar.tsx +753 -0
- package/src/ui/SiteFooter.tsx +112 -0
- package/src/ui/SiteNav.tsx +146 -0
- package/src/ui/TeamGrid.tsx +81 -0
- package/src/ui/Testimonials.tsx +103 -0
- package/src/ui/TimeField.tsx +2 -1
- package/src/ui/internal/sectionKit.tsx +72 -0
- package/src/ui/internal/socialIcons.tsx +41 -0
- package/dist/NumberInput-Bnh2u7pp.js +0 -381
- package/dist/motion-jYMWmZqB.js +0 -119
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { spread as b, mergeProps as x, insert as d, createComponent as m, template as h, effect as v, className as p, use as $, delegateEvents as C, setAttribute as _ } from "solid-js/web";
|
|
2
|
-
import { splitProps as y, Show as k, onMount as L, onCleanup as E, createSignal as z, For as D } from "solid-js";
|
|
3
|
-
import { c, m as S } from "./motion-jYMWmZqB.js";
|
|
4
|
-
import { Star as B, ChevronDown as V } from "lucide-solid";
|
|
5
|
-
import { NumberField as w } from "@kobalte/core/number-field";
|
|
6
|
-
var X = /* @__PURE__ */ h('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'), Y = /* @__PURE__ */ h("<span>");
|
|
7
|
-
const F = {
|
|
8
|
-
neutral: "bg-muted text-muted-foreground ring-border",
|
|
9
|
-
success: "bg-emerald-500/15 text-emerald-300 ring-emerald-500/30 light:text-emerald-700",
|
|
10
|
-
warning: "bg-amber-500/15 text-amber-300 ring-amber-500/30 light:text-amber-700",
|
|
11
|
-
danger: "bg-rose-500/15 text-rose-300 ring-rose-500/30 light:text-rose-700",
|
|
12
|
-
info: "bg-sky-500/15 text-sky-300 ring-sky-500/30 light:text-sky-700"
|
|
13
|
-
}, G = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
|
|
14
|
-
function se(e) {
|
|
15
|
-
const [t, n] = y(e, ["tone", "class", "children", "pulse"]);
|
|
16
|
-
return (() => {
|
|
17
|
-
var r = Y();
|
|
18
|
-
return b(r, x({
|
|
19
|
-
get class() {
|
|
20
|
-
return c(G, F[t.tone ?? "neutral"], t.class);
|
|
21
|
-
}
|
|
22
|
-
}, n), !1, !0), d(r, m(k, {
|
|
23
|
-
get when() {
|
|
24
|
-
return t.pulse;
|
|
25
|
-
},
|
|
26
|
-
get children() {
|
|
27
|
-
return X();
|
|
28
|
-
}
|
|
29
|
-
}), null), d(r, () => t.children, null), r;
|
|
30
|
-
})();
|
|
31
|
-
}
|
|
32
|
-
var O = /* @__PURE__ */ h("<span>");
|
|
33
|
-
function P(e, t, n = {}) {
|
|
34
|
-
if (S()) return;
|
|
35
|
-
const r = e.getBoundingClientRect(), i = t.clientX - r.left, a = t.clientY - r.top, o = 2 * Math.max(Math.hypot(i, a), Math.hypot(r.width - i, a), Math.hypot(i, r.height - a), Math.hypot(r.width - i, r.height - a)), g = document.createElement("span");
|
|
36
|
-
g.setAttribute("aria-hidden", "true"), Object.assign(g.style, {
|
|
37
|
-
position: "absolute",
|
|
38
|
-
left: `${i}px`,
|
|
39
|
-
top: `${a}px`,
|
|
40
|
-
width: `${o}px`,
|
|
41
|
-
height: `${o}px`,
|
|
42
|
-
borderRadius: "9999px",
|
|
43
|
-
background: n.color ?? "currentColor",
|
|
44
|
-
pointerEvents: "none",
|
|
45
|
-
transform: "translate(-50%,-50%) scale(0)"
|
|
46
|
-
}), e.appendChild(g);
|
|
47
|
-
const s = g.animate([{
|
|
48
|
-
transform: "translate(-50%,-50%) scale(0)",
|
|
49
|
-
opacity: String(n.opacity ?? 0.3)
|
|
50
|
-
}, {
|
|
51
|
-
transform: "translate(-50%,-50%) scale(1)",
|
|
52
|
-
opacity: "0"
|
|
53
|
-
}], {
|
|
54
|
-
duration: 600,
|
|
55
|
-
easing: "ease-out"
|
|
56
|
-
}), l = () => g.remove();
|
|
57
|
-
s.finished.then(l).catch(l);
|
|
58
|
-
}
|
|
59
|
-
function ce(e) {
|
|
60
|
-
let t;
|
|
61
|
-
const n = (r) => {
|
|
62
|
-
t && P(t, r, {
|
|
63
|
-
color: e.color,
|
|
64
|
-
opacity: e.opacity
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
return (() => {
|
|
68
|
-
var r = O();
|
|
69
|
-
r.$$pointerdown = n;
|
|
70
|
-
var i = t;
|
|
71
|
-
return typeof i == "function" ? $(i, r) : t = r, d(r, () => e.children), v(() => p(r, c("relative inline-block overflow-hidden", e.class))), r;
|
|
72
|
-
})();
|
|
73
|
-
}
|
|
74
|
-
C(["pointerdown"]);
|
|
75
|
-
var j = /* @__PURE__ */ h("<a>"), H = /* @__PURE__ */ h("<button>");
|
|
76
|
-
const U = {
|
|
77
|
-
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
78
|
-
secondary: "bg-muted text-foreground hover:bg-muted/70",
|
|
79
|
-
outline: "border border-border bg-transparent text-foreground hover:bg-muted",
|
|
80
|
-
ghost: "bg-transparent text-foreground hover:bg-muted"
|
|
81
|
-
}, q = "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
82
|
-
function de(e) {
|
|
83
|
-
const [t, n] = y(e, ["variant", "class", "type", "children", "ripple", "onPointerDown", "href", "target", "rel"]), r = () => c(q, U[t.variant ?? "primary"], t.ripple && "relative overflow-hidden", t.class), i = (a) => {
|
|
84
|
-
t.ripple && P(a.currentTarget, a, {
|
|
85
|
-
opacity: 0.35
|
|
86
|
-
});
|
|
87
|
-
const o = t.onPointerDown;
|
|
88
|
-
typeof o == "function" ? o(a) : o && o[0](o[1], a);
|
|
89
|
-
};
|
|
90
|
-
return m(k, {
|
|
91
|
-
get when() {
|
|
92
|
-
return t.href !== void 0;
|
|
93
|
-
},
|
|
94
|
-
get fallback() {
|
|
95
|
-
return (() => {
|
|
96
|
-
var a = H();
|
|
97
|
-
return a.$$pointerdown = i, b(a, x({
|
|
98
|
-
get type() {
|
|
99
|
-
return t.type ?? "button";
|
|
100
|
-
},
|
|
101
|
-
get class() {
|
|
102
|
-
return r();
|
|
103
|
-
}
|
|
104
|
-
}, n), !1, !0), d(a, () => t.children), a;
|
|
105
|
-
})();
|
|
106
|
-
},
|
|
107
|
-
get children() {
|
|
108
|
-
var a = j();
|
|
109
|
-
return a.$$pointerdown = i, b(a, x({
|
|
110
|
-
get href() {
|
|
111
|
-
return t.href;
|
|
112
|
-
},
|
|
113
|
-
get target() {
|
|
114
|
-
return t.target;
|
|
115
|
-
},
|
|
116
|
-
get rel() {
|
|
117
|
-
return t.rel;
|
|
118
|
-
},
|
|
119
|
-
get class() {
|
|
120
|
-
return r();
|
|
121
|
-
}
|
|
122
|
-
}, n), !1, !0), d(a, () => t.children), a;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
C(["pointerdown"]);
|
|
127
|
-
var J = /* @__PURE__ */ h("<div>");
|
|
128
|
-
function N(e, t = {}) {
|
|
129
|
-
if (S()) return () => {
|
|
130
|
-
};
|
|
131
|
-
const n = document.createElement("span");
|
|
132
|
-
n.setAttribute("aria-hidden", "true"), n.className = "pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300", e.appendChild(n);
|
|
133
|
-
const r = t.size ?? 180, i = t.color ?? "hsl(var(--primary))", a = (l, u) => {
|
|
134
|
-
n.style.background = `radial-gradient(${r}px circle at ${l}px ${u}px, color-mix(in srgb, ${i} 30%, transparent), transparent 70%)`;
|
|
135
|
-
}, o = (l) => {
|
|
136
|
-
const u = e.getBoundingClientRect();
|
|
137
|
-
a(l.clientX - u.left, l.clientY - u.top);
|
|
138
|
-
}, g = () => {
|
|
139
|
-
n.style.opacity = "1";
|
|
140
|
-
}, s = () => {
|
|
141
|
-
n.style.opacity = "0";
|
|
142
|
-
};
|
|
143
|
-
return e.addEventListener("pointermove", o), e.addEventListener("pointerenter", g), e.addEventListener("pointerleave", s), () => {
|
|
144
|
-
e.removeEventListener("pointermove", o), e.removeEventListener("pointerenter", g), e.removeEventListener("pointerleave", s), n.remove();
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
function ue(e) {
|
|
148
|
-
let t;
|
|
149
|
-
return L(() => {
|
|
150
|
-
const n = N(t, {
|
|
151
|
-
color: e.color,
|
|
152
|
-
size: e.size
|
|
153
|
-
});
|
|
154
|
-
E(n);
|
|
155
|
-
}), (() => {
|
|
156
|
-
var n = J(), r = t;
|
|
157
|
-
return typeof r == "function" ? $(r, n) : t = n, d(n, () => e.children), v(() => p(n, c("relative overflow-hidden", e.class))), n;
|
|
158
|
-
})();
|
|
159
|
-
}
|
|
160
|
-
var K = /* @__PURE__ */ h("<div style=perspective:800px><div style=transform-style:preserve-3d>");
|
|
161
|
-
function I(e, t, n = {}) {
|
|
162
|
-
if (S()) return () => {
|
|
163
|
-
};
|
|
164
|
-
t.style.willChange = "transform";
|
|
165
|
-
const r = (a) => {
|
|
166
|
-
const o = e.getBoundingClientRect(), g = (a.clientX - o.left) / o.width - 0.5, s = (a.clientY - o.top) / o.height - 0.5, l = n.max ?? 10;
|
|
167
|
-
t.style.transition = "transform 0.15s ease-out", t.style.transform = `perspective(800px) rotateX(${(s * -2 * l).toFixed(2)}deg) rotateY(${(g * 2 * l).toFixed(2)}deg) scale(1.02)`;
|
|
168
|
-
}, i = () => {
|
|
169
|
-
t.style.transition = "transform 0.4s ease", t.style.transform = "perspective(800px) rotateX(0deg) rotateY(0deg) scale(1)";
|
|
170
|
-
};
|
|
171
|
-
return e.addEventListener("pointermove", r), e.addEventListener("pointerleave", i), () => {
|
|
172
|
-
e.removeEventListener("pointermove", r), e.removeEventListener("pointerleave", i), t.style.transform = "", t.style.transition = "", t.style.willChange = "";
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
function ge(e) {
|
|
176
|
-
let t, n;
|
|
177
|
-
return L(() => {
|
|
178
|
-
const r = I(t, n, {
|
|
179
|
-
max: e.max
|
|
180
|
-
});
|
|
181
|
-
E(r);
|
|
182
|
-
}), (() => {
|
|
183
|
-
var r = K(), i = r.firstChild, a = t;
|
|
184
|
-
typeof a == "function" ? $(a, r) : t = r;
|
|
185
|
-
var o = n;
|
|
186
|
-
return typeof o == "function" ? $(o, i) : n = i, d(i, () => e.children), v(() => p(r, c("inline-block", e.class))), r;
|
|
187
|
-
})();
|
|
188
|
-
}
|
|
189
|
-
var A = /* @__PURE__ */ h("<div>"), Q = /* @__PURE__ */ h("<h2>");
|
|
190
|
-
function fe(e) {
|
|
191
|
-
const [t, n] = y(e, ["class", "children", "glass", "glow", "tilt", "spotlight"]), r = () => (t.glow ?? t.glass) === !0;
|
|
192
|
-
let i;
|
|
193
|
-
return L(() => {
|
|
194
|
-
const a = [t.tilt && i ? I(i, i) : null, t.spotlight && i ? N(i) : null].filter((o) => o !== null);
|
|
195
|
-
E(() => a.forEach((o) => o()));
|
|
196
|
-
}), (() => {
|
|
197
|
-
var a = A(), o = i;
|
|
198
|
-
return typeof o == "function" ? $(o, a) : i = a, b(a, x({
|
|
199
|
-
get class() {
|
|
200
|
-
return c(t.glass ? "card rounded-xl text-card-foreground" : "rounded-xl border border-border bg-card text-card-foreground shadow-sm", r() && "glow-edge", t.spotlight && "relative overflow-hidden", t.tilt && "will-change-transform", t.class);
|
|
201
|
-
}
|
|
202
|
-
}, n), !1, !0), d(a, () => t.children), a;
|
|
203
|
-
})();
|
|
204
|
-
}
|
|
205
|
-
function he(e) {
|
|
206
|
-
const [t, n] = y(e, ["class", "children"]);
|
|
207
|
-
return (() => {
|
|
208
|
-
var r = A();
|
|
209
|
-
return b(r, x({
|
|
210
|
-
get class() {
|
|
211
|
-
return c("flex flex-col space-y-1.5 p-6", t.class);
|
|
212
|
-
}
|
|
213
|
-
}, n), !1, !0), d(r, () => t.children), r;
|
|
214
|
-
})();
|
|
215
|
-
}
|
|
216
|
-
function me(e) {
|
|
217
|
-
const [t, n] = y(e, ["class", "children"]);
|
|
218
|
-
return (() => {
|
|
219
|
-
var r = Q();
|
|
220
|
-
return b(r, x({
|
|
221
|
-
get class() {
|
|
222
|
-
return c("text-lg font-semibold leading-none tracking-tight", t.class);
|
|
223
|
-
}
|
|
224
|
-
}, n), !1, !0), d(r, () => t.children), r;
|
|
225
|
-
})();
|
|
226
|
-
}
|
|
227
|
-
function ve(e) {
|
|
228
|
-
const [t, n] = y(e, ["class", "children"]);
|
|
229
|
-
return (() => {
|
|
230
|
-
var r = A();
|
|
231
|
-
return b(r, x({
|
|
232
|
-
get class() {
|
|
233
|
-
return c("p-6 pt-0", t.class);
|
|
234
|
-
}
|
|
235
|
-
}, n), !1, !0), d(r, () => t.children), r;
|
|
236
|
-
})();
|
|
237
|
-
}
|
|
238
|
-
var W = /* @__PURE__ */ h("<div role=radiogroup>"), Z = /* @__PURE__ */ h("<div role=img>"), ee = /* @__PURE__ */ h('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');
|
|
239
|
-
function pe(e) {
|
|
240
|
-
const [t, n] = z(0), r = () => e.max ?? 5, i = () => Array.from({
|
|
241
|
-
length: r()
|
|
242
|
-
}, (s, l) => l + 1), a = () => t() > 0 ? t() : e.value, o = (s) => {
|
|
243
|
-
var l;
|
|
244
|
-
e.readonly || (l = e.onChange) == null || l.call(e, s);
|
|
245
|
-
}, g = (s) => c("h-5 w-5 transition-colors", s <= a() ? "fill-primary text-primary" : "fill-transparent text-muted-foreground");
|
|
246
|
-
return m(k, {
|
|
247
|
-
get when() {
|
|
248
|
-
return !e.readonly;
|
|
249
|
-
},
|
|
250
|
-
get fallback() {
|
|
251
|
-
return (() => {
|
|
252
|
-
var s = Z();
|
|
253
|
-
return d(s, m(D, {
|
|
254
|
-
get each() {
|
|
255
|
-
return i();
|
|
256
|
-
},
|
|
257
|
-
children: (l) => m(B, {
|
|
258
|
-
get class() {
|
|
259
|
-
return g(l);
|
|
260
|
-
},
|
|
261
|
-
"aria-hidden": "true"
|
|
262
|
-
})
|
|
263
|
-
})), v((l) => {
|
|
264
|
-
var u = c("inline-flex items-center gap-1", e.class), f = `Rating ${e.value} of ${r()}`;
|
|
265
|
-
return u !== l.e && p(s, l.e = u), f !== l.t && _(s, "aria-label", l.t = f), l;
|
|
266
|
-
}, {
|
|
267
|
-
e: void 0,
|
|
268
|
-
t: void 0
|
|
269
|
-
}), s;
|
|
270
|
-
})();
|
|
271
|
-
},
|
|
272
|
-
get children() {
|
|
273
|
-
var s = W();
|
|
274
|
-
return s.addEventListener("mouseleave", () => n(0)), d(s, m(D, {
|
|
275
|
-
get each() {
|
|
276
|
-
return i();
|
|
277
|
-
},
|
|
278
|
-
children: (l) => (() => {
|
|
279
|
-
var u = ee();
|
|
280
|
-
return u.$$keydown = (f) => {
|
|
281
|
-
f.key === "ArrowRight" || f.key === "ArrowUp" ? (f.preventDefault(), o(Math.min(e.value + 1, r()))) : (f.key === "ArrowLeft" || f.key === "ArrowDown") && (f.preventDefault(), o(Math.max(e.value - 1, 0)));
|
|
282
|
-
}, u.$$click = () => o(l), u.addEventListener("blur", () => n(0)), u.addEventListener("focus", () => n(l)), u.addEventListener("mouseenter", () => n(l)), d(u, m(B, {
|
|
283
|
-
get class() {
|
|
284
|
-
return g(l);
|
|
285
|
-
},
|
|
286
|
-
"aria-hidden": "true"
|
|
287
|
-
})), v((f) => {
|
|
288
|
-
var R = e.value === l, T = `Rate ${l} of ${r()}`;
|
|
289
|
-
return R !== f.e && _(u, "aria-checked", f.e = R), T !== f.t && _(u, "aria-label", f.t = T), f;
|
|
290
|
-
}, {
|
|
291
|
-
e: void 0,
|
|
292
|
-
t: void 0
|
|
293
|
-
}), u;
|
|
294
|
-
})()
|
|
295
|
-
})), v(() => p(s, c("inline-flex items-center gap-1", e.class))), s;
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
C(["click", "keydown"]);
|
|
300
|
-
var te = /* @__PURE__ */ h('<label><input type=checkbox class="h-4 w-4 rounded border-input accent-primary">');
|
|
301
|
-
function be(e) {
|
|
302
|
-
return (() => {
|
|
303
|
-
var t = te(), n = t.firstChild;
|
|
304
|
-
return n.addEventListener("change", (r) => e.onChange(r.currentTarget.checked)), d(t, () => e.label, null), v(() => p(t, c("inline-flex items-center gap-2 text-sm text-foreground", e.class))), v(() => n.checked = e.checked), t;
|
|
305
|
-
})();
|
|
306
|
-
}
|
|
307
|
-
var re = /* @__PURE__ */ h('<div><button type=button class="flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium text-foreground hover:bg-muted"></button><div><div class=overflow-hidden><div class="px-3 py-2 text-sm text-muted-foreground">');
|
|
308
|
-
function xe(e) {
|
|
309
|
-
return (() => {
|
|
310
|
-
var t = re(), n = t.firstChild, r = n.nextSibling, i = r.firstChild, a = i.firstChild;
|
|
311
|
-
return n.$$click = () => e.onOpenChange(!e.open), d(n, () => e.title, null), d(n, m(V, {
|
|
312
|
-
get class() {
|
|
313
|
-
return c("h-4 w-4 shrink-0 transition-transform duration-200", e.open && "rotate-180");
|
|
314
|
-
}
|
|
315
|
-
}), null), d(a, () => e.children), v((o) => {
|
|
316
|
-
var g = c(e.class), s = e.open, l = c("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none", e.open ? "grid-rows-[1fr]" : "grid-rows-[0fr]");
|
|
317
|
-
return g !== o.e && p(t, o.e = g), s !== o.t && _(n, "aria-expanded", o.t = s), l !== o.a && p(r, o.a = l), o;
|
|
318
|
-
}, {
|
|
319
|
-
e: void 0,
|
|
320
|
-
t: void 0,
|
|
321
|
-
a: void 0
|
|
322
|
-
}), t;
|
|
323
|
-
})();
|
|
324
|
-
}
|
|
325
|
-
C(["click"]);
|
|
326
|
-
const M = "grid h-9 w-9 shrink-0 place-items-center border border-input bg-background text-foreground transition-colors hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50";
|
|
327
|
-
function ye(e) {
|
|
328
|
-
return m(w, {
|
|
329
|
-
get rawValue() {
|
|
330
|
-
return e.value;
|
|
331
|
-
},
|
|
332
|
-
onRawValueChange: (t) => e.onChange(t),
|
|
333
|
-
get minValue() {
|
|
334
|
-
return e.min;
|
|
335
|
-
},
|
|
336
|
-
get maxValue() {
|
|
337
|
-
return e.max;
|
|
338
|
-
},
|
|
339
|
-
get class() {
|
|
340
|
-
return c("inline-flex items-stretch", e.class);
|
|
341
|
-
},
|
|
342
|
-
get children() {
|
|
343
|
-
return [m(w.DecrementTrigger, {
|
|
344
|
-
get class() {
|
|
345
|
-
return c(M, "rounded-l-md");
|
|
346
|
-
},
|
|
347
|
-
"aria-label": "Decrement",
|
|
348
|
-
children: "−"
|
|
349
|
-
}), m(w.Input, {
|
|
350
|
-
get "aria-label"() {
|
|
351
|
-
return e["aria-label"];
|
|
352
|
-
},
|
|
353
|
-
class: "w-16 border-y border-input bg-background px-3 py-2 text-center text-sm text-foreground outline-none transition-colors a4-field"
|
|
354
|
-
}), m(w.IncrementTrigger, {
|
|
355
|
-
get class() {
|
|
356
|
-
return c(M, "rounded-r-md");
|
|
357
|
-
},
|
|
358
|
-
"aria-label": "Increment",
|
|
359
|
-
children: "+"
|
|
360
|
-
})];
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
export {
|
|
365
|
-
se as B,
|
|
366
|
-
fe as C,
|
|
367
|
-
ye as N,
|
|
368
|
-
pe as R,
|
|
369
|
-
ue as S,
|
|
370
|
-
ge as T,
|
|
371
|
-
de as a,
|
|
372
|
-
be as b,
|
|
373
|
-
xe as c,
|
|
374
|
-
ve as d,
|
|
375
|
-
he as e,
|
|
376
|
-
me as f,
|
|
377
|
-
ce as g,
|
|
378
|
-
N as h,
|
|
379
|
-
I as i,
|
|
380
|
-
P as s
|
|
381
|
-
};
|
package/dist/motion-jYMWmZqB.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { clsx as M } from "clsx";
|
|
2
|
-
import { twMerge as h } from "tailwind-merge";
|
|
3
|
-
import { animate as a, inView as I } from "motion";
|
|
4
|
-
import { createSignal as i, createEffect as R, untrack as m, onCleanup as C } from "solid-js";
|
|
5
|
-
function N(...e) {
|
|
6
|
-
return h(M(e));
|
|
7
|
-
}
|
|
8
|
-
const l = "a4ui-effects";
|
|
9
|
-
function p() {
|
|
10
|
-
try {
|
|
11
|
-
return window.localStorage;
|
|
12
|
-
} catch {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function F() {
|
|
17
|
-
var t;
|
|
18
|
-
try {
|
|
19
|
-
if (new URLSearchParams(window.location.search).get("calm") === "1") return !1;
|
|
20
|
-
} catch {
|
|
21
|
-
}
|
|
22
|
-
const e = (t = p()) == null ? void 0 : t.getItem(l);
|
|
23
|
-
return e === null ? !0 : e === "1";
|
|
24
|
-
}
|
|
25
|
-
function y(e) {
|
|
26
|
-
typeof document > "u" || document.documentElement.classList.toggle("calm", !e);
|
|
27
|
-
}
|
|
28
|
-
const w = F();
|
|
29
|
-
y(w);
|
|
30
|
-
const [g, U] = i(w);
|
|
31
|
-
function V() {
|
|
32
|
-
return g;
|
|
33
|
-
}
|
|
34
|
-
function _() {
|
|
35
|
-
return !g();
|
|
36
|
-
}
|
|
37
|
-
function b(e) {
|
|
38
|
-
var t;
|
|
39
|
-
(t = p()) == null || t.setItem(l, e ? "1" : "0"), y(e), U(e);
|
|
40
|
-
}
|
|
41
|
-
const L = "(prefers-reduced-motion: reduce)";
|
|
42
|
-
function T() {
|
|
43
|
-
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(L).matches;
|
|
44
|
-
}
|
|
45
|
-
const E = "a4ui-motion-forced";
|
|
46
|
-
function O() {
|
|
47
|
-
try {
|
|
48
|
-
return window.localStorage;
|
|
49
|
-
} catch {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
var d;
|
|
54
|
-
const [u, Y] = i(((d = O()) == null ? void 0 : d.getItem(E)) === "1");
|
|
55
|
-
typeof document < "u" && document.documentElement.classList.toggle("force-motion", m(u));
|
|
56
|
-
function k() {
|
|
57
|
-
return u;
|
|
58
|
-
}
|
|
59
|
-
function A(e) {
|
|
60
|
-
var t;
|
|
61
|
-
(t = O()) == null || t.setItem(E, e ? "1" : "0"), typeof document < "u" && document.documentElement.classList.toggle("force-motion", e), Y(e);
|
|
62
|
-
}
|
|
63
|
-
function c() {
|
|
64
|
-
return _() || T() && !u();
|
|
65
|
-
}
|
|
66
|
-
function G(e, t = 600) {
|
|
67
|
-
const [o, f] = i(0);
|
|
68
|
-
let n;
|
|
69
|
-
return R(() => {
|
|
70
|
-
const r = e();
|
|
71
|
-
if (n == null || n.stop(), c()) {
|
|
72
|
-
f(r);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const s = m(o);
|
|
76
|
-
s !== r && (n = a(s, r, {
|
|
77
|
-
duration: t / 1e3,
|
|
78
|
-
ease: "easeOut",
|
|
79
|
-
onUpdate: (S) => f(S)
|
|
80
|
-
}));
|
|
81
|
-
}), C(() => n == null ? void 0 : n.stop()), o;
|
|
82
|
-
}
|
|
83
|
-
function P(e, t = {}) {
|
|
84
|
-
c() || a(
|
|
85
|
-
e,
|
|
86
|
-
{ opacity: [0, 1], y: [t.y ?? 8, 0] },
|
|
87
|
-
{ duration: t.duration ?? 0.32, delay: t.delay ?? 0, ease: "easeOut" }
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
function Q(e, t = {}) {
|
|
91
|
-
if (c()) return () => {
|
|
92
|
-
};
|
|
93
|
-
e.style.opacity = "0";
|
|
94
|
-
let o = !1;
|
|
95
|
-
return I(
|
|
96
|
-
e,
|
|
97
|
-
() => {
|
|
98
|
-
o || (o = !0, a(
|
|
99
|
-
e,
|
|
100
|
-
{ opacity: [0, 1], y: [t.y ?? 16, 0] },
|
|
101
|
-
{ duration: t.duration ?? 0.5, ease: "easeOut" }
|
|
102
|
-
));
|
|
103
|
-
},
|
|
104
|
-
{ amount: t.amount ?? 0.2 }
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
export {
|
|
108
|
-
G as a,
|
|
109
|
-
P as b,
|
|
110
|
-
N as c,
|
|
111
|
-
A as d,
|
|
112
|
-
k as e,
|
|
113
|
-
_ as i,
|
|
114
|
-
c as m,
|
|
115
|
-
T as p,
|
|
116
|
-
Q as r,
|
|
117
|
-
b as s,
|
|
118
|
-
V as u
|
|
119
|
-
};
|