@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/carousel/index.js
DELETED
@@ -1,193 +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/carousel/index.ts
|
31
|
-
var carousel_exports = {};
|
32
|
-
__export(carousel_exports, {
|
33
|
-
Carousel: () => Carousel
|
34
|
-
});
|
35
|
-
module.exports = __toCommonJS(carousel_exports);
|
36
|
-
|
37
|
-
// elements/carousel/Carousel.tsx
|
38
|
-
var import_react = __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/carousel/Carousel.tsx
|
48
|
-
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
49
|
-
var Carousel = ({
|
50
|
-
items,
|
51
|
-
showArrows,
|
52
|
-
options,
|
53
|
-
autoplay,
|
54
|
-
direction = "ltr",
|
55
|
-
autoplayInterval = 3e3,
|
56
|
-
...props
|
57
|
-
}) => {
|
58
|
-
const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
|
59
|
-
...options,
|
60
|
-
direction,
|
61
|
-
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
62
|
-
});
|
63
|
-
const [selectedIndex, setSelectedIndex] = (0, import_react.useState)(0);
|
64
|
-
(0, import_react.useEffect)(() => {
|
65
|
-
function selectHandler() {
|
66
|
-
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
67
|
-
setSelectedIndex(index || 0);
|
68
|
-
}
|
69
|
-
emblaApi == null ? void 0 : emblaApi.on("select", selectHandler);
|
70
|
-
return () => {
|
71
|
-
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
72
|
-
};
|
73
|
-
}, [emblaApi]);
|
74
|
-
(0, import_react.useEffect)(() => {
|
75
|
-
let autoplayTimer;
|
76
|
-
if (autoplay && emblaApi) {
|
77
|
-
autoplayTimer = setInterval(() => {
|
78
|
-
emblaApi.scrollNext();
|
79
|
-
}, autoplayInterval);
|
80
|
-
}
|
81
|
-
return () => {
|
82
|
-
if (autoplayTimer)
|
83
|
-
clearInterval(autoplayTimer);
|
84
|
-
};
|
85
|
-
}, [emblaApi, autoplay, autoplayInterval]);
|
86
|
-
const length = import_react.default.Children.count(items);
|
87
|
-
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
88
|
-
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
89
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react.default.createElement(
|
90
|
-
"div",
|
91
|
-
{
|
92
|
-
key: i,
|
93
|
-
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
94
|
-
},
|
95
|
-
item
|
96
|
-
))))), /* @__PURE__ */ import_react.default.createElement(
|
97
|
-
Dots,
|
98
|
-
{
|
99
|
-
direction,
|
100
|
-
itemsLength: length,
|
101
|
-
selectedIndex,
|
102
|
-
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
103
|
-
}
|
104
|
-
), showArrows && /* @__PURE__ */ import_react.default.createElement(
|
105
|
-
CarouselControls,
|
106
|
-
{
|
107
|
-
canScrollNext,
|
108
|
-
canScrollPrev,
|
109
|
-
onNext: () => emblaApi == null ? void 0 : emblaApi.scrollNext(),
|
110
|
-
onPrev: () => emblaApi == null ? void 0 : emblaApi.scrollPrev()
|
111
|
-
}
|
112
|
-
));
|
113
|
-
};
|
114
|
-
var Dots = ({
|
115
|
-
onDotClick,
|
116
|
-
itemsLength,
|
117
|
-
selectedIndex,
|
118
|
-
direction
|
119
|
-
}) => {
|
120
|
-
const arr = new Array(itemsLength).fill(0);
|
121
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
122
|
-
"div",
|
123
|
-
{
|
124
|
-
dir: direction,
|
125
|
-
className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1"
|
126
|
-
},
|
127
|
-
arr.map((_, index) => {
|
128
|
-
const selected = index === selectedIndex;
|
129
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
130
|
-
"div",
|
131
|
-
{
|
132
|
-
key: index,
|
133
|
-
onClick: () => onDotClick(index),
|
134
|
-
className: cn(
|
135
|
-
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
136
|
-
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
137
|
-
)
|
138
|
-
}
|
139
|
-
);
|
140
|
-
})
|
141
|
-
);
|
142
|
-
};
|
143
|
-
var CarouselControls = (props) => {
|
144
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react.default.createElement(
|
145
|
-
"button",
|
146
|
-
{
|
147
|
-
onClick: () => props.canScrollPrev && props.onPrev(),
|
148
|
-
disabled: !props.canScrollPrev,
|
149
|
-
className: cn(
|
150
|
-
"hawa-absolute hawa-start-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
151
|
-
!props.canScrollPrev && "hawa-bg-primary/50",
|
152
|
-
props.canScrollPrev && "hawa-bg-primary"
|
153
|
-
)
|
154
|
-
},
|
155
|
-
/* @__PURE__ */ import_react.default.createElement(
|
156
|
-
"svg",
|
157
|
-
{
|
158
|
-
"aria-label": "Chevron Right Icon",
|
159
|
-
stroke: "currentColor",
|
160
|
-
fill: "currentColor",
|
161
|
-
viewBox: "0 0 16 16",
|
162
|
-
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
163
|
-
},
|
164
|
-
/* @__PURE__ */ import_react.default.createElement("path", { 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" })
|
165
|
-
)
|
166
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
167
|
-
"button",
|
168
|
-
{
|
169
|
-
onClick: () => props.canScrollNext && props.onNext(),
|
170
|
-
disabled: !props.canScrollNext,
|
171
|
-
className: cn(
|
172
|
-
"hawa-absolute hawa-end-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
173
|
-
!props.canScrollNext && "hawa-bg-primary/50",
|
174
|
-
props.canScrollNext && "hawa-bg-primary"
|
175
|
-
)
|
176
|
-
},
|
177
|
-
/* @__PURE__ */ import_react.default.createElement(
|
178
|
-
"svg",
|
179
|
-
{
|
180
|
-
"aria-label": "Chevron Right Icon",
|
181
|
-
stroke: "currentColor",
|
182
|
-
fill: "currentColor",
|
183
|
-
viewBox: "0 0 16 16",
|
184
|
-
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
185
|
-
},
|
186
|
-
/* @__PURE__ */ import_react.default.createElement("path", { 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" })
|
187
|
-
)
|
188
|
-
));
|
189
|
-
};
|
190
|
-
// Annotate the CommonJS export names for ESM import in node:
|
191
|
-
0 && (module.exports = {
|
192
|
-
Carousel
|
193
|
-
});
|
package/dist/carousel/index.mjs
DELETED
@@ -1,151 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
cn
|
3
|
-
} from "../chunk-TWNGV3RE.mjs";
|
4
|
-
|
5
|
-
// elements/carousel/Carousel.tsx
|
6
|
-
import React, { useEffect, useState } from "react";
|
7
|
-
import useEmblaCarousel from "embla-carousel-react";
|
8
|
-
var Carousel = ({
|
9
|
-
items,
|
10
|
-
showArrows,
|
11
|
-
options,
|
12
|
-
autoplay,
|
13
|
-
direction = "ltr",
|
14
|
-
autoplayInterval = 3e3,
|
15
|
-
...props
|
16
|
-
}) => {
|
17
|
-
const [emblaRef, emblaApi] = useEmblaCarousel({
|
18
|
-
...options,
|
19
|
-
direction,
|
20
|
-
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
21
|
-
});
|
22
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
23
|
-
useEffect(() => {
|
24
|
-
function selectHandler() {
|
25
|
-
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
26
|
-
setSelectedIndex(index || 0);
|
27
|
-
}
|
28
|
-
emblaApi == null ? void 0 : emblaApi.on("select", selectHandler);
|
29
|
-
return () => {
|
30
|
-
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
31
|
-
};
|
32
|
-
}, [emblaApi]);
|
33
|
-
useEffect(() => {
|
34
|
-
let autoplayTimer;
|
35
|
-
if (autoplay && emblaApi) {
|
36
|
-
autoplayTimer = setInterval(() => {
|
37
|
-
emblaApi.scrollNext();
|
38
|
-
}, autoplayInterval);
|
39
|
-
}
|
40
|
-
return () => {
|
41
|
-
if (autoplayTimer)
|
42
|
-
clearInterval(autoplayTimer);
|
43
|
-
};
|
44
|
-
}, [emblaApi, autoplay, autoplayInterval]);
|
45
|
-
const length = React.Children.count(items);
|
46
|
-
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
47
|
-
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
48
|
-
return /* @__PURE__ */ React.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ React.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ React.createElement(
|
49
|
-
"div",
|
50
|
-
{
|
51
|
-
key: i,
|
52
|
-
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
53
|
-
},
|
54
|
-
item
|
55
|
-
))))), /* @__PURE__ */ React.createElement(
|
56
|
-
Dots,
|
57
|
-
{
|
58
|
-
direction,
|
59
|
-
itemsLength: length,
|
60
|
-
selectedIndex,
|
61
|
-
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
62
|
-
}
|
63
|
-
), showArrows && /* @__PURE__ */ React.createElement(
|
64
|
-
CarouselControls,
|
65
|
-
{
|
66
|
-
canScrollNext,
|
67
|
-
canScrollPrev,
|
68
|
-
onNext: () => emblaApi == null ? void 0 : emblaApi.scrollNext(),
|
69
|
-
onPrev: () => emblaApi == null ? void 0 : emblaApi.scrollPrev()
|
70
|
-
}
|
71
|
-
));
|
72
|
-
};
|
73
|
-
var Dots = ({
|
74
|
-
onDotClick,
|
75
|
-
itemsLength,
|
76
|
-
selectedIndex,
|
77
|
-
direction
|
78
|
-
}) => {
|
79
|
-
const arr = new Array(itemsLength).fill(0);
|
80
|
-
return /* @__PURE__ */ React.createElement(
|
81
|
-
"div",
|
82
|
-
{
|
83
|
-
dir: direction,
|
84
|
-
className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1"
|
85
|
-
},
|
86
|
-
arr.map((_, index) => {
|
87
|
-
const selected = index === selectedIndex;
|
88
|
-
return /* @__PURE__ */ React.createElement(
|
89
|
-
"div",
|
90
|
-
{
|
91
|
-
key: index,
|
92
|
-
onClick: () => onDotClick(index),
|
93
|
-
className: cn(
|
94
|
-
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
95
|
-
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
96
|
-
)
|
97
|
-
}
|
98
|
-
);
|
99
|
-
})
|
100
|
-
);
|
101
|
-
};
|
102
|
-
var CarouselControls = (props) => {
|
103
|
-
return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React.createElement(
|
104
|
-
"button",
|
105
|
-
{
|
106
|
-
onClick: () => props.canScrollPrev && props.onPrev(),
|
107
|
-
disabled: !props.canScrollPrev,
|
108
|
-
className: cn(
|
109
|
-
"hawa-absolute hawa-start-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
110
|
-
!props.canScrollPrev && "hawa-bg-primary/50",
|
111
|
-
props.canScrollPrev && "hawa-bg-primary"
|
112
|
-
)
|
113
|
-
},
|
114
|
-
/* @__PURE__ */ React.createElement(
|
115
|
-
"svg",
|
116
|
-
{
|
117
|
-
"aria-label": "Chevron Right Icon",
|
118
|
-
stroke: "currentColor",
|
119
|
-
fill: "currentColor",
|
120
|
-
viewBox: "0 0 16 16",
|
121
|
-
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
122
|
-
},
|
123
|
-
/* @__PURE__ */ React.createElement("path", { 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" })
|
124
|
-
)
|
125
|
-
), /* @__PURE__ */ React.createElement(
|
126
|
-
"button",
|
127
|
-
{
|
128
|
-
onClick: () => props.canScrollNext && props.onNext(),
|
129
|
-
disabled: !props.canScrollNext,
|
130
|
-
className: cn(
|
131
|
-
"hawa-absolute hawa-end-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
132
|
-
!props.canScrollNext && "hawa-bg-primary/50",
|
133
|
-
props.canScrollNext && "hawa-bg-primary"
|
134
|
-
)
|
135
|
-
},
|
136
|
-
/* @__PURE__ */ React.createElement(
|
137
|
-
"svg",
|
138
|
-
{
|
139
|
-
"aria-label": "Chevron Right Icon",
|
140
|
-
stroke: "currentColor",
|
141
|
-
fill: "currentColor",
|
142
|
-
viewBox: "0 0 16 16",
|
143
|
-
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
144
|
-
},
|
145
|
-
/* @__PURE__ */ React.createElement("path", { 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" })
|
146
|
-
)
|
147
|
-
));
|
148
|
-
};
|
149
|
-
export {
|
150
|
-
Carousel
|
151
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
3
|
-
import { R as RadiusType } from '../commonTypes-2k6FnHw5.mjs';
|
4
|
-
|
5
|
-
type CheckBoxTypes = {
|
6
|
-
id: string;
|
7
|
-
label?: React.ReactNode;
|
8
|
-
sublabel?: React.ReactNode;
|
9
|
-
helperText?: string;
|
10
|
-
size?: "xs" | "sm" | "default" | "md" | "lg" | "xl";
|
11
|
-
radius?: RadiusType;
|
12
|
-
};
|
13
|
-
type CheckboxProps = CheckBoxTypes & React.ComponentProps<typeof CheckboxElement>;
|
14
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
15
|
-
declare const CheckboxElement: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
16
|
-
size?: "xs" | "sm" | "default" | "md" | "lg" | "xl" | undefined;
|
17
|
-
radius?: RadiusType | undefined;
|
18
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
19
|
-
|
20
|
-
export { Checkbox };
|
package/dist/checkbox/index.d.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
3
|
-
import { R as RadiusType } from '../commonTypes-2k6FnHw5.js';
|
4
|
-
|
5
|
-
type CheckBoxTypes = {
|
6
|
-
id: string;
|
7
|
-
label?: React.ReactNode;
|
8
|
-
sublabel?: React.ReactNode;
|
9
|
-
helperText?: string;
|
10
|
-
size?: "xs" | "sm" | "default" | "md" | "lg" | "xl";
|
11
|
-
radius?: RadiusType;
|
12
|
-
};
|
13
|
-
type CheckboxProps = CheckBoxTypes & React.ComponentProps<typeof CheckboxElement>;
|
14
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
15
|
-
declare const CheckboxElement: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
16
|
-
size?: "xs" | "sm" | "default" | "md" | "lg" | "xl" | undefined;
|
17
|
-
radius?: RadiusType | undefined;
|
18
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
19
|
-
|
20
|
-
export { Checkbox };
|
package/dist/checkbox/index.js
DELETED
@@ -1,184 +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/checkbox/index.ts
|
31
|
-
var checkbox_exports = {};
|
32
|
-
__export(checkbox_exports, {
|
33
|
-
Checkbox: () => Checkbox
|
34
|
-
});
|
35
|
-
module.exports = __toCommonJS(checkbox_exports);
|
36
|
-
|
37
|
-
// elements/checkbox/Checkbox.tsx
|
38
|
-
var React = __toESM(require("react"));
|
39
|
-
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
40
|
-
|
41
|
-
// util/index.ts
|
42
|
-
var import_clsx = require("clsx");
|
43
|
-
var import_tailwind_merge = require("tailwind-merge");
|
44
|
-
function cn(...inputs) {
|
45
|
-
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
46
|
-
}
|
47
|
-
|
48
|
-
// elements/checkbox/Checkbox.tsx
|
49
|
-
var Checkbox = ({
|
50
|
-
id,
|
51
|
-
label,
|
52
|
-
sublabel,
|
53
|
-
helperText,
|
54
|
-
disabled,
|
55
|
-
size = "default",
|
56
|
-
radius = "inherit",
|
57
|
-
...props
|
58
|
-
}) => {
|
59
|
-
let labelLineHeightStyles = {
|
60
|
-
xs: sublabel || helperText ? 0.5 : 0.1,
|
61
|
-
sm: 0.6,
|
62
|
-
default: 1,
|
63
|
-
md: 0.8,
|
64
|
-
lg: 0.9,
|
65
|
-
xl: 1
|
66
|
-
};
|
67
|
-
return /* @__PURE__ */ React.createElement(
|
68
|
-
"div",
|
69
|
-
{
|
70
|
-
className: cn(
|
71
|
-
"hawa-flex hawa-gap-2",
|
72
|
-
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
73
|
-
)
|
74
|
-
},
|
75
|
-
/* @__PURE__ */ React.createElement(
|
76
|
-
CheckboxElement,
|
77
|
-
{
|
78
|
-
...props,
|
79
|
-
size,
|
80
|
-
radius,
|
81
|
-
disabled,
|
82
|
-
id
|
83
|
-
}
|
84
|
-
),
|
85
|
-
(label || helperText) && /* @__PURE__ */ React.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React.createElement(
|
86
|
-
"label",
|
87
|
-
{
|
88
|
-
htmlFor: id,
|
89
|
-
className: cn(
|
90
|
-
"hawa-w-fit hawa-select-none hawa-pt-0.5 hawa-text-sm hawa-font-medium",
|
91
|
-
disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70 " : "hawa-cursor-pointer"
|
92
|
-
),
|
93
|
-
style: {
|
94
|
-
// lineHeight: labelLineHeightStyles[size]
|
95
|
-
lineHeight: 1
|
96
|
-
}
|
97
|
-
},
|
98
|
-
label
|
99
|
-
), sublabel && /* @__PURE__ */ React.createElement(
|
100
|
-
"label",
|
101
|
-
{
|
102
|
-
htmlFor: id,
|
103
|
-
className: cn(
|
104
|
-
"hawa-w-fit hawa-select-none hawa-text-sm hawa-text-muted-foreground",
|
105
|
-
disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70" : "hawa-cursor-pointer"
|
106
|
-
)
|
107
|
-
},
|
108
|
-
sublabel
|
109
|
-
), helperText && !disabled && /* @__PURE__ */ React.createElement(
|
110
|
-
"label",
|
111
|
-
{
|
112
|
-
htmlFor: id,
|
113
|
-
className: cn(
|
114
|
-
"hawa-w-fit hawa-select-none hawa-text-xs hawa-text-helper-color",
|
115
|
-
disabled && "hawa-cursor-not-allowed hawa-opacity-70"
|
116
|
-
)
|
117
|
-
},
|
118
|
-
helperText
|
119
|
-
))
|
120
|
-
);
|
121
|
-
};
|
122
|
-
var CheckboxElement = React.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
123
|
-
let checkboxRadius = {
|
124
|
-
none: "hawa-rounded-none",
|
125
|
-
inherit: "hawa-rounded-sm",
|
126
|
-
full: "hawa-rounded-full"
|
127
|
-
};
|
128
|
-
let checkboxSizes = {
|
129
|
-
xs: "hawa-w-3 hawa-h-3",
|
130
|
-
sm: "hawa-w-6 hawa-h-6",
|
131
|
-
default: "hawa-icon",
|
132
|
-
md: "hawa-w-8 hawa-h-8",
|
133
|
-
lg: "hawa-w-10 hawa-h-10",
|
134
|
-
xl: "hawa-w-12 hawa-h-12"
|
135
|
-
};
|
136
|
-
let checkboxIndicatorSizes = {
|
137
|
-
xs: "0.5em",
|
138
|
-
default: "0.60em",
|
139
|
-
sm: "0.75em",
|
140
|
-
md: "0.875em",
|
141
|
-
lg: "1em",
|
142
|
-
xl: "1.25em"
|
143
|
-
};
|
144
|
-
return /* @__PURE__ */ React.createElement(
|
145
|
-
CheckboxPrimitive.Root,
|
146
|
-
{
|
147
|
-
ref,
|
148
|
-
className: cn(
|
149
|
-
"hawa-peer hawa-shrink-0 hawa-border hawa-border-primary hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground",
|
150
|
-
checkboxSizes[size],
|
151
|
-
checkboxRadius[radius],
|
152
|
-
className
|
153
|
-
),
|
154
|
-
...props
|
155
|
-
},
|
156
|
-
/* @__PURE__ */ React.createElement(
|
157
|
-
CheckboxPrimitive.Indicator,
|
158
|
-
{
|
159
|
-
className: cn(
|
160
|
-
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
161
|
-
)
|
162
|
-
},
|
163
|
-
/* @__PURE__ */ React.createElement(
|
164
|
-
"svg",
|
165
|
-
{
|
166
|
-
"aria-label": "Check Mark",
|
167
|
-
stroke: "currentColor",
|
168
|
-
fill: "currentColor",
|
169
|
-
strokeWidth: "0",
|
170
|
-
viewBox: "0 0 512 512",
|
171
|
-
height: checkboxIndicatorSizes[size],
|
172
|
-
width: checkboxIndicatorSizes[size]
|
173
|
-
},
|
174
|
-
/* @__PURE__ */ React.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" })
|
175
|
-
),
|
176
|
-
" "
|
177
|
-
)
|
178
|
-
);
|
179
|
-
});
|
180
|
-
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
181
|
-
// Annotate the CommonJS export names for ESM import in node:
|
182
|
-
0 && (module.exports = {
|
183
|
-
Checkbox
|
184
|
-
});
|