@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/input/index.d.mts
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import React__default from 'react';
|
3
|
-
import { P as PositionType } from '../commonTypes-GhKAraJw.mjs';
|
4
|
-
|
5
|
-
type LabelProps = {
|
6
|
-
hint?: React.ReactNode;
|
7
|
-
hintSide?: PositionType;
|
8
|
-
htmlFor?: string;
|
9
|
-
required?: boolean;
|
10
|
-
};
|
11
|
-
|
12
|
-
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
13
|
-
isLoading?: boolean | undefined;
|
14
|
-
containerClassName?: string | undefined;
|
15
|
-
margin?: "none" | "normal" | "large" | undefined;
|
16
|
-
width?: "full" | "small" | "auto" | "normal" | undefined;
|
17
|
-
/** The label of the input field */
|
18
|
-
label?: any;
|
19
|
-
labelProps?: LabelProps | undefined;
|
20
|
-
hideSeparator?: boolean | undefined;
|
21
|
-
/** The small red text under the input field to show validation. */
|
22
|
-
helperText?: any;
|
23
|
-
forceHideHelperText?: boolean | undefined;
|
24
|
-
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement> | undefined;
|
25
|
-
/** The icon inside the input field */
|
26
|
-
icon?: any;
|
27
|
-
/** Boolean to enable/disable editing the input field and using it as a text field */
|
28
|
-
preview?: boolean | undefined;
|
29
|
-
iconInside?: React__default.ReactNode;
|
30
|
-
endIcon?: React__default.ReactNode;
|
31
|
-
endIconProps?: {
|
32
|
-
className?: string | undefined;
|
33
|
-
} | undefined;
|
34
|
-
startIcon?: React__default.ReactNode;
|
35
|
-
placeholder?: React__default.ReactNode;
|
36
|
-
/** Show the count of characters left in the input field. Works along with maxLength prop. */
|
37
|
-
showCount?: boolean | undefined;
|
38
|
-
countPosition?: "top" | "bottom" | "center" | undefined;
|
39
|
-
popup?: boolean | undefined;
|
40
|
-
popupContent?: React__default.ReactNode;
|
41
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
42
|
-
|
43
|
-
export { Input };
|
package/dist/input/index.d.ts
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import React__default from 'react';
|
3
|
-
import { P as PositionType } from '../commonTypes-GhKAraJw.js';
|
4
|
-
|
5
|
-
type LabelProps = {
|
6
|
-
hint?: React.ReactNode;
|
7
|
-
hintSide?: PositionType;
|
8
|
-
htmlFor?: string;
|
9
|
-
required?: boolean;
|
10
|
-
};
|
11
|
-
|
12
|
-
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
13
|
-
isLoading?: boolean | undefined;
|
14
|
-
containerClassName?: string | undefined;
|
15
|
-
margin?: "none" | "normal" | "large" | undefined;
|
16
|
-
width?: "full" | "small" | "auto" | "normal" | undefined;
|
17
|
-
/** The label of the input field */
|
18
|
-
label?: any;
|
19
|
-
labelProps?: LabelProps | undefined;
|
20
|
-
hideSeparator?: boolean | undefined;
|
21
|
-
/** The small red text under the input field to show validation. */
|
22
|
-
helperText?: any;
|
23
|
-
forceHideHelperText?: boolean | undefined;
|
24
|
-
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement> | undefined;
|
25
|
-
/** The icon inside the input field */
|
26
|
-
icon?: any;
|
27
|
-
/** Boolean to enable/disable editing the input field and using it as a text field */
|
28
|
-
preview?: boolean | undefined;
|
29
|
-
iconInside?: React__default.ReactNode;
|
30
|
-
endIcon?: React__default.ReactNode;
|
31
|
-
endIconProps?: {
|
32
|
-
className?: string | undefined;
|
33
|
-
} | undefined;
|
34
|
-
startIcon?: React__default.ReactNode;
|
35
|
-
placeholder?: React__default.ReactNode;
|
36
|
-
/** Show the count of characters left in the input field. Works along with maxLength prop. */
|
37
|
-
showCount?: boolean | undefined;
|
38
|
-
countPosition?: "top" | "bottom" | "center" | undefined;
|
39
|
-
popup?: boolean | undefined;
|
40
|
-
popupContent?: React__default.ReactNode;
|
41
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
42
|
-
|
43
|
-
export { Input };
|
package/dist/input/index.js
DELETED
@@ -1,293 +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/input/index.ts
|
31
|
-
var input_exports = {};
|
32
|
-
__export(input_exports, {
|
33
|
-
Input: () => Input
|
34
|
-
});
|
35
|
-
module.exports = __toCommonJS(input_exports);
|
36
|
-
|
37
|
-
// elements/input/Input.tsx
|
38
|
-
var import_react3 = __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/label/Label.tsx
|
48
|
-
var React2 = __toESM(require("react"));
|
49
|
-
|
50
|
-
// elements/tooltip/Tooltip.tsx
|
51
|
-
var import_react = __toESM(require("react"));
|
52
|
-
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
53
|
-
var TooltipContent = import_react.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react.default.createElement(
|
54
|
-
TooltipPrimitive.Content,
|
55
|
-
{
|
56
|
-
ref,
|
57
|
-
sideOffset,
|
58
|
-
className: cn(
|
59
|
-
"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",
|
60
|
-
className
|
61
|
-
),
|
62
|
-
...props
|
63
|
-
}
|
64
|
-
));
|
65
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
66
|
-
var TooltipArrow = import_react.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
67
|
-
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
68
|
-
var Tooltip = ({
|
69
|
-
side,
|
70
|
-
open,
|
71
|
-
content,
|
72
|
-
children,
|
73
|
-
defaultOpen,
|
74
|
-
onOpenChange,
|
75
|
-
triggerProps,
|
76
|
-
contentProps,
|
77
|
-
providerProps,
|
78
|
-
delayDuration = 300,
|
79
|
-
...props
|
80
|
-
}) => {
|
81
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
82
|
-
TooltipPrimitive.TooltipProvider,
|
83
|
-
{
|
84
|
-
delayDuration,
|
85
|
-
...providerProps
|
86
|
-
},
|
87
|
-
/* @__PURE__ */ import_react.default.createElement(
|
88
|
-
TooltipPrimitive.Root,
|
89
|
-
{
|
90
|
-
open,
|
91
|
-
defaultOpen,
|
92
|
-
onOpenChange,
|
93
|
-
...props
|
94
|
-
},
|
95
|
-
/* @__PURE__ */ import_react.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
96
|
-
/* @__PURE__ */ import_react.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
|
97
|
-
)
|
98
|
-
);
|
99
|
-
};
|
100
|
-
|
101
|
-
// elements/label/Label.tsx
|
102
|
-
var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
|
103
|
-
"label",
|
104
|
-
{
|
105
|
-
ref,
|
106
|
-
className: cn(
|
107
|
-
"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
|
108
|
-
className
|
109
|
-
),
|
110
|
-
...props
|
111
|
-
},
|
112
|
-
children,
|
113
|
-
required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
114
|
-
), hint && /* @__PURE__ */ React2.createElement(
|
115
|
-
Tooltip,
|
116
|
-
{
|
117
|
-
content: hint,
|
118
|
-
side: hintSide,
|
119
|
-
triggerProps: {
|
120
|
-
tabIndex: -1,
|
121
|
-
onClick: (event) => event.preventDefault()
|
122
|
-
}
|
123
|
-
},
|
124
|
-
/* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
|
125
|
-
"svg",
|
126
|
-
{
|
127
|
-
xmlns: "http://www.w3.org/2000/svg",
|
128
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
129
|
-
viewBox: "0 0 24 24",
|
130
|
-
fill: "none",
|
131
|
-
stroke: "currentColor",
|
132
|
-
strokeWidth: "2",
|
133
|
-
strokeLinecap: "round",
|
134
|
-
strokeLinejoin: "round"
|
135
|
-
},
|
136
|
-
/* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
137
|
-
/* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
138
|
-
/* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
|
139
|
-
))
|
140
|
-
)));
|
141
|
-
Label.displayName = "Label";
|
142
|
-
|
143
|
-
// elements/skeleton/Skeleton.tsx
|
144
|
-
var import_react2 = __toESM(require("react"));
|
145
|
-
function Skeleton({
|
146
|
-
className,
|
147
|
-
content,
|
148
|
-
animation = "pulse",
|
149
|
-
...props
|
150
|
-
}) {
|
151
|
-
const animationStyles = {
|
152
|
-
none: "hawa-rounded hawa-bg-muted",
|
153
|
-
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
154
|
-
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"
|
155
|
-
};
|
156
|
-
return /* @__PURE__ */ import_react2.default.createElement(
|
157
|
-
"div",
|
158
|
-
{
|
159
|
-
className: cn(
|
160
|
-
animationStyles[animation],
|
161
|
-
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
162
|
-
className
|
163
|
-
),
|
164
|
-
...props
|
165
|
-
},
|
166
|
-
content && content
|
167
|
-
);
|
168
|
-
}
|
169
|
-
|
170
|
-
// elements/input/Input.tsx
|
171
|
-
var Input = (0, import_react3.forwardRef)(
|
172
|
-
({
|
173
|
-
margin = "none",
|
174
|
-
width = "full",
|
175
|
-
preview = false,
|
176
|
-
forceHideHelperText = false,
|
177
|
-
labelProps,
|
178
|
-
placeholder,
|
179
|
-
showCount,
|
180
|
-
inputProps,
|
181
|
-
countPosition = "bottom",
|
182
|
-
...props
|
183
|
-
}, ref) => {
|
184
|
-
var _a;
|
185
|
-
let marginStyles = {
|
186
|
-
none: "hawa-mb-0",
|
187
|
-
normal: "hawa-mb-3",
|
188
|
-
large: "hawa-mb-5"
|
189
|
-
};
|
190
|
-
let widthStyles = {
|
191
|
-
small: "hawa-w-full hawa-max-w-2xs",
|
192
|
-
normal: "hawa-w-1/2",
|
193
|
-
full: "hawa-w-full",
|
194
|
-
auto: ""
|
195
|
-
};
|
196
|
-
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
197
|
-
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
198
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
199
|
-
"div",
|
200
|
-
{
|
201
|
-
className: cn(
|
202
|
-
defaultStyle,
|
203
|
-
marginStyles[margin],
|
204
|
-
widthStyles[width],
|
205
|
-
props.containerClassName,
|
206
|
-
"hawa-w-full hawa-gap-2"
|
207
|
-
)
|
208
|
-
},
|
209
|
-
props.label && /* @__PURE__ */ import_react3.default.createElement(Label, { ...labelProps }, props.label),
|
210
|
-
props.isLoading ? /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react3.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react3.default.createElement(
|
211
|
-
"div",
|
212
|
-
{
|
213
|
-
className: cn(
|
214
|
-
"hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
|
215
|
-
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
216
|
-
)
|
217
|
-
}
|
218
|
-
), /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react3.default.createElement(
|
219
|
-
"div",
|
220
|
-
{
|
221
|
-
className: cn(
|
222
|
-
"hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
|
223
|
-
(_a = props.endIconProps) == null ? void 0 : _a.className
|
224
|
-
)
|
225
|
-
},
|
226
|
-
props.endIcon
|
227
|
-
), /* @__PURE__ */ import_react3.default.createElement(
|
228
|
-
"input",
|
229
|
-
{
|
230
|
-
required: true,
|
231
|
-
dir: props.dir,
|
232
|
-
type: props.type,
|
233
|
-
value: props.value,
|
234
|
-
onChange: props.onChange,
|
235
|
-
autoComplete: props.autoComplete,
|
236
|
-
defaultValue: props.defaultValue,
|
237
|
-
placeholder,
|
238
|
-
disabled: props.disabled || preview,
|
239
|
-
style: { height: 40 },
|
240
|
-
...inputProps,
|
241
|
-
className: cn(
|
242
|
-
defaultInputStyle,
|
243
|
-
" focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 dark:hawa-text-white",
|
244
|
-
{
|
245
|
-
"hawa-pe-9": props.endIcon,
|
246
|
-
"hawa-ps-9": props.startIcon,
|
247
|
-
"hawa-pe-[60px]": countPosition === "center"
|
248
|
-
},
|
249
|
-
preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
|
250
|
-
inputProps == null ? void 0 : inputProps.className
|
251
|
-
)
|
252
|
-
}
|
253
|
-
)), !forceHideHelperText && /* @__PURE__ */ import_react3.default.createElement(
|
254
|
-
"p",
|
255
|
-
{
|
256
|
-
className: cn(
|
257
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
258
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
259
|
-
)
|
260
|
-
},
|
261
|
-
props.helperText
|
262
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react3.default.createElement(
|
263
|
-
"div",
|
264
|
-
{
|
265
|
-
className: cn(
|
266
|
-
"hawa-absolute hawa-end-0 hawa-top-[47px] hawa-z-20 hawa-translate-y-1/2 hawa-rounded hawa-bg-background hawa-text-start hawa-text-xs hawa-text-helper-color hawa-drop-shadow-md hawa-transition-all",
|
267
|
-
props.helperText ? "hawa-border hawa-p-1" : "hawa-border-none hawa-p-0"
|
268
|
-
)
|
269
|
-
},
|
270
|
-
props.helperText
|
271
|
-
), showCount && /* @__PURE__ */ import_react3.default.createElement(
|
272
|
-
"div",
|
273
|
-
{
|
274
|
-
className: cn(
|
275
|
-
"hawa-absolute hawa-translate-y-1/2 hawa-text-start hawa-text-xs hawa-transition-all",
|
276
|
-
{
|
277
|
-
"hawa-end-0 hawa-top-[62px]": countPosition === "bottom",
|
278
|
-
"hawa-bottom-[62px] hawa-end-0": countPosition === "top",
|
279
|
-
"hawa-end-2": countPosition === "center"
|
280
|
-
}
|
281
|
-
)
|
282
|
-
},
|
283
|
-
props.value ? String(props.value).length : 0,
|
284
|
-
"/",
|
285
|
-
props.maxLength
|
286
|
-
)))
|
287
|
-
);
|
288
|
-
}
|
289
|
-
);
|
290
|
-
// Annotate the CommonJS export names for ESM import in node:
|
291
|
-
0 && (module.exports = {
|
292
|
-
Input
|
293
|
-
});
|
package/dist/input/index.mjs
DELETED
@@ -1,158 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Label,
|
3
|
-
cn
|
4
|
-
} from "../chunk-TGZRVRLP.mjs";
|
5
|
-
|
6
|
-
// elements/input/Input.tsx
|
7
|
-
import React2, { forwardRef } from "react";
|
8
|
-
|
9
|
-
// elements/skeleton/Skeleton.tsx
|
10
|
-
import React from "react";
|
11
|
-
function Skeleton({
|
12
|
-
className,
|
13
|
-
content,
|
14
|
-
animation = "pulse",
|
15
|
-
...props
|
16
|
-
}) {
|
17
|
-
const animationStyles = {
|
18
|
-
none: "hawa-rounded hawa-bg-muted",
|
19
|
-
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
20
|
-
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"
|
21
|
-
};
|
22
|
-
return /* @__PURE__ */ React.createElement(
|
23
|
-
"div",
|
24
|
-
{
|
25
|
-
className: cn(
|
26
|
-
animationStyles[animation],
|
27
|
-
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
28
|
-
className
|
29
|
-
),
|
30
|
-
...props
|
31
|
-
},
|
32
|
-
content && content
|
33
|
-
);
|
34
|
-
}
|
35
|
-
|
36
|
-
// elements/input/Input.tsx
|
37
|
-
var Input = forwardRef(
|
38
|
-
({
|
39
|
-
margin = "none",
|
40
|
-
width = "full",
|
41
|
-
preview = false,
|
42
|
-
forceHideHelperText = false,
|
43
|
-
labelProps,
|
44
|
-
placeholder,
|
45
|
-
showCount,
|
46
|
-
inputProps,
|
47
|
-
countPosition = "bottom",
|
48
|
-
...props
|
49
|
-
}, ref) => {
|
50
|
-
var _a;
|
51
|
-
let marginStyles = {
|
52
|
-
none: "hawa-mb-0",
|
53
|
-
normal: "hawa-mb-3",
|
54
|
-
large: "hawa-mb-5"
|
55
|
-
};
|
56
|
-
let widthStyles = {
|
57
|
-
small: "hawa-w-full hawa-max-w-2xs",
|
58
|
-
normal: "hawa-w-1/2",
|
59
|
-
full: "hawa-w-full",
|
60
|
-
auto: ""
|
61
|
-
};
|
62
|
-
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
63
|
-
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
64
|
-
return /* @__PURE__ */ React2.createElement(
|
65
|
-
"div",
|
66
|
-
{
|
67
|
-
className: cn(
|
68
|
-
defaultStyle,
|
69
|
-
marginStyles[margin],
|
70
|
-
widthStyles[width],
|
71
|
-
props.containerClassName,
|
72
|
-
"hawa-w-full hawa-gap-2"
|
73
|
-
)
|
74
|
-
},
|
75
|
-
props.label && /* @__PURE__ */ React2.createElement(Label, { ...labelProps }, props.label),
|
76
|
-
props.isLoading ? /* @__PURE__ */ React2.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React2.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React2.createElement(React2.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React2.createElement(
|
77
|
-
"div",
|
78
|
-
{
|
79
|
-
className: cn(
|
80
|
-
"hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
|
81
|
-
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
82
|
-
)
|
83
|
-
}
|
84
|
-
), /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React2.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React2.createElement(
|
85
|
-
"div",
|
86
|
-
{
|
87
|
-
className: cn(
|
88
|
-
"hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
|
89
|
-
(_a = props.endIconProps) == null ? void 0 : _a.className
|
90
|
-
)
|
91
|
-
},
|
92
|
-
props.endIcon
|
93
|
-
), /* @__PURE__ */ React2.createElement(
|
94
|
-
"input",
|
95
|
-
{
|
96
|
-
required: true,
|
97
|
-
dir: props.dir,
|
98
|
-
type: props.type,
|
99
|
-
value: props.value,
|
100
|
-
onChange: props.onChange,
|
101
|
-
autoComplete: props.autoComplete,
|
102
|
-
defaultValue: props.defaultValue,
|
103
|
-
placeholder,
|
104
|
-
disabled: props.disabled || preview,
|
105
|
-
style: { height: 40 },
|
106
|
-
...inputProps,
|
107
|
-
className: cn(
|
108
|
-
defaultInputStyle,
|
109
|
-
" focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 dark:hawa-text-white",
|
110
|
-
{
|
111
|
-
"hawa-pe-9": props.endIcon,
|
112
|
-
"hawa-ps-9": props.startIcon,
|
113
|
-
"hawa-pe-[60px]": countPosition === "center"
|
114
|
-
},
|
115
|
-
preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
|
116
|
-
inputProps == null ? void 0 : inputProps.className
|
117
|
-
)
|
118
|
-
}
|
119
|
-
)), !forceHideHelperText && /* @__PURE__ */ React2.createElement(
|
120
|
-
"p",
|
121
|
-
{
|
122
|
-
className: cn(
|
123
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
124
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
125
|
-
)
|
126
|
-
},
|
127
|
-
props.helperText
|
128
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */ React2.createElement(
|
129
|
-
"div",
|
130
|
-
{
|
131
|
-
className: cn(
|
132
|
-
"hawa-absolute hawa-end-0 hawa-top-[47px] hawa-z-20 hawa-translate-y-1/2 hawa-rounded hawa-bg-background hawa-text-start hawa-text-xs hawa-text-helper-color hawa-drop-shadow-md hawa-transition-all",
|
133
|
-
props.helperText ? "hawa-border hawa-p-1" : "hawa-border-none hawa-p-0"
|
134
|
-
)
|
135
|
-
},
|
136
|
-
props.helperText
|
137
|
-
), showCount && /* @__PURE__ */ React2.createElement(
|
138
|
-
"div",
|
139
|
-
{
|
140
|
-
className: cn(
|
141
|
-
"hawa-absolute hawa-translate-y-1/2 hawa-text-start hawa-text-xs hawa-transition-all",
|
142
|
-
{
|
143
|
-
"hawa-end-0 hawa-top-[62px]": countPosition === "bottom",
|
144
|
-
"hawa-bottom-[62px] hawa-end-0": countPosition === "top",
|
145
|
-
"hawa-end-2": countPosition === "center"
|
146
|
-
}
|
147
|
-
)
|
148
|
-
},
|
149
|
-
props.value ? String(props.value).length : 0,
|
150
|
-
"/",
|
151
|
-
props.maxLength
|
152
|
-
)))
|
153
|
-
);
|
154
|
-
}
|
155
|
-
);
|
156
|
-
export {
|
157
|
-
Input
|
158
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
import { O as OrientationType } from '../commonTypes-GhKAraJw.mjs';
|
3
|
-
|
4
|
-
type TypographyTypes = {
|
5
|
-
/** Function to handle language change. */
|
6
|
-
handleLanguage?: (e: any) => void;
|
7
|
-
/** Current selected language. */
|
8
|
-
currentLanguage?: string;
|
9
|
-
/** Function to handle theme color mode change. */
|
10
|
-
handleColorMode?: (e: any) => void;
|
11
|
-
/** Current selected theme color mode. */
|
12
|
-
currentColorMode?: "light" | "dark";
|
13
|
-
orientation?: OrientationType;
|
14
|
-
width?: "default" | "full";
|
15
|
-
};
|
16
|
-
declare const InterfaceSettings: FC<TypographyTypes>;
|
17
|
-
|
18
|
-
export { InterfaceSettings };
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
import { O as OrientationType } from '../commonTypes-GhKAraJw.js';
|
3
|
-
|
4
|
-
type TypographyTypes = {
|
5
|
-
/** Function to handle language change. */
|
6
|
-
handleLanguage?: (e: any) => void;
|
7
|
-
/** Current selected language. */
|
8
|
-
currentLanguage?: string;
|
9
|
-
/** Function to handle theme color mode change. */
|
10
|
-
handleColorMode?: (e: any) => void;
|
11
|
-
/** Current selected theme color mode. */
|
12
|
-
currentColorMode?: "light" | "dark";
|
13
|
-
orientation?: OrientationType;
|
14
|
-
width?: "default" | "full";
|
15
|
-
};
|
16
|
-
declare const InterfaceSettings: FC<TypographyTypes>;
|
17
|
-
|
18
|
-
export { InterfaceSettings };
|