@luminescent/ui 0.8.2 → 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}`;
|
|
@@ -918,6 +918,7 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
918
918
|
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
919
919
|
}, [
|
|
920
920
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
921
|
+
size: "sm",
|
|
921
922
|
get color() {
|
|
922
923
|
return props.input ? "gray" : "darkgray";
|
|
923
924
|
},
|
|
@@ -955,7 +956,8 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
955
956
|
color: qwik._fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
956
957
|
props
|
|
957
958
|
], 'p0.input?"gray":"darkgray"'),
|
|
958
|
-
"data-action": qwik._IMMUTABLE
|
|
959
|
+
"data-action": qwik._IMMUTABLE,
|
|
960
|
+
size: qwik._IMMUTABLE
|
|
959
961
|
}
|
|
960
962
|
}, 0, "gk_4"),
|
|
961
963
|
props.input && /* @__PURE__ */ qwik._jsxS("input", {
|
|
@@ -975,6 +977,7 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
975
977
|
], "p0.value??0")
|
|
976
978
|
}, 0, "gk_5"),
|
|
977
979
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
980
|
+
size: "sm",
|
|
978
981
|
get color() {
|
|
979
982
|
return props.input ? "gray" : "darkgray";
|
|
980
983
|
},
|
|
@@ -1012,7 +1015,8 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1012
1015
|
color: qwik._fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
1013
1016
|
props
|
|
1014
1017
|
], 'p0.input?"gray":"darkgray"'),
|
|
1015
|
-
"data-action": qwik._IMMUTABLE
|
|
1018
|
+
"data-action": qwik._IMMUTABLE,
|
|
1019
|
+
size: qwik._IMMUTABLE
|
|
1016
1020
|
}
|
|
1017
1021
|
}, 0, "gk_7")
|
|
1018
1022
|
], 1, "gk_8");
|
|
@@ -1101,6 +1105,7 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1101
1105
|
], "p0.id")
|
|
1102
1106
|
}, 0, null),
|
|
1103
1107
|
/* @__PURE__ */ qwik._jsxC(Button, {
|
|
1108
|
+
size: "sm",
|
|
1104
1109
|
get class() {
|
|
1105
1110
|
return {
|
|
1106
1111
|
"flex focus:bg-gray-700": true,
|
|
@@ -1146,7 +1151,8 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1146
1151
|
}), [
|
|
1147
1152
|
props
|
|
1148
1153
|
], '{"flex focus:bg-gray-700":true,...p0.class}'),
|
|
1149
|
-
onClick$: qwik._IMMUTABLE
|
|
1154
|
+
onClick$: qwik._IMMUTABLE,
|
|
1155
|
+
size: qwik._IMMUTABLE
|
|
1150
1156
|
}
|
|
1151
1157
|
}, 1, "cA_4"),
|
|
1152
1158
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
@@ -1276,7 +1282,7 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1276
1282
|
props.label && /* @__PURE__ */ qwik._jsxQ("label", {
|
|
1277
1283
|
for: qwik._wrapSignal(props1, "id")
|
|
1278
1284
|
}, {
|
|
1279
|
-
class: "text-gray-300"
|
|
1285
|
+
class: "text-gray-300 flex gap-2"
|
|
1280
1286
|
}, qwik._fnSignal((p0) => p0.label, [
|
|
1281
1287
|
props
|
|
1282
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}`;
|
|
@@ -916,6 +916,7 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
916
916
|
], '{"flex text-gray-50":true,"gap-2":!p0.input}')
|
|
917
917
|
}, [
|
|
918
918
|
/* @__PURE__ */ _jsxC(Button, {
|
|
919
|
+
size: "sm",
|
|
919
920
|
get color() {
|
|
920
921
|
return props.input ? "gray" : "darkgray";
|
|
921
922
|
},
|
|
@@ -953,7 +954,8 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
953
954
|
color: _fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
954
955
|
props
|
|
955
956
|
], 'p0.input?"gray":"darkgray"'),
|
|
956
|
-
"data-action": _IMMUTABLE
|
|
957
|
+
"data-action": _IMMUTABLE,
|
|
958
|
+
size: _IMMUTABLE
|
|
957
959
|
}
|
|
958
960
|
}, 0, "gk_4"),
|
|
959
961
|
props.input && /* @__PURE__ */ _jsxS("input", {
|
|
@@ -973,6 +975,7 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
973
975
|
], "p0.value??0")
|
|
974
976
|
}, 0, "gk_5"),
|
|
975
977
|
/* @__PURE__ */ _jsxC(Button, {
|
|
978
|
+
size: "sm",
|
|
976
979
|
get color() {
|
|
977
980
|
return props.input ? "gray" : "darkgray";
|
|
978
981
|
},
|
|
@@ -1010,7 +1013,8 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1010
1013
|
color: _fnSignal((p0) => p0.input ? "gray" : "darkgray", [
|
|
1011
1014
|
props
|
|
1012
1015
|
], 'p0.input?"gray":"darkgray"'),
|
|
1013
|
-
"data-action": _IMMUTABLE
|
|
1016
|
+
"data-action": _IMMUTABLE,
|
|
1017
|
+
size: _IMMUTABLE
|
|
1014
1018
|
}
|
|
1015
1019
|
}, 0, "gk_7")
|
|
1016
1020
|
], 1, "gk_8");
|
|
@@ -1099,6 +1103,7 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1099
1103
|
], "p0.id")
|
|
1100
1104
|
}, 0, null),
|
|
1101
1105
|
/* @__PURE__ */ _jsxC(Button, {
|
|
1106
|
+
size: "sm",
|
|
1102
1107
|
get class() {
|
|
1103
1108
|
return {
|
|
1104
1109
|
"flex focus:bg-gray-700": true,
|
|
@@ -1144,7 +1149,8 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1144
1149
|
}), [
|
|
1145
1150
|
props
|
|
1146
1151
|
], '{"flex focus:bg-gray-700":true,...p0.class}'),
|
|
1147
|
-
onClick$: _IMMUTABLE
|
|
1152
|
+
onClick$: _IMMUTABLE,
|
|
1153
|
+
size: _IMMUTABLE
|
|
1148
1154
|
}
|
|
1149
1155
|
}, 1, "cA_4"),
|
|
1150
1156
|
/* @__PURE__ */ _jsxQ("div", {
|
|
@@ -1274,7 +1280,7 @@ const Toggle = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1274
1280
|
props.label && /* @__PURE__ */ _jsxQ("label", {
|
|
1275
1281
|
for: _wrapSignal(props1, "id")
|
|
1276
1282
|
}, {
|
|
1277
|
-
class: "text-gray-300"
|
|
1283
|
+
class: "text-gray-300 flex gap-2"
|
|
1278
1284
|
}, _fnSignal((p0) => p0.label, [
|
|
1279
1285
|
props
|
|
1280
1286
|
], "p0.label"), 3, "yu_0")
|
|
@@ -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 {};
|