@cagatayfdn/flora-components 0.0.156 → 0.0.158
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var t = /* @__PURE__ */ ((e) => (e.Applications = "applications", e.Attach = "attach", e.Attachment = "attachment", e.Billing = "billing", e.Box = "box", e.Calendar = "calendar", e.Cart = "cart", e.CaseSensitive = "case-sensitive", e.Certificate = "certificate", e.Check = "check", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.CircleMinus = "circle-minus", e.CirclePlus = "circle-plus", e.Clock = "clock", e.CloseWindow = "close-window", e.Close = "close", e.Copy = "copy", e.CreditCard = "credit-card", e.Deployments = "deployments", e.Document = "document", e.DomainRegistration = "domain-registration", e.Domains = "domains", e.DownArrow = "down-arrow", e.DownSquare = "down-square", e.Down = "down", e.Download = "download", e.EditOutline = "edit-outline", e.Edit = "edit", e.Email = "email", e.Environment = "environment", e.ErrorFill = "error-fill", e.Error = "error", e.ExpandWindow = "expand-window", e.Expand = "expand", e.FileTextOutlined = "fileTextOutlined", e.Group = "group", e.Info = "info", e.Install = "install", e.Link = "link", e.Log = "log", e.MenuClose = "menu-close", e.MenuOpen = "menu-open", e.Monitoring = "monitoring", e.Network = "network", e.NoResults = "no-results", e.NotEdit = "not-edit", e.OrderDown = "order_down", e.OrderUp = "order_up", e.Out = "out", e.Path = "path", e.Plus = "plus", e.Preview = "preview", e.Profile = "profile", e.ProjectList = "project-list", e.Projects = "projects", e.Regex = "regex", e.Reload = "reload", e.Retry = "retry", e.Search = "search", e.Settings = "settings", e.Support = "support", e.Trash = "trash", e.Users = "users", e.Warning = "warning", e))(t || {});
|
|
1
|
+
var t = /* @__PURE__ */ ((e) => (e.Applications = "applications", e.Attach = "attach", e.Attachment = "attachment", e.Billing = "billing", e.Box = "box", e.Calendar = "calendar", e.Cart = "cart", e.CaseSensitive = "case-sensitive", e.Certificate = "certificate", e.Check = "check", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.CircleMinus = "circle-minus", e.CirclePlus = "circle-plus", e.Clock = "clock", e.CloseWindow = "close-window", e.Close = "close", e.Copy = "copy", e.CreditCard = "credit-card", e.Deployments = "deployments", e.Document = "document", e.DomainRegistration = "domain-registration", e.Domains = "domains", e.DownArrow = "down-arrow", e.DownSquare = "down-square", e.Down = "down", e.Download = "download", e.EditOutline = "edit-outline", e.Edit = "edit", e.Email = "email", e.Environment = "environment", e.ErrorFill = "error-fill", e.Error = "error", e.ExpandWindow = "expand-window", e.Expand = "expand", e.FileTextOutlined = "fileTextOutlined", e.Group = "group", e.Info = "info", e.Install = "install", e.Link = "link", e.Log = "log", e.MenuClose = "menu-close", e.MenuOpen = "menu-open", e.Monitoring = "monitoring", e.Network = "network", e.NoResults = "no-results", e.NotEdit = "not-edit", e.OrderDown = "order_down", e.OrderUp = "order_up", e.Out = "out", e.Path = "path", e.Plus = "plus", e.Preview = "preview", e.Profile = "profile", e.ProjectList = "project-list", e.Projects = "projects", e.Regex = "regex", e.Reload = "reload", e.Retry = "retry", e.Search = "search", e.Settings = "settings", e.Share = "share", e.Support = "support", e.Trash = "trash", e.Users = "users", e.Warning = "warning", e))(t || {});
|
|
2
2
|
const i = {
|
|
3
3
|
applications: "61697",
|
|
4
4
|
attach: "61698",
|
|
@@ -61,10 +61,11 @@ const i = {
|
|
|
61
61
|
retry: "61755",
|
|
62
62
|
search: "61756",
|
|
63
63
|
settings: "61757",
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
share: "61758",
|
|
65
|
+
support: "61759",
|
|
66
|
+
trash: "61760",
|
|
67
|
+
users: "61761",
|
|
68
|
+
warning: "61762"
|
|
68
69
|
};
|
|
69
70
|
export {
|
|
70
71
|
i as FLORA_ICONS_CODEPOINTS,
|
|
@@ -1,30 +1,47 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { j as i } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import x from "../ContentLoader/ContentLoader.js";
|
|
3
|
+
import y from "../NoResult/NoResult.js";
|
|
4
|
+
import m from "../TypographyText/TypographyText.js";
|
|
5
|
+
import b from "../ScrollContainer/ScrollContainer.js";
|
|
6
|
+
import { s as c } from "../../InfoBoxList.module-BHkAHgos.js";
|
|
7
|
+
const $ = ({
|
|
8
|
+
items: d,
|
|
9
|
+
isLoading: n,
|
|
10
|
+
className: s,
|
|
11
|
+
scrollProps: p,
|
|
12
|
+
hasScroll: f
|
|
10
13
|
}) => {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
p,
|
|
14
|
+
const j = d.every(({ value: e }) => e === void 0), l = (e, h, a) => h ? /* @__PURE__ */ i.jsx(b, { ...a, children: e.map(
|
|
15
|
+
({ label: t, value: r, copy: o }) => r !== void 0 && /* @__PURE__ */ i.jsxs("div", { className: c.item, "data-testid": "infoboxlist-item", children: [
|
|
16
|
+
/* @__PURE__ */ i.jsx("div", { children: t }),
|
|
17
|
+
/* @__PURE__ */ i.jsx("div", { children: n ? /* @__PURE__ */ i.jsx(x, {}) : o ? /* @__PURE__ */ i.jsx(
|
|
18
|
+
m,
|
|
17
19
|
{
|
|
18
20
|
className: s,
|
|
19
21
|
ellipsis: !0,
|
|
20
|
-
href: `${
|
|
22
|
+
href: `${r}`,
|
|
21
23
|
copyable: !0,
|
|
22
|
-
children:
|
|
24
|
+
children: r
|
|
23
25
|
}
|
|
24
|
-
) :
|
|
25
|
-
] },
|
|
26
|
-
) })
|
|
26
|
+
) : r })
|
|
27
|
+
] }, t + r)
|
|
28
|
+
) }) : e.map(
|
|
29
|
+
({ label: t, value: r, copy: o }) => r !== void 0 && /* @__PURE__ */ i.jsxs("div", { className: c.item, "data-testid": "infoboxlist-item", children: [
|
|
30
|
+
/* @__PURE__ */ i.jsx("div", { children: t }),
|
|
31
|
+
/* @__PURE__ */ i.jsx("div", { children: n ? /* @__PURE__ */ i.jsx(x, {}) : o ? /* @__PURE__ */ i.jsx(
|
|
32
|
+
m,
|
|
33
|
+
{
|
|
34
|
+
className: s,
|
|
35
|
+
ellipsis: !0,
|
|
36
|
+
href: `${r}`,
|
|
37
|
+
copyable: !0,
|
|
38
|
+
children: r
|
|
39
|
+
}
|
|
40
|
+
) : r })
|
|
41
|
+
] }, t + r)
|
|
42
|
+
);
|
|
43
|
+
return /* @__PURE__ */ i.jsx("div", { className: s, "data-testid": "infoboxlist-container", children: j ? /* @__PURE__ */ i.jsx(y, {}) : l(d, f, p) });
|
|
27
44
|
};
|
|
28
45
|
export {
|
|
29
|
-
|
|
46
|
+
$ as default
|
|
30
47
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -649,13 +649,14 @@ export declare enum FloraIcons {
|
|
|
649
649
|
Retry = "retry",
|
|
650
650
|
Search = "search",
|
|
651
651
|
Settings = "settings",
|
|
652
|
+
Share = "share",
|
|
652
653
|
Support = "support",
|
|
653
654
|
Trash = "trash",
|
|
654
655
|
Users = "users",
|
|
655
656
|
Warning = "warning"
|
|
656
657
|
}
|
|
657
658
|
|
|
658
|
-
declare type FloraIconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'deployments' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'expand' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
|
|
659
|
+
declare type FloraIconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'deployments' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'expand' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'share' | 'support' | 'trash' | 'users' | 'warning';
|
|
659
660
|
|
|
660
661
|
export { format }
|
|
661
662
|
|
|
@@ -768,7 +769,7 @@ export declare interface InfiniteScrollProps {
|
|
|
768
769
|
loadMore: () => void;
|
|
769
770
|
}
|
|
770
771
|
|
|
771
|
-
export declare const InfoBoxList: ({ items, isLoading, className, }: InfoBoxListProps) => JSX.Element;
|
|
772
|
+
export declare const InfoBoxList: ({ items, isLoading, className, scrollProps, hasScroll }: InfoBoxListProps) => JSX.Element;
|
|
772
773
|
|
|
773
774
|
export declare type InfoBoxListItem = {
|
|
774
775
|
label: string;
|
|
@@ -780,6 +781,8 @@ export declare type InfoBoxListItem = {
|
|
|
780
781
|
export declare type InfoBoxListProps = {
|
|
781
782
|
items: InfoBoxListItem[];
|
|
782
783
|
isLoading?: boolean;
|
|
784
|
+
hasScroll?: boolean;
|
|
785
|
+
scrollProps?: ScrollPropType;
|
|
783
786
|
className?: string;
|
|
784
787
|
};
|
|
785
788
|
|
|
@@ -1191,6 +1194,8 @@ export declare type ScrollContainerProps = {
|
|
|
1191
1194
|
onScroll?: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
1192
1195
|
};
|
|
1193
1196
|
|
|
1197
|
+
declare type ScrollPropType = Omit<typeof ScrollContainer, "children">;
|
|
1198
|
+
|
|
1194
1199
|
export declare const Select: {
|
|
1195
1200
|
(props: SelectProps): JSX.Element;
|
|
1196
1201
|
displayName: string;
|
|
@@ -1613,6 +1618,7 @@ export declare const TestIds: {
|
|
|
1613
1618
|
readonly ICON_RETRY: "icon-retry";
|
|
1614
1619
|
readonly ICON_SEARCH: "icon-search";
|
|
1615
1620
|
readonly ICON_SETTINGS: "icon-settings";
|
|
1621
|
+
readonly ICON_SHARE: "icon-share";
|
|
1616
1622
|
readonly ICON_SUPPORT: "icon-support";
|
|
1617
1623
|
readonly ICON_TRASH: "icon-trash";
|
|
1618
1624
|
readonly ICON_USERS: "icon-users";
|
package/dist/index.d.ts
CHANGED
|
@@ -649,13 +649,14 @@ export declare enum FloraIcons {
|
|
|
649
649
|
Retry = "retry",
|
|
650
650
|
Search = "search",
|
|
651
651
|
Settings = "settings",
|
|
652
|
+
Share = "share",
|
|
652
653
|
Support = "support",
|
|
653
654
|
Trash = "trash",
|
|
654
655
|
Users = "users",
|
|
655
656
|
Warning = "warning"
|
|
656
657
|
}
|
|
657
658
|
|
|
658
|
-
declare type FloraIconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'deployments' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'expand' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
|
|
659
|
+
declare type FloraIconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'deployments' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'expand' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'share' | 'support' | 'trash' | 'users' | 'warning';
|
|
659
660
|
|
|
660
661
|
export { format }
|
|
661
662
|
|
|
@@ -768,7 +769,7 @@ export declare interface InfiniteScrollProps {
|
|
|
768
769
|
loadMore: () => void;
|
|
769
770
|
}
|
|
770
771
|
|
|
771
|
-
export declare const InfoBoxList: ({ items, isLoading, className, }: InfoBoxListProps) => JSX.Element;
|
|
772
|
+
export declare const InfoBoxList: ({ items, isLoading, className, scrollProps, hasScroll }: InfoBoxListProps) => JSX.Element;
|
|
772
773
|
|
|
773
774
|
export declare type InfoBoxListItem = {
|
|
774
775
|
label: string;
|
|
@@ -780,6 +781,8 @@ export declare type InfoBoxListItem = {
|
|
|
780
781
|
export declare type InfoBoxListProps = {
|
|
781
782
|
items: InfoBoxListItem[];
|
|
782
783
|
isLoading?: boolean;
|
|
784
|
+
hasScroll?: boolean;
|
|
785
|
+
scrollProps?: ScrollPropType;
|
|
783
786
|
className?: string;
|
|
784
787
|
};
|
|
785
788
|
|
|
@@ -1191,6 +1194,8 @@ export declare type ScrollContainerProps = {
|
|
|
1191
1194
|
onScroll?: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
1192
1195
|
};
|
|
1193
1196
|
|
|
1197
|
+
declare type ScrollPropType = Omit<typeof ScrollContainer, "children">;
|
|
1198
|
+
|
|
1194
1199
|
export declare const Select: {
|
|
1195
1200
|
(props: SelectProps): JSX.Element;
|
|
1196
1201
|
displayName: string;
|
|
@@ -1613,6 +1618,7 @@ export declare const TestIds: {
|
|
|
1613
1618
|
readonly ICON_RETRY: "icon-retry";
|
|
1614
1619
|
readonly ICON_SEARCH: "icon-search";
|
|
1615
1620
|
readonly ICON_SETTINGS: "icon-settings";
|
|
1621
|
+
readonly ICON_SHARE: "icon-share";
|
|
1616
1622
|
readonly ICON_SUPPORT: "icon-support";
|
|
1617
1623
|
readonly ICON_TRASH: "icon-trash";
|
|
1618
1624
|
readonly ICON_USERS: "icon-users";
|