@luminescent/ui-qwik 5.0.1 → 5.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 +15 -4
- package/lib/index.qwik.mjs +15 -4
- package/lib-types/components/elements/SelectMenu.d.ts +1 -0
- package/lib-types/ui-qwik/src/components/docs/Anchor.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/Blobs.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/ColorPicker.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/Dropdown.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/IconsLogos.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/Nav.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/NumberInput.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/SelectMenu.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/Settings.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/Sidebar.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/Toggle.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/lum-btn.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/lum-card.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/lum-classes.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/docs/lum-input.d.ts +2 -0
- package/lib-types/ui-qwik/src/components/logos.d.ts +10 -0
- package/lib-types/ui-qwik/src/entry.dev.d.ts +2 -0
- package/lib-types/ui-qwik/src/entry.ssr.d.ts +14 -0
- package/lib-types/ui-qwik/src/index.d.ts +3 -0
- package/lib-types/ui-qwik/src/root.d.ts +3 -0
- package/lib-types/ui-react/src/components/logos/Birdflop.d.ts +7 -0
- package/lib-types/ui-react/src/components/logos/Discord.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos/Fabric.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos/Forge.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos/IconProps.d.ts +3 -0
- package/lib-types/ui-react/src/components/logos/Luminescent.d.ts +3 -0
- package/lib-types/ui-react/src/components/logos/Paper.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos/Pterodactyl.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos/Purpur.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos/Velocity.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos/Waterfall.d.ts +2 -0
- package/lib-types/ui-react/src/components/logos.d.ts +10 -0
- package/package.json +10 -10
- package/lib-types/components/docs.d.ts +0 -8
- package/lib-types/components/elements/Header.d.ts +0 -10
package/lib/index.qwik.cjs
CHANGED
|
@@ -905,7 +905,7 @@ const SelectMenu = qwik.component$((props) => {
|
|
|
905
905
|
]
|
|
906
906
|
});
|
|
907
907
|
});
|
|
908
|
-
const SelectMenuRaw = qwik.component$(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, customDropdown, hover, align, ...props }) => {
|
|
908
|
+
const SelectMenuRaw = qwik.component$(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, nocloseonclick, customDropdown, hover, align, ...props }) => {
|
|
909
909
|
const store = qwik.useStore({
|
|
910
910
|
opened: false,
|
|
911
911
|
value: props.value
|
|
@@ -934,8 +934,18 @@ const SelectMenuRaw = qwik.component$(({ values, class: Class, panelClass = "lum
|
|
|
934
934
|
"w-full": true,
|
|
935
935
|
...Class
|
|
936
936
|
},
|
|
937
|
-
onClick$: () => {
|
|
938
|
-
if (
|
|
937
|
+
onClick$: (e, el) => {
|
|
938
|
+
if (hover) return;
|
|
939
|
+
store.opened = !store.opened;
|
|
940
|
+
if (nocloseonclick) return;
|
|
941
|
+
const listener = (e2) => {
|
|
942
|
+
if (!store.opened) return document.removeEventListener("click", listener);
|
|
943
|
+
const path = e2.composedPath();
|
|
944
|
+
if (path.includes(el)) return;
|
|
945
|
+
store.opened = false;
|
|
946
|
+
document.removeEventListener("click", listener);
|
|
947
|
+
};
|
|
948
|
+
document.addEventListener("click", listener);
|
|
939
949
|
},
|
|
940
950
|
children: [
|
|
941
951
|
customDropdown && /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
|
|
@@ -975,7 +985,8 @@ const SelectMenuRaw = qwik.component$(({ values, class: Class, panelClass = "lum
|
|
|
975
985
|
"lum-btn rounded-lum-1": true,
|
|
976
986
|
[btnClass]: true
|
|
977
987
|
},
|
|
978
|
-
onClick$: () => {
|
|
988
|
+
onClick$: (e, el) => {
|
|
989
|
+
el.blur();
|
|
979
990
|
store.opened = false;
|
|
980
991
|
const select = selectRef.value;
|
|
981
992
|
if (select) {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -903,7 +903,7 @@ const SelectMenu = component$((props) => {
|
|
|
903
903
|
]
|
|
904
904
|
});
|
|
905
905
|
});
|
|
906
|
-
const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, customDropdown, hover, align, ...props }) => {
|
|
906
|
+
const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-lum-input-bg", btnClass = "lum-bg-transparent", noblur, nocloseonclick, customDropdown, hover, align, ...props }) => {
|
|
907
907
|
const store = useStore({
|
|
908
908
|
opened: false,
|
|
909
909
|
value: props.value
|
|
@@ -932,8 +932,18 @@ const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-l
|
|
|
932
932
|
"w-full": true,
|
|
933
933
|
...Class
|
|
934
934
|
},
|
|
935
|
-
onClick$: () => {
|
|
936
|
-
if (
|
|
935
|
+
onClick$: (e, el) => {
|
|
936
|
+
if (hover) return;
|
|
937
|
+
store.opened = !store.opened;
|
|
938
|
+
if (nocloseonclick) return;
|
|
939
|
+
const listener = (e2) => {
|
|
940
|
+
if (!store.opened) return document.removeEventListener("click", listener);
|
|
941
|
+
const path = e2.composedPath();
|
|
942
|
+
if (path.includes(el)) return;
|
|
943
|
+
store.opened = false;
|
|
944
|
+
document.removeEventListener("click", listener);
|
|
945
|
+
};
|
|
946
|
+
document.addEventListener("click", listener);
|
|
937
947
|
},
|
|
938
948
|
children: [
|
|
939
949
|
customDropdown && /* @__PURE__ */ jsx(Slot, {
|
|
@@ -973,7 +983,8 @@ const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-l
|
|
|
973
983
|
"lum-btn rounded-lum-1": true,
|
|
974
984
|
[btnClass]: true
|
|
975
985
|
},
|
|
976
|
-
onClick$: () => {
|
|
986
|
+
onClick$: (e, el) => {
|
|
987
|
+
el.blur();
|
|
977
988
|
store.opened = false;
|
|
978
989
|
const select = selectRef.value;
|
|
979
990
|
if (select) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './logos/Birdflop';
|
|
2
|
+
export * from './logos/Discord';
|
|
3
|
+
export * from './logos/Fabric';
|
|
4
|
+
export * from './logos/Forge';
|
|
5
|
+
export * from './logos/Luminescent';
|
|
6
|
+
export * from './logos/Paper';
|
|
7
|
+
export * from './logos/Pterodactyl';
|
|
8
|
+
export * from './logos/Purpur';
|
|
9
|
+
export * from './logos/Velocity';
|
|
10
|
+
export * from './logos/Waterfall';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WHAT IS THIS FILE?
|
|
3
|
+
*
|
|
4
|
+
* SSR entry point, in all cases the application is rendered outside the browser, this
|
|
5
|
+
* entry point will be the common one.
|
|
6
|
+
*
|
|
7
|
+
* - Server (express, cloudflare...)
|
|
8
|
+
* - npm run start
|
|
9
|
+
* - npm run preview
|
|
10
|
+
* - npm run build
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
import { type RenderToStreamOptions } from '@builder.io/qwik/server';
|
|
14
|
+
export default function (opts: RenderToStreamOptions): Promise<import("@builder.io/qwik/server").RenderToStreamResult>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from './IconProps';
|
|
2
|
+
interface LogoBirdflopProps extends IconProps {
|
|
3
|
+
confused?: boolean;
|
|
4
|
+
fillGradient?: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare function LogoBirdflop({ confused, fillGradient, size, ...props }: LogoBirdflopProps): any;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './logos/Birdflop';
|
|
2
|
+
export * from './logos/Discord';
|
|
3
|
+
export * from './logos/Fabric';
|
|
4
|
+
export * from './logos/Forge';
|
|
5
|
+
export * from './logos/Luminescent';
|
|
6
|
+
export * from './logos/Paper';
|
|
7
|
+
export * from './logos/Pterodactyl';
|
|
8
|
+
export * from './logos/Purpur';
|
|
9
|
+
export * from './logos/Velocity';
|
|
10
|
+
export * from './logos/Waterfall';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui-qwik",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Luminescent UI library - Qwik",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@anuragroy/tailwindcss-animate": "^1.0.6",
|
|
35
|
-
"@builder.io/qwik": "1.
|
|
36
|
-
"@builder.io/qwik-city": "^1.
|
|
37
|
-
"@eslint/js": "^9.
|
|
35
|
+
"@builder.io/qwik": "1.15.0",
|
|
36
|
+
"@builder.io/qwik-city": "^1.15.0",
|
|
37
|
+
"@eslint/js": "^9.32.0",
|
|
38
38
|
"@tailwindcss/vite": "^4.1.11",
|
|
39
39
|
"@types/eslint": "^9.6.1",
|
|
40
|
-
"@types/node": "^24.0
|
|
41
|
-
"eslint": "^9.
|
|
42
|
-
"eslint-plugin-qwik": "^1.
|
|
40
|
+
"@types/node": "^24.1.0",
|
|
41
|
+
"eslint": "^9.32.0",
|
|
42
|
+
"eslint-plugin-qwik": "^1.15.0",
|
|
43
43
|
"globals": "^16.3.0",
|
|
44
44
|
"prettier": "^3.6.2",
|
|
45
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
45
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
46
46
|
"tailwindcss": "4.1.11",
|
|
47
47
|
"typescript": "5.8.3",
|
|
48
|
-
"typescript-eslint": "^8.
|
|
48
|
+
"typescript-eslint": "^8.38.0",
|
|
49
49
|
"vite": "5.4.14",
|
|
50
50
|
"vite-tsconfig-paths": "^5.1.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@luminescent/ui": "5.0
|
|
53
|
+
"@luminescent/ui": "5.1.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "qwik build",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './docs/Anchor';
|
|
2
|
-
export * from './docs/Blobs';
|
|
3
|
-
export * from './docs/ColorPicker';
|
|
4
|
-
export * from './docs/Dropdown';
|
|
5
|
-
export * from './docs/IconsLogos';
|
|
6
|
-
export * from './docs/Nav';
|
|
7
|
-
export * from './docs/NumberInput';
|
|
8
|
-
export * from './docs/Toggle';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PropsOf } from '@builder.io/qwik';
|
|
2
|
-
interface HeaderProps extends Omit<PropsOf<'h2'>, 'class'> {
|
|
3
|
-
class?: {
|
|
4
|
-
[key: string]: boolean;
|
|
5
|
-
};
|
|
6
|
-
id?: string;
|
|
7
|
-
anchor?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const Header: import("@builder.io/qwik").Component<HeaderProps>;
|
|
10
|
-
export {};
|