@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/codeBlock/index.js
DELETED
@@ -1,517 +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/codeBlock/index.ts
|
31
|
-
var codeBlock_exports = {};
|
32
|
-
__export(codeBlock_exports, {
|
33
|
-
CodeBlock: () => CodeBlock
|
34
|
-
});
|
35
|
-
module.exports = __toCommonJS(codeBlock_exports);
|
36
|
-
|
37
|
-
// elements/codeBlock/CodeBlock.tsx
|
38
|
-
var import_react4 = __toESM(require("react"));
|
39
|
-
|
40
|
-
// util/index.ts
|
41
|
-
var import_clsx = require("clsx");
|
42
|
-
var import_tailwind_merge = require("tailwind-merge");
|
43
|
-
function cn(...inputs) {
|
44
|
-
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
45
|
-
}
|
46
|
-
|
47
|
-
// elements/codeBlock/CodeBlock.tsx
|
48
|
-
var import_prism_react_renderer = require("prism-react-renderer");
|
49
|
-
|
50
|
-
// hooks/useClipboard.ts
|
51
|
-
var import_react = require("react");
|
52
|
-
function useClipboard({ timeout = 2e3 } = {}) {
|
53
|
-
const [error, setError] = (0, import_react.useState)(null);
|
54
|
-
const [copied, setCopied] = (0, import_react.useState)(false);
|
55
|
-
const [copyTimeout, setCopyTimeout] = (0, import_react.useState)(null);
|
56
|
-
const handleCopyResult = (value) => {
|
57
|
-
clearTimeout(copyTimeout);
|
58
|
-
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
59
|
-
setCopied(value);
|
60
|
-
};
|
61
|
-
const copy = (valueToCopy) => {
|
62
|
-
if ("clipboard" in navigator) {
|
63
|
-
navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(true)).catch((err) => setError(err));
|
64
|
-
} else {
|
65
|
-
setError(new Error("useClipboard: navigator.clipboard is not supported"));
|
66
|
-
}
|
67
|
-
};
|
68
|
-
const reset = () => {
|
69
|
-
setCopied(false);
|
70
|
-
setError(null);
|
71
|
-
clearTimeout(copyTimeout);
|
72
|
-
};
|
73
|
-
return { copy, reset, error, copied };
|
74
|
-
}
|
75
|
-
|
76
|
-
// elements/button/Button.tsx
|
77
|
-
var React2 = __toESM(require("react"));
|
78
|
-
var import_class_variance_authority = require("class-variance-authority");
|
79
|
-
|
80
|
-
// elements/loading/Loading.tsx
|
81
|
-
var import_react2 = __toESM(require("react"));
|
82
|
-
var Loading = ({
|
83
|
-
design = "spinner",
|
84
|
-
size = "sm",
|
85
|
-
themeMode = "light",
|
86
|
-
color,
|
87
|
-
...props
|
88
|
-
}) => {
|
89
|
-
let sizeStyles = {
|
90
|
-
button: "hawa-h-4 hawa-w-4",
|
91
|
-
xs: "hawa-h-1 hawa-w-1",
|
92
|
-
sm: "hawa-h-6 hawa-w-6",
|
93
|
-
normal: "hawa-h-8 hawa-w-8",
|
94
|
-
lg: "hawa-h-14 hawa-w-14",
|
95
|
-
xl: "hawa-h-24 hawa-w-24"
|
96
|
-
};
|
97
|
-
let animationStyles = {
|
98
|
-
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
99
|
-
bounce: "hawa-animate-bounce"
|
100
|
-
};
|
101
|
-
switch (design.split("-")[0]) {
|
102
|
-
case "dots":
|
103
|
-
return /* @__PURE__ */ import_react2.default.createElement(
|
104
|
-
"div",
|
105
|
-
{
|
106
|
-
className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
|
107
|
-
},
|
108
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
109
|
-
"div",
|
110
|
-
{
|
111
|
-
className: cn(
|
112
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
113
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
114
|
-
animationStyles[design.split("-")[1]],
|
115
|
-
color ? color : "hawa-bg-primary"
|
116
|
-
)
|
117
|
-
}
|
118
|
-
),
|
119
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
120
|
-
"div",
|
121
|
-
{
|
122
|
-
className: cn(
|
123
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
124
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
125
|
-
animationStyles[design.split("-")[1]],
|
126
|
-
color ? color : "hawa-bg-primary"
|
127
|
-
)
|
128
|
-
}
|
129
|
-
),
|
130
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
131
|
-
"div",
|
132
|
-
{
|
133
|
-
className: cn(
|
134
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
135
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
136
|
-
animationStyles[design.split("-")[1]],
|
137
|
-
color ? color : "hawa-bg-primary"
|
138
|
-
)
|
139
|
-
}
|
140
|
-
)
|
141
|
-
);
|
142
|
-
case "square":
|
143
|
-
return /* @__PURE__ */ import_react2.default.createElement(
|
144
|
-
"svg",
|
145
|
-
{
|
146
|
-
className: cn("squircle-container", sizeStyles[size]),
|
147
|
-
viewBox: "0 0 35 35",
|
148
|
-
height: "35",
|
149
|
-
width: "35"
|
150
|
-
},
|
151
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
152
|
-
"rect",
|
153
|
-
{
|
154
|
-
className: "squircle-track",
|
155
|
-
x: "2.5",
|
156
|
-
y: "2.5",
|
157
|
-
fill: "none",
|
158
|
-
strokeWidth: "5px",
|
159
|
-
width: "32.5",
|
160
|
-
height: "32.5"
|
161
|
-
}
|
162
|
-
),
|
163
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
164
|
-
"rect",
|
165
|
-
{
|
166
|
-
className: "square-car",
|
167
|
-
x: "2.5",
|
168
|
-
y: "2.5",
|
169
|
-
fill: "none",
|
170
|
-
strokeWidth: "5px",
|
171
|
-
width: "32.5",
|
172
|
-
height: "32.5",
|
173
|
-
pathLength: "100"
|
174
|
-
}
|
175
|
-
)
|
176
|
-
);
|
177
|
-
case "squircle":
|
178
|
-
return /* @__PURE__ */ import_react2.default.createElement(
|
179
|
-
"svg",
|
180
|
-
{
|
181
|
-
className: cn("squircle-container", sizeStyles[size]),
|
182
|
-
x: "0px",
|
183
|
-
y: "0px",
|
184
|
-
viewBox: "0 0 37 37",
|
185
|
-
height: "37",
|
186
|
-
width: "37",
|
187
|
-
preserveAspectRatio: "xMidYMid meet"
|
188
|
-
},
|
189
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
190
|
-
"path",
|
191
|
-
{
|
192
|
-
className: "squircle-track",
|
193
|
-
fill: "none",
|
194
|
-
strokeWidth: "5",
|
195
|
-
pathLength: "100",
|
196
|
-
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"
|
197
|
-
}
|
198
|
-
),
|
199
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
200
|
-
"path",
|
201
|
-
{
|
202
|
-
className: "squircle-car",
|
203
|
-
fill: "none",
|
204
|
-
strokeWidth: "5",
|
205
|
-
pathLength: "100",
|
206
|
-
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"
|
207
|
-
}
|
208
|
-
)
|
209
|
-
);
|
210
|
-
case "progress":
|
211
|
-
return /* @__PURE__ */ import_react2.default.createElement("div", { className: "progress-loading" });
|
212
|
-
case "orbit":
|
213
|
-
return /* @__PURE__ */ import_react2.default.createElement("div", { className: "orbit-container" });
|
214
|
-
default:
|
215
|
-
return /* @__PURE__ */ import_react2.default.createElement(
|
216
|
-
"svg",
|
217
|
-
{
|
218
|
-
className: cn("circle-container", sizeStyles[size]),
|
219
|
-
viewBox: "0 0 40 40",
|
220
|
-
height: "40",
|
221
|
-
width: "40"
|
222
|
-
},
|
223
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
224
|
-
"circle",
|
225
|
-
{
|
226
|
-
className: cn("circle-track", {
|
227
|
-
"hawa-stroke-primary-foreground": themeMode === "dark",
|
228
|
-
"hawa-stroke-primary": themeMode === "light"
|
229
|
-
}),
|
230
|
-
cx: "20",
|
231
|
-
cy: "20",
|
232
|
-
r: "17.5",
|
233
|
-
pathLength: "100",
|
234
|
-
strokeWidth: "5px",
|
235
|
-
fill: "none"
|
236
|
-
}
|
237
|
-
),
|
238
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
239
|
-
"circle",
|
240
|
-
{
|
241
|
-
className: cn("circle-car", {
|
242
|
-
"hawa-stroke-primary-foreground": themeMode === "dark",
|
243
|
-
"hawa-stroke-primary": themeMode === "light"
|
244
|
-
}),
|
245
|
-
cx: "20",
|
246
|
-
cy: "20",
|
247
|
-
r: "17.5",
|
248
|
-
pathLength: "100",
|
249
|
-
strokeWidth: "5px",
|
250
|
-
fill: "none"
|
251
|
-
}
|
252
|
-
)
|
253
|
-
);
|
254
|
-
}
|
255
|
-
};
|
256
|
-
|
257
|
-
// elements/button/Button.tsx
|
258
|
-
var buttonVariants = (0, import_class_variance_authority.cva)(
|
259
|
-
"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",
|
260
|
-
{
|
261
|
-
variants: {
|
262
|
-
variant: {
|
263
|
-
default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
|
264
|
-
light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
|
265
|
-
destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
|
266
|
-
outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
267
|
-
secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
|
268
|
-
ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
269
|
-
link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
|
270
|
-
combobox: "hawa-bg-background hawa-border",
|
271
|
-
neoBrutalism: "neo-brutalism"
|
272
|
-
// "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",
|
273
|
-
},
|
274
|
-
size: {
|
275
|
-
default: "hawa-h-10 hawa-px-4 hawa-py-2",
|
276
|
-
heightless: "hawa-px-4 hawa-py-4",
|
277
|
-
xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
|
278
|
-
sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
|
279
|
-
lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
|
280
|
-
xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
|
281
|
-
icon: "hawa-h-10 hawa-w-10",
|
282
|
-
smallIcon: "hawa-h-7 hawa-w-7"
|
283
|
-
}
|
284
|
-
},
|
285
|
-
defaultVariants: {
|
286
|
-
variant: "default",
|
287
|
-
size: "default"
|
288
|
-
}
|
289
|
-
}
|
290
|
-
);
|
291
|
-
var Button = React2.forwardRef(
|
292
|
-
({
|
293
|
-
className,
|
294
|
-
variant,
|
295
|
-
size,
|
296
|
-
asChild = false,
|
297
|
-
centered = true,
|
298
|
-
isLoading,
|
299
|
-
children,
|
300
|
-
...props
|
301
|
-
}, ref) => {
|
302
|
-
const Comp = "button";
|
303
|
-
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
304
|
-
return /* @__PURE__ */ React2.createElement(
|
305
|
-
Comp,
|
306
|
-
{
|
307
|
-
className: cn(
|
308
|
-
buttonVariants({ variant, size, className }),
|
309
|
-
centered && "hawa-justify-center"
|
310
|
-
// "hawa-bg-red-500"
|
311
|
-
),
|
312
|
-
ref,
|
313
|
-
...props
|
314
|
-
},
|
315
|
-
isLoading ? /* @__PURE__ */ React2.createElement(
|
316
|
-
Loading,
|
317
|
-
{
|
318
|
-
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
319
|
-
themeMode: variant === "outline" ? "light" : "dark",
|
320
|
-
color: loadingColor,
|
321
|
-
size: size === "sm" || size === "xs" ? "xs" : "button"
|
322
|
-
}
|
323
|
-
) : children
|
324
|
-
);
|
325
|
-
}
|
326
|
-
);
|
327
|
-
Button.displayName = "Button";
|
328
|
-
|
329
|
-
// elements/tooltip/Tooltip.tsx
|
330
|
-
var import_react3 = __toESM(require("react"));
|
331
|
-
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
332
|
-
var TooltipContent = import_react3.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react3.default.createElement(
|
333
|
-
TooltipPrimitive.Content,
|
334
|
-
{
|
335
|
-
ref,
|
336
|
-
sideOffset,
|
337
|
-
className: cn(
|
338
|
-
"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",
|
339
|
-
className
|
340
|
-
),
|
341
|
-
...props
|
342
|
-
}
|
343
|
-
));
|
344
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
345
|
-
var TooltipArrow = import_react3.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react3.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
346
|
-
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
347
|
-
var Tooltip = ({
|
348
|
-
side,
|
349
|
-
open,
|
350
|
-
content,
|
351
|
-
children,
|
352
|
-
defaultOpen,
|
353
|
-
onOpenChange,
|
354
|
-
triggerProps,
|
355
|
-
contentProps,
|
356
|
-
providerProps,
|
357
|
-
delayDuration = 300,
|
358
|
-
...props
|
359
|
-
}) => {
|
360
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
361
|
-
TooltipPrimitive.TooltipProvider,
|
362
|
-
{
|
363
|
-
delayDuration,
|
364
|
-
...providerProps
|
365
|
-
},
|
366
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
367
|
-
TooltipPrimitive.Root,
|
368
|
-
{
|
369
|
-
open,
|
370
|
-
defaultOpen,
|
371
|
-
onOpenChange,
|
372
|
-
...props
|
373
|
-
},
|
374
|
-
/* @__PURE__ */ import_react3.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
375
|
-
/* @__PURE__ */ import_react3.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
|
376
|
-
)
|
377
|
-
);
|
378
|
-
};
|
379
|
-
|
380
|
-
// elements/codeBlock/CodeBlock.tsx
|
381
|
-
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
382
|
-
require("prismjs/components/prism-bash");
|
383
|
-
var CodeBlock = ({
|
384
|
-
tabs,
|
385
|
-
code,
|
386
|
-
fileName,
|
387
|
-
className,
|
388
|
-
language = "javascript",
|
389
|
-
// default to JavaScript if no language is provided
|
390
|
-
width = "full",
|
391
|
-
...props
|
392
|
-
}) => {
|
393
|
-
const clipboard = useClipboard();
|
394
|
-
const [selectedTab, setSelectedTab] = (0, import_react4.useState)(0);
|
395
|
-
const theme = import_prism_react_renderer.themes.oceanicNext;
|
396
|
-
let widthStyles = {
|
397
|
-
full: "hawa-w-full",
|
398
|
-
md: "hawa-w-full hawa-max-w-md",
|
399
|
-
sm: "hawa-w-full hawa-max-w-sm",
|
400
|
-
xs: "hawa-w-full hawa-max-w-xs"
|
401
|
-
};
|
402
|
-
return /* @__PURE__ */ import_react4.default.createElement(
|
403
|
-
"div",
|
404
|
-
{
|
405
|
-
className: cn(
|
406
|
-
widthStyles[width],
|
407
|
-
"hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-text-white sm:hawa-text-base",
|
408
|
-
className
|
409
|
-
)
|
410
|
-
},
|
411
|
-
fileName && /* @__PURE__ */ import_react4.default.createElement(
|
412
|
-
"div",
|
413
|
-
{
|
414
|
-
className: cn(
|
415
|
-
"hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground",
|
416
|
-
fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15"
|
417
|
-
)
|
418
|
-
},
|
419
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
420
|
-
"div",
|
421
|
-
{
|
422
|
-
className: cn(
|
423
|
-
"hawa-font-mono hawa-w-full hawa-max-w-[52px] hawa-rounded-inner hawa-p-1 hawa-py-0.5 hawa-text-center hawa-text-[0.75rem]"
|
424
|
-
)
|
425
|
-
},
|
426
|
-
fileName
|
427
|
-
)
|
428
|
-
),
|
429
|
-
tabs && /* @__PURE__ */ import_react4.default.createElement(
|
430
|
-
"div",
|
431
|
-
{
|
432
|
-
className: cn(
|
433
|
-
// hawa-bg-gray-300 dark:hawa-bg-red-600
|
434
|
-
"hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-1 hawa-bg-primary/15 hawa-pb-0 hawa-font-mono hawa-text-foreground",
|
435
|
-
tabs && fileName && "hawa-rounded-t-none"
|
436
|
-
)
|
437
|
-
},
|
438
|
-
tabs.map((tab, i) => /* @__PURE__ */ import_react4.default.createElement(
|
439
|
-
"div",
|
440
|
-
{
|
441
|
-
key: i,
|
442
|
-
className: cn(
|
443
|
-
selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
|
444
|
-
)
|
445
|
-
},
|
446
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
447
|
-
"div",
|
448
|
-
{
|
449
|
-
onClick: () => setSelectedTab(i),
|
450
|
-
className: cn(
|
451
|
-
"hawa-mb-0.5 hawa-w-full hawa-max-w-[52px] hawa-cursor-pointer hawa-rounded-inner hawa-p-2 hawa-py-0.5 hawa-text-center hawa-text-[0.7rem] hawa-transition-all hover:hawa-bg-muted-foreground/20"
|
452
|
-
)
|
453
|
-
},
|
454
|
-
tab.title
|
455
|
-
)
|
456
|
-
))
|
457
|
-
),
|
458
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
459
|
-
"div",
|
460
|
-
{
|
461
|
-
className: cn(
|
462
|
-
"hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-700 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
|
463
|
-
tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
|
464
|
-
)
|
465
|
-
},
|
466
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
467
|
-
import_prism_react_renderer.Highlight,
|
468
|
-
{
|
469
|
-
theme,
|
470
|
-
code: tabs ? tabs[selectedTab].code : code || "",
|
471
|
-
language
|
472
|
-
},
|
473
|
-
({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react4.default.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-font-mono hawa-text-foreground" }, tokens.map((line, i) => /* @__PURE__ */ import_react4.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react4.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react4.default.createElement("span", { key, ...getTokenProps({ token }) })))))
|
474
|
-
),
|
475
|
-
/* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ import_react4.default.createElement(
|
476
|
-
Tooltip,
|
477
|
-
{
|
478
|
-
open: clipboard.copied,
|
479
|
-
side: "left",
|
480
|
-
content: /* @__PURE__ */ import_react4.default.createElement("div", null, "Copied!"),
|
481
|
-
triggerProps: {
|
482
|
-
asChild: true
|
483
|
-
}
|
484
|
-
},
|
485
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
486
|
-
Button,
|
487
|
-
{
|
488
|
-
size: "icon",
|
489
|
-
onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
|
490
|
-
variant: "outline",
|
491
|
-
className: "hawa-text-gray-200 hawa-opacity-50 "
|
492
|
-
},
|
493
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
494
|
-
"svg",
|
495
|
-
{
|
496
|
-
"aria-label": "Copy",
|
497
|
-
stroke: "currentColor",
|
498
|
-
fill: "none",
|
499
|
-
strokeWidth: "2",
|
500
|
-
viewBox: "0 0 24 24",
|
501
|
-
strokeLinecap: "round",
|
502
|
-
strokeLinejoin: "round",
|
503
|
-
height: "1em",
|
504
|
-
width: "1em"
|
505
|
-
},
|
506
|
-
/* @__PURE__ */ import_react4.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
507
|
-
/* @__PURE__ */ import_react4.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
508
|
-
)
|
509
|
-
)
|
510
|
-
))
|
511
|
-
)
|
512
|
-
);
|
513
|
-
};
|
514
|
-
// Annotate the CommonJS export names for ESM import in node:
|
515
|
-
0 && (module.exports = {
|
516
|
-
CodeBlock
|
517
|
-
});
|