@luminescent/ui 0.3.5 → 0.4.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.
@@ -226,6 +226,10 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
226
226
  "row",
227
227
  "blobs"
228
228
  ]);
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"));
229
233
  const blob = Math.round(Math.random() * 6);
230
234
  const button = !!props1.onClick$ || props.hoverable;
231
235
  return /* @__PURE__ */ qwik._jsxS("div", {
@@ -352,14 +356,12 @@ const TextInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlined
352
356
  for: qwik._fnSignal((p0) => p0.id, [
353
357
  props
354
358
  ], "p0.id")
355
- }, qwik._fnSignal((p0) => p0.label, [
356
- props
357
- ], "p0.label"), 3, null),
359
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "dC_0"), 1, null),
358
360
  /* @__PURE__ */ qwik._jsxC(TextInputRaw, {
359
361
  ...props,
360
362
  children: void 0
361
- }, 0, "dC_0")
362
- ], 1, "dC_1");
363
+ }, 0, "dC_1")
364
+ ], 1, "dC_2");
363
365
  }, "TextInput_component_AXp2j5aulZI"));
364
366
  const TextInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
365
367
  return /* @__PURE__ */ qwik._jsxS("input", {
@@ -368,7 +370,7 @@ const TextInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
368
370
  "transition ease-in-out 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": true,
369
371
  ...props.class
370
372
  }
371
- }, null, 0, "dC_2");
373
+ }, null, 0, "dC_3");
372
374
  }, "TextInputRaw_component_ssloWlmBB4w"));
373
375
  const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
374
376
  function getMousePosition(e) {
@@ -876,15 +878,103 @@ const ColorInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
876
878
  "value",
877
879
  "presetColors"
878
880
  ]);
881
+ qwik.useStylesQrl(/* @__PURE__ */ qwik.inlinedQrl(`
882
+ .color-picker {
883
+ display: flex;
884
+ gap: 12px;
885
+ height: 185px !important;
886
+ width: 100% !important;
887
+ padding: 15px;
888
+ border-radius: 10px;
889
+ border: 1px solid rgb(31 41 55);
890
+ filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
891
+ background: rgba(31 41 55 / 40%);
892
+ backdrop-filter: blur(10px);
893
+ user-select: none;
894
+ position: relative;
895
+ }
896
+
897
+ .color-picker-saturation {
898
+ position: relative;
899
+ height: 100%;
900
+ width: 100%;
901
+ background: linear-gradient(to right, #FFFFFF, #FF0000);
902
+ float: left;
903
+ border-radius: 5px;
904
+ border: 1px solid rgb(31 41 55);
905
+ }
906
+
907
+ .color-picker-brightness {
908
+ width: 100%;
909
+ height: 100%;
910
+ background: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 1));
911
+ }
912
+
913
+ .color-picker-sbSelector {
914
+ border: 1px solid white;
915
+ position: absolute;
916
+ width: 14px;
917
+ height: 14px;
918
+ background: white;
919
+ border-radius: 10px;
920
+ top: -7px;
921
+ left: -7px;
922
+ box-sizing: border-box;
923
+ z-index: 10;
924
+ }
925
+
926
+ .color-picker-hue {
927
+ width: 8px;
928
+ border-radius: 5px;
929
+ height: 100%;
930
+ position: relative;
931
+ float: left;
932
+ background: linear-gradient(rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 34%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 84%, rgb(255, 0, 0) 100%);
933
+ border: 1px solid rgb(31 41 55);
934
+ }
935
+
936
+ .color-picker-colors {
937
+ height: 100%;
938
+ position: relative;
939
+ display: flex;
940
+ flex-direction: column;
941
+ gap: 5px;
942
+ float: left;
943
+ justify-content: space-evenly;
944
+ flex-wrap: wrap;
945
+ }
946
+
947
+ .color-picker-color {
948
+ height: 25px;
949
+ width: 25px;
950
+ border-radius: 5px;
951
+ position: relative;
952
+ background: red;
953
+ border: 1px solid rgb(31 41 55);
954
+ }
955
+
956
+ .color-picker-hSelector {
957
+ border: 1px solid white;
958
+ position: absolute;
959
+ width: 14px;
960
+ height: 14px;
961
+ background: white;
962
+ border-radius: 10px;
963
+ top: -6px;
964
+ left: -4px;
965
+ box-sizing: border-box;
966
+ z-index: 10;
967
+ }
968
+ `, "ColorInput_component_useStyles_SMNFl4Oy0IA"));
879
969
  const store = qwik.useStore({
880
970
  value: (props.value ?? "#FFFFFF") || "#FFFFFF"
881
971
  });
