@gentiq/ui 0.0.0-stage → 1.0.0-alpha.10
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 +201 -0
- package/README.md +10 -2
- package/dist/FeedbackSettings-oq019el1.js +199 -0
- package/dist/MessageEditor-thFldVmz.js +25 -0
- package/dist/VoiceInput-sKSP-X3z.js +99 -0
- package/dist/assets/lato-400-latin-BEhtfm5r.woff2 +0 -0
- package/dist/assets/lato-700-latin-BUGMgin4.woff2 +0 -0
- package/dist/assets/vazirmatn-arabic-Cafbb7Zc.woff2 +0 -0
- package/dist/index.d.ts +1280 -0
- package/dist/index.es.js +49 -0
- package/dist/internal.d.ts +601 -0
- package/dist/internal.es.js +119 -0
- package/dist/loaders.css +412 -0
- package/dist/shared-BKh4GbRI.js +20 -0
- package/dist/shared-BtZa4J_w.js +632 -0
- package/dist/shared-DO5kF-Zj.js +5136 -0
- package/dist/style.css +1 -0
- package/package.json +119 -3
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { T as u, i as h, B as m, j as p, c as r } from "./shared-BtZa4J_w.js";
|
|
3
|
+
import { a1 as H, h as z, C as B, b as R, a as j, D as O, a2 as P, e as Q, _ as q, $ as A, f as F, g as G, d as U, l as V, n as W, o as X, m as J, N as K, G as Y, L as Z, a3 as $, H as ee, K as ae, M as te, I as re, J as se, V as oe, W as ie, Z as ne, X as de, Y as ce, a4 as le, x as ge, F as ue, w as he, a0 as me, y as pe, u as be } from "./shared-BtZa4J_w.js";
|
|
4
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
5
|
+
import { Monitor as c, Moon as b, Sun as k, CheckIcon as f } from "lucide-react";
|
|
6
|
+
import { useGentiqTranslation as T, useTheme as x } from "@gentiq/react";
|
|
7
|
+
import "react";
|
|
8
|
+
import * as n from "@radix-ui/react-checkbox";
|
|
9
|
+
import * as d from "@radix-ui/react-switch";
|
|
10
|
+
import { T as fe } from "./shared-BKh4GbRI.js";
|
|
11
|
+
const D = { system: "light", light: "dark", dark: "system" }, w = { light: k, dark: b, system: c }, M = ({ className: t }) => {
|
|
12
|
+
const { t: a } = T(["theme"]), { theme: s, setTheme: l } = x(), g = w[s] ?? c, o = D[s];
|
|
13
|
+
return /* @__PURE__ */ i(u, { children: [
|
|
14
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ i(
|
|
15
|
+
m,
|
|
16
|
+
{
|
|
17
|
+
variant: "ghost",
|
|
18
|
+
size: "icon",
|
|
19
|
+
onClick: () => l(o ?? "system"),
|
|
20
|
+
className: t,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ e(g, { className: "h-[1.2rem] w-[1.2rem]" }),
|
|
23
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: a("toggle") })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
) }),
|
|
27
|
+
/* @__PURE__ */ e(p, { children: a(o ?? "toggle") })
|
|
28
|
+
] });
|
|
29
|
+
};
|
|
30
|
+
function N({ className: t, ...a }) {
|
|
31
|
+
return /* @__PURE__ */ e(
|
|
32
|
+
n.Root,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "checkbox",
|
|
35
|
+
className: r(
|
|
36
|
+
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
37
|
+
t
|
|
38
|
+
),
|
|
39
|
+
...a,
|
|
40
|
+
children: /* @__PURE__ */ e(
|
|
41
|
+
n.Indicator,
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "checkbox-indicator",
|
|
44
|
+
className: "grid place-content-center text-current transition-none",
|
|
45
|
+
children: /* @__PURE__ */ e(f, { className: "size-3.5" })
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function E({ className: t, ...a }) {
|
|
52
|
+
return /* @__PURE__ */ e(
|
|
53
|
+
d.Root,
|
|
54
|
+
{
|
|
55
|
+
"data-slot": "switch",
|
|
56
|
+
dir: "ltr",
|
|
57
|
+
className: r(
|
|
58
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
59
|
+
t
|
|
60
|
+
),
|
|
61
|
+
...a,
|
|
62
|
+
children: /* @__PURE__ */ e(
|
|
63
|
+
d.Thumb,
|
|
64
|
+
{
|
|
65
|
+
"data-slot": "switch-thumb",
|
|
66
|
+
className: r(
|
|
67
|
+
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
H as BUILT_IN_METERS,
|
|
76
|
+
z as Badge,
|
|
77
|
+
m as Button,
|
|
78
|
+
N as Checkbox,
|
|
79
|
+
B as Collapsible,
|
|
80
|
+
R as CollapsibleContent,
|
|
81
|
+
j as CollapsibleTrigger,
|
|
82
|
+
O as Dialog,
|
|
83
|
+
P as DialogClose,
|
|
84
|
+
Q as DialogContent,
|
|
85
|
+
q as DialogDescription,
|
|
86
|
+
A as DialogFooter,
|
|
87
|
+
F as DialogHeader,
|
|
88
|
+
G as DialogTitle,
|
|
89
|
+
U as DialogTrigger,
|
|
90
|
+
V as DropdownMenu,
|
|
91
|
+
W as DropdownMenuContent,
|
|
92
|
+
X as DropdownMenuItem,
|
|
93
|
+
J as DropdownMenuTrigger,
|
|
94
|
+
K as Input,
|
|
95
|
+
Y as Label,
|
|
96
|
+
Z as Loader,
|
|
97
|
+
M as ModeToggle,
|
|
98
|
+
$ as QUOTA_PERIODS,
|
|
99
|
+
ee as Select,
|
|
100
|
+
ae as SelectContent,
|
|
101
|
+
te as SelectItem,
|
|
102
|
+
re as SelectTrigger,
|
|
103
|
+
se as SelectValue,
|
|
104
|
+
oe as Sheet,
|
|
105
|
+
ie as SheetContent,
|
|
106
|
+
ne as SheetDescription,
|
|
107
|
+
de as SheetHeader,
|
|
108
|
+
ce as SheetTitle,
|
|
109
|
+
E as Switch,
|
|
110
|
+
fe as Textarea,
|
|
111
|
+
r as cn,
|
|
112
|
+
le as describeDuration,
|
|
113
|
+
ge as describeWindow,
|
|
114
|
+
ue as formatQuotaAmount,
|
|
115
|
+
he as formatQuotaDate,
|
|
116
|
+
me as gentiqLogo,
|
|
117
|
+
pe as meterLabel,
|
|
118
|
+
be as useSlots
|
|
119
|
+
};
|
package/dist/loaders.css
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
/* The optional loaders, published as `gentiq/loaders.css`: `orb`, `triangle`, `cross`, `comet`
|
|
2
|
+
and `aurora`. `gentiq/style.css` draws only the three-dot default, and draws it for every
|
|
3
|
+
`theme.loader` until an app loads this file after it. Each keeps to roughly the dots'
|
|
4
|
+
footprint, so no call site reserves different space for the setting, and each has a still
|
|
5
|
+
resting state under `prefers-reduced-motion`, since the indicator is the only thing on screen
|
|
6
|
+
saying "working". Direction-sensitive variants read the root's `dir`, so a sweep travels from
|
|
7
|
+
the start of the line to its end. */
|
|
8
|
+
|
|
9
|
+
@layer gentiq-components {
|
|
10
|
+
@scope (.gentiq) {
|
|
11
|
+
[data-gentiq-loader]:not([data-gentiq-loader='dots']) > .gentiq-loader-dot {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Breathing orb: a lit core with a halo pushing out of it on the same beat. */
|
|
16
|
+
|
|
17
|
+
.gentiq-loader-orb {
|
|
18
|
+
/* Each variant sets its own `display`: a bare <span> is inline, where width
|
|
19
|
+
and height are ignored, so a variant must not depend on its container
|
|
20
|
+
being a flex box to have a size at all. */
|
|
21
|
+
display: block;
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 0.75rem;
|
|
24
|
+
height: 0.75rem;
|
|
25
|
+
|
|
26
|
+
/* Halo and core are pseudo-elements so the variant stays a single span:
|
|
27
|
+
nothing else needs to know how many pieces a given loader is made of. */
|
|
28
|
+
&::before,
|
|
29
|
+
&::after {
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
inset: 0;
|
|
33
|
+
border-radius: 9999px;
|
|
34
|
+
background-color: var(--gentiq-primary);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::before {
|
|
38
|
+
animation: gentiq-orb-halo 1.8s ease-out infinite;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
/* Not `--gentiq-glow`: that token is brand-tinted in light mode but a neutral
|
|
43
|
+
foreground haze in dark, which would drop the orb's colour at night. */
|
|
44
|
+
box-shadow: 0 0 12px color-mix(in oklch, var(--gentiq-primary) 35%, transparent);
|
|
45
|
+
animation: gentiq-orb-core 1.8s ease-in-out infinite;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (prefers-reduced-motion: reduce) {
|
|
49
|
+
&::before {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::after {
|
|
54
|
+
animation: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Cross: two dots trading places along a single horizontal line, passing
|
|
60
|
+
through each other at the middle rather than turning back from it.
|
|
61
|
+
|
|
62
|
+
Both run one keyframe, the second offset by half its period — that is what
|
|
63
|
+
guarantees they are always equal distances either side of the centre and
|
|
64
|
+
meet exactly at it, where separate mirrored keyframes would drift apart the
|
|
65
|
+
moment either is edited.
|
|
66
|
+
|
|
67
|
+
The dots differ in weight on purpose. Two identical dots meeting and parting
|
|
68
|
+
are indistinguishable from two dots bouncing off each other, since the pass
|
|
69
|
+
itself is hidden in the frame where they coincide. Giving the trailing dot
|
|
70
|
+
less weight and painting the solid one over it makes the crossing legible:
|
|
71
|
+
one clearly goes behind the other and comes out the far side. */
|
|
72
|
+
|
|
73
|
+
.gentiq-loader-cross {
|
|
74
|
+
display: block;
|
|
75
|
+
position: relative;
|
|
76
|
+
width: 1.25rem;
|
|
77
|
+
height: 0.3125rem;
|
|
78
|
+
|
|
79
|
+
& > span {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 0;
|
|
82
|
+
left: 50%;
|
|
83
|
+
width: 0.3125rem;
|
|
84
|
+
height: 0.3125rem;
|
|
85
|
+
margin-left: -0.15625rem;
|
|
86
|
+
border-radius: 9999px;
|
|
87
|
+
background-color: var(--gentiq-primary);
|
|
88
|
+
/* Eased at both ends, so the pair is slowest at the extremes and quickest
|
|
89
|
+
through each other — the crossing is the moment worth reading. */
|
|
90
|
+
animation: gentiq-cross-slide 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
& > span:nth-child(1) {
|
|
94
|
+
opacity: 0.5;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& > span:nth-child(2) {
|
|
98
|
+
animation-delay: -0.7s;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Frozen, the offset that separated them is gone and both keyframes read
|
|
102
|
+
0%, so the two would sit stacked on the left. State the resting pair. */
|
|
103
|
+
@media (prefers-reduced-motion: reduce) {
|
|
104
|
+
& > span {
|
|
105
|
+
animation: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& > span:nth-child(1) {
|
|
109
|
+
transform: translateX(-0.375rem);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
& > span:nth-child(2) {
|
|
113
|
+
transform: translateX(0.375rem);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Triangle: three dots held in a rigid triangle, turned a third of a turn at
|
|
119
|
+
a time — accelerating out of each rest and settling into the next, so it
|
|
120
|
+
reads as something turning to face the next thing rather than as a motor
|
|
121
|
+
running at a constant rate. The flat pairs are the rests; the bezier
|
|
122
|
+
between them does the acceleration and the settle.
|
|
123
|
+
|
|
124
|
+
All three steps are written out to land on 360° rather than looping a
|
|
125
|
+
single 120° step. The figure has three-fold symmetry, so one step ends
|
|
126
|
+
where it began geometrically — but `rotate(120deg)` and `rotate(0deg)`
|
|
127
|
+
do not rasterize to the same pixels, and the dots jumped about a pixel
|
|
128
|
+
each time the shorter loop wrapped. `rotate(360deg)` is the identity
|
|
129
|
+
matrix, so this one wraps on an exactly identical frame. */
|
|
130
|
+
|
|
131
|
+
.gentiq-loader-triangle {
|
|
132
|
+
display: block;
|
|
133
|
+
position: relative;
|
|
134
|
+
width: 1.375rem;
|
|
135
|
+
height: 1.375rem;
|
|
136
|
+
/* Three steps per cycle, so 2.85s is the same 0.95s-per-turn cadence. */
|
|
137
|
+
animation: gentiq-triangle-turn 2.85s cubic-bezier(0.7, 0, 0.3, 1) infinite;
|
|
138
|
+
|
|
139
|
+
/* Each child is a full-size layer holding one dot at its top edge, so the
|
|
140
|
+
three vertices are placed by rotating the layers rather than by working
|
|
141
|
+
out their coordinates. The parent then turns all three as one body. */
|
|
142
|
+
& > span {
|
|
143
|
+
position: absolute;
|
|
144
|
+
inset: 0;
|
|
145
|
+
|
|
146
|
+
&::before {
|
|
147
|
+
content: '';
|
|
148
|
+
position: absolute;
|
|
149
|
+
top: 0;
|
|
150
|
+
left: 50%;
|
|
151
|
+
width: 0.3125rem;
|
|
152
|
+
height: 0.3125rem;
|
|
153
|
+
margin-left: -0.15625rem;
|
|
154
|
+
border-radius: 9999px;
|
|
155
|
+
background-color: var(--gentiq-primary);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:nth-child(2) {
|
|
159
|
+
transform: rotate(120deg);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&:nth-child(3) {
|
|
163
|
+
transform: rotate(240deg);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Uniform opacity on purpose: fading the trailing dots would make the
|
|
168
|
+
rotation legible but would also break the 120° symmetry the seamless
|
|
169
|
+
loop depends on. Still, the triangle is a shape rather than a smear. */
|
|
170
|
+
@media (prefers-reduced-motion: reduce) {
|
|
171
|
+
animation: none;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Comet: a head with a trail decaying behind it. A conic gradient masked down
|
|
176
|
+
to a ring is what makes the fade continuous — three or four discrete dots
|
|
177
|
+
at falling opacity approximate the same idea but betray themselves as
|
|
178
|
+
separate objects the moment they move. */
|
|
179
|
+
|
|
180
|
+
.gentiq-loader-comet {
|
|
181
|
+
display: block;
|
|
182
|
+
width: 1.25rem;
|
|
183
|
+
height: 1.25rem;
|
|
184
|
+
border-radius: 9999px;
|
|
185
|
+
background-image: conic-gradient(
|
|
186
|
+
from 0deg,
|
|
187
|
+
transparent 0deg,
|
|
188
|
+
color-mix(in oklab, var(--gentiq-primary) 22%, transparent) 60deg,
|
|
189
|
+
color-mix(in oklab, var(--gentiq-primary) 62%, transparent) 200deg,
|
|
190
|
+
color-mix(in oklab, var(--gentiq-primary) 92%, transparent) 300deg,
|
|
191
|
+
var(--gentiq-primary) 352deg,
|
|
192
|
+
transparent 360deg
|
|
193
|
+
);
|
|
194
|
+
/* Punches out the middle, leaving a 2px ring. `farthest-side` keeps the
|
|
195
|
+
stop tied to the box, so the ring stays 2px at any size the variant is
|
|
196
|
+
given. */
|
|
197
|
+
-webkit-mask-image: radial-gradient(
|
|
198
|
+
farthest-side,
|
|
199
|
+
transparent calc(100% - 2px),
|
|
200
|
+
#000 calc(100% - 2px)
|
|
201
|
+
);
|
|
202
|
+
mask-image: radial-gradient(
|
|
203
|
+
farthest-side,
|
|
204
|
+
transparent calc(100% - 2px),
|
|
205
|
+
#000 calc(100% - 2px)
|
|
206
|
+
);
|
|
207
|
+
animation: gentiq-comet-spin 1s linear infinite;
|
|
208
|
+
|
|
209
|
+
@media (prefers-reduced-motion: reduce) {
|
|
210
|
+
animation: none;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Aurora: layered light swirling behind a circular window. The only variant
|
|
215
|
+
that is not a hard-edged shape and the only one carrying more than one hue,
|
|
216
|
+
so it is the loudest of the set by some distance.
|
|
217
|
+
|
|
218
|
+
Two conic gradients turning against each other is what produces the swirl:
|
|
219
|
+
one alone reads as a rotating pinwheel because the eye locks onto its seam,
|
|
220
|
+
while a second running the other way at a different period keeps breaking
|
|
221
|
+
that up, and the blur welds the two into one moving field. The third layer
|
|
222
|
+
is a fixed highlight that stops the middle from going flat.
|
|
223
|
+
|
|
224
|
+
Hues are derived from the brand colour, so the swirl stays in key whatever
|
|
225
|
+
`--gentiq-primary` is. Where relative colour syntax is unsupported the `@supports`
|
|
226
|
+
block simply never applies and all three stops collapse to `--gentiq-primary` — a
|
|
227
|
+
single-hue swirl rather than a broken one. */
|
|
228
|
+
|
|
229
|
+
.gentiq-loader-aurora {
|
|
230
|
+
display: block;
|
|
231
|
+
position: relative;
|
|
232
|
+
width: 1.75rem;
|
|
233
|
+
height: 1.75rem;
|
|
234
|
+
|
|
235
|
+
/* No clip and no fill of its own — the swirl is meant to melt out rather
|
|
236
|
+
than sit inside a disc. A radial mask takes the layers from solid at the
|
|
237
|
+
core to nothing before the edge, so the colour dissolves into whatever is
|
|
238
|
+
behind it instead of ending on a rim.
|
|
239
|
+
|
|
240
|
+
`no-repeat` matters as much as the gradient: a mask layer tiles by
|
|
241
|
+
default, and the layers below are deliberately larger than this box, so
|
|
242
|
+
without it the falloff would repeat across them and paint the ghost discs
|
|
243
|
+
the mask exists to prevent. */
|
|
244
|
+
-webkit-mask-image: radial-gradient(
|
|
245
|
+
closest-side,
|
|
246
|
+
#000 22%,
|
|
247
|
+
rgba(0, 0, 0, 0.85) 48%,
|
|
248
|
+
rgba(0, 0, 0, 0.35) 74%,
|
|
249
|
+
transparent 100%
|
|
250
|
+
);
|
|
251
|
+
mask-image: radial-gradient(
|
|
252
|
+
closest-side,
|
|
253
|
+
#000 22%,
|
|
254
|
+
rgba(0, 0, 0, 0.85) 48%,
|
|
255
|
+
rgba(0, 0, 0, 0.35) 74%,
|
|
256
|
+
transparent 100%
|
|
257
|
+
);
|
|
258
|
+
-webkit-mask-repeat: no-repeat;
|
|
259
|
+
mask-repeat: no-repeat;
|
|
260
|
+
|
|
261
|
+
--gentiq-aurora-lead: var(--gentiq-primary);
|
|
262
|
+
--gentiq-aurora-trail: var(--gentiq-primary);
|
|
263
|
+
|
|
264
|
+
@supports (color: oklch(from red l c h)) {
|
|
265
|
+
--gentiq-aurora-lead: oklch(from var(--gentiq-primary) l c calc(h - 58));
|
|
266
|
+
--gentiq-aurora-trail: oklch(from var(--gentiq-primary) l c calc(h + 58));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
& > span {
|
|
270
|
+
position: absolute;
|
|
271
|
+
/* Oversized so the mask's falloff lands on colour the whole way round
|
|
272
|
+
rather than on a layer edge that has already run out. */
|
|
273
|
+
inset: -25%;
|
|
274
|
+
border-radius: 9999px;
|
|
275
|
+
filter: blur(4px);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
& > span:nth-child(1) {
|
|
279
|
+
background-image: conic-gradient(
|
|
280
|
+
from 0deg,
|
|
281
|
+
var(--gentiq-aurora-lead),
|
|
282
|
+
var(--gentiq-primary),
|
|
283
|
+
var(--gentiq-aurora-trail),
|
|
284
|
+
var(--gentiq-aurora-lead)
|
|
285
|
+
);
|
|
286
|
+
animation: gentiq-aurora-turn 3.1s linear infinite;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
& > span:nth-child(2) {
|
|
290
|
+
background-image: conic-gradient(
|
|
291
|
+
from 140deg,
|
|
292
|
+
transparent,
|
|
293
|
+
var(--gentiq-aurora-trail),
|
|
294
|
+
transparent,
|
|
295
|
+
var(--gentiq-aurora-lead),
|
|
296
|
+
transparent
|
|
297
|
+
);
|
|
298
|
+
opacity: 0.75;
|
|
299
|
+
animation: gentiq-aurora-counter 4.7s linear infinite;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Off-centre on purpose: a highlight in the middle would just read as a
|
|
303
|
+
specular dot and flatten the swirl into a bead. */
|
|
304
|
+
& > span:nth-child(3) {
|
|
305
|
+
background-image: radial-gradient(
|
|
306
|
+
circle at 34% 30%,
|
|
307
|
+
color-mix(in oklab, var(--gentiq-primary) 25%, white) 0%,
|
|
308
|
+
transparent 58%
|
|
309
|
+
);
|
|
310
|
+
animation: gentiq-aurora-breathe 2.7s ease-in-out infinite;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@media (prefers-reduced-motion: reduce) {
|
|
314
|
+
& > span {
|
|
315
|
+
animation: none;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@keyframes gentiq-orb-core {
|
|
323
|
+
0%,
|
|
324
|
+
100% {
|
|
325
|
+
transform: scale(0.9);
|
|
326
|
+
opacity: 0.6;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
50% {
|
|
330
|
+
transform: scale(1.14);
|
|
331
|
+
opacity: 1;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
@keyframes gentiq-orb-halo {
|
|
336
|
+
0% {
|
|
337
|
+
transform: scale(0.7);
|
|
338
|
+
opacity: 0.45;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
70%,
|
|
342
|
+
100% {
|
|
343
|
+
transform: scale(2.2);
|
|
344
|
+
opacity: 0;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@keyframes gentiq-cross-slide {
|
|
349
|
+
0% {
|
|
350
|
+
transform: translateX(-0.375rem);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
50% {
|
|
354
|
+
transform: translateX(0.375rem);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
100% {
|
|
358
|
+
transform: translateX(-0.375rem);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@keyframes gentiq-triangle-turn {
|
|
363
|
+
0%,
|
|
364
|
+
9% {
|
|
365
|
+
transform: rotate(0deg);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
33%,
|
|
369
|
+
42% {
|
|
370
|
+
transform: rotate(120deg);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
66%,
|
|
374
|
+
75% {
|
|
375
|
+
transform: rotate(240deg);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
100% {
|
|
379
|
+
transform: rotate(360deg);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
@keyframes gentiq-comet-spin {
|
|
384
|
+
to {
|
|
385
|
+
transform: rotate(360deg);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@keyframes gentiq-aurora-turn {
|
|
390
|
+
to {
|
|
391
|
+
transform: rotate(360deg);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@keyframes gentiq-aurora-counter {
|
|
396
|
+
to {
|
|
397
|
+
transform: rotate(-360deg);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
@keyframes gentiq-aurora-breathe {
|
|
402
|
+
0%,
|
|
403
|
+
100% {
|
|
404
|
+
opacity: 0.55;
|
|
405
|
+
transform: scale(1);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
50% {
|
|
409
|
+
opacity: 0.9;
|
|
410
|
+
transform: scale(1.18);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import { c as t } from "./shared-BtZa4J_w.js";
|
|
5
|
+
function d({ className: r, ...e }) {
|
|
6
|
+
return /* @__PURE__ */ i(
|
|
7
|
+
"textarea",
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "textarea",
|
|
10
|
+
className: t(
|
|
11
|
+
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
12
|
+
r
|
|
13
|
+
),
|
|
14
|
+
...e
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
d as T
|
|
20
|
+
};
|