@luminescent/ui 0.10.0-2 → 0.10.0-4
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
|
@@ -903,7 +903,7 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
903
903
|
}
|
|
904
904
|
}, null, [
|
|
905
905
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
906
|
-
class: "flex flex-1 gap-2 justify-start"
|
|
906
|
+
class: "flex items-center flex-1 gap-2 justify-start"
|
|
907
907
|
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
908
908
|
name: "start",
|
|
909
909
|
[qwik._IMMUTABLE]: {
|
|
@@ -911,7 +911,7 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
911
911
|
}
|
|
912
912
|
}, 3, "8r_1"), 1, null),
|
|
913
913
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
914
|
-
class: "flex flex-1 gap-2 justify-center"
|
|
914
|
+
class: "flex items-center flex-1 gap-2 justify-center"
|
|
915
915
|
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
916
916
|
name: "center",
|
|
917
917
|
[qwik._IMMUTABLE]: {
|
|
@@ -919,7 +919,7 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
919
919
|
}
|
|
920
920
|
}, 3, "8r_2"), 1, null),
|
|
921
921
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
922
|
-
class: "flex flex-1 gap-2 justify-end"
|
|
922
|
+
class: "flex items-center flex-1 gap-2 justify-end"
|
|
923
923
|
}, [
|
|
924
924
|
/* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
925
925
|
name: "end",
|
|
@@ -1186,7 +1186,8 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1186
1186
|
"values",
|
|
1187
1187
|
"class",
|
|
1188
1188
|
"display",
|
|
1189
|
-
"color"
|
|
1189
|
+
"color",
|
|
1190
|
+
"size"
|
|
1190
1191
|
]);
|
|
1191
1192
|
const store = qwik.useStore({
|
|
1192
1193
|
opened: false
|
|
@@ -1235,7 +1236,9 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1235
1236
|
get color() {
|
|
1236
1237
|
return props.color;
|
|
1237
1238
|
},
|
|
1238
|
-
size
|
|
1239
|
+
get size() {
|
|
1240
|
+
return props.size ?? "sm";
|
|
1241
|
+
},
|
|
1239
1242
|
get class() {
|
|
1240
1243
|
return {
|
|
1241
1244
|
"flex": true,
|
|
@@ -1288,7 +1291,9 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1288
1291
|
props
|
|
1289
1292
|
], "p0.color"),
|
|
1290
1293
|
onClick$: qwik._IMMUTABLE,
|
|
1291
|
-
size: qwik.
|
|
1294
|
+
size: qwik._fnSignal((p0) => p0.size ?? "sm", [
|
|
1295
|
+
props
|
|
1296
|
+
], 'p0.size??"sm"')
|
|
1292
1297
|
}
|
|
1293
1298
|
}, 1, "cA_5"),
|
|
1294
1299
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
@@ -1309,7 +1314,8 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
|
|
|
1309
1314
|
const select = document.getElementById(props2.id);
|
|
1310
1315
|
select.value = value2.value.toString();
|
|
1311
1316
|
const name = document.getElementById(`lui-${props2.id}-name`);
|
|
1312
|
-
|
|
1317
|
+
if (name)
|
|
1318
|
+
name.textContent = value2.name;
|
|
1313
1319
|
select.dispatchEvent(new Event("change"));
|
|
1314
1320
|
}, "SelectInputRaw_component_div_div_Button_onClick_mLa0FdeKCLw", [
|
|
1315
1321
|
props,
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -901,7 +901,7 @@ const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
|
901
901
|
}
|
|
902
902
|
}, null, [
|
|
903
903
|
/* @__PURE__ */ _jsxQ("div", null, {
|
|
904
|
-
class: "flex flex-1 gap-2 justify-start"
|
|
904
|
+
class: "flex items-center flex-1 gap-2 justify-start"
|
|
905
905
|
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
906
906
|
name: "start",
|
|
907
907
|
[_IMMUTABLE]: {
|
|
@@ -909,7 +909,7 @@ const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
|
909
909
|
}
|
|
910
910
|
}, 3, "8r_1"), 1, null),
|
|
911
911
|
/* @__PURE__ */ _jsxQ("div", null, {
|
|
912
|
-
class: "flex flex-1 gap-2 justify-center"
|
|
912
|
+
class: "flex items-center flex-1 gap-2 justify-center"
|
|
913
913
|
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
914
914
|
name: "center",
|
|
915
915
|
[_IMMUTABLE]: {
|
|
@@ -917,7 +917,7 @@ const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
|
917
917
|
}
|
|
918
918
|
}, 3, "8r_2"), 1, null),
|
|
919
919
|
/* @__PURE__ */ _jsxQ("div", null, {
|
|
920
|
-
class: "flex flex-1 gap-2 justify-end"
|
|
920
|
+
class: "flex items-center flex-1 gap-2 justify-end"
|
|
921
921
|
}, [
|
|
922
922
|
/* @__PURE__ */ _jsxC(Slot, {
|
|
923
923
|
name: "end",
|
|
@@ -1184,7 +1184,8 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1184
1184
|
"values",
|
|
1185
1185
|
"class",
|
|
1186
1186
|
"display",
|
|
1187
|
-
"color"
|
|
1187
|
+
"color",
|
|
1188
|
+
"size"
|
|
1188
1189
|
]);
|
|
1189
1190
|
const store = useStore({
|
|
1190
1191
|
opened: false
|
|
@@ -1233,7 +1234,9 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1233
1234
|
get color() {
|
|
1234
1235
|
return props.color;
|
|
1235
1236
|
},
|
|
1236
|
-
size
|
|
1237
|
+
get size() {
|
|
1238
|
+
return props.size ?? "sm";
|
|
1239
|
+
},
|
|
1237
1240
|
get class() {
|
|
1238
1241
|
return {
|
|
1239
1242
|
"flex": true,
|
|
@@ -1286,7 +1289,9 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1286
1289
|
props
|
|
1287
1290
|
], "p0.color"),
|
|
1288
1291
|
onClick$: _IMMUTABLE,
|
|
1289
|
-
size:
|
|
1292
|
+
size: _fnSignal((p0) => p0.size ?? "sm", [
|
|
1293
|
+
props
|
|
1294
|
+
], 'p0.size??"sm"')
|
|
1290
1295
|
}
|
|
1291
1296
|
}, 1, "cA_5"),
|
|
1292
1297
|
/* @__PURE__ */ _jsxQ("div", {
|
|
@@ -1307,7 +1312,8 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
|
|
|
1307
1312
|
const select = document.getElementById(props2.id);
|
|
1308
1313
|
select.value = value2.value.toString();
|
|
1309
1314
|
const name = document.getElementById(`lui-${props2.id}-name`);
|
|
1310
|
-
|
|
1315
|
+
if (name)
|
|
1316
|
+
name.textContent = value2.name;
|
|
1311
1317
|
select.dispatchEvent(new Event("change"));
|
|
1312
1318
|
}, "SelectInputRaw_component_div_div_Button_onClick_mLa0FdeKCLw", [
|
|
1313
1319
|
props,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { JSXChildren, PropsOf } from '@builder.io/qwik';
|
|
2
|
-
import type { buttonColorClasses } from './Button';
|
|
3
|
-
interface SelectInputProps extends Omit<PropsOf<'select'>, 'class'> {
|
|
2
|
+
import type { buttonColorClasses, sizeClasses } from './Button';
|
|
3
|
+
interface SelectInputProps extends Omit<PropsOf<'select'>, 'class' | 'size'> {
|
|
4
4
|
class?: {
|
|
5
5
|
[key: string]: boolean;
|
|
6
6
|
};
|
|
7
7
|
display?: JSXChildren;
|
|
8
8
|
color?: keyof typeof buttonColorClasses;
|
|
9
|
+
size?: keyof typeof sizeClasses;
|
|
9
10
|
id: string;
|
|
10
11
|
values: {
|
|
11
12
|
name: string;
|