882
972
  return /* @__PURE__ */ qwik._jsxQ("div", null, null, [
883
- props1.label && /* @__PURE__ */ qwik._jsxQ("label", {
973
+ /* @__PURE__ */ qwik._jsxQ("label", {
884
974
  for: qwik._wrapSignal(props1, "id")
885
975
  }, {
886
976
  class: "mb-2 flex"
887
- }, qwik._wrapSignal(props1, "label"), 1, "0s_0"),
977
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0s_0"), 1, null),
888
978
  /* @__PURE__ */ qwik._jsxC(TextInputRaw, {
889
979
  ...props1,
890
980
  get value() {
@@ -1006,13 +1096,12 @@ const NumberInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
1006
1096
  for: qwik._fnSignal((p0) => p0.id, [
1007
1097
  props
1008
1098
  ], "p0.id")
1009
- }, qwik._fnSignal((p0) => p0.label, [
1010
- props
1011
- ], "p0.label"), 3, null),
1099
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "gk_0"), 1, null),
1012
1100
  /* @__PURE__ */ qwik._jsxC(NumberInputRaw, {
1013
- ...props
1014
- }, 0, "gk_0")
1015
- ], 1, "gk_1");
1101
+ ...props,
1102
+ children: void 0
1103
+ }, 0, "gk_1")
1104
+ ], 1, "gk_2");
1016
1105
  }, "NumberInput_component_1NmuE0VG00M"));
1017
1106
  const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1018
1107
  const props1 = qwik._restProps(props, [
@@ -1059,7 +1148,7 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
1059
1148
  class: qwik._IMMUTABLE,
1060
1149
  width: qwik._IMMUTABLE
1061
1150
  }
1062
- }, 3, "gk_2"), 1, null),
1151
+ }, 3, "gk_3"), 1, null),
1063
1152
  props.input && /* @__PURE__ */ qwik._jsxS("input", {
1064
1153
  ...props1,
1065
1154
  class: {
@@ -1074,7 +1163,7 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
1074
1163
  value: qwik._fnSignal((p0) => p0.value, [
1075
1164
  store
1076
1165
  ], "p0.value")
1077
- }, 0, "gk_3"),
1166
+ }, 0, "gk_4"),
1078
1167
  /* @__PURE__ */ qwik._jsxQ("button", {
1079
1168
  class: {
1080
1169
  "flex justify-center items-center transition ease-in-out border border-gray-700 bg-gray-800 text-2xl hover:bg-gray-600 h-full py-1.5 cursor-pointer": true,
@@ -1101,8 +1190,8 @@ const NumberInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
1101
1190
  class: qwik._IMMUTABLE,
1102
1191
  width: qwik._IMMUTABLE
1103
1192
  }
1104
- }, 3, "gk_4"), 1, null)
1105
- ], 1, "gk_5");
1193
+ }, 3, "gk_5"), 1, null)
1194
+ ], 1, "gk_6");
1106
1195
  }, "NumberInputRaw_component_8sGf0eS1rvo"));
1107
1196
  const OutputField = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1108
1197
  return /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -1113,13 +1202,12 @@ const OutputField = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
1113
1202
  for: qwik._fnSignal((p0) => p0.id, [
1114
1203
  props
1115
1204
  ], "p0.id")
