@cagatayfdn/flora-components 0.0.102 → 0.0.104
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/IconBox.css +1 -0
- package/dist/components/IconBox/IconBox.js +13 -0
- package/dist/components/StatusTag/StatusTag.js +7 -10
- package/dist/components/index.js +77 -73
- package/dist/enums/index.js +5 -4
- package/dist/enums/status.js +6 -5
- package/dist/index.d.mts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +169 -164
- package/dist/utils/date.js +266 -264
- package/package.json +1 -1
package/dist/IconBox.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._iconBox_18b0e_1{display:inline-flex;justify-content:center;align-items:center;width:36px;height:36px;font-size:13px;border-radius:5px;padding:12px 0;border:1px solid transparent;outline:none;cursor:pointer}._iconBox_18b0e_1:focus{box-shadow:inherit}._iconBox_18b0e_1 i{width:13px;height:13px}._iconBox__primary_18b0e_21{color:#fff;background-color:#4482ff;border-color:#c8daec}._iconBox__secondary_18b0e_26{border-color:#c8daec;background-color:#fff;color:#717a8e}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as n } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as r } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import i from "../Icon/index.js";
|
|
4
|
+
import '../../IconBox.css';const x = "_iconBox_18b0e_1", a = "_iconBox__primary_18b0e_21", e = "_iconBox__secondary_18b0e_26", c = {
|
|
5
|
+
iconBox: x,
|
|
6
|
+
iconBox__primary: a,
|
|
7
|
+
iconBox__secondary: e
|
|
8
|
+
}, p = ({ icon: s, onClick: _, type: o = "secondary" }) => /* @__PURE__ */ n.jsx("button", { className: r(c.iconBox, {
|
|
9
|
+
[c[`iconBox__${o}`]]: o
|
|
10
|
+
}), onClick: _, children: /* @__PURE__ */ n.jsx(i, { name: s }) });
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import { c } from "../../index-BHf7G3IG.js";
|
|
3
|
-
import '../../StatusTag.css';const i = "_tag_14l4s_1",
|
|
3
|
+
import '../../StatusTag.css';const i = "_tag_14l4s_1", _ = "_success_14l4s_11", l = "_failed_14l4s_17", n = "_empty_14l4s_23", o = "_waiting_14l4s_29", t = {
|
|
4
4
|
tag: i,
|
|
5
|
-
success:
|
|
5
|
+
success: _,
|
|
6
6
|
failed: l,
|
|
7
|
-
empty:
|
|
7
|
+
empty: n,
|
|
8
8
|
waiting: o
|
|
9
|
-
}
|
|
10
|
-
var m = /* @__PURE__ */ ((s) => (s.success = "success", s.failed = "failed", s.waiting = "waiting", s.empty = "empty", s))(m || {});
|
|
11
|
-
const p = ({ status: s, text: e }) => /* @__PURE__ */ a.jsx(
|
|
9
|
+
}, r = ({ status: s, text: a }) => /* @__PURE__ */ e.jsx(
|
|
12
10
|
"div",
|
|
13
11
|
{
|
|
14
12
|
"data-testid": "status-tag",
|
|
@@ -18,10 +16,9 @@ const p = ({ status: s, text: e }) => /* @__PURE__ */ a.jsx(
|
|
|
18
16
|
[t[s]]: s
|
|
19
17
|
}
|
|
20
18
|
),
|
|
21
|
-
children:
|
|
19
|
+
children: a
|
|
22
20
|
}
|
|
23
21
|
);
|
|
24
22
|
export {
|
|
25
|
-
|
|
26
|
-
p as default
|
|
23
|
+
r as default
|
|
27
24
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -11,9 +11,9 @@ import { default as P } from "./Charts/index.js";
|
|
|
11
11
|
import { default as w } from "./Checkbox/Checkbox.js";
|
|
12
12
|
import { default as A } from "./Config/Config.js";
|
|
13
13
|
import { default as N } from "./Confirm/Confirm.js";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
14
|
+
import { default as B } from "./ContentHeader/ContentHeader.js";
|
|
15
|
+
import { default as M } from "./ContentLoader/ContentLoader.js";
|
|
16
|
+
import { default as k } from "./Countdown/Countdown.js";
|
|
17
17
|
import { default as U } from "./Datepicker/Datepicker.js";
|
|
18
18
|
import { default as E } from "./Divider/Divider.js";
|
|
19
19
|
import { default as W } from "./Drawer/index.js";
|
|
@@ -26,39 +26,41 @@ import { default as _ } from "./Grid/Column.js";
|
|
|
26
26
|
import { default as oo } from "./Grid/Row.js";
|
|
27
27
|
import { default as ro } from "./Heading/Heading.js";
|
|
28
28
|
import { default as ao } from "./Icon/index.js";
|
|
29
|
-
import { default as lo } from "./
|
|
30
|
-
import { default as mo } from "./
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { default as Io } from "./
|
|
36
|
-
import { default as Lo } from "./
|
|
37
|
-
import { default as ho } from "./
|
|
38
|
-
import { default as bo } from "./
|
|
39
|
-
import { default as Do } from "./
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as Ho } from "./
|
|
45
|
-
import { default as Vo
|
|
46
|
-
import { default as qo } from "./
|
|
47
|
-
import { default as Go } from "./
|
|
48
|
-
import { default as Ko } from "./
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import { default as re } from "./
|
|
54
|
-
import { default as ae } from "./
|
|
55
|
-
import { default as le } from "./
|
|
56
|
-
import { default as pe } from "./
|
|
57
|
-
import {
|
|
58
|
-
import { default as ue } from "./
|
|
59
|
-
import {
|
|
60
|
-
import { default as Ce } from "./
|
|
61
|
-
import { default as Te } from "./
|
|
29
|
+
import { default as lo } from "./IconBox/IconBox.js";
|
|
30
|
+
import { default as mo } from "./InfiniteScroll/InfiniteScroll.js";
|
|
31
|
+
import { default as so } from "./InfoBoxList/InfoBoxList.js";
|
|
32
|
+
import { createConnectedService as io } from "./InfoBoxList/helper.js";
|
|
33
|
+
import { default as co } from "./InfoDate/InfoDate.js";
|
|
34
|
+
import { InfoText as go } from "./InfoText/InfoText.js";
|
|
35
|
+
import { default as Io } from "./Input/Input.js";
|
|
36
|
+
import { default as Lo } from "./Label/Label.js";
|
|
37
|
+
import { default as ho } from "./Loading/Loading.js";
|
|
38
|
+
import { default as bo } from "./Modal/Modal.js";
|
|
39
|
+
import { default as Do } from "./NavigatorCard/index.js";
|
|
40
|
+
import { default as vo } from "./NoResult/NoResult.js";
|
|
41
|
+
import { Notification as Fo } from "./Notification/Notification.js";
|
|
42
|
+
import { default as Ro } from "./PageWrapper/PageWrap.js";
|
|
43
|
+
import { default as yo } from "./Pager/Pager.js";
|
|
44
|
+
import { default as Ho } from "./Panel/Panel.js";
|
|
45
|
+
import { default as Vo } from "./PermaLink/PermaLink.js";
|
|
46
|
+
import { default as jo, RadioList as qo } from "./Radio/Radio.js";
|
|
47
|
+
import { default as Go } from "./ResultError/ResultError.js";
|
|
48
|
+
import { default as Ko } from "./ScrollContainer/ScrollContainer.js";
|
|
49
|
+
import { default as Qo } from "./Select/NoData.js";
|
|
50
|
+
import { S as Yo } from "../Select-DcLZCXNo.js";
|
|
51
|
+
import { default as _o } from "./Sidebar/index.js";
|
|
52
|
+
import { M as oe } from "../MenuItem-DAf7NU3h.js";
|
|
53
|
+
import { default as re } from "./StatusTag/StatusTag.js";
|
|
54
|
+
import { default as ae } from "./StatusTypography/StatusTypography.js";
|
|
55
|
+
import { default as le } from "./Stepper/Stepper.js";
|
|
56
|
+
import { default as pe } from "./Switch/Switch.js";
|
|
57
|
+
import { default as xe } from "./Tab/Tab.js";
|
|
58
|
+
import { default as ue } from "./Table/Table.js";
|
|
59
|
+
import { T as ne } from "../TableHeader-Cjx9ZwYH.js";
|
|
60
|
+
import { default as Ce } from "./Textarea/Textarea.js";
|
|
61
|
+
import { default as Te } from "./Tooltip/Tooltip.js";
|
|
62
|
+
import { default as Se } from "./TypographyText/TypographyText.js";
|
|
63
|
+
import { default as Pe } from "./ValidationError/ValidationError.js";
|
|
62
64
|
export {
|
|
63
65
|
m as Accordion,
|
|
64
66
|
x as AccordionItem,
|
|
@@ -72,9 +74,9 @@ export {
|
|
|
72
74
|
_ as Column,
|
|
73
75
|
A as Config,
|
|
74
76
|
N as Confirm,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
B as ContentHeader,
|
|
78
|
+
M as ContentLoader,
|
|
79
|
+
k as Countdown,
|
|
78
80
|
U as Datepicker,
|
|
79
81
|
E as Divider,
|
|
80
82
|
W as Drawer,
|
|
@@ -85,43 +87,45 @@ export {
|
|
|
85
87
|
Y as FileUploadPreviewModal,
|
|
86
88
|
ro as Heading,
|
|
87
89
|
ao as Icon,
|
|
88
|
-
lo as
|
|
89
|
-
mo as
|
|
90
|
-
|
|
91
|
-
co as
|
|
92
|
-
go as
|
|
93
|
-
Io as
|
|
94
|
-
Lo as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
bo as
|
|
90
|
+
lo as IconBox,
|
|
91
|
+
mo as InfiniteScroll,
|
|
92
|
+
so as InfoBoxList,
|
|
93
|
+
co as InfoDate,
|
|
94
|
+
go as InfoText,
|
|
95
|
+
Io as Input,
|
|
96
|
+
Lo as Label,
|
|
97
|
+
ho as Loading,
|
|
98
|
+
oe as MenuItem,
|
|
99
|
+
bo as Modal,
|
|
100
|
+
Do as NavigatorCard,
|
|
98
101
|
a as NiceModal,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
Qo as NoData,
|
|
103
|
+
vo as NoResult,
|
|
104
|
+
Fo as Notification,
|
|
105
|
+
Ro as PageWrapper,
|
|
106
|
+
yo as Pager,
|
|
107
|
+
Ho as Panel,
|
|
105
108
|
l as PermFallBack,
|
|
106
|
-
|
|
109
|
+
Vo as PermaLink,
|
|
107
110
|
C as Permission,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
jo as Radio,
|
|
112
|
+
qo as RadioList,
|
|
113
|
+
Go as ResultError,
|
|
111
114
|
oo as Row,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
Ko as ScrollContainer,
|
|
116
|
+
Yo as Select,
|
|
117
|
+
_o as Sidebar,
|
|
118
|
+
re as StatusTag,
|
|
119
|
+
ae as StatusTypography,
|
|
120
|
+
le as Stepper,
|
|
121
|
+
pe as Switch,
|
|
122
|
+
xe as Tab,
|
|
123
|
+
ue as Table,
|
|
124
|
+
ne as TableHeader,
|
|
125
|
+
Ce as Textarea,
|
|
126
|
+
Te as Tooltip,
|
|
127
|
+
Se as TypographyText,
|
|
128
|
+
Pe as ValidationError,
|
|
129
|
+
io as createConnectedService,
|
|
126
130
|
d as getAuth
|
|
127
131
|
};
|
package/dist/enums/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { AppAndServicesStatusApperenceType as a, AppearanceAlertCard as r, Appea
|
|
|
2
2
|
import { ApplicationTypeSlug as s } from "./applicationTypeSlug.js";
|
|
3
3
|
import { isActiveColor as d } from "./isActiveColor.js";
|
|
4
4
|
import { Size as l } from "./size.js";
|
|
5
|
-
import { AppTypeEnum as E, CopyTextStatusEnum as
|
|
5
|
+
import { AppTypeEnum as E, CopyTextStatusEnum as g, PodStatusEnum as v, ReportStatus as C, StatusEnum as D, StatusType as F, TagStatus as h } from "./status.js";
|
|
6
6
|
export {
|
|
7
7
|
a as AppAndServicesStatusApperenceType,
|
|
8
8
|
E as AppTypeEnum,
|
|
@@ -12,16 +12,17 @@ export {
|
|
|
12
12
|
o as AppearanceSpinner,
|
|
13
13
|
A as AppearanceTag,
|
|
14
14
|
s as ApplicationTypeSlug,
|
|
15
|
-
|
|
15
|
+
g as CopyTextStatusEnum,
|
|
16
16
|
c as DividerAppearance,
|
|
17
17
|
i as FormFieldAppearance,
|
|
18
18
|
u as ModalAppearanceType,
|
|
19
19
|
m as NotificationAppearanceType,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
v as PodStatusEnum,
|
|
21
|
+
C as ReportStatus,
|
|
22
22
|
l as Size,
|
|
23
23
|
D as StatusEnum,
|
|
24
24
|
F as StatusType,
|
|
25
|
+
h as TagStatus,
|
|
25
26
|
S as ThemeAppearance,
|
|
26
27
|
d as isActiveColor
|
|
27
28
|
};
|
package/dist/enums/status.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ ((i) => (i.IDLE = "idle", i.PENDING = "pending", i.FULFILLED = "fulfilled", i.REJECTED = "rejected", i))(e || {}), n = /* @__PURE__ */ ((i) => (i.SUCCESS = "success", i.ERROR = "error", i))(n || {}),
|
|
1
|
+
var e = /* @__PURE__ */ ((i) => (i.IDLE = "idle", i.PENDING = "pending", i.FULFILLED = "fulfilled", i.REJECTED = "rejected", i))(e || {}), n = /* @__PURE__ */ ((i) => (i.SUCCESS = "success", i.ERROR = "error", i))(n || {}), r = /* @__PURE__ */ ((i) => (i.SERVICE = "service", i.APPLICATION = "application", i))(r || {}), d = /* @__PURE__ */ ((i) => (i.PENDING = "pending", i.FAILED = "failed", i.IN_PROGRESS = "analyzing", i.SUCCESS = "completed", i))(d || {}), l = /* @__PURE__ */ ((i) => (i.addons_initializing = "initializing", i.addons_initialization_failed = "failed", i.deploying = "warning", i.failed = "failed", i.deployed = "success", i.completed = "success", i.initializing = "initializing", i.initialization_failed = "failed", i.queueing = "warning", i.queued = "queued", i.pending = "pending", i))(l || {}), c = /* @__PURE__ */ ((i) => (i.TERMINATED = "Terminated", i.TERMINATING = "Terminating", i.FAILED = "Failed", i.PENDING = "Pending", i.RUNNING = "Running", i.SUCCEEDED = "Succeeded", i.EVICTED = "Evicted", i))(c || {}), I = /* @__PURE__ */ ((i) => (i.success = "success", i.failed = "failed", i.waiting = "waiting", i.empty = "empty", i))(I || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
r as AppTypeEnum,
|
|
4
4
|
n as CopyTextStatusEnum,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
c as PodStatusEnum,
|
|
6
|
+
d as ReportStatus,
|
|
7
7
|
l as StatusEnum,
|
|
8
|
-
e as StatusType
|
|
8
|
+
e as StatusType,
|
|
9
|
+
I as TagStatus
|
|
9
10
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -597,6 +597,14 @@ export { i18n }
|
|
|
597
597
|
|
|
598
598
|
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
599
599
|
|
|
600
|
+
export declare const IconBox: ({ icon, onClick, type }: IconBoxProps) => JSX_2.Element;
|
|
601
|
+
|
|
602
|
+
export declare type IconBoxProps = {
|
|
603
|
+
icon: Icons;
|
|
604
|
+
onClick?: () => void;
|
|
605
|
+
type?: "primary" | "secondary";
|
|
606
|
+
};
|
|
607
|
+
|
|
600
608
|
export declare type IconProps = {
|
|
601
609
|
id?: string;
|
|
602
610
|
name: IconsId;
|
|
@@ -1171,6 +1179,13 @@ export declare enum StatusEnum {
|
|
|
1171
1179
|
pending = "pending"
|
|
1172
1180
|
}
|
|
1173
1181
|
|
|
1182
|
+
export declare const StatusTag: ({ status, text }: StatusTagProps) => JSX_2.Element;
|
|
1183
|
+
|
|
1184
|
+
export declare type StatusTagProps = {
|
|
1185
|
+
status: TagStatus;
|
|
1186
|
+
text: string;
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1174
1189
|
export declare enum StatusType {
|
|
1175
1190
|
IDLE = "idle",
|
|
1176
1191
|
PENDING = "pending",
|
|
@@ -1291,6 +1306,13 @@ export declare type TabProps = {
|
|
|
1291
1306
|
selected: number;
|
|
1292
1307
|
};
|
|
1293
1308
|
|
|
1309
|
+
export declare enum TagStatus {
|
|
1310
|
+
success = "success",
|
|
1311
|
+
failed = "failed",
|
|
1312
|
+
waiting = "waiting",
|
|
1313
|
+
empty = "empty"
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1294
1316
|
export declare const Textarea: React_2.ForwardRefExoticComponent<{
|
|
1295
1317
|
id?: string | undefined;
|
|
1296
1318
|
className?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -597,6 +597,14 @@ export { i18n }
|
|
|
597
597
|
|
|
598
598
|
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
599
599
|
|
|
600
|
+
export declare const IconBox: ({ icon, onClick, type }: IconBoxProps) => JSX_2.Element;
|
|
601
|
+
|
|
602
|
+
export declare type IconBoxProps = {
|
|
603
|
+
icon: Icons;
|
|
604
|
+
onClick?: () => void;
|
|
605
|
+
type?: "primary" | "secondary";
|
|
606
|
+
};
|
|
607
|
+
|
|
600
608
|
export declare type IconProps = {
|
|
601
609
|
id?: string;
|
|
602
610
|
name: IconsId;
|
|
@@ -1171,6 +1179,13 @@ export declare enum StatusEnum {
|
|
|
1171
1179
|
pending = "pending"
|
|
1172
1180
|
}
|
|
1173
1181
|
|
|
1182
|
+
export declare const StatusTag: ({ status, text }: StatusTagProps) => JSX_2.Element;
|
|
1183
|
+
|
|
1184
|
+
export declare type StatusTagProps = {
|
|
1185
|
+
status: TagStatus;
|
|
1186
|
+
text: string;
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1174
1189
|
export declare enum StatusType {
|
|
1175
1190
|
IDLE = "idle",
|
|
1176
1191
|
PENDING = "pending",
|
|
@@ -1291,6 +1306,13 @@ export declare type TabProps = {
|
|
|
1291
1306
|
selected: number;
|
|
1292
1307
|
};
|
|
1293
1308
|
|
|
1309
|
+
export declare enum TagStatus {
|
|
1310
|
+
success = "success",
|
|
1311
|
+
failed = "failed",
|
|
1312
|
+
waiting = "waiting",
|
|
1313
|
+
empty = "empty"
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1294
1316
|
export declare const Textarea: React_2.ForwardRefExoticComponent<{
|
|
1295
1317
|
id?: string | undefined;
|
|
1296
1318
|
className?: string | undefined;
|