@cagatayfdn/flora-components 0.0.1 → 0.0.2
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/index.cjs.js +39 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +304 -0
- package/dist/index.es.js +6029 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +39 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { CustomLocale } from 'flatpickr/dist/types/locale';
|
|
4
|
+
import i18n from 'i18next';
|
|
5
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
import { TFunction } from 'i18next';
|
|
8
|
+
|
|
9
|
+
export declare enum AppAndServicesStatusApperenceType {
|
|
10
|
+
ADDONS_INITIALIZING = "addons_initializing",
|
|
11
|
+
ADDONS_ADDONS_INITILIZATION_FAILED = "addons_initialization_failed",
|
|
12
|
+
DEPLOYING = "deploying",
|
|
13
|
+
FAILED = "failed",
|
|
14
|
+
DEPLOYED = "deployed",
|
|
15
|
+
INITIALIZING = "initializing",
|
|
16
|
+
INITIALIZING_FAILED = "initialization_failed",
|
|
17
|
+
QUEUEING = "queueing",
|
|
18
|
+
QUEUED = "queued"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare enum AppearanceAlertCard {
|
|
22
|
+
DANGER = "danger",
|
|
23
|
+
WARNING = "warning"
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare enum AppearanceButton {
|
|
27
|
+
LINK = "link",
|
|
28
|
+
DEFAULT = "default",
|
|
29
|
+
PRIMARY = "primary",
|
|
30
|
+
DANGER = "danger",
|
|
31
|
+
SUCCESS = "success",
|
|
32
|
+
WARNING = "warning",
|
|
33
|
+
DARK = "dark"
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export declare enum AppearanceDirection {
|
|
37
|
+
TOP = "top",
|
|
38
|
+
RIGHT = "right",
|
|
39
|
+
BOTTOM = "bottom",
|
|
40
|
+
LEFT = "left"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare enum AppearanceSpinner {
|
|
44
|
+
LIGHT = "light",
|
|
45
|
+
DARK = "dark",
|
|
46
|
+
LIGHT_FULL = "light_full",
|
|
47
|
+
DARK_FULL = "darkFull"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export declare enum AppearanceTag {
|
|
51
|
+
DANGER = "danger",
|
|
52
|
+
SUCCESS = "success",
|
|
53
|
+
WARNING = "warning"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export declare enum ApplicationTypeSlug {
|
|
57
|
+
COMMERCE = "commerce",
|
|
58
|
+
ZERO = "zero",
|
|
59
|
+
DEMO_AKINON_ZERO = "demo-akinon-zero",
|
|
60
|
+
INSTORE = "instore",
|
|
61
|
+
SALES_CHANNEL = "sales-channel",
|
|
62
|
+
BI_TOOL = "bi-tool",
|
|
63
|
+
OMNITRON_FRONTEND = "omnitron-frontend",
|
|
64
|
+
OMS = "oms",
|
|
65
|
+
EXTENSION = "extension",
|
|
66
|
+
SELLER_CENTER_FRONTEND = "seller_center_fe",
|
|
67
|
+
SELLER_CENTER_BACKEND = "seller_center_be",
|
|
68
|
+
OMNITRON = "omnitron"
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export declare enum AppTypeEnum {
|
|
72
|
+
SERVICE = "service",
|
|
73
|
+
APPLICATION = "application"
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export declare const Button: ({ children, size, isLoading, isDisabled, isBlock, noBorder, isSolid, type, className, prefixIcon, appearance, onClick, }: ButtonProps) => JSX.Element;
|
|
77
|
+
|
|
78
|
+
declare type ButtonProps = {
|
|
79
|
+
children: ReactNode;
|
|
80
|
+
appearance?: AppearanceButton;
|
|
81
|
+
size?: Size;
|
|
82
|
+
type?: 'submit' | 'button';
|
|
83
|
+
className?: string;
|
|
84
|
+
autoFocus?: boolean;
|
|
85
|
+
isBlock?: boolean;
|
|
86
|
+
isLoading?: boolean;
|
|
87
|
+
isDisabled?: boolean;
|
|
88
|
+
noBorder?: boolean;
|
|
89
|
+
isSolid?: boolean;
|
|
90
|
+
prefixIcon?: Icons;
|
|
91
|
+
} & Omit<EventProps<HTMLButtonElement>, 'onKeyPress' | 'onKeyUp' | 'onKeydown' | 'onChange'>;
|
|
92
|
+
|
|
93
|
+
export declare const changeLanguage: (user: any, t: TFunction) => void;
|
|
94
|
+
|
|
95
|
+
export declare const Column: ({ children, auto, size, sm, md, lg, xl, className, }: ColumnProps) => JSX.Element;
|
|
96
|
+
|
|
97
|
+
declare type ColumnProps = {
|
|
98
|
+
children: ReactNode;
|
|
99
|
+
auto?: boolean;
|
|
100
|
+
size?: number;
|
|
101
|
+
sm?: number;
|
|
102
|
+
md?: number;
|
|
103
|
+
lg?: number;
|
|
104
|
+
xl?: number;
|
|
105
|
+
className?: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export declare enum CopyTextStatusEnum {
|
|
109
|
+
SUCCESS = "success",
|
|
110
|
+
ERROR = "error"
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export declare enum DividerAppearance {
|
|
114
|
+
LIGHT = "light",
|
|
115
|
+
GREY = "grey"
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare interface EventProps<T = HTMLElement> {
|
|
119
|
+
onClick?: (e: React.MouseEvent<T>) => void;
|
|
120
|
+
onFocus?: (e: React.FocusEvent<T>) => void;
|
|
121
|
+
onBlur?: (e: React.FocusEvent<T>) => void;
|
|
122
|
+
onChange?: (e: React.ChangeEvent<T>) => void;
|
|
123
|
+
onKeyPress?: (e: React.KeyboardEvent<T>) => void;
|
|
124
|
+
onKeyUp?: (e: React.KeyboardEvent<T>) => void;
|
|
125
|
+
onKeyDown?: (e: React.KeyboardEvent<T>) => void;
|
|
126
|
+
onMouseDown?: (e: React.MouseEventHandler<T>) => void;
|
|
127
|
+
onMouseUp?: (e: React.MouseEventHandler<T>) => void;
|
|
128
|
+
onMouseEnter?: (e: React.MouseEventHandler<T>) => void;
|
|
129
|
+
onMouseLeave?: (e: React.MouseEventHandler<T>) => void;
|
|
130
|
+
onInvalid?: (e: React.FormEvent<T>) => void;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export declare enum FormFieldAppearance {
|
|
134
|
+
LIGHT = "light",
|
|
135
|
+
DARK = "dark",
|
|
136
|
+
MORE_DARK = "more_dark"
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare function getCurrentLanguage(): string;
|
|
140
|
+
|
|
141
|
+
export declare function getDatepickerLocale(): "en" | CustomLocale;
|
|
142
|
+
|
|
143
|
+
export { i18n }
|
|
144
|
+
|
|
145
|
+
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
146
|
+
|
|
147
|
+
declare type IconProps = {
|
|
148
|
+
id?: string;
|
|
149
|
+
name: IconsId;
|
|
150
|
+
isDisabled?: boolean;
|
|
151
|
+
onClick?: (e: MouseEvent_2<HTMLElement>) => void;
|
|
152
|
+
style?: any;
|
|
153
|
+
className?: string;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
declare enum Icons {
|
|
157
|
+
Applications = "applications",
|
|
158
|
+
Attach = "attach",
|
|
159
|
+
Attachment = "attachment",
|
|
160
|
+
Billing = "billing",
|
|
161
|
+
Box = "box",
|
|
162
|
+
Calendar = "calendar",
|
|
163
|
+
Cart = "cart",
|
|
164
|
+
Certificate = "certificate",
|
|
165
|
+
Check = "check",
|
|
166
|
+
ChevronLeft = "chevron-left",
|
|
167
|
+
ChevronRight = "chevron-right",
|
|
168
|
+
CircleMinus = "circle-minus",
|
|
169
|
+
CirclePlus = "circle-plus",
|
|
170
|
+
Clock = "clock",
|
|
171
|
+
Close = "close",
|
|
172
|
+
Copy = "copy",
|
|
173
|
+
CreditCard = "credit-card",
|
|
174
|
+
Document = "document",
|
|
175
|
+
DomainRegistration = "domain-registration",
|
|
176
|
+
Domains = "domains",
|
|
177
|
+
DownArrow = "down-arrow",
|
|
178
|
+
DownSquare = "down-square",
|
|
179
|
+
Down = "down",
|
|
180
|
+
Download = "download",
|
|
181
|
+
EditOutline = "edit-outline",
|
|
182
|
+
Edit = "edit",
|
|
183
|
+
Email = "email",
|
|
184
|
+
Environment = "environment",
|
|
185
|
+
ErrorFill = "error-fill",
|
|
186
|
+
Error = "error",
|
|
187
|
+
FileTextOutlined = "fileTextOutlined",
|
|
188
|
+
Info = "info",
|
|
189
|
+
Install = "install",
|
|
190
|
+
Link = "link",
|
|
191
|
+
Log = "log",
|
|
192
|
+
MenuClose = "menu-close",
|
|
193
|
+
MenuOpen = "menu-open",
|
|
194
|
+
Monitoring = "monitoring",
|
|
195
|
+
Network = "network",
|
|
196
|
+
NoResults = "no-results",
|
|
197
|
+
NotEdit = "not-edit",
|
|
198
|
+
Path = "path",
|
|
199
|
+
Plus = "plus",
|
|
200
|
+
Preview = "preview",
|
|
201
|
+
Profile = "profile",
|
|
202
|
+
ProjectList = "project-list",
|
|
203
|
+
Projects = "projects",
|
|
204
|
+
Reload = "reload",
|
|
205
|
+
Retry = "retry",
|
|
206
|
+
Search = "search",
|
|
207
|
+
Settings = "settings",
|
|
208
|
+
Support = "support",
|
|
209
|
+
Trash = "trash",
|
|
210
|
+
Users = "users",
|
|
211
|
+
Warning = "warning"
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare type IconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'fileTextOutlined' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
|
|
215
|
+
|
|
216
|
+
export declare enum isActiveColor {
|
|
217
|
+
inActive = "#4482ff",
|
|
218
|
+
active = "#3f4b5c"
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export declare const Loading: ({ className, appearance, layer, wrapperClass, }: LoadingProps) => JSX.Element;
|
|
222
|
+
|
|
223
|
+
declare type LoadingProps = {
|
|
224
|
+
className?: string;
|
|
225
|
+
wrapperClass?: string;
|
|
226
|
+
appearance?: AppearanceSpinner;
|
|
227
|
+
layer?: boolean;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export declare enum ModalAppearanceType {
|
|
231
|
+
DEFAULT = "default",
|
|
232
|
+
SUCCESS = "success"
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export declare enum NotificationAppearanceType {
|
|
236
|
+
INFO = "info",
|
|
237
|
+
SUCCESS = "success",
|
|
238
|
+
ERROR = "error",
|
|
239
|
+
WARNING = "warning",
|
|
240
|
+
LOADING = "loading"
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export declare enum PodStatusEnum {
|
|
244
|
+
TERMINATED = "Terminated",
|
|
245
|
+
TERMINATING = "Terminating",
|
|
246
|
+
FAILED = "Failed",
|
|
247
|
+
PENDING = "Pending",
|
|
248
|
+
RUNNING = "Running",
|
|
249
|
+
SUCCEEDED = "Succeeded",
|
|
250
|
+
EVICTED = "Evicted"
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export declare enum ReportStatus {
|
|
254
|
+
PENDING = "pending",
|
|
255
|
+
FAILED = "failed",
|
|
256
|
+
IN_PROGRESS = "analyzing",
|
|
257
|
+
SUCCESS = "completed"
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export declare const Row: ({ children, className }: RowProps) => JSX.Element;
|
|
261
|
+
|
|
262
|
+
declare type RowProps = {
|
|
263
|
+
children: ReactNode;
|
|
264
|
+
className?: string;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export declare enum Size {
|
|
268
|
+
XS = "xsmall",
|
|
269
|
+
SM = "small",
|
|
270
|
+
MD = "normal",
|
|
271
|
+
LG = "large",
|
|
272
|
+
XL = "xlarge"
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export declare enum StatusEnum {
|
|
276
|
+
addons_initializing = "initializing",
|
|
277
|
+
addons_initialization_failed = "failed",
|
|
278
|
+
deploying = "warning",
|
|
279
|
+
failed = "failed",
|
|
280
|
+
deployed = "success",
|
|
281
|
+
completed = "success",
|
|
282
|
+
initializing = "initializing",
|
|
283
|
+
initialization_failed = "failed",
|
|
284
|
+
queueing = "warning",
|
|
285
|
+
queued = "queued",
|
|
286
|
+
pending = "pending"
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare enum StatusType {
|
|
290
|
+
IDLE = "idle",
|
|
291
|
+
PENDING = "pending",
|
|
292
|
+
FULFILLED = "fulfilled",
|
|
293
|
+
REJECTED = "rejected"
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export declare const t: TFunction;
|
|
297
|
+
|
|
298
|
+
export declare enum ThemeAppearance {
|
|
299
|
+
LIGHT = "light",
|
|
300
|
+
DARK = "dark",
|
|
301
|
+
DARK_BLUE = "dark_blue"
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export { }
|