1116
- }, qwik._fnSignal((p0) => p0.label, [
1117
- props
1118
- ], "p0.label"), 3, null),
1205
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "ze_0"), 1, null),
1119
1206
  /* @__PURE__ */ qwik._jsxC(OutputFieldRaw, {
1120
- ...props
1121
- }, 0, "ze_0")
1122
- ], 1, "ze_1");
1207
+ ...props,
1208
+ children: void 0
1209
+ }, 0, "ze_1")
1210
+ ], 1, "ze_2");
1123
1211
  }, "OutputField_component_6Kc38ThYgF4"));
1124
1212
  const OutputFieldRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1125
1213
  const props1 = qwik._restProps(props, [
@@ -1166,7 +1254,7 @@ const OutputFieldRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
1166
1254
  dangerouslySetInnerHTML: qwik._wrapSignal(alert, "text")
1167
1255
  }, null, null, 3, `output-alert${i}`))
1168
1256
  ]
1169
- }, 1, "ze_2");
1257
+ }, 1, "ze_3");
1170
1258
  }, "OutputFieldRaw_component_OxiM0W3AR0o"));
1171
1259
  const SelectInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1172
1260
  return /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -1177,14 +1265,17 @@ const SelectInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
1177
1265
  for: qwik._fnSignal((p0) => p0.id, [
1178
1266
  props
1179
1267
  ], "p0.id")
1180
- }, qwik._fnSignal((p0) => p0.label, [
1181
- props
1182
- ], "p0.label"), 3, null),
1268
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
1269
+ name: "label",
1270
+ [qwik._IMMUTABLE]: {
1271
+ name: qwik._IMMUTABLE
1272
+ }
1273
+ }, 3, "cA_0"), 1, null),
1183
1274
  /* @__PURE__ */ qwik._jsxC(SelectInputRaw, {
1184
1275
  ...props,
1185
- children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "cA_0")
1186
- }, 0, "cA_1")
1187
- ], 1, "cA_2");
1276
+ children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "cA_1")
1277
+ }, 0, "cA_2")
1278
+ ], 1, "cA_3");
1188
1279
  }, "SelectInput_component_m80ag1KuJSk"));
1189
1280
  const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1190
1281
  const props1 = qwik._restProps(props, [
@@ -1192,13 +1283,13 @@ const SelectInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.in
1192
1283
  ]);
1193
1284
  return /* @__PURE__ */ qwik._jsxS("select", {
1194
1285
  ...props1,
1195
- children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "cA_3"),
1286
+ children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "cA_4"),
1196
1287
  class: {
1197
1288
  "transition ease-in-out text-lg border border-gray-700 bg-gray-800 text-gray-50 hover:bg-gray-700 focus:bg-gray-700 rounded-md px-2 py-3": true,
1198
1289
  "border-0 bg-transparent": props.transparent,
1199
1290
  ...props1.class
1200
1291
  }
1201
- }, null, 0, "cA_4");
1292
+ }, null, 0, "cA_5");
1202
1293
  }, "SelectInputRaw_component_Itdx5yPeQd4"));
1203
1294
  const TextAreaInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1204
1295
  return /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -1209,13 +1300,11 @@ const TextAreaInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
1209
1300
  for: qwik._fnSignal((p0) => p0.id, [
1210
1301
  props
1211
1302
  ], "p0.id")
1212
- }, qwik._fnSignal((p0) => p0.label, [
1213
- props
1214
- ], "p0.label"), 3, null),
1303
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "8U_0"), 1, null),
1215
1304
  /* @__PURE__ */ qwik._jsxC(TextAreaInputRaw, {
1216
1305
  ...props
1217
- }, 0, "8U_0")
1218
- ], 1, "8U_1");
1306
+ }, 0, "8U_1")
1307
+ ], 1, "8U_2");
1219
1308
  }, "TextAreaInput_component_5hzQkVgFVlw"));
1220
1309
  const TextAreaInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1221
1310
  return /* @__PURE__ */ qwik._jsxS("textarea", {
@@ -1224,11 +1313,10 @@ const TextAreaInputRaw = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
1224
1313
  "transition ease-in-out 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 resize-y w-full h-32": true,
1225
1314
  ...props.class
1226
1315
  }
1227
- }, null, 0, "8U_2");
1316
+ }, null, 0, "8U_3");
1228
1317
  }, "TextAreaInputRaw_component_CupRtuvzbEs"));
