@luminescent/ui-qwik 2.0.1 → 2.1.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.
package/lib/index.qwik.cjs
CHANGED
|
@@ -2,9 +2,45 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
4
|
const qwik = require("@builder.io/qwik");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const Link = qwik.component$((props) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
viewBox: "0 0 512 512",
|
|
9
|
+
...props,
|
|
10
|
+
height: props.width,
|
|
11
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
12
|
+
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
"stroke-linecap": "round",
|
|
16
|
+
"stroke-linejoin": "round",
|
|
17
|
+
"stroke-width": "36"
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
const Anchor = qwik.component$(({ id, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
22
|
+
...props,
|
|
23
|
+
class: {
|
|
24
|
+
"group flex items-center gap-2": true,
|
|
25
|
+
...props.class
|
|
26
|
+
},
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}),
|
|
29
|
+
id && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
30
|
+
id,
|
|
31
|
+
class: "pointer-events-none -mt-32 block h-32"
|
|
32
|
+
}),
|
|
33
|
+
id && /* @__PURE__ */ jsxRuntime.jsx("a", {
|
|
34
|
+
href: `#${id}`,
|
|
35
|
+
onClick$: async () => {
|
|
36
|
+
await navigator.clipboard.writeText(window.location.href);
|
|
37
|
+
},
|
|
38
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Link, {
|
|
39
|
+
class: "opacity-10 transition-all duration-300 group-hover:opacity-100 group-hover:duration-75",
|
|
40
|
+
width: 24
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
]
|
|
8
44
|
}));
|
|
9
45
|
const blobColorClasses = {
|
|
10
46
|
slate: [
|
|
@@ -682,44 +718,6 @@ const DropdownRaw = qwik.component$(({ id, values, class: Class, display, hover,
|
|
|
682
718
|
]
|
|
683
719
|
});
|
|
684
720
|
});
|
|
685
|
-
const Link = qwik.component$((props) => {
|
|
686
|
-
return /* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
687
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
688
|
-
viewBox: "0 0 512 512",
|
|
689
|
-
...props,
|
|
690
|
-
height: props.width,
|
|
691
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
692
|
-
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
693
|
-
fill: "none",
|
|
694
|
-
stroke: "currentColor",
|
|
695
|
-
"stroke-linecap": "round",
|
|
696
|
-
"stroke-linejoin": "round",
|
|
697
|
-
"stroke-width": "36"
|
|
698
|
-
})
|
|
699
|
-
});
|
|
700
|
-
});
|
|
701
|
-
const Header = qwik.component$(({ id, anchor, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs("h2", {
|
|
702
|
-
class: {
|
|
703
|
-
"group flex items-center gap-2 text-xl font-bold whitespace-nowrap text-white sm:text-2xl": true,
|
|
704
|
-
...props.class
|
|
705
|
-
},
|
|
706
|
-
children: [
|
|
707
|
-
/* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}),
|
|
708
|
-
id && /* @__PURE__ */ jsxRuntime.jsx(Anchor, {
|
|
709
|
-
id
|
|
710
|
-
}),
|
|
711
|
-
anchor && id && /* @__PURE__ */ jsxRuntime.jsx("a", {
|
|
712
|
-
href: `#${id}`,
|
|
713
|
-
onClick$: async () => {
|
|
714
|
-
await navigator.clipboard.writeText(window.location.href);
|
|
715
|
-
},
|
|
716
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Link, {
|
|
717
|
-
class: "opacity-10 transition-all duration-300 group-hover:opacity-100 group-hover:duration-75",
|
|
718
|
-
width: 24
|
|
719
|
-
})
|
|
720
|
-
})
|
|
721
|
-
]
|
|
722
|
-
}));
|
|
723
721
|
const Nav = qwik.component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-gray-900", ...props }) => {
|
|
724
722
|
const menu = qwik.useSignal(false);
|
|
725
723
|
return /* @__PURE__ */ jsxRuntime.jsxs("nav", {
|
|
@@ -1596,7 +1594,6 @@ exports.Blobs = Blobs;
|
|
|
1596
1594
|
exports.ColorPicker = ColorPicker;
|
|
1597
1595
|
exports.Dropdown = Dropdown;
|
|
1598
1596
|
exports.DropdownRaw = DropdownRaw;
|
|
1599
|
-
exports.Header = Header;
|
|
1600
1597
|
exports.LogoBirdflop = LogoBirdflop;
|
|
1601
1598
|
exports.LogoDiscord = LogoDiscord;
|
|
1602
1599
|
exports.LogoFabric = LogoFabric;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,8 +1,44 @@
|
|
|
1
1
|
import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, useStore, $,
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { component$, Slot, useStore, $, useSignal, useStyles$ } from "@builder.io/qwik";
|
|
3
|
+
const Link = component$((props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 512 512",
|
|
7
|
+
...props,
|
|
8
|
+
height: props.width,
|
|
9
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
10
|
+
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"stroke-width": "36"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
const Anchor = component$(({ id, ...props }) => /* @__PURE__ */ jsxs("div", {
|
|
20
|
+
...props,
|
|
21
|
+
class: {
|
|
22
|
+
"group flex items-center gap-2": true,
|
|
23
|
+
...props.class
|
|
24
|
+
},
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx(Slot, {}),
|
|
27
|
+
id && /* @__PURE__ */ jsx("span", {
|
|
28
|
+
id,
|
|
29
|
+
class: "pointer-events-none -mt-32 block h-32"
|
|
30
|
+
}),
|
|
31
|
+
id && /* @__PURE__ */ jsx("a", {
|
|
32
|
+
href: `#${id}`,
|
|
33
|
+
onClick$: async () => {
|
|
34
|
+
await navigator.clipboard.writeText(window.location.href);
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ jsx(Link, {
|
|
37
|
+
class: "opacity-10 transition-all duration-300 group-hover:opacity-100 group-hover:duration-75",
|
|
38
|
+
width: 24
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
]
|
|
6
42
|
}));
|
|
7
43
|
const blobColorClasses = {
|
|
8
44
|
slate: [
|
|
@@ -680,44 +716,6 @@ const DropdownRaw = component$(({ id, values, class: Class, display, hover, ...p
|
|
|
680
716
|
]
|
|
681
717
|
});
|
|
682
718
|
});
|
|
683
|
-
const Link = component$((props) => {
|
|
684
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
685
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
686
|
-
viewBox: "0 0 512 512",
|
|
687
|
-
...props,
|
|
688
|
-
height: props.width,
|
|
689
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
690
|
-
d: "M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42",
|
|
691
|
-
fill: "none",
|
|
692
|
-
stroke: "currentColor",
|
|
693
|
-
"stroke-linecap": "round",
|
|
694
|
-
"stroke-linejoin": "round",
|
|
695
|
-
"stroke-width": "36"
|
|
696
|
-
})
|
|
697
|
-
});
|
|
698
|
-
});
|
|
699
|
-
const Header = component$(({ id, anchor, ...props }) => /* @__PURE__ */ jsxs("h2", {
|
|
700
|
-
class: {
|
|
701
|
-
"group flex items-center gap-2 text-xl font-bold whitespace-nowrap text-white sm:text-2xl": true,
|
|
702
|
-
...props.class
|
|
703
|
-
},
|
|
704
|
-
children: [
|
|
705
|
-
/* @__PURE__ */ jsx(Slot, {}),
|
|
706
|
-
id && /* @__PURE__ */ jsx(Anchor, {
|
|
707
|
-
id
|
|
708
|
-
}),
|
|
709
|
-
anchor && id && /* @__PURE__ */ jsx("a", {
|
|
710
|
-
href: `#${id}`,
|
|
711
|
-
onClick$: async () => {
|
|
712
|
-
await navigator.clipboard.writeText(window.location.href);
|
|
713
|
-
},
|
|
714
|
-
children: /* @__PURE__ */ jsx(Link, {
|
|
715
|
-
class: "opacity-10 transition-all duration-300 group-hover:opacity-100 group-hover:duration-75",
|
|
716
|
-
width: 24
|
|
717
|
-
})
|
|
718
|
-
})
|
|
719
|
-
]
|
|
720
|
-
}));
|
|
721
719
|
const Nav = component$(({ fixed, floating, nohamburger, colorClass = "lum-bg-gray-900", ...props }) => {
|
|
722
720
|
const menu = useSignal(false);
|
|
723
721
|
return /* @__PURE__ */ jsxs("nav", {
|
|
@@ -1595,7 +1593,6 @@ export {
|
|
|
1595
1593
|
ColorPicker,
|
|
1596
1594
|
Dropdown,
|
|
1597
1595
|
DropdownRaw,
|
|
1598
|
-
Header,
|
|
1599
1596
|
LogoBirdflop,
|
|
1600
1597
|
LogoDiscord,
|
|
1601
1598
|
LogoFabric,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { PropsOf } from '@builder.io/qwik';
|
|
2
|
+
interface AnchorProps extends Omit<PropsOf<'div'>, 'class'> {
|
|
3
|
+
class?: {
|
|
4
|
+
[key: string]: boolean;
|
|
5
|
+
};
|
|
6
|
+
id?: string;
|
|
3
7
|
}
|
|
4
8
|
export declare const Anchor: import("@builder.io/qwik").Component<AnchorProps>;
|
|
5
9
|
export {};
|
|
@@ -2,7 +2,6 @@ export * from './elements/Anchor';
|
|
|
2
2
|
export * from './elements/Blobs';
|
|
3
3
|
export * from './elements/ColorPicker';
|
|
4
4
|
export * from './elements/Dropdown';
|
|
5
|
-
export * from './elements/Header';
|
|
6
5
|
export * from './elements/Nav';
|
|
7
6
|
export * from './elements/NumberInput';
|
|
8
7
|
export * from './elements/Toggle';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui-qwik",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vite-tsconfig-paths": "^5.1.4"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@luminescent/ui": "2.0
|
|
55
|
+
"@luminescent/ui": "2.1.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "qwik build",
|