@luminescent/ui-qwik 5.1.0 → 5.2.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.
Files changed (38) hide show
  1. package/lib/index.qwik.cjs +11 -12
  2. package/lib/index.qwik.mjs +11 -12
  3. package/lib-types/components/docs.d.ts +8 -0
  4. package/lib-types/components/elements/Header.d.ts +10 -0
  5. package/lib-types/components/elements/Toggle.d.ts +1 -2
  6. package/package.json +2 -2
  7. package/lib-types/ui-qwik/src/components/docs/Anchor.d.ts +0 -2
  8. package/lib-types/ui-qwik/src/components/docs/Blobs.d.ts +0 -2
  9. package/lib-types/ui-qwik/src/components/docs/ColorPicker.d.ts +0 -2
  10. package/lib-types/ui-qwik/src/components/docs/Dropdown.d.ts +0 -2
  11. package/lib-types/ui-qwik/src/components/docs/IconsLogos.d.ts +0 -2
  12. package/lib-types/ui-qwik/src/components/docs/Nav.d.ts +0 -2
  13. package/lib-types/ui-qwik/src/components/docs/NumberInput.d.ts +0 -2
  14. package/lib-types/ui-qwik/src/components/docs/SelectMenu.d.ts +0 -2
  15. package/lib-types/ui-qwik/src/components/docs/Settings.d.ts +0 -2
  16. package/lib-types/ui-qwik/src/components/docs/Sidebar.d.ts +0 -2
  17. package/lib-types/ui-qwik/src/components/docs/Toggle.d.ts +0 -2
  18. package/lib-types/ui-qwik/src/components/docs/lum-btn.d.ts +0 -2
  19. package/lib-types/ui-qwik/src/components/docs/lum-card.d.ts +0 -2
  20. package/lib-types/ui-qwik/src/components/docs/lum-classes.d.ts +0 -2
  21. package/lib-types/ui-qwik/src/components/docs/lum-input.d.ts +0 -2
  22. package/lib-types/ui-qwik/src/components/logos.d.ts +0 -10
  23. package/lib-types/ui-qwik/src/entry.dev.d.ts +0 -2
  24. package/lib-types/ui-qwik/src/entry.ssr.d.ts +0 -14
  25. package/lib-types/ui-qwik/src/index.d.ts +0 -3
  26. package/lib-types/ui-qwik/src/root.d.ts +0 -3
  27. package/lib-types/ui-react/src/components/logos/Birdflop.d.ts +0 -7
  28. package/lib-types/ui-react/src/components/logos/Discord.d.ts +0 -2
  29. package/lib-types/ui-react/src/components/logos/Fabric.d.ts +0 -2
  30. package/lib-types/ui-react/src/components/logos/Forge.d.ts +0 -2
  31. package/lib-types/ui-react/src/components/logos/IconProps.d.ts +0 -3
  32. package/lib-types/ui-react/src/components/logos/Luminescent.d.ts +0 -3
  33. package/lib-types/ui-react/src/components/logos/Paper.d.ts +0 -2
  34. package/lib-types/ui-react/src/components/logos/Pterodactyl.d.ts +0 -2
  35. package/lib-types/ui-react/src/components/logos/Purpur.d.ts +0 -2
  36. package/lib-types/ui-react/src/components/logos/Velocity.d.ts +0 -2
  37. package/lib-types/ui-react/src/components/logos/Waterfall.d.ts +0 -2
  38. package/lib-types/ui-react/src/components/logos.d.ts +0 -10