1229
1318
  const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1230
1319
  const props1 = qwik._restProps(props, [
1231
- "label",
1232
1320
  "center"
1233
1321
  ]);
1234
1322
  return /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -1260,13 +1348,11 @@ const Toggle = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
1260
1348
  }
1261
1349
  }, null, 3, null)
1262
1350
  ], 1, null),
1263
- props.label && /* @__PURE__ */ qwik._jsxQ("label", {
1351
+ /* @__PURE__ */ qwik._jsxQ("label", {
1264
1352
  for: qwik._wrapSignal(props1, "id")
1265
1353
  }, {
1266
1354
  class: "text-gray-100"
1267
- }, qwik._fnSignal((p0) => p0.label, [
1268
- props
1269
- ], "p0.label"), 3, "yu_0")
1355
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yu_0"), 1, null)
1270
1356
  ], 1, "yu_1");
1271
1357
  }, "Toggle_component_ujuOvR082hY"));
1272
1358
  const LogoBirdflop = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
@@ -1,4 +1,4 @@
1
- import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _jsxBranch, _IMMUTABLE, useStore, _wrapSignal, useLexicalScope } from "@builder.io/qwik";
1
+ import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, useStylesQrl, _jsxBranch, _IMMUTABLE, useStore, _wrapSignal, useLexicalScope } from "@builder.io/qwik";
2
2
  import { isServer } from "@builder.io/qwik/build";
3
3
  import { Fragment } from "@builder.io/qwik/jsx-runtime";
4
4
  const Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => /* @__PURE__ */ _jsxQ("span", null, {
@@ -224,6 +224,10 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
224
224
  "row",
225
225
  "blobs"
226
226
  ]);
227
+ useStylesQrl(/* @__PURE__ */ inlinedQrl(`
228
+ .-animation-delay-5 { animation-delay: -5s; }
229
+ .-animation-delay-10 { animation-delay: -10s; }
230
+ `, "Card_component_useStyles_POiiuoB0EmE"));
227
231
  const blob = Math.round(Math.random() * 6);
228
232
  const button = !!props1.onClick$ || props.hoverable;
229
233
  return /* @__PURE__ */ _jsxS("div", {
@@ -350,14 +354,12 @@ const TextInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props
350
354
  for: _fnSignal((p0) => p0.id, [
351
355
  props
352
356
  ], "p0.id")
353
- }, _fnSignal((p0) => p0.label, [
354
- props
355
- ], "p0.label"), 3, null),
357
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "dC_0"), 1, null),
356
358
  /* @__PURE__ */ _jsxC(TextInputRaw, {
357
359
  ...props,
358
360
  children: void 0
359
- }, 0, "dC_0")
360
- ], 1, "dC_1");
361
+ }, 0, "dC_1")
362
+ ], 1, "dC_2");
361
363
  }, "TextInput_component_AXp2j5aulZI"));
362
364
  const TextInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
363
365
  return /* @__PURE__ */ _jsxS("input", {
@@ -366,7 +368,7 @@ const TextInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
366
368
  "transition ease-in-out 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": true,
367
369
  ...props.class
368
370
  }
369
- }, null, 0, "dC_2");
371
+ }, null, 0, "dC_3");
370
372
  }, "TextInputRaw_component_ssloWlmBB4w"));
371
373
  const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
372
374
  function getMousePosition(e) {
@@ -874,15 +876,103 @@ const ColorInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
874
876
  "value",
875
877
  "presetColors"
876
878
  ]);
