@luminescent/ui 0.2.1 → 0.2.3

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.
@@ -3,6 +3,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const qwik = require("@builder.io/qwik");
4
4
  const build = require("@builder.io/qwik/build");
5
5
  const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
6
+ const Anchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => /* @__PURE__ */ qwik._jsxQ("span", null, {
7
+ class: "block h-32 -mt-32",
8
+ id: qwik._fnSignal((p0) => p0.id, [
9
+ props
10
+ ], "p0.id")
11
+ }, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
6
12
  const buttonColorClasses = {
7
13
  blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 focus:bg-blue-500",
8
14
  purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 focus:bg-purple-500",
@@ -81,12 +87,6 @@ const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
81
87
  xmlns: "http://www.w3.org/2000/svg"
82
88
  }, 0, "XP_0");
83
89
  }, "LoadingIcon_component_iXFSRNToIus"));
84
- const Anchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => /* @__PURE__ */ qwik._jsxQ("span", null, {
85
- class: "block h-32 -mt-32",
86
- id: qwik._fnSignal((p0) => p0.id, [
87
- props
88
- ], "p0.id")
89
- }, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
90
90
  const cardColorClasses = {
91
91
  pink: {
92
92
  card: {
@@ -222,6 +222,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
222
222
  const props1 = qwik._restProps(props, [
223
223
  "color",
224
224
  "hoverable",
225
+ "href",
225
226
  "row",
226
227
  "blobs"
227
228
  ]);
@@ -234,6 +235,12 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
234
235
  "p-8": true
235
236
  }
236
237
  }, [
238
+ props.href && /* @__PURE__ */ qwik._jsxQ("a", null, {
239
+ class: "absolute inset-0 z-20",
240
+ href: qwik._fnSignal((p0) => p0.href, [
241
+ props
242
+ ], "p0.href")
243
+ }, null, 3, "OW_0"),
237
244
  /* @__PURE__ */ qwik._jsxQ("div", null, {
238
245
  class: "relative z-10"
239
246
  }, /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -244,7 +251,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
244
251
  }), [
245
252
  props
246
253
  ], '{"flex gap-4":true,"flex-col":!p0.row,"flex-row items-center":p0.row}')
247
- }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_0"), 1, null), 1, null),
254
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_1"), 1, null), 1, null),
248
255
  props.blobs && /* @__PURE__ */ qwik._jsxQ("div", null, {
249
256
  class: "absolute -z-10 inset-0 w-full h-full transition-all overflow-clip",
250
257
  style: {
@@ -274,7 +281,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
274
281
  [cardColorClasses[props.color ?? "darkgray"].blobs[2]]: true
275
282
  }
276
283
  }, null, null, 3, null)
277
- ], 1, "OW_1")
284
+ ], 1, "OW_2")
278
285
  ], 1, null),
279
286
  class: {
280
287
  "flex-1 relative border rounded-lg group transition-all": true,
@@ -284,7 +291,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
284
291
  "hover:shadow-lg cursor-pointer": button,
285
292
  ...props1.class
286
293
  }
287
- }, null, 0, "OW_2");
294
+ }, null, 0, "OW_3");
288
295
  }, "Card_component_DlkkcTEVka4"));
289
296
  const CardHeader = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
290
297
  qwik._jsxBranch();
@@ -300,7 +307,7 @@ const CardHeader = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
300
307
  props
301
308
  ], "p0.id")
302
309
  }
303
- }, 3, "OW_3"),
310
+ }, 3, "OW_4"),
304
311
  /* @__PURE__ */ qwik._jsxQ("div", null, {
305
312
  class: "flex flex-1"
306
313
  }, /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -308,13 +315,13 @@ const CardHeader = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
308
315
  }, [
309
316
  /* @__PURE__ */ qwik._jsxQ("div", null, {
310
317
  class: "flex items-center gap-3"
311
- }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_4"), 1, null),
318
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_5"), 1, null),
312
319
  /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
313
320
  name: "subheader",
314
321
  [qwik._IMMUTABLE]: {
315
322
  name: qwik._IMMUTABLE
316
323
  }
317
- }, 3, "OW_5")
324
+ }, 3, "OW_6")
318
325
  ], 1, null), 1, null),
