@ttoss/landing-pages 0.5.0 → 0.6.1
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 +12 -3
- package/package.json +8 -8
- 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
|
@@ -346,11 +346,20 @@ var Navbar = ({ links, logo, cta, type = "1" }) => {
|
|
|
346
346
|
},
|
|
347
347
|
children: [
|
|
348
348
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
349
|
-
import_ui4.
|
|
349
|
+
import_ui4.Text,
|
|
350
350
|
{
|
|
351
351
|
sx: { cursor: "pointer", justifySelf: "start", fontSize: "3xl" },
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
353
|
+
import_ui4.Icon,
|
|
354
|
+
{
|
|
355
|
+
onClick: () => {
|
|
356
|
+
setIsMenuOpen((prev) => {
|
|
357
|
+
return !prev;
|
|
358
|
+
});
|
|
359
|
+
},
|
|
360
|
+
icon: isMenuOpen ? "ic:outline-menu-open" : "ic:outline-menu"
|
|
361
|
+
}
|
|
362
|
+
)
|
|
354
363
|
}
|
|
355
364
|
),
|
|
356
365
|
/* @__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.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Package for creating landing pages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"typings": "dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@iconify/react": "^4.0
|
|
23
|
+
"@iconify/react": "^4.1.0",
|
|
24
24
|
"react-collapse": "^5.1.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"react": ">=18.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@ttoss/config": "^1.
|
|
32
|
-
"@ttoss/test-utils": "^1.20.
|
|
33
|
-
"@ttoss/ui": "^1.
|
|
34
|
-
"@types/jest": "^29.
|
|
31
|
+
"@ttoss/config": "^1.28.0",
|
|
32
|
+
"@ttoss/test-utils": "^1.20.2",
|
|
33
|
+
"@ttoss/ui": "^1.30.1",
|
|
34
|
+
"@types/jest": "^29.4.0",
|
|
35
35
|
"@types/react-collapse": "^5.0.1",
|
|
36
|
-
"jest": "^29.
|
|
36
|
+
"jest": "^29.4.1",
|
|
37
37
|
"tsup": "^6.5.0"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a0c650bebb4029e9757d2f4a606ba7f25558f7a2"
|
|
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
|
|