879
+ useStylesQrl(/* @__PURE__ */ inlinedQrl(`
880
+ .color-picker {
881
+ display: flex;
882
+ gap: 12px;
883
+ height: 185px !important;
884
+ width: 100% !important;
885
+ padding: 15px;
886
+ border-radius: 10px;
887
+ border: 1px solid rgb(31 41 55);
888
+ filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
889
+ background: rgba(31 41 55 / 40%);
890
+ backdrop-filter: blur(10px);
891
+ user-select: none;
892
+ position: relative;
893
+ }
894
+
895
+ .color-picker-saturation {
896
+ position: relative;
897
+ height: 100%;
898
+ width: 100%;
899
+ background: linear-gradient(to right, #FFFFFF, #FF0000);
900
+ float: left;
901
+ border-radius: 5px;
902
+ border: 1px solid rgb(31 41 55);
903
+ }
904
+
905
+ .color-picker-brightness {
906
+ width: 100%;
907
+ height: 100%;
908
+ background: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 1));
909
+ }
910
+
911
+ .color-picker-sbSelector {
912
+ border: 1px solid white;
913
+ position: absolute;
914
+ width: 14px;
915
+ height: 14px;
916
+ background: white;
917
+ border-radius: 10px;
918
+ top: -7px;
919
+ left: -7px;
920
+ box-sizing: border-box;
921
+ z-index: 10;
922
+ }
923
+
924
+ .color-picker-hue {
925
+ width: 8px;
926
+ border-radius: 5px;
927
+ height: 100%;
928
+ position: relative;
929
+ float: left;
930
+ background: linear-gradient(rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 34%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 84%, rgb(255, 0, 0) 100%);
931
+ border: 1px solid rgb(31 41 55);
932
+ }
933
+
934
+ .color-picker-colors {
935
+ height: 100%;
936
+ position: relative;
937
+ display: flex;
938
+ flex-direction: column;
939
+ gap: 5px;
940
+ float: left;
941
+ justify-content: space-evenly;
942
+ flex-wrap: wrap;
943
+ }
944
+
945
+ .color-picker-color {
946
+ height: 25px;
947
+ width: 25px;
948
+ border-radius: 5px;
949
+ position: relative;
950
+ background: red;
951
+ border: 1px solid rgb(31 41 55);
952
+ }
953
+
954
+ .color-picker-hSelector {
955
+ border: 1px solid white;
956
+ position: absolute;
957
+ width: 14px;
958
+ height: 14px;
959
+ background: white;
960
+ border-radius: 10px;
961
+ top: -6px;
962
+ left: -4px;
963
+ box-sizing: border-box;
964
+ z-index: 10;
965
+ }
966
+ `, "ColorInput_component_useStyles_SMNFl4Oy0IA"));
877
967
  const store = useStore({
878
968
  value: (props.value ?? "#FFFFFF") || "#FFFFFF"
879
969
  });
880
970
  return /* @__PURE__ */ _jsxQ("div", null, null, [
881
- props1.label && /* @__PURE__ */ _jsxQ("label", {
971
+ /* @__PURE__ */ _jsxQ("label", {
882
972
  for: _wrapSignal(props1, "id")
883
973
  }, {
884
974
  class: "mb-2 flex"
885
- }, _wrapSignal(props1, "label"), 1, "0s_0"),
975
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "0s_0"), 1, null),
886
976
  /* @__PURE__ */ _jsxC(TextInputRaw, {
887
977
  ...props1,
888
978
  get value() {
@@ -1004,13 +1094,12 @@ const NumberInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
1004
1094
  for: _fnSignal((p0) => p0.id, [
1005
1095
  props
1006
1096
  ], "p0.id")
1007
- }, _fnSignal((p0) => p0.label, [
1008
- props
1009
- ], "p0.label"), 3, null),
1097
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "gk_0"), 1, null),
1010
1098
  /* @__PURE__ */ _jsxC(NumberInputRaw, {
1011
- ...props
1012
- }, 0, "gk_0")
1013
- ], 1, "gk_1");
1099
+ ...props,
1100
+ children: void 0
1101
+ }, 0, "gk_1")
1102
+ ], 1, "gk_2");
1014
1103
  }, "NumberInput_component_1NmuE0VG00M"));
1015
1104
  const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1016
