@luminescent/ui 0.8.2 → 0.10.0-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/lib/index.qwik.cjs +65 -15
- package/lib/index.qwik.mjs +65 -15
- package/lib-types/components/elements/Button.d.ts +3 -2
- package/lib-types/components/elements/Nav.d.ts +5 -0
- package/lib-types/components/elements/TextInput.d.ts +1 -1
- package/lib-types/components/elements/Toggle.d.ts +2 -2
- package/lib-types/components/elements.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.qwik.cjs
CHANGED
|
@@ -12,17 +12,18 @@ const buttonColorClasses = {
|
|
|
12
12
|
blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 active:bg-blue-400 focus:border-blue-400",
|
|
13
13
|
purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 active:bg-purple-400 focus:border-purple-400",
|
|
14
14
|
pink: "bg-pink-600/90 border-pink-500 hover:bg-pink-500 active:bg-pink-400 focus:border-pink-400",
|
|
15
|
-
gray: "bg-gray-700/90 border-gray-600 hover:bg-gray-600 active:bg-gray-500 focus:border-gray-500",
|
|
16
|
-
darkgray: "bg-gray-800/90 border-gray-700 hover:bg-gray-700 active:bg-gray-600 focus:border-gray-600",
|
|
17
15
|
red: "bg-red-700/90 border-red-600 hover:bg-red-600 active:bg-red-500 focus:border-red-500",
|
|
18
16
|
green: "bg-green-700/90 border-green-600 hover:bg-green-600 active:bg-green-500 focus:border-green-500",
|
|
19
|
-
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500"
|
|
17
|
+
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500",
|
|
18
|
+
gray: "bg-gray-700/90 border-gray-600 hover:bg-gray-600 active:bg-gray-500 focus:border-gray-500",
|
|
19
|
+
darkgray: "bg-gray-800/90 border-gray-700 hover:bg-gray-700 active:bg-gray-600 focus:border-gray-600",
|
|
20
|
+
transparent: "bg-transparent border-transparent hover:bg-gray-700/10 active:bg-gray-700/20 focus:border-gray-700/20"
|
|
20
21
|
};
|
|
21
22
|
const sizeClasses = {
|
|
22
|
-
sm: "text-
|
|
23
|
+
sm: "text-base px-2.5 py-1.5 rounded-md gap-2",
|
|
23
24
|
md: "text-base px-4 py-2 rounded-md gap-3",
|
|
24
|
-
lg: "text-
|
|
25
|
-
xl: "text-
|
|
25
|
+
lg: "text-lg px-6 py-3 rounded-lg gap-3",
|
|
26
|
+
xl: "text-lg px-8 py-4 rounded-xl gap-4"
|
|
26
27
|
};
|
|
27
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 whitespace-nowrap";
|
|
28
29
|
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -264,7 +265,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
264
265
|
}
|
|
265
266
|
}, null, 0, "OW_3");
|
|
266
267
|
}, "Card_component_DlkkcTEVka4"));
|
|
267
|
-
const InputClasses = "transition ease-in-out
|
|
268
|
+
const InputClasses = "transition ease-in-out 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-2.5 py-1.5";
|
|
268
269
|
const TextInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
269
270
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
270
271
|
class: "flex flex-col"
|
|
@@ -448,9 +449,9 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
448
449
|
backgroundColor: `${props.value ?? "#000000"}`,
|
|
449
450
|
color: getBrightness(hexNumberToRgb(hexStringToNumber(props.value ?? "#000000"))) > 0.5 ? "black" : "white"
|
|
450
451
|
} : (props.preview ?? "left") == "left" ? {
|
|
451
|
-
borderLeft: `
|
|
452
|
+
borderLeft: `35px solid ${props.value ?? "#000000"}`
|
|
452
453
|
} : (props.preview ?? "left") == "right" ? {
|
|
453
|
-
borderRight: `
|
|
454
|
+
borderRight: `35px solid ${props.value ?? "#000000"}`
|
|
454
455
|
} : (props.preview ?? "left") == "top" ? {
|
|
455
456
|
borderTop: `10px solid ${props.value ?? "#000000"}`
|
|
456
457
|
} : (props.preview ?? "left") == "bottom" ? {
|
|
@@ -502,10 +503,10 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
502
503
|
el.style.color = getBrightness(hexNumberToRgb(hexStringToNumber(color))) > 0.5 ? "black" : "white";
|
|
503
504
|
break;
|
|
504
505
|
case "left":
|
|
505
|
-
el.style.borderLeft = `
|
|
506
|
+
el.style.borderLeft = `35px solid ${color}`;
|
|
506
507
|
break;
|
|
507
508
|
case "right":
|
|
508
|
-
el.style.borderRight = `
|
|
509
|
+
el.style.borderRight = `35px solid ${color}`;
|
|
509
510
|
break;
|
|
510
511
|
case "top":
|
|
511
512
|
el.style.borderTop = `10px solid ${color}`;
|
|
@@ -837,6 +838,48 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
837
838
|
], 1, "dL_5");
|
|
838
839
|
return Component;
|
|
839
840
|
}, "Header_component_FfGOhhBNG5k"));
|
|
841
|
+
const NavContainer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
842
|
+
return /* @__PURE__ */ qwik._jsxQ("nav", null, {
|
|
843
|
+
class: qwik._fnSignal((p0) => ({
|
|
844
|
+
"transition-all duration-200 flex flex-col fixed top-0 left-0 w-full z-50": true,
|
|
845
|
+
"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl": !p0.floating
|
|
846
|
+
}), [
|
|
847
|
+
props
|
|
848
|
+
], '{"transition-all duration-200 flex flex-col fixed top-0 left-0 w-full z-50":true,"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl":!p0.floating}')
|
|
849
|
+
}, /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
850
|
+
class: qwik._fnSignal((p0) => ({
|
|
851
|
+
"flex justify-evenly w-full mx-auto px-4 py-2 max-w-7xl": true,
|
|
852
|
+
"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl mt-3 rounded-lg": p0.floating
|
|
853
|
+
}), [
|
|
854
|
+
props
|
|
855
|
+
], '{"flex justify-evenly w-full mx-auto px-4 py-2 max-w-7xl":true,"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl mt-3 rounded-lg":p0.floating}')
|
|
856
|
+
}, [
|
|
857
|
+
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
858
|
+
class: "flex flex-1 justify-start"
|
|
859
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
860
|
+
name: "start",
|
|
861
|
+
[qwik._IMMUTABLE]: {
|
|
862
|
+
name: qwik._IMMUTABLE
|
|
863
|
+
}
|
|
864
|
+
}, 3, "8r_0"), 1, null),
|
|
865
|
+
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
866
|
+
class: "flex flex-1 justify-center"
|
|
867
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
868
|
+
name: "center",
|
|
869
|
+
[qwik._IMMUTABLE]: {
|
|
870
|
+
name: qwik._IMMUTABLE
|
|
871
|
+
}
|
|
872
|
+
}, 3, "8r_1"), 1, null),
|
|
873
|
+
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
874
|
+
class: "flex flex-1 justify-end"
|
|
875
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
876
|
+
name: "end",
|
|
877
|
+
[qwik._IMMUTABLE]: {
|
|
878
|
+
name: qwik._IMMUTABLE
|
|
879
|
+
}
|
|
880
|
+
}, 3, "8r_2"), 1, null)
|
|
881
|
+
], 1, null), 1, "8r_3");
|
|
882
|
+
}, "NavContainer_component_0cvQrwegQjA"));
|
|
840
883
|
const Plus = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
841
884
|
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
842
885
|
...props,
|
|
@@ -918,6 +961,7 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
918
961
|
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
919
962
|
}, [
|
|
920
963
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
964
|
+
size: "sm",
|
|
921
965
|
get color() {
|
|
922
966
|
return props.input ? "gray" : "darkgray";
|
|
923
967
|
},
|
|
@@ -955,7 +999,8 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
955
999
|
color: qwik._fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
956
1000
|
props
|
|
957
1001
|
], 'p0.input?"gray":"darkgray"'),
|
|
958
|
-
"data-action": qwik._IMMUTABLE
|
|
1002
|
+
"data-action": qwik._IMMUTABLE,
|
|
1003
|
+
size: qwik._IMMUTABLE
|
|
959
1004
|
}
|
|
960
1005
|
}, 0, "gk_4"),
|
|
961
1006
|
props.input && /* @__PURE__ */ qwik._jsxS("input", {
|
|
@@ -975,6 +1020,7 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
975
1020
|
], "p0.value??0")
|
|
976
1021
|
}, 0, "gk_5"),
|
|
977
1022
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1023
|
+
size: "sm",
|
|
978
1024
|
get color() {
|
|
979
1025
|
return props.input ? "gray" : "darkgray";
|
|
980
1026
|
},
|
|
@@ -1012,7 +1058,8 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1012
1058
|
color: qwik._fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
1013
1059
|
props
|
|
1014
1060
|
], 'p0.input?"gray":"darkgray"'),
|
|
1015
|
-
"data-action": qwik._IMMUTABLE
|
|
1061
|
+
"data-action": qwik._IMMUTABLE,
|
|
1062
|
+
size: qwik._IMMUTABLE
|
|
1016
1063
|
}
|
|
1017
1064
|
}, 0, "gk_7")
|
|
1018
1065
|
], 1, "gk_8");
|
|
@@ -1101,6 +1148,7 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1101
1148
|
], "p0.id")
|
|
1102
1149
|
}, 0, null),
|
|
1103
1150
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1151
|
+
size: "sm",
|
|
1104
1152
|
get class() {
|
|
1105
1153
|
return {
|
|
1106
1154
|
"flex focus:bg-gray-700": true,
|
|
@@ -1146,7 +1194,8 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1146
1194
|
}), [
|
|
1147
1195
|
props
|
|
1148
1196
|
], '{"flex focus:bg-gray-700":true,...p0.class}'),
|
|
1149
|
-
onClick$: qwik._IMMUTABLE
|
|
1197
|
+
onClick$: qwik._IMMUTABLE,
|
|
1198
|
+
size: qwik._IMMUTABLE
|
|
1150
1199
|
}
|
|
1151
1200
|
}, 1, "cA_4"),
|
|
1152
1201
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
@@ -1276,7 +1325,7 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1276
1325
|
props.label && /* @__PURE__ */ qwik._jsxQ("label", {
|
|
1277
1326
|
for: qwik._wrapSignal(props1, "id")
|
|
1278
1327
|
}, {
|
|
1279
|
-
class: "text-gray-300"
|
|
1328
|
+
class: "text-gray-300 flex gap-2"
|
|
1280
1329
|
}, qwik._fnSignal((p0) => p0.label, [
|
|
1281
1330
|
props
|
|
1282
1331
|
], "p0.label"), 3, "yu_0")
|
|
@@ -1737,6 +1786,7 @@ exports.LogoPterodactyl = LogoPterodactyl;
|
|
|
1737
1786
|
exports.LogoPurpur = LogoPurpur;
|
|
1738
1787
|
exports.LogoVelocity = LogoVelocity;
|
|
1739
1788
|
exports.LogoWaterfall = LogoWaterfall;
|
|
1789
|
+
exports.NavContainer = NavContainer;
|
|
1740
1790
|
exports.NumberInput = NumberInput;
|
|
1741
1791
|
exports.NumberInputRaw = NumberInputRaw;
|
|
1742
1792
|
exports.SelectInput = SelectInput;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -10,17 +10,18 @@ const buttonColorClasses = {
|
|
|
10
10
|
blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 active:bg-blue-400 focus:border-blue-400",
|
|
11
11
|
purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 active:bg-purple-400 focus:border-purple-400",
|
|
12
12
|
pink: "bg-pink-600/90 border-pink-500 hover:bg-pink-500 active:bg-pink-400 focus:border-pink-400",
|
|
13
|
-
gray: "bg-gray-700/90 border-gray-600 hover:bg-gray-600 active:bg-gray-500 focus:border-gray-500",
|
|
14
|
-
darkgray: "bg-gray-800/90 border-gray-700 hover:bg-gray-700 active:bg-gray-600 focus:border-gray-600",
|
|
15
13
|
red: "bg-red-700/90 border-red-600 hover:bg-red-600 active:bg-red-500 focus:border-red-500",
|
|
16
14
|
green: "bg-green-700/90 border-green-600 hover:bg-green-600 active:bg-green-500 focus:border-green-500",
|
|
17
|
-
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500"
|
|
15
|
+
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500",
|
|
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
|
+
transparent: "bg-transparent border-transparent hover:bg-gray-700/10 active:bg-gray-700/20 focus:border-gray-700/20"
|
|
18
19
|
};
|
|
19
20
|
const sizeClasses = {
|
|
20
|
-
sm: "text-
|
|
21
|
+
sm: "text-base px-2.5 py-1.5 rounded-md gap-2",
|
|
21
22
|
md: "text-base px-4 py-2 rounded-md gap-3",
|
|
22
|
-
lg: "text-
|
|
23
|
-
xl: "text-
|
|
23
|
+
lg: "text-lg px-6 py-3 rounded-lg gap-3",
|
|
24
|
+
xl: "text-lg px-8 py-4 rounded-xl gap-4"
|
|
24
25
|
};
|
|
25
26
|
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 whitespace-nowrap";
|
|
26
27
|
const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -262,7 +263,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
262
263
|
}
|
|
263
264
|
}, null, 0, "OW_3");
|
|
264
265
|
}, "Card_component_DlkkcTEVka4"));
|
|
265
|
-
const InputClasses = "transition ease-in-out
|
|
266
|
+
const InputClasses = "transition ease-in-out 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-2.5 py-1.5";
|
|
266
267
|
const TextInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
267
268
|
return /* @__PURE__ */ _jsxQ("div", null, {
|
|
268
269
|
class: "flex flex-col"
|
|
@@ -446,9 +447,9 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
446
447
|
backgroundColor: `${props.value ?? "#000000"}`,
|
|
447
448
|
color: getBrightness(hexNumberToRgb(hexStringToNumber(props.value ?? "#000000"))) > 0.5 ? "black" : "white"
|
|
448
449
|
} : (props.preview ?? "left") == "left" ? {
|
|
449
|
-
borderLeft: `
|
|
450
|
+
borderLeft: `35px solid ${props.value ?? "#000000"}`
|
|
450
451
|
} : (props.preview ?? "left") == "right" ? {
|
|
451
|
-
borderRight: `
|
|
452
|
+
borderRight: `35px solid ${props.value ?? "#000000"}`
|
|
452
453
|
} : (props.preview ?? "left") == "top" ? {
|
|
453
454
|
borderTop: `10px solid ${props.value ?? "#000000"}`
|
|
454
455
|
} : (props.preview ?? "left") == "bottom" ? {
|
|
@@ -500,10 +501,10 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
500
501
|
el.style.color = getBrightness(hexNumberToRgb(hexStringToNumber(color))) > 0.5 ? "black" : "white";
|
|
501
502
|
break;
|
|
502
503
|
case "left":
|
|
503
|
-
el.style.borderLeft = `
|
|
504
|
+
el.style.borderLeft = `35px solid ${color}`;
|
|
504
505
|
break;
|
|
505
506
|
case "right":
|
|
506
|
-
el.style.borderRight = `
|
|
507
|
+
el.style.borderRight = `35px solid ${color}`;
|
|
507
508
|
break;
|
|
508
509
|
case "top":
|
|
509
510
|
el.style.borderTop = `10px solid ${color}`;
|
|
@@ -835,6 +836,48 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
835
836
|
], 1, "dL_5");
|
|
836
837
|
return Component;
|
|
837
838
|
}, "Header_component_FfGOhhBNG5k"));
|
|
839
|
+
const NavContainer = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
840
|
+
return /* @__PURE__ */ _jsxQ("nav", null, {
|
|
841
|
+
class: _fnSignal((p0) => ({
|
|
842
|
+
"transition-all duration-200 flex flex-col fixed top-0 left-0 w-full z-50": true,
|
|
843
|
+
"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl": !p0.floating
|
|
844
|
+
}), [
|
|
845
|
+
props
|
|
846
|
+
], '{"transition-all duration-200 flex flex-col fixed top-0 left-0 w-full z-50":true,"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl":!p0.floating}')
|
|
847
|
+
}, /* @__PURE__ */ _jsxQ("div", null, {
|
|
848
|
+
class: _fnSignal((p0) => ({
|
|
849
|
+
"flex justify-evenly w-full mx-auto px-4 py-2 max-w-7xl": true,
|
|
850
|
+
"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl mt-3 rounded-lg": p0.floating
|
|
851
|
+
}), [
|
|
852
|
+
props
|
|
853
|
+
], '{"flex justify-evenly w-full mx-auto px-4 py-2 max-w-7xl":true,"bg-gray-800/50 backdrop-blur-lg drop-shadow-xl mt-3 rounded-lg":p0.floating}')
|
|
854
|
+
}, [
|
|
855
|
+
/* @__PURE__ */ _jsxQ("div", null, {
|
|
856
|
+
class: "flex flex-1 justify-start"
|
|
857
|
+
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
858
|
+
name: "start",
|
|
859
|
+
[_IMMUTABLE]: {
|
|
860
|
+
name: _IMMUTABLE
|
|
861
|
+
}
|
|
862
|
+
}, 3, "8r_0"), 1, null),
|
|
863
|
+
/* @__PURE__ */ _jsxQ("div", null, {
|
|
864
|
+
class: "flex flex-1 justify-center"
|
|
865
|
+
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
866
|
+
name: "center",
|
|
867
|
+
[_IMMUTABLE]: {
|
|
868
|
+
name: _IMMUTABLE
|
|
869
|
+
}
|
|
870
|
+
}, 3, "8r_1"), 1, null),
|
|
871
|
+
/* @__PURE__ */ _jsxQ("div", null, {
|
|
872
|
+
class: "flex flex-1 justify-end"
|
|
873
|
+
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
874
|
+
name: "end",
|
|
875
|
+
[_IMMUTABLE]: {
|
|
876
|
+
name: _IMMUTABLE
|
|
877
|
+
}
|
|
878
|
+
}, 3, "8r_2"), 1, null)
|
|
879
|
+
], 1, null), 1, "8r_3");
|
|
880
|
+
}, "NavContainer_component_0cvQrwegQjA"));
|
|
838
881
|
const Plus = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
839
882
|
return /* @__PURE__ */ _jsxS("svg", {
|
|
840
883
|
...props,
|
|
@@ -916,6 +959,7 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
916
959
|
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
917
960
|
}, [
|
|
918
961
|
/* @__PURE__ */ _jsxC(Button, {
|
|
962
|
+
size: "sm",
|
|
919
963
|
get color() {
|
|
920
964
|
return props.input ? "gray" : "darkgray";
|
|
921
965
|
},
|
|
@@ -953,7 +997,8 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
953
997
|
color: _fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
954
998
|
props
|
|
955
999
|
], 'p0.input?"gray":"darkgray"'),
|
|
956
|
-
"data-action": _IMMUTABLE
|
|
1000
|
+
"data-action": _IMMUTABLE,
|
|
1001
|
+
size: _IMMUTABLE
|
|
957
1002
|
}
|
|
958
1003
|
}, 0, "gk_4"),
|
|
959
1004
|
props.input && /* @__PURE__ */ _jsxS("input", {
|
|
@@ -973,6 +1018,7 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
973
1018
|
], "p0.value??0")
|
|
974
1019
|
}, 0, "gk_5"),
|
|
975
1020
|
/* @__PURE__ */ _jsxC(Button, {
|
|
1021
|
+
size: "sm",
|
|
976
1022
|
get color() {
|
|
977
1023
|
return props.input ? "gray" : "darkgray";
|
|
978
1024
|
},
|
|
@@ -1010,7 +1056,8 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1010
1056
|
color: _fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
1011
1057
|
props
|
|
1012
1058
|
], 'p0.input?"gray":"darkgray"'),
|
|
1013
|
-
"data-action": _IMMUTABLE
|
|
1059
|
+
"data-action": _IMMUTABLE,
|
|
1060
|
+
size: _IMMUTABLE
|
|
1014
1061
|
}
|
|
1015
1062
|
}, 0, "gk_7")
|
|
1016
1063
|
], 1, "gk_8");
|
|
@@ -1099,6 +1146,7 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1099
1146
|
], "p0.id")
|
|
1100
1147
|
}, 0, null),
|
|
1101
1148
|
/* @__PURE__ */ _jsxC(Button, {
|
|
1149
|
+
size: "sm",
|
|
1102
1150
|
get class() {
|
|
1103
1151
|
return {
|
|
1104
1152
|
"flex focus:bg-gray-700": true,
|
|
@@ -1144,7 +1192,8 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1144
1192
|
}), [
|
|
1145
1193
|
props
|
|
1146
1194
|
], '{"flex focus:bg-gray-700":true,...p0.class}'),
|
|
1147
|
-
onClick$: _IMMUTABLE
|
|
1195
|
+
onClick$: _IMMUTABLE,
|
|
1196
|
+
size: _IMMUTABLE
|
|
1148
1197
|
}
|
|
1149
1198
|
}, 1, "cA_4"),
|
|
1150
1199
|
/* @__PURE__ */ _jsxQ("div", {
|
|
@@ -1274,7 +1323,7 @@ const Toggle = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1274
1323
|
props.label && /* @__PURE__ */ _jsxQ("label", {
|
|
1275
1324
|
for: _wrapSignal(props1, "id")
|
|
1276
1325
|
}, {
|
|
1277
|
-
class: "text-gray-300"
|
|
1326
|
+
class: "text-gray-300 flex gap-2"
|
|
1278
1327
|
}, _fnSignal((p0) => p0.label, [
|
|
1279
1328
|
props
|
|
1280
1329
|
], "p0.label"), 3, "yu_0")
|
|
@@ -1736,6 +1785,7 @@ export {
|
|
|
1736
1785
|
LogoPurpur,
|
|
1737
1786
|
LogoVelocity,
|
|
1738
1787
|
LogoWaterfall,
|
|
1788
|
+
NavContainer,
|
|
1739
1789
|
NumberInput,
|
|
1740
1790
|
NumberInputRaw,
|
|
1741
1791
|
SelectInput,
|
|
@@ -3,11 +3,12 @@ export declare const buttonColorClasses: {
|
|
|
3
3
|
blue: string;
|
|
4
4
|
purple: string;
|
|
5
5
|
pink: string;
|
|
6
|
-
gray: string;
|
|
7
|
-
darkgray: string;
|
|
8
6
|
red: string;
|
|
9
7
|
green: string;
|
|
10
8
|
yellow: string;
|
|
9
|
+
gray: string;
|
|
10
|
+
darkgray: string;
|
|
11
|
+
transparent: string;
|
|
11
12
|
};
|
|
12
13
|
export declare const sizeClasses: {
|
|
13
14
|
sm: string;
|
|
@@ -9,7 +9,7 @@ export interface TextInputRawProps extends Omit<(PropsOf<'input'> & {
|
|
|
9
9
|
interface TextInputProps extends Omit<TextInputRawProps, 'children'> {
|
|
10
10
|
id: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const InputClasses = "transition ease-in-out
|
|
12
|
+
export declare const InputClasses = "transition ease-in-out 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-2.5 py-1.5";
|
|
13
13
|
export declare const TextInput: import("@builder.io/qwik").Component<TextInputProps>;
|
|
14
14
|
export declare const TextInputRaw: import("@builder.io/qwik").Component<TextInputRawProps>;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropsOf } from '@builder.io/qwik';
|
|
1
|
+
import type { JSXOutput, PropsOf } from '@builder.io/qwik';
|
|
2
2
|
interface ToggleProps extends Omit<(PropsOf<'input'> & {
|
|
3
3
|
type: 'checkbox';
|
|
4
4
|
}), 'class' | 'bind:checked' | 'type' | 'children'> {
|
|
@@ -6,7 +6,7 @@ interface ToggleProps extends Omit<(PropsOf<'input'> & {
|
|
|
6
6
|
[key: string]: boolean;
|
|
7
7
|
};
|
|
8
8
|
center?: boolean;
|
|
9
|
-
label?: string;
|
|
9
|
+
label?: string | JSXOutput;
|
|
10
10
|
}
|
|
11
11
|
export declare const Toggle: import("@builder.io/qwik").Component<ToggleProps>;
|
|
12
12
|
export {};
|
|
@@ -4,6 +4,7 @@ export * from './elements/Card';
|
|
|
4
4
|
export * from './elements/ColorInput';
|
|
5
5
|
export * from './elements/Header';
|
|
6
6
|
export * from './elements/LoadingIcon';
|
|
7
|
+
export * from './elements/Nav';
|
|
7
8
|
export * from './elements/NumberInput';
|
|
8
9
|
export * from './elements/SelectInput';
|
|
9
10
|
export * from './elements/TextArea';
|