@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.
- package/lib/index.qwik.cjs +12 -4
- package/lib/index.qwik.mjs +12 -4
- package/lib-types/components/elements/Header.d.ts +5 -2
- package/lib-types/components/elements/SelectInput.d.ts +1 -2
- package/lib-types/utils/simple-color-picker/color.d.ts +36 -0
- package/package.json +1 -1
- package/lib-types/components/docs/SelectInput.d.ts +0 -2
package/lib/index.qwik.cjs
CHANGED
|
@@ -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-
|
|
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",
|
|
1059
|
-
class:
|
|
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() {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -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-
|
|
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",
|
|
1057
|
-
class:
|
|
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:
|
|
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