1105
  const props1 = _restProps(props, [
@@ -1057,7 +1146,7 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
1057
1146
  class: _IMMUTABLE,
1058
1147
  width: _IMMUTABLE
1059
1148
  }
1060
- }, 3, "gk_2"), 1, null),
1149
+ }, 3, "gk_3"), 1, null),
1061
1150
  props.input && /* @__PURE__ */ _jsxS("input", {
1062
1151
  ...props1,
1063
1152
  class: {
@@ -1072,7 +1161,7 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
1072
1161
  value: _fnSignal((p0) => p0.value, [
1073
1162
  store
1074
1163
  ], "p0.value")
1075
- }, 0, "gk_3"),
1164
+ }, 0, "gk_4"),
1076
1165
  /* @__PURE__ */ _jsxQ("button", {
1077
1166
  class: {
1078
1167
  "flex justify-center items-center transition ease-in-out border border-gray-700 bg-gray-800 text-2xl hover:bg-gray-600 h-full py-1.5 cursor-pointer": true,
@@ -1099,8 +1188,8 @@ const NumberInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
1099
1188
  class: _IMMUTABLE,
1100
1189
  width: _IMMUTABLE
1101
1190
  }
1102
- }, 3, "gk_4"), 1, null)
1103
- ], 1, "gk_5");
1191
+ }, 3, "gk_5"), 1, null)
1192
+ ], 1, "gk_6");
1104
1193
  }, "NumberInputRaw_component_8sGf0eS1rvo"));
1105
1194
  const OutputField = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1106
1195
  return /* @__PURE__ */ _jsxQ("div", null, {
@@ -1111,13 +1200,12 @@ const OutputField = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
1111
1200
  for: _fnSignal((p0) => p0.id, [
1112
1201
  props
1113
1202
  ], "p0.id")
1114
- }, _fnSignal((p0) => p0.label, [
1115
- props
1116
- ], "p0.label"), 3, null),
1203
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "ze_0"), 1, null),
1117
1204
  /* @__PURE__ */ _jsxC(OutputFieldRaw, {
1118
- ...props
1119
- }, 0, "ze_0")
1120
- ], 1, "ze_1");
1205
+ ...props,
1206
+ children: void 0
1207
+ }, 0, "ze_1")
1208
+ ], 1, "ze_2");
1121
1209
  }, "OutputField_component_6Kc38ThYgF4"));
1122
1210
  const OutputFieldRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1123
1211
  const props1 = _restProps(props, [
@@ -1164,7 +1252,7 @@ const OutputFieldRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
1164
1252
  dangerouslySetInnerHTML: _wrapSignal(alert, "text")
1165
1253
  }, null, null, 3, `output-alert${i}`))
1166
1254
  ]
1167
- }, 1, "ze_2");
1255
+ }, 1, "ze_3");
1168
1256
  }, "OutputFieldRaw_component_OxiM0W3AR0o"));
1169
1257
  const SelectInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1170
1258
  return /* @__PURE__ */ _jsxQ("div", null, {
@@ -1175,14 +1263,17 @@ const SelectInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
1175
1263
  for: _fnSignal((p0) => p0.id, [
1176
1264
  props
1177
1265
  ], "p0.id")
1178
- }, _fnSignal((p0) => p0.label, [
1179
- props
1180
- ], "p0.label"), 3, null),
1266
+ }, /* @__PURE__ */ _jsxC(Slot, {
1267
+ name: "label",
1268
+ [_IMMUTABLE]: {
1269
+ name: _IMMUTABLE
1270
+ }
1271
+ }, 3, "cA_0"), 1, null),
1181
1272
  /* @__PURE__ */ _jsxC(SelectInputRaw, {
1182
1273
  ...props,
1183
- children: /* @__PURE__ */ _jsxC(Slot, null, 3, "cA_0")
1184
- }, 0, "cA_1")
1185
- ], 1, "cA_2");
1274
+ children: /* @__PURE__ */ _jsxC(Slot, null, 3, "cA_1")
1275
+ }, 0, "cA_2")
1276
+ ], 1, "cA_3");
1186
1277
  }, "SelectInput_component_m80ag1KuJSk"));
1187
1278
  const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1188
