@arkyn/components 1.2.0
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/bundle.js +1348 -0
- package/dist/bundle.umd.cjs +32 -0
- package/dist/components/Badge/index.d.ts +5 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge/index.js +8 -0
- package/dist/components/Breadcrumb/index.d.ts +6 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.js +18 -0
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +9 -0
- package/dist/components/Divider/index.d.ts +5 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/components/Divider/index.js +8 -0
- package/dist/components/Form/FormController/index.d.ts +6 -0
- package/dist/components/Form/FormController/index.d.ts.map +1 -0
- package/dist/components/Form/FormController/index.js +17 -0
- package/dist/components/Form/FormError/index.d.ts +4 -0
- package/dist/components/Form/FormError/index.d.ts.map +1 -0
- package/dist/components/Form/FormError/index.js +10 -0
- package/dist/components/Form/FormLabel/index.d.ts +5 -0
- package/dist/components/Form/FormLabel/index.d.ts.map +1 -0
- package/dist/components/Form/FormLabel/index.js +9 -0
- package/dist/components/Form/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Form/index.js +3 -0
- package/dist/components/IconButton/index.d.ts +5 -0
- package/dist/components/IconButton/index.d.ts.map +1 -0
- package/dist/components/IconButton/index.js +15 -0
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +308 -0
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/CpfCpnjInput/getConfig.js +35 -0
- package/dist/components/Input/CpfCpnjInput/index.d.ts +4 -0
- package/dist/components/Input/CpfCpnjInput/index.d.ts.map +1 -0
- package/dist/components/Input/CpfCpnjInput/index.js +47 -0
- package/dist/components/Input/CpfCpnjInput/utils.d.ts +10 -0
- package/dist/components/Input/CpfCpnjInput/utils.d.ts.map +1 -0
- package/dist/components/Input/CpfCpnjInput/utils.js +24 -0
- package/dist/components/Input/CurrencyInput/getConfig.d.ts +309 -0
- package/dist/components/Input/CurrencyInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/getConfig.js +37 -0
- package/dist/components/Input/CurrencyInput/index.d.ts +4 -0
- package/dist/components/Input/CurrencyInput/index.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/index.js +41 -0
- package/dist/components/Input/CurrencyInput/utils.d.ts +11 -0
- package/dist/components/Input/CurrencyInput/utils.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/utils.js +39 -0
- package/dist/components/Input/MaskInput/getConfig.d.ts +312 -0
- package/dist/components/Input/MaskInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/MaskInput/getConfig.js +36 -0
- package/dist/components/Input/MaskInput/index.d.ts +4 -0
- package/dist/components/Input/MaskInput/index.d.ts.map +1 -0
- package/dist/components/Input/MaskInput/index.js +42 -0
- package/dist/components/Input/SimpleInput/getConfig.d.ts +308 -0
- package/dist/components/Input/SimpleInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/SimpleInput/getConfig.js +35 -0
- package/dist/components/Input/SimpleInput/index.d.ts +4 -0
- package/dist/components/Input/SimpleInput/index.d.ts.map +1 -0
- package/dist/components/Input/SimpleInput/index.js +34 -0
- package/dist/components/Input/index.d.ts +5 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/index.js +16 -0
- package/dist/components/Input/utils/morpheme.d.ts +4 -0
- package/dist/components/Input/utils/morpheme.d.ts.map +1 -0
- package/dist/components/Input/utils/morpheme.js +10 -0
- package/dist/components/Modal/Container/index.d.ts +10 -0
- package/dist/components/Modal/Container/index.d.ts.map +1 -0
- package/dist/components/Modal/Container/index.js +12 -0
- package/dist/components/Modal/Footer/index.d.ts +5 -0
- package/dist/components/Modal/Footer/index.d.ts.map +1 -0
- package/dist/components/Modal/Footer/index.js +8 -0
- package/dist/components/Modal/Header/index.d.ts +5 -0
- package/dist/components/Modal/Header/index.d.ts.map +1 -0
- package/dist/components/Modal/Header/index.js +13 -0
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.js +4 -0
- package/dist/components/Tooltip/index.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.js +7 -0
- package/dist/config/buildBadgeConfig.d.ts +274 -0
- package/dist/config/buildBadgeConfig.d.ts.map +1 -0
- package/dist/config/buildBadgeConfig.js +15 -0
- package/dist/config/buildBreadcrumLinkConfig.d.ts +288 -0
- package/dist/config/buildBreadcrumLinkConfig.d.ts.map +1 -0
- package/dist/config/buildBreadcrumLinkConfig.js +14 -0
- package/dist/config/buildBreadcrumbConfig.d.ts +272 -0
- package/dist/config/buildBreadcrumbConfig.d.ts.map +1 -0
- package/dist/config/buildBreadcrumbConfig.js +6 -0
- package/dist/config/buildButtonConfig.d.ts +286 -0
- package/dist/config/buildButtonConfig.d.ts.map +1 -0
- package/dist/config/buildButtonConfig.js +18 -0
- package/dist/config/buildFormLabelConfig.d.ts +274 -0
- package/dist/config/buildFormLabelConfig.d.ts.map +1 -0
- package/dist/config/buildFormLabelConfig.js +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/style.css +1 -0
- package/dist/utils/generateIcon.d.ts +4 -0
- package/dist/utils/generateIcon.d.ts.map +1 -0
- package/dist/utils/generateIcon.js +7 -0
- package/package.json +30 -0
- package/src/components/Badge/index.tsx +18 -0
- package/src/components/Badge/styles.css +119 -0
- package/src/components/Breadcrumb/index.tsx +35 -0
- package/src/components/Breadcrumb/styles.css +39 -0
- package/src/components/Button/index.tsx +27 -0
- package/src/components/Button/styles.css +363 -0
- package/src/components/Divider/index.tsx +17 -0
- package/src/components/Divider/styles.css +17 -0
- package/src/components/Form/FormController/index.tsx +36 -0
- package/src/components/Form/FormController/styles.css +5 -0
- package/src/components/Form/FormError/index.tsx +11 -0
- package/src/components/Form/FormError/styles.css +6 -0
- package/src/components/Form/FormLabel/index.tsx +13 -0
- package/src/components/Form/FormLabel/styles.css +15 -0
- package/src/components/Form/index.ts +3 -0
- package/src/components/IconButton/index.tsx +44 -0
- package/src/components/IconButton/styles.css +318 -0
- package/src/components/Input/CpfCpnjInput/getConfig.tsx +60 -0
- package/src/components/Input/CpfCpnjInput/index.tsx +112 -0
- package/src/components/Input/CpfCpnjInput/utils.ts +30 -0
- package/src/components/Input/CurrencyInput/getConfig.tsx +64 -0
- package/src/components/Input/CurrencyInput/index.tsx +103 -0
- package/src/components/Input/CurrencyInput/utils.ts +56 -0
- package/src/components/Input/MaskInput/getConfig.tsx +62 -0
- package/src/components/Input/MaskInput/index.tsx +89 -0
- package/src/components/Input/SimpleInput/getConfig.tsx +60 -0
- package/src/components/Input/SimpleInput/index.tsx +87 -0
- package/src/components/Input/index.tsx +17 -0
- package/src/components/Input/styles.css +223 -0
- package/src/components/Input/utils/morpheme.tsx +19 -0
- package/src/components/Modal/Container/index.tsx +53 -0
- package/src/components/Modal/Container/styles.css +35 -0
- package/src/components/Modal/Footer/index.tsx +12 -0
- package/src/components/Modal/Footer/styles.css +27 -0
- package/src/components/Modal/Header/index.tsx +26 -0
- package/src/components/Modal/Header/styles.css +36 -0
- package/src/components/Modal/index.ts +5 -0
- package/src/components/Tooltip/index.tsx +26 -0
- package/src/components/Tooltip/styles.css +112 -0
- package/src/config/buildBadgeConfig.tsx +32 -0
- package/src/config/buildBreadcrumLinkConfig.tsx +27 -0
- package/src/config/buildBreadcrumbConfig.tsx +12 -0
- package/src/config/buildButtonConfig.tsx +38 -0
- package/src/config/buildFormLabelConfig.tsx +17 -0
- package/src/index.ts +16 -0
- package/src/utils/generateIcon.tsx +9 -0
- package/tsconfig.json +23 -0
- package/vite.config.js +25 -0
@@ -0,0 +1,308 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { SimpleInputProps } from "@arkyn/types";
|
3
|
+
declare function getConfig(props: SimpleInputProps, isFocused: boolean): {
|
4
|
+
type: "number" | "color" | "search" | "hidden" | "button" | "text" | "tel" | "url" | "email" | "date" | "time" | "submit" | "reset" | "datetime-local" | "file" | "image" | "month" | "password" | "range" | "week";
|
5
|
+
name: string;
|
6
|
+
suppressHydrationWarning?: boolean;
|
7
|
+
color?: string;
|
8
|
+
height?: string | number;
|
9
|
+
id?: string;
|
10
|
+
lang?: string;
|
11
|
+
max?: string | number;
|
12
|
+
min?: string | number;
|
13
|
+
width?: string | number;
|
14
|
+
role?: import("react").AriaRole;
|
15
|
+
tabIndex?: number;
|
16
|
+
"aria-activedescendant"?: string;
|
17
|
+
"aria-atomic"?: boolean | "true" | "false";
|
18
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both";
|
19
|
+
"aria-braillelabel"?: string;
|
20
|
+
"aria-brailleroledescription"?: string;
|
21
|
+
"aria-busy"?: boolean | "true" | "false";
|
22
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
23
|
+
"aria-colcount"?: number;
|
24
|
+
"aria-colindex"?: number;
|
25
|
+
"aria-colindextext"?: string;
|
26
|
+
"aria-colspan"?: number;
|
27
|
+
"aria-controls"?: string;
|
28
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time";
|
29
|
+
"aria-describedby"?: string;
|
30
|
+
"aria-description"?: string;
|
31
|
+
"aria-details"?: string;
|
32
|
+
"aria-disabled"?: boolean | "true" | "false";
|
33
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
34
|
+
"aria-errormessage"?: string;
|
35
|
+
"aria-expanded"?: boolean | "true" | "false";
|
36
|
+
"aria-flowto"?: string;
|
37
|
+
"aria-grabbed"?: boolean | "true" | "false";
|
38
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree";
|
39
|
+
"aria-hidden"?: boolean | "true" | "false";
|
40
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
41
|
+
"aria-keyshortcuts"?: string;
|
42
|
+
"aria-label"?: string;
|
43
|
+
"aria-labelledby"?: string;
|
44
|
+
"aria-level"?: number;
|
45
|
+
"aria-live"?: "off" | "assertive" | "polite";
|
46
|
+
"aria-modal"?: boolean | "true" | "false";
|
47
|
+
"aria-multiline"?: boolean | "true" | "false";
|
48
|
+
"aria-multiselectable"?: boolean | "true" | "false";
|
49
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
50
|
+
"aria-owns"?: string;
|
51
|
+
"aria-placeholder"?: string;
|
52
|
+
"aria-posinset"?: number;
|
53
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
54
|
+
"aria-readonly"?: boolean | "true" | "false";
|
55
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
56
|
+
"aria-required"?: boolean | "true" | "false";
|
57
|
+
"aria-roledescription"?: string;
|
58
|
+
"aria-rowcount"?: number;
|
59
|
+
"aria-rowindex"?: number;
|
60
|
+
"aria-rowindextext"?: string;
|
61
|
+
"aria-rowspan"?: number;
|
62
|
+
"aria-selected"?: boolean | "true" | "false";
|
63
|
+
"aria-setsize"?: number;
|
64
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other";
|
65
|
+
"aria-valuemax"?: number;
|
66
|
+
"aria-valuemin"?: number;
|
67
|
+
"aria-valuenow"?: number;
|
68
|
+
"aria-valuetext"?: string;
|
69
|
+
children?: import("react").ReactNode;
|
70
|
+
dangerouslySetInnerHTML?: {
|
71
|
+
__html: string | TrustedHTML;
|
72
|
+
};
|
73
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
74
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
75
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
76
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
77
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
78
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
79
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement>;
|
80
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement>;
|
81
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement>;
|
82
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement>;
|
83
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement>;
|
84
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement>;
|
85
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement>;
|
86
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement>;
|
87
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
88
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLInputElement>;
|
89
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
90
|
+
onInput?: import("react").FormEventHandler<HTMLInputElement>;
|
91
|
+
onInputCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
92
|
+
onReset?: import("react").FormEventHandler<HTMLInputElement>;
|
93
|
+
onResetCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
94
|
+
onSubmit?: import("react").FormEventHandler<HTMLInputElement>;
|
95
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
96
|
+
onInvalid?: import("react").FormEventHandler<HTMLInputElement>;
|
97
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
98
|
+
onLoad?: import("react").ReactEventHandler<HTMLInputElement>;
|
99
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
100
|
+
onError?: import("react").ReactEventHandler<HTMLInputElement>;
|
101
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
102
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
103
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
104
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
105
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
106
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
107
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
108
|
+
onAbort?: import("react").ReactEventHandler<HTMLInputElement>;
|
109
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
110
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement>;
|
111
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
112
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement>;
|
113
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
114
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement>;
|
115
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
116
|
+
onEmptied?: import("react").ReactEventHandler<HTMLInputElement>;
|
117
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
118
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement>;
|
119
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
120
|
+
onEnded?: import("react").ReactEventHandler<HTMLInputElement>;
|
121
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
122
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement>;
|
123
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
124
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement>;
|
125
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
126
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement>;
|
127
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
128
|
+
onPause?: import("react").ReactEventHandler<HTMLInputElement>;
|
129
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
130
|
+
onPlay?: import("react").ReactEventHandler<HTMLInputElement>;
|
131
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
132
|
+
onPlaying?: import("react").ReactEventHandler<HTMLInputElement>;
|
133
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
134
|
+
onProgress?: import("react").ReactEventHandler<HTMLInputElement>;
|
135
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
136
|
+
onRateChange?: import("react").ReactEventHandler<HTMLInputElement>;
|
137
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
138
|
+
onResize?: import("react").ReactEventHandler<HTMLInputElement>;
|
139
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
140
|
+
onSeeked?: import("react").ReactEventHandler<HTMLInputElement>;
|
141
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
142
|
+
onSeeking?: import("react").ReactEventHandler<HTMLInputElement>;
|
143
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
144
|
+
onStalled?: import("react").ReactEventHandler<HTMLInputElement>;
|
145
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
146
|
+
onSuspend?: import("react").ReactEventHandler<HTMLInputElement>;
|
147
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
148
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement>;
|
149
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
150
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement>;
|
151
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
152
|
+
onWaiting?: import("react").ReactEventHandler<HTMLInputElement>;
|
153
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
154
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement>;
|
155
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
156
|
+
onClick?: import("react").MouseEventHandler<HTMLInputElement>;
|
157
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
158
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement>;
|
159
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
160
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement>;
|
161
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
162
|
+
onDrag?: import("react").DragEventHandler<HTMLInputElement>;
|
163
|
+
onDragCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
164
|
+
onDragEnd?: import("react").DragEventHandler<HTMLInputElement>;
|
165
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
166
|
+
onDragEnter?: import("react").DragEventHandler<HTMLInputElement>;
|
167
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
168
|
+
onDragExit?: import("react").DragEventHandler<HTMLInputElement>;
|
169
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
170
|
+
onDragLeave?: import("react").DragEventHandler<HTMLInputElement>;
|
171
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
172
|
+
onDragOver?: import("react").DragEventHandler<HTMLInputElement>;
|
173
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
174
|
+
onDragStart?: import("react").DragEventHandler<HTMLInputElement>;
|
175
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
176
|
+
onDrop?: import("react").DragEventHandler<HTMLInputElement>;
|
177
|
+
onDropCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
178
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement>;
|
179
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
180
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement>;
|
181
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement>;
|
182
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement>;
|
183
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
184
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement>;
|
185
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
186
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement>;
|
187
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
188
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement>;
|
189
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
190
|
+
onSelect?: import("react").ReactEventHandler<HTMLInputElement>;
|
191
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
192
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement>;
|
193
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
194
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement>;
|
195
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
196
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement>;
|
197
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
198
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement>;
|
199
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
200
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement>;
|
201
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
202
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement>;
|
203
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
204
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement>;
|
205
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
206
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement>;
|
207
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
208
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement>;
|
209
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement>;
|
210
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement>;
|
211
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
212
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement>;
|
213
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
214
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
215
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
216
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
217
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
218
|
+
onScroll?: import("react").UIEventHandler<HTMLInputElement>;
|
219
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement>;
|
220
|
+
onWheel?: import("react").WheelEventHandler<HTMLInputElement>;
|
221
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement>;
|
222
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement>;
|
223
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement>;
|
224
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement>;
|
225
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement>;
|
226
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement>;
|
227
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement>;
|
228
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement>;
|
229
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement>;
|
230
|
+
defaultChecked?: boolean;
|
231
|
+
defaultValue?: string | number | readonly string[];
|
232
|
+
suppressContentEditableWarning?: boolean;
|
233
|
+
accessKey?: string;
|
234
|
+
autoFocus?: boolean;
|
235
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
236
|
+
contextMenu?: string;
|
237
|
+
dir?: string;
|
238
|
+
draggable?: boolean | "true" | "false";
|
239
|
+
hidden?: boolean;
|
240
|
+
nonce?: string;
|
241
|
+
slot?: string;
|
242
|
+
spellCheck?: boolean | "true" | "false";
|
243
|
+
translate?: "yes" | "no";
|
244
|
+
radioGroup?: string;
|
245
|
+
about?: string;
|
246
|
+
content?: string;
|
247
|
+
datatype?: string;
|
248
|
+
inlist?: any;
|
249
|
+
property?: string;
|
250
|
+
rel?: string;
|
251
|
+
resource?: string;
|
252
|
+
rev?: string;
|
253
|
+
typeof?: string;
|
254
|
+
vocab?: string;
|
255
|
+
autoCapitalize?: string;
|
256
|
+
autoCorrect?: string;
|
257
|
+
autoSave?: string;
|
258
|
+
itemProp?: string;
|
259
|
+
itemScope?: boolean;
|
260
|
+
itemType?: string;
|
261
|
+
itemID?: string;
|
262
|
+
itemRef?: string;
|
263
|
+
results?: number;
|
264
|
+
security?: string;
|
265
|
+
unselectable?: "on" | "off";
|
266
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
267
|
+
is?: string;
|
268
|
+
form?: string;
|
269
|
+
list?: string;
|
270
|
+
step?: string | number;
|
271
|
+
formAction?: string;
|
272
|
+
formEncType?: string;
|
273
|
+
formMethod?: string;
|
274
|
+
formNoValidate?: boolean;
|
275
|
+
formTarget?: string;
|
276
|
+
value?: string | number | readonly string[];
|
277
|
+
accept?: string;
|
278
|
+
alt?: string;
|
279
|
+
autoComplete?: import("react").HTMLInputAutoCompleteAttribute;
|
280
|
+
capture?: boolean | "user" | "environment";
|
281
|
+
checked?: boolean;
|
282
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send";
|
283
|
+
maxLength?: number;
|
284
|
+
minLength?: number;
|
285
|
+
multiple?: boolean;
|
286
|
+
pattern?: string;
|
287
|
+
placeholder?: string;
|
288
|
+
required?: boolean;
|
289
|
+
src?: string;
|
290
|
+
isLoading: boolean;
|
291
|
+
className: string;
|
292
|
+
prefix: import("react/jsx-runtime").JSX.Element;
|
293
|
+
sufix: import("react/jsx-runtime").JSX.Element;
|
294
|
+
LeftIcon: import("lucide-react").LucideIcon;
|
295
|
+
RightIcon: import("lucide-react").LucideIcon;
|
296
|
+
disabled: boolean;
|
297
|
+
readOnly: boolean;
|
298
|
+
onFocus: import("react").FocusEventHandler<HTMLInputElement>;
|
299
|
+
onBlur: import("react").FocusEventHandler<HTMLInputElement>;
|
300
|
+
title: string;
|
301
|
+
style: import("react").CSSProperties;
|
302
|
+
onChange: import("react").ChangeEventHandler<HTMLInputElement>;
|
303
|
+
loadingPosition: string;
|
304
|
+
iconSize: number;
|
305
|
+
Spinner: import("react/jsx-runtime").JSX.Element;
|
306
|
+
};
|
307
|
+
export { getConfig };
|
308
|
+
//# sourceMappingURL=getConfig.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/SimpleInput/getConfig.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKrD,iBAAS,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoD7D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Loader2 } from "lucide-react";
|
3
|
+
import { morpheme } from "../utils/morpheme";
|
4
|
+
function getConfig(props, isFocused) {
|
5
|
+
const { isLoading, isError, size = "md", className: baseClassName = "", variant = "solid", prefix: basePrefix, sufix: baseSufix, leftIcon: LeftIcon, rightIcon: RightIcon, disabled, readOnly, onFocus, onBlur, title, style, onChange, ...rest } = props;
|
6
|
+
const loadingPosition = RightIcon ? "right" : "left";
|
7
|
+
const hasPrefix = !!basePrefix ? "hasPrefix" : "";
|
8
|
+
const hasSufix = !!baseSufix ? "hasSufix" : "";
|
9
|
+
const errored = isError ? "errored" : "";
|
10
|
+
const opacity = disabled || readOnly || isLoading ? "opacity" : "";
|
11
|
+
const focused = isFocused ? "focused" : "";
|
12
|
+
const className = `arkyn_input ${hasPrefix} ${hasSufix} ${variant} ${size} ${opacity} ${errored} ${focused} ${baseClassName}`;
|
13
|
+
const iconSizes = { md: 14, lg: 16 };
|
14
|
+
const iconSize = iconSizes[size];
|
15
|
+
return {
|
16
|
+
isLoading,
|
17
|
+
className,
|
18
|
+
prefix: morpheme(basePrefix, iconSize, "prefix"),
|
19
|
+
sufix: morpheme(baseSufix, iconSize, "sufix"),
|
20
|
+
LeftIcon,
|
21
|
+
RightIcon,
|
22
|
+
disabled,
|
23
|
+
readOnly,
|
24
|
+
onFocus,
|
25
|
+
onBlur,
|
26
|
+
title,
|
27
|
+
style,
|
28
|
+
onChange,
|
29
|
+
loadingPosition,
|
30
|
+
iconSize: iconSize,
|
31
|
+
Spinner: _jsx(Loader2, { className: "spinner", size: iconSize, strokeWidth: 2.5 }),
|
32
|
+
...rest,
|
33
|
+
};
|
34
|
+
}
|
35
|
+
export { getConfig };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/SimpleInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQrD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA4E3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useRef, useState } from "react";
|
3
|
+
import { useFormController } from "../../Form/FormController";
|
4
|
+
import { getConfig } from "./getConfig";
|
5
|
+
function SimpleInput(props) {
|
6
|
+
const [isFocused, setIsFocused] = useState(false);
|
7
|
+
const baseRef = useRef(null);
|
8
|
+
const { inputRef, id, error } = useFormController();
|
9
|
+
const ref = inputRef || baseRef;
|
10
|
+
const isError = props.isError || !!error;
|
11
|
+
const { disabled, title, style, className, prefix, sufix, iconSize, loadingPosition, isLoading, LeftIcon, readOnly, onFocus, onBlur, RightIcon, Spinner, ...rest } = getConfig({ ...props, id, isError }, isFocused);
|
12
|
+
const showLeftIcon = LeftIcon && !isLoading;
|
13
|
+
const showRightIcon = RightIcon && !isLoading;
|
14
|
+
const showLeftSpinner = loadingPosition === "left" && isLoading;
|
15
|
+
const showRightSpinner = loadingPosition === "right" && isLoading;
|
16
|
+
function handleSectionClick() {
|
17
|
+
if (disabled || !ref?.current)
|
18
|
+
return;
|
19
|
+
setIsFocused(true);
|
20
|
+
ref.current.focus();
|
21
|
+
}
|
22
|
+
function handleFocus(e) {
|
23
|
+
setIsFocused(true);
|
24
|
+
if (onFocus)
|
25
|
+
onFocus(e);
|
26
|
+
}
|
27
|
+
function handleBlur(e) {
|
28
|
+
setIsFocused(false);
|
29
|
+
if (onBlur)
|
30
|
+
onBlur(e);
|
31
|
+
}
|
32
|
+
return (_jsxs("section", { title: title, style: style, onClick: handleSectionClick, className: className, children: [prefix, showLeftSpinner && Spinner, showLeftIcon && _jsx(LeftIcon, { size: iconSize, strokeWidth: 2.5 }), _jsx("input", { disabled: disabled || isLoading, readOnly: readOnly, ref: ref, onFocus: handleFocus, onBlur: handleBlur, ...rest }), showRightIcon && _jsx(RightIcon, { size: iconSize, strokeWidth: 2.5 }), showRightSpinner && Spinner, sufix] }));
|
33
|
+
}
|
34
|
+
export { SimpleInput };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,cAAc,CAAC;AAEtB,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,2CAK/B;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { CpfCnpjInput } from "./CpfCpnjInput";
|
3
|
+
import { CurrencyInput } from "./CurrencyInput";
|
4
|
+
import { MaskedInput } from "./MaskInput";
|
5
|
+
import { SimpleInput } from "./SimpleInput";
|
6
|
+
import "./styles.css";
|
7
|
+
function Input(props) {
|
8
|
+
if (props.type === "currency")
|
9
|
+
return _jsx(CurrencyInput, { ...props });
|
10
|
+
if (props.type === "masked")
|
11
|
+
return _jsx(MaskedInput, { ...props });
|
12
|
+
if (props.type === "cpf-cpnj")
|
13
|
+
return _jsx(CpfCnpjInput, { ...props });
|
14
|
+
return _jsx(SimpleInput, { ...props });
|
15
|
+
}
|
16
|
+
export { Input };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"morpheme.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/utils/morpheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,iBAAS,QAAQ,CACf,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,EACrC,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,2CAW1B;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
function morpheme(data, iconSize, type) {
|
3
|
+
if (!data)
|
4
|
+
return _jsx(_Fragment, {});
|
5
|
+
if (typeof data === "string")
|
6
|
+
return _jsx("p", { className: type, children: data });
|
7
|
+
const Data = data;
|
8
|
+
return (_jsx("p", { className: type, children: _jsx(Data, { color: "var(--secondary-600)", size: iconSize, strokeWidth: 2.5 }) }));
|
9
|
+
}
|
10
|
+
export { morpheme };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ModalContainerProps } from "@arkyn/types";
|
3
|
+
import "./styles.css";
|
4
|
+
type ModalContext = {
|
5
|
+
makeInvisible: () => void;
|
6
|
+
};
|
7
|
+
declare const modalContext: import("react").Context<ModalContext>;
|
8
|
+
declare function Container(args: ModalContainerProps): import("react/jsx-runtime").JSX.Element;
|
9
|
+
export { Container, modalContext };
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Container/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKxD,OAAO,cAAc,CAAC;AAEtB,KAAK,YAAY,GAAG;IAAE,aAAa,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAClD,QAAA,MAAM,YAAY,uCAAoC,CAAC;AAEvD,iBAAS,SAAS,CAAC,IAAI,EAAE,mBAAmB,2CAwC3C;AAED,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { AnimatePresence, motion } from "framer-motion";
|
3
|
+
import { createContext } from "react";
|
4
|
+
import "./styles.css";
|
5
|
+
const modalContext = createContext({});
|
6
|
+
function Container(args) {
|
7
|
+
const { isVisibled, makeInvisible, children, className: baseClassName = "", ...rest } = args;
|
8
|
+
const visibled = isVisibled ? "visible" : "";
|
9
|
+
const className = `arkyn_modal_container ${visibled} ${baseClassName}`;
|
10
|
+
return (_jsx(modalContext.Provider, { value: { makeInvisible }, children: _jsx(AnimatePresence, { children: isVisibled && (_jsxs("aside", { className: className.trim(), ...rest, children: [_jsx(motion.div, { className: "overlay", transition: { duration: 0.15, ease: "easeOut" }, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, onClick: makeInvisible }), _jsx(motion.div, { className: "content", transition: { duration: 0.15, ease: "easeOut" }, initial: { opacity: 0, scale: 0.75 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0 }, children: children })] })) }) }));
|
11
|
+
}
|
12
|
+
export { Container, modalContext };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,cAAc,CAAC;AAEtB,iBAAS,MAAM,CAAC,IAAI,EAAE,gBAAgB,2CAKrC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import "./styles.css";
|
3
|
+
function Footer(args) {
|
4
|
+
const { alignment = "right", className: baseClassName, ...rest } = args;
|
5
|
+
const className = `arkyn_modal_footer ${alignment} ${baseClassName}`;
|
6
|
+
return _jsx("footer", { className: className.trim(), ...rest });
|
7
|
+
}
|
8
|
+
export { Footer };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMrD,OAAO,cAAc,CAAC;AAEtB,iBAAS,MAAM,CAAC,IAAI,EAAE,gBAAgB,2CAerC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { X } from "lucide-react";
|
3
|
+
import { useContext } from "react";
|
4
|
+
import { modalContext } from "../Container";
|
5
|
+
import "./styles.css";
|
6
|
+
function Header(args) {
|
7
|
+
const { showCloseButton, className: baseClassName, children, ...rest } = args;
|
8
|
+
const { makeInvisible } = useContext(modalContext);
|
9
|
+
const show = showCloseButton ? "show-close" : "";
|
10
|
+
const className = `arkyn_modal_header ${show} ${baseClassName}`;
|
11
|
+
return (_jsxs("header", { className: className.trim(), ...rest, children: [children, _jsx("button", { type: "button", onClick: makeInvisible, children: _jsx(X, { size: 24 }) })] }));
|
12
|
+
}
|
13
|
+
export { Header };
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Container } from "./Container";
|
2
|
+
import { Footer } from "./Footer";
|
3
|
+
import { Header } from "./Header";
|
4
|
+
export declare const Modal: {
|
5
|
+
Container: typeof Container;
|
6
|
+
Header: typeof Header;
|
7
|
+
Footer: typeof Footer;
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,KAAK;;;;CAAgC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,cAAc,CAAC;AAEtB,iBAAS,OAAO,CAAC,IAAI,EAAE,YAAY,2CAmBlC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import "./styles.css";
|
3
|
+
function Tooltip(args) {
|
4
|
+
const { text, size = "lg", children, orientation = "top", className, ...rest } = args;
|
5
|
+
return (_jsxs("div", { className: `arkyn_tooltip ${size} ${orientation} ${className}`, ...rest, children: [children, _jsx("div", { className: "arkyn_tooltip_text", children: text })] }));
|
6
|
+
}
|
7
|
+
export { Tooltip };
|