@versini/ui-footer 1.1.0 → 1.2.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/dist/index.d.ts +2 -2
- package/dist/index.js +40 -26
- package/package.json +6 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { SpacingTypes } from '@versini/ui-spacing-types';
|
|
3
3
|
|
|
4
4
|
declare const FOOTER_CLASSNAME = "av-footer";
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ type FooterProps = {
|
|
|
30
30
|
* The content to render in the second row.
|
|
31
31
|
*/
|
|
32
32
|
row2?: React.ReactNode;
|
|
33
|
-
} &
|
|
33
|
+
} & SpacingTypes.Props;
|
|
34
34
|
|
|
35
35
|
declare const Footer: ({ className, mode, row1, row2, noMargins, spacing, raw, }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
36
36
|
|
package/dist/index.js
CHANGED
|
@@ -1,50 +1,64 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import _ from "clsx";
|
|
3
3
|
/*!
|
|
4
|
-
@versini/ui-footer v1.
|
|
4
|
+
@versini/ui-footer v1.2.0
|
|
5
5
|
© 2024 gizmette.com
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
8
|
window.__VERSINI_UI_FOOTER__ || (window.__VERSINI_UI_FOOTER__ = {
|
|
9
|
-
version: "1.
|
|
10
|
-
buildTime: "12/
|
|
9
|
+
version: "1.2.0",
|
|
10
|
+
buildTime: "12/24/2024 06:47 PM EST",
|
|
11
11
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
12
|
license: "MIT"
|
|
13
13
|
});
|
|
14
14
|
} catch {
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const d = "av-footer";
|
|
17
|
+
/*!
|
|
18
|
+
@versini/ui-spacing v1.0.0
|
|
19
|
+
© 2024 gizmette.com
|
|
20
|
+
*/
|
|
21
|
+
try {
|
|
22
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
23
|
+
version: "1.0.0",
|
|
24
|
+
buildTime: "12/24/2024 06:47 PM EST",
|
|
25
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
26
|
+
license: "MIT"
|
|
27
|
+
});
|
|
28
|
+
} catch {
|
|
29
|
+
}
|
|
30
|
+
const p = (t) => {
|
|
17
31
|
let o = "";
|
|
18
|
-
if (typeof
|
|
19
|
-
o = "m-" +
|
|
32
|
+
if (typeof t == "number" || typeof t == "string")
|
|
33
|
+
o = "m-" + t;
|
|
20
34
|
else {
|
|
21
|
-
const
|
|
22
|
-
(
|
|
35
|
+
const i = [];
|
|
36
|
+
(t == null ? void 0 : t.t) !== void 0 && i.push(`mt-${t.t}`), (t == null ? void 0 : t.r) !== void 0 && i.push(`mr-${t.r}`), (t == null ? void 0 : t.b) !== void 0 && i.push(`mb-${t.b}`), (t == null ? void 0 : t.l) !== void 0 && i.push(`ml-${t.l}`), o = i.join(" ");
|
|
23
37
|
}
|
|
24
38
|
return o;
|
|
25
|
-
},
|
|
26
|
-
className:
|
|
39
|
+
}, x = ({
|
|
40
|
+
className: t,
|
|
27
41
|
mode: o = "system",
|
|
28
|
-
row1:
|
|
29
|
-
row2:
|
|
42
|
+
row1: i,
|
|
43
|
+
row2: e,
|
|
30
44
|
noMargins: r = !1,
|
|
31
45
|
spacing: n,
|
|
32
|
-
raw:
|
|
46
|
+
raw: s = !1
|
|
33
47
|
}) => {
|
|
34
|
-
const c = d
|
|
35
|
-
"text-copy-dark": !
|
|
36
|
-
"text-copy-lighter": !
|
|
37
|
-
"text-copy-dark dark:text-copy-lighter": !
|
|
38
|
-
"text-copy-lighter dark:text-copy-dark": !
|
|
39
|
-
"mb-[100px]": !r && !
|
|
40
|
-
"mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": !
|
|
48
|
+
const c = _(d, t, p(n), {
|
|
49
|
+
"text-copy-dark": !s && o === "dark",
|
|
50
|
+
"text-copy-lighter": !s && o === "light",
|
|
51
|
+
"text-copy-dark dark:text-copy-lighter": !s && o === "system",
|
|
52
|
+
"text-copy-lighter dark:text-copy-dark": !s && o === "alt-system",
|
|
53
|
+
"mb-[100px]": !r && !s,
|
|
54
|
+
"mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": !s
|
|
41
55
|
});
|
|
42
56
|
return /* @__PURE__ */ m("footer", { className: c, children: [
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
i && /* @__PURE__ */ l("div", { children: i }),
|
|
58
|
+
e && /* @__PURE__ */ l("div", { children: e })
|
|
45
59
|
] });
|
|
46
60
|
};
|
|
47
61
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
62
|
+
d as FOOTER_CLASSNAME,
|
|
63
|
+
x as Footer
|
|
50
64
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-footer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,11 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@tailwindcss/typography": "0.5.15",
|
|
42
|
-
"@versini/ui-private": "1.
|
|
43
|
-
"
|
|
42
|
+
"@versini/ui-private": "1.6.0",
|
|
43
|
+
"@versini/ui-spacing": "1.0.0",
|
|
44
|
+
"@versini/ui-spacing-types": "1.0.0",
|
|
45
|
+
"tailwindcss": "3.4.17"
|
|
44
46
|
},
|
|
45
47
|
"sideEffects": [
|
|
46
48
|
"**/*.css"
|
|
47
49
|
],
|
|
48
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "cb948414a675c01f3328ed6470ccf4b58f73534f"
|
|
49
51
|
}
|