1279
  const props1 = _restProps(props, [
@@ -1190,13 +1281,13 @@ const SelectInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((
1190
1281
  ]);
1191
1282
  return /* @__PURE__ */ _jsxS("select", {
1192
1283
  ...props1,
1193
- children: /* @__PURE__ */ _jsxC(Slot, null, 3, "cA_3"),
1284
+ children: /* @__PURE__ */ _jsxC(Slot, null, 3, "cA_4"),
1194
1285
  class: {
1195
1286
  "transition ease-in-out text-lg border border-gray-700 bg-gray-800 text-gray-50 hover:bg-gray-700 focus:bg-gray-700 rounded-md px-2 py-3": true,
1196
1287
  "border-0 bg-transparent": props.transparent,
1197
1288
  ...props1.class
1198
1289
  }
1199
- }, null, 0, "cA_4");
1290
+ }, null, 0, "cA_5");
1200
1291
  }, "SelectInputRaw_component_Itdx5yPeQd4"));
1201
1292
  const TextAreaInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1202
1293
  return /* @__PURE__ */ _jsxQ("div", null, {
@@ -1207,13 +1298,11 @@ const TextAreaInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
1207
1298
  for: _fnSignal((p0) => p0.id, [
1208
1299
  props
1209
1300
  ], "p0.id")
1210
- }, _fnSignal((p0) => p0.label, [
1211
- props
1212
- ], "p0.label"), 3, null),
1301
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "8U_0"), 1, null),
1213
1302
  /* @__PURE__ */ _jsxC(TextAreaInputRaw, {
1214
1303
  ...props
1215
- }, 0, "8U_0")
1216
- ], 1, "8U_1");
1304
+ }, 0, "8U_1")
1305
+ ], 1, "8U_2");
1217
1306
  }, "TextAreaInput_component_5hzQkVgFVlw"));
1218
1307
  const TextAreaInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1219
1308
  return /* @__PURE__ */ _jsxS("textarea", {
@@ -1222,11 +1311,10 @@ const TextAreaInputRaw = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
1222
1311
  "transition ease-in-out 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 resize-y w-full h-32": true,
1223
1312
  ...props.class
1224
1313
  }
1225
- }, null, 0, "8U_2");
1314
+ }, null, 0, "8U_3");
1226
1315
  }, "TextAreaInputRaw_component_CupRtuvzbEs"));
1227
1316
  const Toggle = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1228
1317
  const props1 = _restProps(props, [
1229
- "label",
1230
1318
  "center"
1231
1319
  ]);
1232
1320
  return /* @__PURE__ */ _jsxQ("div", null, {
@@ -1258,13 +1346,11 @@ const Toggle = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
1258
1346
  }
1259
1347
  }, null, 3, null)
1260
1348
  ], 1, null),
1261
- props.label && /* @__PURE__ */ _jsxQ("label", {
1349
+ /* @__PURE__ */ _jsxQ("label", {
1262
1350
  for: _wrapSignal(props1, "id")
1263
1351
  }, {
1264
1352
  class: "text-gray-100"
1265
- }, _fnSignal((p0) => p0.label, [
1266
- props
1267
- ], "p0.label"), 3, "yu_0")
1353
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "yu_0"), 1, null)
1268
1354
  ], 1, "yu_1");
1269
1355
  }, "Toggle_component_ujuOvR082hY"));
1270
1356
  const LogoBirdflop = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
@@ -1,9 +1,8 @@
1
1
  import type { QRL } from '@builder.io/qwik';
2
2
  import type { TextInputRawProps } from './TextInput';