@@ -586,6 +586,7 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
586
586
  colors.map((color, i) => {
587
587
  return /* @__PURE__ */ jsxRuntime.jsx("button", {
588
588
  type: "button",
589
+ name: color,
589
590
  class: {
590
591
  "lum-btn rounded-sm h-[1.6rem] w-[1.6rem] border-2 border-white/30 p-0 hover:border-white": true
591
592
  },
@@ -601,6 +602,7 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
601
602
  /* @__PURE__ */ jsxRuntime.jsx("button", {
602
603
  type: "button",
603
604
  class: "lum-btn rounded-sm h-[1.6rem] w-[1.6rem] p-0.5",
605
+ name: "Randomize",
604
606
  onClick$: async () => {
605
607
  const color = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
606
608
  await setColor(color);
@@ -742,6 +744,7 @@ const Nav = qwik.component$(({ fixed, floating, noblur, nohamburger, colorClass
742
744
  name: "end"
743
745
  }),
744
746
  !nohamburger && /* @__PURE__ */ jsxRuntime.jsx("button", {
747
+ name: "Navigation Menu",
745
748
  class: "lum-btn lum-bg-transparent p-2 sm:hidden",
746
749
  onClick$: () => menu.value = !menu.value,
747
750
  children: /* @__PURE__ */ jsxRuntime.jsx(Menu, {
@@ -911,6 +914,7 @@ const SelectMenuRaw = qwik.component$(({ values, class: Class, panelClass = "lum
911
914
  value: props.value
912
915
  });
913
916
  const selectRef = qwik.useSignal();
917
+ const selected = values?.find((v) => v.value === store.value);
914
918
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
915
919
  class: {
916
920
  "relative touch-manipulation": true,
@@ -951,14 +955,9 @@ const SelectMenuRaw = qwik.component$(({ values, class: Class, panelClass = "lum
951
955
  customDropdown && /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
952
956
  name: "dropdown"
953
957
  }),
954
- !customDropdown && /* @__PURE__ */ jsxRuntime.jsxs("span", {
955
- children: [
956
- values && (values.find((value) => value.value.toString() === store.value)?.name ?? values[0].name),
957
- !values && /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
958
- name: "dropdown"
959
- })
960
- ]
961
- })
958
+ !customDropdown && (selected?.name ?? values?.[0]?.name ?? /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
959
+ name: "dropdown"
960
+ }))
962
961
  ]
963
962
  }),
964
963
  hover && /* @__PURE__ */ jsxRuntime.jsx("div", {
@@ -1038,7 +1037,7 @@ const Sidebar = qwik.component$(({ position, ...props }) => {
1038
1037
  })
1039
1038
  });
1040
1039
  });
1041
- const Toggle = qwik.component$(({ checkbox, round, label, ...props }) => {
1040
+ const Toggle = qwik.component$(({ checkbox, round, ...props }) => {
1042
1041
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
1043
1042
  class: "flex touch-manipulation items-center gap-3",
1044
1043
  children: [
@@ -1064,10 +1063,10 @@ const Toggle = qwik.component$(({ checkbox, round, label, ...props }) => {
1064
1063
  })
1065
1064
  ]
1066
1065
  }),
1067
- label && /* @__PURE__ */ jsxRuntime.jsx("label", {
1066
+ /* @__PURE__ */ jsxRuntime.jsx("label", {
1068
1067
  for: props.id,
1069
- class: "flex gap-2 text-lum-text select-none",
1070
- children: label
1068
+ class: "flex gap-2 text-lum-text select-none empty:hidden",
1069
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1071
1070
  })
1072
1071
  ]
1073
1072
  });
@@ -584,6 +584,7 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
584
584
  colors.map((color, i) => {
585
585
  return /* @__PURE__ */ jsx("button", {
586
586
  type: "button",
587
+ name: color,
587
588
  class: {
588
589
  "lum-btn rounded-sm h-[1.6rem] w-[1.6rem] border-2 border-white/30 p-0 hover:border-white": true
589
590
  },
@@ -599,6 +600,7 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
599
600
  /* @__PURE__ */ jsx("button", {
600
601
  type: "button",
601
602
  class: "lum-btn rounded-sm h-[1.6rem] w-[1.6rem] p-0.5",
603
+ name: "Randomize",
602
604
  onClick$: async () => {
603
605
  const color = `#${Math.floor(Math.random() * 16777215).toString(16)}`;
604
606
  await setColor(color);
@@ -740,6 +742,7 @@ const Nav = component$(({ fixed, floating, noblur, nohamburger, colorClass = "lu
740
742
  name: "end"
741
743
  }),
742
744
  !nohamburger && /* @__PURE__ */ jsx("button", {
745
+ name: "Navigation Menu",
743
746
  class: "lum-btn lum-bg-transparent p-2 sm:hidden",
744
747
  onClick$: () => menu.value = !menu.value,
745
748
  children: /* @__PURE__ */ jsx(Menu, {
@@ -909,6 +912,7 @@ const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-l
909
912
  value: props.value
910
913
  });
911
914
  const selectRef = useSignal();
915
+ const selected = values?.find((v) => v.value === store.value);
912
916
  return /* @__PURE__ */ jsxs("div", {
913
917
  class: {
914
918
  "relative touch-manipulation": true,
@@ -949,14 +953,9 @@ const SelectMenuRaw = component$(({ values, class: Class, panelClass = "lum-bg-l
949
953
  customDropdown && /* @__PURE__ */ jsx(Slot, {
950
954
  name: "dropdown"
951
955
  }),
952
- !customDropdown && /* @__PURE__ */ jsxs("span", {
953
- children: [
954
- values && (values.find((value) => value.value.toString() === store.value)?.name ?? values[0].name),
955
- !values && /* @__PURE__ */ jsx(Slot, {
956
- name: "dropdown"
957
- })
958
- ]
959
- })
956
+ !customDropdown && (selected?.name ?? values?.[0]?.name ?? /* @__PURE__ */ jsx(Slot, {
957
+ name: "dropdown"
958
+ }))
960
959
  ]
961
960
  }),
962
961
  hover && /* @__PURE__ */ jsx("div", {
@@ -1036,7 +1035,7 @@ const Sidebar = component$(({ position, ...props }) => {
1036
1035
  })
1037
1036
  });
1038
1037
  });
1039
- const Toggle = component$(({ checkbox, round, label, ...props }) => {
1038
+ const Toggle = component$(({ checkbox, round, ...props }) => {
1040
1039
  return /* @__PURE__ */ jsxs("div", {
1041
1040
  class: "flex touch-manipulation items-center gap-3",
1042
1041
  children: [
@@ -1062,10 +1061,10 @@ const Toggle = component$(({ checkbox, round, label, ...props }) => {
1062
1061
  })
1063
1062
  ]
1064
1063
  }),
1065
- label && /* @__PURE__ */ jsx("label", {
1064
+ /* @__PURE__ */ jsx("label", {
1066
1065
  for: props.id,
1067
- class: "flex gap-2 text-lum-text select-none",
1068
- children: label
1066
+ class: "flex gap-2 text-lum-text select-none empty:hidden",
1067
+ children: /* @__PURE__ */ jsx(Slot, {})
1069
1068
  })
1070
1069
  ]
1071
1070
  });
@@ -0,0 +1,8 @@
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';
@@ -0,0 +1,10 @@
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 {};
@@ -1,11 +1,10 @@
1
- import type { JSXOutput, PropsOf } from '@builder.io/qwik';
1
+ import type { PropsOf } from '@builder.io/qwik';
2
2
  interface ToggleProps extends Omit<PropsOf<'input'> & {
3
3
  type: 'checkbox';
4
4
  }, 'class' | 'bind:checked' | 'type' | 'children'> {
5
5
  class?: string;
6
6
  checkbox?: boolean;
7
7
  round?: boolean;
8
- label?: string | JSXOutput;
9
8
  }
10
9
  export declare const Toggle: import("@builder.io/qwik").Component<ToggleProps>;
11
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui-qwik",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "Luminescent UI library - Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",
@@ -50,7 +50,7 @@
50
50
  "vite-tsconfig-paths": "^5.1.4"
51
51
  },
52
52
  "peerDependencies": {
53
- "@luminescent/ui": "5.1.0"
53
+ "@luminescent/ui": "5.2.0"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "qwik build",
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;
@@ -1,10 +0,0 @@
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';
@@ -1,2 +0,0 @@
1
- import { type RenderOptions } from '@builder.io/qwik';
2
- export default function (opts: RenderOptions): Promise<import("@builder.io/qwik").RenderResult>;
@@ -1,14 +0,0 @@
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>;
@@ -1,3 +0,0 @@
1
- export * from './components/elements';
2
- export * from './components/functions';
3
- export * from './components/logos';
@@ -1,3 +0,0 @@
1
- import './global.css';
2
- declare const _default: import("@builder.io/qwik").Component<unknown>;
3
- export default _default;
@@ -1,7 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoDiscord({ size, ...props }: IconProps): any;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoFabric({ size, ...props }: IconProps): any;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoForge({ size, ...props }: IconProps): any;
@@ -1,3 +0,0 @@
1
- export type IconProps = Omit<React.SVGAttributes<SVGElement>, 'bind:checked' | 'type' | 'children'> & {
2
- size?: number;
3
- };
@@ -1,3 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoLuminescent({ size, ...props }: IconProps): any;
3
- export declare function LogoLuminescentFull({ size, ...props }: IconProps): any;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoPaper({ size, ...props }: IconProps): any;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoPterodactyl({ size, ...props }: IconProps): any;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoPurpur({ size, ...props }: IconProps): any;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoVelocity({ size, ...props }: IconProps): any;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare function LogoWaterfall({ size, ...props }: IconProps): any;
@@ -1,10 +0,0 @@
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';