@luminescent/ui 0.12.9 → 0.12.11
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 +16 -7
- package/lib/index.qwik.mjs +16 -7
- package/lib-types/components/docs/SelectInput.d.ts +2 -0
- package/lib-types/components/elements/Nav.d.ts +5 -0
- package/lib-types/components/elements/SelectInput.d.ts +2 -1
- package/package.json +8 -8
- package/lib-types/utils/simple-color-picker/color.d.ts +0 -36
package/lib/index.qwik.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
4
|
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
5
5
|
const Anchor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => /* @__PURE__ */ qwik._jsxQ("span", null, {
|
|
6
|
-
class: "block h-32 -mt-32",
|
|
6
|
+
class: "block h-32 -mt-32 pointer-events-none",
|
|
7
7
|
id: qwik._fnSignal((p0) => p0.id, [
|
|
8
8
|
props
|
|
9
9
|
], "p0.id")
|
|
@@ -1113,10 +1113,15 @@ const Header = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1113
1113
|
], 1, "dL_5");
|
|
1114
1114
|
return Component;
|
|
1115
1115
|
}, "Header_component_FfGOhhBNG5k"));
|
|
1116
|
+
const navColorClasses = {
|
|
1117
|
+
gray: "bg-gray-800/50 border-gray-700/50",
|
|
1118
|
+
transparent: "bg-transparent border-transparent"
|
|
1119
|
+
};
|
|
1116
1120
|
const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1117
1121
|
const props1 = qwik._restProps(props, [
|
|
1118
1122
|
"fixed",
|
|
1119
|
-
"floating"
|
|
1123
|
+
"floating",
|
|
1124
|
+
"color"
|
|
1120
1125
|
]);
|
|
1121
1126
|
const menu = qwik.useSignal(false);
|
|
1122
1127
|
return /* @__PURE__ */ qwik._jsxS("nav", {
|
|
@@ -1128,12 +1133,13 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
1128
1133
|
"top-full mt-2": menu.value,
|
|
1129
1134
|
"opacity-0 top-0 scale-95 pointer-events-none": !menu.value
|
|
1130
1135
|
}
|
|
1131
|
-
}, null, /* @__PURE__ */ qwik._jsxQ("div",
|
|
1136
|
+
}, null, /* @__PURE__ */ qwik._jsxQ("div", {
|
|
1132
1137
|
class: {
|
|
1133
|
-
|
|
1138
|
+
[navColorClasses[props.color ?? "gray"]]: true,
|
|
1139
|
+
"flex flex-col gap-2 motion-safe:transition-all max-w-7xl w-full px-2 py-4 border rounded-lg": true,
|
|
1134
1140
|
'before:absolute before:content-[""] before:w-full before:h-full before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': true
|
|
1135
1141
|
}
|
|
1136
|
-
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
1142
|
+
}, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
1137
1143
|
name: "mobile",
|
|
1138
1144
|
[qwik._IMMUTABLE]: {
|
|
1139
1145
|
name: qwik._IMMUTABLE
|
|
@@ -1141,14 +1147,16 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
1141
1147
|
}, 3, "8r_0"), 1, null), 1, null),
|
|
1142
1148
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
1143
1149
|
class: {
|
|
1144
|
-
|
|
1150
|
+
[navColorClasses[props.color ?? "gray"]]: !props.floating,
|
|
1151
|
+
"border-b": !props.floating,
|
|
1145
1152
|
'before:absolute before:content-[""] before:w-full before:h-full before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': !props.floating,
|
|
1146
1153
|
"relative mt-2 mx-2": props.floating
|
|
1147
1154
|
}
|
|
1148
1155
|
}, null, /* @__PURE__ */ qwik._jsxQ("div", {
|
|
1149
1156
|
class: {
|
|
1150
1157
|
"flex justify-evenly w-full mx-auto px-2 max-w-7xl": true,
|
|
1151
|
-
|
|
1158
|
+
[navColorClasses[props.color ?? "gray"]]: props.floating,
|
|
1159
|
+
"border rounded-lg": props.floating,
|
|
1152
1160
|
'before:absolute before:content-[""] before:w-full before:max-w-7xl before:h-full before:rounded-lg before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': props.floating
|
|
1153
1161
|
}
|
|
1154
1162
|
}, null, [
|
|
@@ -1964,4 +1972,5 @@ exports._auto_buttonClass = buttonClass;
|
|
|
1964
1972
|
exports.blobColorClasses = blobColorClasses;
|
|
1965
1973
|
exports.buttonColorClasses = buttonColorClasses;
|
|
1966
1974
|
exports.cardColorClasses = cardColorClasses;
|
|
1975
|
+
exports.navColorClasses = navColorClasses;
|
|
1967
1976
|
exports.sizeClasses = sizeClasses;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { componentQrl, inlinedQrl, _jsxQ, _fnSignal, _restProps, _jsxS, _jsxC, Slot, _jsxBranch, _wrapSignal, _IMMUTABLE, useStore, useLexicalScope, _wrapProp, useOn, useStylesQrl, useSignal } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
const Anchor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => /* @__PURE__ */ _jsxQ("span", null, {
|
|
4
|
-
class: "block h-32 -mt-32",
|
|
4
|
+
class: "block h-32 -mt-32 pointer-events-none",
|
|
5
5
|
id: _fnSignal((p0) => p0.id, [
|
|
6
6
|
props
|
|
7
7
|
], "p0.id")
|
|
@@ -1111,10 +1111,15 @@ const Header = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1111
1111
|
], 1, "dL_5");
|
|
1112
1112
|
return Component;
|
|
1113
1113
|
}, "Header_component_FfGOhhBNG5k"));
|
|
1114
|
+
const navColorClasses = {
|
|
1115
|
+
gray: "bg-gray-800/50 border-gray-700/50",
|
|
1116
|
+
transparent: "bg-transparent border-transparent"
|
|
1117
|
+
};
|
|
1114
1118
|
const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1115
1119
|
const props1 = _restProps(props, [
|
|
1116
1120
|
"fixed",
|
|
1117
|
-
"floating"
|
|
1121
|
+
"floating",
|
|
1122
|
+
"color"
|
|
1118
1123
|
]);
|
|
1119
1124
|
const menu = useSignal(false);
|
|
1120
1125
|
return /* @__PURE__ */ _jsxS("nav", {
|
|
@@ -1126,12 +1131,13 @@ const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
|
1126
1131
|
"top-full mt-2": menu.value,
|
|
1127
1132
|
"opacity-0 top-0 scale-95 pointer-events-none": !menu.value
|
|
1128
1133
|
}
|
|
1129
|
-
}, null, /* @__PURE__ */ _jsxQ("div",
|
|
1134
|
+
}, null, /* @__PURE__ */ _jsxQ("div", {
|
|
1130
1135
|
class: {
|
|
1131
|
-
|
|
1136
|
+
[navColorClasses[props.color ?? "gray"]]: true,
|
|
1137
|
+
"flex flex-col gap-2 motion-safe:transition-all max-w-7xl w-full px-2 py-4 border rounded-lg": true,
|
|
1132
1138
|
'before:absolute before:content-[""] before:w-full before:h-full before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': true
|
|
1133
1139
|
}
|
|
1134
|
-
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
1140
|
+
}, null, /* @__PURE__ */ _jsxC(Slot, {
|
|
1135
1141
|
name: "mobile",
|
|
1136
1142
|
[_IMMUTABLE]: {
|
|
1137
1143
|
name: _IMMUTABLE
|
|
@@ -1139,14 +1145,16 @@ const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
|
1139
1145
|
}, 3, "8r_0"), 1, null), 1, null),
|
|
1140
1146
|
/* @__PURE__ */ _jsxQ("div", {
|
|
1141
1147
|
class: {
|
|
1142
|
-
|
|
1148
|
+
[navColorClasses[props.color ?? "gray"]]: !props.floating,
|
|
1149
|
+
"border-b": !props.floating,
|
|
1143
1150
|
'before:absolute before:content-[""] before:w-full before:h-full before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': !props.floating,
|
|
1144
1151
|
"relative mt-2 mx-2": props.floating
|
|
1145
1152
|
}
|
|
1146
1153
|
}, null, /* @__PURE__ */ _jsxQ("div", {
|
|
1147
1154
|
class: {
|
|
1148
1155
|
"flex justify-evenly w-full mx-auto px-2 max-w-7xl": true,
|
|
1149
|
-
|
|
1156
|
+
[navColorClasses[props.color ?? "gray"]]: props.floating,
|
|
1157
|
+
"border rounded-lg": props.floating,
|
|
1150
1158
|
'before:absolute before:content-[""] before:w-full before:max-w-7xl before:h-full before:rounded-lg before:backdrop-blur-lg before:drop-shadow-xl before:-z-10': props.floating
|
|
1151
1159
|
}
|
|
1152
1160
|
}, null, [
|
|
@@ -1963,5 +1971,6 @@ export {
|
|
|
1963
1971
|
blobColorClasses,
|
|
1964
1972
|
buttonColorClasses,
|
|
1965
1973
|
cardColorClasses,
|
|
1974
|
+
navColorClasses,
|
|
1966
1975
|
sizeClasses
|
|
1967
1976
|
};
|
|
@@ -5,6 +5,11 @@ interface NavContainerProps extends Omit<PropsOf<'nav'>, 'class'> {
|
|
|
5
5
|
};
|
|
6
6
|
fixed?: boolean;
|
|
7
7
|
floating?: boolean;
|
|
8
|
+
color?: keyof typeof navColorClasses;
|
|
8
9
|
}
|
|
10
|
+
export declare const navColorClasses: {
|
|
11
|
+
gray: string;
|
|
12
|
+
transparent: string;
|
|
13
|
+
};
|
|
9
14
|
export declare const Nav: import("@builder.io/qwik").Component<NavContainerProps>;
|
|
10
15
|
export {};
|
|
@@ -9,8 +9,9 @@ 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: JSXChildren;
|
|
13
13
|
value: string | number;
|
|
14
|
+
color?: keyof typeof buttonColorClasses;
|
|
14
15
|
}[];
|
|
15
16
|
}
|
|
16
17
|
export declare const SelectInput: import("@builder.io/qwik").Component<SelectInputProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.11",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@anuragroy/tailwindcss-animate": "^1.0.6",
|
|
44
|
-
"@builder.io/qwik": "1.
|
|
45
|
-
"@builder.io/qwik-city": "^1.
|
|
44
|
+
"@builder.io/qwik": "1.5.1",
|
|
45
|
+
"@builder.io/qwik-city": "^1.5.1",
|
|
46
46
|
"@types/eslint": "^8.56.5",
|
|
47
|
-
"@types/node": "^20.11.
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
49
|
-
"@typescript-eslint/parser": "^7.
|
|
47
|
+
"@types/node": "^20.11.25",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
49
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
50
50
|
"autoprefixer": "^10.4.18",
|
|
51
51
|
"chart.js": "^4.4.2",
|
|
52
52
|
"eslint": "^8.57.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"np": "^10.0.0",
|
|
55
55
|
"postcss": "^8.4.35",
|
|
56
56
|
"tailwindcss": "3.4.1",
|
|
57
|
-
"typescript": "5.
|
|
57
|
+
"typescript": "5.4.2",
|
|
58
58
|
"undici": "*",
|
|
59
|
-
"vite": "^5.1.
|
|
59
|
+
"vite": "^5.1.6",
|
|
60
60
|
"vite-tsconfig-paths": "^4.3.1"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
};
|