@cagatayfdn/flora-components 0.0.83 → 0.0.84
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/components/PermaLink/PermaLink.js +2 -2
- package/dist/components/Sidebar/index.js +23 -23
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/{index-a0GSBrWt.js → index-9ZLCCecr.js} +2 -2
- package/dist/{index-C9yacAGx.js → index-CPAJmTI5.js} +1 -1
- package/dist/index-JNaMEwgt.js +1413 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +93 -90
- package/dist/utils/date.js +264 -266
- package/dist/utils/helper.js +34 -1442
- package/dist/utils/index.js +18 -15
- package/dist/utils/language.js +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ import dayjs from 'dayjs';
|
|
|
9
9
|
import { Dispatch as Dispatch_2 } from 'react';
|
|
10
10
|
import { FC } from 'react';
|
|
11
11
|
import { FieldError } from 'react-hook-form';
|
|
12
|
+
import { format } from 'date-fns';
|
|
12
13
|
import i18n from 'i18next';
|
|
13
14
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
14
15
|
import { LegendItem } from 'chart.js';
|
|
@@ -16,6 +17,7 @@ import { LinkProps } from 'react-router-dom';
|
|
|
16
17
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
17
18
|
import NiceModal from '@ebay/nice-modal-react';
|
|
18
19
|
import { NiceModalHocProps } from '@ebay/nice-modal-react';
|
|
20
|
+
import { parseISO } from 'date-fns';
|
|
19
21
|
import { default as React_2 } from 'react';
|
|
20
22
|
import { ReactNode } from 'react';
|
|
21
23
|
import { SelectItemRenderer } from 'react-dropdown-select';
|
|
@@ -512,6 +514,8 @@ export declare type FileUploadProps = {
|
|
|
512
514
|
onChange?: (event: any) => void;
|
|
513
515
|
} & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLInputElement>, 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave' | 'onChange'>;
|
|
514
516
|
|
|
517
|
+
export { format }
|
|
518
|
+
|
|
515
519
|
export declare interface FormElementProps {
|
|
516
520
|
name: string;
|
|
517
521
|
placeholder?: string;
|
|
@@ -906,6 +910,8 @@ export declare type PanelProps = {
|
|
|
906
910
|
bodyClass?: string;
|
|
907
911
|
};
|
|
908
912
|
|
|
913
|
+
export { parseISO }
|
|
914
|
+
|
|
909
915
|
export declare type PayloadWithFormKeys<T> = T & {
|
|
910
916
|
[K in keyof formKeys]?: string;
|
|
911
917
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import dayjs from 'dayjs';
|
|
|
9
9
|
import { Dispatch as Dispatch_2 } from 'react';
|
|
10
10
|
import { FC } from 'react';
|
|
11
11
|
import { FieldError } from 'react-hook-form';
|
|
12
|
+
import { format } from 'date-fns';
|
|
12
13
|
import i18n from 'i18next';
|
|
13
14
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
14
15
|
import { LegendItem } from 'chart.js';
|
|
@@ -16,6 +17,7 @@ import { LinkProps } from 'react-router-dom';
|
|
|
16
17
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
17
18
|
import NiceModal from '@ebay/nice-modal-react';
|
|
18
19
|
import { NiceModalHocProps } from '@ebay/nice-modal-react';
|
|
20
|
+
import { parseISO } from 'date-fns';
|
|
19
21
|
import { default as React_2 } from 'react';
|
|
20
22
|
import { ReactNode } from 'react';
|
|
21
23
|
import { SelectItemRenderer } from 'react-dropdown-select';
|
|
@@ -512,6 +514,8 @@ export declare type FileUploadProps = {
|
|
|
512
514
|
onChange?: (event: any) => void;
|
|
513
515
|
} & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLInputElement>, 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave' | 'onChange'>;
|
|
514
516
|
|
|
517
|
+
export { format }
|
|
518
|
+
|
|
515
519
|
export declare interface FormElementProps {
|
|
516
520
|
name: string;
|
|
517
521
|
placeholder?: string;
|
|
@@ -906,6 +910,8 @@ export declare type PanelProps = {
|
|
|
906
910
|
bodyClass?: string;
|
|
907
911
|
};
|
|
908
912
|
|
|
913
|
+
export { parseISO }
|
|
914
|
+
|
|
909
915
|
export declare type PayloadWithFormKeys<T> = T & {
|
|
910
916
|
[K in keyof formKeys]?: string;
|
|
911
917
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AppAndServicesStatusApperenceType as
|
|
1
|
+
import { AppAndServicesStatusApperenceType as o, AppearanceAlertCard as a, AppearanceButton as t, AppearanceDirection as f, AppearanceSpinner as p, AppearanceTag as l, DividerAppearance as d, FormFieldAppearance as m, ModalAppearanceType as u, NotificationAppearanceType as s, 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
|
|
5
|
+
import { AppTypeEnum as C, CopyTextStatusEnum as I, PodStatusEnum as M, ReportStatus as R, StatusEnum as D, StatusType as S } from "./enums/status.js";
|
|
6
6
|
import { default as N } from "./components/Button/Button.js";
|
|
7
7
|
import { N as F } from "./index-H7XbDVmH.js";
|
|
8
8
|
import { PermFallBack as y, getAuth as P } from "./components/AuthUserCan/index.js";
|
|
@@ -16,18 +16,18 @@ import { default as Y } from "./components/Charts/index.js";
|
|
|
16
16
|
import { default as G } from "./components/Checkbox/Checkbox.js";
|
|
17
17
|
import { default as X } from "./components/Config/Config.js";
|
|
18
18
|
import { default as $ } from "./components/Confirm/Confirm.js";
|
|
19
|
-
import { default as
|
|
19
|
+
import { default as re } from "./components/ContentHeader/ContentHeader.js";
|
|
20
20
|
import { default as ae } from "./components/ContentLoader/ContentLoader.js";
|
|
21
21
|
import { default as fe } from "./components/Countdown/Countdown.js";
|
|
22
22
|
import { default as le } from "./components/Datepicker/Datepicker.js";
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as me } from "./components/Divider/Divider.js";
|
|
24
24
|
import { default as se } from "./components/Dropdown/DropdownList.js";
|
|
25
25
|
import { default as ne } from "./components/FileUpload/FileUpload.js";
|
|
26
26
|
import { default as Te } from "./components/FileUpload/ImagePreview.js";
|
|
27
27
|
import { default as ce } from "./components/FileUpload/LengthCard.js";
|
|
28
28
|
import { default as _e } from "./components/FileUpload/PreviewModal.js";
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
29
|
+
import { default as Ie } from "./components/Grid/Column.js";
|
|
30
|
+
import { default as Re } from "./components/Grid/Row.js";
|
|
31
31
|
import { default as Se } from "./components/Heading/Heading.js";
|
|
32
32
|
import { default as Ne } from "./components/Icon/index.js";
|
|
33
33
|
import { default as Fe } from "./components/InfiniteScroll/InfiniteScroll.js";
|
|
@@ -43,40 +43,41 @@ import { default as Ye } from "./components/NavigatorCard/index.js";
|
|
|
43
43
|
import { default as Ge } from "./components/NoResult/NoResult.js";
|
|
44
44
|
import { Notification as Xe } from "./components/Notification/Notification.js";
|
|
45
45
|
import { default as $e } from "./components/PageWrapper/PageWrap.js";
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { S as
|
|
54
|
-
import { default as
|
|
55
|
-
import { M as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { T as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { AuthProvider as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { CLIENT_DATE_AND_TIME_FORMAT as
|
|
72
|
-
import { changeLanguage as
|
|
73
|
-
import { default as
|
|
46
|
+
import { default as rr } from "./components/Pager/Pager.js";
|
|
47
|
+
import { default as ar } from "./components/Panel/Panel.js";
|
|
48
|
+
import { default as fr } from "./components/PermaLink/PermaLink.js";
|
|
49
|
+
import { default as lr, RadioList as dr } from "./components/Radio/Radio.js";
|
|
50
|
+
import { default as ur } from "./components/ResultError/ResultError.js";
|
|
51
|
+
import { default as xr } from "./components/ScrollContainer/ScrollContainer.js";
|
|
52
|
+
import { default as ir } from "./components/Select/NoData.js";
|
|
53
|
+
import { S as Ar } from "./Select-DcLZCXNo.js";
|
|
54
|
+
import { default as Er } from "./components/Sidebar/index.js";
|
|
55
|
+
import { M as Cr } from "./MenuItem-DAf7NU3h.js";
|
|
56
|
+
import { default as Mr } from "./components/StatusTypography/StatusTypography.js";
|
|
57
|
+
import { default as Dr } from "./components/Stepper/Stepper.js";
|
|
58
|
+
import { default as gr } from "./components/Switch/Switch.js";
|
|
59
|
+
import { default as Lr } from "./components/Tab/Tab.js";
|
|
60
|
+
import { default as Or } from "./components/Table/Table.js";
|
|
61
|
+
import { T as Pr } from "./TableHeader-Cjx9ZwYH.js";
|
|
62
|
+
import { default as vr } from "./components/Textarea/Textarea.js";
|
|
63
|
+
import { default as wr } from "./components/Tooltip/Tooltip.js";
|
|
64
|
+
import { default as Br } from "./components/TypographyText/TypographyText.js";
|
|
65
|
+
import { default as Ur } from "./components/ValidationError/ValidationError.js";
|
|
66
|
+
import { AuthProvider as Wr, useAuth as jr } from "./hooks/useAauth.js";
|
|
67
|
+
import { default as Kr } from "./hooks/useDisclosure.js";
|
|
68
|
+
import { default as Yr } from "./hooks/useNiceModal.js";
|
|
69
|
+
import { default as Gr } from "./hooks/useMediaQuery.js";
|
|
70
|
+
import { default as Xr, t as Zr } from "./locales/i18n.js";
|
|
71
|
+
import { CLIENT_DATE_AND_TIME_FORMAT as eo, CLIENT_DATE_AND_TIME_SHORT_FORMAT as ro, CLIENT_DATE_COMPARE_FORMAT as oo, CLIENT_DATE_FILTER_FORMAT as ao, CLIENT_DATE_SHORT_FORMAT as to, CLIENT_TIME_FORMAT as fo, CLIENT_TIME_FORMAT_PICKER as po, DateFormats as lo, MIN_DATE_TODAY as mo, MIN_DATE_TOMORROW as uo, SERVER_DATE_AND_TIME_FORMAT as so, SERVER_DATE_FORMAT as xo, default as no, friendlyDate as io } from "./utils/date.js";
|
|
72
|
+
import { changeLanguage as Ao, getCurrentLanguage as co, getDatepickerLocale as Eo } from "./utils/language.js";
|
|
73
|
+
import { default as Co } from "./prodivers.js";
|
|
74
|
+
import { f as Mo, p as Ro } from "./index-JNaMEwgt.js";
|
|
74
75
|
export {
|
|
75
76
|
v as Accordion,
|
|
76
77
|
b as AccordionItem,
|
|
77
78
|
k as ActionButton,
|
|
78
79
|
H as AlertCard,
|
|
79
|
-
|
|
80
|
+
o as AppAndServicesStatusApperenceType,
|
|
80
81
|
C as AppTypeEnum,
|
|
81
82
|
a as AppearanceAlertCard,
|
|
82
83
|
t as AppearanceButton,
|
|
@@ -84,36 +85,36 @@ export {
|
|
|
84
85
|
p as AppearanceSpinner,
|
|
85
86
|
l as AppearanceTag,
|
|
86
87
|
i as ApplicationTypeSlug,
|
|
87
|
-
|
|
88
|
+
Wr as AuthProvider,
|
|
88
89
|
j as Autocomplete,
|
|
89
90
|
N as Button,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
eo as CLIENT_DATE_AND_TIME_FORMAT,
|
|
92
|
+
ro as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
|
|
93
|
+
oo as CLIENT_DATE_COMPARE_FORMAT,
|
|
94
|
+
ao as CLIENT_DATE_FILTER_FORMAT,
|
|
95
|
+
to as CLIENT_DATE_SHORT_FORMAT,
|
|
96
|
+
fo as CLIENT_TIME_FORMAT,
|
|
97
|
+
po as CLIENT_TIME_FORMAT_PICKER,
|
|
97
98
|
K as Card,
|
|
98
99
|
Y as Chart,
|
|
99
100
|
G as Checkbox,
|
|
100
|
-
|
|
101
|
+
Ie as Column,
|
|
101
102
|
X as Config,
|
|
102
103
|
$ as Confirm,
|
|
103
|
-
|
|
104
|
+
re as ContentHeader,
|
|
104
105
|
ae as ContentLoader,
|
|
105
|
-
|
|
106
|
+
I as CopyTextStatusEnum,
|
|
106
107
|
fe as Countdown,
|
|
107
|
-
|
|
108
|
+
lo as DateFormats,
|
|
108
109
|
le as Datepicker,
|
|
109
|
-
|
|
110
|
+
me as Divider,
|
|
110
111
|
d as DividerAppearance,
|
|
111
112
|
se as DropdownList,
|
|
112
113
|
ne as FileUpload,
|
|
113
114
|
Te as FileUploadImagePreview,
|
|
114
115
|
ce as FileUploadLengthCard,
|
|
115
116
|
_e as FileUploadPreviewModal,
|
|
116
|
-
|
|
117
|
+
m as FormFieldAppearance,
|
|
117
118
|
Se as Heading,
|
|
118
119
|
Ne as Icon,
|
|
119
120
|
Fe as InfiniteScroll,
|
|
@@ -123,61 +124,63 @@ export {
|
|
|
123
124
|
He as Input,
|
|
124
125
|
Ve as Label,
|
|
125
126
|
je as Loading,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
mo as MIN_DATE_TODAY,
|
|
128
|
+
uo as MIN_DATE_TOMORROW,
|
|
129
|
+
Cr as MenuItem,
|
|
129
130
|
Ke as Modal,
|
|
130
|
-
|
|
131
|
+
u as ModalAppearanceType,
|
|
131
132
|
Ye as NavigatorCard,
|
|
132
133
|
F as NiceModal,
|
|
133
|
-
|
|
134
|
+
ir as NoData,
|
|
134
135
|
Ge as NoResult,
|
|
135
136
|
Xe as Notification,
|
|
136
137
|
s as NotificationAppearanceType,
|
|
137
138
|
$e as PageWrapper,
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
rr as Pager,
|
|
140
|
+
ar as Panel,
|
|
140
141
|
y as PermFallBack,
|
|
141
|
-
|
|
142
|
+
fr as PermaLink,
|
|
142
143
|
V as Permission,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
144
|
+
M as PodStatusEnum,
|
|
145
|
+
Co as Provider,
|
|
146
|
+
lr as Radio,
|
|
147
|
+
dr as RadioList,
|
|
148
|
+
R as ReportStatus,
|
|
149
|
+
ur as ResultError,
|
|
150
|
+
Re as Row,
|
|
151
|
+
so as SERVER_DATE_AND_TIME_FORMAT,
|
|
152
|
+
xo as SERVER_DATE_FORMAT,
|
|
153
|
+
xr as ScrollContainer,
|
|
154
|
+
Ar as Select,
|
|
155
|
+
Er as Sidebar,
|
|
155
156
|
E as Size,
|
|
156
157
|
D as StatusEnum,
|
|
157
158
|
S as StatusType,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
Mr as StatusTypography,
|
|
160
|
+
Dr as Stepper,
|
|
161
|
+
gr as Switch,
|
|
162
|
+
Lr as Tab,
|
|
163
|
+
Or as Table,
|
|
164
|
+
Pr as TableHeader,
|
|
165
|
+
vr as Textarea,
|
|
165
166
|
x as ThemeAppearance,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
wr as Tooltip,
|
|
168
|
+
Br as TypographyText,
|
|
169
|
+
Ur as ValidationError,
|
|
170
|
+
Ao as changeLanguage,
|
|
170
171
|
he as createConnectedService,
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
no as dayjs,
|
|
173
|
+
Mo as format,
|
|
174
|
+
io as friendlyDate,
|
|
173
175
|
P as getAuth,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
co as getCurrentLanguage,
|
|
177
|
+
Eo as getDatepickerLocale,
|
|
178
|
+
Xr as i18n,
|
|
177
179
|
A as isActiveColor,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
Ro as parseISO,
|
|
181
|
+
Zr as t,
|
|
182
|
+
jr as useAuth,
|
|
183
|
+
Kr as useDisclosure,
|
|
184
|
+
Gr as useMediaQuery,
|
|
185
|
+
Yr as useNiceModal
|
|
183
186
|
};
|