@luminescent/ui 0.12.3 → 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 +15 -14
- package/lib/index.qwik.mjs +15 -14
- 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
|
@@ -78,7 +78,7 @@ const Blobs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
78
78
|
const colorClass = typeof (props.color ?? "darkgray") == "string" ? blobColorClasses[props.color ?? "darkgray"] : props.color ?? "darkgray";
|
|
79
79
|
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
80
80
|
class: {
|
|
81
|
-
"motion-reduce:hidden absolute
|
|
81
|
+
"motion-reduce:hidden absolute inset-0 transition-all animate-in fade-in anim-duration-[2s] -z-[1]": true,
|
|
82
82
|
...props1.class
|
|
83
83
|
}
|
|
84
84
|
}, {
|
|
@@ -288,15 +288,7 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
288
288
|
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
289
289
|
...props1,
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */ qwik.
|
|
292
|
-
class: qwik._fnSignal((p0) => ({
|
|
293
|
-
"flex gap-4": true,
|
|
294
|
-
"flex-col": !p0.row,
|
|
295
|
-
"flex-row items-center": p0.row
|
|
296
|
-
}), [
|
|
297
|
-
props
|
|
298
|
-
], '{"flex gap-4":true,"flex-col":!p0.row,"flex-row items-center":p0.row}')
|
|
299
|
-
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_0"), 1, null),
|
|
291
|
+
/* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "OW_0"),
|
|
300
292
|
props1.href && /* @__PURE__ */ qwik._jsxQ("a", {
|
|
301
293
|
href: qwik._wrapSignal(props1, "href")
|
|
302
294
|
}, {
|
|
@@ -318,7 +310,8 @@ const Card = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
318
310
|
}, 3, "OW_2")
|
|
319
311
|
],
|
|
320
312
|
class: {
|
|
321
|
-
"relative p-
|
|
313
|
+
"relative flex gap-4 p-7 border rounded-lg motion-safe:transition-all": true,
|
|
314
|
+
"flex-col": !props.row,
|
|
322
315
|
[cardColorClasses[props.color ?? "darkgray"].card.bg]: !props.blobs,
|
|
323
316
|
[cardColorClasses[props.color ?? "darkgray"].card.bg_blobs]: props.blobs,
|
|
324
317
|
[cardColorClasses[props.color ?? "darkgray"].card.hover + " hover:shadow-lg"]: props.hover,
|
|
@@ -1061,10 +1054,18 @@ const LoadingIcon = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
1061
1054
|
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
1062
1055
|
const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1063
1056
|
qwik._jsxBranch();
|
|
1057
|
+
const props1 = qwik._restProps(props, [
|
|
1058
|
+
"id",
|
|
1059
|
+
"loading",
|
|
1060
|
+
"subheader"
|
|
1061
|
+
]);
|
|
1064
1062
|
let Component = /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
1065
|
-
children: /* @__PURE__ */ qwik._jsxQ("h2",
|
|
1066
|
-
class:
|
|
1067
|
-
|
|
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, [
|
|
1068
1069
|
/* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "dL_0"),
|
|
1069
1070
|
props.id && /* @__PURE__ */ qwik._jsxC(Anchor, {
|
|
1070
1071
|
get id() {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -76,7 +76,7 @@ const Blobs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
76
76
|
const colorClass = typeof (props.color ?? "darkgray") == "string" ? blobColorClasses[props.color ?? "darkgray"] : props.color ?? "darkgray";
|
|
77
77
|
return /* @__PURE__ */ _jsxQ("div", {
|
|
78
78
|
class: {
|
|
79
|
-
"motion-reduce:hidden absolute
|
|
79
|
+
"motion-reduce:hidden absolute inset-0 transition-all animate-in fade-in anim-duration-[2s] -z-[1]": true,
|
|
80
80
|
...props1.class
|
|
81
81
|
}
|
|
82
82
|
}, {
|
|
@@ -286,15 +286,7 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
286
286
|
return /* @__PURE__ */ _jsxS("div", {
|
|
287
287
|
...props1,
|
|
288
288
|
children: [
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
class: _fnSignal((p0) => ({
|
|
291
|
-
"flex gap-4": true,
|
|
292
|
-
"flex-col": !p0.row,
|
|
293
|
-
"flex-row items-center": p0.row
|
|
294
|
-
}), [
|
|
295
|
-
props
|
|
296
|
-
], '{"flex gap-4":true,"flex-col":!p0.row,"flex-row items-center":p0.row}')
|
|
297
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "OW_0"), 1, null),
|
|
289
|
+
/* @__PURE__ */ _jsxC(Slot, null, 3, "OW_0"),
|
|
298
290
|
props1.href && /* @__PURE__ */ _jsxQ("a", {
|
|
299
291
|
href: _wrapSignal(props1, "href")
|
|
300
292
|
}, {
|
|
@@ -316,7 +308,8 @@ const Card = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
316
308
|
}, 3, "OW_2")
|
|
317
309
|
],
|
|
318
310
|
class: {
|
|
319
|
-
"relative p-
|
|
311
|
+
"relative flex gap-4 p-7 border rounded-lg motion-safe:transition-all": true,
|
|
312
|
+
"flex-col": !props.row,
|
|
320
313
|
[cardColorClasses[props.color ?? "darkgray"].card.bg]: !props.blobs,
|
|
321
314
|
[cardColorClasses[props.color ?? "darkgray"].card.bg_blobs]: props.blobs,
|
|
322
315
|
[cardColorClasses[props.color ?? "darkgray"].card.hover + " hover:shadow-lg"]: props.hover,
|
|
@@ -1059,10 +1052,18 @@ const LoadingIcon = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
1059
1052
|
}, "LoadingIcon_component_QMsA9D0RcAM"));
|
|
1060
1053
|
const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1061
1054
|
_jsxBranch();
|
|
1055
|
+
const props1 = _restProps(props, [
|
|
1056
|
+
"id",
|
|
1057
|
+
"loading",
|
|
1058
|
+
"subheader"
|
|
1059
|
+
]);
|
|
1062
1060
|
let Component = /* @__PURE__ */ _jsxC(Fragment, {
|
|
1063
|
-
children: /* @__PURE__ */ _jsxQ("h2",
|
|
1064
|
-
class:
|
|
1065
|
-
|
|
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, [
|
|
1066
1067
|
/* @__PURE__ */ _jsxC(Slot, null, 3, "dL_0"),
|
|
1067
1068
|
props.id && /* @__PURE__ */ _jsxC(Anchor, {
|
|
1068
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