@geotab/zenith 1.22.2 → 1.22.3
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/card/card.d.ts +16 -1
- package/dist/card/card.js +67 -29
- package/dist/card/components/cardButton/cardButton.d.ts +1 -0
- package/dist/card/components/cardFavorite.d.ts +0 -0
- package/dist/card/components/cardFavorite.js +1 -0
- package/dist/card/components/status.js +4 -13
- package/dist/card/components/title.d.ts +5 -1
- package/dist/card/components/title.js +11 -6
- package/dist/card/helpers/getIconFromStatus.js +1 -3
- package/dist/card/helpers/getIconTypeFromStatus.d.ts +3 -0
- package/dist/card/helpers/getIconTypeFromStatus.js +16 -0
- package/dist/dropdown/dropdown.js +1 -1
- package/dist/favoriteButton/favoriteButton.d.ts +7 -0
- package/dist/favoriteButton/favoriteButton.js +21 -0
- package/dist/gridLayout/utils/convertCardSizeToState.js +9 -5
- package/dist/index.css +200 -127
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -14
- package/dist/utils/localization/translations/en-json.d.ts +1 -0
- package/dist/utils/localization/translations/en-json.js +2 -1
- package/package.json +1 -1
package/dist/card/card.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
1
|
+
import { FC, FunctionComponent, ReactNode } from "react";
|
|
2
2
|
import { IAbsoluteSize, TContainerSize } from "../cardContainer/cardContainer";
|
|
3
3
|
import { TCardStatus } from "./components/status";
|
|
4
|
+
import { TIconType } from "./components/title";
|
|
4
5
|
import { IActions } from "./components/actions";
|
|
5
6
|
import { IContent } from "./components/content";
|
|
6
7
|
import "./card.less";
|
|
@@ -8,15 +9,29 @@ import { TAlignment } from "../absolute/absolute";
|
|
|
8
9
|
import { TooltipSize } from "../tooltip/tooltip";
|
|
9
10
|
import { IZenComponentProps, IZenGridItem } from "../commonHelpers/zenComponent";
|
|
10
11
|
import { ICardButton } from "./components/cardButton/cardButton";
|
|
12
|
+
import { IIcon } from "../icons/icon";
|
|
11
13
|
export declare const DEFAULT_CARD_SIZE: TContainerSize;
|
|
12
14
|
export interface ICard extends IZenComponentProps, IZenGridItem {
|
|
13
15
|
size?: TContainerSize | IAbsoluteSize;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
* @param status - will be removed in the next major release
|
|
19
|
+
*/
|
|
14
20
|
status?: TCardStatus;
|
|
15
21
|
title: string;
|
|
22
|
+
icon?: FunctionComponent<IIcon>;
|
|
23
|
+
iconType?: TIconType;
|
|
24
|
+
secondary?: string;
|
|
16
25
|
tooltip?: ReactNode;
|
|
17
26
|
titleIconClasses?: string;
|
|
18
27
|
link?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated
|
|
30
|
+
* @param date - will be removed in the next major release
|
|
31
|
+
*/
|
|
19
32
|
date?: string;
|
|
33
|
+
isFavorite?: boolean;
|
|
34
|
+
onFavoriteChange?: (isFavorite: boolean) => void;
|
|
20
35
|
cardContentClasses?: string;
|
|
21
36
|
tooltipAlignment?: TAlignment;
|
|
22
37
|
tooltipSize?: TooltipSize;
|
package/dist/card/card.js
CHANGED
|
@@ -31,7 +31,6 @@ const react_1 = __importStar(require("react"));
|
|
|
31
31
|
const cardContainer_1 = require("../cardContainer/cardContainer");
|
|
32
32
|
const deviceType_1 = require("../commonHelpers/hooks/deviceType");
|
|
33
33
|
const useDeviceType_1 = require("../commonHelpers/hooks/useDeviceType");
|
|
34
|
-
const titleLink_1 = require("./components/titleLink");
|
|
35
34
|
const status_1 = require("./components/status");
|
|
36
35
|
const title_1 = require("./components/title");
|
|
37
36
|
const actions_1 = require("./components/actions");
|
|
@@ -42,7 +41,6 @@ const isAbsoluteSize_1 = require("../cardContainer/helpers/isAbsoluteSize");
|
|
|
42
41
|
const getContainerSize_1 = require("../cardContainer/helpers/getContainerSize");
|
|
43
42
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
44
43
|
const menu_1 = require("../menu/menu");
|
|
45
|
-
const textIconButton_1 = require("../textIconButton/textIconButton");
|
|
46
44
|
const svgIconSize_1 = require("../svgIcon/svgIconSize");
|
|
47
45
|
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
48
46
|
const cardButton_1 = require("./components/cardButton/cardButton");
|
|
@@ -51,17 +49,20 @@ const useDrive_1 = require("../utils/theme/useDrive");
|
|
|
51
49
|
const getDefaultFullWidthValue_1 = require("./helpers/getDefaultFullWidthValue");
|
|
52
50
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
53
51
|
const iconDotVertical_1 = require("../icons/iconDotVertical");
|
|
52
|
+
const button_1 = require("../button/button");
|
|
53
|
+
const favoriteButton_1 = require("../favoriteButton/favoriteButton");
|
|
54
|
+
const getIconFromStatus_1 = require("./helpers/getIconFromStatus");
|
|
55
|
+
const getIconTypeFromStatus_1 = require("./helpers/getIconTypeFromStatus");
|
|
54
56
|
exports.DEFAULT_CARD_SIZE = "S";
|
|
55
57
|
// eslint-disable-next-line @typescript-eslint/naming-convention, react/prop-types
|
|
56
58
|
const Card = (props) => {
|
|
57
|
-
const { size, children, title,
|
|
59
|
+
const { size, children, title, icon, iconType, secondary, status, date, tooltip, className = "", link, cardContentClasses = "", tooltipAlignment, tooltipSize, fullWidth, scrollableContent = true, autoHeight = false, fullHeight = false } = props;
|
|
58
60
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
59
61
|
const [deviceType, setDeviceType] = (0, react_1.useState)(deviceType_1.DeviceType.Mobile);
|
|
60
62
|
const [cardSize, setCardSize] = (0, react_1.useState)((0, isAbsoluteSize_1.isAbsoluteSize)(size) ? (0, getContainerSize_1.getContainerSize)(size.width) : (size || exports.DEFAULT_CARD_SIZE));
|
|
61
63
|
const isMobile = deviceType === deviceType_1.DeviceType.Mobile;
|
|
62
64
|
const containerRef = (0, react_1.useRef)(null);
|
|
63
65
|
const headerRef = (0, react_1.useRef)(null);
|
|
64
|
-
const footerRef = (0, react_1.useRef)(null);
|
|
65
66
|
const titleId = (0, react_1.useId)();
|
|
66
67
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
67
68
|
const dateDriveClasses = (0, useDriveClassName_1.useDriveClassName)("zen-card__date");
|
|
@@ -70,33 +71,53 @@ const Card = (props) => {
|
|
|
70
71
|
const { isAutoHeight, isScrollable, isFullWidth, isFullHeight } = (0, useCardSizeState_1.useCardSizeState)(deviceType, scrollableContent, fullWidthValue, fullHeight, autoHeight, size || "S");
|
|
71
72
|
(0, useDeviceType_1.useDeviceType)(setDeviceType);
|
|
72
73
|
(0, useCardSize_1.useCardSize)(setCardSize, containerRef, (0, isAbsoluteSize_1.isAbsoluteSize)(size) ? (0, getContainerSize_1.getContainerSize)(size.width) : (size || "S"));
|
|
73
|
-
const actions =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (!el) {
|
|
77
|
-
return;
|
|
74
|
+
const { actions, content } = (0, react_1.useMemo)(() => {
|
|
75
|
+
if (!children) {
|
|
76
|
+
return { actions: [], content: [] };
|
|
78
77
|
}
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
if (Array.isArray(children)) {
|
|
79
|
+
const acts = [];
|
|
80
|
+
const cnt = [];
|
|
81
|
+
react_1.default.Children.forEach(children, (el) => {
|
|
82
|
+
if (!el) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (el.type === exports.Card.Actions) {
|
|
86
|
+
const actionChildren = el.props.children;
|
|
87
|
+
if (!actionChildren) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (Array.isArray(actionChildren)) {
|
|
91
|
+
acts.push(...actionChildren.filter((child) => (child === null || child === void 0 ? void 0 : child.type) === exports.Card.Button));
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (typeof actionChildren === "object" && actionChildren.type === exports.Card.Button) {
|
|
95
|
+
acts.push(actionChildren);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (el.type === exports.Card.Content) {
|
|
99
|
+
cnt.push(el);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
return { actions: acts, content: cnt };
|
|
103
|
+
}
|
|
104
|
+
return { actions: [], content: [children] };
|
|
105
|
+
}, [children]);
|
|
106
|
+
const maxNumberOfActions = (0, getMaxNumberOfActions_1.getMaxNumberOfActions)(cardSize);
|
|
107
|
+
const { headerActions, menuActions } = (0, react_1.useMemo)(() => {
|
|
108
|
+
const hActions = [];
|
|
109
|
+
const mActions = [];
|
|
110
|
+
for (let i = 0; i < actions.length; i++) {
|
|
111
|
+
if (actions[i].props.inContextMenu || hActions.length >= maxNumberOfActions || isMobile) {
|
|
112
|
+
mActions.push(actions[i]);
|
|
87
113
|
}
|
|
88
|
-
|
|
89
|
-
|
|
114
|
+
else {
|
|
115
|
+
hActions.push(actions[i]);
|
|
90
116
|
}
|
|
91
117
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
});
|
|
96
|
-
const maxNumberOfActions = (0, getMaxNumberOfActions_1.getMaxNumberOfActions)(cardSize);
|
|
97
|
-
const headerActions = isMobile ? [] : actions.slice(0, maxNumberOfActions);
|
|
98
|
-
const menuActions = isMobile ? actions : actions.slice(maxNumberOfActions);
|
|
99
|
-
const menuTrigger = (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, { className: (0, classNames_1.classNames)(["zen-card__menu-trigger", menuTriggerDriveClasses || ""]), iconPosition: textIconButton_1.ButtonIconPosition.Start, type: "tertiary-black", iconSize: isDrive ? svgIconSize_1.SvgIconSize.Huge : svgIconSize_1.SvgIconSize.Large, icon: iconDotVertical_1.IconDotVertical, "aria-label": translate("Actions"), htmlType: "button" });
|
|
118
|
+
return { headerActions: hActions, menuActions: mActions };
|
|
119
|
+
}, [actions, isMobile, maxNumberOfActions]);
|
|
120
|
+
const menuTrigger = (0, jsx_runtime_1.jsx)(button_1.Button, { className: (0, classNames_1.classNames)(["zen-card__menu-trigger", menuTriggerDriveClasses || ""]), type: "tertiary-black", "aria-label": translate("Actions"), htmlType: "button", children: (0, jsx_runtime_1.jsx)(iconDotVertical_1.IconDotVertical, { size: isDrive ? svgIconSize_1.SvgIconSize.Huge : svgIconSize_1.SvgIconSize.Large }) });
|
|
100
121
|
(0, react_1.useEffect)(() => {
|
|
101
122
|
if (containerRef.current) {
|
|
102
123
|
containerRef.current.setAttribute("role", "region");
|
|
@@ -109,8 +130,25 @@ const Card = (props) => {
|
|
|
109
130
|
cardContentClasses
|
|
110
131
|
]), [cardContentClasses, isScrollable]);
|
|
111
132
|
const dateClassName = (0, react_1.useMemo)(() => (0, classNames_1.classNames)(["zen-card__date", (isMobile && !isDrive) ? "zen-card__date--mobile" : "", dateDriveClasses !== null && dateDriveClasses !== void 0 ? dateDriveClasses : ""]), [isMobile, isDrive, dateDriveClasses]);
|
|
112
|
-
|
|
113
|
-
|
|
133
|
+
const favoriteButton = (0, react_1.useMemo)(() => {
|
|
134
|
+
if (props.onFavoriteChange === undefined) {
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
return (0, jsx_runtime_1.jsx)(favoriteButton_1.FavoriteButton, { isFavorite: props.isFavorite || false, onChange: props.onFavoriteChange, className: "zen-card__favorite-button" });
|
|
138
|
+
}, [props.isFavorite, props.onFavoriteChange]);
|
|
139
|
+
const { titleIcon, titleIconType } = (0, react_1.useMemo)(() => {
|
|
140
|
+
if (status) {
|
|
141
|
+
return {
|
|
142
|
+
titleIcon: icon || (0, getIconFromStatus_1.getIconFromStatus)(status),
|
|
143
|
+
titleIconType: iconType || (0, getIconTypeFromStatus_1.getIconTypeFromStatus)(status)
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
titleIcon: icon,
|
|
148
|
+
titleIconType: iconType
|
|
149
|
+
};
|
|
150
|
+
}, [icon, iconType, status]);
|
|
151
|
+
return (0, jsx_runtime_1.jsxs)(cardContainer_1.CardContainer, { isMobile: isMobile, fullWidth: isFullWidth, fullHeight: isFullHeight, autoHeight: isAutoHeight, scrollable: isScrollable, ref: containerRef, size: size || "S", className: (0, classNames_1.classNames)(["zen-card", className]), children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header", ref: headerRef, children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header-primary", children: [(0, jsx_runtime_1.jsx)(title_1.Title, { id: titleId, link: link, isMobile: isMobile, title: title, icon: titleIcon, iconType: titleIconType }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header-right", children: [!!headerActions.length && headerActions, date ? (0, jsx_runtime_1.jsx)("span", { className: dateClassName, children: date }) : null, favoriteButton, tooltip && (0, jsx_runtime_1.jsx)(status_1.Status, { title: title, status: status, isMobile: isMobile, tooltip: tooltip, tooltipAlignment: tooltipAlignment, tooltipSize: tooltipSize }), !!menuActions.length && (0, jsx_runtime_1.jsx)(menu_1.Menu, { trigger: menuTrigger, title: title, children: menuActions.map(action => (0, react_1.createElement)(menu_1.Menu.Item, Object.assign({ key: action.props.id }, action.props))) })] })] }), secondary ? (0, jsx_runtime_1.jsx)("div", { className: "zen-card__secondary", children: secondary }) : null] }), (0, jsx_runtime_1.jsx)("div", { className: cardContentClassName, children: content })] });
|
|
114
152
|
};
|
|
115
153
|
exports.Card = Card;
|
|
116
154
|
exports.TRANSLATIONS = [
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -5,29 +5,20 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
7
7
|
const svgIconSize_1 = require("../../svgIcon/svgIconSize");
|
|
8
|
-
const getIconFromStatus_1 = require("../helpers/getIconFromStatus");
|
|
9
8
|
const textIconButton_1 = require("../../textIconButton/textIconButton");
|
|
10
9
|
const tooltip_1 = require("../../tooltip/tooltip");
|
|
11
10
|
const useDrive_1 = require("../../utils/theme/useDrive");
|
|
11
|
+
const iconInfoCircle_1 = require("../../icons/iconInfoCircle");
|
|
12
12
|
const Status = ({ status, isMobile, tooltip, className = "", tooltipAlignment, tooltipSize, title }) => {
|
|
13
13
|
const ref = (0, react_1.useRef)(null);
|
|
14
14
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
15
15
|
const renderButton = () => {
|
|
16
|
-
if (!tooltip
|
|
16
|
+
if (!tooltip) {
|
|
17
17
|
return "";
|
|
18
18
|
}
|
|
19
|
-
const statusButton = (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, { ref: ref, iconPosition: textIconButton_1.ButtonIconPosition.Start, className: (0, classNames_1.classNames)(["zen-card-status", isMobile ? "zen-card-status--mobile" : "", "zen-card-status-button", `zen-card-status--${status}
|
|
19
|
+
const statusButton = (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, { ref: ref, iconPosition: textIconButton_1.ButtonIconPosition.Start, className: (0, classNames_1.classNames)(["zen-card-status", isMobile ? "zen-card-status--mobile" : "", "zen-card-status-button", status ? `zen-card-status--${status}` : "", className]), icon: iconInfoCircle_1.IconInfoCircle, iconSize: isDrive ? svgIconSize_1.SvgIconSize.Huge : svgIconSize_1.SvgIconSize.Large, "aria-label": tooltip, htmlType: "button" });
|
|
20
20
|
return (0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { mobileView: "mobileSheet", mobileSheetTitle: title, size: tooltipSize, alignment: tooltipAlignment, trigger: statusButton, children: tooltip });
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
if (!status) {
|
|
24
|
-
return "";
|
|
25
|
-
}
|
|
26
|
-
return (0, react_1.createElement)((0, getIconFromStatus_1.getIconFromStatus)(status), {
|
|
27
|
-
size: isDrive ? svgIconSize_1.SvgIconSize.Huge : svgIconSize_1.SvgIconSize.Large,
|
|
28
|
-
className: (0, classNames_1.classNames)(["zen-card-status", "zen-card-status-icon", `zen-card-status--${status}`, className])
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
return status === "info" ? renderButton() : renderIcon();
|
|
22
|
+
return tooltip ? renderButton() : null;
|
|
32
23
|
};
|
|
33
24
|
exports.Status = Status;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, FunctionComponent } from "react";
|
|
2
2
|
import "./title.less";
|
|
3
|
+
import { IIcon } from "../../icons/icon";
|
|
4
|
+
export type TIconType = "info" | "warning" | "error" | "success" | "default";
|
|
3
5
|
interface ITitle {
|
|
4
6
|
isMobile: boolean;
|
|
5
7
|
title: string;
|
|
6
8
|
id: string;
|
|
7
9
|
className?: string;
|
|
8
10
|
link?: string;
|
|
11
|
+
icon?: FunctionComponent<IIcon>;
|
|
12
|
+
iconType?: TIconType;
|
|
9
13
|
}
|
|
10
14
|
export declare const Title: FC<ITitle>;
|
|
11
15
|
export {};
|
|
@@ -2,15 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Title = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
6
|
-
const titleLink_1 = require("./titleLink");
|
|
7
7
|
const useDriveClassName_1 = require("../../utils/theme/useDriveClassName");
|
|
8
8
|
const useDrive_1 = require("../../utils/theme/useDrive");
|
|
9
|
-
const
|
|
10
|
-
|
|
9
|
+
const iconChevronRightSmall_1 = require("../../icons/iconChevronRightSmall");
|
|
10
|
+
const Title = ({ isMobile, link, title, id, icon, iconType, className = "" }) => {
|
|
11
|
+
const driveClassNames = (0, useDriveClassName_1.useDriveClassName)("zen-card-title");
|
|
11
12
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const iconClassName = iconType ? `zen-card-title__icon--${iconType}` : "";
|
|
14
|
+
const iconSize = (0, react_1.useMemo)(() => isDrive ? "huge" : "large", [isDrive]);
|
|
15
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)(["zen-card-title", driveClassNames || ""]), children: [icon
|
|
16
|
+
? (0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)(["zen-card-title__icon", iconClassName]), children: (0, react_1.createElement)(icon, { size: iconSize }) })
|
|
17
|
+
: null, link
|
|
18
|
+
? (0, jsx_runtime_1.jsxs)("a", { id: id, className: (0, classNames_1.classNames)(["zen-card-title__link"]), href: link, children: [(0, jsx_runtime_1.jsx)("span", { className: (0, classNames_1.classNames)(["zen-card-title__link-text"]), children: title }), (0, jsx_runtime_1.jsx)("div", { className: "zen-card-title__link-chevron", children: (0, jsx_runtime_1.jsx)(iconChevronRightSmall_1.IconChevronRightSmall, { size: iconSize, className: "zen-card-title__chevron-icon" }) })] })
|
|
19
|
+
: (0, jsx_runtime_1.jsx)("span", { id: id, className: (0, classNames_1.classNames)(["zen-card-title__text", (isMobile && !isDrive) ? "zen-card-title__text--mobile" : "", className]), children: title })] });
|
|
15
20
|
};
|
|
16
21
|
exports.Title = Title;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getIconFromStatus = void 0;
|
|
4
|
-
const iconInfoCircle_1 = require("../../icons/iconInfoCircle");
|
|
5
4
|
const iconCheckRadio_1 = require("../../icons/iconCheckRadio");
|
|
6
5
|
const iconException_1 = require("../../icons/iconException");
|
|
7
6
|
const iconWarning_1 = require("../../icons/iconWarning");
|
|
8
7
|
const iconByStatus = {
|
|
9
8
|
error: iconWarning_1.IconWarning,
|
|
10
9
|
warning: iconException_1.IconException,
|
|
11
|
-
ok: iconCheckRadio_1.IconCheckRadio
|
|
12
|
-
info: iconInfoCircle_1.IconInfoCircle
|
|
10
|
+
ok: iconCheckRadio_1.IconCheckRadio
|
|
13
11
|
};
|
|
14
12
|
const getIconFromStatus = (status) => iconByStatus[status];
|
|
15
13
|
exports.getIconFromStatus = getIconFromStatus;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getIconTypeFromStatus = void 0;
|
|
4
|
+
const getIconTypeFromStatus = (status) => {
|
|
5
|
+
switch (status) {
|
|
6
|
+
case "error":
|
|
7
|
+
return "error";
|
|
8
|
+
case "warning":
|
|
9
|
+
return "warning";
|
|
10
|
+
case "ok":
|
|
11
|
+
return "success";
|
|
12
|
+
default:
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
exports.getIconTypeFromStatus = getIconTypeFromStatus;
|
|
@@ -190,7 +190,7 @@ const Dropdown = ({ className, classNamePopup, getData, errorHandler, dataItems,
|
|
|
190
190
|
}
|
|
191
191
|
}, [state.selectedIds, state.groupsMap, state.groupsMapSelected, state.isAllSelected, handleClose, onChange, isFullSelectionMode]);
|
|
192
192
|
const customGetData = (0, react_1.useCallback)((str) => (str && dataItems
|
|
193
|
-
? Promise.resolve(dataItems.filter(el => { var _a; return (((_a = el.name) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) || "").indexOf(str.toLocaleLowerCase()) > -1; }))
|
|
193
|
+
? Promise.resolve(dataItems.filter(el => { var _a; return (((_a = el.name) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) || "").indexOf(str.trim().toLocaleLowerCase()) > -1; }))
|
|
194
194
|
: Promise.resolve(dataItems || [])), [dataItems]);
|
|
195
195
|
const handleData = (0, react_1.useCallback)((data, searchVal) => {
|
|
196
196
|
if (data.length && !searchVal && (getData || dataItems)) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./favoriteButton.less";
|
|
2
|
+
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
3
|
+
export interface IFavoriteButton extends IZenComponentProps {
|
|
4
|
+
isFavorite: boolean;
|
|
5
|
+
onChange: (isFavorite: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const FavoriteButton: ({ isFavorite, onChange, className }: IFavoriteButton) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FavoriteButton = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
7
|
+
const iconStar_1 = require("../icons/iconStar");
|
|
8
|
+
const iconStarFilled_1 = require("../icons/iconStarFilled");
|
|
9
|
+
const useLanguage_1 = require("../utils/localization/useLanguage");
|
|
10
|
+
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
11
|
+
const useDrive_1 = require("../utils/theme/useDrive");
|
|
12
|
+
const FavoriteButton = ({ isFavorite, onChange, className }) => {
|
|
13
|
+
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
14
|
+
const driveClassName = (0, useDriveClassName_1.useDriveClassName)("zen-favorite-button");
|
|
15
|
+
const isDrive = (0, useDrive_1.useDrive)();
|
|
16
|
+
const iconSize = (0, react_1.useMemo)(() => isDrive ? "huge" : "large", [isDrive]);
|
|
17
|
+
const filledClassName = isFavorite ? "zen-favorite-button--filled" : "";
|
|
18
|
+
const onClick = (0, react_1.useCallback)(() => onChange(!isFavorite), [isFavorite, onChange]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("button", { onClick: onClick, className: (0, classNames_1.classNames)(["zen-favorite-button", driveClassName || "", filledClassName, className || ""]), title: translate("Favorite"), "aria-label": translate("Favorite"), "aria-pressed": isFavorite, children: [(0, jsx_runtime_1.jsx)(iconStar_1.IconStar, { size: iconSize, className: "zen-favorite-button__empty" }), (0, jsx_runtime_1.jsx)(iconStarFilled_1.IconStarFilled, { size: iconSize, className: "zen-favorite-button__filled" })] }));
|
|
20
|
+
};
|
|
21
|
+
exports.FavoriteButton = FavoriteButton;
|
|
@@ -22,14 +22,12 @@ const convertCardSizeToState = (card) => {
|
|
|
22
22
|
}
|
|
23
23
|
case "M": {
|
|
24
24
|
return {
|
|
25
|
-
lg:
|
|
25
|
+
lg: 5
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
case "S":
|
|
30
|
-
case "XS": {
|
|
28
|
+
case "S": {
|
|
31
29
|
return {
|
|
32
|
-
lg:
|
|
30
|
+
lg: 4
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
33
|
case "XXS": {
|
|
@@ -37,6 +35,12 @@ const convertCardSizeToState = (card) => {
|
|
|
37
35
|
lg: 2
|
|
38
36
|
};
|
|
39
37
|
}
|
|
38
|
+
default:
|
|
39
|
+
case "XS": {
|
|
40
|
+
return {
|
|
41
|
+
lg: 3
|
|
42
|
+
};
|
|
43
|
+
}
|
|
40
44
|
}
|
|
41
45
|
};
|
|
42
46
|
exports.convertCardSizeToState = convertCardSizeToState;
|
package/dist/index.css
CHANGED
|
@@ -3979,6 +3979,7 @@
|
|
|
3979
3979
|
}
|
|
3980
3980
|
.zen-tooltip__mobile-sheet-content {
|
|
3981
3981
|
padding: 24px 16px 32px;
|
|
3982
|
+
color: var(--text-primary);
|
|
3982
3983
|
}
|
|
3983
3984
|
.zen-advanced-groups-filter-section-tooltip__trigger {
|
|
3984
3985
|
cursor: pointer;
|
|
@@ -5959,119 +5960,6 @@
|
|
|
5959
5960
|
max-width: unset;
|
|
5960
5961
|
}
|
|
5961
5962
|
}
|
|
5962
|
-
.zen-title-text {
|
|
5963
|
-
font-family: var(--main-font);
|
|
5964
|
-
font-size: 14px;
|
|
5965
|
-
font-style: normal;
|
|
5966
|
-
font-weight: 500;
|
|
5967
|
-
letter-spacing: 0.16px;
|
|
5968
|
-
line-height: 16px;
|
|
5969
|
-
text-transform: none;
|
|
5970
|
-
max-width: 520px;
|
|
5971
|
-
display: -webkit-box;
|
|
5972
|
-
-webkit-box-orient: vertical;
|
|
5973
|
-
-webkit-line-clamp: 2;
|
|
5974
|
-
overflow: hidden;
|
|
5975
|
-
text-overflow: ellipsis;
|
|
5976
|
-
text-align: start;
|
|
5977
|
-
}
|
|
5978
|
-
.zen-title-text--mobile {
|
|
5979
|
-
font-family: var(--main-font);
|
|
5980
|
-
font-size: 16px;
|
|
5981
|
-
font-style: normal;
|
|
5982
|
-
font-weight: 500;
|
|
5983
|
-
letter-spacing: 0;
|
|
5984
|
-
line-height: 24px;
|
|
5985
|
-
text-transform: none;
|
|
5986
|
-
}
|
|
5987
|
-
.zen-title-text--drive-tablet {
|
|
5988
|
-
font-family: var(--main-font);
|
|
5989
|
-
font-size: 18px;
|
|
5990
|
-
font-style: normal;
|
|
5991
|
-
font-weight: 500;
|
|
5992
|
-
letter-spacing: 0.16px;
|
|
5993
|
-
line-height: 22px;
|
|
5994
|
-
text-transform: none;
|
|
5995
|
-
}
|
|
5996
|
-
.zen-title-text--drive {
|
|
5997
|
-
font-family: var(--main-font);
|
|
5998
|
-
font-size: 16px;
|
|
5999
|
-
font-style: normal;
|
|
6000
|
-
font-weight: 500;
|
|
6001
|
-
letter-spacing: 0.16px;
|
|
6002
|
-
line-height: 20px;
|
|
6003
|
-
text-transform: none;
|
|
6004
|
-
}
|
|
6005
|
-
.zen-title-link {
|
|
6006
|
-
box-sizing: border-box;
|
|
6007
|
-
display: flex;
|
|
6008
|
-
gap: 4px;
|
|
6009
|
-
align-items: center;
|
|
6010
|
-
}
|
|
6011
|
-
.zen-title-link * {
|
|
6012
|
-
box-sizing: border-box;
|
|
6013
|
-
}
|
|
6014
|
-
.zen-title-link:not(.zen-title-link:hover) {
|
|
6015
|
-
color: var(--action-primary--default);
|
|
6016
|
-
text-decoration: unset;
|
|
6017
|
-
}
|
|
6018
|
-
.zen-title-link__text {
|
|
6019
|
-
font-family: var(--main-font);
|
|
6020
|
-
font-size: 14px;
|
|
6021
|
-
font-style: normal;
|
|
6022
|
-
font-weight: 500;
|
|
6023
|
-
letter-spacing: 0.16px;
|
|
6024
|
-
line-height: 16px;
|
|
6025
|
-
text-transform: none;
|
|
6026
|
-
max-width: 520px;
|
|
6027
|
-
display: -webkit-box;
|
|
6028
|
-
-webkit-box-orient: vertical;
|
|
6029
|
-
-webkit-line-clamp: 2;
|
|
6030
|
-
overflow: hidden;
|
|
6031
|
-
text-overflow: ellipsis;
|
|
6032
|
-
text-align: start;
|
|
6033
|
-
}
|
|
6034
|
-
.zen-title-link__text--mobile {
|
|
6035
|
-
font-family: var(--main-font);
|
|
6036
|
-
font-size: 16px;
|
|
6037
|
-
font-style: normal;
|
|
6038
|
-
font-weight: 500;
|
|
6039
|
-
letter-spacing: 0;
|
|
6040
|
-
line-height: 24px;
|
|
6041
|
-
text-transform: none;
|
|
6042
|
-
}
|
|
6043
|
-
.zen-title-link__text--drive-tablet {
|
|
6044
|
-
font-family: var(--main-font);
|
|
6045
|
-
font-size: 18px;
|
|
6046
|
-
font-style: normal;
|
|
6047
|
-
font-weight: 500;
|
|
6048
|
-
letter-spacing: 0.16px;
|
|
6049
|
-
line-height: 22px;
|
|
6050
|
-
text-transform: none;
|
|
6051
|
-
}
|
|
6052
|
-
.zen-title-link__text--drive {
|
|
6053
|
-
font-family: var(--main-font);
|
|
6054
|
-
font-size: 16px;
|
|
6055
|
-
font-style: normal;
|
|
6056
|
-
font-weight: 500;
|
|
6057
|
-
letter-spacing: 0.16px;
|
|
6058
|
-
line-height: 20px;
|
|
6059
|
-
text-transform: none;
|
|
6060
|
-
}
|
|
6061
|
-
.zen-title-link:hover {
|
|
6062
|
-
color: var(--action-primary--active);
|
|
6063
|
-
fill: var(--action-primary--active);
|
|
6064
|
-
}
|
|
6065
|
-
.zen-title-link:hover .zen-title-link__icon {
|
|
6066
|
-
color: var(--action-primary--active);
|
|
6067
|
-
fill: var(--action-primary--active);
|
|
6068
|
-
}
|
|
6069
|
-
.zen-title-link__icon {
|
|
6070
|
-
flex-shrink: 0;
|
|
6071
|
-
}
|
|
6072
|
-
.zen-title-link--drive {
|
|
6073
|
-
padding: 11px;
|
|
6074
|
-
}
|
|
6075
5963
|
.zen-card-status {
|
|
6076
5964
|
box-sizing: border-box;
|
|
6077
5965
|
align-self: center;
|
|
@@ -6130,13 +6018,7 @@
|
|
|
6130
6018
|
.zen-card-status-tooltip-mobile * {
|
|
6131
6019
|
box-sizing: border-box;
|
|
6132
6020
|
}
|
|
6133
|
-
.zen-title {
|
|
6134
|
-
box-sizing: border-box;
|
|
6135
|
-
}
|
|
6136
|
-
.zen-title * {
|
|
6137
|
-
box-sizing: border-box;
|
|
6138
|
-
}
|
|
6139
|
-
.zen-title__text {
|
|
6021
|
+
.zen-title-text {
|
|
6140
6022
|
font-family: var(--main-font);
|
|
6141
6023
|
font-size: 14px;
|
|
6142
6024
|
font-style: normal;
|
|
@@ -6151,9 +6033,8 @@
|
|
|
6151
6033
|
overflow: hidden;
|
|
6152
6034
|
text-overflow: ellipsis;
|
|
6153
6035
|
text-align: start;
|
|
6154
|
-
color: var(--text-primary);
|
|
6155
6036
|
}
|
|
6156
|
-
.zen-
|
|
6037
|
+
.zen-title-text--mobile {
|
|
6157
6038
|
font-family: var(--main-font);
|
|
6158
6039
|
font-size: 16px;
|
|
6159
6040
|
font-style: normal;
|
|
@@ -6162,7 +6043,7 @@
|
|
|
6162
6043
|
line-height: 24px;
|
|
6163
6044
|
text-transform: none;
|
|
6164
6045
|
}
|
|
6165
|
-
.zen-
|
|
6046
|
+
.zen-title-text--drive-tablet {
|
|
6166
6047
|
font-family: var(--main-font);
|
|
6167
6048
|
font-size: 18px;
|
|
6168
6049
|
font-style: normal;
|
|
@@ -6171,7 +6052,7 @@
|
|
|
6171
6052
|
line-height: 22px;
|
|
6172
6053
|
text-transform: none;
|
|
6173
6054
|
}
|
|
6174
|
-
.zen-
|
|
6055
|
+
.zen-title-text--drive {
|
|
6175
6056
|
font-family: var(--main-font);
|
|
6176
6057
|
font-size: 16px;
|
|
6177
6058
|
font-style: normal;
|
|
@@ -6180,19 +6061,162 @@
|
|
|
6180
6061
|
line-height: 20px;
|
|
6181
6062
|
text-transform: none;
|
|
6182
6063
|
}
|
|
6064
|
+
.zen-card-title {
|
|
6065
|
+
display: flex;
|
|
6066
|
+
gap: 8px;
|
|
6067
|
+
align-items: center;
|
|
6068
|
+
box-sizing: border-box;
|
|
6069
|
+
min-height: 24px;
|
|
6070
|
+
}
|
|
6071
|
+
.zen-card-title * {
|
|
6072
|
+
box-sizing: border-box;
|
|
6073
|
+
}
|
|
6074
|
+
.zen-card-title__icon {
|
|
6075
|
+
height: 24px;
|
|
6076
|
+
width: 24px;
|
|
6077
|
+
flex: 0 0 auto;
|
|
6078
|
+
display: flex;
|
|
6079
|
+
align-items: center;
|
|
6080
|
+
justify-content: center;
|
|
6081
|
+
fill: var(--accents-general--detail);
|
|
6082
|
+
border-radius: 50%;
|
|
6083
|
+
background-color: var(--accents-general--main);
|
|
6084
|
+
box-sizing: border-box;
|
|
6085
|
+
}
|
|
6086
|
+
.zen-card-title__icon--success {
|
|
6087
|
+
fill: var(--accents-success--detail);
|
|
6088
|
+
background-color: var(--accents-success--main);
|
|
6089
|
+
}
|
|
6090
|
+
.zen-card-title__icon--error {
|
|
6091
|
+
fill: var(--accents-error--detail);
|
|
6092
|
+
background-color: var(--accents-error--main);
|
|
6093
|
+
}
|
|
6094
|
+
.zen-card-title__icon--warning {
|
|
6095
|
+
fill: var(--accents-warning--detail);
|
|
6096
|
+
background-color: var(--accents-warning--main);
|
|
6097
|
+
}
|
|
6098
|
+
.zen-card-title__icon--default {
|
|
6099
|
+
background-color: var(--backgrounds-content-1);
|
|
6100
|
+
fill: var(--text-secondary);
|
|
6101
|
+
}
|
|
6102
|
+
.zen-card-title__text {
|
|
6103
|
+
font-family: var(--main-font);
|
|
6104
|
+
font-size: 14px;
|
|
6105
|
+
font-style: normal;
|
|
6106
|
+
font-weight: 500;
|
|
6107
|
+
letter-spacing: 0.16px;
|
|
6108
|
+
line-height: 16px;
|
|
6109
|
+
text-transform: none;
|
|
6110
|
+
max-width: 520px;
|
|
6111
|
+
display: -webkit-box;
|
|
6112
|
+
-webkit-box-orient: vertical;
|
|
6113
|
+
-webkit-line-clamp: 2;
|
|
6114
|
+
overflow: hidden;
|
|
6115
|
+
text-overflow: ellipsis;
|
|
6116
|
+
text-align: start;
|
|
6117
|
+
color: var(--text-primary);
|
|
6118
|
+
}
|
|
6119
|
+
.zen-card-title__link {
|
|
6120
|
+
display: flex;
|
|
6121
|
+
align-items: center;
|
|
6122
|
+
justify-content: center;
|
|
6123
|
+
flex: 1 1 auto;
|
|
6124
|
+
gap: 4px;
|
|
6125
|
+
text-decoration: none;
|
|
6126
|
+
}
|
|
6127
|
+
.zen-card-title__link-text {
|
|
6128
|
+
font-family: var(--main-font);
|
|
6129
|
+
font-size: 14px;
|
|
6130
|
+
font-style: normal;
|
|
6131
|
+
font-weight: 500;
|
|
6132
|
+
letter-spacing: 0.16px;
|
|
6133
|
+
line-height: 16px;
|
|
6134
|
+
text-transform: none;
|
|
6135
|
+
color: var(--text-primary);
|
|
6136
|
+
flex: 1 1 auto;
|
|
6137
|
+
text-overflow: ellipsis;
|
|
6138
|
+
overflow: hidden;
|
|
6139
|
+
white-space: nowrap;
|
|
6140
|
+
}
|
|
6141
|
+
.zen-card-title__link-chevron {
|
|
6142
|
+
width: 16px;
|
|
6143
|
+
height: 16px;
|
|
6144
|
+
fill: var(--text-primary);
|
|
6145
|
+
flex: 0 0 auto;
|
|
6146
|
+
}
|
|
6147
|
+
.zen-card-title--drive .zen-card-title__text,
|
|
6148
|
+
.zen-card-title--drive .zen-card-title__link-text {
|
|
6149
|
+
font-family: var(--main-font);
|
|
6150
|
+
font-size: 16px;
|
|
6151
|
+
font-style: normal;
|
|
6152
|
+
font-weight: 500;
|
|
6153
|
+
letter-spacing: 0.16px;
|
|
6154
|
+
line-height: 20px;
|
|
6155
|
+
text-transform: none;
|
|
6156
|
+
}
|
|
6157
|
+
.zen-card-title--drive .zen-card-title__icon {
|
|
6158
|
+
width: 32px;
|
|
6159
|
+
height: 32px;
|
|
6160
|
+
}
|
|
6161
|
+
.zen-card-title--drive .zen-card-title__link-chevron {
|
|
6162
|
+
width: 20px;
|
|
6163
|
+
height: 20px;
|
|
6164
|
+
}
|
|
6165
|
+
.zen-card-title--drive-tablet .zen-card-title__text,
|
|
6166
|
+
.zen-card-title--drive-tablet .zen-card-title__link-text {
|
|
6167
|
+
font-family: var(--main-font);
|
|
6168
|
+
font-size: 18px;
|
|
6169
|
+
font-style: normal;
|
|
6170
|
+
font-weight: 500;
|
|
6171
|
+
letter-spacing: 0.16px;
|
|
6172
|
+
line-height: 22px;
|
|
6173
|
+
text-transform: none;
|
|
6174
|
+
}
|
|
6175
|
+
.zen-card-title--drive-tablet .zen-card-title__icon {
|
|
6176
|
+
width: 32px;
|
|
6177
|
+
height: 32px;
|
|
6178
|
+
}
|
|
6179
|
+
.zen-card-title--drive-tablet .zen-card-title__link-chevron {
|
|
6180
|
+
width: 20px;
|
|
6181
|
+
height: 20px;
|
|
6182
|
+
}
|
|
6183
6183
|
.zen-card {
|
|
6184
6184
|
box-sizing: border-box;
|
|
6185
6185
|
display: grid;
|
|
6186
6186
|
gap: 16px;
|
|
6187
|
-
grid-template-rows:
|
|
6187
|
+
grid-template-rows: auto 1fr;
|
|
6188
6188
|
}
|
|
6189
6189
|
.zen-card * {
|
|
6190
6190
|
box-sizing: border-box;
|
|
6191
6191
|
}
|
|
6192
6192
|
.zen-card__header {
|
|
6193
|
+
display: flex;
|
|
6194
|
+
flex-direction: column;
|
|
6195
|
+
gap: 4px;
|
|
6196
|
+
width: 100%;
|
|
6197
|
+
box-sizing: border-box;
|
|
6198
|
+
}
|
|
6199
|
+
.zen-card__header-primary {
|
|
6193
6200
|
display: flex;
|
|
6194
6201
|
gap: 4px;
|
|
6195
6202
|
align-items: center;
|
|
6203
|
+
padding: 4px 0;
|
|
6204
|
+
width: 100%;
|
|
6205
|
+
}
|
|
6206
|
+
.zen-card__secondary {
|
|
6207
|
+
font-family: var(--main-font);
|
|
6208
|
+
font-size: 12px;
|
|
6209
|
+
font-style: normal;
|
|
6210
|
+
font-weight: 400;
|
|
6211
|
+
letter-spacing: 0.32px;
|
|
6212
|
+
line-height: 16px;
|
|
6213
|
+
text-transform: none;
|
|
6214
|
+
color: var(--text-secondary);
|
|
6215
|
+
overflow: hidden;
|
|
6216
|
+
text-overflow: ellipsis;
|
|
6217
|
+
white-space: nowrap;
|
|
6218
|
+
word-wrap: normal;
|
|
6219
|
+
width: 100%;
|
|
6196
6220
|
}
|
|
6197
6221
|
.zen-card__content {
|
|
6198
6222
|
width: 100%;
|
|
@@ -6260,11 +6284,20 @@
|
|
|
6260
6284
|
line-height: 18px;
|
|
6261
6285
|
text-transform: none;
|
|
6262
6286
|
}
|
|
6287
|
+
.zen-card__menu-trigger {
|
|
6288
|
+
width: 32px;
|
|
6289
|
+
height: 32px;
|
|
6290
|
+
box-sizing: border-box;
|
|
6291
|
+
}
|
|
6263
6292
|
.zen-card__menu-trigger--drive {
|
|
6264
|
-
|
|
6293
|
+
width: 40px;
|
|
6294
|
+
height: 40px;
|
|
6295
|
+
padding: 9px;
|
|
6265
6296
|
}
|
|
6266
6297
|
.zen-card__menu-trigger--drive-tablet {
|
|
6267
|
-
|
|
6298
|
+
width: 40px;
|
|
6299
|
+
height: 40px;
|
|
6300
|
+
padding: 9px;
|
|
6268
6301
|
}
|
|
6269
6302
|
.zen-card__footer {
|
|
6270
6303
|
display: flex;
|
|
@@ -6357,6 +6390,9 @@
|
|
|
6357
6390
|
.zen-menu-button__action--drive-tablet.zen-menu-button__action--has-children {
|
|
6358
6391
|
padding: 16px 8px 16px 16px;
|
|
6359
6392
|
}
|
|
6393
|
+
.zen-menu-button__action.zen-menu-button__action {
|
|
6394
|
+
outline: none;
|
|
6395
|
+
}
|
|
6360
6396
|
.zen-menu-button__icon {
|
|
6361
6397
|
flex: 0 0 auto;
|
|
6362
6398
|
}
|
|
@@ -6416,6 +6452,43 @@
|
|
|
6416
6452
|
padding-top: 11px;
|
|
6417
6453
|
padding-bottom: 11px;
|
|
6418
6454
|
}
|
|
6455
|
+
.zen-favorite-button {
|
|
6456
|
+
display: flex;
|
|
6457
|
+
align-items: center;
|
|
6458
|
+
justify-content: center;
|
|
6459
|
+
width: 32px;
|
|
6460
|
+
height: 32px;
|
|
6461
|
+
background-color: transparent;
|
|
6462
|
+
border: none;
|
|
6463
|
+
fill: var(--text-secondary);
|
|
6464
|
+
cursor: pointer;
|
|
6465
|
+
border-radius: var(--border-radius-default);
|
|
6466
|
+
}
|
|
6467
|
+
.zen-favorite-button:hover {
|
|
6468
|
+
background-color: var(--backgrounds-content-1);
|
|
6469
|
+
}
|
|
6470
|
+
.zen-favorite-button__empty {
|
|
6471
|
+
display: initial;
|
|
6472
|
+
flex: 0 0 auto;
|
|
6473
|
+
}
|
|
6474
|
+
.zen-favorite-button__filled {
|
|
6475
|
+
display: none;
|
|
6476
|
+
flex: 0 0 auto;
|
|
6477
|
+
}
|
|
6478
|
+
.zen-favorite-button--filled .zen-favorite-button__filled {
|
|
6479
|
+
display: initial;
|
|
6480
|
+
}
|
|
6481
|
+
.zen-favorite-button--filled .zen-favorite-button__empty {
|
|
6482
|
+
display: none;
|
|
6483
|
+
}
|
|
6484
|
+
.zen-favorite-button--drive {
|
|
6485
|
+
width: 40px;
|
|
6486
|
+
height: 40px;
|
|
6487
|
+
}
|
|
6488
|
+
.zen-favorite-button--drive-tablet {
|
|
6489
|
+
width: 40px;
|
|
6490
|
+
height: 40px;
|
|
6491
|
+
}
|
|
6419
6492
|
.zen-cards {
|
|
6420
6493
|
display: flex;
|
|
6421
6494
|
width: 100%;
|
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export { type IDateRangeValue, type IDateRangeValueOptionalLabel, type IDateRang
|
|
|
58
58
|
export { type IDialog, Dialog } from "./dialog/dialog";
|
|
59
59
|
export { isElementInsideContainer, isFocusable, getFocusableStartInd } from "./dialog/dialogHelpers";
|
|
60
60
|
export { type ISelectionItem, type IDropdownItem, type IDropdownValueFullSelection, type IDropdownFullSelectedValue, type IDropdownFullSelection, type IDropdown, Dropdown } from "./dropdown/dropdown";
|
|
61
|
+
export { type IFavoriteButton, FavoriteButton } from "./favoriteButton/favoriteButton";
|
|
61
62
|
export { FeedbackProvider } from "./feedbackProvider/feedbackProvider";
|
|
62
63
|
export { type TFilterButton, type IFilterButton, FilterButton } from "./filterButton/filterButton";
|
|
63
64
|
export { type IFiltersBarDropdownFullSelectionState } from "./filtersBar/components/filtersBarDropdown/filtersBarDropdown";
|
package/dist/index.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCardSizeState = exports.useCardSize = exports.getMaxNumberOfActions = exports.getIconFromStatus = exports.getDefaultFullWidthValue = exports.TitleLink = exports.Title = exports.Status = exports.Content = exports.CardButton = exports.Actions = exports.Card = exports.isDifferentPeriod = exports.isValidationDateError = exports.isValidDate = exports.getSelectableYears = exports.isDisableDate = exports.isDisableYear = exports.getAvailablePeriod = exports.toDayStart = exports.setYear = exports.getSameDateOrTheLastForMonth = exports.addMonth = exports.getEndOfWeek = exports.getStartOfWeek = exports.getDayOfWeekOffset = exports.addMonths = exports.addDays = exports.addMinutes = exports.getNewEndDate = exports.getNewStartDate = exports.getCalendarMonthDates = exports.getEndOfMonth = exports.getStartOfMonth = exports.dayNames = exports.Calendar = exports.ButtonType = exports.Button = exports.Bookmark = exports.BetaPillProvider = exports.BetaPill = exports.getBannerOptions = exports.options = exports.Banner = exports.Anchor = exports.useAlert = exports.Alert = exports.AccordionItem = exports.Accordion = exports.Absolute = void 0;
|
|
4
4
|
exports.isElementInsideContainer = exports.Dialog = exports.GET_DEFAULT_DATE_OPTIONS = exports.GET_THIS_YEAR_OPTION = exports.GET_LAST_YEAR_OPTION = exports.GET_THIS_QUARTER_OPTION = exports.GET_LAST_QUARTER_OPTION = exports.GET_LAST_THREE_MONTH_OPTION = exports.GET_LAST_TWELVE_MONTHS_OPTION = exports.GET_LAST_THIRTY_DAYS_OPTION = exports.GET_LAST_SEVEN_DAYS_OPTION = exports.GET_LAST_MONTH_OPTION = exports.GET_NEXT_MONTH_OPTION = exports.GET_THIS_MONTH_OPTION = exports.GET_LAST_WEEK_OPTION = exports.GET_NEXT_WEEK_OPTION = exports.GET_THIS_WEEK_OPTION = exports.GET_YESTERDAY_OPTION = exports.GET_TODAY_OPTION = exports.DateRange = exports.getLabel = exports.DateInput = exports.cutSeconds = exports.ControlledPopup = exports.deepClone = exports.deepMerge = exports.flattenArrays = exports.echo = exports.useThrottle = exports.useScroll = exports.useResize = exports.useMobile = exports.useGridSize = exports.useDeviceType = exports.useDebounce = exports.DeviceType = exports.generateId = exports.hexToRGBA = exports.classNames = exports.getCheckboxState = exports.CheckboxState = exports.Checkbox = exports.Chart = exports.CardsRow = exports.Cards = exports.useAbsoluteSize = exports.isAbsoluteSize = exports.getSizeClass = exports.getContainerSize = exports.CardContainer = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.Waiting = exports.UserFormatProvider = exports.useDrive = exports.ThemeProvider = exports.ThemeDrive = exports.ThemeDark = exports.useLanguage = exports.LanguageProvider = exports.AbortablePromise = exports.Tooltip = void 0;
|
|
5
|
+
exports.IconAddPeople = exports.IconActivity = exports.useCustomMenu = exports.HeaderMenu = exports.HeaderMenuDisplayName = exports.HeaderButton = exports.HeaderButtonDisplayName = exports.HeaderBack = exports.HeaderBackDisplayName = exports.HeaderDisplayName = exports.Header = exports.HeaderType = exports.compareFilters = exports.toFilterState = exports.simplifyFilterState = exports.mergeItems = exports.getId = exports.mapFilterState = exports.isFilterState = exports.isEntireOrganization = exports.isIdEntity = exports.createLinkedTree = exports.getGroupDescription = exports.isSystemGroup = exports.makeBoolHash = exports.allSystemGroups = exports.defaultPrivateGroupId = exports.rootDefectGroups = exports.rootGroups = exports.rootSecurityGroups = exports.systemSecurityGroups = exports.getDefaultFilterState = exports.DEFAULT_RELATION_OPERATOR = exports.FilterMenuStep = exports.GroupsFilter = exports.GroupButton = exports.GridLayout = exports.FormField = exports.FooterButtons = exports.FiltersBarActions = exports.FiltersBar = exports.FiltersBarDisplayName = exports.ResetButton = exports.getRangeOption = exports.FilterButton = exports.FeedbackProvider = exports.FavoriteButton = exports.Dropdown = exports.getFocusableStartInd = exports.isFocusable = void 0;
|
|
6
|
+
exports.IconBatteryFull = exports.IconBatteryError = exports.IconBasket2 = exports.IconBasket = exports.IconBagLuggage2 = exports.IconBagLuggage = exports.IconBag2 = exports.IconBag = exports.IconBadge = exports.IconBackward = exports.IconAutoSize = exports.IconAudio = exports.IconAttachmentFile = exports.IconAttachment2 = exports.IconAttachment = exports.IconAt = exports.IconArrowUpPath = exports.IconArrowTopRight = exports.IconArrowTopLeft = exports.IconArrowTopCircle = exports.IconArrowTop = exports.IconArrowRightPath = exports.IconArrowRightCircle = exports.IconArrowRight = exports.IconArrowLeftPath = exports.IconArrowLeftCircle = exports.IconArrowLeft = exports.IconArrowDownPath = exports.IconArrowBottomRight = exports.IconArrowBottomLeft = exports.IconArrowBottomCircle = exports.IconArrowBottom = exports.IconArchive2 = exports.IconArchive = exports.IconAnchor2 = exports.IconAnchor = exports.IconAlignmentRight = exports.IconAlignmentLeft = exports.IconAlignmentJustify = exports.IconAlignmentCenter = exports.IconAlignTopBox = exports.IconAlignRightBox = exports.IconAlignLeft = exports.IconAlignBottom = exports.IconAirpods = exports.IconAirplay = exports.IconAiSparkles2 = exports.IconAiSparkles = exports.IconAiImages = exports.IconAddPeople2 = void 0;
|
|
7
|
+
exports.IconChart3 = exports.IconChart2 = exports.IconChart = exports.IconCanBus = exports.IconCameraAction = exports.IconCamera3 = exports.IconCamera2 = exports.IconCamera = exports.IconCalendar2 = exports.IconCalendar = exports.IconCalculator = exports.IconBusiness = exports.IconBulletList = exports.IconBulkSelect = exports.IconBuilding = exports.IconBucket = exports.IconBubbles = exports.IconBubbleNotification = exports.IconBubbleAnnotation6 = exports.IconBubbleAnnotation5 = exports.IconBubbleAnnotation4 = exports.IconBubbleAnnotation2 = exports.IconBubbleAnnotation = exports.IconBubble6 = exports.IconBubble5 = exports.IconBubble4 = exports.IconBubble3 = exports.IconBubble2 = exports.IconBubble = exports.IconBrush = exports.IconBrowser = exports.IconBrokenLink = exports.IconBranches = exports.IconBookmarkSelectedHover = exports.IconBookmarkPlus = exports.IconBookmarkFill = exports.IconBookmarkDelete = exports.IconBookmarkCheck = exports.IconBookmark = exports.IconBook2 = exports.IconBook = exports.IconBold = exports.IconBluetooth = exports.IconBitcoin = exports.IconBeta = exports.IconBell = exports.IconBatteryMedium = exports.IconBatteryLow2 = exports.IconBatteryLow = exports.IconBatteryLoading = void 0;
|
|
8
|
+
exports.IconCommunity = exports.IconColorPicker = exports.IconColor = exports.IconCode2 = exports.IconCode = exports.IconCmd2 = exports.IconCmd = exports.IconCloudUpload = exports.IconCloudSync = exports.IconCloudQuestion = exports.IconCloudOff2 = exports.IconCloudOff = exports.IconCloudLines = exports.IconCloudDownload = exports.IconCloudCheck = exports.IconCloud2 = exports.IconCloud = exports.IconCloseSquare = exports.IconCloseCircle = exports.IconClose = exports.IconClockTimer = exports.IconClockSnooze = exports.IconClock2 = exports.IconClock = exports.IconClipboard2 = exports.IconClipboard = exports.IconCircle = exports.IconChromecast = exports.IconChevronTopSmall = exports.IconChevronTop = exports.IconChevronRightSmall = exports.IconChevronRight = exports.IconChevronLeftSmall = exports.IconChevronLeft = exports.IconChevronGrabberVertical = exports.IconChevronGrabberHorizontal = exports.IconChevronDownSmall = exports.IconChevronDoubleUp = exports.IconChevronDoubleRight = exports.IconChevronDoubleLeft = exports.IconChevronDoubleDown = exports.IconChevronBottom = exports.IconCheckbox = exports.IconCheckRadio = exports.IconCheck = exports.IconChart8 = exports.IconChart7 = exports.IconChart6 = exports.IconChart5 = exports.IconChart4 = void 0;
|
|
9
|
+
exports.IconDriver = exports.IconDrive = exports.IconDownload = exports.IconDotVertical = exports.IconDotHorizontal = exports.IconDotGrid = exports.IconDollar = exports.IconDocumentWithLines = exports.IconDocument = exports.IconDock = exports.IconDispatchAsset = exports.IconDisk2 = exports.IconDisk = exports.IconDiamondWarning = exports.IconDeviceUptimeDisconnected = exports.IconDeviceUptime = exports.IconDelete3 = exports.IconDelete2 = exports.IconDelete = exports.IconCycle = exports.IconCursorClick = exports.IconCursorBox = exports.IconCursor3 = exports.IconCursor2 = exports.IconCursor = exports.IconCup = exports.IconCryptoCoin = exports.IconCrypto = exports.IconCrop = exports.IconCreditCard3 = exports.IconCreditCard2 = exports.IconCreditCard = exports.IconCornerUpRight2 = exports.IconCornerUpRight = exports.IconCornerUpLeft = exports.IconCornerRightUp = exports.IconCornerRightDown = exports.IconCornerLeftUp = exports.IconCornerLeftDown = exports.IconCornerDownRight = exports.IconCornerDownLeft = exports.IconCopy5 = exports.IconCopy4 = exports.IconCopy3 = exports.IconCopy2 = exports.IconCopy = exports.IconConstruction = exports.IconConsole = exports.IconConnectDevices = exports.IconCompass = void 0;
|
|
10
|
+
exports.IconGamepad = exports.IconFuelGas = exports.IconFork = exports.IconFolders = exports.IconFolderUpload = exports.IconFolderShared = exports.IconFolderRestricted = exports.IconFolderDownload = exports.IconFolderDelete = exports.IconFolderCloud2 = exports.IconFolderCloud = exports.IconFolderBookmarks = exports.IconFolderAdd = exports.IconFolder2 = exports.IconFolder = exports.IconFocus = exports.IconFingerPrint = exports.IconFilterDesc = exports.IconFilterAsc = exports.IconFilter3Desc = exports.IconFilter3Asc = exports.IconFilter3 = exports.IconFilter2 = exports.IconFilter = exports.IconFileSync5 = exports.IconFileSync4 = exports.IconFileSync3 = exports.IconFileSync2 = exports.IconFileSync = exports.IconFileLocked = exports.IconFileCopy = exports.IconFile = exports.IconFaceId = exports.IconEyeOff = exports.IconEye = exports.IconExpand = exports.IconException = exports.IconExcel = exports.IconEvse = exports.IconEuro = exports.IconEthereum = exports.IconEsc = exports.IconEmailNotification = exports.IconEmail2 = exports.IconEmail = exports.IconEditSmall = exports.IconEditBig = exports.IconEdit2 = exports.IconEdit = exports.IconDvir = void 0;
|
|
11
|
+
exports.IconLayoutTop = exports.IconLayoutSidebar = exports.IconLayoutSearch = exports.IconLayoutRight = exports.IconLayoutLeft = exports.IconLayoutColumn = exports.IconLayoutBottom = exports.IconLayout = exports.IconLayers = exports.IconLaptop = exports.IconLab = exports.IconKeyboardUp2 = exports.IconKeyboardUp = exports.IconKeyboardDown = exports.IconKeyboard = exports.IconItalic = exports.IconInspect = exports.IconInfoSquare = exports.IconInfoCircle = exports.IconInbox2 = exports.IconInbox = exports.IconImages2 = exports.IconImages = exports.IconImage = exports.IconImac2 = exports.IconImac = exports.IconIcon = exports.IconITS = exports.IconHourglass = exports.IconHomeSimple = exports.IconHomeRoof = exports.IconHomeDoor2 = exports.IconHomeDoor = exports.IconHistory = exports.IconHexonalWarning = exports.IconHeart = exports.IconHeadphones = exports.IconHarness = exports.IconGrids2 = exports.IconGrids = exports.IconGraphStatistics = exports.IconGraphPresentation = exports.IconGraphLines = exports.IconGraphChart = exports.IconGraph = exports.IconGrab = exports.IconGlobus = exports.IconGift = exports.IconGeotabSales = exports.IconGeotabDrive = void 0;
|
|
12
|
+
exports.IconMove = exports.IconMouseScrollUp = exports.IconMouseScrollDown = exports.IconMouse = exports.IconMoon = exports.IconMoney = exports.IconMobi = exports.IconMinusSquare = exports.IconMinusCircle = exports.IconMinus = exports.IconMinimize = exports.IconMicrophone2 = exports.IconMicrophone = exports.IconMenuCircle2 = exports.IconMenuCircle = exports.IconMenu3 = exports.IconMenu2 = exports.IconMenu = exports.IconMemory2 = exports.IconMemory = exports.IconMedal = exports.IconMarketplace = exports.IconMap = exports.IconMagicEyes = exports.IconMagic2 = exports.IconMagic = exports.IconMacbook = exports.IconLowDataQuality = exports.IconLogout = exports.IconLogin = exports.IconLock = exports.IconLocationOff = exports.IconLocationMap = exports.IconLocationCompass = exports.IconLoader = exports.IconList = exports.IconLinkLines = exports.IconLink3 = exports.IconLink2 = exports.IconLink = exports.IconLightning = exports.IconLightBulb = exports.IconLifeBuoy = exports.IconLeaf = exports.IconLayoutWindow5 = exports.IconLayoutWindow4 = exports.IconLayoutWindow3 = exports.IconLayoutWindow2 = exports.IconLayoutWindow = exports.IconLayoutTopbar = void 0;
|
|
13
|
+
exports.IconQuestion = exports.IconPuzzle = exports.IconPullRequest = exports.IconProcessor = exports.IconPrinter = exports.IconPound = exports.IconPlusSquare = exports.IconPlusLines = exports.IconPlusFile = exports.IconPlusCircle = exports.IconPlus = exports.IconPlay = exports.IconPinLocation3 = exports.IconPinLocation2 = exports.IconPinLocation = exports.IconPin2 = exports.IconPin = exports.IconPhoneMobile = exports.IconPhone = exports.IconPerformance = exports.IconPercent = exports.IconPeopleLike = exports.IconPeopleGroup2 = exports.IconPeopleGroup = exports.IconPeople = exports.IconPencil2 = exports.IconPencil = exports.IconPause = exports.IconPassword = exports.IconPaperPlane = exports.IconPackage3 = exports.IconPackage2 = exports.IconPackage = exports.IconPDF = exports.IconOptAlt = exports.IconOpt = exports.IconOpen2 = exports.IconOpen = exports.IconOnDuty = exports.IconNumberedList = exports.IconNotifications = exports.IconNotificationOff = exports.IconNotificationBell = exports.IconNotificationAlarm = exports.IconNote = exports.IconNewspaper = exports.IconNews = exports.IconMyGeotab = exports.IconMyAdmin = exports.IconMove2 = void 0;
|
|
14
|
+
exports.IconSortVertical = exports.IconSortHorizontal = exports.IconSort2Vertical = exports.IconSort2Horizontal = exports.IconSmiley = exports.IconSign = exports.IconSidebar = exports.IconShield4 = exports.IconShield3 = exports.IconShield2 = exports.IconShield = exports.IconShare3 = exports.IconShare2 = exports.IconShare = exports.IconSettings8 = exports.IconSettings7 = exports.IconSettings6 = exports.IconSettings4 = exports.IconSettings3 = exports.IconSettings2 = exports.IconSettings1 = exports.IconServer3 = exports.IconServer2 = exports.IconServer = exports.IconSend = exports.IconSecuredLines = exports.IconSecured = exports.IconSeatbelt = exports.IconSearchPage = exports.IconSearchLines = exports.IconSearchDocument = exports.IconSearch = exports.IconSdCard = exports.IconRuler = exports.IconRoute = exports.IconRotateRepeat2 = exports.IconRotateRepeat = exports.IconRotateCounterclockwise = exports.IconRotateClockwise = exports.IconResizeSmall = exports.IconResizeBig = exports.IconRepeat2 = exports.IconRepeat = exports.IconRemovePeople = exports.IconRefrigeration = exports.IconRedo2 = exports.IconRedo = exports.IconRecord = exports.IconReceipt = exports.IconRadar = void 0;
|
|
15
|
+
exports.IconWatch = exports.IconWarning = exports.IconWallet1 = exports.IconWallet = exports.IconVolumeOn = exports.IconVolumeOff = exports.IconVolumeOf = exports.IconVolumeMinimum = exports.IconVolumeHalf = exports.IconVolumeFull = exports.IconVolumeDown = exports.IconVoice = exports.IconVisitPage = exports.IconVideoReplay = exports.IconVideo2 = exports.IconVideo = exports.IconUsbHub = exports.IconUsb = exports.IconUpload = exports.IconUnlocked = exports.IconUndock = exports.IconUndo2 = exports.IconUndo = exports.IconUnderline = exports.IconUmbrella = exports.IconTrailer = exports.IconThumbsUp = exports.IconThumbsDown = exports.IconThermometer = exports.IconThermograph = exports.IconTextSize = exports.IconTelevision2 = exports.IconTelevision = exports.IconTarget3 = exports.IconTarget2 = exports.IconTarget = exports.IconTachographTimeCard = exports.IconTachograph = exports.IconTable = exports.IconSupport = exports.IconSun = exports.IconStrikeThrough = exports.IconStore = exports.IconStorage = exports.IconStopwatch = exports.IconStarFilled = exports.IconStarAi = exports.IconStar = exports.IconSquare = exports.IconSpeaker = void 0;
|
|
16
|
+
exports.PillExpandable = exports.Pill = exports.PaginationType = exports.Pagination = exports.PageLayout = exports.PageContentLayout = exports.Notification = exports.DialogContentNew = exports.Modal = exports.MobileSheet = exports.MiniTabs = exports.MiniTabsSize = exports.isLink = exports.isButton = exports.findPrevFocusable = exports.findNextFocusable = exports.findLastFocusable = exports.findFirstFocusable = exports.Menu = exports.ControlledMenu = exports.changeOrder = exports.ListItem = exports.List = exports.ItemData = exports.ItemCompact = exports.LineChartMini = exports.getDefaultDatasetStyle = exports.htmlLegendPlugin = exports.LEGEND_PLUGIN_ID = exports.LineChart = exports.useLayoutSize = exports.LayoutFullScreenProvider = exports.useLayoutFullScreen = exports.LayoutFullScreenElementProvider = exports.useLayoutFullScreenElement = exports.Layout = exports.ImageNothingFound = exports.IconZoom2 = exports.IconZoom = exports.IconZone = exports.IconYen = exports.IconWrite = exports.IconWrench = exports.IconWorld = exports.IconWorkday = exports.IconWifi2 = exports.IconWifi = exports.IconWhisper = exports.IconWebcam = exports.IconWatch2 = void 0;
|
|
17
|
+
exports.calculateArrowPosition = exports.ToggleButton = exports.Toast = exports.useToast = exports.TimePicker = exports.TextareaRaw = exports.Textarea = exports.TextInputRaw = exports.TextInput = exports.TextIconButton = exports.ButtonIconPosition = exports.Tabs = exports.TabsDisplayName = exports.ActionLinkColumn = exports.CheckboxColumn = exports.MainColumn = exports.ActionsColumn = exports.getSortableValue = exports.ColumnSortDirection = exports.getEmptySelection = exports.Table = exports.TabBarContent = exports.TabBar = exports.SummaryTileBarDisplayName = exports.SummaryTileBar = exports.getTypeClassName = exports.SummaryTileTrigger = exports.SummaryTile = exports.SummaryTileDisplayName = exports.SummaryTileSize = exports.SummaryTileType = exports.Stepper = exports.SortControl = exports.SortDirections = exports.Skeleton = exports.LazyContent = exports.SidePanel = exports.CUSTOM_POPUP_COMPONENT_CLASSNAME = exports.SidePanelCloseReason = exports.isChildPopup = exports.SelectField = exports.Select = exports.SearchInput = exports.Range = exports.RadioGroup = exports.Radio = exports.ProgressBar = exports.ProgreesBarSize = exports.ProgressBarType = exports.Popup = void 0;
|
|
18
|
+
exports.Waiting = exports.UserFormatProvider = exports.useDrive = exports.ThemeProvider = exports.ThemeDrive = exports.ThemeDark = exports.useLanguage = exports.LanguageProvider = exports.AbortablePromise = exports.Tooltip = exports.removeArrowClasses = void 0;
|
|
19
19
|
/* eslint-disable max-len */
|
|
20
20
|
var absolute_1 = require("./absolute/absolute");
|
|
21
21
|
Object.defineProperty(exports, "Absolute", { enumerable: true, get: function () { return absolute_1.Absolute; } });
|
|
@@ -179,6 +179,8 @@ Object.defineProperty(exports, "isFocusable", { enumerable: true, get: function
|
|
|
179
179
|
Object.defineProperty(exports, "getFocusableStartInd", { enumerable: true, get: function () { return dialogHelpers_1.getFocusableStartInd; } });
|
|
180
180
|
var dropdown_1 = require("./dropdown/dropdown");
|
|
181
181
|
Object.defineProperty(exports, "Dropdown", { enumerable: true, get: function () { return dropdown_1.Dropdown; } });
|
|
182
|
+
var favoriteButton_1 = require("./favoriteButton/favoriteButton");
|
|
183
|
+
Object.defineProperty(exports, "FavoriteButton", { enumerable: true, get: function () { return favoriteButton_1.FavoriteButton; } });
|
|
182
184
|
var feedbackProvider_1 = require("./feedbackProvider/feedbackProvider");
|
|
183
185
|
Object.defineProperty(exports, "FeedbackProvider", { enumerable: true, get: function () { return feedbackProvider_1.FeedbackProvider; } });
|
|
184
186
|
var filterButton_1 = require("./filterButton/filterButton");
|
|
@@ -235,5 +235,6 @@ exports.translations = {
|
|
|
235
235
|
"Choose your date range": "Choose your date range",
|
|
236
236
|
"Some of the dates you selected aren’t available. Please try a different range.": "Some of the dates you selected aren’t available. Please try a different range.",
|
|
237
237
|
"Please select the dates you want to view.": "Please select the dates you want to view.",
|
|
238
|
-
"Open": "Open"
|
|
238
|
+
"Open": "Open",
|
|
239
|
+
"Favorite": "Favorite"
|
|
239
240
|
};
|