@cagatayfdn/flora-components 0.0.148 → 0.0.150
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/ErrorLogModal-DhlD9tNj.js +3694 -0
- package/dist/ErrorLogModal.css +1 -1
- package/dist/Input.css +1 -1
- package/dist/{prodivers.css → ReactToastify.css} +1 -1
- package/dist/ScrollContainer.css +1 -1
- package/dist/Textarea.css +1 -1
- package/dist/components/ErrorLogModal/ErrorLogModal.js +19 -51
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/Icon/index.js +8 -8
- package/dist/components/Input/Input.js +95 -88
- package/dist/components/RealtimeLogModal/RealtimeLogModal.js +36 -0
- package/dist/components/ScrollContainer/ScrollContainer.js +9 -9
- package/dist/components/StatusTag/StatusTag.js +10 -10
- package/dist/components/Textarea/Textarea.js +15 -15
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/index.js +110 -107
- package/dist/{helper-lFjvXQpv.js → helper-1SQ9SI45.js} +5 -5
- package/dist/index.d.mts +83 -4
- package/dist/index.d.ts +83 -4
- package/dist/index.js +154 -149
- package/dist/main.css +1 -1
- package/dist/main.js +12 -10
- package/dist/prodivers.js +3 -2
- package/dist/utils/fetcher.js +44 -0
- package/dist/utils/helper.js +1 -1
- package/dist/utils/index.js +27 -24
- package/dist/utils/table.js +9 -42
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AppAndServicesStatusApperenceType as o, AppearanceAlertCard as a, AppearanceButton as t, AppearanceDirection as f, AppearanceSpinner as p, AppearanceTag as l, DividerAppearance as
|
|
1
|
+
import { AppAndServicesStatusApperenceType as o, AppearanceAlertCard as a, AppearanceButton as t, AppearanceDirection as f, AppearanceSpinner as p, AppearanceTag as l, DividerAppearance as s, FormFieldAppearance as d, ModalAppearanceType as m, NotificationAppearanceType as u, ThemeAppearance as x } from "./enums/appearance.js";
|
|
2
2
|
import { ApplicationTypeSlug as i } from "./enums/applicationTypeSlug.js";
|
|
3
3
|
import { isActiveColor as A } from "./enums/isActiveColor.js";
|
|
4
4
|
import { Size as E } from "./enums/size.js";
|
|
5
|
-
import { AppTypeEnum as C, CopyTextStatusEnum as I, PodStatusEnum as
|
|
6
|
-
import { default as
|
|
5
|
+
import { AppTypeEnum as C, CopyTextStatusEnum as I, PodStatusEnum as M, ReportStatus as R, SortEnum as S, StatusEnum as D, StatusType as g, TagStatus as F } from "./enums/status.js";
|
|
6
|
+
import { default as N } from "./components/Button/Button.js";
|
|
7
7
|
import { N as y } from "./index-H7XbDVmH.js";
|
|
8
|
-
import { PermFallBack as
|
|
8
|
+
import { PermFallBack as P, getAuth as v } from "./components/AuthUserCan/index.js";
|
|
9
9
|
import { Accordion as w, AccordionItem as B } from "./components/Accordion/Accordion.js";
|
|
10
10
|
import { default as H } from "./components/ActionButton/ActionButton.js";
|
|
11
11
|
import { default as V } from "./components/AlertCard/AlertCard.js";
|
|
@@ -20,67 +20,68 @@ import { default as ae } from "./components/Confirm/Confirm.js";
|
|
|
20
20
|
import { default as fe } from "./components/ContentHeader/ContentHeader.js";
|
|
21
21
|
import { default as le } from "./components/ContentLoader/ContentLoader.js";
|
|
22
22
|
import { default as de } from "./components/Countdown/Countdown.js";
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as ue } from "./components/Datepicker/Datepicker.js";
|
|
24
24
|
import { default as ne } from "./components/Divider/Divider.js";
|
|
25
25
|
import { default as Te } from "./components/Drawer/index.js";
|
|
26
26
|
import { default as ce } from "./components/Dropdown/DropdownList.js";
|
|
27
|
-
import {
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import { default as
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
27
|
+
import { E as _e, R as Ce, T as Ie, a as Me } from "./ErrorLogModal-DhlD9tNj.js";
|
|
28
|
+
import { default as Se } from "./components/FileUpload/FileUpload.js";
|
|
29
|
+
import { default as ge } from "./components/FileUpload/ImagePreview.js";
|
|
30
|
+
import { default as Le } from "./components/FileUpload/LengthCard.js";
|
|
31
|
+
import { default as Oe } from "./components/FileUpload/PreviewModal.js";
|
|
32
|
+
import { default as he } from "./components/Grid/Column.js";
|
|
33
|
+
import { default as ve } from "./components/Grid/Row.js";
|
|
34
|
+
import { default as we } from "./components/Heading/Heading.js";
|
|
35
|
+
import { default as ke } from "./components/Icon/index.js";
|
|
36
|
+
import { default as Ue } from "./components/IconBox/IconBox.js";
|
|
37
|
+
import { default as We } from "./components/InfiniteScroll/InfiniteScroll.js";
|
|
38
|
+
import { default as ze } from "./components/InfoBoxList/InfoBoxList.js";
|
|
39
|
+
import { createConnectedService as Qe } from "./components/InfoBoxList/helper.js";
|
|
40
|
+
import { default as qe } from "./components/InfoDate/InfoDate.js";
|
|
41
|
+
import { InfoText as Je } from "./components/InfoText/InfoText.js";
|
|
42
|
+
import { default as Ze } from "./components/Input/Input.js";
|
|
43
|
+
import { default as er } from "./components/Label/Label.js";
|
|
44
|
+
import { default as or } from "./components/Loading/Loading.js";
|
|
45
|
+
import { default as tr } from "./components/Modal/Modal.js";
|
|
46
|
+
import { default as pr } from "./components/NavigatorCard/index.js";
|
|
47
|
+
import { default as sr } from "./components/NoResult/NoResult.js";
|
|
48
|
+
import { Notification as mr } from "./components/Notification/Notification.js";
|
|
49
|
+
import { default as xr } from "./components/PageWrapper/PageWrap.js";
|
|
50
|
+
import { default as ir } from "./components/Pager/Pager.js";
|
|
51
|
+
import { default as Ar } from "./components/Panel/Panel.js";
|
|
52
|
+
import { default as Er } from "./components/PermaLink/PermaLink.js";
|
|
53
|
+
import { default as Cr, RadioList as Ir } from "./components/Radio/Radio.js";
|
|
54
|
+
import { default as Rr } from "./components/ResultError/ResultError.js";
|
|
55
|
+
import { default as Dr } from "./components/ScrollContainer/ScrollContainer.js";
|
|
56
|
+
import { default as Fr } from "./components/Select/NoData.js";
|
|
57
|
+
import { S as Nr } from "./Select-nhp2PiJK.js";
|
|
58
|
+
import { default as yr } from "./components/Sidebar/index.js";
|
|
59
|
+
import { M as Pr } from "./MenuItem-Df6Zsa7E.js";
|
|
60
|
+
import { default as br } from "./components/StatusTag/StatusTag.js";
|
|
61
|
+
import { default as Br } from "./components/StatusTypography/StatusTypography.js";
|
|
62
|
+
import { default as Hr } from "./components/Stepper/Stepper.js";
|
|
63
|
+
import { default as Vr } from "./components/Switch/Switch.js";
|
|
64
|
+
import { default as jr } from "./components/Tab/Tab.js";
|
|
65
|
+
import { default as Kr } from "./components/Table/Table.js";
|
|
66
|
+
import { default as Yr } from "./components/Table/TableHeader.js";
|
|
67
|
+
import { default as Gr } from "./components/Table/TableSort.js";
|
|
68
|
+
import { default as Xr } from "./components/Textarea/Textarea.js";
|
|
69
|
+
import { default as $r } from "./components/Tooltip/Tooltip.js";
|
|
70
|
+
import { default as ro } from "./components/TypographyText/TypographyText.js";
|
|
71
|
+
import { default as ao } from "./components/UserInfo/UserInfo.js";
|
|
72
|
+
import { default as fo } from "./components/ValidationError/ValidationError.js";
|
|
73
|
+
import { AuthProvider as lo, useAuth as so } from "./hooks/useAauth.js";
|
|
74
|
+
import { default as uo } from "./hooks/useDisclosure.js";
|
|
75
|
+
import { default as no } from "./hooks/useNiceModal.js";
|
|
76
|
+
import { default as To } from "./hooks/useMediaQuery.js";
|
|
77
|
+
import { useDrawerContext as co } from "./components/Drawer/Provider.js";
|
|
78
|
+
import { default as _o } from "./hooks/useDrawer.js";
|
|
79
|
+
import { default as Io, t as Mo } from "./locales/i18n.js";
|
|
80
|
+
import { CLIENT_DATE_AND_TIME_FORMAT as So, CLIENT_DATE_AND_TIME_SHORT_FORMAT as Do, CLIENT_DATE_COMPARE_FORMAT as go, CLIENT_DATE_FILTER_FORMAT as Fo, CLIENT_DATE_SHORT_FORMAT as Lo, CLIENT_TIME_FORMAT as No, CLIENT_TIME_FORMAT_PICKER as Oo, DateFormats as yo, MIN_DATE_TODAY as ho, MIN_DATE_TOMORROW as Po, SERVER_DATE_AND_TIME_FORMAT as vo, SERVER_DATE_FORMAT as bo, default as wo, friendlyDate as Bo } from "./utils/date.js";
|
|
81
|
+
import { startFetcher as Ho, startFormFetcher as Uo } from "./utils/fetcher.js";
|
|
82
|
+
import { changeLanguage as Wo, getCurrentLanguage as jo, getDatepickerLocale as zo } from "./utils/language.js";
|
|
83
|
+
import { default as Qo } from "./prodivers.js";
|
|
84
|
+
import { f as qo, p as Go } from "./helper-1SQ9SI45.js";
|
|
84
85
|
export {
|
|
85
86
|
w as Accordion,
|
|
86
87
|
B as AccordionItem,
|
|
@@ -94,114 +95,118 @@ export {
|
|
|
94
95
|
p as AppearanceSpinner,
|
|
95
96
|
l as AppearanceTag,
|
|
96
97
|
i as ApplicationTypeSlug,
|
|
97
|
-
|
|
98
|
+
lo as AuthProvider,
|
|
98
99
|
K as Autocomplete,
|
|
99
100
|
Y as Avatar,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
N as Button,
|
|
102
|
+
So as CLIENT_DATE_AND_TIME_FORMAT,
|
|
103
|
+
Do as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
|
|
104
|
+
go as CLIENT_DATE_COMPARE_FORMAT,
|
|
105
|
+
Fo as CLIENT_DATE_FILTER_FORMAT,
|
|
106
|
+
Lo as CLIENT_DATE_SHORT_FORMAT,
|
|
107
|
+
No as CLIENT_TIME_FORMAT,
|
|
108
|
+
Oo as CLIENT_TIME_FORMAT_PICKER,
|
|
108
109
|
G as Card,
|
|
109
110
|
X as Chart,
|
|
110
111
|
$ as Checkbox,
|
|
111
|
-
|
|
112
|
+
he as Column,
|
|
112
113
|
re as Config,
|
|
113
114
|
ae as Confirm,
|
|
114
115
|
fe as ContentHeader,
|
|
115
116
|
le as ContentLoader,
|
|
116
117
|
I as CopyTextStatusEnum,
|
|
117
118
|
de as Countdown,
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
yo as DateFormats,
|
|
120
|
+
ue as Datepicker,
|
|
120
121
|
ne as Divider,
|
|
121
|
-
|
|
122
|
+
s as DividerAppearance,
|
|
122
123
|
Te as Drawer,
|
|
123
124
|
ce as DropdownList,
|
|
124
|
-
_e as
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
_e as ErrorLogModal,
|
|
126
|
+
Se as FileUpload,
|
|
127
|
+
ge as FileUploadImagePreview,
|
|
128
|
+
Le as FileUploadLengthCard,
|
|
129
|
+
Oe as FileUploadPreviewModal,
|
|
128
130
|
d as FormFieldAppearance,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
131
|
+
we as Heading,
|
|
132
|
+
ke as Icon,
|
|
133
|
+
Ue as IconBox,
|
|
134
|
+
We as InfiniteScroll,
|
|
135
|
+
ze as InfoBoxList,
|
|
136
|
+
qe as InfoDate,
|
|
137
|
+
Je as InfoText,
|
|
138
|
+
Ze as Input,
|
|
139
|
+
er as Label,
|
|
140
|
+
or as Loading,
|
|
141
|
+
ho as MIN_DATE_TODAY,
|
|
142
|
+
Po as MIN_DATE_TOMORROW,
|
|
143
|
+
Pr as MenuItem,
|
|
144
|
+
tr as Modal,
|
|
143
145
|
m as ModalAppearanceType,
|
|
144
|
-
|
|
146
|
+
pr as NavigatorCard,
|
|
145
147
|
y as NiceModal,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
148
|
+
Fr as NoData,
|
|
149
|
+
sr as NoResult,
|
|
150
|
+
mr as Notification,
|
|
151
|
+
u as NotificationAppearanceType,
|
|
152
|
+
xr as PageWrapper,
|
|
153
|
+
ir as Pager,
|
|
154
|
+
Ar as Panel,
|
|
155
|
+
P as PermFallBack,
|
|
156
|
+
Er as PermaLink,
|
|
155
157
|
j as Permission,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
158
|
+
M as PodStatusEnum,
|
|
159
|
+
Qo as Provider,
|
|
160
|
+
Cr as Radio,
|
|
161
|
+
Ir as RadioList,
|
|
162
|
+
Ce as RealTimeLogModal,
|
|
163
|
+
R as ReportStatus,
|
|
164
|
+
Rr as ResultError,
|
|
165
|
+
ve as Row,
|
|
166
|
+
vo as SERVER_DATE_AND_TIME_FORMAT,
|
|
167
|
+
bo as SERVER_DATE_FORMAT,
|
|
168
|
+
Dr as ScrollContainer,
|
|
169
|
+
Nr as Select,
|
|
170
|
+
yr as Sidebar,
|
|
168
171
|
E as Size,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
S as SortEnum,
|
|
173
|
+
D as StatusEnum,
|
|
174
|
+
br as StatusTag,
|
|
172
175
|
g as StatusType,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
Br as StatusTypography,
|
|
177
|
+
Hr as Stepper,
|
|
178
|
+
Vr as Switch,
|
|
179
|
+
jr as Tab,
|
|
180
|
+
Kr as Table,
|
|
181
|
+
Ie as TableActions,
|
|
182
|
+
Me as TableColumns,
|
|
183
|
+
Yr as TableHeader,
|
|
184
|
+
Gr as TableSort,
|
|
185
|
+
F as TagStatus,
|
|
186
|
+
Xr as Textarea,
|
|
184
187
|
x as ThemeAppearance,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
$r as Tooltip,
|
|
189
|
+
ro as TypographyText,
|
|
190
|
+
ao as UserInfo,
|
|
191
|
+
fo as ValidationError,
|
|
192
|
+
Wo as changeLanguage,
|
|
193
|
+
Qe as createConnectedService,
|
|
194
|
+
wo as dayjs,
|
|
195
|
+
qo as format,
|
|
196
|
+
Bo as friendlyDate,
|
|
194
197
|
v as getAuth,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
+
jo as getCurrentLanguage,
|
|
199
|
+
zo as getDatepickerLocale,
|
|
200
|
+
Io as i18n,
|
|
198
201
|
A as isActiveColor,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
Go as parseISO,
|
|
203
|
+
Ho as startFetcher,
|
|
204
|
+
Uo as startFormFetcher,
|
|
205
|
+
Mo as t,
|
|
206
|
+
so as useAuth,
|
|
207
|
+
uo as useDisclosure,
|
|
208
|
+
_o as useDrawer,
|
|
209
|
+
co as useDrawerContext,
|
|
210
|
+
To as useMediaQuery,
|
|
211
|
+
no as useNiceModal
|
|
207
212
|
};
|
package/dist/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--white: white;--whiteRGBA: hsla(0, 0%, 100%, .85);--black: #000;--blackRGBA: rgba(0, 0, 0, .5);--primary: #293245;--dark: #2b344c;--dark-1e: #1e1e2d;--dark-1d: #1d2843;--dark-12: #12161e;--dark-47: #262e47;--dark-4a: #062a4a;--dark-21: #21283a;--dark-22: #222;--dark-24: #242b3f;--dark-3c: #3c4560;--gray-3b: #232b3b;--gray-61: #3d4561;--gray-68: #3b4768;--gray-57: #333b57;--gray-3e: #30363e;--gray-5c: #3f4b5c;--gray-4a: #4a4a4a;--gray-4c: #3b404c;--gray-b6: #b6c2cf;--gray-79: #495679;--gray-71: #717a8e;--gray-6e: #535a6e;--gray-62: #626262;--gray-81: #5c5e81;--gray-8c: #8ca0b3;--gray-be: #6c7ebe;--gray-90: #909090;--gray-9b: #9b9b9b;--gray-94: #948686;--gray-95: #788195;--gray-67: #676767;--gray-c2: #9ca9c2;--gray-ec: #c8daec;--gray-d8: #d8d8d8;--gray-d4: #d4d6f0;--gray-fb: #fbedbe;--gray-bc: #bcbcbc;--gray-f9: #f1f3f9;--gray-f8: #f5f6f8;--gray-df: #dfdfdf;--gray-f7: #e9f0f7;--gray-f5: #f5f5f5;--gray-fd: #fdfdfd;--gray-ee: #eee;--gray-ef: #efefef;--gray-f2: #eef0f2;--gray-e2: #e2e7f2;--blue-ff: #4482ff;--blue-f9: #037cf9;--danger: #d2282e;--success: #71d200;--info: #1890ff;--warning: #ffb822;--initializing: #ffaa49;--pending: #ffdca8;--failed: #ff5365;--queued: #9387c7;--font-xs: 10px;--font-sm: 12px;--font-def: 14px;--font-md: 16px;--font-lg: 18px;--font-xl: 20px;--font-2xl: 24px;--font-3xl: 30px;--checkbox-checked: #6c7ebe;--border-dark-primary: #262e47;--border-dark-secondary: #3b404c;--divider-primary: #d8d8d8;--dropdown-active: #1d2843;--bg-primary: #293245;--tab-active-text: white;--tab-inactive-text: #757f96;--status-success: #e3f6cc;--status-waiting1: #fce0ce;--status-waiting2: #c6f0f2;--status-waiting3: #eae7f4;--status-failed: #f6b5b5;--status-empty: #eaeff0;--spacing-xxs: 4px;--spacing-xs: 8px;--spacing-s: 12px;--spacing-m: 16px;--spacing-l: 20px;--spacing-xl: 24px;--spacing-xxl: 28px;--spacing-column: 32px;--toast-font-size: 14px;--toast-font-family: "Jost", sans-serif;--toast-font-weight: 600;--toast-padding: 20px 30px;--toast-icon-margin-left: 28px;--toast-icon-font-size: 18px;--toast-warning-icon-font-size: 26px}
|
|
1
|
+
:root{--white: white;--whiteRGBA: hsla(0, 0%, 100%, .85);--black: #000;--blackRGBA: rgba(0, 0, 0, .5);--primary: #293245;--dark: #2b344c;--dark-1e: #1e1e2d;--dark-1d: #1d2843;--dark-12: #12161e;--dark-47: #262e47;--dark-4a: #062a4a;--dark-21: #21283a;--dark-22: #222;--dark-24: #242b3f;--dark-3c: #3c4560;--gray-3b: #232b3b;--gray-61: #3d4561;--gray-68: #3b4768;--gray-57: #333b57;--gray-3e: #30363e;--gray-5c: #3f4b5c;--gray-4a: #4a4a4a;--gray-4c: #3b404c;--gray-b6: #b6c2cf;--gray-79: #495679;--gray-71: #717a8e;--gray-6e: #535a6e;--gray-62: #626262;--gray-81: #5c5e81;--gray-8c: #8ca0b3;--gray-be: #6c7ebe;--gray-90: #909090;--gray-9b: #9b9b9b;--gray-94: #948686;--gray-95: #788195;--gray-67: #676767;--gray-c2: #9ca9c2;--gray-ec: #c8daec;--gray-d8: #d8d8d8;--gray-d4: #d4d6f0;--gray-fb: #fbedbe;--gray-bc: #bcbcbc;--gray-f9: #f1f3f9;--gray-f8: #f5f6f8;--gray-df: #dfdfdf;--gray-f7: #e9f0f7;--gray-f5: #f5f5f5;--gray-fd: #fdfdfd;--gray-ee: #eee;--gray-ef: #efefef;--gray-f2: #eef0f2;--gray-e2: #e2e7f2;--blue-ff: #4482ff;--blue-f9: #037cf9;--danger: #d2282e;--success: #71d200;--info: #1890ff;--warning: #ffb822;--initializing: #ffaa49;--pending: #ffdca8;--failed: #ff5365;--queued: #9387c7;--font-xs: 10px;--font-sm: 12px;--font-def: 14px;--font-md: 16px;--font-lg: 18px;--font-xl: 20px;--font-2xl: 24px;--font-3xl: 30px;--checkbox-checked: #6c7ebe;--border-dark-primary: #262e47;--border-dark-secondary: #3b404c;--divider-primary: #d8d8d8;--dropdown-active: #1d2843;--bg-primary: #293245;--tab-active-text: white;--tab-inactive-text: #757f96;--status-success: #e3f6cc;--status-waiting1: #fce0ce;--status-waiting2: #c6f0f2;--status-waiting3: #eae7f4;--status-failed: #f6b5b5;--status-empty: #eaeff0;--ios-green: #7bd500;--ios-red: #ff5365;--spacing-xxs: 4px;--spacing-xs: 8px;--spacing-s: 12px;--spacing-m: 16px;--spacing-l: 20px;--spacing-xl: 24px;--spacing-xxl: 28px;--spacing-column: 32px;--toast-font-size: 14px;--toast-font-family: "Jost", sans-serif;--toast-font-weight: 600;--toast-padding: 20px 30px;--toast-icon-margin-left: 28px;--toast-icon-font-size: 18px;--toast-warning-icon-font-size: 26px}
|
package/dist/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import './ReactToastify.css';import './main.css';/* empty css */
|
|
3
|
+
import n from "./components/Button/Button.js";
|
|
4
4
|
import "./index-H7XbDVmH.js";
|
|
5
|
-
import { AppearanceButton as
|
|
5
|
+
import { AppearanceButton as p } from "./enums/appearance.js";
|
|
6
6
|
import "./hooks/useAauth.js";
|
|
7
7
|
import "./assets/images/500_error_2x.gif";
|
|
8
8
|
import "./locales/i18n.js";
|
|
@@ -11,20 +11,22 @@ import "./index-BHf7G3IG.js";
|
|
|
11
11
|
import "./components/Tooltip/Tooltip.js";
|
|
12
12
|
import "./react-toastify.esm-BUWNP7Nm.js";
|
|
13
13
|
import "./utils/date.js";
|
|
14
|
-
import
|
|
14
|
+
import a from "./components/Input/Input.js";
|
|
15
15
|
import "./components/Charts/index.js";
|
|
16
16
|
import "./components/Checkbox/Checkbox.js";
|
|
17
17
|
import "./components/Confirm/Confirm.js";
|
|
18
18
|
import "./components/Datepicker/Datepicker.js";
|
|
19
19
|
import "./components/Drawer/Provider.js";
|
|
20
|
+
import "./ErrorLogModal-DhlD9tNj.js";
|
|
20
21
|
import "./components/FileUpload/FileUpload.js";
|
|
21
22
|
import "./Select-nhp2PiJK.js";
|
|
23
|
+
import "./components/StatusTag/StatusTag.js";
|
|
22
24
|
import "./components/Switch/Switch.js";
|
|
23
25
|
import "./components/Textarea/Textarea.js";
|
|
24
26
|
import "./utils/yup.js";
|
|
25
|
-
import "./
|
|
27
|
+
import s from "./prodivers.js";
|
|
26
28
|
import c from "react-dom";
|
|
27
|
-
|
|
29
|
+
var o, r = c;
|
|
28
30
|
if (process.env.NODE_ENV === "production")
|
|
29
31
|
o = r.createRoot, r.hydrateRoot;
|
|
30
32
|
else {
|
|
@@ -38,18 +40,18 @@ else {
|
|
|
38
40
|
}
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
|
-
const l = () => /* @__PURE__ */ t.jsx(
|
|
43
|
+
const l = () => /* @__PURE__ */ t.jsx(s, { children: /* @__PURE__ */ t.jsxs("div", { style: { padding: 20 }, children: [
|
|
42
44
|
/* @__PURE__ */ t.jsx("h1", { className: "text-3xl", children: "Flora Component Library" }),
|
|
43
45
|
/* @__PURE__ */ t.jsx(
|
|
44
|
-
|
|
46
|
+
n,
|
|
45
47
|
{
|
|
46
48
|
isBlock: !0,
|
|
47
|
-
appearance:
|
|
49
|
+
appearance: p.DARK,
|
|
48
50
|
onClick: () => alert("Button Clicked!"),
|
|
49
51
|
children: "Save"
|
|
50
52
|
}
|
|
51
53
|
),
|
|
52
|
-
/* @__PURE__ */ t.jsx(
|
|
54
|
+
/* @__PURE__ */ t.jsx(a, { name: "example" })
|
|
53
55
|
] }) }), d = document.getElementById("root"), u = o(d);
|
|
54
56
|
u.render(/* @__PURE__ */ t.jsx(l, {}));
|
|
55
57
|
export {
|
package/dist/prodivers.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import { N as i } from "./index-H7XbDVmH.js";
|
|
3
3
|
import { T as t } from "./react-toastify.esm-BUWNP7Nm.js";
|
|
4
|
+
import './ReactToastify.css';/* empty css */
|
|
4
5
|
import { DrawerProvider as e } from "./components/Drawer/Provider.js";
|
|
5
|
-
|
|
6
|
+
function p({ children: o }) {
|
|
6
7
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
7
8
|
/* @__PURE__ */ r.jsx(i.Provider, { children: /* @__PURE__ */ r.jsx(e, { children: o }) }),
|
|
8
9
|
/* @__PURE__ */ r.jsx(t, { limit: 3 })
|
|
9
10
|
] });
|
|
10
11
|
}
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
p as default
|
|
13
14
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function v(e, a) {
|
|
2
|
+
let t = null;
|
|
3
|
+
const l = () => {
|
|
4
|
+
t && (clearInterval(t), t = null);
|
|
5
|
+
};
|
|
6
|
+
return {
|
|
7
|
+
fetch: (...r) => {
|
|
8
|
+
e(...r);
|
|
9
|
+
},
|
|
10
|
+
stopInterval: l,
|
|
11
|
+
startInterval: (...r) => {
|
|
12
|
+
l(), t = setInterval(() => {
|
|
13
|
+
e(...r);
|
|
14
|
+
}, a);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function o(e, a) {
|
|
19
|
+
let t = null, l;
|
|
20
|
+
const r = () => {
|
|
21
|
+
t && (clearInterval(t), t = null);
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
fetch: (...n) => {
|
|
25
|
+
e(...n);
|
|
26
|
+
},
|
|
27
|
+
stopInterval: r,
|
|
28
|
+
stop: () => {
|
|
29
|
+
t && (clearInterval(t), l == null || l.unsubscribe(), t = null, l = void 0);
|
|
30
|
+
},
|
|
31
|
+
startInterval: (...n) => {
|
|
32
|
+
r(), t = setInterval(() => {
|
|
33
|
+
e(...n);
|
|
34
|
+
}, a);
|
|
35
|
+
},
|
|
36
|
+
startSubscription: (n, s) => {
|
|
37
|
+
l = n(s);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
v as startFetcher,
|
|
43
|
+
o as startFormFetcher
|
|
44
|
+
};
|
package/dist/utils/helper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "./date.js";
|
|
3
|
-
import {
|
|
3
|
+
import { i as o, e as i, c as m, a as p, d as c, b as l, r as n, h as u, s as b, t as v, u as d, g } from "../helper-1SQ9SI45.js";
|
|
4
4
|
import "../index-9ZLCCecr.js";
|
|
5
5
|
export {
|
|
6
6
|
o as capitalizeFirstLetter,
|
package/dist/utils/index.js
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { CLIENT_DATE_AND_TIME_FORMAT as E, CLIENT_DATE_AND_TIME_SHORT_FORMAT as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { CLIENT_DATE_AND_TIME_FORMAT as E, CLIENT_DATE_AND_TIME_SHORT_FORMAT as e, CLIENT_DATE_COMPARE_FORMAT as a, CLIENT_DATE_FILTER_FORMAT as A, CLIENT_DATE_SHORT_FORMAT as r, CLIENT_TIME_FORMAT as t, CLIENT_TIME_FORMAT_PICKER as R, DateFormats as M, MIN_DATE_TODAY as I, MIN_DATE_TOMORROW as O, SERVER_DATE_AND_TIME_FORMAT as o, SERVER_DATE_FORMAT as D, default as F, friendlyDate as s } from "./date.js";
|
|
2
|
+
import { startFetcher as C, startFormFetcher as L } from "./fetcher.js";
|
|
3
|
+
import { changeLanguage as m, getCurrentLanguage as p, getDatepickerLocale as g } from "./language.js";
|
|
4
|
+
import { T as c, a as l } from "../ErrorLogModal-DhlD9tNj.js";
|
|
5
|
+
import { f as x, p as S } from "../helper-1SQ9SI45.js";
|
|
5
6
|
export {
|
|
6
7
|
E as CLIENT_DATE_AND_TIME_FORMAT,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
e as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
|
|
9
|
+
a as CLIENT_DATE_COMPARE_FORMAT,
|
|
10
|
+
A as CLIENT_DATE_FILTER_FORMAT,
|
|
11
|
+
r as CLIENT_DATE_SHORT_FORMAT,
|
|
12
|
+
t as CLIENT_TIME_FORMAT,
|
|
13
|
+
R as CLIENT_TIME_FORMAT_PICKER,
|
|
14
|
+
M as DateFormats,
|
|
15
|
+
I as MIN_DATE_TODAY,
|
|
16
|
+
O as MIN_DATE_TOMORROW,
|
|
17
|
+
o as SERVER_DATE_AND_TIME_FORMAT,
|
|
18
|
+
D as SERVER_DATE_FORMAT,
|
|
19
|
+
c as TableActions,
|
|
20
|
+
l as TableColumns,
|
|
21
|
+
m as changeLanguage,
|
|
22
|
+
F as dayjs,
|
|
23
|
+
x as format,
|
|
24
|
+
s as friendlyDate,
|
|
25
|
+
p as getCurrentLanguage,
|
|
26
|
+
g as getDatepickerLocale,
|
|
27
|
+
S as parseISO,
|
|
28
|
+
C as startFetcher,
|
|
29
|
+
L as startFormFetcher
|
|
27
30
|
};
|
package/dist/utils/table.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import "../index-BHf7G3IG.js";
|
|
3
3
|
import "../index-H7XbDVmH.js";
|
|
4
4
|
import "../hooks/useAauth.js";
|
|
5
5
|
import "../assets/images/500_error_2x.gif";
|
|
6
|
-
import
|
|
6
|
+
import "../locales/i18n.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import
|
|
8
|
+
import "../assets/icons/flora-icons.js";
|
|
9
9
|
import "../components/Tooltip/Tooltip.js";
|
|
10
10
|
import "../react-toastify.esm-BUWNP7Nm.js";
|
|
11
11
|
import "./date.js";
|
|
@@ -15,48 +15,15 @@ import "../components/Checkbox/Checkbox.js";
|
|
|
15
15
|
import "../components/Confirm/Confirm.js";
|
|
16
16
|
import "../components/Datepicker/Datepicker.js";
|
|
17
17
|
import "../components/Drawer/Provider.js";
|
|
18
|
+
import { T as w, a as y } from "../ErrorLogModal-DhlD9tNj.js";
|
|
18
19
|
import "../components/FileUpload/FileUpload.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
20
|
+
import "../components/IconBox/IconBox.js";
|
|
21
|
+
import "../components/InfoDate/InfoDate.js";
|
|
21
22
|
import "../Select-nhp2PiJK.js";
|
|
22
|
-
import
|
|
23
|
+
import "../components/StatusTag/StatusTag.js";
|
|
23
24
|
import "../components/Switch/Switch.js";
|
|
24
25
|
import "../components/Textarea/Textarea.js";
|
|
25
|
-
const R = {
|
|
26
|
-
status: (t) => ({
|
|
27
|
-
title: a.t("label.status"),
|
|
28
|
-
dataIndex: "status",
|
|
29
|
-
className: "capitalize",
|
|
30
|
-
render: (e) => /* @__PURE__ */ i.jsx(n, { status: t[e], text: e })
|
|
31
|
-
}),
|
|
32
|
-
dateCreated: {
|
|
33
|
-
title: a.t("label.date_created"),
|
|
34
|
-
dataIndex: "created_date",
|
|
35
|
-
render: (t) => /* @__PURE__ */ i.jsx(m, { date: t })
|
|
36
|
-
}
|
|
37
|
-
}, S = {
|
|
38
|
-
edit: (t, e) => ({
|
|
39
|
-
title: a.t("label.edit"),
|
|
40
|
-
dataIndex: t,
|
|
41
|
-
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Edit, onClick: () => e(o, r) })
|
|
42
|
-
}),
|
|
43
|
-
delete: (t, e) => ({
|
|
44
|
-
title: a.t("label.delete"),
|
|
45
|
-
dataIndex: t,
|
|
46
|
-
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Trash, onClick: () => e(o, r) })
|
|
47
|
-
}),
|
|
48
|
-
download: (t, e) => ({
|
|
49
|
-
title: a.t("label.export"),
|
|
50
|
-
dataIndex: t,
|
|
51
|
-
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Download, onClick: () => e(o, r) })
|
|
52
|
-
}),
|
|
53
|
-
detail: (t, e) => ({
|
|
54
|
-
title: a.t("label.detail"),
|
|
55
|
-
dataIndex: t,
|
|
56
|
-
render: (o, r) => /* @__PURE__ */ i.jsx(l, { icon: d.Link, onClick: () => e(o, r) })
|
|
57
|
-
})
|
|
58
|
-
};
|
|
59
26
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
27
|
+
w as TableActions,
|
|
28
|
+
y as TableColumns
|
|
62
29
|
};
|