@ttoss/landing-pages 0.6.0 → 0.6.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/esm/index.js +13 -4
- package/dist/index.js +16 -3
- package/package.json +7 -7
- package/src/Navbar/Navbar.tsx +12 -5
package/dist/esm/index.js
CHANGED
|
@@ -274,7 +274,7 @@ var Footer = ({ links, logo, socialMedia, reserved }) => {
|
|
|
274
274
|
|
|
275
275
|
// src/Navbar/Navbar.tsx
|
|
276
276
|
import { Collapse } from "react-collapse";
|
|
277
|
-
import { Flex as Flex4, Grid as Grid2, Icon as Icon3, Image as Image4, Link as Link2 } from "@ttoss/ui";
|
|
277
|
+
import { Flex as Flex4, Grid as Grid2, Icon as Icon3, Image as Image4, Link as Link2, Text as Text3 } from "@ttoss/ui";
|
|
278
278
|
import React3 from "react";
|
|
279
279
|
import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
280
280
|
var Navbar = ({ links, logo, cta, type = "1" }) => {
|
|
@@ -312,11 +312,20 @@ var Navbar = ({ links, logo, cta, type = "1" }) => {
|
|
|
312
312
|
},
|
|
313
313
|
children: [
|
|
314
314
|
/* @__PURE__ */ jsx4(
|
|
315
|
-
|
|
315
|
+
Text3,
|
|
316
316
|
{
|
|
317
317
|
sx: { cursor: "pointer", justifySelf: "start", fontSize: "3xl" },
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
children: /* @__PURE__ */ jsx4(
|
|
319
|
+
Icon3,
|
|
320
|
+
{
|
|
321
|
+
onClick: () => {
|
|
322
|
+
setIsMenuOpen((prev) => {
|
|
323
|
+
return !prev;
|
|
324
|
+
});
|
|
325
|
+
},
|
|
326
|
+
icon: isMenuOpen ? "ic:outline-menu-open" : "ic:outline-menu"
|
|
327
|
+
}
|
|
328
|
+
)
|
|
320
329
|
}
|
|
321
330
|
),
|
|
322
331
|
/* @__PURE__ */ jsx4(Image4, { src: logo, sx: { maxWidth: "112px" } }),
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
return to;
|
|
20
20
|
};
|
|
21
21
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
26
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
27
|
mod
|
|
24
28
|
));
|
|
@@ -346,11 +350,20 @@ var Navbar = ({ links, logo, cta, type = "1" }) => {
|
|
|
346
350
|
},
|
|
347
351
|
children: [
|
|
348
352
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
349
|
-
import_ui4.
|
|
353
|
+
import_ui4.Text,
|
|
350
354
|
{
|
|
351
355
|
sx: { cursor: "pointer", justifySelf: "start", fontSize: "3xl" },
|
|
352
|
-
|
|
353
|
-
|
|
356
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
357
|
+
import_ui4.Icon,
|
|
358
|
+
{
|
|
359
|
+
onClick: () => {
|
|
360
|
+
setIsMenuOpen((prev) => {
|
|
361
|
+
return !prev;
|
|
362
|
+
});
|
|
363
|
+
},
|
|
364
|
+
icon: isMenuOpen ? "ic:outline-menu-open" : "ic:outline-menu"
|
|
365
|
+
}
|
|
366
|
+
)
|
|
354
367
|
}
|
|
355
368
|
),
|
|
356
369
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui4.Image, { src: logo, sx: { maxWidth: "112px" } }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/landing-pages",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Package for creating landing pages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"react": ">=18.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@ttoss/config": "^1.28.
|
|
32
|
-
"@ttoss/test-utils": "^1.20.
|
|
33
|
-
"@ttoss/ui": "^1.30.
|
|
31
|
+
"@ttoss/config": "^1.28.1",
|
|
32
|
+
"@ttoss/test-utils": "^1.20.3",
|
|
33
|
+
"@ttoss/ui": "^1.30.2",
|
|
34
34
|
"@types/jest": "^29.4.0",
|
|
35
35
|
"@types/react-collapse": "^5.0.1",
|
|
36
|
-
"jest": "^29.4.
|
|
37
|
-
"tsup": "^6.
|
|
36
|
+
"jest": "^29.4.2",
|
|
37
|
+
"tsup": "^6.6.3"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"React",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d4df96176c1d3fce4ebf7842de5847a618a33d9e"
|
|
47
47
|
}
|
package/src/Navbar/Navbar.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Collapse } from 'react-collapse';
|
|
2
|
-
import { Flex, Grid, Icon, Image, Link } from '@ttoss/ui';
|
|
2
|
+
import { Flex, Grid, Icon, Image, Link, Text } from '@ttoss/ui';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
type NavbarLink = {
|
|
@@ -55,11 +55,18 @@ export const Navbar = ({ links, logo, cta, type = '1' }: NavbarProps) => {
|
|
|
55
55
|
gridTemplateColumns: '1fr 1fr 1fr',
|
|
56
56
|
}}
|
|
57
57
|
>
|
|
58
|
-
<
|
|
58
|
+
<Text
|
|
59
59
|
sx={{ cursor: 'pointer', justifySelf: 'start', fontSize: '3xl' }}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
>
|
|
61
|
+
<Icon
|
|
62
|
+
onClick={() => {
|
|
63
|
+
setIsMenuOpen((prev) => {
|
|
64
|
+
return !prev;
|
|
65
|
+
});
|
|
66
|
+
}}
|
|
67
|
+
icon={isMenuOpen ? 'ic:outline-menu-open' : 'ic:outline-menu'}
|
|
68
|
+
/>
|
|
69
|
+
</Text>
|
|
63
70
|
|
|
64
71
|
<Image src={logo} sx={{ maxWidth: '112px' }} />
|
|
65
72
|
|