@sikka/hawa 0.26.27 → 0.26.29
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/tooltip/index.js +1 -0
- package/dist/tooltip/index.js.map +1 -0
- package/dist/tooltip/index.mjs +1 -0
- package/dist/tooltip/index.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/Chip-H5BnuDdx.d.ts +0 -36
- package/dist/Chip-hr2gRBJ-.d.mts +0 -36
- package/dist/DropdownMenu-EUL-D3I3.d.mts +0 -95
- package/dist/DropdownMenu-SPisqCzV.d.ts +0 -95
- package/dist/Radio-K1WGpnGA.d.ts +0 -75
- package/dist/Radio-hsrLKNxE.d.mts +0 -75
- package/dist/Toast-VBd4UvlM.d.mts +0 -26
- package/dist/Toast-pOd4uGZz.d.ts +0 -26
- package/dist/accordion/index.d.mts +0 -51
- package/dist/accordion/index.d.ts +0 -51
- package/dist/accordion/index.js +0 -271
- package/dist/accordion/index.mjs +0 -227
- package/dist/alert/index.d.mts +0 -29
- package/dist/alert/index.d.ts +0 -29
- package/dist/alert/index.js +0 -442
- package/dist/alert/index.mjs +0 -402
- package/dist/appLayout/index.d.mts +0 -126
- package/dist/appLayout/index.d.ts +0 -126
- package/dist/appLayout/index.js +0 -1326
- package/dist/appLayout/index.mjs +0 -1286
- package/dist/appMenubar/index.d.mts +0 -33
- package/dist/appMenubar/index.d.ts +0 -33
- package/dist/appMenubar/index.js +0 -281
- package/dist/appMenubar/index.mjs +0 -224
- package/dist/appStores/index.d.mts +0 -8
- package/dist/appStores/index.d.ts +0 -8
- package/dist/appStores/index.js +0 -75
- package/dist/appStores/index.mjs +0 -38
- package/dist/appTabs/index.d.mts +0 -18
- package/dist/appTabs/index.d.ts +0 -18
- package/dist/appTabs/index.js +0 -92
- package/dist/appTabs/index.mjs +0 -50
- package/dist/appTopbar/index.d.mts +0 -44
- package/dist/appTopbar/index.d.ts +0 -44
- package/dist/appTopbar/index.js +0 -483
- package/dist/appTopbar/index.mjs +0 -441
- package/dist/avatar/index.d.mts +0 -16
- package/dist/avatar/index.d.ts +0 -16
- package/dist/avatar/index.js +0 -162
- package/dist/avatar/index.mjs +0 -122
- package/dist/backToTop/index.d.mts +0 -15
- package/dist/backToTop/index.d.ts +0 -15
- package/dist/backToTop/index.js +0 -398
- package/dist/backToTop/index.mjs +0 -358
- package/dist/badge/index.d.mts +0 -13
- package/dist/badge/index.d.ts +0 -13
- package/dist/badge/index.js +0 -127
- package/dist/badge/index.mjs +0 -84
- package/dist/blocks/auth/index.d.mts +0 -202
- package/dist/blocks/auth/index.d.ts +0 -202
- package/dist/blocks/auth/index.js +0 -4197
- package/dist/blocks/auth/index.mjs +0 -3389
- package/dist/blocks/feedback/index.d.mts +0 -74
- package/dist/blocks/feedback/index.d.ts +0 -74
- package/dist/blocks/feedback/index.js +0 -1544
- package/dist/blocks/feedback/index.mjs +0 -558
- package/dist/blocks/index.d.mts +0 -480
- package/dist/blocks/index.d.ts +0 -480
- package/dist/blocks/index.js +0 -6700
- package/dist/blocks/index.mjs +0 -2550
- package/dist/blocks/misc/index.d.mts +0 -90
- package/dist/blocks/misc/index.d.ts +0 -90
- package/dist/blocks/misc/index.js +0 -1186
- package/dist/blocks/misc/index.mjs +0 -387
- package/dist/blocks/pricing/index.d.mts +0 -93
- package/dist/blocks/pricing/index.d.ts +0 -93
- package/dist/blocks/pricing/index.js +0 -1528
- package/dist/blocks/pricing/index.mjs +0 -677
- package/dist/breadcrumb/index.d.mts +0 -14
- package/dist/breadcrumb/index.d.ts +0 -14
- package/dist/breadcrumb/index.js +0 -63
- package/dist/breadcrumb/index.mjs +0 -26
- package/dist/button/index.d.mts +0 -16
- package/dist/button/index.d.ts +0 -16
- package/dist/button/index.js +0 -301
- package/dist/button/index.mjs +0 -260
- package/dist/card/index.d.mts +0 -17
- package/dist/card/index.d.ts +0 -17
- package/dist/card/index.js +0 -139
- package/dist/card/index.mjs +0 -92
- package/dist/carousel/index.d.mts +0 -15
- package/dist/carousel/index.d.ts +0 -15
- package/dist/carousel/index.js +0 -193
- package/dist/carousel/index.mjs +0 -151
- package/dist/checkbox/index.d.mts +0 -20
- package/dist/checkbox/index.d.ts +0 -20
- package/dist/checkbox/index.js +0 -184
- package/dist/checkbox/index.mjs +0 -142
- package/dist/chip/index.d.mts +0 -36
- package/dist/chip/index.d.ts +0 -36
- package/dist/chip/index.js +0 -129
- package/dist/chip/index.mjs +0 -87
- package/dist/chunk-2R7F2GL7.mjs +0 -82
- package/dist/chunk-4EGKGSGY.mjs +0 -129
- package/dist/chunk-5YXZXYLH.mjs +0 -67
- package/dist/chunk-65TG6EVD.mjs +0 -264
- package/dist/chunk-D22AALLE.mjs +0 -22
- package/dist/chunk-D36MPDGE.mjs +0 -476
- package/dist/chunk-F3DQJHTG.mjs +0 -3113
- package/dist/chunk-FQ6WVEHW.mjs +0 -151
- package/dist/chunk-GVJYACGA.mjs +0 -189
- package/dist/chunk-JNUGOUYJ.mjs +0 -154
- package/dist/chunk-KMCIHW76.mjs +0 -150
- package/dist/chunk-MQUAGP7K.mjs +0 -1098
- package/dist/chunk-NMS5LCSQ.mjs +0 -195
- package/dist/chunk-OY66MBXP.mjs +0 -163
- package/dist/chunk-R4HAAT6R.mjs +0 -131
- package/dist/chunk-SJ2Z6ZOG.mjs +0 -442
- package/dist/chunk-TGZRVRLP.mjs +0 -107
- package/dist/chunk-TWNGV3RE.mjs +0 -10
- package/dist/chunk-WUHNPHD5.mjs +0 -0
- package/dist/chunk-ZFXKCRJC.mjs +0 -11
- package/dist/chunk-ZS3FB3PO.mjs +0 -12
- package/dist/codeBlock/index.d.mts +0 -24
- package/dist/codeBlock/index.d.ts +0 -24
- package/dist/codeBlock/index.js +0 -517
- package/dist/codeBlock/index.mjs +0 -432
- package/dist/collapsible/index.d.mts +0 -8
- package/dist/collapsible/index.d.ts +0 -8
- package/dist/collapsible/index.js +0 -49
- package/dist/collapsible/index.mjs +0 -12
- package/dist/colorPicker/index.d.mts +0 -34
- package/dist/colorPicker/index.d.ts +0 -34
- package/dist/colorPicker/index.js +0 -276
- package/dist/colorPicker/index.mjs +0 -170
- package/dist/combobox/index.d.mts +0 -41
- package/dist/combobox/index.d.ts +0 -41
- package/dist/combobox/index.js +0 -749
- package/dist/combobox/index.mjs +0 -295
- package/dist/command/index.d.mts +0 -48
- package/dist/command/index.d.ts +0 -48
- package/dist/command/index.js +0 -485
- package/dist/command/index.mjs +0 -22
- package/dist/commonTypes-2IGtJ5cq.d.mts +0 -3
- package/dist/commonTypes-2IGtJ5cq.d.ts +0 -3
- package/dist/commonTypes-2k6FnHw5.d.mts +0 -4
- package/dist/commonTypes-2k6FnHw5.d.ts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-CKtkuNFH.d.mts +0 -11
- package/dist/commonTypes-CKtkuNFH.d.ts +0 -11
- package/dist/commonTypes-GhKAraJw.d.mts +0 -4
- package/dist/commonTypes-GhKAraJw.d.ts +0 -4
- package/dist/commonTypes-MxCJyrHv.d.mts +0 -8
- package/dist/commonTypes-MxCJyrHv.d.ts +0 -8
- package/dist/commonTypes-PBumfOBg.d.mts +0 -3
- package/dist/commonTypes-PBumfOBg.d.ts +0 -3
- package/dist/commonTypes-WPhcN3Vr.d.mts +0 -5
- package/dist/commonTypes-WPhcN3Vr.d.ts +0 -5
- package/dist/commonTypes-_11epZYh.d.mts +0 -4
- package/dist/commonTypes-_11epZYh.d.ts +0 -4
- package/dist/commonTypes-ko_NGEoT.d.mts +0 -3
- package/dist/commonTypes-ko_NGEoT.d.ts +0 -3
- package/dist/copyrights/index.d.mts +0 -17
- package/dist/copyrights/index.d.ts +0 -17
- package/dist/copyrights/index.js +0 -45
- package/dist/copyrights/index.mjs +0 -8
- package/dist/count/index.d.mts +0 -11
- package/dist/count/index.d.ts +0 -11
- package/dist/count/index.js +0 -45
- package/dist/count/index.mjs +0 -8
- package/dist/dataTable/index.d.mts +0 -41
- package/dist/dataTable/index.d.ts +0 -41
- package/dist/dataTable/index.js +0 -1313
- package/dist/dataTable/index.mjs +0 -1281
- package/dist/destroyableCard/index.d.mts +0 -12
- package/dist/destroyableCard/index.d.ts +0 -12
- package/dist/destroyableCard/index.js +0 -203
- package/dist/destroyableCard/index.mjs +0 -163
- package/dist/dialog/index.d.mts +0 -57
- package/dist/dialog/index.d.ts +0 -57
- package/dist/dialog/index.js +0 -368
- package/dist/dialog/index.mjs +0 -314
- package/dist/docsLayout/index.d.mts +0 -37
- package/dist/docsLayout/index.d.ts +0 -37
- package/dist/docsLayout/index.js +0 -927
- package/dist/docsLayout/index.mjs +0 -887
- package/dist/docsSidebar/index.d.mts +0 -11
- package/dist/docsSidebar/index.d.ts +0 -11
- package/dist/docsSidebar/index.js +0 -111
- package/dist/docsSidebar/index.mjs +0 -69
- package/dist/dropdownMenu/index.d.mts +0 -96
- package/dist/dropdownMenu/index.d.ts +0 -96
- package/dist/dropdownMenu/index.js +0 -420
- package/dist/dropdownMenu/index.mjs +0 -362
- package/dist/elements/index.d.mts +0 -788
- package/dist/elements/index.d.ts +0 -788
- package/dist/elements/index.js +0 -7832
- package/dist/elements/index.mjs +0 -3415
- package/dist/fileDropzone/index.d.mts +0 -37
- package/dist/fileDropzone/index.d.ts +0 -37
- package/dist/fileDropzone/index.js +0 -665
- package/dist/fileDropzone/index.mjs +0 -625
- package/dist/fileUploader/index.d.mts +0 -5
- package/dist/fileUploader/index.d.ts +0 -5
- package/dist/fileUploader/index.js +0 -62
- package/dist/fileUploader/index.mjs +0 -25
- package/dist/glow/index.d.mts +0 -16
- package/dist/glow/index.d.ts +0 -16
- package/dist/glow/index.js +0 -155
- package/dist/glow/index.mjs +0 -117
- package/dist/hooks/index.d.mts +0 -108
- package/dist/hooks/index.d.ts +0 -108
- package/dist/hooks/index.js +0 -459
- package/dist/hooks/index.mjs +0 -255
- package/dist/index.d.mts +0 -1932
- package/dist/index.d.ts +0 -1932
- package/dist/index.js +0 -12123
- package/dist/index.mjs +0 -11908
- package/dist/input/index.d.mts +0 -43
- package/dist/input/index.d.ts +0 -43
- package/dist/input/index.js +0 -293
- package/dist/input/index.mjs +0 -158
- package/dist/interfaceSettings/index.d.mts +0 -18
- package/dist/interfaceSettings/index.d.ts +0 -18
- package/dist/interfaceSettings/index.js +0 -420
- package/dist/interfaceSettings/index.mjs +0 -283
- package/dist/label/index.d.mts +0 -13
- package/dist/label/index.d.ts +0 -13
- package/dist/label/index.js +0 -142
- package/dist/label/index.mjs +0 -102
- package/dist/layout/index.d.mts +0 -256
- package/dist/layout/index.d.ts +0 -256
- package/dist/layout/index.js +0 -2627
- package/dist/layout/index.mjs +0 -1393
- package/dist/loading/index.d.mts +0 -15
- package/dist/loading/index.d.ts +0 -15
- package/dist/loading/index.js +0 -225
- package/dist/loading/index.mjs +0 -183
- package/dist/logos/index.d.mts +0 -27
- package/dist/logos/index.d.ts +0 -27
- package/dist/logos/index.js +0 -244
- package/dist/logos/index.mjs +0 -207
- package/dist/navbar/index.d.mts +0 -17
- package/dist/navbar/index.d.ts +0 -17
- package/dist/navbar/index.js +0 -166
- package/dist/navbar/index.mjs +0 -126
- package/dist/navigationMenu/index.d.mts +0 -39
- package/dist/navigationMenu/index.d.ts +0 -39
- package/dist/navigationMenu/index.js +0 -221
- package/dist/navigationMenu/index.mjs +0 -169
- package/dist/pagination/index.d.mts +0 -11
- package/dist/pagination/index.d.ts +0 -11
- package/dist/pagination/index.js +0 -160
- package/dist/pagination/index.mjs +0 -118
- package/dist/passwordInput/index.d.mts +0 -13
- package/dist/passwordInput/index.d.ts +0 -13
- package/dist/passwordInput/index.js +0 -577
- package/dist/passwordInput/index.mjs +0 -534
- package/dist/phoneInput/index.d.mts +0 -23
- package/dist/phoneInput/index.d.ts +0 -23
- package/dist/phoneInput/index.js +0 -2085
- package/dist/phoneInput/index.mjs +0 -2045
- package/dist/pinInput/index.d.mts +0 -20
- package/dist/pinInput/index.d.ts +0 -20
- package/dist/pinInput/index.js +0 -131
- package/dist/pinInput/index.mjs +0 -89
- package/dist/popover/index.d.mts +0 -23
- package/dist/popover/index.d.ts +0 -23
- package/dist/popover/index.js +0 -112
- package/dist/popover/index.mjs +0 -68
- package/dist/progress/index.d.mts +0 -6
- package/dist/progress/index.d.ts +0 -6
- package/dist/progress/index.js +0 -71
- package/dist/progress/index.mjs +0 -29
- package/dist/progressCircle/index.d.mts +0 -16
- package/dist/progressCircle/index.d.ts +0 -16
- package/dist/progressCircle/index.js +0 -159
- package/dist/progressCircle/index.mjs +0 -117
- package/dist/radio/index.d.mts +0 -39
- package/dist/radio/index.d.ts +0 -39
- package/dist/radio/index.js +0 -331
- package/dist/radio/index.mjs +0 -291
- package/dist/scrollArea/index.d.mts +0 -10
- package/dist/scrollArea/index.d.ts +0 -10
- package/dist/scrollArea/index.js +0 -90
- package/dist/scrollArea/index.mjs +0 -47
- package/dist/scrollIndicator/index.d.mts +0 -9
- package/dist/scrollIndicator/index.d.ts +0 -9
- package/dist/scrollIndicator/index.js +0 -80
- package/dist/scrollIndicator/index.mjs +0 -43
- package/dist/select/index.d.mts +0 -50
- package/dist/select/index.d.ts +0 -50
- package/dist/select/index.js +0 -325
- package/dist/select/index.mjs +0 -285
- package/dist/separator/index.d.mts +0 -10
- package/dist/separator/index.d.ts +0 -10
- package/dist/separator/index.js +0 -66
- package/dist/separator/index.mjs +0 -24
- package/dist/sheet/index.d.mts +0 -30
- package/dist/sheet/index.d.ts +0 -30
- package/dist/sheet/index.js +0 -201
- package/dist/sheet/index.mjs +0 -150
- package/dist/sidebar/index.d.mts +0 -48
- package/dist/sidebar/index.d.ts +0 -48
- package/dist/sidebar/index.js +0 -341
- package/dist/sidebar/index.mjs +0 -298
- package/dist/signature/index.d.mts +0 -27
- package/dist/signature/index.d.ts +0 -27
- package/dist/signature/index.js +0 -261
- package/dist/signature/index.mjs +0 -219
- package/dist/simpleTable/index.d.mts +0 -30
- package/dist/simpleTable/index.d.ts +0 -30
- package/dist/simpleTable/index.js +0 -253
- package/dist/simpleTable/index.mjs +0 -217
- package/dist/skeleton/index.d.mts +0 -10
- package/dist/skeleton/index.d.ts +0 -10
- package/dist/skeleton/index.js +0 -75
- package/dist/skeleton/index.mjs +0 -33
- package/dist/slider/index.d.mts +0 -6
- package/dist/slider/index.d.ts +0 -6
- package/dist/slider/index.js +0 -66
- package/dist/slider/index.mjs +0 -24
- package/dist/sortButton/index.d.mts +0 -10
- package/dist/sortButton/index.d.ts +0 -10
- package/dist/sortButton/index.js +0 -336
- package/dist/sortButton/index.mjs +0 -42
- package/dist/splitButton/index.d.mts +0 -52
- package/dist/splitButton/index.d.ts +0 -52
- package/dist/splitButton/index.js +0 -692
- package/dist/splitButton/index.mjs +0 -400
- package/dist/stats/index.d.mts +0 -19
- package/dist/stats/index.d.ts +0 -19
- package/dist/stats/index.js +0 -191
- package/dist/stats/index.mjs +0 -154
- package/dist/stopPropagationWrapper/index.d.mts +0 -5
- package/dist/stopPropagationWrapper/index.d.ts +0 -5
- package/dist/stopPropagationWrapper/index.js +0 -48
- package/dist/stopPropagationWrapper/index.mjs +0 -11
- package/dist/switch/index.d.mts +0 -12
- package/dist/switch/index.d.ts +0 -12
- package/dist/switch/index.js +0 -125
- package/dist/switch/index.mjs +0 -83
- package/dist/table/index.d.mts +0 -21
- package/dist/table/index.d.ts +0 -21
- package/dist/table/index.js +0 -172
- package/dist/table/index.mjs +0 -123
- package/dist/tabs/index.d.mts +0 -33
- package/dist/tabs/index.d.ts +0 -33
- package/dist/tabs/index.js +0 -200
- package/dist/tabs/index.mjs +0 -157
- package/dist/textTypes-559CaoOV.d.mts +0 -88
- package/dist/textTypes-559CaoOV.d.ts +0 -88
- package/dist/textarea/index.d.mts +0 -27
- package/dist/textarea/index.d.ts +0 -27
- package/dist/textarea/index.js +0 -229
- package/dist/textarea/index.mjs +0 -189
- package/dist/toast/index.d.mts +0 -26
- package/dist/toast/index.d.ts +0 -26
- package/dist/toast/index.js +0 -197
- package/dist/toast/index.mjs +0 -19
- package/dist/toaster/index.d.mts +0 -9
- package/dist/toaster/index.d.ts +0 -9
- package/dist/toaster/index.js +0 -350
- package/dist/toaster/index.mjs +0 -181
- package/dist/types/index.d.mts +0 -115
- package/dist/types/index.d.ts +0 -115
- package/dist/types/index.js +0 -18
- package/dist/types/index.mjs +0 -0
package/dist/navbar/index.js
DELETED
@@ -1,166 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
|
30
|
-
// layout/navbar/index.ts
|
31
|
-
var navbar_exports = {};
|
32
|
-
__export(navbar_exports, {
|
33
|
-
Navbar: () => Navbar
|
34
|
-
});
|
35
|
-
module.exports = __toCommonJS(navbar_exports);
|
36
|
-
|
37
|
-
// layout/navbar/Navbar.tsx
|
38
|
-
var import_react = __toESM(require("react"));
|
39
|
-
|
40
|
-
// elements/collapsible/Collapsible.tsx
|
41
|
-
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
42
|
-
var Collapsible = CollapsiblePrimitive.Root;
|
43
|
-
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
44
|
-
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
45
|
-
|
46
|
-
// util/index.ts
|
47
|
-
var import_clsx = require("clsx");
|
48
|
-
var import_tailwind_merge = require("tailwind-merge");
|
49
|
-
function cn(...inputs) {
|
50
|
-
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
51
|
-
}
|
52
|
-
|
53
|
-
// layout/navbar/Navbar.tsx
|
54
|
-
var Navbar = ({
|
55
|
-
backgroundColor,
|
56
|
-
logo,
|
57
|
-
handleLogoClick,
|
58
|
-
...props
|
59
|
-
}) => {
|
60
|
-
var _a, _b;
|
61
|
-
const [isOpen, setIsOpen] = (0, import_react.useState)(false);
|
62
|
-
return /* @__PURE__ */ import_react.default.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ import_react.default.createElement(
|
63
|
-
Collapsible,
|
64
|
-
{
|
65
|
-
className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
|
66
|
-
style: { backgroundColor: backgroundColor || "#1f2937" }
|
67
|
-
},
|
68
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between hawa-px-3 " }, /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ import_react.default.createElement(
|
69
|
-
"div",
|
70
|
-
{
|
71
|
-
className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
|
72
|
-
onClick: () => {
|
73
|
-
if (handleLogoClick) {
|
74
|
-
handleLogoClick();
|
75
|
-
}
|
76
|
-
}
|
77
|
-
},
|
78
|
-
logo
|
79
|
-
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-hidden md:hawa-flex " }, (_a = props.menuItems) == null ? void 0 : _a.map((item, i) => /* @__PURE__ */ import_react.default.createElement(
|
80
|
-
"div",
|
81
|
-
{
|
82
|
-
key: i,
|
83
|
-
onClick: item.action,
|
84
|
-
className: "hawa-cursor-pointer hawa-rounded hawa-p-1.5 hawa-px-2 hawa-text-center hawa-text-sm hawa-text-white hawa-transition-all hover:hawa-bg-gray-300 hover:hawa-text-black"
|
85
|
-
},
|
86
|
-
item.label
|
87
|
-
))), /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-m-0 hawa-flex hawa-h-fit hawa-p-0 md:hawa-hidden" }, /* @__PURE__ */ import_react.default.createElement(
|
88
|
-
CollapsibleTrigger2,
|
89
|
-
{
|
90
|
-
onClick: () => setIsOpen(!isOpen),
|
91
|
-
className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
|
92
|
-
"aria-label": "Toggle menu"
|
93
|
-
},
|
94
|
-
/* @__PURE__ */ import_react.default.createElement(
|
95
|
-
"svg",
|
96
|
-
{
|
97
|
-
xmlns: "http://www.w3.org/2000/svg",
|
98
|
-
width: "24",
|
99
|
-
height: "24",
|
100
|
-
viewBox: "0 0 24 24",
|
101
|
-
fill: "none",
|
102
|
-
stroke: "currentColor",
|
103
|
-
strokeWidth: "2",
|
104
|
-
strokeLinecap: "round",
|
105
|
-
strokeLinejoin: "round",
|
106
|
-
className: cn(
|
107
|
-
"hawa-fixed hawa-h-6 hawa-w-6",
|
108
|
-
isOpen ? "hawa-invisible" : "hawa-visible"
|
109
|
-
)
|
110
|
-
},
|
111
|
-
/* @__PURE__ */ import_react.default.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
112
|
-
/* @__PURE__ */ import_react.default.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
113
|
-
/* @__PURE__ */ import_react.default.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
114
|
-
),
|
115
|
-
/* @__PURE__ */ import_react.default.createElement(
|
116
|
-
"svg",
|
117
|
-
{
|
118
|
-
xmlns: "http://www.w3.org/2000/svg",
|
119
|
-
width: "24",
|
120
|
-
height: "24",
|
121
|
-
viewBox: "0 0 24 24",
|
122
|
-
fill: "none",
|
123
|
-
stroke: "currentColor",
|
124
|
-
strokeWidth: "2",
|
125
|
-
strokeLinecap: "round",
|
126
|
-
strokeLinejoin: "round",
|
127
|
-
className: cn(
|
128
|
-
"hawa-h-6 hawa-w-6",
|
129
|
-
!isOpen ? "hawa-invisible" : "hawa-visible"
|
130
|
-
)
|
131
|
-
},
|
132
|
-
/* @__PURE__ */ import_react.default.createElement("path", { d: "M18 6 6 18" }),
|
133
|
-
/* @__PURE__ */ import_react.default.createElement("path", { d: "m6 6 12 12" })
|
134
|
-
)
|
135
|
-
))),
|
136
|
-
/* @__PURE__ */ import_react.default.createElement(
|
137
|
-
CollapsibleContent2,
|
138
|
-
{
|
139
|
-
className: cn(
|
140
|
-
"data-[state=closed]:hawa-opacity-0",
|
141
|
-
"data-[state=open]:hawa-animate-in",
|
142
|
-
"data-[state=open]:hawa-fade-in-90",
|
143
|
-
"hawa-absolute hawa-left-0 hawa-top-[60px] hawa-flex hawa-flex-col hawa-rounded hawa-border hawa-bg-gray-200 hawa-p-1 hawa-transition-all"
|
144
|
-
// "hawa-transition-all hawa-bg-gray-400 hawa-fixed hawa-left-0 hawa-top-[72px] hawa-w-full hawa-flex hawa-flex-col"
|
145
|
-
),
|
146
|
-
style: {
|
147
|
-
width: "calc(100%)",
|
148
|
-
zIndex: -100
|
149
|
-
}
|
150
|
-
},
|
151
|
-
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */ import_react.default.createElement(
|
152
|
-
"div",
|
153
|
-
{
|
154
|
-
key: i,
|
155
|
-
onClick: item.action,
|
156
|
-
className: "hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-px-10 hawa-text-center hawa-text-black hawa-transition-all hover:hawa-bg-gray-300"
|
157
|
-
},
|
158
|
-
item.label
|
159
|
-
))
|
160
|
-
)
|
161
|
-
));
|
162
|
-
};
|
163
|
-
// Annotate the CommonJS export names for ESM import in node:
|
164
|
-
0 && (module.exports = {
|
165
|
-
Navbar
|
166
|
-
});
|
package/dist/navbar/index.mjs
DELETED
@@ -1,126 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
cn
|
3
|
-
} from "../chunk-TWNGV3RE.mjs";
|
4
|
-
|
5
|
-
// layout/navbar/Navbar.tsx
|
6
|
-
import React, { useState } from "react";
|
7
|
-
|
8
|
-
// elements/collapsible/Collapsible.tsx
|
9
|
-
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
10
|
-
var Collapsible = CollapsiblePrimitive.Root;
|
11
|
-
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
12
|
-
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
13
|
-
|
14
|
-
// layout/navbar/Navbar.tsx
|
15
|
-
var Navbar = ({
|
16
|
-
backgroundColor,
|
17
|
-
logo,
|
18
|
-
handleLogoClick,
|
19
|
-
...props
|
20
|
-
}) => {
|
21
|
-
var _a, _b;
|
22
|
-
const [isOpen, setIsOpen] = useState(false);
|
23
|
-
return /* @__PURE__ */ React.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React.createElement(
|
24
|
-
Collapsible,
|
25
|
-
{
|
26
|
-
className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
|
27
|
-
style: { backgroundColor: backgroundColor || "#1f2937" }
|
28
|
-
},
|
29
|
-
/* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between hawa-px-3 " }, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React.createElement(
|
30
|
-
"div",
|
31
|
-
{
|
32
|
-
className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
|
33
|
-
onClick: () => {
|
34
|
-
if (handleLogoClick) {
|
35
|
-
handleLogoClick();
|
36
|
-
}
|
37
|
-
}
|
38
|
-
},
|
39
|
-
logo
|
40
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "hawa-hidden md:hawa-flex " }, (_a = props.menuItems) == null ? void 0 : _a.map((item, i) => /* @__PURE__ */ React.createElement(
|
41
|
-
"div",
|
42
|
-
{
|
43
|
-
key: i,
|
44
|
-
onClick: item.action,
|
45
|
-
className: "hawa-cursor-pointer hawa-rounded hawa-p-1.5 hawa-px-2 hawa-text-center hawa-text-sm hawa-text-white hawa-transition-all hover:hawa-bg-gray-300 hover:hawa-text-black"
|
46
|
-
},
|
47
|
-
item.label
|
48
|
-
))), /* @__PURE__ */ React.createElement("div", { className: "hawa-m-0 hawa-flex hawa-h-fit hawa-p-0 md:hawa-hidden" }, /* @__PURE__ */ React.createElement(
|
49
|
-
CollapsibleTrigger2,
|
50
|
-
{
|
51
|
-
onClick: () => setIsOpen(!isOpen),
|
52
|
-
className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
|
53
|
-
"aria-label": "Toggle menu"
|
54
|
-
},
|
55
|
-
/* @__PURE__ */ React.createElement(
|
56
|
-
"svg",
|
57
|
-
{
|
58
|
-
xmlns: "http://www.w3.org/2000/svg",
|
59
|
-
width: "24",
|
60
|
-
height: "24",
|
61
|
-
viewBox: "0 0 24 24",
|
62
|
-
fill: "none",
|
63
|
-
stroke: "currentColor",
|
64
|
-
strokeWidth: "2",
|
65
|
-
strokeLinecap: "round",
|
66
|
-
strokeLinejoin: "round",
|
67
|
-
className: cn(
|
68
|
-
"hawa-fixed hawa-h-6 hawa-w-6",
|
69
|
-
isOpen ? "hawa-invisible" : "hawa-visible"
|
70
|
-
)
|
71
|
-
},
|
72
|
-
/* @__PURE__ */ React.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
73
|
-
/* @__PURE__ */ React.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
74
|
-
/* @__PURE__ */ React.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
75
|
-
),
|
76
|
-
/* @__PURE__ */ React.createElement(
|
77
|
-
"svg",
|
78
|
-
{
|
79
|
-
xmlns: "http://www.w3.org/2000/svg",
|
80
|
-
width: "24",
|
81
|
-
height: "24",
|
82
|
-
viewBox: "0 0 24 24",
|
83
|
-
fill: "none",
|
84
|
-
stroke: "currentColor",
|
85
|
-
strokeWidth: "2",
|
86
|
-
strokeLinecap: "round",
|
87
|
-
strokeLinejoin: "round",
|
88
|
-
className: cn(
|
89
|
-
"hawa-h-6 hawa-w-6",
|
90
|
-
!isOpen ? "hawa-invisible" : "hawa-visible"
|
91
|
-
)
|
92
|
-
},
|
93
|
-
/* @__PURE__ */ React.createElement("path", { d: "M18 6 6 18" }),
|
94
|
-
/* @__PURE__ */ React.createElement("path", { d: "m6 6 12 12" })
|
95
|
-
)
|
96
|
-
))),
|
97
|
-
/* @__PURE__ */ React.createElement(
|
98
|
-
CollapsibleContent2,
|
99
|
-
{
|
100
|
-
className: cn(
|
101
|
-
"data-[state=closed]:hawa-opacity-0",
|
102
|
-
"data-[state=open]:hawa-animate-in",
|
103
|
-
"data-[state=open]:hawa-fade-in-90",
|
104
|
-
"hawa-absolute hawa-left-0 hawa-top-[60px] hawa-flex hawa-flex-col hawa-rounded hawa-border hawa-bg-gray-200 hawa-p-1 hawa-transition-all"
|
105
|
-
// "hawa-transition-all hawa-bg-gray-400 hawa-fixed hawa-left-0 hawa-top-[72px] hawa-w-full hawa-flex hawa-flex-col"
|
106
|
-
),
|
107
|
-
style: {
|
108
|
-
width: "calc(100%)",
|
109
|
-
zIndex: -100
|
110
|
-
}
|
111
|
-
},
|
112
|
-
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */ React.createElement(
|
113
|
-
"div",
|
114
|
-
{
|
115
|
-
key: i,
|
116
|
-
onClick: item.action,
|
117
|
-
className: "hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-px-10 hawa-text-center hawa-text-black hawa-transition-all hover:hawa-bg-gray-300"
|
118
|
-
},
|
119
|
-
item.label
|
120
|
-
))
|
121
|
-
)
|
122
|
-
));
|
123
|
-
};
|
124
|
-
export {
|
125
|
-
Navbar
|
126
|
-
};
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
2
|
-
import * as React from 'react';
|
3
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
4
|
-
import { D as DirectionType } from '../commonTypes-ko_NGEoT.mjs';
|
5
|
-
|
6
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
7
|
-
type StandardNavigationMenuItemProps = {
|
8
|
-
icon?: React.ReactNode;
|
9
|
-
title: string;
|
10
|
-
subtitle?: string;
|
11
|
-
};
|
12
|
-
type NavigationMenuItemProps = {
|
13
|
-
trigger: any;
|
14
|
-
content?: any;
|
15
|
-
action?: any;
|
16
|
-
path?: string;
|
17
|
-
};
|
18
|
-
type NavigationMenuTypes = {
|
19
|
-
items: NavigationMenuItemProps[];
|
20
|
-
rootClassNames?: string;
|
21
|
-
viewportClassNames?: string;
|
22
|
-
triggerClassNames?: string;
|
23
|
-
actionFirst?: boolean;
|
24
|
-
direction?: DirectionType;
|
25
|
-
};
|
26
|
-
declare const NavigationMenuRoot: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
27
|
-
viewportClassNames?: string | undefined;
|
28
|
-
} & React.RefAttributes<HTMLElement>>;
|
29
|
-
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
30
|
-
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
31
|
-
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
32
|
-
declare const StandardNavigationMenuItem: React.FC<StandardNavigationMenuItemProps & React.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
|
33
|
-
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
34
|
-
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
35
|
-
declare const NavigationMenu: React.FC<NavigationMenuTypes>;
|
36
|
-
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
37
|
-
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
38
|
-
|
39
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle };
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
2
|
-
import * as React from 'react';
|
3
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
4
|
-
import { D as DirectionType } from '../commonTypes-ko_NGEoT.js';
|
5
|
-
|
6
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
7
|
-
type StandardNavigationMenuItemProps = {
|
8
|
-
icon?: React.ReactNode;
|
9
|
-
title: string;
|
10
|
-
subtitle?: string;
|
11
|
-
};
|
12
|
-
type NavigationMenuItemProps = {
|
13
|
-
trigger: any;
|
14
|
-
content?: any;
|
15
|
-
action?: any;
|
16
|
-
path?: string;
|
17
|
-
};
|
18
|
-
type NavigationMenuTypes = {
|
19
|
-
items: NavigationMenuItemProps[];
|
20
|
-
rootClassNames?: string;
|
21
|
-
viewportClassNames?: string;
|
22
|
-
triggerClassNames?: string;
|
23
|
-
actionFirst?: boolean;
|
24
|
-
direction?: DirectionType;
|
25
|
-
};
|
26
|
-
declare const NavigationMenuRoot: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
27
|
-
viewportClassNames?: string | undefined;
|
28
|
-
} & React.RefAttributes<HTMLElement>>;
|
29
|
-
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
30
|
-
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
31
|
-
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
32
|
-
declare const StandardNavigationMenuItem: React.FC<StandardNavigationMenuItemProps & React.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
|
33
|
-
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
34
|
-
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
35
|
-
declare const NavigationMenu: React.FC<NavigationMenuTypes>;
|
36
|
-
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
37
|
-
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
38
|
-
|
39
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, StandardNavigationMenuItem, navigationMenuTriggerStyle };
|
@@ -1,221 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
|
30
|
-
// elements/navigationMenu/index.ts
|
31
|
-
var navigationMenu_exports = {};
|
32
|
-
__export(navigationMenu_exports, {
|
33
|
-
NavigationMenu: () => NavigationMenu,
|
34
|
-
NavigationMenuContent: () => NavigationMenuContent,
|
35
|
-
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
36
|
-
NavigationMenuItem: () => NavigationMenuItem,
|
37
|
-
NavigationMenuLink: () => NavigationMenuLink,
|
38
|
-
NavigationMenuList: () => NavigationMenuList,
|
39
|
-
NavigationMenuRoot: () => NavigationMenuRoot,
|
40
|
-
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
41
|
-
NavigationMenuViewport: () => NavigationMenuViewport,
|
42
|
-
StandardNavigationMenuItem: () => StandardNavigationMenuItem,
|
43
|
-
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle
|
44
|
-
});
|
45
|
-
module.exports = __toCommonJS(navigationMenu_exports);
|
46
|
-
|
47
|
-
// elements/navigationMenu/NavigationMenu.tsx
|
48
|
-
var React = __toESM(require("react"));
|
49
|
-
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
50
|
-
var import_class_variance_authority = require("class-variance-authority");
|
51
|
-
|
52
|
-
// util/index.ts
|
53
|
-
var import_clsx = require("clsx");
|
54
|
-
var import_tailwind_merge = require("tailwind-merge");
|
55
|
-
function cn(...inputs) {
|
56
|
-
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
57
|
-
}
|
58
|
-
|
59
|
-
// elements/navigationMenu/NavigationMenu.tsx
|
60
|
-
var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
|
61
|
-
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
62
|
-
);
|
63
|
-
var NavigationMenuRoot = React.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
64
|
-
NavigationMenuPrimitive.Root,
|
65
|
-
{
|
66
|
-
ref,
|
67
|
-
className: cn(
|
68
|
-
"hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
|
69
|
-
// "hawa-max-w-max",
|
70
|
-
className
|
71
|
-
),
|
72
|
-
...props
|
73
|
-
},
|
74
|
-
children,
|
75
|
-
/* @__PURE__ */ React.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
76
|
-
));
|
77
|
-
var NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
78
|
-
NavigationMenuPrimitive.List,
|
79
|
-
{
|
80
|
-
ref,
|
81
|
-
className: cn(
|
82
|
-
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
83
|
-
className
|
84
|
-
),
|
85
|
-
...props
|
86
|
-
}
|
87
|
-
));
|
88
|
-
var NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
89
|
-
NavigationMenuPrimitive.Trigger,
|
90
|
-
{
|
91
|
-
ref,
|
92
|
-
className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
|
93
|
-
...props
|
94
|
-
},
|
95
|
-
children,
|
96
|
-
/* @__PURE__ */ React.createElement(
|
97
|
-
"svg",
|
98
|
-
{
|
99
|
-
"aria-label": "Chevron Icon",
|
100
|
-
xmlns: "http://www.w3.org/2000/svg",
|
101
|
-
width: "24",
|
102
|
-
height: "24",
|
103
|
-
viewBox: "0 0 24 24",
|
104
|
-
fill: "none",
|
105
|
-
stroke: "currentColor",
|
106
|
-
strokeWidth: "2",
|
107
|
-
strokeLinecap: "round",
|
108
|
-
strokeLinejoin: "round",
|
109
|
-
"aria-hidden": "true",
|
110
|
-
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
111
|
-
},
|
112
|
-
/* @__PURE__ */ React.createElement("path", { d: "m6 9 6 6 6-6" })
|
113
|
-
)
|
114
|
-
));
|
115
|
-
var NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
116
|
-
NavigationMenuPrimitive.Content,
|
117
|
-
{
|
118
|
-
ref,
|
119
|
-
className: cn(
|
120
|
-
"hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
|
121
|
-
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
122
|
-
// animation
|
123
|
-
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
124
|
-
className
|
125
|
-
),
|
126
|
-
...props
|
127
|
-
}
|
128
|
-
));
|
129
|
-
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
130
|
-
var NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
131
|
-
"div",
|
132
|
-
{
|
133
|
-
className: cn(
|
134
|
-
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
135
|
-
)
|
136
|
-
},
|
137
|
-
/* @__PURE__ */ React.createElement(
|
138
|
-
NavigationMenuPrimitive.Viewport,
|
139
|
-
{
|
140
|
-
className: cn(
|
141
|
-
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
|
142
|
-
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
143
|
-
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
144
|
-
className
|
145
|
-
),
|
146
|
-
style: {
|
147
|
-
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
148
|
-
},
|
149
|
-
ref,
|
150
|
-
...props
|
151
|
-
}
|
152
|
-
)
|
153
|
-
));
|
154
|
-
var NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
155
|
-
NavigationMenuPrimitive.Indicator,
|
156
|
-
{
|
157
|
-
ref,
|
158
|
-
className: cn(
|
159
|
-
"hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
|
160
|
-
className
|
161
|
-
),
|
162
|
-
...props
|
163
|
-
},
|
164
|
-
/* @__PURE__ */ React.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
165
|
-
));
|
166
|
-
var NavigationMenu = ({
|
167
|
-
viewportClassNames,
|
168
|
-
rootClassNames,
|
169
|
-
triggerClassNames,
|
170
|
-
actionFirst,
|
171
|
-
...props
|
172
|
-
}) => {
|
173
|
-
return /* @__PURE__ */ React.createElement(
|
174
|
-
NavigationMenuRoot,
|
175
|
-
{
|
176
|
-
dir: props.direction,
|
177
|
-
delayDuration: 0,
|
178
|
-
className: rootClassNames,
|
179
|
-
viewportClassNames
|
180
|
-
},
|
181
|
-
/* @__PURE__ */ React.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(NavigationMenuTrigger, { className: cn(triggerClassNames) }, item.trigger), /* @__PURE__ */ React.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React.createElement(
|
182
|
-
NavigationMenuLink,
|
183
|
-
{
|
184
|
-
href: actionFirst ? void 0 : item.path,
|
185
|
-
onClick: () => {
|
186
|
-
if (item.action) {
|
187
|
-
item.action();
|
188
|
-
}
|
189
|
-
},
|
190
|
-
className: cn(
|
191
|
-
navigationMenuTriggerStyle(),
|
192
|
-
"hawa-cursor-pointer hawa-select-none",
|
193
|
-
triggerClassNames
|
194
|
-
)
|
195
|
-
},
|
196
|
-
item.trigger
|
197
|
-
))))
|
198
|
-
);
|
199
|
-
};
|
200
|
-
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
201
|
-
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
202
|
-
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
203
|
-
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
204
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
205
|
-
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
206
|
-
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
207
|
-
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
208
|
-
// Annotate the CommonJS export names for ESM import in node:
|
209
|
-
0 && (module.exports = {
|
210
|
-
NavigationMenu,
|
211
|
-
NavigationMenuContent,
|
212
|
-
NavigationMenuIndicator,
|
213
|
-
NavigationMenuItem,
|
214
|
-
NavigationMenuLink,
|
215
|
-
NavigationMenuList,
|
216
|
-
NavigationMenuRoot,
|
217
|
-
NavigationMenuTrigger,
|
218
|
-
NavigationMenuViewport,
|
219
|
-
StandardNavigationMenuItem,
|
220
|
-
navigationMenuTriggerStyle
|
221
|
-
});
|