@luminescent/ui 0.12.10 → 0.13.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.
- package/lib/index.qwik.cjs +29 -9
- package/lib/index.qwik.mjs +29 -9
- package/lib-types/components/elements/Nav.d.ts +13 -0
- package/package.json +1 -1
package/lib/index.qwik.cjs
CHANGED
|
@@ -1113,10 +1113,23 @@ 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
|
+
red: "bg-red-700/50 border-red-600/50",
|
|
1118
|
+
orange: "bg-orange-700/50 border-orange-600/50",
|
|
1119
|
+
yellow: "bg-yellow-700/50 border-yellow-600/50",
|
|
1120
|
+
green: "bg-green-700/50 border-green-600/50",
|
|
1121
|
+
blue: "bg-blue-600/50 border-blue-500/50",
|
|
1122
|
+
purple: "bg-purple-600/50 border-purple-500/50",
|
|
1123
|
+
pink: "bg-pink-600/50 border-pink-500/50",
|
|
1124
|
+
gray: "bg-gray-700/50 border-gray-600/50",
|
|
1125
|
+
darkgray: "bg-gray-800/50 border-gray-700/50",
|
|
1126
|
+
transparent: "bg-transparent border-transparent"
|
|
1127
|
+
};
|
|
1116
1128
|
const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1117
1129
|
const props1 = qwik._restProps(props, [
|
|
1118
1130
|
"fixed",
|
|
1119
|
-
"floating"
|
|
1131
|
+
"floating",
|
|
1132
|
+
"color"
|
|
1120
1133
|
]);
|
|
1121
1134
|
const menu = qwik.useSignal(false);
|
|
1122
1135
|
return /* @__PURE__ */ qwik._jsxS("nav", {
|
|
@@ -1128,12 +1141,14 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
1128
1141
|
"top-full mt-2": menu.value,
|
|
1129
1142
|
"opacity-0 top-0 scale-95 pointer-events-none": !menu.value
|
|
1130
1143
|
}
|
|
1131
|
-
}, null, /* @__PURE__ */ qwik._jsxQ("div",
|
|
1144
|
+
}, null, /* @__PURE__ */ qwik._jsxQ("div", {
|
|
1132
1145
|
class: {
|
|
1133
|
-
|
|
1134
|
-
|
|
1146
|
+
[navColorClasses[props.color ?? "darkgray"]]: true,
|
|
1147
|
+
"flex flex-col gap-2 motion-safe:transition-all max-w-7xl w-full px-2 py-4 border rounded-lg": true,
|
|
1148
|
+
"before:backdrop-blur-lg": props.color !== "transparent",
|
|
1149
|
+
'before:absolute before:content-[""] before:w-full before:h-full before:drop-shadow-xl before:-z-10': true
|
|
1135
1150
|
}
|
|
1136
|
-
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
1151
|
+
}, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, {
|
|
1137
1152
|
name: "mobile",
|
|
1138
1153
|
[qwik._IMMUTABLE]: {
|
|
1139
1154
|
name: qwik._IMMUTABLE
|
|
@@ -1141,15 +1156,19 @@ const Nav = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((p
|
|
|
1141
1156
|
}, 3, "8r_0"), 1, null), 1, null),
|
|
1142
1157
|
/* @__PURE__ */ qwik._jsxQ("div", {
|
|
1143
1158
|
class: {
|
|
1144
|
-
|
|
1145
|
-
|
|
1159
|
+
[navColorClasses[props.color ?? "darkgray"]]: !props.floating,
|
|
1160
|
+
"border-b": !props.floating,
|
|
1161
|
+
"before:backdrop-blur-lg": props.color !== "transparent" && !props.floating,
|
|
1162
|
+
'before:absolute before:content-[""] before:w-full before:h-full before:drop-shadow-xl before:-z-10': !props.floating,
|
|
1146
1163
|
"relative mt-2 mx-2": props.floating
|
|
1147
1164
|
}
|
|
1148
1165
|
}, null, /* @__PURE__ */ qwik._jsxQ("div", {
|
|
1149
1166
|
class: {
|
|
1150
1167
|
"flex justify-evenly w-full mx-auto px-2 max-w-7xl": true,
|
|
1151
|
-
|
|
1152
|
-
|
|
1168
|
+
[navColorClasses[props.color ?? "darkgray"]]: props.floating,
|
|
1169
|
+
"border rounded-lg": props.floating,
|
|
1170
|
+
"before:backdrop-blur-lg": props.color !== "transparent" && props.floating,
|
|
1171
|
+
'before:absolute before:content-[""] before:w-full before:max-w-7xl before:h-full before:rounded-lg before:drop-shadow-xl before:-z-10': props.floating
|
|
1153
1172
|
}
|
|
1154
1173
|
}, null, [
|
|
1155
1174
|
/* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
@@ -1964,4 +1983,5 @@ exports._auto_buttonClass = buttonClass;
|
|
|
1964
1983
|
exports.blobColorClasses = blobColorClasses;
|
|
1965
1984
|
exports.buttonColorClasses = buttonColorClasses;
|
|
1966
1985
|
exports.cardColorClasses = cardColorClasses;
|
|
1986
|
+
exports.navColorClasses = navColorClasses;
|
|
1967
1987
|
exports.sizeClasses = sizeClasses;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1111,10 +1111,23 @@ 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
|
+
red: "bg-red-700/50 border-red-600/50",
|
|
1116
|
+
orange: "bg-orange-700/50 border-orange-600/50",
|
|
1117
|
+
yellow: "bg-yellow-700/50 border-yellow-600/50",
|
|
1118
|
+
green: "bg-green-700/50 border-green-600/50",
|
|
1119
|
+
blue: "bg-blue-600/50 border-blue-500/50",
|
|
1120
|
+
purple: "bg-purple-600/50 border-purple-500/50",
|
|
1121
|
+
pink: "bg-pink-600/50 border-pink-500/50",
|
|
1122
|
+
gray: "bg-gray-700/50 border-gray-600/50",
|
|
1123
|
+
darkgray: "bg-gray-800/50 border-gray-700/50",
|
|
1124
|
+
transparent: "bg-transparent border-transparent"
|
|
1125
|
+
};
|
|
1114
1126
|
const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1115
1127
|
const props1 = _restProps(props, [
|
|
1116
1128
|
"fixed",
|
|
1117
|
-
"floating"
|
|
1129
|
+
"floating",
|
|
1130
|
+
"color"
|
|
1118
1131
|
]);
|
|
1119
1132
|
const menu = useSignal(false);
|
|
1120
1133
|
return /* @__PURE__ */ _jsxS("nav", {
|
|
@@ -1126,12 +1139,14 @@ const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
|
1126
1139
|
"top-full mt-2": menu.value,
|
|
1127
1140
|
"opacity-0 top-0 scale-95 pointer-events-none": !menu.value
|
|
1128
1141
|
}
|
|
1129
|
-
}, null, /* @__PURE__ */ _jsxQ("div",
|
|
1142
|
+
}, null, /* @__PURE__ */ _jsxQ("div", {
|
|
1130
1143
|
class: {
|
|
1131
|
-
|
|
1132
|
-
|
|
1144
|
+
[navColorClasses[props.color ?? "darkgray"]]: true,
|
|
1145
|
+
"flex flex-col gap-2 motion-safe:transition-all max-w-7xl w-full px-2 py-4 border rounded-lg": true,
|
|
1146
|
+
"before:backdrop-blur-lg": props.color !== "transparent",
|
|
1147
|
+
'before:absolute before:content-[""] before:w-full before:h-full before:drop-shadow-xl before:-z-10': true
|
|
1133
1148
|
}
|
|
1134
|
-
}, /* @__PURE__ */ _jsxC(Slot, {
|
|
1149
|
+
}, null, /* @__PURE__ */ _jsxC(Slot, {
|
|
1135
1150
|
name: "mobile",
|
|
1136
1151
|
[_IMMUTABLE]: {
|
|
1137
1152
|
name: _IMMUTABLE
|
|
@@ -1139,15 +1154,19 @@ const Nav = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
|
1139
1154
|
}, 3, "8r_0"), 1, null), 1, null),
|
|
1140
1155
|
/* @__PURE__ */ _jsxQ("div", {
|
|
1141
1156
|
class: {
|
|
1142
|
-
|
|
1143
|
-
|
|
1157
|
+
[navColorClasses[props.color ?? "darkgray"]]: !props.floating,
|
|
1158
|
+
"border-b": !props.floating,
|
|
1159
|
+
"before:backdrop-blur-lg": props.color !== "transparent" && !props.floating,
|
|
1160
|
+
'before:absolute before:content-[""] before:w-full before:h-full before:drop-shadow-xl before:-z-10': !props.floating,
|
|
1144
1161
|
"relative mt-2 mx-2": props.floating
|
|
1145
1162
|
}
|
|
1146
1163
|
}, null, /* @__PURE__ */ _jsxQ("div", {
|
|
1147
1164
|
class: {
|
|
1148
1165
|
"flex justify-evenly w-full mx-auto px-2 max-w-7xl": true,
|
|
1149
|
-
|
|
1150
|
-
|
|
1166
|
+
[navColorClasses[props.color ?? "darkgray"]]: props.floating,
|
|
1167
|
+
"border rounded-lg": props.floating,
|
|
1168
|
+
"before:backdrop-blur-lg": props.color !== "transparent" && props.floating,
|
|
1169
|
+
'before:absolute before:content-[""] before:w-full before:max-w-7xl before:h-full before:rounded-lg before:drop-shadow-xl before:-z-10': props.floating
|
|
1151
1170
|
}
|
|
1152
1171
|
}, null, [
|
|
1153
1172
|
/* @__PURE__ */ _jsxQ("div", null, {
|
|
@@ -1963,5 +1982,6 @@ export {
|
|
|
1963
1982
|
blobColorClasses,
|
|
1964
1983
|
buttonColorClasses,
|
|
1965
1984
|
cardColorClasses,
|
|
1985
|
+
navColorClasses,
|
|
1966
1986
|
sizeClasses
|
|
1967
1987
|
};
|
|
@@ -5,6 +5,19 @@ 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
|
+
red: string;
|
|
12
|
+
orange: string;
|
|
13
|
+
yellow: string;
|
|
14
|
+
green: string;
|
|
15
|
+
blue: string;
|
|
16
|
+
purple: string;
|
|
17
|
+
pink: string;
|
|
18
|
+
gray: string;
|
|
19
|
+
darkgray: string;
|
|
20
|
+
transparent: string;
|
|
21
|
+
};
|
|
9
22
|
export declare const Nav: import("@builder.io/qwik").Component<NavContainerProps>;
|
|
10
23
|
export {};
|