@luminescent/ui 0.16.0 → 0.16.1
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
|
@@ -1422,17 +1422,42 @@ const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1422
1422
|
], '{borderWidth:p0.width/8,width:p0.width,height:p0.width,animation:`spin ${p0.speed??"0.6s"} ease-in-out infinite`}')
|
|
1423
1423
|
}, 0, "1A_0");
|
|
1424
1424
|
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
1425
|
+
const Link = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1426
|
+
return /* @__PURE__ */ qwik._jsxS("svg", {
|
|
1427
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1428
|
+
viewBox: "0 0 512 512",
|
|
1429
|
+
...props,
|
|
1430
|
+
get height() {
|
|
1431
|
+
return props.width;
|
|
1432
|
+
},
|
|
1433
|
+
children: /* @__PURE__ */ qwik._jsxQ("path", null, {
|
|
1434
|
+
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
1435
|
+
fill: "none",
|
|
1436
|
+
stroke: "currentColor",
|
|
1437
|
+
"stroke-linecap": "round",
|
|
1438
|
+
"stroke-linejoin": "round",
|
|
1439
|
+
"stroke-width": "36"
|
|
1440
|
+
}, null, 3, null)
|
|
1441
|
+
}, {
|
|
1442
|
+
xmlns: qwik._IMMUTABLE,
|
|
1443
|
+
viewBox: qwik._IMMUTABLE,
|
|
1444
|
+
height: qwik._fnSignal((p0) => p0.width, [
|
|
1445
|
+
props
|
|
1446
|
+
], "p0.width")
|
|
1447
|
+
}, 0, "jn_0");
|
|
1448
|
+
}, "Link_component_qTbVd8bIKcc"));
|
|
1425
1449
|
const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1426
1450
|
qwik._jsxBranch();
|
|
1427
1451
|
const props1 = qwik._restProps(props, [
|
|
1428
1452
|
"id",
|
|
1453
|
+
"anchor",
|
|
1429
1454
|
"loading",
|
|
1430
1455
|
"subheader"
|
|
1431
1456
|
]);
|
|
1432
1457
|
let Component = /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
1433
1458
|
children: /* @__PURE__ */ qwik._jsxQ("h2", {
|
|
1434
1459
|
class: {
|
|
1435
|
-
"flex gap-2 flex-1 items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1460
|
+
"flex gap-2 flex-1 group items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1436
1461
|
...props1.class
|
|
1437
1462
|
}
|
|
1438
1463
|
}, null, [
|
|
@@ -1446,9 +1471,24 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1446
1471
|
props
|
|
1447
1472
|
], "p0.id")
|
|
1448
1473
|
}
|
|
1449
|
-
}, 3, "dL_1")
|
|
1474
|
+
}, 3, "dL_1"),
|
|
1475
|
+
props.anchor && props.id && /* @__PURE__ */ qwik._jsxQ("a", null, {
|
|
1476
|
+
href: qwik._fnSignal((p0) => `#${p0.id}`, [
|
|
1477
|
+
props
|
|
1478
|
+
], "`#${p0.id}`"),
|
|
1479
|
+
onClick$: /* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1480
|
+
navigator.clipboard.writeText(window.location.href);
|
|
1481
|
+
}, "Header_component_Component__Fragment_h2_a_onClick_rVkO8eotENE")
|
|
1482
|
+
}, /* @__PURE__ */ qwik._jsxC(Link, {
|
|
1483
|
+
class: "transition-all opacity-10 group-hover:opacity-100 active:scale-75",
|
|
1484
|
+
width: 24,
|
|
1485
|
+
[qwik._IMMUTABLE]: {
|
|
1486
|
+
class: qwik._IMMUTABLE,
|
|
1487
|
+
width: qwik._IMMUTABLE
|
|
1488
|
+
}
|
|
1489
|
+
}, 3, "dL_2"), 1, "dL_3")
|
|
1450
1490
|
], 1, null)
|
|
1451
|
-
}, 1, "
|
|
1491
|
+
}, 1, "dL_4");
|
|
1452
1492
|
if (props.subheader)
|
|
1453
1493
|
Component = /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1454
1494
|
class: "flex flex-1 flex-col gap-1"
|
|
@@ -1459,7 +1499,7 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1459
1499
|
}, qwik._fnSignal((p0) => p0.subheader, [
|
|
1460
1500
|
props
|
|
1461
1501
|
], "p0.subheader"), 3, null)
|
|
1462
|
-
], 1, "
|
|
1502
|
+
], 1, "dL_5");
|
|
1463
1503
|
if (props.loading !== void 0)
|
|
1464
1504
|
Component = /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
1465
1505
|
class: "flex"
|
|
@@ -1478,8 +1518,8 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1478
1518
|
[qwik._IMMUTABLE]: {
|
|
1479
1519
|
width: qwik._IMMUTABLE
|
|
1480
1520
|
}
|
|
1481
|
-
}, 3, "
|
|
1482
|
-
], 1, "
|
|
1521
|
+
}, 3, "dL_6"), 1, null)
|
|
1522
|
+
], 1, "dL_7");
|
|
1483
1523
|
return Component;
|
|
1484
1524
|
}, "Header_component_FfGOhhBNG5k"));
|
|
1485
1525
|
const navColorClasses = {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1420,17 +1420,42 @@ const LoadingIcon = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
1420
1420
|
], '{borderWidth:p0.width/8,width:p0.width,height:p0.width,animation:`spin ${p0.speed??"0.6s"} ease-in-out infinite`}')
|
|
1421
1421
|
}, 0, "1A_0");
|
|
1422
1422
|
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
1423
|
+
const Link = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1424
|
+
return /* @__PURE__ */ _jsxS("svg", {
|
|
1425
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1426
|
+
viewBox: "0 0 512 512",
|
|
1427
|
+
...props,
|
|
1428
|
+
get height() {
|
|
1429
|
+
return props.width;
|
|
1430
|
+
},
|
|
1431
|
+
children: /* @__PURE__ */ _jsxQ("path", null, {
|
|
1432
|
+
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
1433
|
+
fill: "none",
|
|
1434
|
+
stroke: "currentColor",
|
|
1435
|
+
"stroke-linecap": "round",
|
|
1436
|
+
"stroke-linejoin": "round",
|
|
1437
|
+
"stroke-width": "36"
|
|
1438
|
+
}, null, 3, null)
|
|
1439
|
+
}, {
|
|
1440
|
+
xmlns: _IMMUTABLE,
|
|
1441
|
+
viewBox: _IMMUTABLE,
|
|
1442
|
+
height: _fnSignal((p0) => p0.width, [
|
|
1443
|
+
props
|
|
1444
|
+
], "p0.width")
|
|
1445
|
+
}, 0, "jn_0");
|
|
1446
|
+
}, "Link_component_qTbVd8bIKcc"));
|
|
1423
1447
|
const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1424
1448
|
_jsxBranch();
|
|
1425
1449
|
const props1 = _restProps(props, [
|
|
1426
1450
|
"id",
|
|
1451
|
+
"anchor",
|
|
1427
1452
|
"loading",
|
|
1428
1453
|
"subheader"
|
|
1429
1454
|
]);
|
|
1430
1455
|
let Component = /* @__PURE__ */ _jsxC(Fragment, {
|
|
1431
1456
|
children: /* @__PURE__ */ _jsxQ("h2", {
|
|
1432
1457
|
class: {
|
|
1433
|
-
"flex gap-2 flex-1 items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1458
|
+
"flex gap-2 flex-1 group items-center font-bold text-xl sm:text-2xl whitespace-nowrap text-white": true,
|
|
1434
1459
|
...props1.class
|
|
1435
1460
|
}
|
|
1436
1461
|
}, null, [
|
|
@@ -1444,9 +1469,24 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1444
1469
|
props
|
|
1445
1470
|
], "p0.id")
|
|
1446
1471
|
}
|
|
1447
|
-
}, 3, "dL_1")
|
|
1472
|
+
}, 3, "dL_1"),
|
|
1473
|
+
props.anchor && props.id && /* @__PURE__ */ _jsxQ("a", null, {
|
|
1474
|
+
href: _fnSignal((p0) => `#${p0.id}`, [
|
|
1475
|
+
props
|
|
1476
|
+
], "`#${p0.id}`"),
|
|
1477
|
+
onClick$: /* @__PURE__ */ inlinedQrl(() => {
|
|
1478
|
+
navigator.clipboard.writeText(window.location.href);
|
|
1479
|
+
}, "Header_component_Component__Fragment_h2_a_onClick_rVkO8eotENE")
|
|
1480
|
+
}, /* @__PURE__ */ _jsxC(Link, {
|
|
1481
|
+
class: "transition-all opacity-10 group-hover:opacity-100 active:scale-75",
|
|
1482
|
+
width: 24,
|
|
1483
|
+
[_IMMUTABLE]: {
|
|
1484
|
+
class: _IMMUTABLE,
|
|
1485
|
+
width: _IMMUTABLE
|
|
1486
|
+
}
|
|
1487
|
+
}, 3, "dL_2"), 1, "dL_3")
|
|
1448
1488
|
], 1, null)
|
|
1449
|
-
}, 1, "
|
|
1489
|
+
}, 1, "dL_4");
|
|
1450
1490
|
if (props.subheader)
|
|
1451
1491
|
Component = /* @__PURE__ */ _jsxQ("div", null, {
|
|
1452
1492
|
class: "flex flex-1 flex-col gap-1"
|
|
@@ -1457,7 +1497,7 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1457
1497
|
}, _fnSignal((p0) => p0.subheader, [
|
|
1458
1498
|
props
|
|
1459
1499
|
], "p0.subheader"), 3, null)
|
|
1460
|
-
], 1, "
|
|
1500
|
+
], 1, "dL_5");
|
|
1461
1501
|
if (props.loading !== void 0)
|
|
1462
1502
|
Component = /* @__PURE__ */ _jsxQ("div", null, {
|
|
1463
1503
|
class: "flex"
|
|
@@ -1476,8 +1516,8 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1476
1516
|
[_IMMUTABLE]: {
|
|
1477
1517
|
width: _IMMUTABLE
|
|
1478
1518
|
}
|
|
1479
|
-
}, 3, "
|
|
1480
|
-
], 1, "
|
|
1519
|
+
}, 3, "dL_6"), 1, null)
|
|
1520
|
+
], 1, "dL_7");
|
|
1481
1521
|
return Component;
|
|
1482
1522
|
}, "Header_component_FfGOhhBNG5k"));
|
|
1483
1523
|
const navColorClasses = {
|