3
- interface ColorInputProps extends Omit<TextInputRawProps, 'onInput$'> {
3
+ interface ColorInputProps extends Omit<TextInputRawProps, 'onInput$' | 'children'> {
4
4
  onInput$?: QRL<(color: string, element: HTMLInputElement) => void>;
5
5
  value?: string;
6
- label?: string;
7
6
  presetColors?: string[];
8
7
  }
9
8
  export declare const ColorInput: import("@builder.io/qwik").Component<ColorInputProps>;
@@ -1,4 +1,4 @@
1
- import type { PropsOf, QRL } from '@builder.io/qwik';
1
+ import type { JSXChildren, PropsOf, QRL } from '@builder.io/qwik';
2
2
  interface NumberInputRawProps extends Omit<(PropsOf<'input'> & {
3
3
  type: 'number';
4
4
  }), 'class' | 'type'> {
@@ -17,9 +17,9 @@ interface NumberInputRawProps extends Omit<(PropsOf<'input'> & {
17
17
  max?: number;
18
18
  step?: number;
19
19
  }
20
- interface NumberInputProps extends NumberInputRawProps {
20
+ interface NumberInputProps extends Omit<NumberInputRawProps, 'children'> {
21
21
  id: string;
22
- label: string;
22
+ children?: JSXChildren;
23
23
  }
24
24
  export declare const NumberInput: import("@builder.io/qwik").Component<NumberInputProps>;
25
25
  export declare const NumberInputRaw: import("@builder.io/qwik").Component<NumberInputRawProps>;
@@ -11,9 +11,8 @@ interface OutputFieldRawProps extends Omit<PropsOf<'textarea'>, 'class' | 'onCha
11
11
  };
12
12
  onChange$?: QRL<(event: Event, element: HTMLTextAreaElement, alertsStore: alertsStore) => any>;
13
13
  }
14
- interface OutputFieldProps extends OutputFieldRawProps {
14
+ interface OutputFieldProps extends Omit<OutputFieldRawProps, 'children'> {
15
15
  id: string;
16
- label: string;
17
16
  }
18
17
  export declare const OutputField: import("@builder.io/qwik").Component<OutputFieldProps>;
19
18
  export declare const OutputFieldRaw: import("@builder.io/qwik").Component<OutputFieldRawProps>;
@@ -7,7 +7,6 @@ interface SelectInputRawProps extends Omit<PropsOf<'select'>, 'class'> {
7
7
  }
8
8
  interface SelectInputProps extends SelectInputRawProps {
9
9
  id: string;
10
- label: string;
11
10
  }
12
11
  export declare const SelectInput: import("@builder.io/qwik").Component<SelectInputProps>;
13
12
  export declare const SelectInputRaw: import("@builder.io/qwik").Component<SelectInputRawProps>;
@@ -4,9 +4,8 @@ export interface TextAreaRawProps extends Omit<PropsOf<'textarea'>, 'class'> {
4
4
  [key: string]: boolean;
5
5
  };
6
6
  }
7
- interface TextAreaProps extends TextAreaRawProps {
7
+ interface TextAreaProps extends Omit<TextAreaRawProps, 'children'> {
8
8
  id: string;
9
- label: string;
10
9
  }
11
10
  export declare const TextAreaInput: import("@builder.io/qwik").Component<TextAreaProps>;
12
11
  export declare const TextAreaInputRaw: import("@builder.io/qwik").Component<TextAreaRawProps>;
@@ -8,7 +8,6 @@ export interface TextInputRawProps extends Omit<(PropsOf<'input'> & {
8
8
  }
9
9
  interface TextInputProps extends Omit<TextInputRawProps, 'children'> {
10
10
  id: string;
11
- label: string;
12
11
  }
13
12
  export declare const TextInput: import("@builder.io/qwik").Component<TextInputProps>;
14
13
  export declare const TextInputRaw: import("@builder.io/qwik").Component<TextInputRawProps>;
@@ -1,12 +1,11 @@
1
1
  import type { PropsOf } from '@builder.io/qwik';
2
2
  interface ToggleProps extends Omit<(PropsOf<'input'> & {
3
3
  type: 'checkbox';
4
- }), 'class' | 'bind:checked' | 'type'> {
4
+ }), 'class' | 'bind:checked' | 'type' | 'children'> {
5
5
  class?: {
6
6
  [key: string]: boolean;
7
7
  };
8
8
  center?: boolean;
9
- label?: string;
10
9
  }
11
10
  export declare const Toggle: import("@builder.io/qwik").Component<ToggleProps>;
12
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui",
3
- "version": "0.3.5",
3
+ "version": "0.4.0",
4
4
  "description": "Luminescent UI library",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",