@luminescent/ui 0.16.0 → 0.16.2
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
|
@@ -534,12 +534,22 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
534
534
|
...props1.class
|
|
535
535
|
},
|
|
536
536
|
children: [
|
|
537
|
-
/* @__PURE__ */ qwik.
|
|
537
|
+
props.hover == "blur" && /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
538
|
+
class: {
|
|
539
|
+
"transition-all absolute flex inset-0 w-full h-full z-10 backdrop-blur-xl rounded-lg opacity-0 hover:opacity-100": true
|
|
540
|
+
}
|
|
541
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
542
|
+
name: "blur",
|
|
543
|
+
[qwik._IMMUTABLE]: {
|
|
544
|
+
name: qwik._IMMUTABLE
|
|
545
|
+
}
|
|
546
|
+
}, 3, "OW_0"), 1, "OW_1"),
|
|
547
|
+
/* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_2"),
|
|
538
548
|
props1.href && /* @__PURE__ */ qwik._jsxQ("a", {
|
|
539
549
|
href: qwik._wrapSignal(props1, "href")
|
|
540
550
|
}, {
|
|
541
551
|
class: "absolute inset-0"
|
|
542
|
-
}, null, 3, "
|
|
552
|
+
}, null, 3, "OW_3"),
|
|
543
553
|
props.blobs && /* @__PURE__ */ qwik._jsxC(Blobs, {
|
|
544
554
|
get color() {
|
|
545
555
|
return props.color ?? "darkgray";
|
|
@@ -553,9 +563,9 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
553
563
|
], 'p0.color??"darkgray"'),
|
|
554
564
|
class: qwik._IMMUTABLE
|
|
555
565
|
}
|
|
556
|
-
}, 3, "
|
|
566
|
+
}, 3, "OW_4")
|
|
557
567
|
]
|
|
558
|
-
}, null, 0, "
|
|
568
|
+
}, null, 0, "OW_5");
|
|
559
569
|
}, "Card_component_DlkkcTEVka4"));
|
|
560
570
|
const InputColorClasses = {
|
|
561
571
|
slate: "bg-slate-700/90 border-slate-600 hover:bg-slate-600 active:bg-slate-500 focus:border-slate-300",
|
|
@@ -1422,17 +1432,42 @@ const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1422
1432
|
], '{borderWidth:p0.width/8,width:p0.width,height:p0.width,animation:`spin ${p0.speed??"0.6s"} ease-in-out infinite`}')
|
|
1423
1433
|
}, 0, "1A_0");
|
|
1424
1434
|
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
1435
|
+
const Link = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1436
|
+
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
1437
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1438
|
+
viewBox: "0 0 512 512",
|
|
1439
|
+
...props,
|
|
1440
|
+
get height() {
|
|
1441
|
+
return props.width;
|
|
1442
|
+
},
|
|
1443
|
+
children: /* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
1444
|
+
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
1445
|
+
fill: "none",
|
|
1446
|
+
stroke: "currentColor",
|
|
1447
|
+
"stroke-linecap": "round",
|
|
1448
|
+
"stroke-linejoin": "round",
|
|
1449
|
+
"stroke-width": "36"
|
|
1450
|
+
}, null, 3, null)
|
|
1451
|
+
}, {
|
|
1452
|
+
xmlns: qwik._IMMUTABLE,
|
|
1453
|
+
viewBox: qwik._IMMUTABLE,
|
|
1454
|
+
height: qwik._fnSignal((p0) => p0.width, [
|
|
1455
|
+
props
|
|
1456
|
+
], "p0.width")
|
|
1457
|
+
}, 0, "jn_0");
|
|
1458
|
+
}, "Link_component_qTbVd8bIKcc"));
|
|
1425
1459
|
const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1426
1460
|
qwik._jsxBranch();
|
|
1427
1461
|
const props1 = qwik._restProps(props, [
|
|
1428
1462
|
"id",
|
|
1463
|
+
"anchor",
|
|
1429
1464
|
"loading",
|
|
1430
1465
|
"subheader"
|
|
1431
1466
|
]);
|
|
1432
1467
|
let Component = /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
1433
1468
|
children: /* @__PURE__ */ qwik._jsxQ("h2", {
|
|
1434
1469
|
class: {
|
|
1435
|
-
"flex gap-2 flex-1 items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1470
|
+
"flex gap-2 flex-1 group items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1436
1471
|
...props1.class
|
|
1437
1472
|
}
|
|
1438
1473
|
}, null, [
|
|
@@ -1446,9 +1481,24 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1446
1481
|
props
|
|
1447
1482
|
], "p0.id")
|
|
1448
1483
|
}
|
|
1449
|
-
}, 3, "dL_1")
|
|
1484
|
+
}, 3, "dL_1"),
|
|
1485
|
+
props.anchor && props.id && /* @__PURE__ */ qwik._jsxQ("a", null, {
|
|
1486
|
+
href: qwik._fnSignal((p0) => `#${p0.id}`, [
|
|
1487
|
+
props
|
|
1488
|
+
], "`#${p0.id}`"),
|
|
1489
|
+
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1490
|
+
navigator.clipboard.writeText(window.location.href);
|
|
1491
|
+
}, "Header_component_Component__Fragment_h2_a_onClick_rVkO8eotENE")
|
|
1492
|
+
}, /* @__PURE__ */ qwik._jsxC(Link, {
|
|
1493
|
+
class: "transition-all opacity-10 group-hover:opacity-100 active:scale-75",
|
|
1494
|
+
width: 24,
|
|
1495
|
+
[qwik._IMMUTABLE]: {
|
|
1496
|
+
class: qwik._IMMUTABLE,
|
|
1497
|
+
width: qwik._IMMUTABLE
|
|
1498
|
+
}
|
|
1499
|
+
}, 3, "dL_2"), 1, "dL_3")
|
|
1450
1500
|
], 1, null)
|
|
1451
|
-
}, 1, "
|
|
1501
|
+
}, 1, "dL_4");
|
|
1452
1502
|
if (props.subheader)
|
|
1453
1503
|
Component = /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1454
1504
|
class: "flex flex-1 flex-col gap-1"
|
|
@@ -1459,7 +1509,7 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1459
1509
|
}, qwik._fnSignal((p0) => p0.subheader, [
|
|
1460
1510
|
props
|
|
1461
1511
|
], "p0.subheader"), 3, null)
|
|
1462
|
-
], 1, "
|
|
1512
|
+
], 1, "dL_5");
|
|
1463
1513
|
if (props.loading !== void 0)
|
|
1464
1514
|
Component = /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1465
1515
|
class: "flex"
|
|
@@ -1478,8 +1528,8 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1478
1528
|
[qwik._IMMUTABLE]: {
|
|
1479
1529
|
width: qwik._IMMUTABLE
|
|
1480
1530
|
}
|
|
1481
|
-
}, 3, "
|
|
1482
|
-
], 1, "
|
|
1531
|
+
}, 3, "dL_6"), 1, null)
|
|
1532
|
+
], 1, "dL_7");
|
|
1483
1533
|
return Component;
|
|
1484
1534
|
}, "Header_component_FfGOhhBNG5k"));
|
|
1485
1535
|
const navColorClasses = {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _jsxBranch,
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _jsxBranch, _IMMUTABLE, _wrapSignal, useStore, useLexicalScope, _wrapProp, useOn, useStylesQrl, useSignal } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
const Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => /* @__PURE__ */ _jsxQ("span", null, {
|
|
4
4
|
id: _fnSignal((p0) => p0.id, [
|
|
@@ -532,12 +532,22 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
532
532
|
...props1.class
|
|
533
533
|
},
|
|
534
534
|
children: [
|
|
535
|
-
/* @__PURE__ */
|
|
535
|
+
props.hover == "blur" && /* @__PURE__ */ _jsxQ("div", null, {
|
|
536
|
+
class: {
|
|
537
|
+
"transition-all absolute flex inset-0 w-full h-full z-10 backdrop-blur-xl rounded-lg opacity-0 hover:opacity-100": true
|
|
538
|
+
}
|
|
539
|
+
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
540
|
+
name: "blur",
|
|
541
|
+
[_IMMUTABLE]: {
|
|
542
|
+
name: _IMMUTABLE
|
|
543
|
+
}
|
|
544
|
+
}, 3, "OW_0"), 1, "OW_1"),
|
|
545
|
+
/* @__PURE__ */ _jsxC(Slot, null, 3, "OW_2"),
|
|
536
546
|
props1.href && /* @__PURE__ */ _jsxQ("a", {
|
|
537
547
|
href: _wrapSignal(props1, "href")
|
|
538
548
|
}, {
|
|
539
549
|
class: "absolute inset-0"
|
|
540
|
-
}, null, 3, "
|
|
550
|
+
}, null, 3, "OW_3"),
|
|
541
551
|
props.blobs && /* @__PURE__ */ _jsxC(Blobs, {
|
|
542
552
|
get color() {
|
|
543
553
|
return props.color ?? "darkgray";
|
|
@@ -551,9 +561,9 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
551
561
|
], 'p0.color??"darkgray"'),
|
|
552
562
|
class: _IMMUTABLE
|
|
553
563
|
}
|
|
554
|
-
}, 3, "
|
|
564
|
+
}, 3, "OW_4")
|
|
555
565
|
]
|
|
556
|
-
}, null, 0, "
|
|
566
|
+
}, null, 0, "OW_5");
|
|
557
567
|
}, "Card_component_DlkkcTEVka4"));
|
|
558
568
|
const InputColorClasses = {
|
|
559
569
|
slate: "bg-slate-700/90 border-slate-600 hover:bg-slate-600 active:bg-slate-500 focus:border-slate-300",
|
|
@@ -1420,17 +1430,42 @@ const LoadingIcon = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
1420
1430
|
], '{borderWidth:p0.width/8,width:p0.width,height:p0.width,animation:`spin ${p0.speed??"0.6s"} ease-in-out infinite`}')
|
|
1421
1431
|
}, 0, "1A_0");
|
|
1422
1432
|
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
1433
|
+
const Link = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1434
|
+
return /* @__PURE__ */ _jsxS("svg", {
|
|
1435
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1436
|
+
viewBox: "0 0 512 512",
|
|
1437
|
+
...props,
|
|
1438
|
+
get height() {
|
|
1439
|
+
return props.width;
|
|
1440
|
+
},
|
|
1441
|
+
children: /* @__PURE__ */ _jsxQ("path", null, {
|
|
1442
|
+
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
1443
|
+
fill: "none",
|
|
1444
|
+
stroke: "currentColor",
|
|
1445
|
+
"stroke-linecap": "round",
|
|
1446
|
+
"stroke-linejoin": "round",
|
|
1447
|
+
"stroke-width": "36"
|
|
1448
|
+
}, null, 3, null)
|
|
1449
|
+
}, {
|
|
1450
|
+
xmlns: _IMMUTABLE,
|
|
1451
|
+
viewBox: _IMMUTABLE,
|
|
1452
|
+
height: _fnSignal((p0) => p0.width, [
|
|
1453
|
+
props
|
|
1454
|
+
], "p0.width")
|
|
1455
|
+
}, 0, "jn_0");
|
|
1456
|
+
}, "Link_component_qTbVd8bIKcc"));
|
|
1423
1457
|
const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1424
1458
|
_jsxBranch();
|
|
1425
1459
|
const props1 = _restProps(props, [
|
|
1426
1460
|
"id",
|
|
1461
|
+
"anchor",
|
|
1427
1462
|
"loading",
|
|
1428
1463
|
"subheader"
|
|
1429
1464
|
]);
|
|
1430
1465
|
let Component = /* @__PURE__ */ _jsxC(Fragment, {
|
|
1431
1466
|
children: /* @__PURE__ */ _jsxQ("h2", {
|
|
1432
1467
|
class: {
|
|
1433
|
-
"flex gap-2 flex-1 items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1468
|
+
"flex gap-2 flex-1 group items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1434
1469
|
...props1.class
|
|
1435
1470
|
}
|
|
1436
1471
|
}, null, [
|
|
@@ -1444,9 +1479,24 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1444
1479
|
props
|
|
1445
1480
|
], "p0.id")
|
|
1446
1481
|
}
|
|
1447
|
-
}, 3, "dL_1")
|
|
1482
|
+
}, 3, "dL_1"),
|
|
1483
|
+
props.anchor && props.id && /* @__PURE__ */ _jsxQ("a", null, {
|
|
1484
|
+
href: _fnSignal((p0) => `#${p0.id}`, [
|
|
1485
|
+
props
|
|
1486
|
+
], "`#${p0.id}`"),
|
|
1487
|
+
onClick$: /* @__PURE__ */ inlinedQrl(() => {
|
|
1488
|
+
navigator.clipboard.writeText(window.location.href);
|
|
1489
|
+
}, "Header_component_Component__Fragment_h2_a_onClick_rVkO8eotENE")
|
|
1490
|
+
}, /* @__PURE__ */ _jsxC(Link, {
|
|
1491
|
+
class: "transition-all opacity-10 group-hover:opacity-100 active:scale-75",
|
|
1492
|
+
width: 24,
|
|
1493
|
+
[_IMMUTABLE]: {
|
|
1494
|
+
class: _IMMUTABLE,
|
|
1495
|
+
width: _IMMUTABLE
|
|
1496
|
+
}
|
|
1497
|
+
}, 3, "dL_2"), 1, "dL_3")
|
|
1448
1498
|
], 1, null)
|
|
1449
|
-
}, 1, "
|
|
1499
|
+
}, 1, "dL_4");
|
|
1450
1500
|
if (props.subheader)
|
|
1451
1501
|
Component = /* @__PURE__ */ _jsxQ("div", null, {
|
|
1452
1502
|
class: "flex flex-1 flex-col gap-1"
|
|
@@ -1457,7 +1507,7 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1457
1507
|
}, _fnSignal((p0) => p0.subheader, [
|
|
1458
1508
|
props
|
|
1459
1509
|
], "p0.subheader"), 3, null)
|
|
1460
|
-
], 1, "
|
|
1510
|
+
], 1, "dL_5");
|
|
1461
1511
|
if (props.loading !== void 0)
|
|
1462
1512
|
Component = /* @__PURE__ */ _jsxQ("div", null, {
|
|
1463
1513
|
class: "flex"
|
|
@@ -1476,8 +1526,8 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1476
1526
|
[_IMMUTABLE]: {
|
|
1477
1527
|
width: _IMMUTABLE
|
|
1478
1528
|
}
|
|
1479
|
-
}, 3, "
|
|
1480
|
-
], 1, "
|
|
1529
|
+
}, 3, "dL_6"), 1, null)
|
|
1530
|
+
], 1, "dL_7");
|
|
1481
1531
|
return Component;
|
|
1482
1532
|
}, "Header_component_FfGOhhBNG5k"));
|
|
1483
1533
|
const navColorClasses = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropsOf } from '@builder.io/qwik';
|
|
2
2
|
interface CardProps extends Omit<PropsOf<'div'>, 'class'> {
|
|
3
3
|
color?: keyof typeof cardColorClasses;
|
|
4
|
-
hover?: boolean | 'clickable';
|
|
4
|
+
hover?: boolean | 'clickable' | 'blur';
|
|
5
5
|
href?: string;
|
|
6
6
|
row?: boolean;
|
|
7
7
|
blobs?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@anuragroy/tailwindcss-animate": "^1.0.6",
|
|
44
|
-
"@builder.io/qwik": "1.5.
|
|
45
|
-
"@builder.io/qwik-city": "^1.5.
|
|
46
|
-
"@types/eslint": "^8.56.
|
|
47
|
-
"@types/node": "^20.12.
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
49
|
-
"@typescript-eslint/parser": "^7.
|
|
44
|
+
"@builder.io/qwik": "1.5.3",
|
|
45
|
+
"@builder.io/qwik-city": "^1.5.3",
|
|
46
|
+
"@types/eslint": "^8.56.10",
|
|
47
|
+
"@types/node": "^20.12.8",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
49
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
50
50
|
"autoprefixer": "^10.4.19",
|
|
51
51
|
"chart.js": "^4.4.2",
|
|
52
52
|
"eslint": "^8.57.0",
|
|
53
53
|
"eslint-plugin-qwik": "latest",
|
|
54
|
-
"np": "^10.0.
|
|
54
|
+
"np": "^10.0.5",
|
|
55
55
|
"postcss": "^8.4.38",
|
|
56
56
|
"tailwindcss": "3.4.3",
|
|
57
57
|
"typescript": "5.4.5",
|
|
58
58
|
"undici": "*",
|
|
59
|
-
"vite": "^5.2.
|
|
59
|
+
"vite": "^5.2.11",
|
|
60
60
|
"vite-tsconfig-paths": "^4.3.2"
|
|
61
61
|
}
|
|
62
62
|
}
|