@luminescent/ui 0.8.1 → 0.9.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
CHANGED
|
@@ -19,10 +19,10 @@ const buttonColorClasses = {
|
|
|
19
19
|
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500"
|
|
20
20
|
};
|
|
21
21
|
const sizeClasses = {
|
|
22
|
-
sm: "text-sm px-2 py-1 rounded-md gap-2
|
|
22
|
+
sm: "text-sm px-2.5 py-1.5 rounded-md gap-2",
|
|
23
23
|
md: "text-base px-4 py-2 rounded-md gap-3",
|
|
24
|
-
lg: "text-
|
|
25
|
-
xl: "text-
|
|
24
|
+
lg: "text-lg px-6 py-3 rounded-lg gap-3",
|
|
25
|
+
xl: "text-lg px-8 py-4 rounded-xl gap-4"
|
|
26
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 hover:shadow-lg active:scale-95 whitespace-nowrap";
|
|
28
28
|
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -264,7 +264,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
264
264
|
}
|
|
265
265
|
}, null, 0, "OW_3");
|
|
266
266
|
}, "Card_component_DlkkcTEVka4"));
|
|
267
|
-
const InputClasses = "transition ease-in-out
|
|
267
|
+
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
268
|
const TextInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
269
269
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
270
270
|
class: "flex flex-col"
|
|
@@ -448,9 +448,9 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
448
448
|
backgroundColor: `${props.value ?? "#000000"}`,
|
|
449
449
|
color: getBrightness(hexNumberToRgb(hexStringToNumber(props.value ?? "#000000"))) > 0.5 ? "black" : "white"
|
|
450
450
|
} : (props.preview ?? "left") == "left" ? {
|
|
451
|
-
borderLeft: `
|
|
451
|
+
borderLeft: `35px solid ${props.value ?? "#000000"}`
|
|
452
452
|
} : (props.preview ?? "left") == "right" ? {
|
|
453
|
-
borderRight: `
|
|
453
|
+
borderRight: `35px solid ${props.value ?? "#000000"}`
|
|
454
454
|
} : (props.preview ?? "left") == "top" ? {
|
|
455
455
|
borderTop: `10px solid ${props.value ?? "#000000"}`
|
|
456
456
|
} : (props.preview ?? "left") == "bottom" ? {
|
|
@@ -502,10 +502,10 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
502
502
|
el.style.color = getBrightness(hexNumberToRgb(hexStringToNumber(color))) > 0.5 ? "black" : "white";
|
|
503
503
|
break;
|
|
504
504
|
case "left":
|
|
505
|
-
el.style.borderLeft = `
|
|
505
|
+
el.style.borderLeft = `35px solid ${color}`;
|
|
506
506
|
break;
|
|
507
507
|
case "right":
|
|
508
|
-
el.style.borderRight = `
|
|
508
|
+
el.style.borderRight = `35px solid ${color}`;
|
|
509
509
|
break;
|
|
510
510
|
case "top":
|
|
511
511
|
el.style.borderTop = `10px solid ${color}`;
|
|
@@ -909,9 +909,6 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
909
909
|
-moz-appearance: textfield;
|
|
910
910
|
}
|
|
911
911
|
`, "NumberInputRaw_component_useStyles_v5EsWTMt0DU"));
|
|
912
|
-
const store = qwik.useStore({
|
|
913
|
-
value: props.value ?? 0
|
|
914
|
-
});
|
|
915
912
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
916
913
|
class: qwik._fnSignal((p0) => ({
|
|
917
914
|
"flex text-gray-50": true,
|
|
@@ -921,20 +918,21 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
921
918
|
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
922
919
|
}, [
|
|
923
920
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
921
|
+
size: "sm",
|
|
924
922
|
get color() {
|
|
925
923
|
return props.input ? "gray" : "darkgray";
|
|
926
924
|
},
|
|
927
925
|
"aria-label": "Decrement",
|
|
928
926
|
"data-action": "decrement",
|
|
929
|
-
disabled: props1.min ?
|
|
930
|
-
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
931
|
-
const [props2
|
|
932
|
-
|
|
933
|
-
|
|
927
|
+
disabled: props1.min ? (props.value ?? 0) <= props1.min : false,
|
|
928
|
+
onClick$: props.input ? /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
929
|
+
const [props2] = qwik.useLexicalScope();
|
|
930
|
+
const siblingInput = element.nextElementSibling;
|
|
931
|
+
siblingInput.stepDown();
|
|
932
|
+
props2.onDecrement$(event, element, siblingInput);
|
|
934
933
|
}, "NumberInputRaw_component_div_Button_onClick_PgKg57gfX0I", [
|
|
935
|
-
props
|
|
936
|
-
|
|
937
|
-
]),
|
|
934
|
+
props
|
|
935
|
+
]) : props.onDecrement$,
|
|
938
936
|
get class() {
|
|
939
937
|
return {
|
|
940
938
|
"mr-2": props.input
|
|
@@ -959,9 +957,9 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
959
957
|
props
|
|
960
958
|
], 'p0.input?"gray":"darkgray"'),
|
|
961
959
|
"data-action": qwik._IMMUTABLE,
|
|
962
|
-
|
|
960
|
+
size: qwik._IMMUTABLE
|
|
963
961
|
}
|
|
964
|
-
},
|
|
962
|
+
}, 0, "gk_4"),
|
|
965
963
|
props.input && /* @__PURE__ */ qwik._jsxS("input", {
|
|
966
964
|
...props1,
|
|
967
965
|
class: {
|
|
@@ -974,25 +972,26 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
974
972
|
props
|
|
975
973
|
], "p0.step??1"),
|
|
976
974
|
type: "number",
|
|
977
|
-
value: qwik._fnSignal((p0) => p0.value, [
|
|
978
|
-
|
|
979
|
-
], "p0.value")
|
|
975
|
+
value: qwik._fnSignal((p0) => p0.value ?? 0, [
|
|
976
|
+
props
|
|
977
|
+
], "p0.value??0")
|
|
980
978
|
}, 0, "gk_5"),
|
|
981
979
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
980
|
+
size: "sm",
|
|
982
981
|
get color() {
|
|
983
982
|
return props.input ? "gray" : "darkgray";
|
|
984
983
|
},
|
|
985
984
|
"aria-label": "Increment",
|
|
986
985
|
"data-action": "increment",
|
|
987
|
-
disabled: props1.max ?
|
|
988
|
-
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
989
|
-
const [props2
|
|
990
|
-
|
|
991
|
-
|
|
986
|
+
disabled: props1.max ? (props.value ?? 0) >= props1.max : false,
|
|
987
|
+
onClick$: props.input ? /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
988
|
+
const [props2] = qwik.useLexicalScope();
|
|
989
|
+
const siblingInput = element.previousElementSibling;
|
|
990
|
+
siblingInput.stepUp();
|
|
991
|
+
props2.onIncrement$(event, element, siblingInput);
|
|
992
992
|
}, "NumberInputRaw_component_div_Button_onClick_1_UzVlUpg1uGs", [
|
|
993
|
-
props
|
|
994
|
-
|
|
995
|
-
]),
|
|
993
|
+
props
|
|
994
|
+
]) : props.onIncrement$,
|
|
996
995
|
get class() {
|
|
997
996
|
return {
|
|
998
997
|
"ml-2": props.input
|
|
@@ -1017,9 +1016,9 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1017
1016
|
props
|
|
1018
1017
|
], 'p0.input?"gray":"darkgray"'),
|
|
1019
1018
|
"data-action": qwik._IMMUTABLE,
|
|
1020
|
-
|
|
1019
|
+
size: qwik._IMMUTABLE
|
|
1021
1020
|
}
|
|
1022
|
-
},
|
|
1021
|
+
}, 0, "gk_7")
|
|
1023
1022
|
], 1, "gk_8");
|
|
1024
1023
|
}, "NumberInputRaw_component_8sGf0eS1rvo"));
|
|
1025
1024
|
const ChevronDown = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -1106,6 +1105,7 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1106
1105
|
], "p0.id")
|
|
1107
1106
|
}, 0, null),
|
|
1108
1107
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1108
|
+
size: "sm",
|
|
1109
1109
|
get class() {
|
|
1110
1110
|
return {
|
|
1111
1111
|
"flex focus:bg-gray-700": true,
|
|
@@ -1151,7 +1151,8 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1151
1151
|
}), [
|
|
1152
1152
|
props
|
|
1153
1153
|
], '{"flex focus:bg-gray-700":true,...p0.class}'),
|
|
1154
|
-
onClick$: qwik._IMMUTABLE
|
|
1154
|
+
onClick$: qwik._IMMUTABLE,
|
|
1155
|
+
size: qwik._IMMUTABLE
|
|
1155
1156
|
}
|
|
1156
1157
|
}, 1, "cA_4"),
|
|
1157
1158
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
@@ -1281,7 +1282,7 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1281
1282
|
props.label && /* @__PURE__ */ qwik._jsxQ("label", {
|
|
1282
1283
|
for: qwik._wrapSignal(props1, "id")
|
|
1283
1284
|
}, {
|
|
1284
|
-
class: "text-gray-300"
|
|
1285
|
+
class: "text-gray-300 flex gap-2"
|
|
1285
1286
|
}, qwik._fnSignal((p0) => p0.label, [
|
|
1286
1287
|
props
|
|
1287
1288
|
], "p0.label"), 3, "yu_0")
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -17,10 +17,10 @@ const buttonColorClasses = {
|
|
|
17
17
|
yellow: "bg-yellow-700/90 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-500 focus:border-yellow-500"
|
|
18
18
|
};
|
|
19
19
|
const sizeClasses = {
|
|
20
|
-
sm: "text-sm px-2 py-1 rounded-md gap-2
|
|
20
|
+
sm: "text-sm px-2.5 py-1.5 rounded-md gap-2",
|
|
21
21
|
md: "text-base px-4 py-2 rounded-md gap-3",
|
|
22
|
-
lg: "text-
|
|
23
|
-
xl: "text-
|
|
22
|
+
lg: "text-lg px-6 py-3 rounded-lg gap-3",
|
|
23
|
+
xl: "text-lg px-8 py-4 rounded-xl gap-4"
|
|
24
24
|
};
|
|
25
25
|
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
26
|
const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -262,7 +262,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
262
262
|
}
|
|
263
263
|
}, null, 0, "OW_3");
|
|
264
264
|
}, "Card_component_DlkkcTEVka4"));
|
|
265
|
-
const InputClasses = "transition ease-in-out
|
|
265
|
+
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
266
|
const TextInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
267
267
|
return /* @__PURE__ */ _jsxQ("div", null, {
|
|
268
268
|
class: "flex flex-col"
|
|
@@ -446,9 +446,9 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
446
446
|
backgroundColor: `${props.value ?? "#000000"}`,
|
|
447
447
|
color: getBrightness(hexNumberToRgb(hexStringToNumber(props.value ?? "#000000"))) > 0.5 ? "black" : "white"
|
|
448
448
|
} : (props.preview ?? "left") == "left" ? {
|
|
449
|
-
borderLeft: `
|
|
449
|
+
borderLeft: `35px solid ${props.value ?? "#000000"}`
|
|
450
450
|
} : (props.preview ?? "left") == "right" ? {
|
|
451
|
-
borderRight: `
|
|
451
|
+
borderRight: `35px solid ${props.value ?? "#000000"}`
|
|
452
452
|
} : (props.preview ?? "left") == "top" ? {
|
|
453
453
|
borderTop: `10px solid ${props.value ?? "#000000"}`
|
|
454
454
|
} : (props.preview ?? "left") == "bottom" ? {
|
|
@@ -500,10 +500,10 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
500
500
|
el.style.color = getBrightness(hexNumberToRgb(hexStringToNumber(color))) > 0.5 ? "black" : "white";
|
|
501
501
|
break;
|
|
502
502
|
case "left":
|
|
503
|
-
el.style.borderLeft = `
|
|
503
|
+
el.style.borderLeft = `35px solid ${color}`;
|
|
504
504
|
break;
|
|
505
505
|
case "right":
|
|
506
|
-
el.style.borderRight = `
|
|
506
|
+
el.style.borderRight = `35px solid ${color}`;
|
|
507
507
|
break;
|
|
508
508
|
case "top":
|
|
509
509
|
el.style.borderTop = `10px solid ${color}`;
|
|
@@ -907,9 +907,6 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
907
907
|
-moz-appearance: textfield;
|
|
908
908
|
}
|
|
909
909
|
`, "NumberInputRaw_component_useStyles_v5EsWTMt0DU"));
|
|
910
|
-
const store = useStore({
|
|
911
|
-
value: props.value ?? 0
|
|
912
|
-
});
|
|
913
910
|
return /* @__PURE__ */ _jsxQ("div", null, {
|
|
914
911
|
class: _fnSignal((p0) => ({
|
|
915
912
|
"flex text-gray-50": true,
|
|
@@ -919,20 +916,21 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
919
916
|
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
920
917
|
}, [
|
|
921
918
|
/* @__PURE__ */ _jsxC(Button, {
|
|
919
|
+
size: "sm",
|
|
922
920
|
get color() {
|
|
923
921
|
return props.input ? "gray" : "darkgray";
|
|
924
922
|
},
|
|
925
923
|
"aria-label": "Decrement",
|
|
926
924
|
"data-action": "decrement",
|
|
927
|
-
disabled: props1.min ?
|
|
928
|
-
onClick$: /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
929
|
-
const [props2
|
|
930
|
-
|
|
931
|
-
|
|
925
|
+
disabled: props1.min ? (props.value ?? 0) <= props1.min : false,
|
|
926
|
+
onClick$: props.input ? /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
927
|
+
const [props2] = useLexicalScope();
|
|
928
|
+
const siblingInput = element.nextElementSibling;
|
|
929
|
+
siblingInput.stepDown();
|
|
930
|
+
props2.onDecrement$(event, element, siblingInput);
|
|
932
931
|
}, "NumberInputRaw_component_div_Button_onClick_PgKg57gfX0I", [
|
|
933
|
-
props
|
|
934
|
-
|
|
935
|
-
]),
|
|
932
|
+
props
|
|
933
|
+
]) : props.onDecrement$,
|
|
936
934
|
get class() {
|
|
937
935
|
return {
|
|
938
936
|
"mr-2": props.input
|
|
@@ -957,9 +955,9 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
957
955
|
props
|
|
958
956
|
], 'p0.input?"gray":"darkgray"'),
|
|
959
957
|
"data-action": _IMMUTABLE,
|
|
960
|
-
|
|
958
|
+
size: _IMMUTABLE
|
|
961
959
|
}
|
|
962
|
-
},
|
|
960
|
+
}, 0, "gk_4"),
|
|
963
961
|
props.input && /* @__PURE__ */ _jsxS("input", {
|
|
964
962
|
...props1,
|
|
965
963
|
class: {
|
|
@@ -972,25 +970,26 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
972
970
|
props
|
|
973
971
|
], "p0.step??1"),
|
|
974
972
|
type: "number",
|
|
975
|
-
value: _fnSignal((p0) => p0.value, [
|
|
976
|
-
|
|
977
|
-
], "p0.value")
|
|
973
|
+
value: _fnSignal((p0) => p0.value ?? 0, [
|
|
974
|
+
props
|
|
975
|
+
], "p0.value??0")
|
|
978
976
|
}, 0, "gk_5"),
|
|
979
977
|
/* @__PURE__ */ _jsxC(Button, {
|
|
978
|
+
size: "sm",
|
|
980
979
|
get color() {
|
|
981
980
|
return props.input ? "gray" : "darkgray";
|
|
982
981
|
},
|
|
983
982
|
"aria-label": "Increment",
|
|
984
983
|
"data-action": "increment",
|
|
985
|
-
disabled: props1.max ?
|
|
986
|
-
onClick$: /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
987
|
-
const [props2
|
|
988
|
-
|
|
989
|
-
|
|
984
|
+
disabled: props1.max ? (props.value ?? 0) >= props1.max : false,
|
|
985
|
+
onClick$: props.input ? /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
986
|
+
const [props2] = useLexicalScope();
|
|
987
|
+
const siblingInput = element.previousElementSibling;
|
|
988
|
+
siblingInput.stepUp();
|
|
989
|
+
props2.onIncrement$(event, element, siblingInput);
|
|
990
990
|
}, "NumberInputRaw_component_div_Button_onClick_1_UzVlUpg1uGs", [
|
|
991
|
-
props
|
|
992
|
-
|
|
993
|
-
]),
|
|
991
|
+
props
|
|
992
|
+
]) : props.onIncrement$,
|
|
994
993
|
get class() {
|
|
995
994
|
return {
|
|
996
995
|
"ml-2": props.input
|
|
@@ -1015,9 +1014,9 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1015
1014
|
props
|
|
1016
1015
|
], 'p0.input?"gray":"darkgray"'),
|
|
1017
1016
|
"data-action": _IMMUTABLE,
|
|
1018
|
-
|
|
1017
|
+
size: _IMMUTABLE
|
|
1019
1018
|
}
|
|
1020
|
-
},
|
|
1019
|
+
}, 0, "gk_7")
|
|
1021
1020
|
], 1, "gk_8");
|
|
1022
1021
|
}, "NumberInputRaw_component_8sGf0eS1rvo"));
|
|
1023
1022
|
const ChevronDown = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -1104,6 +1103,7 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1104
1103
|
], "p0.id")
|
|
1105
1104
|
}, 0, null),
|
|
1106
1105
|
/* @__PURE__ */ _jsxC(Button, {
|
|
1106
|
+
size: "sm",
|
|
1107
1107
|
get class() {
|
|
1108
1108
|
return {
|
|
1109
1109
|
"flex focus:bg-gray-700": true,
|
|
@@ -1149,7 +1149,8 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1149
1149
|
}), [
|
|
1150
1150
|
props
|
|
1151
1151
|
], '{"flex focus:bg-gray-700":true,...p0.class}'),
|
|
1152
|
-
onClick$: _IMMUTABLE
|
|
1152
|
+
onClick$: _IMMUTABLE,
|
|
1153
|
+
size: _IMMUTABLE
|
|
1153
1154
|
}
|
|
1154
1155
|
}, 1, "cA_4"),
|
|
1155
1156
|
/* @__PURE__ */ _jsxQ("div", {
|
|
@@ -1279,7 +1280,7 @@ const Toggle = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1279
1280
|
props.label && /* @__PURE__ */ _jsxQ("label", {
|
|
1280
1281
|
for: _wrapSignal(props1, "id")
|
|
1281
1282
|
}, {
|
|
1282
|
-
class: "text-gray-300"
|
|
1283
|
+
class: "text-gray-300 flex gap-2"
|
|
1283
1284
|
}, _fnSignal((p0) => p0.label, [
|
|
1284
1285
|
props
|
|
1285
1286
|
], "p0.label"), 3, "yu_0")
|
|
@@ -2,12 +2,8 @@ import type { PropsOf, QRL } from '@builder.io/qwik';
|
|
|
2
2
|
interface NumberInputRawProps extends Omit<(PropsOf<'input'> & {
|
|
3
3
|
type: 'number';
|
|
4
4
|
}), 'class' | 'type'> {
|
|
5
|
-
onDecrement$: QRL<(event: PointerEvent, element: HTMLButtonElement,
|
|
6
|
-
|
|
7
|
-
}) => void>;
|
|
8
|
-
onIncrement$: QRL<(event: PointerEvent, element: HTMLButtonElement, store: {
|
|
9
|
-
value: number;
|
|
10
|
-
}) => void>;
|
|
5
|
+
onDecrement$: QRL<(event: PointerEvent, element: HTMLButtonElement, inputElement?: HTMLInputElement) => void>;
|
|
6
|
+
onIncrement$: QRL<(event: PointerEvent, element: HTMLButtonElement, inputElement?: HTMLInputElement) => void>;
|
|
11
7
|
input?: boolean;
|
|
12
8
|
class?: {
|
|
13
9
|
[key: string]: boolean;
|
|
@@ -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 {};
|