@luminescent/ui 0.4.1 → 0.5.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/README.md +8 -1
- package/lib/index.qwik.cjs +350 -246
- package/lib/index.qwik.mjs +351 -247
- package/lib-types/components/elements/Button.d.ts +1 -0
- package/lib-types/components/elements/Card.d.ts +11 -1
- package/lib-types/components/elements/ColorInput.d.ts +2 -2
- package/lib-types/components/elements/SelectInput.d.ts +6 -5
- package/lib-types/components/elements/{TextAreaInput.d.ts → TextArea.d.ts} +4 -3
- package/lib-types/components/elements/TextInput.d.ts +1 -0
- package/lib-types/components/elements.d.ts +1 -2
- package/lib-types/svg/ChevronDown.d.ts +2 -0
- package/lib-types/svg/Minus.d.ts +2 -0
- package/lib-types/svg/Plus.d.ts +2 -0
- package/lib-types/tailwind.config.d.ts +1 -0
- package/lib-types/utils/simple-color-picker/color.d.ts +1 -0
- package/package.json +2 -2
- package/src/tailwind.config.js +6 -3
- package/lib-types/components/elements/OutputField.d.ts +0 -19
- package/lib-types/tailwind-config.d.ts +0 -114
package/lib/index.qwik.cjs
CHANGED
|
@@ -10,21 +10,22 @@ const Anchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
10
10
|
], "p0.id")
|
|
11
11
|
}, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
|
|
12
12
|
const buttonColorClasses = {
|
|
13
|
-
blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500
|
|
14
|
-
purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500
|
|
15
|
-
pink: "bg-pink-600/90 border-pink-500 hover:bg-pink-500
|
|
16
|
-
gray: "bg-gray-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 active:bg-blue-400 focus:border-blue-400",
|
|
14
|
+
purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 active:bg-purple-400 focus:border-purple-400",
|
|
15
|
+
pink: "bg-pink-600/90 border-pink-500 hover:bg-pink-500 active:bg-pink-400 focus:border-pink-400",
|
|
16
|
+
gray: "bg-gray-700/90 border-gray-600 hover:bg-gray-600 active:bg-gray-500 focus:border-gray-500",
|
|
17
|
+
darkgray: "bg-gray-800/90 border-gray-700 hover:bg-gray-700 active:bg-gray-600 focus:border-gray-600",
|
|
18
|
+
red: "bg-red-700/90 border-red-600 hover:bg-red-600 active:bg-red-500 focus:border-red-500",
|
|
19
|
+
green: "bg-green-700/90 border-green-600 hover:bg-green-600 active:bg-green-500 focus:border-green-500",
|
|
20
|
+
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500"
|
|
20
21
|
};
|
|
21
22
|
const sizeClasses = {
|
|
22
|
-
sm: "text-sm px-2 py-1 rounded-md gap-2",
|
|
23
|
+
sm: "text-sm px-2 py-1 rounded-md gap-2 active:px-1",
|
|
23
24
|
md: "text-base px-4 py-2 rounded-md gap-3",
|
|
24
25
|
lg: "text-base px-6 py-3 rounded-lg gap-3",
|
|
25
26
|
xl: "text-base px-8 py-4 rounded-xl gap-4"
|
|
26
27
|
};
|
|
27
|
-
const buttonClass = "relative flex items-center gap-3 transition ease-in-out border text-gray-50 fill-gray-50 disabled:opacity-50";
|
|
28
|
+
const buttonClass = "relative flex items-center gap-3 transition ease-in-out border text-gray-50 fill-gray-50 disabled:opacity-50 hover:shadow-lg active:scale-95";
|
|
28
29
|
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
29
30
|
const props1 = qwik._restProps(props, [
|
|
30
31
|
"color",
|
|
@@ -32,7 +33,7 @@ const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
32
33
|
]);
|
|
33
34
|
props1.class = {
|
|
34
35
|
[buttonClass]: true,
|
|
35
|
-
[buttonColorClasses[props.color ?? "
|
|
36
|
+
[buttonColorClasses[props.color ?? "darkgray"]]: true,
|
|
36
37
|
[sizeClasses[props.size ?? "md"]]: true,
|
|
37
38
|
...props1.class
|
|
38
39
|
};
|
|
@@ -48,7 +49,7 @@ const ButtonAnchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
48
49
|
]);
|
|
49
50
|
props1.class = {
|
|
50
51
|
[buttonClass]: true,
|
|
51
|
-
[buttonColorClasses[props.color ?? "
|
|
52
|
+
[buttonColorClasses[props.color ?? "darkgray"]]: true,
|
|
52
53
|
[sizeClasses[props.size ?? "md"]]: true,
|
|
53
54
|
...props1.class
|
|
54
55
|
};
|
|
@@ -58,7 +59,9 @@ const ButtonAnchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
58
59
|
}, null, 0, "7H_3");
|
|
59
60
|
}, "ButtonAnchor_component_vQT9xS0lqew"));
|
|
60
61
|
const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
61
|
-
return /* @__PURE__ */ qwik.
|
|
62
|
+
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
63
|
+
class: "animate-spin"
|
|
64
|
+
}, /* @__PURE__ */ qwik._jsxS("svg", {
|
|
62
65
|
...props,
|
|
63
66
|
children: [
|
|
64
67
|
/* @__PURE__ */ qwik._jsxQ("circle", null, {
|
|
@@ -76,23 +79,17 @@ const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
76
79
|
}, null, 3, null)
|
|
77
80
|
]
|
|
78
81
|
}, {
|
|
79
|
-
class: qwik._fnSignal((p0) => ({
|
|
80
|
-
"animate-spin": true,
|
|
81
|
-
...p0.class
|
|
82
|
-
}), [
|
|
83
|
-
props
|
|
84
|
-
], '{"animate-spin":true,...p0.class}'),
|
|
85
|
-
fill: "none",
|
|
86
82
|
viewBox: "0 0 24 24",
|
|
87
83
|
xmlns: "http://www.w3.org/2000/svg"
|
|
88
|
-
}, 0, "XP_0");
|
|
84
|
+
}, 0, null), 1, "XP_0");
|
|
89
85
|
}, "LoadingIcon_component_iXFSRNToIus"));
|
|
90
86
|
const cardColorClasses = {
|
|
91
87
|
pink: {
|
|
92
88
|
card: {
|
|
93
89
|
bg_blobs: "bg-pink-400/10 border-pink-400/20",
|
|
94
90
|
bg: "bg-pink-400/60 border-pink-400",
|
|
95
|
-
hover: "hover:bg-pink-400/20"
|
|
91
|
+
hover: "hover:bg-pink-400/20",
|
|
92
|
+
click: "active:bg-pink-300/20"
|
|
96
93
|
},
|
|
97
94
|
blobs: [
|
|
98
95
|
"bg-pink-400",
|
|
@@ -102,9 +99,10 @@ const cardColorClasses = {
|
|
|
102
99
|
},
|
|
103
100
|
red: {
|
|
104
101
|
card: {
|
|
105
|
-
bg_blobs: "bg-
|
|
102
|
+
bg_blobs: "bg-red-400/10 border-red-400/20",
|
|
106
103
|
bg: "bg-red-400/60 border-red-400",
|
|
107
|
-
hover: "hover:bg-
|
|
104
|
+
hover: "hover:bg-red-400/20",
|
|
105
|
+
click: "active:bg-red-300/20"
|
|
108
106
|
},
|
|
109
107
|
blobs: [
|
|
110
108
|
"bg-red-400",
|
|
@@ -116,7 +114,8 @@ const cardColorClasses = {
|
|
|
116
114
|
card: {
|
|
117
115
|
bg_blobs: "bg-orange-400/10 border-orange-400/20",
|
|
118
116
|
bg: "bg-orange-400/60 border-orange-400",
|
|
119
|
-
hover: "hover:bg-orange-400/20"
|
|
117
|
+
hover: "hover:bg-orange-400/20",
|
|
118
|
+
click: "active:bg-orange-300/20"
|
|
120
119
|
},
|
|
121
120
|
blobs: [
|
|
122
121
|
"bg-orange-400",
|
|
@@ -128,7 +127,8 @@ const cardColorClasses = {
|
|
|
128
127
|
card: {
|
|
129
128
|
bg_blobs: "bg-yellow-400/10 border-yellow-400/20",
|
|
130
129
|
bg: "bg-yellow-400/60 border-yellow-400",
|
|
131
|
-
hover: "hover:bg-yellow-400/20"
|
|
130
|
+
hover: "hover:bg-yellow-400/20",
|
|
131
|
+
click: "active:bg-yellow-300/20"
|
|
132
132
|
},
|
|
133
133
|
blobs: [
|
|
134
134
|
"bg-yellow-400",
|
|
@@ -140,7 +140,8 @@ const cardColorClasses = {
|
|
|
140
140
|
card: {
|
|
141
141
|
bg_blobs: "bg-green-400/10 border-green-400/20",
|
|
142
142
|
bg: "bg-green-400/60 border-green-400",
|
|
143
|
-
hover: "hover:bg-green-400/20"
|
|
143
|
+
hover: "hover:bg-green-400/20",
|
|
144
|
+
click: "active:bg-green-300/20"
|
|
144
145
|
},
|
|
145
146
|
blobs: [
|
|
146
147
|
"bg-green-400",
|
|
@@ -152,7 +153,8 @@ const cardColorClasses = {
|
|
|
152
153
|
card: {
|
|
153
154
|
bg_blobs: "bg-blue-400/10 border-blue-400/20",
|
|
154
155
|
bg: "bg-blue-400/60 border-blue-400",
|
|
155
|
-
hover: "hover:bg-blue-400/20"
|
|
156
|
+
hover: "hover:bg-blue-400/20",
|
|
157
|
+
click: "active:bg-blue-300/20"
|
|
156
158
|
},
|
|
157
159
|
blobs: [
|
|
158
160
|
"bg-blue-400",
|
|
@@ -164,7 +166,8 @@ const cardColorClasses = {
|
|
|
164
166
|
card: {
|
|
165
167
|
bg_blobs: "bg-purple-400/10 border-purple-400/20",
|
|
166
168
|
bg: "bg-purple-400/60 border-purple-400",
|
|
167
|
-
hover: "hover:bg-purple-400/20"
|
|
169
|
+
hover: "hover:bg-purple-400/20",
|
|
170
|
+
click: "active:bg-purple-300/20"
|
|
168
171
|
},
|
|
169
172
|
blobs: [
|
|
170
173
|
"bg-purple-400",
|
|
@@ -176,7 +179,8 @@ const cardColorClasses = {
|
|
|
176
179
|
card: {
|
|
177
180
|
bg_blobs: "bg-gray-400/10 border-gray-400/20",
|
|
178
181
|
bg: "bg-gray-400/60 border-gray-400",
|
|
179
|
-
hover: "hover:bg-gray-400/20"
|
|
182
|
+
hover: "hover:bg-gray-400/20",
|
|
183
|
+
click: "active:bg-gray-300/20"
|
|
180
184
|
},
|
|
181
185
|
blobs: [
|
|
182
186
|
"bg-gray-400",
|
|
@@ -188,7 +192,8 @@ const cardColorClasses = {
|
|
|
188
192
|
card: {
|
|
189
193
|
bg_blobs: "bg-gray-800/10 border-gray-800/20",
|
|
190
194
|
bg: "bg-gray-800/60 border-gray-800",
|
|
191
|
-
hover: "hover:bg-gray-800/20"
|
|
195
|
+
hover: "hover:bg-gray-800/20",
|
|
196
|
+
click: "active:bg-gray-700/20"
|
|
192
197
|
},
|
|
193
198
|
blobs: [
|
|
194
199
|
"bg-gray-400",
|
|
@@ -200,7 +205,8 @@ const cardColorClasses = {
|
|
|
200
205
|
card: {
|
|
201
206
|
bg_blobs: "bg-gray-900/10 border-gray-900/20",
|
|
202
207
|
bg: "bg-gray-900/60 border-gray-900",
|
|
203
|
-
hover: "hover:bg-gray-900/20"
|
|
208
|
+
hover: "hover:bg-gray-900/20",
|
|
209
|
+
click: "active:bg-gray-800/20"
|
|
204
210
|
},
|
|
205
211
|
blobs: [
|
|
206
212
|
"bg-gray-400",
|
|
@@ -221,17 +227,12 @@ const blobClasses = [
|
|
|
221
227
|
const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
222
228
|
const props1 = qwik._restProps(props, [
|
|
223
229
|
"color",
|
|
224
|
-
"
|
|
230
|
+
"hover",
|
|
225
231
|
"href",
|
|
226
232
|
"row",
|
|
227
233
|
"blobs"
|
|
228
234
|
]);
|
|
229
|
-
qwik.useStylesQrl(/* @__PURE__ */ qwik.inlinedQrl(`
|
|
230
|
-
.-animation-delay-5 { animation-delay: -5s; }
|
|
231
|
-
.-animation-delay-10 { animation-delay: -10s; }
|
|
232
|
-
`, "Card_component_useStyles_POiiuoB0EmE"));
|
|
233
235
|
const blob = Math.round(Math.random() * 6);
|
|
234
|
-
const button = !!props1.onClick$ || props.hoverable;
|
|
235
236
|
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
236
237
|
...props1,
|
|
237
238
|
children: /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
@@ -246,7 +247,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
246
247
|
], "p0.href")
|
|
247
248
|
}, null, 3, "OW_0"),
|
|
248
249
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
249
|
-
class: "relative
|
|
250
|
+
class: "relative"
|
|
250
251
|
}, /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
251
252
|
class: qwik._fnSignal((p0) => ({
|
|
252
253
|
"flex gap-4": true,
|
|
@@ -257,7 +258,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
257
258
|
], '{"flex gap-4":true,"flex-col":!p0.row,"flex-row items-center":p0.row}')
|
|
258
259
|
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_1"), 1, null), 1, null),
|
|
259
260
|
props.blobs && /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
260
|
-
class: "absolute -z-10 inset-0 w-full h-full transition-all overflow-clip",
|
|
261
|
+
class: "absolute -z-10 inset-0 w-full h-full transition-all overflow-clip animate-in fade-in anim-duration-[2s]",
|
|
261
262
|
style: {
|
|
262
263
|
containerType: "size"
|
|
263
264
|
}
|
|
@@ -272,7 +273,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
272
273
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
273
274
|
class: {
|
|
274
275
|
"absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out blur-xl": true,
|
|
275
|
-
"-
|
|
276
|
+
"anim-delay-[-5s]": true,
|
|
276
277
|
[blobClasses[blob]]: true,
|
|
277
278
|
[cardColorClasses[props.color ?? "darkgray"].blobs[1]]: true
|
|
278
279
|
}
|
|
@@ -280,7 +281,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
280
281
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
281
282
|
class: {
|
|
282
283
|
"absolute top-0 w-[30cqw] h-[30cqw] rounded-full opacity-20 ease-in-out blur-xl": true,
|
|
283
|
-
"-
|
|
284
|
+
"anim-delay-[-10s]": true,
|
|
284
285
|
[blobClasses[blob]]: true,
|
|
285
286
|
[cardColorClasses[props.color ?? "darkgray"].blobs[2]]: true
|
|
286
287
|
}
|
|
@@ -291,8 +292,8 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
291
292
|
"flex-1 relative border rounded-lg group transition-all": true,
|
|
292
293
|
[cardColorClasses[props.color ?? "darkgray"].card.bg]: !props.blobs,
|
|
293
294
|
[cardColorClasses[props.color ?? "darkgray"].card.bg_blobs]: props.blobs,
|
|
294
|
-
[cardColorClasses[props.color ?? "darkgray"].card.hover]: props.
|
|
295
|
-
"
|
|
295
|
+
[cardColorClasses[props.color ?? "darkgray"].card.hover + " hover:shadow-lg"]: props.hover,
|
|
296
|
+
[cardColorClasses[props.color ?? "darkgray"].card.click + " active:scale-[99%] cursor-pointer"]: props.hover == "clickable",
|
|
296
297
|
...props1.class
|
|
297
298
|
}
|
|
298
299
|
}, null, 0, "OW_3");
|
|
@@ -347,12 +348,13 @@ const CardHeader = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
347
348
|
}, 3, "OW_7"), 1, "OW_8")
|
|
348
349
|
], 1, "OW_9");
|
|
349
350
|
}, "CardHeader_component_2xQZ6Uv7R4A"));
|
|
351
|
+
const InputClasses = "transition ease-in-out text-lg border border-gray-700 bg-gray-800 text-gray-50 hover:bg-gray-700 hover:shadow-lg focus:bg-gray-700 focus:outline-none focus:border-gray-400 rounded-md px-3 py-2";
|
|
350
352
|
const TextInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
351
353
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
352
354
|
class: "flex flex-col"
|
|
353
355
|
}, [
|
|
354
356
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
355
|
-
class: "
|
|
357
|
+
class: "pb-2",
|
|
356
358
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
357
359
|
props
|
|
358
360
|
], "p0.id")
|
|
@@ -367,7 +369,7 @@ const TextInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
367
369
|
return /* @__PURE__ */ qwik._jsxS("input", {
|
|
368
370
|
...props,
|
|
369
371
|
class: {
|
|
370
|
-
|
|
372
|
+
[InputClasses]: true,
|
|
371
373
|
...props.class
|
|
372
374
|
}
|
|
373
375
|
}, null, 0, "dC_3");
|
|
@@ -436,8 +438,7 @@ class Color {
|
|
|
436
438
|
this._updateBrightness();
|
|
437
439
|
}
|
|
438
440
|
_updateBrightness() {
|
|
439
|
-
|
|
440
|
-
this._brightness = (r * 299 + g * 587 + b * 114) / 1e3;
|
|
441
|
+
this._brightness = getBrightness(this._rgba);
|
|
441
442
|
this._isDark = this._brightness < 0.5;
|
|
442
443
|
this._isLight = !this._isDark;
|
|
443
444
|
}
|
|
@@ -463,6 +464,10 @@ class Color {
|
|
|
463
464
|
return this._isLight;
|
|
464
465
|
}
|
|
465
466
|
}
|
|
467
|
+
function getBrightness(color) {
|
|
468
|
+
const { r, g, b } = color;
|
|
469
|
+
return (r * 299 + g * 587 + b * 114) / 1e3;
|
|
470
|
+
}
|
|
466
471
|
function hexNumberToRgb(color) {
|
|
467
472
|
const r = (color >> 16 & 255) / 255;
|
|
468
473
|
const g = (color >> 8 & 255) / 255;
|
|
@@ -876,7 +881,8 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
876
881
|
const props1 = qwik._restProps(props, [
|
|
877
882
|
"onInput$",
|
|
878
883
|
"value",
|
|
879
|
-
"presetColors"
|
|
884
|
+
"presetColors",
|
|
885
|
+
"preview"
|
|
880
886
|
]);
|
|
881
887
|
qwik.useStylesQrl(/* @__PURE__ */ qwik.inlinedQrl(`
|
|
882
888
|
.color-picker {
|
|
@@ -892,6 +898,7 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
892
898
|
backdrop-filter: blur(10px);
|
|
893
899
|
user-select: none;
|
|
894
900
|
position: relative;
|
|
901
|
+
z-index: 1000;
|
|
895
902
|
}
|
|
896
903
|
|
|
897
904
|
.color-picker-saturation {
|
|
@@ -920,8 +927,7 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
920
927
|
top: -7px;
|
|
921
928
|
left: -7px;
|
|
922
929
|
box-sizing: border-box;
|
|
923
|
-
|
|
924
|
-
}
|
|
930
|
+
≈ }
|
|
925
931
|
|
|
926
932
|
.color-picker-hue {
|
|
927
933
|
width: 8px;
|
|
@@ -963,11 +969,10 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
963
969
|
top: -6px;
|
|
964
970
|
left: -4px;
|
|
965
971
|
box-sizing: border-box;
|
|
966
|
-
z-index: 10;
|
|
967
972
|
}
|
|
968
973
|
`, "ColorInput_component_useStyles_SMNFl4Oy0IA"));
|
|
969
974
|
const store = qwik.useStore({
|
|
970
|
-
value: (props.value ?? "#
|
|
975
|
+
value: (props.value ?? "#000000") || "#FFFFFF"
|
|
971
976
|
});
|
|
972
977
|
return /* @__PURE__ */ qwik._jsxQ("div", null, null, [
|
|
973
978
|
/* @__PURE__ */ qwik._jsxQ("label", {
|
|
@@ -983,7 +988,7 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
983
988
|
onBlur$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
984
989
|
const [props12] = qwik.useLexicalScope();
|
|
985
990
|
const pickerDiv = document.getElementById(`${props12.id}-color-picker`);
|
|
986
|
-
pickerDiv.
|
|
991
|
+
pickerDiv.classList.add("opacity-0", "pointer-events-none", "scale-95");
|
|
987
992
|
}, "ColorInput_component_div_TextInputRaw_onBlur_giB7aSy8tnc", [
|
|
988
993
|
props1
|
|
989
994
|
]),
|
|
@@ -1011,23 +1016,25 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
1011
1016
|
picker.setColor(element.value);
|
|
1012
1017
|
});
|
|
1013
1018
|
}
|
|
1014
|
-
pickerDiv.
|
|
1019
|
+
pickerDiv.classList.remove("opacity-0", "pointer-events-none", "scale-95");
|
|
1015
1020
|
}, "ColorInput_component_div_TextInputRaw_onFocus_9bHrhSeTgfI", [
|
|
1016
1021
|
props1,
|
|
1017
1022
|
props,
|
|
1018
1023
|
store
|
|
1019
1024
|
]),
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
+
style: (props.preview ?? "left") == "full" ? {
|
|
1026
|
+
backgroundColor: `${store.value}`,
|
|
1027
|
+
color: getBrightness(hexNumberToRgb(hexStringToNumber(store.value))) > 0.5 ? "black" : "white"
|
|
1028
|
+
} : (props.preview ?? "left") == "left" ? {
|
|
1029
|
+
borderLeft: `40px solid ${store.value}`
|
|
1030
|
+
} : (props.preview ?? "left") == "right" ? {
|
|
1031
|
+
borderRight: `40px solid ${store.value}`
|
|
1032
|
+
} : (props.preview ?? "left") == "top" ? {
|
|
1033
|
+
borderTop: `10px solid ${store.value}`
|
|
1034
|
+
} : (props.preview ?? "left") == "bottom" ? {
|
|
1035
|
+
borderBottom: `10px solid ${store.value}`
|
|
1036
|
+
} : {},
|
|
1025
1037
|
[qwik._IMMUTABLE]: {
|
|
1026
|
-
style: qwik._fnSignal((p0) => ({
|
|
1027
|
-
borderLeft: `40px solid ${p0.value}`
|
|
1028
|
-
}), [
|
|
1029
|
-
store
|
|
1030
|
-
], "{borderLeft:`40px solid ${p0.value}`}"),
|
|
1031
1038
|
value: qwik._fnSignal((p0) => p0.value, [
|
|
1032
1039
|
store
|
|
1033
1040
|
], "p0.value")
|
|
@@ -1036,63 +1043,54 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
1036
1043
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
1037
1044
|
id: `${props1.id}-color-picker`
|
|
1038
1045
|
}, {
|
|
1039
|
-
class: "
|
|
1046
|
+
class: "absolute mt-2 opacity-0 transition-all pointer-events-none scale-95"
|
|
1040
1047
|
}, null, 3, null)
|
|
1041
1048
|
], 1, "0s_2");
|
|
1042
1049
|
}, "ColorInput_component_jilGo0Bn3Ps"));
|
|
1043
|
-
const
|
|
1044
|
-
const props = {
|
|
1045
|
-
...rawProps
|
|
1046
|
-
};
|
|
1047
|
-
props.class = ((props.class ?? "") + " ionicon").trim();
|
|
1050
|
+
const Plus = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1048
1051
|
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
1049
1052
|
...props,
|
|
1050
|
-
children:
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
/* @__PURE__ */ qwik._jsxQ("line", null, {
|
|
1059
|
-
x1: "400",
|
|
1060
|
-
y1: "256",
|
|
1061
|
-
x2: "112",
|
|
1062
|
-
y2: "256",
|
|
1063
|
-
style: "fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"
|
|
1064
|
-
}, null, 3, null)
|
|
1065
|
-
]
|
|
1053
|
+
children: /* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
1054
|
+
d: "M256 112v288M400 256H112",
|
|
1055
|
+
fill: "none",
|
|
1056
|
+
stroke: "currentColor",
|
|
1057
|
+
"stroke-linecap": "round",
|
|
1058
|
+
"stroke-linejoin": "round",
|
|
1059
|
+
"stroke-width": "32"
|
|
1060
|
+
}, null, 3, null)
|
|
1066
1061
|
}, {
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
props.class = ((props.class ?? "") + " ionicon").trim();
|
|
1062
|
+
height: qwik._fnSignal((p0) => p0.width, [
|
|
1063
|
+
props
|
|
1064
|
+
], "p0.width"),
|
|
1065
|
+
viewBox: "0 0 512 512",
|
|
1066
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1067
|
+
}, 0, "qR_0");
|
|
1068
|
+
}, "Plus_component_a7LdBXNrC2w"));
|
|
1069
|
+
const Minus = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1076
1070
|
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
1077
1071
|
...props,
|
|
1078
|
-
children: /* @__PURE__ */ qwik._jsxQ("
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1072
|
+
children: /* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
1073
|
+
d: "M400 256H112",
|
|
1074
|
+
fill: "none",
|
|
1075
|
+
stroke: "currentColor",
|
|
1076
|
+
"stroke-linecap": "round",
|
|
1077
|
+
"stroke-linejoin": "round",
|
|
1078
|
+
"stroke-width": "32"
|
|
1084
1079
|
}, null, 3, null)
|
|
1085
1080
|
}, {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1081
|
+
height: qwik._fnSignal((p0) => p0.width, [
|
|
1082
|
+
props
|
|
1083
|
+
], "p0.width"),
|
|
1084
|
+
viewBox: "0 0 512 512",
|
|
1085
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1086
|
+
}, 0, "0g_0");
|
|
1087
|
+
}, "Minus_component_oP9l58XNP1Q"));
|
|
1090
1088
|
const NumberInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1091
1089
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1092
1090
|
class: "flex flex-col"
|
|
1093
1091
|
}, [
|
|
1094
1092
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
1095
|
-
class: "
|
|
1093
|
+
class: "pb-2",
|
|
1096
1094
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
1097
1095
|
props
|
|
1098
1096
|
], "p0.id")
|
|
@@ -1111,6 +1109,16 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1111
1109
|
"value",
|
|
1112
1110
|
"step"
|
|
1113
1111
|
]);
|
|
1112
|
+
qwik.useStylesQrl(/* @__PURE__ */ qwik.inlinedQrl(`
|
|
1113
|
+
input::-webkit-outer-spin-button,
|
|
1114
|
+
input::-webkit-inner-spin-button {
|
|
1115
|
+
-webkit-appearance: none;
|
|
1116
|
+
margin: 0;
|
|
1117
|
+
}
|
|
1118
|
+
input[type=number] {
|
|
1119
|
+
-moz-appearance: textfield;
|
|
1120
|
+
}
|
|
1121
|
+
`, "NumberInputRaw_component_useStyles_v5EsWTMt0DU"));
|
|
1114
1122
|
const store = qwik.useStore({
|
|
1115
1123
|
value: props.value ?? 0
|
|
1116
1124
|
});
|
|
@@ -1122,37 +1130,52 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1122
1130
|
props
|
|
1123
1131
|
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
1124
1132
|
}, [
|
|
1125
|
-
/* @__PURE__ */ qwik.
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
"px-3 rounded-l-md border-r-0": props.input,
|
|
1129
|
-
"w-[50%] rounded-md": !props.input,
|
|
1130
|
-
"opacity-50 pointer-events-none": props1.min ? store.value <= props1.min : false
|
|
1133
|
+
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1134
|
+
get color() {
|
|
1135
|
+
return props.input ? "gray" : "darkgray";
|
|
1131
1136
|
},
|
|
1132
|
-
disabled: props1.min ? store.value <= props1.min : false
|
|
1133
|
-
}, {
|
|
1134
1137
|
"aria-label": "Decrement",
|
|
1135
1138
|
"data-action": "decrement",
|
|
1139
|
+
disabled: props1.min ? store.value <= props1.min : false,
|
|
1136
1140
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
1137
1141
|
const [props2, store2] = qwik.useLexicalScope();
|
|
1138
1142
|
store2.value = store2.value - (props2.step ?? 1);
|
|
1139
1143
|
props2.onDecrement$(event, element, store2);
|
|
1140
|
-
}, "
|
|
1144
|
+
}, "NumberInputRaw_component_div_Button_onClick_PgKg57gfX0I", [
|
|
1141
1145
|
props,
|
|
1142
1146
|
store
|
|
1143
|
-
])
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
+
]),
|
|
1148
|
+
get class() {
|
|
1149
|
+
return {
|
|
1150
|
+
"mr-2": props.input
|
|
1151
|
+
};
|
|
1152
|
+
},
|
|
1153
|
+
children: /* @__PURE__ */ qwik._jsxC(Minus, {
|
|
1154
|
+
class: "fill-current",
|
|
1155
|
+
width: "24",
|
|
1156
|
+
[qwik._IMMUTABLE]: {
|
|
1157
|
+
class: qwik._IMMUTABLE,
|
|
1158
|
+
width: qwik._IMMUTABLE
|
|
1159
|
+
}
|
|
1160
|
+
}, 3, "gk_3"),
|
|
1147
1161
|
[qwik._IMMUTABLE]: {
|
|
1148
|
-
|
|
1149
|
-
|
|
1162
|
+
"aria-label": qwik._IMMUTABLE,
|
|
1163
|
+
class: qwik._fnSignal((p0) => ({
|
|
1164
|
+
"mr-2": p0.input
|
|
1165
|
+
}), [
|
|
1166
|
+
props
|
|
1167
|
+
], '{"mr-2":p0.input}'),
|
|
1168
|
+
color: qwik._fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
1169
|
+
props
|
|
1170
|
+
], 'p0.input?"gray":"darkgray"'),
|
|
1171
|
+
"data-action": qwik._IMMUTABLE,
|
|
1172
|
+
onClick$: qwik._IMMUTABLE
|
|
1150
1173
|
}
|
|
1151
|
-
},
|
|
1174
|
+
}, 1, "gk_4"),
|
|
1152
1175
|
props.input && /* @__PURE__ */ qwik._jsxS("input", {
|
|
1153
1176
|
...props1,
|
|
1154
1177
|
class: {
|
|
1155
|
-
|
|
1178
|
+
[InputClasses]: true,
|
|
1156
1179
|
...props1.class
|
|
1157
1180
|
}
|
|
1158
1181
|
}, {
|
|
@@ -1163,158 +1186,238 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1163
1186
|
value: qwik._fnSignal((p0) => p0.value, [
|
|
1164
1187
|
store
|
|
1165
1188
|
], "p0.value")
|
|
1166
|
-
}, 0, "
|
|
1167
|
-
/* @__PURE__ */ qwik.
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
"px-3 rounded-r-md border-l-0": props.input,
|
|
1171
|
-
"w-[50%] rounded-md": !props.input,
|
|
1172
|
-
"opacity-50 pointer-events-none": props1.max ? store.value >= props1.max : false
|
|
1189
|
+
}, 0, "gk_5"),
|
|
1190
|
+
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1191
|
+
get color() {
|
|
1192
|
+
return props.input ? "gray" : "darkgray";
|
|
1173
1193
|
},
|
|
1174
|
-
disabled: props1.max ? store.value >= props1.max : false
|
|
1175
|
-
}, {
|
|
1176
1194
|
"aria-label": "Increment",
|
|
1177
1195
|
"data-action": "increment",
|
|
1196
|
+
disabled: props1.max ? store.value >= props1.max : false,
|
|
1178
1197
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
1179
1198
|
const [props2, store2] = qwik.useLexicalScope();
|
|
1180
1199
|
store2.value = store2.value + (props2.step ?? 1);
|
|
1181
1200
|
props2.onIncrement$(event, element, store2);
|
|
1182
|
-
}, "
|
|
1201
|
+
}, "NumberInputRaw_component_div_Button_onClick_1_UzVlUpg1uGs", [
|
|
1183
1202
|
props,
|
|
1184
1203
|
store
|
|
1185
|
-
])
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1204
|
+
]),
|
|
1205
|
+
get class() {
|
|
1206
|
+
return {
|
|
1207
|
+
"ml-2": props.input
|
|
1208
|
+
};
|
|
1209
|
+
},
|
|
1210
|
+
children: /* @__PURE__ */ qwik._jsxC(Plus, {
|
|
1211
|
+
class: "fill-current",
|
|
1212
|
+
width: "24",
|
|
1213
|
+
[qwik._IMMUTABLE]: {
|
|
1214
|
+
class: qwik._IMMUTABLE,
|
|
1215
|
+
width: qwik._IMMUTABLE
|
|
1216
|
+
}
|
|
1217
|
+
}, 3, "gk_6"),
|
|
1189
1218
|
[qwik._IMMUTABLE]: {
|
|
1190
|
-
|
|
1191
|
-
|
|
1219
|
+
"aria-label": qwik._IMMUTABLE,
|
|
1220
|
+
class: qwik._fnSignal((p0) => ({
|
|
1221
|
+
"ml-2": p0.input
|
|
1222
|
+
}), [
|
|
1223
|
+
props
|
|
1224
|
+
], '{"ml-2":p0.input}'),
|
|
1225
|
+
color: qwik._fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
1226
|
+
props
|
|
1227
|
+
], 'p0.input?"gray":"darkgray"'),
|
|
1228
|
+
"data-action": qwik._IMMUTABLE,
|
|
1229
|
+
onClick$: qwik._IMMUTABLE
|
|
1192
1230
|
}
|
|
1193
|
-
},
|
|
1194
|
-
], 1, "
|
|
1231
|
+
}, 1, "gk_7")
|
|
1232
|
+
], 1, "gk_8");
|
|
1195
1233
|
}, "NumberInputRaw_component_8sGf0eS1rvo"));
|
|
1196
|
-
const
|
|
1234
|
+
const ChevronDown = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1235
|
+
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
1236
|
+
...props,
|
|
1237
|
+
children: /* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
1238
|
+
d: "M112 184l144 144 144-144",
|
|
1239
|
+
fill: "none",
|
|
1240
|
+
stroke: "currentColor",
|
|
1241
|
+
"stroke-linecap": "round",
|
|
1242
|
+
"stroke-linejoin": "round",
|
|
1243
|
+
"stroke-width": "48"
|
|
1244
|
+
}, null, 3, null)
|
|
1245
|
+
}, {
|
|
1246
|
+
height: qwik._fnSignal((p0) => p0.width, [
|
|
1247
|
+
props
|
|
1248
|
+
], "p0.width"),
|
|
1249
|
+
viewBox: "0 0 512 512",
|
|
1250
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1251
|
+
}, 0, "rN_0");
|
|
1252
|
+
}, "ChevronDown_component_V0linof0cMQ"));
|
|
1253
|
+
const SelectInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1197
1254
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1198
1255
|
class: "flex flex-col"
|
|
1199
1256
|
}, [
|
|
1200
1257
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
1201
|
-
class: "
|
|
1258
|
+
class: "pb-2",
|
|
1202
1259
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
1203
1260
|
props
|
|
1204
1261
|
], "p0.id")
|
|
1205
|
-
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "
|
|
1206
|
-
/* @__PURE__ */ qwik._jsxC(
|
|
1207
|
-
...props
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
const OutputFieldRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1262
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "cA_0"), 1, null),
|
|
1263
|
+
/* @__PURE__ */ qwik._jsxC(SelectInputRaw, {
|
|
1264
|
+
...props
|
|
1265
|
+
}, 0, "cA_1")
|
|
1266
|
+
], 1, "cA_2");
|
|
1267
|
+
}, "SelectInput_component_m80ag1KuJSk"));
|
|
1268
|
+
const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1213
1269
|
const props1 = qwik._restProps(props, [
|
|
1214
|
-
"
|
|
1270
|
+
"id",
|
|
1271
|
+
"values"
|
|
1215
1272
|
]);
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1218
|
-
}, {
|
|
1219
|
-
deep: true
|
|
1273
|
+
const store = qwik.useStore({
|
|
1274
|
+
opened: false
|
|
1220
1275
|
});
|
|
1221
|
-
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
1222
|
-
children: [
|
|
1223
|
-
/* @__PURE__ */ qwik._jsxS("textarea", {
|
|
1224
|
-
...props1,
|
|
1225
|
-
class: {
|
|
1226
|
-
"transition ease-in-out cursor-pointer text-lg border border-gray-700 bg-gray-800 text-gray-50 hover:bg-gray-700 focus:bg-gray-700 rounded-md px-3 py-2 break-words": true,
|
|
1227
|
-
...props1.class
|
|
1228
|
-
},
|
|
1229
|
-
onChange$: /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
1230
|
-
const [alertsStore2, props2] = qwik.useLexicalScope();
|
|
1231
|
-
if (props2.onChange$)
|
|
1232
|
-
props2.onChange$(event, element, alertsStore2);
|
|
1233
|
-
}, "OutputFieldRaw_component__Fragment_textarea_onChange_sGG9tIcP0OY", [
|
|
1234
|
-
alertsStore,
|
|
1235
|
-
props
|
|
1236
|
-
]),
|
|
1237
|
-
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
1238
|
-
const [alertsStore2] = qwik.useLexicalScope();
|
|
1239
|
-
navigator.clipboard.writeText(element.value);
|
|
1240
|
-
const alert = {
|
|
1241
|
-
class: "text-green-500",
|
|
1242
|
-
text: "Copied to clipboard!"
|
|
1243
|
-
};
|
|
1244
|
-
alertsStore2.alerts.push(alert);
|
|
1245
|
-
setTimeout(() => {
|
|
1246
|
-
alertsStore2.alerts.splice(alertsStore2.alerts.indexOf(alert), 1);
|
|
1247
|
-
}, 1e3);
|
|
1248
|
-
}, "OutputFieldRaw_component__Fragment_textarea_onClick_7OWCYv02KFs", [
|
|
1249
|
-
alertsStore
|
|
1250
|
-
])
|
|
1251
|
-
}, null, 0, null),
|
|
1252
|
-
alertsStore.alerts.map((alert, i) => /* @__PURE__ */ qwik._jsxQ("p", {
|
|
1253
|
-
class: qwik._wrapSignal(alert, "class"),
|
|
1254
|
-
dangerouslySetInnerHTML: qwik._wrapSignal(alert, "text")
|
|
1255
|
-
}, null, null, 3, `output-alert${i}`))
|
|
1256
|
-
]
|
|
1257
|
-
}, 1, "ze_3");
|
|
1258
|
-
}, "OutputFieldRaw_component_OxiM0W3AR0o"));
|
|
1259
|
-
const SelectInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1260
1276
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1261
|
-
class: "
|
|
1277
|
+
class: "relative"
|
|
1262
1278
|
}, [
|
|
1263
|
-
/* @__PURE__ */ qwik.
|
|
1264
|
-
|
|
1265
|
-
|
|
1279
|
+
/* @__PURE__ */ qwik._jsxS("select", {
|
|
1280
|
+
...props1,
|
|
1281
|
+
children: props.values.map((value, i) => {
|
|
1282
|
+
return /* @__PURE__ */ qwik._jsxQ("option", {
|
|
1283
|
+
value: qwik._wrapSignal(value, "value")
|
|
1284
|
+
}, null, value.name, 1, i);
|
|
1285
|
+
})
|
|
1286
|
+
}, {
|
|
1287
|
+
class: {
|
|
1288
|
+
"hidden": true
|
|
1289
|
+
},
|
|
1290
|
+
id: qwik._fnSignal((p0) => p0.id, [
|
|
1266
1291
|
props
|
|
1267
1292
|
], "p0.id")
|
|
1268
|
-
},
|
|
1269
|
-
|
|
1293
|
+
}, 0, null),
|
|
1294
|
+
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1295
|
+
children: [
|
|
1296
|
+
/* @__PURE__ */ qwik._jsxQ("span", null, {
|
|
1297
|
+
id: qwik._fnSignal((p0) => `lui-${p0.id}-name`, [
|
|
1298
|
+
props
|
|
1299
|
+
], "`lui-${p0.id}-name`")
|
|
1300
|
+
}, props.values.find((value) => value.value.toString() === props1.value)?.name ?? props.values[0].name, 1, null),
|
|
1301
|
+
/* @__PURE__ */ qwik._jsxC(ChevronDown, {
|
|
1302
|
+
width: 20,
|
|
1303
|
+
get class() {
|
|
1304
|
+
return {
|
|
1305
|
+
"transition-all duration-200": true,
|
|
1306
|
+
"transform rotate-180": store.opened
|
|
1307
|
+
};
|
|
1308
|
+
},
|
|
1309
|
+
[qwik._IMMUTABLE]: {
|
|
1310
|
+
class: qwik._fnSignal((p0) => ({
|
|
1311
|
+
"transition-all duration-200": true,
|
|
1312
|
+
"transform rotate-180": p0.opened
|
|
1313
|
+
}), [
|
|
1314
|
+
store
|
|
1315
|
+
], '{"transition-all duration-200":true,"transform rotate-180":p0.opened}'),
|
|
1316
|
+
width: qwik._IMMUTABLE
|
|
1317
|
+
}
|
|
1318
|
+
}, 3, "cA_3")
|
|
1319
|
+
],
|
|
1320
|
+
class: {
|
|
1321
|
+
...props1.class
|
|
1322
|
+
},
|
|
1323
|
+
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1324
|
+
const [store2] = qwik.useLexicalScope();
|
|
1325
|
+
store2.opened = !store2.opened;
|
|
1326
|
+
}, "SelectInputRaw_component_div_Button_onClick_9Gkbglaqsdw", [
|
|
1327
|
+
store
|
|
1328
|
+
]),
|
|
1270
1329
|
[qwik._IMMUTABLE]: {
|
|
1271
|
-
|
|
1330
|
+
onClick$: qwik._IMMUTABLE
|
|
1272
1331
|
}
|
|
1273
|
-
},
|
|
1274
|
-
/* @__PURE__ */ qwik.
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
},
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1332
|
+
}, 1, "cA_4"),
|
|
1333
|
+
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
1334
|
+
class: {
|
|
1335
|
+
"transition-all absolute top-full p-1 mt-2 gap-1 left-0 bg-gray-800/50 backdrop-blur-xl flex flex-col rounded-lg border border-gray-700 z-[1000] max-h-72 overflow-scroll": true,
|
|
1336
|
+
"pointer-events-none opacity-0 scale-95": !store.opened
|
|
1337
|
+
}
|
|
1338
|
+
}, {
|
|
1339
|
+
id: qwik._fnSignal((p0) => `lui-${p0.id}-opts`, [
|
|
1340
|
+
props
|
|
1341
|
+
], "`lui-${p0.id}-opts`")
|
|
1342
|
+
}, props.values.map((value, i) => {
|
|
1343
|
+
return /* @__PURE__ */ qwik._jsxC(Button, {
|
|
1344
|
+
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1345
|
+
const [props2, store2, value2] = qwik.useLexicalScope();
|
|
1346
|
+
store2.opened = false;
|
|
1347
|
+
const select = document.getElementById(props2.id);
|
|
1348
|
+
select.value = value2.value.toString();
|
|
1349
|
+
const name = document.getElementById(`lui-${props2.id}-name`);
|
|
1350
|
+
name.textContent = value2.name;
|
|
1351
|
+
select.dispatchEvent(new Event("change"));
|
|
1352
|
+
}, "SelectInputRaw_component_div_div_Button_onClick_mLa0FdeKCLw", [
|
|
1353
|
+
props,
|
|
1354
|
+
store,
|
|
1355
|
+
value
|
|
1356
|
+
]),
|
|
1357
|
+
get class() {
|
|
1358
|
+
return {
|
|
1359
|
+
"border-0 bg-transparent": true,
|
|
1360
|
+
"opacity-0": !store.opened
|
|
1361
|
+
};
|
|
1362
|
+
},
|
|
1363
|
+
children: qwik._wrapSignal(value, "name"),
|
|
1364
|
+
[qwik._IMMUTABLE]: {
|
|
1365
|
+
class: qwik._fnSignal((p0) => ({
|
|
1366
|
+
"border-0 bg-transparent": true,
|
|
1367
|
+
"opacity-0": !p0.opened
|
|
1368
|
+
}), [
|
|
1369
|
+
store
|
|
1370
|
+
], '{"border-0 bg-transparent":true,"opacity-0":!p0.opened}')
|
|
1371
|
+
}
|
|
1372
|
+
}, 1, i);
|
|
1373
|
+
}), 1, null)
|
|
1374
|
+
], 1, "cA_5");
|
|
1293
1375
|
}, "SelectInputRaw_component_Itdx5yPeQd4"));
|
|
1294
|
-
const
|
|
1376
|
+
const TextArea = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1295
1377
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1296
1378
|
class: "flex flex-col"
|
|
1297
1379
|
}, [
|
|
1298
1380
|
/* @__PURE__ */ qwik._jsxQ("label", null, {
|
|
1299
|
-
class: "
|
|
1381
|
+
class: "pb-2",
|
|
1300
1382
|
for: qwik._fnSignal((p0) => p0.id, [
|
|
1301
1383
|
props
|
|
1302
1384
|
], "p0.id")
|
|
1303
|
-
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "
|
|
1304
|
-
/* @__PURE__ */ qwik._jsxC(
|
|
1385
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "UP_0"), 1, null),
|
|
1386
|
+
/* @__PURE__ */ qwik._jsxC(TextAreaRaw, {
|
|
1305
1387
|
...props
|
|
1306
|
-
}, 0, "
|
|
1307
|
-
], 1, "
|
|
1308
|
-
}, "
|
|
1309
|
-
const
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1388
|
+
}, 0, "UP_1")
|
|
1389
|
+
], 1, "UP_2");
|
|
1390
|
+
}, "TextArea_component_rWDoQFL2c0g"));
|
|
1391
|
+
const TextAreaRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1392
|
+
const props1 = qwik._restProps(props, [
|
|
1393
|
+
"output"
|
|
1394
|
+
]);
|
|
1395
|
+
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
1396
|
+
children: /* @__PURE__ */ qwik._jsxS("textarea", {
|
|
1397
|
+
...props1,
|
|
1398
|
+
class: {
|
|
1399
|
+
[InputClasses]: true,
|
|
1400
|
+
"h-32": true,
|
|
1401
|
+
"cursor-pointer active:bg-gray-600": props.output,
|
|
1402
|
+
...props1.class
|
|
1403
|
+
},
|
|
1404
|
+
onClick$: props.output ? /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
1405
|
+
navigator.clipboard.writeText(element.value);
|
|
1406
|
+
const notification = document.createElement("div");
|
|
1407
|
+
notification.className = "fixed bottom-0 right-0 px-6 py-4 m-6 bg-green-600/50 border border-green-500 text-gray-50 rounded-md shadow-lg whitespace-nowrap backdrop-blur-xl";
|
|
1408
|
+
notification.innerText = "Copied to clipboard!";
|
|
1409
|
+
document.body.appendChild(notification);
|
|
1410
|
+
setTimeout(() => {
|
|
1411
|
+
notification.remove();
|
|
1412
|
+
}, 1e3);
|
|
1413
|
+
}, "TextAreaRaw_component__Fragment_textarea_onClick_YAQUkxxJ6Sg") : void 0
|
|
1414
|
+
}, {
|
|
1415
|
+
readOnly: qwik._fnSignal((p0) => p0.output, [
|
|
1416
|
+
props
|
|
1417
|
+
], "p0.output")
|
|
1418
|
+
}, 0, null)
|
|
1419
|
+
}, 1, "UP_3");
|
|
1420
|
+
}, "TextAreaRaw_component_PZiPScYxgNk"));
|
|
1318
1421
|
const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1319
1422
|
const props1 = qwik._restProps(props, [
|
|
1320
1423
|
"center"
|
|
@@ -1341,10 +1444,12 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1341
1444
|
}, 0, null),
|
|
1342
1445
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1343
1446
|
class: {
|
|
1344
|
-
"transition ease-in-out w-12 h-7 rounded-md peer
|
|
1345
|
-
"
|
|
1346
|
-
"after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:
|
|
1347
|
-
"
|
|
1447
|
+
"transition ease-in-out w-12 h-7 rounded-md peer border hover:shadow-lg": true,
|
|
1448
|
+
"bg-gray-800 border-gray-700 hover:bg-gray-700 active:bg-gray-600": true,
|
|
1449
|
+
"after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:border after:rounded-md after:h-5 after:w-5 after:transition-all after:ease-in-out": true,
|
|
1450
|
+
"after:bg-gray-700 after:border-gray-600 after:hover:bg-gray-600 after:active:bg-gray-500": true,
|
|
1451
|
+
"peer-checked:bg-blue-700 peer-checked:border-blue-600 peer-checked:hover:bg-blue-600 peer-checked:active:bg-blue-500": true,
|
|
1452
|
+
"peer-checked:after:translate-x-full peer-checked:after:bg-blue-600 peer-checked:after:border-blue-500 peer-checked:after:hover:bg-blue-500 peer-checked:after:active:bg-blue-400": true
|
|
1348
1453
|
}
|
|
1349
1454
|
}, null, 3, null)
|
|
1350
1455
|
], 1, null),
|
|
@@ -1792,6 +1897,7 @@ exports.ButtonAnchor = ButtonAnchor;
|
|
|
1792
1897
|
exports.Card = Card;
|
|
1793
1898
|
exports.CardHeader = CardHeader;
|
|
1794
1899
|
exports.ColorInput = ColorInput;
|
|
1900
|
+
exports.InputClasses = InputClasses;
|
|
1795
1901
|
exports.LoadingIcon = LoadingIcon;
|
|
1796
1902
|
exports.LogoBirdflop = LogoBirdflop;
|
|
1797
1903
|
exports.LogoDiscord = LogoDiscord;
|
|
@@ -1806,12 +1912,10 @@ exports.LogoVelocity = LogoVelocity;
|
|
|
1806
1912
|
exports.LogoWaterfall = LogoWaterfall;
|
|
1807
1913
|
exports.NumberInput = NumberInput;
|
|
1808
1914
|
exports.NumberInputRaw = NumberInputRaw;
|
|
1809
|
-
exports.OutputField = OutputField;
|
|
1810
|
-
exports.OutputFieldRaw = OutputFieldRaw;
|
|
1811
1915
|
exports.SelectInput = SelectInput;
|
|
1812
1916
|
exports.SelectInputRaw = SelectInputRaw;
|
|
1813
|
-
exports.
|
|
1814
|
-
exports.
|
|
1917
|
+
exports.TextArea = TextArea;
|
|
1918
|
+
exports.TextAreaRaw = TextAreaRaw;
|
|
1815
1919
|
exports.TextInput = TextInput;
|
|
1816
1920
|
exports.TextInputRaw = TextInputRaw;
|
|
1817
1921
|
exports.Toggle = Toggle;
|