@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.
@@ -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 a } from "../../jsx-runtime-BcAkpsdy.js";
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", n = "_success_14l4s_11", l = "_failed_14l4s_17", _ = "_empty_14l4s_23", o = "_waiting_14l4s_29", t = {
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: n,
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: e
19
+ children: a
22
20
  }
23
21
  );
24
22
  export {
25
- m as TagStatus,
26
- p as default
23
+ r as default
27
24
  };
@@ -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 F } from "./ContentHeader/ContentHeader.js";
15
- import { default as R } from "./ContentLoader/ContentLoader.js";
16
- import { default as y } from "./Countdown/Countdown.js";
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 "./InfiniteScroll/InfiniteScroll.js";
30
- import { default as mo } from "./InfoBoxList/InfoBoxList.js";
31
- import { createConnectedService as so } from "./InfoBoxList/helper.js";
32
- import { default as io } from "./InfoDate/InfoDate.js";
33
- import { InfoText as co } from "./InfoText/InfoText.js";
34
- import { default as go } from "./Input/Input.js";
35
- import { default as Io } from "./Label/Label.js";
36
- import { default as Lo } from "./Loading/Loading.js";
37
- import { default as ho } from "./Modal/Modal.js";
38
- import { default as bo } from "./NavigatorCard/index.js";
39
- import { default as Do } from "./NoResult/NoResult.js";
40
- import { Notification as vo } from "./Notification/Notification.js";
41
- import { default as Mo } from "./PageWrapper/PageWrap.js";
42
- import { default as ko } from "./Pager/Pager.js";
43
- import { default as Bo } from "./Panel/Panel.js";
44
- import { default as Ho } from "./PermaLink/PermaLink.js";
45
- import { default as Vo, RadioList as Wo } from "./Radio/Radio.js";
46
- import { default as qo } from "./ResultError/ResultError.js";
47
- import { default as Go } from "./ScrollContainer/ScrollContainer.js";
48
- import { default as Ko } from "./Select/NoData.js";
49
- import { S as Qo } from "../Select-DcLZCXNo.js";
50
- import { default as Yo } from "./Sidebar/index.js";
51
- import { M as _o } from "../MenuItem-DAf7NU3h.js";
52
- import { default as oe } from "./StatusTypography/StatusTypography.js";
53
- import { default as re } from "./Stepper/Stepper.js";
54
- import { default as ae } from "./Switch/Switch.js";
55
- import { default as le } from "./Tab/Tab.js";
56
- import { default as pe } from "./Table/Table.js";
57
- import { T as xe } from "../TableHeader-Cjx9ZwYH.js";
58
- import { default as ue } from "./Textarea/Textarea.js";
59
- import { default as ne } from "./Tooltip/Tooltip.js";
60
- import { default as Ce } from "./TypographyText/TypographyText.js";
61
- import { default as Te } from "./ValidationError/ValidationError.js";
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
- F as ContentHeader,
76
- R as ContentLoader,
77
- y as Countdown,
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 InfiniteScroll,
89
- mo as InfoBoxList,
90
- io as InfoDate,
91
- co as InfoText,
92
- go as Input,
93
- Io as Label,
94
- Lo as Loading,
95
- _o as MenuItem,
96
- ho as Modal,
97
- bo as NavigatorCard,
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
- Ko as NoData,
100
- Do as NoResult,
101
- vo as Notification,
102
- Mo as PageWrapper,
103
- ko as Pager,
104
- Bo as Panel,
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
- Ho as PermaLink,
109
+ Vo as PermaLink,
107
110
  C as Permission,
108
- Vo as Radio,
109
- Wo as RadioList,
110
- qo as ResultError,
111
+ jo as Radio,
112
+ qo as RadioList,
113
+ Go as ResultError,
111
114
  oo as Row,
112
- Go as ScrollContainer,
113
- Qo as Select,
114
- Yo as Sidebar,
115
- oe as StatusTypography,
116
- re as Stepper,
117
- ae as Switch,
118
- le as Tab,
119
- pe as Table,
120
- xe as TableHeader,
121
- ue as Textarea,
122
- ne as Tooltip,
123
- Ce as TypographyText,
124
- Te as ValidationError,
125
- so as createConnectedService,
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
  };
@@ -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 v, PodStatusEnum as C, ReportStatus as g, StatusEnum as D, StatusType as F } from "./status.js";
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
- v as CopyTextStatusEnum,
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
- C as PodStatusEnum,
21
- g as ReportStatus,
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
  };
@@ -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 || {}), d = /* @__PURE__ */ ((i) => (i.SERVICE = "service", i.APPLICATION = "application", i))(d || {}), r = /* @__PURE__ */ ((i) => (i.PENDING = "pending", i.FAILED = "failed", i.IN_PROGRESS = "analyzing", i.SUCCESS = "completed", i))(r || {}), 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 || {}), g = /* @__PURE__ */ ((i) => (i.TERMINATED = "Terminated", i.TERMINATING = "Terminating", i.FAILED = "Failed", i.PENDING = "Pending", i.RUNNING = "Running", i.SUCCEEDED = "Succeeded", i.EVICTED = "Evicted", i))(g || {});
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
- d as AppTypeEnum,
3
+ r as AppTypeEnum,
4
4
  n as CopyTextStatusEnum,
5
- g as PodStatusEnum,
6
- r as ReportStatus,
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;