@homefile/components-v2 2.47.4 → 2.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/buttons/DisplayOptionsButtons.d.ts +1 -1
- package/dist/components/buttons/DisplayOptionsButtons.js +2 -2
- package/dist/components/icons/DisplayGrid.d.ts +5 -1
- package/dist/components/icons/DisplayGrid.js +14 -2
- package/dist/components/icons/DisplayItem.d.ts +5 -1
- package/dist/components/icons/DisplayItem.js +14 -2
- package/dist/components/icons/DisplayList.d.ts +5 -1
- package/dist/components/icons/DisplayList.js +14 -2
- package/dist/components/icons/TicketBookmark.d.ts +4 -0
- package/dist/components/icons/TicketBookmark.js +18 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/index.js +1 -0
- package/dist/components/partner/PartnerServiceTicketsToolbar.d.ts +2 -0
- package/dist/components/partner/PartnerServiceTicketsToolbar.js +7 -0
- package/dist/components/partner/PartnerServiceTicketsWrapper.d.ts +2 -0
- package/dist/components/partner/PartnerServiceTicketsWrapper.js +7 -0
- package/dist/components/partner/index.d.ts +3 -0
- package/dist/components/partner/index.js +3 -0
- package/dist/components/partner/serviceTickets/PartnerServiceTicketCard.d.ts +2 -0
- package/dist/components/partner/serviceTickets/PartnerServiceTicketCard.js +8 -0
- package/dist/components/partner/serviceTickets/index.d.ts +1 -0
- package/dist/components/partner/serviceTickets/index.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/buttons/DisplayOptionsButtons.interface.d.ts +1 -0
- package/dist/interfaces/inputs/Select.interface.d.ts +1 -1
- package/dist/interfaces/partner/PartnerServiceTicketsToolbar.interface.d.ts +17 -0
- package/dist/interfaces/partner/PartnerServiceTicketsToolbar.interface.js +1 -0
- package/dist/interfaces/partner/PartnerServiceTicketsWrapper.interface.d.ts +11 -0
- package/dist/interfaces/partner/PartnerServiceTicketsWrapper.interface.js +1 -0
- package/dist/interfaces/partner/index.d.ts +3 -0
- package/dist/interfaces/partner/index.js +3 -0
- package/dist/interfaces/partner/serviceTickets/PartnerServiceTicketCard.interface.d.ts +18 -0
- package/dist/interfaces/partner/serviceTickets/PartnerServiceTicketCard.interface.js +1 -0
- package/dist/interfaces/partner/serviceTickets/index.d.ts +1 -0
- package/dist/interfaces/partner/serviceTickets/index.js +1 -0
- package/dist/stories/partner/PartnerServiceTicketsWrapper.stories.d.ts +5 -0
- package/dist/stories/partner/PartnerServiceTicketsWrapper.stories.js +51 -0
- package/dist/stories/partner/serviceTickets/PartnerServiceTicketCard.stories.d.ts +5 -0
- package/dist/stories/partner/serviceTickets/PartnerServiceTicketCard.stories.js +30 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DisplayOptionsButtonsI } from '../../interfaces';
|
|
2
|
-
export declare const DisplayOptionsButtons: ({ displays, initialDisplay, onDisplayClick, }: DisplayOptionsButtonsI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const DisplayOptionsButtons: ({ displays, iconSize, initialDisplay, onDisplayClick, }: DisplayOptionsButtonsI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Flex, Button } from '@chakra-ui/react';
|
|
4
4
|
import { colors } from '../../theme/colors';
|
|
5
5
|
import { DisplayItem, DisplayList, DisplayGrid } from '../../components';
|
|
6
|
-
export const DisplayOptionsButtons = ({ displays = [], initialDisplay, onDisplayClick, }) => {
|
|
6
|
+
export const DisplayOptionsButtons = ({ displays = [], iconSize = 5, initialDisplay, onDisplayClick, }) => {
|
|
7
7
|
const types = displays;
|
|
8
8
|
const [display, setDisplay] = useState(initialDisplay);
|
|
9
9
|
const handleDisplayClick = (type) => {
|
|
@@ -13,5 +13,5 @@ export const DisplayOptionsButtons = ({ displays = [], initialDisplay, onDisplay
|
|
|
13
13
|
const getCurrentDisplayColor = (type) => {
|
|
14
14
|
return display === type ? colors.blue[3] : colors.blue[1];
|
|
15
15
|
};
|
|
16
|
-
return (_jsx(Flex, { gap: "base", children: types.map((type) => (_jsxs(Button, { variant: "displayIcon", onClick: () => handleDisplayClick(type), children: [type === 'list' && (_jsx(DisplayList, { stroke: getCurrentDisplayColor(type) })), type === 'item' && (_jsx(DisplayItem, { stroke: getCurrentDisplayColor(type) })), type === 'grid' && (_jsx(DisplayGrid, { stroke: getCurrentDisplayColor(type) }))] }, type))) }));
|
|
16
|
+
return (_jsx(Flex, { gap: "base", children: types.map((type) => (_jsxs(Button, { variant: "displayIcon", onClick: () => handleDisplayClick(type), minW: "fit-content", h: "fit-content", p: "0", children: [type === 'list' && (_jsx(DisplayList, { boxSize: iconSize, stroke: getCurrentDisplayColor(type) })), type === 'item' && (_jsx(DisplayItem, { boxSize: iconSize, stroke: getCurrentDisplayColor(type) })), type === 'grid' && (_jsx(DisplayGrid, { boxSize: iconSize, stroke: getCurrentDisplayColor(type) }))] }, type))) }));
|
|
17
17
|
};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
type DisplayIconProps = React.SVGProps<SVGGElement> & {
|
|
2
|
+
boxSize?: number | string;
|
|
3
|
+
};
|
|
4
|
+
export declare const DisplayGrid: ({ boxSize, stroke, ...props }: DisplayIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
13
|
import { Icon } from '@chakra-ui/react';
|
|
3
14
|
import { colors } from '../../theme/colors';
|
|
4
|
-
export const DisplayGrid = (
|
|
5
|
-
|
|
15
|
+
export const DisplayGrid = (_a) => {
|
|
16
|
+
var { boxSize, stroke = colors.blue[3] } = _a, props = __rest(_a, ["boxSize", "stroke"]);
|
|
17
|
+
return (_jsx(Icon, { viewBox: "0 0 19.5 19.5", boxSize: boxSize, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 19.5 19.5", children: _jsxs("g", Object.assign({ fill: "none", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", "data-name": "Group 14495" }, props, { children: [_jsx("path", { d: "M.75.75h7.321v7.321H.75Z", "data-name": "Path 10064" }), _jsx("path", { d: "M11.429.75h7.321v7.321h-7.321Z", "data-name": "Path 10065" }), _jsx("path", { d: "M11.429 11.428h7.321v7.321h-7.321Z", "data-name": "Path 10066" }), _jsx("path", { d: "M.75 11.428h7.321v7.321H.75Z", "data-name": "Path 10067" })] })) }) }));
|
|
6
18
|
};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
type DisplayIconProps = React.SVGProps<SVGGElement> & {
|
|
2
|
+
boxSize?: number | string;
|
|
3
|
+
};
|
|
4
|
+
export declare const DisplayItem: ({ boxSize, stroke, ...props }: DisplayIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
13
|
import { Icon } from '@chakra-ui/react';
|
|
3
14
|
import { colors } from '../../theme/colors';
|
|
4
|
-
export const DisplayItem = (
|
|
5
|
-
|
|
15
|
+
export const DisplayItem = (_a) => {
|
|
16
|
+
var { boxSize, stroke = colors.blue[3] } = _a, props = __rest(_a, ["boxSize", "stroke"]);
|
|
17
|
+
return (_jsx(Icon, { viewBox: "0 0 19.79 17.374", boxSize: boxSize, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 19.79 17.374", children: _jsxs("g", Object.assign({ stroke: stroke, "data-name": "Group 14548" }, props, { children: [_jsx("path", { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M.75.75h18.29v11.438H.75Z", "data-name": "Path 10082" }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16845", children: [_jsx("path", { stroke: "none", d: "M.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M1.333 14.874h2v2h-2z" })] }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16846", children: [_jsx("path", { stroke: "none", d: "M5.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M6.333 14.874h2v2h-2z" })] }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16847", children: [_jsx("path", { stroke: "none", d: "M10.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M11.333 14.874h2v2h-2z" })] }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16848", children: [_jsx("path", { stroke: "none", d: "M15.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M16.333 14.874h2v2h-2z" })] })] })) }) }));
|
|
6
18
|
};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
type DisplayIconProps = React.SVGProps<SVGGElement> & {
|
|
2
|
+
boxSize?: number | string;
|
|
3
|
+
};
|
|
4
|
+
export declare const DisplayList: ({ boxSize, stroke, ...props }: DisplayIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
13
|
import { Icon } from '@chakra-ui/react';
|
|
3
14
|
import { colors } from '../../theme/colors';
|
|
4
|
-
export const DisplayList = (
|
|
5
|
-
|
|
15
|
+
export const DisplayList = (_a) => {
|
|
16
|
+
var { boxSize, stroke = colors.blue[3] } = _a, props = __rest(_a, ["boxSize", "stroke"]);
|
|
17
|
+
return (_jsx(Icon, { viewBox: "0 0 18 14", boxSize: boxSize, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 14", children: _jsxs("g", Object.assign({ fill: stroke, "data-name": "Group 14455" }, props, { children: [_jsx("path", { d: "M5 0h13v2H5z", "data-name": "Rectangle 14122" }), _jsx("path", { d: "M5 6h13v2H5z", "data-name": "Rectangle 14123" }), _jsx("path", { d: "M5 12h13v2H5z", "data-name": "Rectangle 14124" }), _jsx("path", { d: "M0 0h3v2H0z", "data-name": "Rectangle 14122" }), _jsx("path", { d: "M0 6h3v2H0z", "data-name": "Rectangle 14123" }), _jsx("path", { d: "M0 12h3v2H0z", "data-name": "Rectangle 14124" })] })) }) }));
|
|
6
18
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Icon } from '@chakra-ui/react';
|
|
14
|
+
import { colors } from '../../theme/colors';
|
|
15
|
+
export const TicketBookmark = (_a) => {
|
|
16
|
+
var { stroke = colors.blue[2] } = _a, props = __rest(_a, ["stroke"]);
|
|
17
|
+
return (_jsx(Icon, Object.assign({ viewBox: "0 0 24 32" }, props, { children: _jsx("path", { d: "M6 3.5h12A1.5 1.5 0 0 1 19.5 5v22L12 22.385 4.5 27V5A1.5 1.5 0 0 1 6 3.5Z", fill: "none", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2.5" }) })));
|
|
18
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PartnerServiceTicketsToolbarI } from '../../interfaces';
|
|
2
|
+
export declare const PartnerServiceTicketsToolbar: ({ ageItems, initialAge, initialDisplay, initialPriority, initialStatus, newTicketLabel, onAgeChange, onDisplayChange, onNewTicketClick, onPriorityChange, onStatusChange, priorityItems, showNewTicketButton, statusItems, }: PartnerServiceTicketsToolbarI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, Flex } from '@chakra-ui/react';
|
|
3
|
+
import { DisplayOptionsButtons, Plus, SelectInput } from '../../components';
|
|
4
|
+
export const PartnerServiceTicketsToolbar = ({ ageItems, initialAge, initialDisplay = 'grid', initialPriority, initialStatus, newTicketLabel = 'TICKET', onAgeChange, onDisplayChange, onNewTicketClick, onPriorityChange, onStatusChange, priorityItems, showNewTicketButton = false, statusItems, }) => {
|
|
5
|
+
const getValue = (item) => typeof item === 'string' ? item : String(item._id);
|
|
6
|
+
return (_jsx(Box, { p: "base", children: _jsxs(Flex, { align: "center", justify: "space-between", gap: "base", wrap: "nowrap", children: [_jsxs(Flex, { gap: "12", align: "center", children: [showNewTicketButton && (_jsx(Box, { ml: "-base", children: _jsx(Button, { id: "addServiceTicketButton", size: "md", onClick: onNewTicketClick, leftIcon: _jsx(Plus, {}), variant: "rightRounded", children: newTicketLabel }) })), _jsxs(Flex, { gap: "base", children: [_jsx(SelectInput, { height: "md", width: "140px", handleClick: (item) => onAgeChange(getValue(item)), items: ageItems, initialValue: initialAge }), _jsx(SelectInput, { height: "md", width: "140px", handleClick: (item) => onPriorityChange(getValue(item)), items: priorityItems, initialValue: initialPriority }), _jsx(SelectInput, { height: "md", width: "200px", handleClick: (item) => onStatusChange(getValue(item)), items: statusItems, initialValue: initialStatus })] })] }), _jsx(DisplayOptionsButtons, { displays: ['list', 'grid'], initialDisplay: initialDisplay, onDisplayClick: onDisplayChange, iconSize: 6 })] }) }));
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Container } from '@chakra-ui/react';
|
|
3
|
+
import { Manager } from '../../assets/images';
|
|
4
|
+
import { ContainerHeader, MoreHorizontal, TileTooltip } from '../../components';
|
|
5
|
+
export const PartnerServiceTicketsWrapper = ({ children, menuItems = [], onHelpClick, showHelp = false, title = 'Service Tickets', titleIcon = Manager, tooltipLabel = 'Service Tickets', }) => {
|
|
6
|
+
return (_jsx(TileTooltip, { label: tooltipLabel, children: _jsxs(Container, { variant: "launchpad", h: "full", maxW: "none", p: "0", position: "relative", overflow: "hidden", bg: "lightBlue.1", children: [_jsx(ContainerHeader, { title: title, titleIcon: titleIcon, icon: _jsx(MoreHorizontal, { size: 38 }), menuItems: menuItems, onHelpClick: onHelpClick, showHelp: showHelp, fontWeight: "normal" }), _jsx(Box, { minH: "420px", bg: "lightBlue.1", children: children })] }) }));
|
|
7
|
+
};
|
|
@@ -5,6 +5,7 @@ export * from './catalog';
|
|
|
5
5
|
export * from './formTile';
|
|
6
6
|
export * from './panel';
|
|
7
7
|
export * from './popup';
|
|
8
|
+
export * from './serviceTickets';
|
|
8
9
|
export * from './Fader';
|
|
9
10
|
export * from './HeaderPartnerLogo';
|
|
10
11
|
export * from './PartnerAddButton';
|
|
@@ -13,6 +14,8 @@ export * from './PartnerFooter';
|
|
|
13
14
|
export * from './PartnerHomeHeader';
|
|
14
15
|
export * from './PartnerHeader';
|
|
15
16
|
export * from './PartnerImage';
|
|
17
|
+
export * from './PartnerServiceTicketsToolbar';
|
|
18
|
+
export * from './PartnerServiceTicketsWrapper';
|
|
16
19
|
export * from './PartnerTileWrapper';
|
|
17
20
|
export * from './PartnerSidebarMenu';
|
|
18
21
|
export * from './ShortPartnerTile';
|
|
@@ -5,6 +5,7 @@ export * from './catalog';
|
|
|
5
5
|
export * from './formTile';
|
|
6
6
|
export * from './panel';
|
|
7
7
|
export * from './popup';
|
|
8
|
+
export * from './serviceTickets';
|
|
8
9
|
export * from './Fader';
|
|
9
10
|
export * from './HeaderPartnerLogo';
|
|
10
11
|
export * from './PartnerAddButton';
|
|
@@ -13,6 +14,8 @@ export * from './PartnerFooter';
|
|
|
13
14
|
export * from './PartnerHomeHeader';
|
|
14
15
|
export * from './PartnerHeader';
|
|
15
16
|
export * from './PartnerImage';
|
|
17
|
+
export * from './PartnerServiceTicketsToolbar';
|
|
18
|
+
export * from './PartnerServiceTicketsWrapper';
|
|
16
19
|
export * from './PartnerTileWrapper';
|
|
17
20
|
export * from './PartnerSidebarMenu';
|
|
18
21
|
export * from './ShortPartnerTile';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PartnerServiceTicketCardI } from '../../../interfaces';
|
|
2
|
+
export declare const PartnerServiceTicketCard: ({ customerName, description, footerActionLabel, headerLabel, infoBackground, meta, onFooterActionClick, onStatusChange, statusOptions, statusValue, }: PartnerServiceTicketCardI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Container, Flex, Grid, IconButton, Stack, Text, } from '@chakra-ui/react';
|
|
3
|
+
import { TicketBookmark } from '../../../components';
|
|
4
|
+
export const PartnerServiceTicketCard = ({ customerName, description, footerActionLabel, headerLabel, infoBackground = '#e6ddf1', meta, onFooterActionClick, onStatusChange, statusOptions, statusValue, }) => {
|
|
5
|
+
const hasStatusSelect = Boolean((statusOptions === null || statusOptions === void 0 ? void 0 : statusOptions.length) && statusValue);
|
|
6
|
+
const getValue = (item) => typeof item === 'string' ? item : String(item._id);
|
|
7
|
+
return (_jsxs(Container, { variant: "launchpad", w: "180px", overflow: "hidden", bg: "neutral.white", children: [_jsx(Box, { p: "2", children: _jsx(Text, { fontSize: "xs", fontWeight: "medium", textTransform: "uppercase", children: headerLabel }) }), _jsx(Box, { bg: infoBackground, p: "base", children: _jsx(_Fragment, { children: meta.map(({ label, value }) => (_jsxs(Grid, { templateColumns: "40% 60%", gap: "0", children: [_jsx(Text, { fontFamily: "secondary", fontSize: "xxs", textTransform: "uppercase", lineHeight: "1.4", children: label }), _jsx(Text, { fontFamily: "secondary", fontSize: "xxs", fontWeight: "bold", textTransform: "uppercase", lineHeight: "1.4", children: value })] }, label))) }) }), _jsxs(Stack, { spacing: "1", p: "base", borderBottom: "1px solid", borderColor: "lightBlue.2", children: [_jsx(Text, { textTransform: "uppercase", fontWeight: "medium", children: customerName }), _jsx(Text, { fontFamily: "secondary", fontSize: "sm", lineHeight: "1.2", children: description })] }), _jsx(Flex, { h: "40px", p: "base", align: "center", justify: "space-between", children: _jsx(IconButton, { "aria-label": footerActionLabel !== null && footerActionLabel !== void 0 ? footerActionLabel : 'Save ticket', variant: "icon", width: "fit-content", onClick: onFooterActionClick, children: _jsx(TicketBookmark, { boxSize: "5" }) }) })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceTicketCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceTicketCard';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPopup, AddPropertyRecords, Address, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AppliancesReceived, AssignableReceipts, BackendAlert, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ConfirmHomeDetails, ConfirmProperty, ConfirmPropertyBody, ConfirmPropertyFooter, ConfirmPropertyRecords, ContactList, ContactsContent, ContainerHeader, ControlledWizard, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EditItemName, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeAssistantTutorial, HomeAssistantWizardPanel, HomeAssistantWizardSteps, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeItemList, HomeItemManualInfo, HomeMonitor, HomeMonitorPanel, HomeMonitorSteps, HomeSharedWith, HomieAddItems, HomiSms, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadApplianceAutofiler, LaunchpadAppliancePanel, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessageChatPanel, MessagePanel, MinimizedTiles, MonthlyCharge, MortgageInfo, MortgageInfoReadOnly, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewHomeDetails, NewPassword, NotBeChargedBanner, NotificationCard, Notifications, NotificationsPanel, NotificationsReminder, NpsScore, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerHomeHeader, PartnerImages, PartnerPanel, PartnerServiceCard, PasswordInput, PaymentBanner, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SearchItemLoader, SearchRecords, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StartHomiSetup, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorDialog, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, VideoPlayer, VideoPlayerModal, ViewContactPanel, WeatherWidget, WellDone, WizardBodyPadding, WizardStepGoal, WizardSuccessHeader, WizardTextHeader, WizardValueSummary, WizardValueSummaryBody, WizardValueSummaryFooter, YtdTile, } from './components';
|
|
1
|
+
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPopup, AddPropertyRecords, Address, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AppliancesReceived, AssignableReceipts, BackendAlert, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ConfirmHomeDetails, ConfirmProperty, ConfirmPropertyBody, ConfirmPropertyFooter, ConfirmPropertyRecords, ContactList, ContactsContent, ContainerHeader, ControlledWizard, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EditItemName, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeAssistantTutorial, HomeAssistantWizardPanel, HomeAssistantWizardSteps, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeItemList, HomeItemManualInfo, HomeMonitor, HomeMonitorPanel, HomeMonitorSteps, HomeSharedWith, HomieAddItems, HomiSms, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadApplianceAutofiler, LaunchpadAppliancePanel, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessageChatPanel, MessagePanel, MinimizedTiles, MonthlyCharge, MortgageInfo, MortgageInfoReadOnly, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewHomeDetails, NewPassword, NotBeChargedBanner, NotificationCard, Notifications, NotificationsPanel, NotificationsReminder, NpsScore, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerHomeHeader, PartnerImages, PartnerPanel, PartnerServiceCard, PartnerSidebarMenu, PasswordInput, PaymentBanner, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SearchItemLoader, SearchRecords, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StartHomiSetup, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorDialog, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, VideoPlayer, VideoPlayerModal, ViewContactPanel, WeatherWidget, WellDone, WizardBodyPadding, WizardStepGoal, WizardSuccessHeader, WizardTextHeader, WizardValueSummary, WizardValueSummaryBody, WizardValueSummaryFooter, YtdTile, } from './components';
|
|
2
2
|
export { useCustomToast, useConfirmPropertyModel } from './hooks';
|
|
3
3
|
export { randomColor, mapApiObjectToFormFields, mapForecastToWidget, } from './utils';
|
|
4
4
|
export { Ambulance, CookTop, Contacts, GuestBedroom, MagnifyingGlassReport, Message, Messages, Register, Receipts, Price, BlueFolderShared, Calendar, Create, Notes, WallDecor, } from './assets/images';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPopup, AddPropertyRecords, Address, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AppliancesReceived, AssignableReceipts, BackendAlert, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ConfirmHomeDetails, ConfirmProperty, ConfirmPropertyBody, ConfirmPropertyFooter, ConfirmPropertyRecords, ContactList, ContactsContent, ContainerHeader, ControlledWizard, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EditItemName, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeAssistantTutorial, HomeAssistantWizardPanel, HomeAssistantWizardSteps, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeItemList, HomeItemManualInfo, HomeMonitor, HomeMonitorPanel, HomeMonitorSteps, HomeSharedWith, HomieAddItems, HomiSms, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadApplianceAutofiler, LaunchpadAppliancePanel, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessageChatPanel, MessagePanel, MinimizedTiles, MonthlyCharge, MortgageInfo, MortgageInfoReadOnly, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewHomeDetails, NewPassword, NotBeChargedBanner, NotificationCard, Notifications, NotificationsPanel, NotificationsReminder, NpsScore, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerHomeHeader, PartnerImages, PartnerPanel, PartnerServiceCard, PasswordInput, PaymentBanner, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SearchItemLoader, SearchRecords, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StartHomiSetup, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorDialog, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, VideoPlayer, VideoPlayerModal, ViewContactPanel, WeatherWidget, WellDone, WizardBodyPadding, WizardStepGoal, WizardSuccessHeader, WizardTextHeader, WizardValueSummary, WizardValueSummaryBody, WizardValueSummaryFooter, YtdTile, } from './components';
|
|
1
|
+
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPopup, AddPropertyRecords, Address, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AppliancesReceived, AssignableReceipts, BackendAlert, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ConfirmHomeDetails, ConfirmProperty, ConfirmPropertyBody, ConfirmPropertyFooter, ConfirmPropertyRecords, ContactList, ContactsContent, ContainerHeader, ControlledWizard, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EditItemName, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeAssistantTutorial, HomeAssistantWizardPanel, HomeAssistantWizardSteps, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeItemList, HomeItemManualInfo, HomeMonitor, HomeMonitorPanel, HomeMonitorSteps, HomeSharedWith, HomieAddItems, HomiSms, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadApplianceAutofiler, LaunchpadAppliancePanel, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessageChatPanel, MessagePanel, MinimizedTiles, MonthlyCharge, MortgageInfo, MortgageInfoReadOnly, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewHomeDetails, NewPassword, NotBeChargedBanner, NotificationCard, Notifications, NotificationsPanel, NotificationsReminder, NpsScore, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerHomeHeader, PartnerImages, PartnerPanel, PartnerServiceCard, PartnerSidebarMenu, PasswordInput, PaymentBanner, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SearchItemLoader, SearchRecords, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StartHomiSetup, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorDialog, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, VideoPlayer, VideoPlayerModal, ViewContactPanel, WeatherWidget, WellDone, WizardBodyPadding, WizardStepGoal, WizardSuccessHeader, WizardTextHeader, WizardValueSummary, WizardValueSummaryBody, WizardValueSummaryFooter, YtdTile, } from './components';
|
|
2
2
|
export { useCustomToast, useConfirmPropertyModel } from './hooks';
|
|
3
3
|
export { randomColor, mapApiObjectToFormFields, mapForecastToWidget, } from './utils';
|
|
4
4
|
export { Ambulance, CookTop, Contacts, GuestBedroom, MagnifyingGlassReport, Message, Messages, Register, Receipts, Price, BlueFolderShared, Calendar, Create, Notes, WallDecor, } from './assets/images';
|
|
@@ -14,7 +14,7 @@ export interface SelectI {
|
|
|
14
14
|
label?: string;
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
width?: string;
|
|
17
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'accountType';
|
|
17
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'accountType' | 'serviceTicket';
|
|
18
18
|
displaySelectedValue?: boolean;
|
|
19
19
|
emptyValues?: string[];
|
|
20
20
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DisplayOptionsType, SelectItemI } from '../../interfaces';
|
|
2
|
+
export interface PartnerServiceTicketsToolbarI {
|
|
3
|
+
ageItems: SelectItemI<string>[];
|
|
4
|
+
initialAge?: string;
|
|
5
|
+
initialDisplay?: DisplayOptionsType;
|
|
6
|
+
initialPriority?: string;
|
|
7
|
+
initialStatus?: string;
|
|
8
|
+
newTicketLabel?: string;
|
|
9
|
+
onAgeChange: (value: string) => void;
|
|
10
|
+
onDisplayChange: (display: DisplayOptionsType) => void;
|
|
11
|
+
onNewTicketClick?: () => void;
|
|
12
|
+
onPriorityChange: (value: string) => void;
|
|
13
|
+
onStatusChange: (value: string) => void;
|
|
14
|
+
priorityItems: SelectItemI<string>[];
|
|
15
|
+
showNewTicketButton?: boolean;
|
|
16
|
+
statusItems: SelectItemI<string>[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MenuItemI } from '../../interfaces';
|
|
3
|
+
export interface PartnerServiceTicketsWrapperI {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
menuItems?: MenuItemI[];
|
|
6
|
+
onHelpClick?: () => void;
|
|
7
|
+
showHelp?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
titleIcon?: string;
|
|
10
|
+
tooltipLabel?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ export * from './charts';
|
|
|
4
4
|
export * from './formTile';
|
|
5
5
|
export * from './panel';
|
|
6
6
|
export * from './popup';
|
|
7
|
+
export * from './serviceTickets';
|
|
7
8
|
export * from './PartnerSidebarMenu.interface';
|
|
8
9
|
export * from './HeaderPartnerLogo.interface';
|
|
9
10
|
export * from './PartnerCallToAction.interface';
|
|
@@ -11,4 +12,6 @@ export * from './PartnerFooter.interface';
|
|
|
11
12
|
export * from './PartnerHomeHeader.interface';
|
|
12
13
|
export * from './PartnerHeader.interface';
|
|
13
14
|
export * from './PartnerImage.interface';
|
|
15
|
+
export * from './PartnerServiceTicketsWrapper.interface';
|
|
16
|
+
export * from './PartnerServiceTicketsToolbar.interface';
|
|
14
17
|
export * from './ShortPartnerTile.interface';
|
|
@@ -4,6 +4,7 @@ export * from './charts';
|
|
|
4
4
|
export * from './formTile';
|
|
5
5
|
export * from './panel';
|
|
6
6
|
export * from './popup';
|
|
7
|
+
export * from './serviceTickets';
|
|
7
8
|
export * from './PartnerSidebarMenu.interface';
|
|
8
9
|
export * from './HeaderPartnerLogo.interface';
|
|
9
10
|
export * from './PartnerCallToAction.interface';
|
|
@@ -11,4 +12,6 @@ export * from './PartnerFooter.interface';
|
|
|
11
12
|
export * from './PartnerHomeHeader.interface';
|
|
12
13
|
export * from './PartnerHeader.interface';
|
|
13
14
|
export * from './PartnerImage.interface';
|
|
15
|
+
export * from './PartnerServiceTicketsWrapper.interface';
|
|
16
|
+
export * from './PartnerServiceTicketsToolbar.interface';
|
|
14
17
|
export * from './ShortPartnerTile.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SelectItemI } from '../../../interfaces';
|
|
3
|
+
export interface PartnerServiceTicketMetaI {
|
|
4
|
+
label: string;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface PartnerServiceTicketCardI {
|
|
8
|
+
customerName: string;
|
|
9
|
+
description: string;
|
|
10
|
+
footerActionLabel?: string;
|
|
11
|
+
headerLabel: string;
|
|
12
|
+
infoBackground?: string;
|
|
13
|
+
meta: PartnerServiceTicketMetaI[];
|
|
14
|
+
onFooterActionClick?: () => void;
|
|
15
|
+
onStatusChange?: (value: string) => void;
|
|
16
|
+
statusOptions?: SelectItemI<string>[];
|
|
17
|
+
statusValue?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceTicketCard.interface';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceTicketCard.interface';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { PartnerServiceTicketsWrapperI } from '../../interfaces';
|
|
3
|
+
declare const _default: Meta<PartnerServiceTicketsWrapperI>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const PartnerServiceTicketsWrapperComponent: (args: PartnerServiceTicketsWrapperI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Wrap, WrapItem } from '@chakra-ui/react';
|
|
3
|
+
import { action } from '@storybook/addon-actions';
|
|
4
|
+
import { PartnerServiceTicketCard, PartnerServiceTicketsToolbar, PartnerServiceTicketsWrapper, } from '../../components';
|
|
5
|
+
import { menuMock } from '../../mocks';
|
|
6
|
+
const ageItems = [
|
|
7
|
+
{ _id: 'age', name: 'Age' },
|
|
8
|
+
{ _id: 'newest', name: 'Newest' },
|
|
9
|
+
{ _id: 'oldest', name: 'Oldest' },
|
|
10
|
+
];
|
|
11
|
+
const priorityItems = [
|
|
12
|
+
{ _id: 'priority', name: 'Priority' },
|
|
13
|
+
{ _id: 'high', name: 'High' },
|
|
14
|
+
{ _id: 'medium', name: 'Medium' },
|
|
15
|
+
{ _id: 'low', name: 'Low' },
|
|
16
|
+
];
|
|
17
|
+
const statusItems = [
|
|
18
|
+
{ _id: 'show-all', name: 'Show All' },
|
|
19
|
+
{ _id: 'new', name: 'New Service' },
|
|
20
|
+
{ _id: 'support', name: 'Support' },
|
|
21
|
+
];
|
|
22
|
+
export default {
|
|
23
|
+
title: 'Components/Partner/Service Tickets',
|
|
24
|
+
component: PartnerServiceTicketsWrapper,
|
|
25
|
+
args: {
|
|
26
|
+
menuItems: menuMock,
|
|
27
|
+
showHelp: true,
|
|
28
|
+
onHelpClick: action('onHelpClick'),
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export const PartnerServiceTicketsWrapperComponent = (args) => {
|
|
32
|
+
return (_jsx(Box, { p: "base", children: _jsxs(PartnerServiceTicketsWrapper, Object.assign({}, args, { children: [_jsx(PartnerServiceTicketsToolbar, { ageItems: ageItems, priorityItems: priorityItems, statusItems: statusItems, initialAge: "Age", initialPriority: "Priority", initialStatus: "Show All", initialDisplay: "grid", showNewTicketButton: true, onAgeChange: action('onAgeChange'), onDisplayChange: action('onDisplayChange'), onNewTicketClick: action('onNewTicketClick'), onPriorityChange: action('onPriorityChange'), onStatusChange: action('onStatusChange') }), _jsxs(Wrap, { spacing: "base", p: "base", align: "start", children: [_jsx(WrapItem, { children: _jsx(PartnerServiceTicketCard, { customerName: "Gerry Jones", description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do", headerLabel: "New Service", infoBackground: "#d9d5e9", meta: [
|
|
33
|
+
{ label: 'Customer', value: 'New Customer' },
|
|
34
|
+
{ label: 'Received', value: '9:30 AM' },
|
|
35
|
+
{ label: 'ID', value: '553HMF 8422324-D' },
|
|
36
|
+
], onFooterActionClick: action('onFooterActionClick') }) }), _jsx(WrapItem, { children: _jsx(PartnerServiceTicketCard, { customerName: "Jane Smith", description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do", headerLabel: "Support", statusValue: "HP", statusOptions: [
|
|
37
|
+
{ _id: 'hp', name: 'HP' },
|
|
38
|
+
{ _id: 'p', name: 'P' },
|
|
39
|
+
], infoBackground: "#efdaf6", meta: [
|
|
40
|
+
{ label: 'Customer', value: 'Existing' },
|
|
41
|
+
{ label: 'Received', value: '9:30 AM' },
|
|
42
|
+
{ label: 'ID', value: '553HMF 8422324-D' },
|
|
43
|
+
], onFooterActionClick: action('onFooterActionClick') }) }), _jsx(WrapItem, { children: _jsx(PartnerServiceTicketCard, { customerName: "Michael Smith", description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do", headerLabel: "Support", statusValue: "P", statusOptions: [
|
|
44
|
+
{ _id: 'hp', name: 'HP' },
|
|
45
|
+
{ _id: 'p', name: 'P' },
|
|
46
|
+
], infoBackground: "#f5e3d7", meta: [
|
|
47
|
+
{ label: 'Customer', value: 'Existing' },
|
|
48
|
+
{ label: 'Received', value: '9:30 AM' },
|
|
49
|
+
{ label: 'ID', value: '553HMF 8422324-D' },
|
|
50
|
+
], onFooterActionClick: action('onFooterActionClick') }) })] })] })) }));
|
|
51
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { PartnerServiceTicketCardI } from '../../../interfaces';
|
|
3
|
+
declare const _default: Meta<PartnerServiceTicketCardI>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const PartnerServiceTicketCardComponent: (args: PartnerServiceTicketCardI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '@chakra-ui/react';
|
|
3
|
+
import { action } from '@storybook/addon-actions';
|
|
4
|
+
import { PartnerServiceTicketCard } from '../../../components';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Partner/Service Tickets/Card',
|
|
7
|
+
component: PartnerServiceTicketCard,
|
|
8
|
+
args: {
|
|
9
|
+
customerName: 'Jane Smith',
|
|
10
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do',
|
|
11
|
+
headerLabel: 'Support',
|
|
12
|
+
typeLabel: 'Support',
|
|
13
|
+
statusValue: 'HP',
|
|
14
|
+
statusOptions: [
|
|
15
|
+
{ _id: 'hp', name: 'HP' },
|
|
16
|
+
{ _id: 'p', name: 'P' },
|
|
17
|
+
],
|
|
18
|
+
infoBackground: '#efdaf6',
|
|
19
|
+
meta: [
|
|
20
|
+
{ label: 'Customer', value: 'Existing' },
|
|
21
|
+
{ label: 'Received', value: '9:30 AM' },
|
|
22
|
+
{ label: 'ID', value: '553HMF 8422324-D' },
|
|
23
|
+
],
|
|
24
|
+
onStatusChange: action('onStatusChange'),
|
|
25
|
+
onFooterActionClick: action('onFooterActionClick'),
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export const PartnerServiceTicketCardComponent = (args) => {
|
|
29
|
+
return (_jsx(Box, { w: "180px", children: _jsx(PartnerServiceTicketCard, Object.assign({}, args)) }));
|
|
30
|
+
};
|