@purr-react-tailwindcss/components.navbar 0.0.7 → 0.0.8
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.cjs +1 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var e=require('clsx'),r=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var e__default=/*#__PURE__*/_interopDefault(e);var r__default=/*#__PURE__*/_interopDefault(r);var i=({title:s,leftButton:t,rightButton:a,htmlAttributes:f,leftButtonHtmlAttributes:l,titleHtmlAttributes:n,rightButtonHtmlAttributes:m})=>r__default.default.createElement("nav",{className:e__default.default("fixed","top-0","left-0","right-0","flex","justify-around","items-center","h-14","bg-gray-900"),...f},r__default.default.createElement("span",{className:e__default.default("flex","flex-1","justify-center","items-center","h-full"),...l},t),r__default.default.createElement("span",{className:e__default.default("flex","flex-1","justify-center","items-center","h-full"),...n},s),r__default.default.createElement("span",{className:e__default.default("flex","flex-1","justify-center","items-center","h-full"),...m},a));exports.Navbar=i;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
import { IExtendable } from '@purr-core/utils.definitions';
|
|
3
|
+
|
|
4
|
+
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
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const Navbar: ({ title, leftButton, rightButton, htmlAttributes, leftButtonHtmlAttributes, titleHtmlAttributes, rightButtonHtmlAttributes, }: INavbarProps) => React.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { type INavbarProps, Navbar };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
import { IExtendable } from '@purr-core/utils.definitions';
|
|
3
|
+
|
|
4
|
+
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
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const Navbar: ({ title, leftButton, rightButton, htmlAttributes, leftButtonHtmlAttributes, titleHtmlAttributes, rightButtonHtmlAttributes, }: INavbarProps) => React.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { type INavbarProps, Navbar };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from'clsx';import r from'react';var i=({title:s,leftButton:t,rightButton:a,htmlAttributes:f,leftButtonHtmlAttributes:l,titleHtmlAttributes:n,rightButtonHtmlAttributes:m})=>r.createElement("nav",{className:e("fixed","top-0","left-0","right-0","flex","justify-around","items-center","h-14","bg-gray-900"),...f},r.createElement("span",{className:e("flex","flex-1","justify-center","items-center","h-full"),...l},t),r.createElement("span",{className:e("flex","flex-1","justify-center","items-center","h-full"),...n},s),r.createElement("span",{className:e("flex","flex-1","justify-center","items-center","h-full"),...m},a));export{i as Navbar};
|
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.8",
|
|
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.12"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@purr-react-tailwindcss/components.button": "0.0.
|
|
30
|
+
"@purr-react-tailwindcss/components.button": "0.0.8"
|
|
31
31
|
},
|
|
32
32
|
"author": "@DinhThienPhuc",
|
|
33
33
|
"license": "ISC",
|