@versini/ui-header 4.0.0 → 4.0.2
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/dist/components/Header/Header.js +38 -3
- package/dist/index.js +5 -41
- package/package.json +4 -4
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "clsx";
|
|
3
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import d from "clsx";
|
|
3
|
+
const h = "av-header", p = ({
|
|
4
|
+
children: c,
|
|
5
|
+
className: b,
|
|
6
|
+
raw: e = !1,
|
|
7
|
+
mode: a = "system",
|
|
8
|
+
noColors: r = !1,
|
|
9
|
+
sticky: f = !1,
|
|
10
|
+
noBorder: s = !1,
|
|
11
|
+
noMargin: l = !1,
|
|
12
|
+
noPadding: m = !1,
|
|
13
|
+
...i
|
|
14
|
+
}) => {
|
|
15
|
+
const u = d(
|
|
16
|
+
h,
|
|
17
|
+
{
|
|
18
|
+
"border-border-accent": a === "dark" && !e && !r && !s,
|
|
19
|
+
"border-border-medium": a === "light" && !e && !r && !s,
|
|
20
|
+
"border-border-accent dark:border-border-medium": a === "alt-system" && !e && !r && !s,
|
|
21
|
+
"border-border-medium dark:border-border-accent": a === "system" && !e && !r && !s,
|
|
22
|
+
"border-b-4": !e && !s,
|
|
23
|
+
"border-transparent": !e && r,
|
|
24
|
+
"bg-surface-dark": a === "dark" && !e && !r,
|
|
25
|
+
"bg-surface-light": a === "light" && !e && !r,
|
|
26
|
+
"bg-surface-dark dark:bg-surface-light": a === "alt-system" && !e && !r,
|
|
27
|
+
"bg-surface-light dark:bg-surface-dark": a === "system" && !e && !r,
|
|
28
|
+
"sticky top-0 z-50": f
|
|
29
|
+
},
|
|
30
|
+
b
|
|
31
|
+
), g = d({
|
|
32
|
+
"mt-0": !l,
|
|
33
|
+
"p-2": !m,
|
|
34
|
+
"flex flex-col w-full md:mx-auto md:max-w-4xl": !e
|
|
35
|
+
});
|
|
36
|
+
return /* @__PURE__ */ t("header", { className: u, ...i, children: /* @__PURE__ */ t("div", { className: g, children: c }) });
|
|
37
|
+
};
|
|
4
38
|
export {
|
|
39
|
+
h as HEADER_CLASSNAME,
|
|
5
40
|
p as Header
|
|
6
41
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,54 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import d from "clsx";
|
|
1
|
+
import { HEADER_CLASSNAME as o, Header as E } from "./components/Header/Header.js";
|
|
3
2
|
/*!
|
|
4
|
-
@versini/ui-header v4.0.
|
|
3
|
+
@versini/ui-header v4.0.2
|
|
5
4
|
© 2025 gizmette.com
|
|
6
5
|
*/
|
|
7
6
|
try {
|
|
8
7
|
window.__VERSINI_UI_HEADER__ || (window.__VERSINI_UI_HEADER__ = {
|
|
9
|
-
version: "4.0.
|
|
10
|
-
buildTime: "
|
|
8
|
+
version: "4.0.2",
|
|
9
|
+
buildTime: "04/12/2025 09:18 AM EDT",
|
|
11
10
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
11
|
license: "MIT"
|
|
13
12
|
});
|
|
14
13
|
} catch {
|
|
15
14
|
}
|
|
16
|
-
const g = "av-header", E = ({
|
|
17
|
-
children: t,
|
|
18
|
-
className: i,
|
|
19
|
-
raw: e = !1,
|
|
20
|
-
mode: a = "system",
|
|
21
|
-
noColors: r = !1,
|
|
22
|
-
sticky: b = !1,
|
|
23
|
-
noBorder: s = !1,
|
|
24
|
-
noMargin: l = !1,
|
|
25
|
-
noPadding: m = !1,
|
|
26
|
-
...f
|
|
27
|
-
}) => {
|
|
28
|
-
const u = d(
|
|
29
|
-
g,
|
|
30
|
-
{
|
|
31
|
-
"border-border-accent": a === "dark" && !e && !r && !s,
|
|
32
|
-
"border-border-medium": a === "light" && !e && !r && !s,
|
|
33
|
-
"border-border-accent dark:border-border-medium": a === "alt-system" && !e && !r && !s,
|
|
34
|
-
"border-border-medium dark:border-border-accent": a === "system" && !e && !r && !s,
|
|
35
|
-
"border-b-4": !e && !s,
|
|
36
|
-
"border-transparent": !e && r,
|
|
37
|
-
"bg-surface-dark": a === "dark" && !e && !r,
|
|
38
|
-
"bg-surface-light": a === "light" && !e && !r,
|
|
39
|
-
"bg-surface-dark dark:bg-surface-light": a === "alt-system" && !e && !r,
|
|
40
|
-
"bg-surface-light dark:bg-surface-dark": a === "system" && !e && !r,
|
|
41
|
-
"sticky top-0 z-50": b
|
|
42
|
-
},
|
|
43
|
-
i
|
|
44
|
-
), h = d({
|
|
45
|
-
"mt-0": !l,
|
|
46
|
-
"p-2": !m,
|
|
47
|
-
"flex flex-col w-full md:mx-auto md:max-w-4xl": !e
|
|
48
|
-
});
|
|
49
|
-
return /* @__PURE__ */ c("header", { className: u, ...f, children: /* @__PURE__ */ c("div", { className: h, children: t }) });
|
|
50
|
-
};
|
|
51
15
|
export {
|
|
52
|
-
|
|
16
|
+
o as HEADER_CLASSNAME,
|
|
53
17
|
E as Header
|
|
54
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-header",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@versini/ui-types": "5.0.
|
|
42
|
+
"@versini/ui-types": "5.0.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@tailwindcss/typography": "0.5.16",
|
|
46
46
|
"clsx": "2.1.1",
|
|
47
|
-
"tailwindcss": "4.
|
|
47
|
+
"tailwindcss": "4.1.3"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": [
|
|
50
50
|
"**/*.css"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "1bc09c4f0904bd8c01a22b1a32299fdd7598ae32"
|
|
53
53
|
}
|