319
326
  (props.loading ?? false) && /* @__PURE__ */ qwik._jsxQ("div", null, {
320
327
  class: qwik._fnSignal((p0) => ({
@@ -333,8 +340,8 @@ const CardHeader = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
333
340
  class: qwik._IMMUTABLE,
334
341
  width: qwik._IMMUTABLE
335
342
  }
336
- }, 3, "OW_6"), 1, "OW_7")
337
- ], 1, "OW_8");
343
+ }, 3, "OW_7"), 1, "OW_8")
344
+ ], 1, "OW_9");
338
345
  }, "CardHeader_component_2xQZ6Uv7R4A"));
339
346
  const TextInput = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
340
347
  return /* @__PURE__ */ qwik._jsxQ("div", null, {
@@ -1583,6 +1590,7 @@ const LogoWaterfall = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
1583
1590
  viewBox: "0 0 24 24"
1584
1591
  }, 0, "Pt_0");
1585
1592
  }, "LogoWaterfall_component_1hFl8GlECLI"));
1593
+ exports.Anchor = Anchor;
1586
1594
  exports.Button = Button;
1587
1595
  exports.ButtonAnchor = ButtonAnchor;
1588
1596
  exports.Card = Card;
@@ -1,6 +1,12 @@
1
- import { componentQrl, inlinedQrl, _restProps, _jsxS, _jsxC, Slot, _jsxQ, _fnSignal, _jsxBranch, _IMMUTABLE, useStore, _wrapSignal, useLexicalScope } from "@builder.io/qwik";
1
+ import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _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
+ const Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => /* @__PURE__ */ _jsxQ("span", null, {
5
+ class: "block h-32 -mt-32",
6
+ id: _fnSignal((p0) => p0.id, [
7
+ props
8
+ ], "p0.id")
9
+ }, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
4
10
  const buttonColorClasses = {
5
11
  blue: "bg-blue-600/90 border-blue-500 hover:bg-blue-500 focus:bg-blue-500",
6
12
  purple: "bg-purple-600/90 border-purple-500 hover:bg-purple-500 focus:bg-purple-500",
@@ -79,12 +85,6 @@ const LoadingIcon = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
79
85
  xmlns: "http://www.w3.org/2000/svg"
80
86
  }, 0, "XP_0");
81
87
  }, "LoadingIcon_component_iXFSRNToIus"));
82
- const Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => /* @__PURE__ */ _jsxQ("span", null, {
83
- class: "block h-32 -mt-32",
84
- id: _fnSignal((p0) => p0.id, [
85
- props
86
- ], "p0.id")
87
- }, null, 3, "Oa_0"), "Anchor_component_O7y4zyaazA0"));
88
88
  const cardColorClasses = {
89
89
  pink: {
90
90
  card: {
@@ -220,6 +220,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
220
220
  const props1 = _restProps(props, [
221
221
  "color",
222
222
  "hoverable",
223
+ "href",
223
224
  "row",
224
225
  "blobs"
225
226
  ]);
@@ -232,6 +233,12 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
232
233
  "p-8": true
233
234
  }
234
235
  }, [
236
+ props.href && /* @__PURE__ */ _jsxQ("a", null, {
237
+ class: "absolute inset-0 z-20",
238
+ href: _fnSignal((p0) => p0.href, [
239
+ props
240
+ ], "p0.href")
241
+ }, null, 3, "OW_0"),
235
242
  /* @__PURE__ */ _jsxQ("div", null, {
236
243
  class: "relative z-10"
237
244
  }, /* @__PURE__ */ _jsxQ("div", null, {
@@ -242,7 +249,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
242
249
  }), [
243
250
  props
244
251
  ], '{"flex gap-4":true,"flex-col":!p0.row,"flex-row items-center":p0.row}')
245
- }, /* @__PURE__ */ _jsxC(Slot, null, 3, "OW_0"), 1, null), 1, null),
252
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "OW_1"), 1, null), 1, null),
246
253
  props.blobs && /* @__PURE__ */ _jsxQ("div", null, {
247
254
  class: "absolute -z-10 inset-0 w-full h-full transition-all overflow-clip",
248
255
  style: {
@@ -272,7 +279,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
272
279
  [cardColorClasses[props.color ?? "darkgray"].blobs[2]]: true
273
280
  }
274
281
  }, null, null, 3, null)
