@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
@@ -1,1528 +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
|
-
// blocks/pricing/index.ts
|
31
|
-
var pricing_exports = {};
|
32
|
-
__export(pricing_exports, {
|
33
|
-
ComparingPlans: () => ComparingPlans,
|
34
|
-
HorizontalPricing: () => HorizontalPricing,
|
35
|
-
PricingPlans: () => PricingPlans
|
36
|
-
});
|
37
|
-
module.exports = __toCommonJS(pricing_exports);
|
38
|
-
|
39
|
-
// blocks/pricing/PricingPlans.tsx
|
40
|
-
var import_react12 = __toESM(require("react"));
|
41
|
-
|
42
|
-
// blocks/cards/ActionCard.tsx
|
43
|
-
var import_react = __toESM(require("react"));
|
44
|
-
|
45
|
-
// blocks/cards/AdCard.tsx
|
46
|
-
var import_react2 = __toESM(require("react"));
|
47
|
-
|
48
|
-
// util/index.ts
|
49
|
-
var import_clsx = require("clsx");
|
50
|
-
var import_tailwind_merge = require("tailwind-merge");
|
51
|
-
function cn(...inputs) {
|
52
|
-
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
53
|
-
}
|
54
|
-
|
55
|
-
// blocks/cards/PricingCard.tsx
|
56
|
-
var import_react7 = __toESM(require("react"));
|
57
|
-
|
58
|
-
// elements/button/Button.tsx
|
59
|
-
var React4 = __toESM(require("react"));
|
60
|
-
var import_class_variance_authority = require("class-variance-authority");
|
61
|
-
|
62
|
-
// elements/loading/Loading.tsx
|
63
|
-
var import_react3 = __toESM(require("react"));
|
64
|
-
var Loading = ({
|
65
|
-
design = "spinner",
|
66
|
-
size = "sm",
|
67
|
-
themeMode = "light",
|
68
|
-
color,
|
69
|
-
...props
|
70
|
-
}) => {
|
71
|
-
let sizeStyles = {
|
72
|
-
button: "hawa-h-4 hawa-w-4",
|
73
|
-
xs: "hawa-h-1 hawa-w-1",
|
74
|
-
sm: "hawa-h-6 hawa-w-6",
|
75
|
-
normal: "hawa-h-8 hawa-w-8",
|
76
|
-
lg: "hawa-h-14 hawa-w-14",
|
77
|
-
xl: "hawa-h-24 hawa-w-24"
|
78
|
-
};
|
79
|
-
let animationStyles = {
|
80
|
-
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
81
|
-
bounce: "hawa-animate-bounce"
|
82
|
-
};
|
83
|
-
switch (design.split("-")[0]) {
|
84
|
-
case "dots":
|
85
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
86
|
-
"div",
|
87
|
-
{
|
88
|
-
className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
|
89
|
-
},
|
90
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
91
|
-
"div",
|
92
|
-
{
|
93
|
-
className: cn(
|
94
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
95
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
96
|
-
animationStyles[design.split("-")[1]],
|
97
|
-
color ? color : "hawa-bg-primary"
|
98
|
-
)
|
99
|
-
}
|
100
|
-
),
|
101
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
102
|
-
"div",
|
103
|
-
{
|
104
|
-
className: cn(
|
105
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
106
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
107
|
-
animationStyles[design.split("-")[1]],
|
108
|
-
color ? color : "hawa-bg-primary"
|
109
|
-
)
|
110
|
-
}
|
111
|
-
),
|
112
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
113
|
-
"div",
|
114
|
-
{
|
115
|
-
className: cn(
|
116
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
117
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
118
|
-
animationStyles[design.split("-")[1]],
|
119
|
-
color ? color : "hawa-bg-primary"
|
120
|
-
)
|
121
|
-
}
|
122
|
-
)
|
123
|
-
);
|
124
|
-
case "square":
|
125
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
126
|
-
"svg",
|
127
|
-
{
|
128
|
-
className: cn("squircle-container", sizeStyles[size]),
|
129
|
-
viewBox: "0 0 35 35",
|
130
|
-
height: "35",
|
131
|
-
width: "35"
|
132
|
-
},
|
133
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
134
|
-
"rect",
|
135
|
-
{
|
136
|
-
className: "squircle-track",
|
137
|
-
x: "2.5",
|
138
|
-
y: "2.5",
|
139
|
-
fill: "none",
|
140
|
-
strokeWidth: "5px",
|
141
|
-
width: "32.5",
|
142
|
-
height: "32.5"
|
143
|
-
}
|
144
|
-
),
|
145
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
146
|
-
"rect",
|
147
|
-
{
|
148
|
-
className: "square-car",
|
149
|
-
x: "2.5",
|
150
|
-
y: "2.5",
|
151
|
-
fill: "none",
|
152
|
-
strokeWidth: "5px",
|
153
|
-
width: "32.5",
|
154
|
-
height: "32.5",
|
155
|
-
pathLength: "100"
|
156
|
-
}
|
157
|
-
)
|
158
|
-
);
|
159
|
-
case "squircle":
|
160
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
161
|
-
"svg",
|
162
|
-
{
|
163
|
-
className: cn("squircle-container", sizeStyles[size]),
|
164
|
-
x: "0px",
|
165
|
-
y: "0px",
|
166
|
-
viewBox: "0 0 37 37",
|
167
|
-
height: "37",
|
168
|
-
width: "37",
|
169
|
-
preserveAspectRatio: "xMidYMid meet"
|
170
|
-
},
|
171
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
172
|
-
"path",
|
173
|
-
{
|
174
|
-
className: "squircle-track",
|
175
|
-
fill: "none",
|
176
|
-
strokeWidth: "5",
|
177
|
-
pathLength: "100",
|
178
|
-
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
179
|
-
}
|
180
|
-
),
|
181
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
182
|
-
"path",
|
183
|
-
{
|
184
|
-
className: "squircle-car",
|
185
|
-
fill: "none",
|
186
|
-
strokeWidth: "5",
|
187
|
-
pathLength: "100",
|
188
|
-
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
189
|
-
}
|
190
|
-
)
|
191
|
-
);
|
192
|
-
case "progress":
|
193
|
-
return /* @__PURE__ */ import_react3.default.createElement("div", { className: "progress-loading" });
|
194
|
-
case "orbit":
|
195
|
-
return /* @__PURE__ */ import_react3.default.createElement("div", { className: "orbit-container" });
|
196
|
-
default:
|
197
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
198
|
-
"svg",
|
199
|
-
{
|
200
|
-
className: cn("circle-container", sizeStyles[size]),
|
201
|
-
viewBox: "0 0 40 40",
|
202
|
-
height: "40",
|
203
|
-
width: "40"
|
204
|
-
},
|
205
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
206
|
-
"circle",
|
207
|
-
{
|
208
|
-
className: cn("circle-track", {
|
209
|
-
"hawa-stroke-primary-foreground": themeMode === "dark",
|
210
|
-
"hawa-stroke-primary": themeMode === "light"
|
211
|
-
}),
|
212
|
-
cx: "20",
|
213
|
-
cy: "20",
|
214
|
-
r: "17.5",
|
215
|
-
pathLength: "100",
|
216
|
-
strokeWidth: "5px",
|
217
|
-
fill: "none"
|
218
|
-
}
|
219
|
-
),
|
220
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
221
|
-
"circle",
|
222
|
-
{
|
223
|
-
className: cn("circle-car", {
|
224
|
-
"hawa-stroke-primary-foreground": themeMode === "dark",
|
225
|
-
"hawa-stroke-primary": themeMode === "light"
|
226
|
-
}),
|
227
|
-
cx: "20",
|
228
|
-
cy: "20",
|
229
|
-
r: "17.5",
|
230
|
-
pathLength: "100",
|
231
|
-
strokeWidth: "5px",
|
232
|
-
fill: "none"
|
233
|
-
}
|
234
|
-
)
|
235
|
-
);
|
236
|
-
}
|
237
|
-
};
|
238
|
-
|
239
|
-
// elements/button/Button.tsx
|
240
|
-
var buttonVariants = (0, import_class_variance_authority.cva)(
|
241
|
-
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
242
|
-
{
|
243
|
-
variants: {
|
244
|
-
variant: {
|
245
|
-
default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
|
246
|
-
light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
|
247
|
-
destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
|
248
|
-
outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
249
|
-
secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
|
250
|
-
ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
251
|
-
link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
|
252
|
-
combobox: "hawa-bg-background hawa-border",
|
253
|
-
neoBrutalism: "neo-brutalism"
|
254
|
-
// "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
|
255
|
-
},
|
256
|
-
size: {
|
257
|
-
default: "hawa-h-10 hawa-px-4 hawa-py-2",
|
258
|
-
heightless: "hawa-px-4 hawa-py-4",
|
259
|
-
xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
|
260
|
-
sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
|
261
|
-
lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
|
262
|
-
xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
|
263
|
-
icon: "hawa-h-10 hawa-w-10",
|
264
|
-
smallIcon: "hawa-h-7 hawa-w-7"
|
265
|
-
}
|
266
|
-
},
|
267
|
-
defaultVariants: {
|
268
|
-
variant: "default",
|
269
|
-
size: "default"
|
270
|
-
}
|
271
|
-
}
|
272
|
-
);
|
273
|
-
var Button = React4.forwardRef(
|
274
|
-
({
|
275
|
-
className,
|
276
|
-
variant,
|
277
|
-
size,
|
278
|
-
asChild = false,
|
279
|
-
centered = true,
|
280
|
-
isLoading,
|
281
|
-
children,
|
282
|
-
...props
|
283
|
-
}, ref) => {
|
284
|
-
const Comp = "button";
|
285
|
-
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
286
|
-
return /* @__PURE__ */ React4.createElement(
|
287
|
-
Comp,
|
288
|
-
{
|
289
|
-
className: cn(
|
290
|
-
buttonVariants({ variant, size, className }),
|
291
|
-
centered && "hawa-justify-center"
|
292
|
-
// "hawa-bg-red-500"
|
293
|
-
),
|
294
|
-
ref,
|
295
|
-
...props
|
296
|
-
},
|
297
|
-
isLoading ? /* @__PURE__ */ React4.createElement(
|
298
|
-
Loading,
|
299
|
-
{
|
300
|
-
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
301
|
-
themeMode: variant === "outline" ? "light" : "dark",
|
302
|
-
color: loadingColor,
|
303
|
-
size: size === "sm" || size === "xs" ? "xs" : "button"
|
304
|
-
}
|
305
|
-
) : children
|
306
|
-
);
|
307
|
-
}
|
308
|
-
);
|
309
|
-
Button.displayName = "Button";
|
310
|
-
|
311
|
-
// elements/card/Card.tsx
|
312
|
-
var React5 = __toESM(require("react"));
|
313
|
-
var Card = React5.forwardRef(
|
314
|
-
({ className, variant = "default", clickable = false, ...props }, ref) => {
|
315
|
-
let variantStyles = {
|
316
|
-
default: cn(
|
317
|
-
"hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
318
|
-
clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
|
319
|
-
),
|
320
|
-
neoBrutalism: cn(
|
321
|
-
"neo-brutalism",
|
322
|
-
// "hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]",
|
323
|
-
clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
324
|
-
)
|
325
|
-
};
|
326
|
-
return /* @__PURE__ */ React5.createElement(
|
327
|
-
"div",
|
328
|
-
{
|
329
|
-
ref,
|
330
|
-
className: cn(className, variantStyles[variant]),
|
331
|
-
...props
|
332
|
-
}
|
333
|
-
);
|
334
|
-
}
|
335
|
-
);
|
336
|
-
var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
337
|
-
"div",
|
338
|
-
{
|
339
|
-
ref,
|
340
|
-
className: cn(
|
341
|
-
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
342
|
-
className
|
343
|
-
),
|
344
|
-
...props
|
345
|
-
}
|
346
|
-
));
|
347
|
-
var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
348
|
-
"h3",
|
349
|
-
{
|
350
|
-
ref,
|
351
|
-
className: cn("hawa-text-2xl hawa-font-semibold ", className),
|
352
|
-
...props
|
353
|
-
}
|
354
|
-
));
|
355
|
-
var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
356
|
-
"p",
|
357
|
-
{
|
358
|
-
ref,
|
359
|
-
className: cn("hawa-text-sm hawa-text-muted-foreground", className),
|
360
|
-
...props
|
361
|
-
}
|
362
|
-
));
|
363
|
-
var CardContent = React5.forwardRef(
|
364
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
365
|
-
"div",
|
366
|
-
{
|
367
|
-
ref,
|
368
|
-
className: cn(
|
369
|
-
noPadding ? "hawa-p-0" : "hawa-p-6",
|
370
|
-
headless ? "hawa-pt-6" : "hawa-pt-0",
|
371
|
-
className
|
372
|
-
),
|
373
|
-
...props
|
374
|
-
}
|
375
|
-
)
|
376
|
-
);
|
377
|
-
var CardFooter = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
378
|
-
"div",
|
379
|
-
{
|
380
|
-
ref,
|
381
|
-
className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
|
382
|
-
...props
|
383
|
-
}
|
384
|
-
));
|
385
|
-
CardDescription.displayName = "CardDescription";
|
386
|
-
CardContent.displayName = "CardContent";
|
387
|
-
CardHeader.displayName = "CardHeader";
|
388
|
-
CardFooter.displayName = "CardFooter";
|
389
|
-
CardTitle.displayName = "CardTitle";
|
390
|
-
Card.displayName = "Card";
|
391
|
-
|
392
|
-
// elements/separator/Separator.tsx
|
393
|
-
var React6 = __toESM(require("react"));
|
394
|
-
var Separator = ({
|
395
|
-
className,
|
396
|
-
orientation = "horizontal",
|
397
|
-
...props
|
398
|
-
}) => /* @__PURE__ */ React6.createElement(
|
399
|
-
"div",
|
400
|
-
{
|
401
|
-
className: cn(
|
402
|
-
"hawa-shrink-0 hawa-bg-border",
|
403
|
-
orientation === "horizontal" ? "hawa-h-[1px] hawa-w-full" : "hawa-h-full hawa-w-[1px]",
|
404
|
-
className
|
405
|
-
),
|
406
|
-
...props
|
407
|
-
}
|
408
|
-
);
|
409
|
-
|
410
|
-
// elements/skeleton/Skeleton.tsx
|
411
|
-
var import_react4 = __toESM(require("react"));
|
412
|
-
function Skeleton({
|
413
|
-
className,
|
414
|
-
content,
|
415
|
-
animation = "pulse",
|
416
|
-
...props
|
417
|
-
}) {
|
418
|
-
const animationStyles = {
|
419
|
-
none: "hawa-rounded hawa-bg-muted",
|
420
|
-
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
421
|
-
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
422
|
-
};
|
423
|
-
return /* @__PURE__ */ import_react4.default.createElement(
|
424
|
-
"div",
|
425
|
-
{
|
426
|
-
className: cn(
|
427
|
-
animationStyles[animation],
|
428
|
-
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
429
|
-
className
|
430
|
-
),
|
431
|
-
...props
|
432
|
-
},
|
433
|
-
content && content
|
434
|
-
);
|
435
|
-
}
|
436
|
-
|
437
|
-
// elements/tooltip/Tooltip.tsx
|
438
|
-
var import_react5 = __toESM(require("react"));
|
439
|
-
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
440
|
-
var TooltipContent = import_react5.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(
|
441
|
-
TooltipPrimitive.Content,
|
442
|
-
{
|
443
|
-
ref,
|
444
|
-
sideOffset,
|
445
|
-
className: cn(
|
446
|
-
"hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
447
|
-
className
|
448
|
-
),
|
449
|
-
...props
|
450
|
-
}
|
451
|
-
));
|
452
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
453
|
-
var TooltipArrow = import_react5.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
454
|
-
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
455
|
-
var Tooltip = ({
|
456
|
-
side,
|
457
|
-
open,
|
458
|
-
content,
|
459
|
-
children,
|
460
|
-
defaultOpen,
|
461
|
-
onOpenChange,
|
462
|
-
triggerProps,
|
463
|
-
contentProps,
|
464
|
-
providerProps,
|
465
|
-
delayDuration = 300,
|
466
|
-
...props
|
467
|
-
}) => {
|
468
|
-
return /* @__PURE__ */ import_react5.default.createElement(
|
469
|
-
TooltipPrimitive.TooltipProvider,
|
470
|
-
{
|
471
|
-
delayDuration,
|
472
|
-
...providerProps
|
473
|
-
},
|
474
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
475
|
-
TooltipPrimitive.Root,
|
476
|
-
{
|
477
|
-
open,
|
478
|
-
defaultOpen,
|
479
|
-
onOpenChange,
|
480
|
-
...props
|
481
|
-
},
|
482
|
-
/* @__PURE__ */ import_react5.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
483
|
-
/* @__PURE__ */ import_react5.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
|
484
|
-
)
|
485
|
-
);
|
486
|
-
};
|
487
|
-
|
488
|
-
// elements/chip/Chip.tsx
|
489
|
-
var import_react6 = __toESM(require("react"));
|
490
|
-
var Chip = import_react6.default.forwardRef(
|
491
|
-
({
|
492
|
-
label,
|
493
|
-
size = "normal",
|
494
|
-
icon,
|
495
|
-
color,
|
496
|
-
radius = "inherit",
|
497
|
-
dotType,
|
498
|
-
...rest
|
499
|
-
}, ref) => {
|
500
|
-
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
501
|
-
let radiusStyles = {
|
502
|
-
inherit: " hawa-rounded",
|
503
|
-
full: "hawa-rounded-full",
|
504
|
-
none: "hawa-rounded-none"
|
505
|
-
};
|
506
|
-
let sizeStyles = {
|
507
|
-
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
508
|
-
normal: "hawa-h-fit hawa-text-xs",
|
509
|
-
large: "hawa-text-base"
|
510
|
-
};
|
511
|
-
let dotStyles = {
|
512
|
-
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
513
|
-
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
514
|
-
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
515
|
-
};
|
516
|
-
let dotTypeStyles = {
|
517
|
-
available: "hawa-bg-green-500",
|
518
|
-
unavailable: "hawa-bg-red-500"
|
519
|
-
};
|
520
|
-
let colorStyles = {
|
521
|
-
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
522
|
-
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
523
|
-
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
524
|
-
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
525
|
-
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
526
|
-
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
527
|
-
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
528
|
-
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
529
|
-
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
530
|
-
};
|
531
|
-
if (label) {
|
532
|
-
return /* @__PURE__ */ import_react6.default.createElement(
|
533
|
-
"span",
|
534
|
-
{
|
535
|
-
...rest,
|
536
|
-
ref,
|
537
|
-
className: cn(
|
538
|
-
defaultStyles,
|
539
|
-
sizeStyles[size],
|
540
|
-
radiusStyles[radius],
|
541
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
542
|
-
)
|
543
|
-
},
|
544
|
-
dotType && /* @__PURE__ */ import_react6.default.createElement(
|
545
|
-
"span",
|
546
|
-
{
|
547
|
-
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
548
|
-
}
|
549
|
-
),
|
550
|
-
icon && icon,
|
551
|
-
label
|
552
|
-
);
|
553
|
-
} else {
|
554
|
-
return /* @__PURE__ */ import_react6.default.createElement(
|
555
|
-
"span",
|
556
|
-
{
|
557
|
-
...rest,
|
558
|
-
ref,
|
559
|
-
className: cn(
|
560
|
-
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
561
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
562
|
-
)
|
563
|
-
}
|
564
|
-
);
|
565
|
-
}
|
566
|
-
}
|
567
|
-
);
|
568
|
-
|
569
|
-
// blocks/cards/PricingCard.tsx
|
570
|
-
var PricingCard = ({
|
571
|
-
size = "medium",
|
572
|
-
direction = "ltr",
|
573
|
-
endButton = true,
|
574
|
-
recommended,
|
575
|
-
currentPlan = false,
|
576
|
-
...props
|
577
|
-
}) => {
|
578
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
579
|
-
let cardSizes = {
|
580
|
-
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
581
|
-
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
582
|
-
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
583
|
-
};
|
584
|
-
return /* @__PURE__ */ import_react7.default.createElement(
|
585
|
-
Card,
|
586
|
-
{
|
587
|
-
dir: direction,
|
588
|
-
className: cn(
|
589
|
-
currentPlan ? "hawa-border-2 hawa-border-primary dark:hawa-border-primary/70 " : "hawa-border",
|
590
|
-
cardSizes[size],
|
591
|
-
"hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-gap-4 hawa-p-4",
|
592
|
-
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
593
|
-
)
|
594
|
-
},
|
595
|
-
recommended && /* @__PURE__ */ import_react7.default.createElement(
|
596
|
-
"div",
|
597
|
-
{
|
598
|
-
className: "hawa-absolute -hawa-left-[1px] hawa-top-0 -hawa-translate-y-full hawa-rounded-t hawa-border hawa-bg-primary hawa-p-2 hawa-text-center hawa-text-primary-foreground",
|
599
|
-
style: { width: "calc(100% + 2px)" }
|
600
|
-
},
|
601
|
-
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
602
|
-
),
|
603
|
-
/* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react7.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react7.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react7.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react7.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoading ? /* @__PURE__ */ import_react7.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ import_react7.default.createElement(Separator, null), /* @__PURE__ */ import_react7.default.createElement(
|
604
|
-
"div",
|
605
|
-
{
|
606
|
-
className: cn(
|
607
|
-
"hawa-flex hawa-h-full hawa-justify-between hawa-gap-4",
|
608
|
-
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
609
|
-
)
|
610
|
-
},
|
611
|
-
props.features && /* @__PURE__ */ import_react7.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
612
|
-
var _a2;
|
613
|
-
return /* @__PURE__ */ import_react7.default.createElement(
|
614
|
-
"li",
|
615
|
-
{
|
616
|
-
key: o,
|
617
|
-
className: cn(
|
618
|
-
"hawa-flex hawa-flex-row hawa-justify-between hawa-gap-2",
|
619
|
-
!feature.included && "hawa-line-through"
|
620
|
-
)
|
621
|
-
},
|
622
|
-
/* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react7.default.createElement(
|
623
|
-
"svg",
|
624
|
-
{
|
625
|
-
"aria-label": "Check Icon",
|
626
|
-
"aria-hidden": "true",
|
627
|
-
className: "hawa-m-2 hawa-h-5 hawa-w-5 hawa-flex-shrink-0 hawa-text-primary",
|
628
|
-
fill: "currentColor",
|
629
|
-
viewBox: "0 0 20 20"
|
630
|
-
},
|
631
|
-
/* @__PURE__ */ import_react7.default.createElement(
|
632
|
-
"path",
|
633
|
-
{
|
634
|
-
fillRule: "evenodd",
|
635
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
636
|
-
clipRule: "evenodd"
|
637
|
-
}
|
638
|
-
)
|
639
|
-
) : /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ import_react7.default.createElement(
|
640
|
-
Chip,
|
641
|
-
{
|
642
|
-
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
643
|
-
color: "oceanic",
|
644
|
-
size: "small"
|
645
|
-
}
|
646
|
-
))),
|
647
|
-
feature.hint && /* @__PURE__ */ import_react7.default.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ import_react7.default.createElement(
|
648
|
-
"svg",
|
649
|
-
{
|
650
|
-
xmlns: "http://www.w3.org/2000/svg",
|
651
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
652
|
-
viewBox: "0 0 24 24",
|
653
|
-
fill: "none",
|
654
|
-
stroke: "currentColor",
|
655
|
-
strokeWidth: "2",
|
656
|
-
strokeLinecap: "round",
|
657
|
-
strokeLinejoin: "round"
|
658
|
-
},
|
659
|
-
/* @__PURE__ */ import_react7.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
660
|
-
/* @__PURE__ */ import_react7.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
661
|
-
/* @__PURE__ */ import_react7.default.createElement("path", { d: "M12 17h.01" })
|
662
|
-
))
|
663
|
-
);
|
664
|
-
})),
|
665
|
-
/* @__PURE__ */ import_react7.default.createElement(
|
666
|
-
Button,
|
667
|
-
{
|
668
|
-
onClick: props.onPlanClicked,
|
669
|
-
disabled: currentPlan,
|
670
|
-
className: "hawa-w-full"
|
671
|
-
},
|
672
|
-
(_i = props.texts) == null ? void 0 : _i.buttonText
|
673
|
-
)
|
674
|
-
))
|
675
|
-
);
|
676
|
-
};
|
677
|
-
|
678
|
-
// blocks/cards/ItemCard.tsx
|
679
|
-
var import_react9 = __toESM(require("react"));
|
680
|
-
|
681
|
-
// elements/dropdownMenu/DropdownMenu.tsx
|
682
|
-
var React11 = __toESM(require("react"));
|
683
|
-
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
684
|
-
var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
685
|
-
DropdownMenuPrimitive.SubTrigger,
|
686
|
-
{
|
687
|
-
ref,
|
688
|
-
className: cn(
|
689
|
-
"hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent",
|
690
|
-
inset && "hawa-pl-8",
|
691
|
-
className
|
692
|
-
),
|
693
|
-
...props
|
694
|
-
},
|
695
|
-
/* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
696
|
-
" ",
|
697
|
-
/* @__PURE__ */ React11.createElement(
|
698
|
-
"svg",
|
699
|
-
{
|
700
|
-
"aria-label": "Chevron Right Icon",
|
701
|
-
stroke: "currentColor",
|
702
|
-
fill: "currentColor",
|
703
|
-
strokeWidth: "0",
|
704
|
-
viewBox: "0 0 16 16",
|
705
|
-
height: "1em",
|
706
|
-
width: "1em",
|
707
|
-
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
708
|
-
},
|
709
|
-
/* @__PURE__ */ React11.createElement(
|
710
|
-
"path",
|
711
|
-
{
|
712
|
-
fillRule: "evenodd",
|
713
|
-
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
714
|
-
}
|
715
|
-
)
|
716
|
-
)
|
717
|
-
));
|
718
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
719
|
-
var DropdownMenuSubContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
720
|
-
DropdownMenuPrimitive.SubContent,
|
721
|
-
{
|
722
|
-
ref,
|
723
|
-
className: cn(
|
724
|
-
"hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
725
|
-
className
|
726
|
-
),
|
727
|
-
...props
|
728
|
-
}
|
729
|
-
));
|
730
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
731
|
-
var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React11.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React11.createElement(
|
732
|
-
DropdownMenuPrimitive.Content,
|
733
|
-
{
|
734
|
-
ref,
|
735
|
-
sideOffset,
|
736
|
-
className: cn(
|
737
|
-
"hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
738
|
-
className
|
739
|
-
),
|
740
|
-
...props
|
741
|
-
}
|
742
|
-
)));
|
743
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
744
|
-
var DropdownMenuItem = React11.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
745
|
-
return /* @__PURE__ */ React11.createElement("a", { href: slug }, /* @__PURE__ */ React11.createElement(
|
746
|
-
DropdownMenuPrimitive.Item,
|
747
|
-
{
|
748
|
-
disabled: props.disabled,
|
749
|
-
ref,
|
750
|
-
className: cn(
|
751
|
-
"hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
752
|
-
inset && "hawa-pl-8",
|
753
|
-
props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
|
754
|
-
className
|
755
|
-
),
|
756
|
-
...props
|
757
|
-
},
|
758
|
-
/* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
759
|
-
props.end && props.end,
|
760
|
-
!props.end && props.shortcut && /* @__PURE__ */ React11.createElement(DropdownMenuShortcut, null, props.shortcut),
|
761
|
-
!props.end && badged && /* @__PURE__ */ React11.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
762
|
-
));
|
763
|
-
});
|
764
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
765
|
-
var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
766
|
-
DropdownMenuPrimitive.CheckboxItem,
|
767
|
-
{
|
768
|
-
ref,
|
769
|
-
className: cn(
|
770
|
-
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
771
|
-
className
|
772
|
-
),
|
773
|
-
checked,
|
774
|
-
...props
|
775
|
-
},
|
776
|
-
/* @__PURE__ */ React11.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React11.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React11.createElement(
|
777
|
-
"svg",
|
778
|
-
{
|
779
|
-
"aria-label": "Check Mark",
|
780
|
-
stroke: "currentColor",
|
781
|
-
fill: "currentColor",
|
782
|
-
strokeWidth: "0",
|
783
|
-
viewBox: "0 0 512 512",
|
784
|
-
height: "0.60em",
|
785
|
-
width: "0.60em"
|
786
|
-
},
|
787
|
-
/* @__PURE__ */ React11.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
788
|
-
), " ")),
|
789
|
-
children
|
790
|
-
));
|
791
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
792
|
-
var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
793
|
-
DropdownMenuPrimitive.RadioItem,
|
794
|
-
{
|
795
|
-
ref,
|
796
|
-
className: cn(
|
797
|
-
"hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
798
|
-
className
|
799
|
-
),
|
800
|
-
...props
|
801
|
-
},
|
802
|
-
/* @__PURE__ */ React11.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React11.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React11.createElement(
|
803
|
-
"svg",
|
804
|
-
{
|
805
|
-
xmlns: "http://www.w3.org/2000/svg",
|
806
|
-
width: "24",
|
807
|
-
"aria-label": "Circle",
|
808
|
-
height: "24",
|
809
|
-
viewBox: "0 0 24 24",
|
810
|
-
fill: "none",
|
811
|
-
stroke: "currentColor",
|
812
|
-
strokeWidth: "2",
|
813
|
-
strokeLinecap: "round",
|
814
|
-
strokeLinejoin: "round",
|
815
|
-
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
816
|
-
},
|
817
|
-
/* @__PURE__ */ React11.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
818
|
-
))),
|
819
|
-
children
|
820
|
-
));
|
821
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
822
|
-
var DropdownMenuLabel = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
823
|
-
DropdownMenuPrimitive.Label,
|
824
|
-
{
|
825
|
-
ref,
|
826
|
-
className: cn(
|
827
|
-
"hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
|
828
|
-
inset && "hawa-pl-8",
|
829
|
-
className
|
830
|
-
),
|
831
|
-
...props
|
832
|
-
}
|
833
|
-
));
|
834
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
835
|
-
var DropdownMenuSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
836
|
-
DropdownMenuPrimitive.Separator,
|
837
|
-
{
|
838
|
-
ref,
|
839
|
-
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
|
840
|
-
...props
|
841
|
-
}
|
842
|
-
));
|
843
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
844
|
-
var DropdownMenuShortcut = ({
|
845
|
-
className,
|
846
|
-
...props
|
847
|
-
}) => {
|
848
|
-
return /* @__PURE__ */ React11.createElement(
|
849
|
-
"span",
|
850
|
-
{
|
851
|
-
className: cn(
|
852
|
-
"hawa-text-xs hawa-tracking-widest hawa-opacity-60",
|
853
|
-
className
|
854
|
-
),
|
855
|
-
...props
|
856
|
-
}
|
857
|
-
);
|
858
|
-
};
|
859
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
860
|
-
|
861
|
-
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
862
|
-
var import_react8 = __toESM(require("react"));
|
863
|
-
|
864
|
-
// blocks/cards/LandingCard.tsx
|
865
|
-
var import_react10 = __toESM(require("react"));
|
866
|
-
|
867
|
-
// elements/radio/Radio.tsx
|
868
|
-
var import_react11 = __toESM(require("react"));
|
869
|
-
|
870
|
-
// elements/label/Label.tsx
|
871
|
-
var React15 = __toESM(require("react"));
|
872
|
-
var Label2 = React15.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React15.createElement(
|
873
|
-
"label",
|
874
|
-
{
|
875
|
-
ref,
|
876
|
-
className: cn(
|
877
|
-
"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
|
878
|
-
className
|
879
|
-
),
|
880
|
-
...props
|
881
|
-
},
|
882
|
-
children,
|
883
|
-
required && /* @__PURE__ */ React15.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
884
|
-
), hint && /* @__PURE__ */ React15.createElement(
|
885
|
-
Tooltip,
|
886
|
-
{
|
887
|
-
content: hint,
|
888
|
-
side: hintSide,
|
889
|
-
triggerProps: {
|
890
|
-
tabIndex: -1,
|
891
|
-
onClick: (event) => event.preventDefault()
|
892
|
-
}
|
893
|
-
},
|
894
|
-
/* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement(
|
895
|
-
"svg",
|
896
|
-
{
|
897
|
-
xmlns: "http://www.w3.org/2000/svg",
|
898
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
899
|
-
viewBox: "0 0 24 24",
|
900
|
-
fill: "none",
|
901
|
-
stroke: "currentColor",
|
902
|
-
strokeWidth: "2",
|
903
|
-
strokeLinecap: "round",
|
904
|
-
strokeLinejoin: "round"
|
905
|
-
},
|
906
|
-
/* @__PURE__ */ React15.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
907
|
-
/* @__PURE__ */ React15.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
908
|
-
/* @__PURE__ */ React15.createElement("path", { d: "M12 17h.01" })
|
909
|
-
))
|
910
|
-
)));
|
911
|
-
Label2.displayName = "Label";
|
912
|
-
|
913
|
-
// elements/radio/Radio.tsx
|
914
|
-
var Radio = ({
|
915
|
-
design = "default",
|
916
|
-
width = "default",
|
917
|
-
size = "default",
|
918
|
-
orientation = "horizontal",
|
919
|
-
name,
|
920
|
-
labelProps,
|
921
|
-
tabsContainerClassName,
|
922
|
-
onChange,
|
923
|
-
...props
|
924
|
-
}) => {
|
925
|
-
var _a, _b, _c;
|
926
|
-
const [selectedOption, setSelectedOption] = (0, import_react11.useState)(props.defaultValue);
|
927
|
-
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
928
|
-
let inactiveTabStyle = "hawa-inline-block hawa-w-full hawa-transition-all hover:hawa-bg-muted hawa-bg-primary-foreground dark:hover:hawa-text-white";
|
929
|
-
let orientationStyle = {
|
930
|
-
horizontal: "hawa-flex hawa-flex-row",
|
931
|
-
vertical: "hawa-flex hawa-flex-col"
|
932
|
-
};
|
933
|
-
let tabSizeStyle = {
|
934
|
-
default: "hawa-py-2 hawa-px-4 hawa-text-sm",
|
935
|
-
lg: "hawa-py-2 hawa-px-4",
|
936
|
-
sm: "hawa-p-1.5 hawa-text-xs",
|
937
|
-
xs: "hawa-p-1 hawa-text-[10px]"
|
938
|
-
};
|
939
|
-
let widthStyle = {
|
940
|
-
none: "",
|
941
|
-
default: "hawa-max-w-fit",
|
942
|
-
full: "hawa-w-full"
|
943
|
-
};
|
944
|
-
const [parentDirection, setParentDirection] = import_react11.default.useState(
|
945
|
-
null
|
946
|
-
);
|
947
|
-
const parentRef = (0, import_react11.useRef)(null);
|
948
|
-
(0, import_react11.useEffect)(() => {
|
949
|
-
var _a2;
|
950
|
-
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
951
|
-
if (parentNode) {
|
952
|
-
const dir = window.getComputedStyle(parentNode).direction;
|
953
|
-
setParentDirection(dir);
|
954
|
-
}
|
955
|
-
});
|
956
|
-
const handleChange = (opt) => {
|
957
|
-
setSelectedOption(opt.value);
|
958
|
-
if (onChange) {
|
959
|
-
onChange(opt.value);
|
960
|
-
} else {
|
961
|
-
console.log("onChange was not provided");
|
962
|
-
}
|
963
|
-
};
|
964
|
-
switch (design) {
|
965
|
-
case "tabs":
|
966
|
-
return /* @__PURE__ */ import_react11.default.createElement(
|
967
|
-
"ul",
|
968
|
-
{
|
969
|
-
ref: parentRef,
|
970
|
-
className: cn(
|
971
|
-
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
972
|
-
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
973
|
-
orientationStyle[orientation],
|
974
|
-
widthStyle[width],
|
975
|
-
tabsContainerClassName
|
976
|
-
)
|
977
|
-
},
|
978
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
|
979
|
-
"li",
|
980
|
-
{
|
981
|
-
"aria-current": "page",
|
982
|
-
onClick: () => handleChange(opt),
|
983
|
-
className: cn(
|
984
|
-
"hawa-w-full hawa-cursor-pointer ",
|
985
|
-
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
986
|
-
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
987
|
-
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
988
|
-
tabSizeStyle[size],
|
989
|
-
"hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
990
|
-
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
991
|
-
),
|
992
|
-
key: o
|
993
|
-
},
|
994
|
-
opt.icon && opt.icon,
|
995
|
-
opt.label
|
996
|
-
))
|
997
|
-
);
|
998
|
-
case "bordered":
|
999
|
-
return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
|
1000
|
-
"div",
|
1001
|
-
{
|
1002
|
-
className: cn(
|
1003
|
-
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
1004
|
-
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
1005
|
-
),
|
1006
|
-
key: i + 1
|
1007
|
-
},
|
1008
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
1009
|
-
"input",
|
1010
|
-
{
|
1011
|
-
disabled: opt.disabled,
|
1012
|
-
id: opt.value.toString(),
|
1013
|
-
type: "radio",
|
1014
|
-
value: opt.value,
|
1015
|
-
name,
|
1016
|
-
onChange: () => handleChange(opt)
|
1017
|
-
}
|
1018
|
-
),
|
1019
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
1020
|
-
"label",
|
1021
|
-
{
|
1022
|
-
htmlFor: opt.value.toString(),
|
1023
|
-
className: cn(
|
1024
|
-
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
1025
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
1026
|
-
)
|
1027
|
-
},
|
1028
|
-
opt.label
|
1029
|
-
)
|
1030
|
-
))));
|
1031
|
-
case "cards":
|
1032
|
-
return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
|
1033
|
-
"input",
|
1034
|
-
{
|
1035
|
-
type: "radio",
|
1036
|
-
id: opt.value.toString(),
|
1037
|
-
name,
|
1038
|
-
value: opt.value.toString(),
|
1039
|
-
className: "hawa-peer hawa-hidden",
|
1040
|
-
required: true,
|
1041
|
-
disabled: opt.disabled
|
1042
|
-
}
|
1043
|
-
), /* @__PURE__ */ import_react11.default.createElement(
|
1044
|
-
"label",
|
1045
|
-
{
|
1046
|
-
htmlFor: opt.value.toString(),
|
1047
|
-
className: cn(
|
1048
|
-
"hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
1049
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
|
1050
|
-
)
|
1051
|
-
},
|
1052
|
-
/* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
1053
|
-
))));
|
1054
|
-
default:
|
1055
|
-
return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
|
1056
|
-
"div",
|
1057
|
-
{
|
1058
|
-
className: cn(
|
1059
|
-
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
1060
|
-
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
1061
|
-
),
|
1062
|
-
key: i + 1
|
1063
|
-
},
|
1064
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
1065
|
-
"input",
|
1066
|
-
{
|
1067
|
-
disabled: opt.disabled,
|
1068
|
-
id: opt.value.toString(),
|
1069
|
-
type: "radio",
|
1070
|
-
value: opt.value,
|
1071
|
-
name,
|
1072
|
-
onChange: () => handleChange(opt)
|
1073
|
-
}
|
1074
|
-
),
|
1075
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
1076
|
-
"label",
|
1077
|
-
{
|
1078
|
-
htmlFor: opt.value.toString(),
|
1079
|
-
className: cn(
|
1080
|
-
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
1081
|
-
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
1082
|
-
)
|
1083
|
-
},
|
1084
|
-
opt.label
|
1085
|
-
)
|
1086
|
-
))), /* @__PURE__ */ import_react11.default.createElement(
|
1087
|
-
"p",
|
1088
|
-
{
|
1089
|
-
className: cn(
|
1090
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
1091
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
1092
|
-
)
|
1093
|
-
},
|
1094
|
-
props.helperText
|
1095
|
-
));
|
1096
|
-
}
|
1097
|
-
};
|
1098
|
-
|
1099
|
-
// blocks/pricing/PricingPlans.tsx
|
1100
|
-
var PricingPlans = ({
|
1101
|
-
mainContainerProps,
|
1102
|
-
cardsContainerProps,
|
1103
|
-
...props
|
1104
|
-
}) => {
|
1105
|
-
return /* @__PURE__ */ import_react12.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react12.default.createElement(
|
1106
|
-
Radio,
|
1107
|
-
{
|
1108
|
-
design: "tabs",
|
1109
|
-
defaultValue: props.currentCycle.value,
|
1110
|
-
options: props.billingCycles,
|
1111
|
-
onChange: (e) => {
|
1112
|
-
if (props.onCycleChange) {
|
1113
|
-
props.onCycleChange(e);
|
1114
|
-
}
|
1115
|
-
}
|
1116
|
-
}
|
1117
|
-
), /* @__PURE__ */ import_react12.default.createElement(
|
1118
|
-
Radio,
|
1119
|
-
{
|
1120
|
-
design: "tabs",
|
1121
|
-
defaultValue: props.currentCurrency.value,
|
1122
|
-
options: props.currencies,
|
1123
|
-
onChange: (e) => {
|
1124
|
-
if (props.onCurrencyChange) {
|
1125
|
-
props.onCurrencyChange(e);
|
1126
|
-
}
|
1127
|
-
}
|
1128
|
-
}
|
1129
|
-
)), /* @__PURE__ */ import_react12.default.createElement(
|
1130
|
-
"div",
|
1131
|
-
{
|
1132
|
-
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
1133
|
-
...cardsContainerProps
|
1134
|
-
},
|
1135
|
-
props.plans.map((plan, index) => {
|
1136
|
-
var _a, _b;
|
1137
|
-
return /* @__PURE__ */ import_react12.default.createElement(
|
1138
|
-
PricingCard,
|
1139
|
-
{
|
1140
|
-
key: index,
|
1141
|
-
onPlanClicked: () => {
|
1142
|
-
var _a2, _b2;
|
1143
|
-
if (props.onPlanClicked) {
|
1144
|
-
let clickedData = {
|
1145
|
-
// plan: plan.id,
|
1146
|
-
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
1147
|
-
cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
|
1148
|
-
...plan
|
1149
|
-
};
|
1150
|
-
props.onPlanClicked(clickedData);
|
1151
|
-
}
|
1152
|
-
},
|
1153
|
-
...plan,
|
1154
|
-
price: plan.price,
|
1155
|
-
texts: {
|
1156
|
-
...plan.texts,
|
1157
|
-
currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
|
1158
|
-
cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
|
1159
|
-
}
|
1160
|
-
}
|
1161
|
-
);
|
1162
|
-
})
|
1163
|
-
));
|
1164
|
-
};
|
1165
|
-
|
1166
|
-
// blocks/pricing/ComparingPlans.tsx
|
1167
|
-
var import_react16 = __toESM(require("react"));
|
1168
|
-
|
1169
|
-
// elements/scrollArea/ScrollArea.tsx
|
1170
|
-
var React18 = __toESM(require("react"));
|
1171
|
-
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
1172
|
-
var ScrollArea = React18.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1173
|
-
ScrollAreaPrimitive.Root,
|
1174
|
-
{
|
1175
|
-
ref,
|
1176
|
-
className: cn("hawa-relative hawa-overflow-hidden", className),
|
1177
|
-
...props
|
1178
|
-
},
|
1179
|
-
/* @__PURE__ */ React18.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
1180
|
-
/* @__PURE__ */ React18.createElement(ScrollBar, { orientation }),
|
1181
|
-
/* @__PURE__ */ React18.createElement(ScrollAreaPrimitive.Corner, null)
|
1182
|
-
));
|
1183
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
1184
|
-
var ScrollBar = React18.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1185
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
1186
|
-
{
|
1187
|
-
ref,
|
1188
|
-
orientation,
|
1189
|
-
className: cn(
|
1190
|
-
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
1191
|
-
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
1192
|
-
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
1193
|
-
className
|
1194
|
-
),
|
1195
|
-
...props
|
1196
|
-
},
|
1197
|
-
/* @__PURE__ */ React18.createElement(
|
1198
|
-
ScrollAreaPrimitive.ScrollAreaThumb,
|
1199
|
-
{
|
1200
|
-
className: cn(
|
1201
|
-
"hawa-relative hawa-rounded-full hawa-bg-border",
|
1202
|
-
orientation === "vertical" && "hawa-flex-1"
|
1203
|
-
)
|
1204
|
-
}
|
1205
|
-
)
|
1206
|
-
));
|
1207
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
1208
|
-
|
1209
|
-
// icons/Emojis.tsx
|
1210
|
-
var import_react13 = __toESM(require("react"));
|
1211
|
-
|
1212
|
-
// icons/InputIcons.tsx
|
1213
|
-
var import_react14 = __toESM(require("react"));
|
1214
|
-
|
1215
|
-
// icons/CommonIcons.tsx
|
1216
|
-
var import_react15 = __toESM(require("react"));
|
1217
|
-
var CheckMark = ({ size = "default", className }) => {
|
1218
|
-
let sizeStyles = {
|
1219
|
-
default: "hawa-h-5 hawa-w-5",
|
1220
|
-
sm: "hawa-h-3 hawa-w-3"
|
1221
|
-
};
|
1222
|
-
return /* @__PURE__ */ import_react15.default.createElement(
|
1223
|
-
"svg",
|
1224
|
-
{
|
1225
|
-
className: cn(sizeStyles[size], className),
|
1226
|
-
"aria-hidden": "true",
|
1227
|
-
fill: "currentColor",
|
1228
|
-
viewBox: "0 0 20 20"
|
1229
|
-
},
|
1230
|
-
/* @__PURE__ */ import_react15.default.createElement(
|
1231
|
-
"path",
|
1232
|
-
{
|
1233
|
-
fillRule: "evenodd",
|
1234
|
-
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
1235
|
-
clipRule: "evenodd"
|
1236
|
-
}
|
1237
|
-
)
|
1238
|
-
);
|
1239
|
-
};
|
1240
|
-
var UncheckMark = ({ size = "default", className }) => {
|
1241
|
-
let sizeStyles = {
|
1242
|
-
default: "hawa-h-5 hawa-w-5",
|
1243
|
-
sm: "hawa-h-3 hawa-w-3"
|
1244
|
-
};
|
1245
|
-
return /* @__PURE__ */ import_react15.default.createElement(
|
1246
|
-
"svg",
|
1247
|
-
{
|
1248
|
-
className: cn(sizeStyles[size], className),
|
1249
|
-
"aria-hidden": "true",
|
1250
|
-
fill: "currentColor",
|
1251
|
-
viewBox: "0 0 20 20"
|
1252
|
-
},
|
1253
|
-
/* @__PURE__ */ import_react15.default.createElement(
|
1254
|
-
"path",
|
1255
|
-
{
|
1256
|
-
fillRule: "evenodd",
|
1257
|
-
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
1258
|
-
clipRule: "evenodd"
|
1259
|
-
}
|
1260
|
-
)
|
1261
|
-
);
|
1262
|
-
};
|
1263
|
-
|
1264
|
-
// blocks/pricing/ComparingPlans.tsx
|
1265
|
-
var ComparingPlans = (props) => {
|
1266
|
-
const uniqueFeatures = Array.from(
|
1267
|
-
new Set(
|
1268
|
-
props.plans.flatMap(
|
1269
|
-
(plan) => plan.features.map((feature) => feature.text)
|
1270
|
-
)
|
1271
|
-
)
|
1272
|
-
);
|
1273
|
-
return /* @__PURE__ */ import_react16.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ import_react16.default.createElement(
|
1274
|
-
Radio,
|
1275
|
-
{
|
1276
|
-
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
1277
|
-
width: "none",
|
1278
|
-
design: "tabs",
|
1279
|
-
defaultValue: props.currentCycle.value,
|
1280
|
-
options: props.billingCycles,
|
1281
|
-
onChange: (e) => {
|
1282
|
-
if (props.onCycleChange) {
|
1283
|
-
props.onCycleChange(e);
|
1284
|
-
}
|
1285
|
-
}
|
1286
|
-
}
|
1287
|
-
), /* @__PURE__ */ import_react16.default.createElement(
|
1288
|
-
Radio,
|
1289
|
-
{
|
1290
|
-
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
1291
|
-
width: "none",
|
1292
|
-
design: "tabs",
|
1293
|
-
defaultValue: props.currentCurrency.value,
|
1294
|
-
options: props.currencies,
|
1295
|
-
onChange: (e) => {
|
1296
|
-
if (props.onCurrencyChange) {
|
1297
|
-
props.onCurrencyChange(e);
|
1298
|
-
}
|
1299
|
-
}
|
1300
|
-
}
|
1301
|
-
)), /* @__PURE__ */ import_react16.default.createElement(
|
1302
|
-
"div",
|
1303
|
-
{
|
1304
|
-
className: cn(
|
1305
|
-
"hawa-sticky hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-rounded-t hawa-border hawa-p-4 hawa-text-sm hawa-font-medium",
|
1306
|
-
"hawa-bg-primary-foreground"
|
1307
|
-
),
|
1308
|
-
style: {
|
1309
|
-
top: props.topPosition || 0
|
1310
|
-
}
|
1311
|
-
},
|
1312
|
-
/* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
1313
|
-
props.plans.map((plan, i) => /* @__PURE__ */ import_react16.default.createElement(
|
1314
|
-
"div",
|
1315
|
-
{
|
1316
|
-
key: i,
|
1317
|
-
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
1318
|
-
},
|
1319
|
-
/* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react16.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react16.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react16.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, /* @__PURE__ */ import_react16.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react16.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react16.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
1320
|
-
))
|
1321
|
-
), /* @__PURE__ */ import_react16.default.createElement(
|
1322
|
-
ScrollArea,
|
1323
|
-
{
|
1324
|
-
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
1325
|
-
dir: props.direction
|
1326
|
-
},
|
1327
|
-
uniqueFeatures.map((featureText, featureIndex) => {
|
1328
|
-
var _a, _b, _c, _d;
|
1329
|
-
return /* @__PURE__ */ import_react16.default.createElement(
|
1330
|
-
"div",
|
1331
|
-
{
|
1332
|
-
key: featureIndex,
|
1333
|
-
className: cn(
|
1334
|
-
"hawa-border-foreground-muted hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:text-white",
|
1335
|
-
featureIndex === 0 ? "" : "hawa-border-t"
|
1336
|
-
)
|
1337
|
-
},
|
1338
|
-
/* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
1339
|
-
(plan) => plan.features.some(
|
1340
|
-
(feature) => feature.text === featureText && feature.hint
|
1341
|
-
)
|
1342
|
-
) && /* @__PURE__ */ import_react16.default.createElement(
|
1343
|
-
Tooltip,
|
1344
|
-
{
|
1345
|
-
side: "right",
|
1346
|
-
content: (_b = (_a = props.plans.find(
|
1347
|
-
(plan) => {
|
1348
|
-
var _a2;
|
1349
|
-
return (_a2 = plan.features.find(
|
1350
|
-
(feature) => feature.text === featureText
|
1351
|
-
)) == null ? void 0 : _a2.hint;
|
1352
|
-
}
|
1353
|
-
)) == null ? void 0 : _a.features.find(
|
1354
|
-
(feature) => feature.text === featureText
|
1355
|
-
)) == null ? void 0 : _b.hint
|
1356
|
-
},
|
1357
|
-
/* @__PURE__ */ import_react16.default.createElement(
|
1358
|
-
"svg",
|
1359
|
-
{
|
1360
|
-
stroke: "currentColor",
|
1361
|
-
fill: "currentColor",
|
1362
|
-
strokeWidth: "0",
|
1363
|
-
viewBox: "0 0 16 16",
|
1364
|
-
height: "1em",
|
1365
|
-
width: "1em"
|
1366
|
-
},
|
1367
|
-
/* @__PURE__ */ import_react16.default.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
1368
|
-
)
|
1369
|
-
), props.plans.some(
|
1370
|
-
(plan) => plan.features.some(
|
1371
|
-
(feature) => feature.text === featureText && feature.soon
|
1372
|
-
)
|
1373
|
-
) && /* @__PURE__ */ import_react16.default.createElement(
|
1374
|
-
Chip,
|
1375
|
-
{
|
1376
|
-
label: ((_d = (_c = props.plans.find(
|
1377
|
-
(plan) => plan.features.some(
|
1378
|
-
(feature) => feature.text === featureText && feature.soon
|
1379
|
-
)
|
1380
|
-
)) == null ? void 0 : _c.texts) == null ? void 0 : _d.soon) || "Soon"
|
1381
|
-
}
|
1382
|
-
)),
|
1383
|
-
props.plans.map((plan, planIndex) => {
|
1384
|
-
const feature = plan.features.find(
|
1385
|
-
(f) => f.text === featureText
|
1386
|
-
);
|
1387
|
-
return /* @__PURE__ */ import_react16.default.createElement(
|
1388
|
-
"div",
|
1389
|
-
{
|
1390
|
-
key: planIndex,
|
1391
|
-
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
1392
|
-
},
|
1393
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ import_react16.default.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ import_react16.default.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
1394
|
-
);
|
1395
|
-
})
|
1396
|
-
);
|
1397
|
-
})
|
1398
|
-
), props.showButtons && /* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5" }, /* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
1399
|
-
var _a;
|
1400
|
-
return /* @__PURE__ */ import_react16.default.createElement(
|
1401
|
-
"div",
|
1402
|
-
{
|
1403
|
-
key: i,
|
1404
|
-
className: "hawa-flex hawa-items-center hawa-justify-center"
|
1405
|
-
},
|
1406
|
-
/* @__PURE__ */ import_react16.default.createElement(
|
1407
|
-
Button,
|
1408
|
-
{
|
1409
|
-
className: "hawa-w-full hawa-max-w-xs",
|
1410
|
-
onClick: () => {
|
1411
|
-
var _a2, _b;
|
1412
|
-
if (props.onPlanClicked) {
|
1413
|
-
let clickedData = {
|
1414
|
-
// plan: plan.id,
|
1415
|
-
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
1416
|
-
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
1417
|
-
...plan
|
1418
|
-
};
|
1419
|
-
props.onPlanClicked(clickedData);
|
1420
|
-
}
|
1421
|
-
}
|
1422
|
-
},
|
1423
|
-
((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
|
1424
|
-
)
|
1425
|
-
);
|
1426
|
-
})));
|
1427
|
-
};
|
1428
|
-
|
1429
|
-
// blocks/pricing/HorizontalPricing.tsx
|
1430
|
-
var import_react17 = __toESM(require("react"));
|
1431
|
-
var HorizontalPricing = (props) => {
|
1432
|
-
const [selectedCard, setSelectedCard] = (0, import_react17.useState)("");
|
1433
|
-
let data = [
|
1434
|
-
{ title: "basic", price: "$49", cycle: "/mo" },
|
1435
|
-
{ title: "business", price: "$99", cycle: "/mo" },
|
1436
|
-
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
1437
|
-
];
|
1438
|
-
return /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react17.default.createElement(
|
1439
|
-
Radio,
|
1440
|
-
{
|
1441
|
-
design: "tabs",
|
1442
|
-
options: props.currencies,
|
1443
|
-
defaultValue: props.currentCurrency
|
1444
|
-
}
|
1445
|
-
), /* @__PURE__ */ import_react17.default.createElement(
|
1446
|
-
Radio,
|
1447
|
-
{
|
1448
|
-
design: "tabs",
|
1449
|
-
options: props.billingCycles,
|
1450
|
-
defaultValue: props.currentCycle
|
1451
|
-
}
|
1452
|
-
)), data.map((d, i) => /* @__PURE__ */ import_react17.default.createElement(
|
1453
|
-
"label",
|
1454
|
-
{
|
1455
|
-
key: i,
|
1456
|
-
htmlFor: d.title,
|
1457
|
-
className: "",
|
1458
|
-
onClick: () => setSelectedCard(d.title)
|
1459
|
-
},
|
1460
|
-
/* @__PURE__ */ import_react17.default.createElement(
|
1461
|
-
"input",
|
1462
|
-
{
|
1463
|
-
type: "radio",
|
1464
|
-
name: "radio",
|
1465
|
-
id: d.title,
|
1466
|
-
className: "hawa-peer hawa-appearance-none"
|
1467
|
-
}
|
1468
|
-
),
|
1469
|
-
/* @__PURE__ */ import_react17.default.createElement(
|
1470
|
-
"div",
|
1471
|
-
{
|
1472
|
-
className: cn(
|
1473
|
-
selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20 " : "",
|
1474
|
-
"hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
|
1475
|
-
)
|
1476
|
-
},
|
1477
|
-
/* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react17.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react17.default.createElement(
|
1478
|
-
CardText,
|
1479
|
-
{
|
1480
|
-
title: "Enterprise",
|
1481
|
-
subtitle: "For startups and new businesses"
|
1482
|
-
}
|
1483
|
-
)),
|
1484
|
-
/* @__PURE__ */ import_react17.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
1485
|
-
)
|
1486
|
-
))));
|
1487
|
-
};
|
1488
|
-
var CheckIcons = () => /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement(
|
1489
|
-
"svg",
|
1490
|
-
{
|
1491
|
-
fill: "none",
|
1492
|
-
viewBox: "0 0 24 24",
|
1493
|
-
strokeWidth: "1.5",
|
1494
|
-
stroke: "currentColor",
|
1495
|
-
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
1496
|
-
},
|
1497
|
-
/* @__PURE__ */ import_react17.default.createElement(
|
1498
|
-
"path",
|
1499
|
-
{
|
1500
|
-
strokeLinecap: "round",
|
1501
|
-
strokeLinejoin: "round",
|
1502
|
-
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
1503
|
-
}
|
1504
|
-
)
|
1505
|
-
), /* @__PURE__ */ import_react17.default.createElement(
|
1506
|
-
"svg",
|
1507
|
-
{
|
1508
|
-
viewBox: "0 0 24 24",
|
1509
|
-
fill: "currentColor",
|
1510
|
-
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
1511
|
-
},
|
1512
|
-
/* @__PURE__ */ import_react17.default.createElement(
|
1513
|
-
"path",
|
1514
|
-
{
|
1515
|
-
fillRule: "evenodd",
|
1516
|
-
clipRule: "evenodd",
|
1517
|
-
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"
|
1518
|
-
}
|
1519
|
-
)
|
1520
|
-
));
|
1521
|
-
var CardText = (props) => /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ import_react17.default.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ import_react17.default.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
1522
|
-
var CardPrice = (props) => /* @__PURE__ */ import_react17.default.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ import_react17.default.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
1523
|
-
// Annotate the CommonJS export names for ESM import in node:
|
1524
|
-
0 && (module.exports = {
|
1525
|
-
ComparingPlans,
|
1526
|
-
HorizontalPricing,
|
1527
|
-
PricingPlans
|
1528
|
-
});
|