@purr-react-tailwindcss/components.navbar 0.0.6 → 0.0.7
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/package.json +5 -3
- package/dist/_components.d.ts +0 -4
- package/dist/_types.d.ts +0 -12
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -74
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purr-react-tailwindcss/components.navbar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"typescript": "*",
|
|
25
25
|
"react": "*",
|
|
26
26
|
"clsx": "*",
|
|
27
|
-
"@purr-core/utils.definitions": "0.0.
|
|
27
|
+
"@purr-core/utils.definitions": "0.0.11"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@purr-react-tailwindcss/components.button": "0.0.
|
|
30
|
+
"@purr-react-tailwindcss/components.button": "0.0.7"
|
|
31
31
|
},
|
|
32
32
|
"author": "@DinhThienPhuc",
|
|
33
33
|
"license": "ISC",
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "vite build --watch",
|
|
38
38
|
"build": "tsc && vite build",
|
|
39
|
+
"build:vite": "tsc && vite build",
|
|
40
|
+
"build:tsup": "tsup",
|
|
39
41
|
"lint": "eslint . --ext ts,tsx --max-warnings 0"
|
|
40
42
|
}
|
|
41
43
|
}
|
package/dist/_components.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { INavbarProps } from './_types';
|
|
3
|
-
|
|
4
|
-
export declare const Navbar: ({ title, leftButton, rightButton, htmlAttributes, leftButtonHtmlAttributes, titleHtmlAttributes, rightButtonHtmlAttributes, }: INavbarProps) => React.JSX.Element;
|
package/dist/_types.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { IExtendable } from '@purr-core/utils.definitions';
|
|
3
|
-
|
|
4
|
-
export interface INavbarProps {
|
|
5
|
-
leftButton?: ReactNode;
|
|
6
|
-
rightButton?: ReactNode;
|
|
7
|
-
title?: ReactNode;
|
|
8
|
-
htmlAttributes?: HTMLAttributes<HTMLDivElement> & IExtendable;
|
|
9
|
-
leftButtonHtmlAttributes?: HTMLAttributes<HTMLSpanElement> & IExtendable;
|
|
10
|
-
titleHtmlAttributes?: HTMLAttributes<HTMLSpanElement> & IExtendable;
|
|
11
|
-
rightButtonHtmlAttributes?: HTMLAttributes<HTMLSpanElement> & IExtendable;
|
|
12
|
-
}
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("clsx"),f=({title:t,leftButton:l,rightButton:r,htmlAttributes:n,leftButtonHtmlAttributes:c,titleHtmlAttributes:a,rightButtonHtmlAttributes:i})=>e.jsxs("nav",{className:s("fixed","top-0","left-0","right-0","flex","justify-around","items-center","h-14","bg-gray-900"),...n,children:[e.jsx("span",{className:s("flex","flex-1","justify-center","items-center","h-full"),...c,children:l}),e.jsx("span",{className:s("flex","flex-1","justify-center","items-center","h-full"),...a,children:t}),e.jsx("span",{className:s("flex","flex-1","justify-center","items-center","h-full"),...i,children:r})]});exports.Navbar=f;
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import e from "clsx";
|
|
3
|
-
const h = ({
|
|
4
|
-
title: l,
|
|
5
|
-
leftButton: t,
|
|
6
|
-
rightButton: r,
|
|
7
|
-
htmlAttributes: f,
|
|
8
|
-
leftButtonHtmlAttributes: n,
|
|
9
|
-
titleHtmlAttributes: c,
|
|
10
|
-
rightButtonHtmlAttributes: a
|
|
11
|
-
}) => /* @__PURE__ */ i(
|
|
12
|
-
"nav",
|
|
13
|
-
{
|
|
14
|
-
className: e(
|
|
15
|
-
"fixed",
|
|
16
|
-
"top-0",
|
|
17
|
-
"left-0",
|
|
18
|
-
"right-0",
|
|
19
|
-
"flex",
|
|
20
|
-
"justify-around",
|
|
21
|
-
"items-center",
|
|
22
|
-
"h-14",
|
|
23
|
-
"bg-gray-900"
|
|
24
|
-
),
|
|
25
|
-
...f,
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ s(
|
|
28
|
-
"span",
|
|
29
|
-
{
|
|
30
|
-
className: e(
|
|
31
|
-
"flex",
|
|
32
|
-
"flex-1",
|
|
33
|
-
"justify-center",
|
|
34
|
-
"items-center",
|
|
35
|
-
"h-full"
|
|
36
|
-
),
|
|
37
|
-
...n,
|
|
38
|
-
children: t
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ s(
|
|
42
|
-
"span",
|
|
43
|
-
{
|
|
44
|
-
className: e(
|
|
45
|
-
"flex",
|
|
46
|
-
"flex-1",
|
|
47
|
-
"justify-center",
|
|
48
|
-
"items-center",
|
|
49
|
-
"h-full"
|
|
50
|
-
),
|
|
51
|
-
...c,
|
|
52
|
-
children: l
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
/* @__PURE__ */ s(
|
|
56
|
-
"span",
|
|
57
|
-
{
|
|
58
|
-
className: e(
|
|
59
|
-
"flex",
|
|
60
|
-
"flex-1",
|
|
61
|
-
"justify-center",
|
|
62
|
-
"items-center",
|
|
63
|
-
"h-full"
|
|
64
|
-
),
|
|
65
|
-
...a,
|
|
66
|
-
children: r
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
export {
|
|
73
|
-
h as Navbar
|
|
74
|
-
};
|