275
- ], 1, "OW_1")
282
+ ], 1, "OW_2")
276
283
  ], 1, null),
277
284
  class: {
278
285
  "flex-1 relative border rounded-lg group transition-all": true,
@@ -282,7 +289,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
282
289
  "hover:shadow-lg cursor-pointer": button,
283
290
  ...props1.class
284
291
  }
285
- }, null, 0, "OW_2");
292
+ }, null, 0, "OW_3");
286
293
  }, "Card_component_DlkkcTEVka4"));
287
294
  const CardHeader = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
288
295
  _jsxBranch();
@@ -298,7 +305,7 @@ const CardHeader = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
298
305
  props
299
306
  ], "p0.id")
300
307
  }
301
- }, 3, "OW_3"),
308
+ }, 3, "OW_4"),
302
309
  /* @__PURE__ */ _jsxQ("div", null, {
303
310
  class: "flex flex-1"
304
311
  }, /* @__PURE__ */ _jsxQ("div", null, {
@@ -306,13 +313,13 @@ const CardHeader = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
306
313
  }, [
307
314
  /* @__PURE__ */ _jsxQ("div", null, {
308
315
  class: "flex items-center gap-3"
309
- }, /* @__PURE__ */ _jsxC(Slot, null, 3, "OW_4"), 1, null),
316
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "OW_5"), 1, null),
310
317
  /* @__PURE__ */ _jsxC(Slot, {
311
318
  name: "subheader",
312
319
  [_IMMUTABLE]: {
313
320
  name: _IMMUTABLE
314
321
  }
315
- }, 3, "OW_5")
322
+ }, 3, "OW_6")
316
323
  ], 1, null), 1, null),
317
324
  (props.loading ?? false) && /* @__PURE__ */ _jsxQ("div", null, {
318
325
  class: _fnSignal((p0) => ({
@@ -331,8 +338,8 @@ const CardHeader = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
331
338
  class: _IMMUTABLE,
332
339
  width: _IMMUTABLE
333
340
  }
334
- }, 3, "OW_6"), 1, "OW_7")
335
- ], 1, "OW_8");
341
+ }, 3, "OW_7"), 1, "OW_8")
342
+ ], 1, "OW_9");
336
343
  }, "CardHeader_component_2xQZ6Uv7R4A"));
337
344
  const TextInput = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
338
345
  return /* @__PURE__ */ _jsxQ("div", null, {
@@ -1582,6 +1589,7 @@ const LogoWaterfall = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
1582
1589
  }, 0, "Pt_0");
1583
1590
  }, "LogoWaterfall_component_1hFl8GlECLI"));
1584
1591
  export {
1592
+ Anchor,
1585
1593
  Button,
1586
1594
  ButtonAnchor,
1587
1595
  Card,
@@ -2,6 +2,7 @@ import type { PropsOf } from '@builder.io/qwik';
2
2
  interface CardProps extends Omit<PropsOf<'div'>, 'class'> {
3
3
  color?: keyof typeof cardColorClasses;
4
4
  hoverable?: boolean;
5
+ href?: string;
5
6
  row?: boolean;
6
7
  blobs?: boolean;
7
8
  class?: {
@@ -1,3 +1,4 @@
1
+ export * from './elements/Anchor';
1
2
  export * from './elements/Button';
2
3
  export * from './elements/Card';
3
4
  export * from './elements/ColorInput';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Luminescent UI library",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",