@luminescent/ui 0.12.4 → 0.12.5

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.
@@ -310,7 +310,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
310
310
  }, 3, "OW_2")
311
311
  ],
312
312
  class: {
313
- "relative flex gap-4 p-8 border rounded-lg motion-safe:transition-all": true,
313
+ "relative flex gap-4 p-7 border rounded-lg motion-safe:transition-all": true,
314
314
  "flex-col": !props.row,
315
315
  [cardColorClasses[props.color ?? "darkgray"].card.bg]: !props.blobs,
316
316
  [cardColorClasses[props.color ?? "darkgray"].card.bg_blobs]: props.blobs,
@@ -1054,10 +1054,18 @@ const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
1054
1054
  }, "LoadingIcon_component_QMsA9D0RcAM"));
1055
1055
  const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1056
1056
  qwik._jsxBranch();
1057
+ const props1 = qwik._restProps(props, [
1058
+ "id",
1059
+ "loading",
1060
+ "subheader"
1061
+ ]);
1057
1062
  let Component = /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
1058
- children: /* @__PURE__ */ qwik._jsxQ("h2", null, {
1059
- class: "flex gap-2 flex-1 items-center font-bold text-2xl whitespace-nowrap"
1060
- }, [
1063
+ children: /* @__PURE__ */ qwik._jsxQ("h2", {
1064
+ class: {
1065
+ "flex gap-2 flex-1 items-center font-bold text-2xl whitespace-nowrap text-white": true,
1066
+ ...props1.class
1067
+ }
1068
+ }, null, [
1061
1069
  /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "dL_0"),
1062
1070
  props.id && /* @__PURE__ */ qwik._jsxC(Anchor, {
1063
1071
  get id() {
@@ -308,7 +308,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
308
308
  }, 3, "OW_2")
309
309
  ],
310
310
  class: {
311
- "relative flex gap-4 p-8 border rounded-lg motion-safe:transition-all": true,
311
+ "relative flex gap-4 p-7 border rounded-lg motion-safe:transition-all": true,
312
312
  "flex-col": !props.row,
313
313
  [cardColorClasses[props.color ?? "darkgray"].card.bg]: !props.blobs,
314
314
  [cardColorClasses[props.color ?? "darkgray"].card.bg_blobs]: props.blobs,
@@ -1052,10 +1052,18 @@ const LoadingIcon = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
1052
1052
  }, "LoadingIcon_component_QMsA9D0RcAM"));
1053
1053
  const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1054
1054
  _jsxBranch();
1055
+ const props1 = _restProps(props, [
1056
+ "id",
1057
+ "loading",
1058
+ "subheader"
1059
+ ]);
1055
1060
  let Component = /* @__PURE__ */ _jsxC(Fragment, {
1056
- children: /* @__PURE__ */ _jsxQ("h2", null, {
1057
- class: "flex gap-2 flex-1 items-center font-bold text-2xl whitespace-nowrap"
1058
- }, [
1061
+ children: /* @__PURE__ */ _jsxQ("h2", {
1062
+ class: {
1063
+ "flex gap-2 flex-1 items-center font-bold text-2xl whitespace-nowrap text-white": true,
1064
+ ...props1.class
1065
+ }
1066
+ }, null, [
1059
1067
  /* @__PURE__ */ _jsxC(Slot, null, 3, "dL_0"),
1060
1068
  props.id && /* @__PURE__ */ _jsxC(Anchor, {
1061
1069
  get id() {
@@ -1,5 +1,8 @@
1
- import type { JSXOutput } from '@builder.io/qwik';
2
- interface HeaderProps {
1
+ import type { JSXOutput, PropsOf } from '@builder.io/qwik';
2
+ interface HeaderProps extends Omit<PropsOf<'h2'>, 'class'> {
3
+ class?: {
4
+ [key: string]: boolean;
5
+ };
3
6
  id?: string;
4
7
  loading?: boolean;
5
8
  subheader?: string | JSXOutput;
@@ -9,9 +9,8 @@ interface SelectInputProps extends Omit<PropsOf<'select'>, 'class' | 'size'> {
9
9
  size?: keyof typeof sizeClasses;
10
10
  id: string;
11
11
  values: {
12
- name: JSXChildren;
12
+ name: string;
13
13
  value: string | number;
14
- color?: keyof typeof buttonColorClasses;
15
14
  }[];
16
15
  }
17
16
  export declare const SelectInput: import("@builder.io/qwik").Component<SelectInputProps>;
@@ -0,0 +1,36 @@
1
+ export declare const clamp: (value: number, min: number, max: number) => number;
2
+ export declare function getMousePosition(e: MouseEvent | TouchEvent): {
3
+ x: number;
4
+ y: number;
5
+ };
6
+ export declare const pad2: (c: string) => string;
7
+ export type RGBAColor = {
8
+ r: number;
9
+ g: number;
10
+ b: number;
11
+ a?: number;
12
+ };
13
+ export type HSVAColor = {
14
+ h: number;
15
+ s: number;
16
+ v: number;
17
+ a?: number;
18
+ };
19
+ export declare function getBrightness(color: RGBAColor): number;
20
+ export declare function hexNumberToRgb(color: number): {
21
+ r: number;
22
+ g: number;
23
+ b: number;
24
+ };
25
+ export declare function rgbToHex(color: RGBAColor): string;
26
+ export declare const hexStringToNumber: (color: string) => number;
27
+ export declare function hsvToRgb(color: HSVAColor): {
28
+ r: number;
29
+ g: number;
30
+ b: number;
31
+ };
32
+ export declare function rgbToHsv(color: RGBAColor): {
33
+ h: number;
34
+ s: number;
35
+ v: number;
36
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "Luminescent UI library",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",
@@ -1,2 +0,0 @@
1
- declare const _default: import("@builder.io/qwik").Component<unknown>;
2
- export default _default;