@activecollab/components 2.0.508 → 2.0.510
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/cjs/components/CaretButton/CaretButton.js +2 -4
- package/dist/cjs/components/CaretButton/CaretButton.js.map +1 -1
- package/dist/cjs/components/CaretButton/Styles.js +7 -1
- package/dist/cjs/components/CaretButton/Styles.js.map +1 -1
- package/dist/cjs/components/CounterButton/CounterButton.js +1 -2
- package/dist/cjs/components/CounterButton/CounterButton.js.map +1 -1
- package/dist/cjs/components/EditableHours/EditableHours.js +1 -3
- package/dist/cjs/components/EditableHours/EditableHours.js.map +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.js +126 -0
- package/dist/cjs/components/FilterInput/FilterInput.js.map +1 -0
- package/dist/cjs/components/FilterInput/FilterInput.styles.js +22 -0
- package/dist/cjs/components/FilterInput/FilterInput.styles.js.map +1 -0
- package/dist/cjs/components/FilterInput/index.js +17 -0
- package/dist/cjs/components/FilterInput/index.js.map +1 -0
- package/dist/cjs/components/MultiAvatar/MultiAvatar.js +1 -3
- package/dist/cjs/components/MultiAvatar/MultiAvatar.js.map +1 -1
- package/dist/cjs/components/MultiAvatar/Styles.js +8 -3
- package/dist/cjs/components/MultiAvatar/Styles.js.map +1 -1
- package/dist/cjs/components/NoResultsSlate/NoResultsIllustration.js +120 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsIllustration.js.map +1 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.js +33 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.js.map +1 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.styles.js +31 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.styles.js.map +1 -0
- package/dist/cjs/components/NoResultsSlate/index.js +17 -0
- package/dist/cjs/components/NoResultsSlate/index.js.map +1 -0
- package/dist/cjs/components/Sort/Sort.js +3 -1
- package/dist/cjs/components/Sort/Sort.js.map +1 -1
- package/dist/cjs/components/Stopwatch/Stopwatch.js +2 -13
- package/dist/cjs/components/Stopwatch/Stopwatch.js.map +1 -1
- package/dist/cjs/components/ValueButton/ValueButton.js.map +1 -1
- package/dist/cjs/components/Wizard/Step.js +1 -2
- package/dist/cjs/components/Wizard/Step.js.map +1 -1
- package/dist/cjs/components/Wizard/Styles.js +6 -1
- package/dist/cjs/components/Wizard/Styles.js.map +1 -1
- package/dist/cjs/components/index.js +22 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/esm/components/CaretButton/CaretButton.d.ts.map +1 -1
- package/dist/esm/components/CaretButton/CaretButton.js +3 -5
- package/dist/esm/components/CaretButton/CaretButton.js.map +1 -1
- package/dist/esm/components/CaretButton/Styles.d.ts +3 -0
- package/dist/esm/components/CaretButton/Styles.d.ts.map +1 -1
- package/dist/esm/components/CaretButton/Styles.js +6 -0
- package/dist/esm/components/CaretButton/Styles.js.map +1 -1
- package/dist/esm/components/CounterButton/CounterButton.d.ts.map +1 -1
- package/dist/esm/components/CounterButton/CounterButton.js +1 -2
- package/dist/esm/components/CounterButton/CounterButton.js.map +1 -1
- package/dist/esm/components/EditableHours/EditableHours.js +1 -3
- package/dist/esm/components/EditableHours/EditableHours.js.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.d.ts +17 -0
- package/dist/esm/components/FilterInput/FilterInput.d.ts.map +1 -0
- package/dist/esm/components/FilterInput/FilterInput.js +95 -0
- package/dist/esm/components/FilterInput/FilterInput.js.map +1 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.d.ts +7 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.d.ts.map +1 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.js +15 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.js.map +1 -0
- package/dist/esm/components/FilterInput/index.d.ts +2 -0
- package/dist/esm/components/FilterInput/index.d.ts.map +1 -0
- package/dist/esm/components/FilterInput/index.js +2 -0
- package/dist/esm/components/FilterInput/index.js.map +1 -0
- package/dist/esm/components/MultiAvatar/MultiAvatar.d.ts.map +1 -1
- package/dist/esm/components/MultiAvatar/MultiAvatar.js +2 -4
- package/dist/esm/components/MultiAvatar/MultiAvatar.js.map +1 -1
- package/dist/esm/components/MultiAvatar/Styles.d.ts +1 -0
- package/dist/esm/components/MultiAvatar/Styles.d.ts.map +1 -1
- package/dist/esm/components/MultiAvatar/Styles.js +7 -2
- package/dist/esm/components/MultiAvatar/Styles.js.map +1 -1
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.d.ts +3 -0
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.js +113 -0
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.js.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.d.ts +13 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.js +25 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.js.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.d.ts +6 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.js +24 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.js.map +1 -0
- package/dist/esm/components/NoResultsSlate/index.d.ts +2 -0
- package/dist/esm/components/NoResultsSlate/index.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/index.js +2 -0
- package/dist/esm/components/NoResultsSlate/index.js.map +1 -0
- package/dist/esm/components/Sort/Sort.d.ts.map +1 -1
- package/dist/esm/components/Sort/Sort.js +3 -1
- package/dist/esm/components/Sort/Sort.js.map +1 -1
- package/dist/esm/components/Stopwatch/Stopwatch.d.ts.map +1 -1
- package/dist/esm/components/Stopwatch/Stopwatch.js +2 -12
- package/dist/esm/components/Stopwatch/Stopwatch.js.map +1 -1
- package/dist/esm/components/ValueButton/ValueButton.d.ts +2 -0
- package/dist/esm/components/ValueButton/ValueButton.d.ts.map +1 -1
- package/dist/esm/components/ValueButton/ValueButton.js.map +1 -1
- package/dist/esm/components/Wizard/Step.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Step.js +2 -3
- package/dist/esm/components/Wizard/Step.js.map +1 -1
- package/dist/esm/components/Wizard/Styles.d.ts +3 -0
- package/dist/esm/components/Wizard/Styles.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Styles.js +5 -0
- package/dist/esm/components/Wizard/Styles.js.map +1 -1
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/index.js +1122 -843
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/FilterInput/index.ts"],"sourcesContent":["export * from \"./FilterInput\";\n"],"mappings":"AAAA,cAAc,eAAe","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiAvatar.d.ts","sourceRoot":"","sources":["../../../../src/components/MultiAvatar/MultiAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MultiAvatar.d.ts","sourceRoot":"","sources":["../../../../src/components/MultiAvatar/MultiAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAQvE,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB;IAChB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,gBAAgB;IAChB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,WAAW;+CAMrB,iBAAiB,CAAC,gBAAgB,CAAC;;CAsDrC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from "react";
|
|
2
|
-
import { StyledMultiAvatar, StyledMultiAvatarInner } from "./Styles";
|
|
2
|
+
import { StyledMultiAvatar, StyledMultiAvatarInner, StyledMultiAvatarRoot } from "./Styles";
|
|
3
3
|
/**
|
|
4
4
|
* @component MultiAvatar
|
|
5
5
|
* @description
|
|
@@ -71,9 +71,7 @@ export const MultiAvatar = _ref => {
|
|
|
71
71
|
}
|
|
72
72
|
return url;
|
|
73
73
|
}, [url]);
|
|
74
|
-
return /*#__PURE__*/React.createElement(
|
|
75
|
-
className: "tw-relative tw-inline-flex"
|
|
76
|
-
}, /*#__PURE__*/React.createElement(StyledMultiAvatar, {
|
|
74
|
+
return /*#__PURE__*/React.createElement(StyledMultiAvatarRoot, null, /*#__PURE__*/React.createElement(StyledMultiAvatar, {
|
|
77
75
|
style: {
|
|
78
76
|
width: size + "px",
|
|
79
77
|
height: size + "px"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiAvatar.js","names":["React","useCallback","useMemo","StyledMultiAvatar","StyledMultiAvatarInner","MultiAvatar","_ref","url","alt","_ref$size","size","className","children","setSize","i","length","width","height","slicedUrl","slice","createElement","style","$urlCount","map","v","key","src","displayName"],"sources":["../../../../src/components/MultiAvatar/MultiAvatar.tsx"],"sourcesContent":["import React, { PropsWithChildren, useCallback, useMemo } from \"react\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"MultiAvatar.js","names":["React","useCallback","useMemo","StyledMultiAvatar","StyledMultiAvatarInner","StyledMultiAvatarRoot","MultiAvatar","_ref","url","alt","_ref$size","size","className","children","setSize","i","length","width","height","slicedUrl","slice","createElement","style","$urlCount","map","v","key","src","displayName"],"sources":["../../../../src/components/MultiAvatar/MultiAvatar.tsx"],"sourcesContent":["import React, { PropsWithChildren, useCallback, useMemo } from \"react\";\n\nimport {\n StyledMultiAvatar,\n StyledMultiAvatarInner,\n StyledMultiAvatarRoot,\n} from \"./Styles\";\n\nexport interface MultiAvatarProps {\n /** Path url. */\n url: string[];\n /** Alt text. */\n alt?: string[];\n /** Image size. */\n size?: number;\n /** Custom class. */\n className?: string;\n}\n\n/**\n * @component MultiAvatar\n * @description\n * The MultiAvatar component is used to represent user, and displays the profile picture, initials or fallback icon.\n *\n * @prop {url} - The image urls of the MultiAvatar.\n * @prop {size} - controls the size of an MultiAvatar (width and height) in pixels.\n * @prop {alt} - alt attributes of the imgs.\n *\n * @example\n * <MultiAvatar\n * url={[\"https://faces-img.xcdn.link/image-lorem-face-954.jpg\", \"https://faces-img.xcdn.link/image-lorem-face-953.jpg\"]}\n * alt={[\"Profile picture of John\", \"Profile picture of Sarah\"]} />\n *\n * @example\n * <MultiAvatar\n * url={[\"https://faces-img.xcdn.link/image-lorem-face-954.jpg\", \"https://faces-img.xcdn.link/image-lorem-face-953.jpg\"]}\n * alt={[\"Profile picture of John\", \"Profile picture of Sarah\"]}\n * >\n * <Badge />\n * </MultiAvatar>\n *\n * @see\n * https://system.activecollab.com/?path=/story/components-button-indicators-avatar--avatar\n * @see\n * https://design.activecollab.com/docs/components/avatar\n */\nexport const MultiAvatar = ({\n url,\n alt,\n size = 24,\n className,\n children,\n}: PropsWithChildren<MultiAvatarProps>) => {\n const setSize = useCallback(\n (i: number): object => {\n switch (url.length) {\n case 1:\n return { width: `${size}px`, height: `${size}px` };\n case 2:\n return { width: `${size / 2}px`, height: `${size}px` };\n case 3:\n if (i === 0) {\n return { width: `${size / 2}px`, height: `${size}px` };\n } else {\n return { width: `${size / 2}px`, height: `${size / 2}px` };\n }\n default:\n return { width: `${size / 2}px`, height: `${size / 2}px` };\n }\n },\n [size, url.length]\n );\n\n const slicedUrl = useMemo(() => {\n if (url?.length > 4) {\n return url.slice(0, 4);\n }\n\n return url;\n }, [url]);\n\n return (\n <StyledMultiAvatarRoot>\n <StyledMultiAvatar\n style={{ width: `${size}px`, height: `${size}px` }}\n className={className}\n $urlCount={url.length}\n >\n {slicedUrl.map((v, i) => (\n <StyledMultiAvatarInner\n style={setSize(i)}\n className=\"c-multi-avatar__wrapper\"\n key={`avatar_${i}`}\n >\n <img\n src={v}\n alt={alt && alt[i] ? alt[i] : `avatar_${i}`}\n width={size}\n height={size}\n />\n </StyledMultiAvatarInner>\n ))}\n </StyledMultiAvatar>\n {children}\n </StyledMultiAvatarRoot>\n );\n};\n\nMultiAvatar.displayName = \"MultiAvatar\";\n"],"mappings":"AAAA,OAAOA,KAAK,IAAuBC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEtE,SACEC,iBAAiB,EACjBC,sBAAsB,EACtBC,qBAAqB,QAChB,UAAU;AAajB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAGC,IAAA,IAMgB;EAAA,IALzCC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IACHC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IAAAC,SAAA,GAAAH,IAAA,CACHI,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,EAAE,GAAAA,SAAA;IACTE,SAAS,GAAAL,IAAA,CAATK,SAAS;IACTC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;EAER,MAAMC,OAAO,GAAGb,WAAW,CACxBc,CAAS,IAAa;IACrB,QAAQP,GAAG,CAACQ,MAAM;MAChB,KAAK,CAAC;QACJ,OAAO;UAAEC,KAAK,EAAKN,IAAI,OAAI;UAAEO,MAAM,EAAKP,IAAI;QAAK,CAAC;M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AAC,yBAAyB;IACnCc,GAAG,cAAYX;EAAI,gBAEnBf,KAAA,CAAAqB,aAAA;IACEM,GAAG,EAAEF,CAAE;IACPhB,GAAG,EAAEA,GAAG,IAAIA,GAAG,CAACM,CAAC,CAAC,GAAGN,GAAG,CAACM,CAAC,CAAC,eAAaA,CAAI;IAC5CE,KAAK,EAAEN,IAAK;IACZO,MAAM,EAAEP;EAAK,CACd,CACqB,CACzB,CACgB,CAAC,EACnBE,QACoB,CAAC;AAE5B,CAAC;AAEDP,WAAW,CAACsB,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const StyledMultiAvatarRoot: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
1
2
|
export declare const StyledMultiAvatarInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
3
|
export declare const StyledMultiAvatar: import("styled-components").StyledComponent<"div", any, {
|
|
3
4
|
$urlCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/MultiAvatar/Styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,sBAAsB,oEAIlC,CAAC;AAEF,eAAO,MAAM,iBAAiB;eAA2B,MAAM;SAyE9D,CAAC"}
|
|
1
|
+
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/MultiAvatar/Styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,qBAAqB,qEAGjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,oEAIlC,CAAC;AAEF,eAAO,MAAM,iBAAiB;eAA2B,MAAM;SAyE9D,CAAC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import { BoxSizingStyle } from "../BoxSizingStyle";
|
|
3
3
|
const StyledMultiAvatarImg = css(["width:inherit;height:inherit;"]);
|
|
4
|
+
export const StyledMultiAvatarRoot = styled.span.withConfig({
|
|
5
|
+
displayName: "Styles__StyledMultiAvatarRoot",
|
|
6
|
+
componentId: "sc-k6nldn-0"
|
|
7
|
+
})(["position:relative;display:inline-flex;"]);
|
|
4
8
|
export const StyledMultiAvatarInner = styled.div.withConfig({
|
|
5
9
|
displayName: "Styles__StyledMultiAvatarInner",
|
|
6
|
-
componentId: "sc-k6nldn-
|
|
10
|
+
componentId: "sc-k6nldn-1"
|
|
7
11
|
})(["overflow:hidden;position:absolute;display:inline-flex;"]);
|
|
8
12
|
export const StyledMultiAvatar = styled.div.withConfig({
|
|
9
13
|
displayName: "Styles__StyledMultiAvatar",
|
|
10
|
-
componentId: "sc-k6nldn-
|
|
14
|
+
componentId: "sc-k6nldn-2"
|
|
11
15
|
})(["", " border-radius:100%;position:relative;overflow:hidden;", " ", " ", ""], BoxSizingStyle, props => props.$urlCount === 2 && css(["", ":first-child{left:0;img{transform:translateX(-20%);}}", ":last-child{right:0;img{transform:translateX(-20%);}}"], StyledMultiAvatarInner, StyledMultiAvatarInner), props => props.$urlCount === 3 && css(["", ":nth-child(1){left:0;img{transform:translateX(-20%);}}", ":nth-child(2){right:0;top:0;img{", "}}", ":nth-child(3){right:0;bottom:0;img{", "}}"], StyledMultiAvatarInner, StyledMultiAvatarInner, StyledMultiAvatarImg, StyledMultiAvatarInner, StyledMultiAvatarImg), props => props.$urlCount > 3 && css(["img{", "}", ":nth-child(1){left:0;}", ":nth-child(2){left:0;bottom:0;}", ":nth-child(3){right:0;top:0;}", ":nth-child(4){right:0;bottom:0;}"], StyledMultiAvatarImg, StyledMultiAvatarInner, StyledMultiAvatarInner, StyledMultiAvatarInner, StyledMultiAvatarInner));
|
|
12
16
|
StyledMultiAvatar.displayName = "StyledMultiAvatar";
|
|
13
17
|
StyledMultiAvatarInner.displayName = "StyledMultiAvatarInner";
|
|
18
|
+
StyledMultiAvatarRoot.displayName = "StyledMultiAvatarRoot";
|
|
14
19
|
//# sourceMappingURL=Styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","StyledMultiAvatarImg","
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","StyledMultiAvatarImg","StyledMultiAvatarRoot","span","withConfig","displayName","componentId","StyledMultiAvatarInner","div","StyledMultiAvatar","props","$urlCount"],"sources":["../../../../src/components/MultiAvatar/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\n\nconst StyledMultiAvatarImg = css`\n width: inherit;\n height: inherit;\n`;\n\nexport const StyledMultiAvatarRoot = styled.span`\n position: relative;\n display: inline-flex;\n`;\n\nexport const StyledMultiAvatarInner = styled.div`\n overflow: hidden;\n position: absolute;\n display: inline-flex;\n`;\n\nexport const StyledMultiAvatar = styled.div<{ $urlCount: number }>`\n ${BoxSizingStyle}\n\n border-radius: 100%;\n position: relative;\n overflow: hidden;\n\n ${(props) =>\n props.$urlCount === 2 &&\n css`\n ${StyledMultiAvatarInner}:first-child {\n left: 0;\n img {\n transform: translateX(-20%);\n }\n }\n ${StyledMultiAvatarInner}:last-child {\n right: 0;\n img {\n transform: translateX(-20%);\n }\n }\n `}\n\n ${(props) =>\n props.$urlCount === 3 &&\n css`\n ${StyledMultiAvatarInner}:nth-child(1) {\n left: 0;\n img {\n transform: translateX(-20%);\n }\n }\n ${StyledMultiAvatarInner}:nth-child(2) {\n right: 0;\n top: 0;\n\n img {\n ${StyledMultiAvatarImg}\n }\n }\n ${StyledMultiAvatarInner}:nth-child(3) {\n right: 0;\n bottom: 0;\n\n img {\n ${StyledMultiAvatarImg}\n }\n }\n `}\n\n ${(props) =>\n props.$urlCount > 3 &&\n css`\n img {\n ${StyledMultiAvatarImg}\n }\n ${StyledMultiAvatarInner}:nth-child(1) {\n left: 0;\n }\n ${StyledMultiAvatarInner}:nth-child(2) {\n left: 0;\n bottom: 0;\n }\n ${StyledMultiAvatarInner}:nth-child(3) {\n right: 0;\n top: 0;\n }\n ${StyledMultiAvatarInner}:nth-child(4) {\n right: 0;\n bottom: 0;\n }\n `}\n`;\n\nStyledMultiAvatar.displayName = \"StyledMultiAvatar\";\nStyledMultiAvatarInner.displayName = \"StyledMultiAvatarInner\";\nStyledMultiAvatarRoot.displayName = \"StyledMultiAvatarRoot\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,cAAc,QAAQ,mBAAmB;AAElD,MAAMC,oBAAoB,GAAGF,GAAG,mCAG/B;AAED,OAAO,MAAMG,qBAAqB,GAAGJ,MAAM,CAACK,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8CAG/C;AAED,OAAO,MAAMC,sBAAsB,GAAGT,MAAM,CAACU,GAAG,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8DAI/C;AAED,OAAO,MAAMG,iBAAiB,GAAGX,MAAM,CAACU,GAAG,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iFACvCN,cAAc,EAMbU,KAAK,IACNA,KAAK,CAACC,SAAS,KAAK,CAAC,IACrBZ,GAAG,yHACCQ,sBAAsB,EAMtBA,sBAAsB,CAMzB,EAEAG,KAAK,IACNA,KAAK,CAACC,SAAS,KAAK,CAAC,IACrBZ,GAAG,wJACCQ,sBAAsB,EAMtBA,sBAAsB,EAKlBN,oBAAoB,EAGxBM,sBAAsB,EAKlBN,oBAAoB,CAG3B,EAEAS,KAAK,IACNA,KAAK,CAACC,SAAS,GAAG,CAAC,IACnBZ,GAAG,kJAEGE,oBAAoB,EAEtBM,sBAAsB,EAGtBA,sBAAsB,EAItBA,sBAAsB,EAItBA,sBAAsB,CAIzB,CACJ;AAEDE,iBAAiB,CAACJ,WAAW,GAAG,mBAAmB;AACnDE,sBAAsB,CAACF,WAAW,GAAG,wBAAwB;AAC7DH,qBAAqB,CAACG,WAAW,GAAG,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsIllustration.d.ts","sourceRoot":"","sources":["../../../../src/components/NoResultsSlate/NoResultsIllustration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAOrC,eAAO,MAAM,qBAAqB,yBAoGjC,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React, { useId } from "react";
|
|
2
|
+
import { StyledIllustration } from "./NoResultsSlate.styles";
|
|
3
|
+
const PAGE = "M26 14H66A10 10 0 0 1 76 24V72A10 10 0 0 1 66 82H26A10 10 0 0 1 16 72V24A10 10 0 0 1 26 14Z";
|
|
4
|
+
export const NoResultsIllustration = () => {
|
|
5
|
+
const id = useId();
|
|
6
|
+
const glow = id + "-glow";
|
|
7
|
+
const shadow = id + "-shadow";
|
|
8
|
+
const clip = id + "-clip";
|
|
9
|
+
return /*#__PURE__*/React.createElement(StyledIllustration, {
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
viewBox: "0 0 100 100",
|
|
12
|
+
width: "100%",
|
|
13
|
+
height: "100%",
|
|
14
|
+
overflow: "visible",
|
|
15
|
+
fill: "none",
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
"data-testid": "no-results-illustration"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("filter", {
|
|
19
|
+
id: glow,
|
|
20
|
+
filterUnits: "userSpaceOnUse",
|
|
21
|
+
x: "-30",
|
|
22
|
+
y: "-20",
|
|
23
|
+
width: "160",
|
|
24
|
+
height: "140"
|
|
25
|
+
}, /*#__PURE__*/React.createElement("feGaussianBlur", {
|
|
26
|
+
stdDeviation: "9"
|
|
27
|
+
})), /*#__PURE__*/React.createElement("filter", {
|
|
28
|
+
id: shadow,
|
|
29
|
+
filterUnits: "userSpaceOnUse",
|
|
30
|
+
x: "44",
|
|
31
|
+
y: "44",
|
|
32
|
+
width: "68",
|
|
33
|
+
height: "68"
|
|
34
|
+
}, /*#__PURE__*/React.createElement("feDropShadow", {
|
|
35
|
+
dx: "0",
|
|
36
|
+
dy: "4",
|
|
37
|
+
stdDeviation: "5",
|
|
38
|
+
floodColor: "#000000",
|
|
39
|
+
floodOpacity: "0.28"
|
|
40
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
41
|
+
id: clip
|
|
42
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
43
|
+
d: PAGE
|
|
44
|
+
}))), /*#__PURE__*/React.createElement("ellipse", {
|
|
45
|
+
className: "glow-secondary",
|
|
46
|
+
cx: "74",
|
|
47
|
+
cy: "68",
|
|
48
|
+
rx: "23",
|
|
49
|
+
ry: "21",
|
|
50
|
+
filter: "url(#" + glow + ")"
|
|
51
|
+
}), /*#__PURE__*/React.createElement("ellipse", {
|
|
52
|
+
className: "glow-primary",
|
|
53
|
+
cx: "30",
|
|
54
|
+
cy: "30",
|
|
55
|
+
rx: "26",
|
|
56
|
+
ry: "20",
|
|
57
|
+
filter: "url(#" + glow + ")"
|
|
58
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
59
|
+
className: "paper",
|
|
60
|
+
d: PAGE,
|
|
61
|
+
strokeWidth: "2",
|
|
62
|
+
strokeLinejoin: "round",
|
|
63
|
+
clipPath: "url(#" + clip + ")"
|
|
64
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
65
|
+
className: "line",
|
|
66
|
+
x: "26",
|
|
67
|
+
y: "26",
|
|
68
|
+
width: "40",
|
|
69
|
+
height: "4.5",
|
|
70
|
+
rx: "2.25"
|
|
71
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
72
|
+
className: "gap",
|
|
73
|
+
x: "26.75",
|
|
74
|
+
y: "38.75",
|
|
75
|
+
width: "38.5",
|
|
76
|
+
height: "9.5",
|
|
77
|
+
rx: "4.75",
|
|
78
|
+
strokeWidth: "1.5",
|
|
79
|
+
strokeDasharray: "3 3"
|
|
80
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
81
|
+
className: "line",
|
|
82
|
+
x: "26",
|
|
83
|
+
y: "56",
|
|
84
|
+
width: "34",
|
|
85
|
+
height: "4.5",
|
|
86
|
+
rx: "2.25"
|
|
87
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
88
|
+
className: "line",
|
|
89
|
+
x: "26",
|
|
90
|
+
y: "66",
|
|
91
|
+
width: "22",
|
|
92
|
+
height: "4.5",
|
|
93
|
+
rx: "2.25"
|
|
94
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
95
|
+
className: "badge",
|
|
96
|
+
cx: "78",
|
|
97
|
+
cy: "74",
|
|
98
|
+
r: "14",
|
|
99
|
+
filter: "url(#" + shadow + ")"
|
|
100
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
101
|
+
cx: "76.5",
|
|
102
|
+
cy: "72.5",
|
|
103
|
+
r: "5",
|
|
104
|
+
stroke: "#ffffff",
|
|
105
|
+
strokeWidth: "2.2"
|
|
106
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
107
|
+
d: "M80.2 76.2L84.4 80.4",
|
|
108
|
+
stroke: "#ffffff",
|
|
109
|
+
strokeWidth: "2.2",
|
|
110
|
+
strokeLinecap: "round"
|
|
111
|
+
}));
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=NoResultsIllustration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsIllustration.js","names":["React","useId","StyledIllustration","PAGE","NoResultsIllustration","id","glow","shadow","clip","createElement","xmlns","viewBox","width","height","overflow","fill","filterUnits","x","y","stdDeviation","dx","dy","floodColor","floodOpacity","d","className","cx","cy","rx","ry","filter","strokeWidth","strokeLinejoin","clipPath","strokeDasharray","r","stroke","strokeLinecap"],"sources":["../../../../src/components/NoResultsSlate/NoResultsIllustration.tsx"],"sourcesContent":["import React, { useId } from \"react\";\n\nimport { StyledIllustration } from \"./NoResultsSlate.styles\";\n\nconst PAGE =\n \"M26 14H66A10 10 0 0 1 76 24V72A10 10 0 0 1 66 82H26A10 10 0 0 1 16 72V24A10 10 0 0 1 26 14Z\";\n\nexport const NoResultsIllustration = () => {\n const id = useId();\n const glow = `${id}-glow`;\n const shadow = `${id}-shadow`;\n const clip = `${id}-clip`;\n\n return (\n <StyledIllustration\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 100 100\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\"\n fill=\"none\"\n aria-hidden=\"true\"\n data-testid=\"no-results-illustration\"\n >\n <defs>\n <filter\n id={glow}\n filterUnits=\"userSpaceOnUse\"\n x=\"-30\"\n y=\"-20\"\n width=\"160\"\n height=\"140\"\n >\n <feGaussianBlur stdDeviation=\"9\" />\n </filter>\n <filter\n id={shadow}\n filterUnits=\"userSpaceOnUse\"\n x=\"44\"\n y=\"44\"\n width=\"68\"\n height=\"68\"\n >\n <feDropShadow\n dx=\"0\"\n dy=\"4\"\n stdDeviation=\"5\"\n floodColor=\"#000000\"\n floodOpacity=\"0.28\"\n />\n </filter>\n <clipPath id={clip}>\n <path d={PAGE} />\n </clipPath>\n </defs>\n <ellipse\n className=\"glow-secondary\"\n cx=\"74\"\n cy=\"68\"\n rx=\"23\"\n ry=\"21\"\n filter={`url(#${glow})`}\n />\n <ellipse\n className=\"glow-primary\"\n cx=\"30\"\n cy=\"30\"\n rx=\"26\"\n ry=\"20\"\n filter={`url(#${glow})`}\n />\n <path\n className=\"paper\"\n d={PAGE}\n strokeWidth=\"2\"\n strokeLinejoin=\"round\"\n clipPath={`url(#${clip})`}\n />\n <rect className=\"line\" x=\"26\" y=\"26\" width=\"40\" height=\"4.5\" rx=\"2.25\" />\n <rect\n className=\"gap\"\n x=\"26.75\"\n y=\"38.75\"\n width=\"38.5\"\n height=\"9.5\"\n rx=\"4.75\"\n strokeWidth=\"1.5\"\n strokeDasharray=\"3 3\"\n />\n <rect className=\"line\" x=\"26\" y=\"56\" width=\"34\" height=\"4.5\" rx=\"2.25\" />\n <rect className=\"line\" x=\"26\" y=\"66\" width=\"22\" height=\"4.5\" rx=\"2.25\" />\n <circle\n className=\"badge\"\n cx=\"78\"\n cy=\"74\"\n r=\"14\"\n filter={`url(#${shadow})`}\n />\n <circle cx=\"76.5\" cy=\"72.5\" r=\"5\" stroke=\"#ffffff\" strokeWidth=\"2.2\" />\n <path\n d=\"M80.2 76.2L84.4 80.4\"\n stroke=\"#ffffff\"\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n />\n </StyledIllustration>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,KAAK,QAAQ,OAAO;AAEpC,SAASC,kBAAkB,QAAQ,yBAAyB;AAE5D,MAAMC,IAAI,GACR,6FAA6F;AAE/F,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAMC,EAAE,GAAGJ,KAAK,CAAC,CAAC;EAClB,MAAMK,IAAI,GAAMD,EAAE,UAAO;EACzB,MAAME,MAAM,GAAMF,EAAE,YAAS;EAC7B,MAAMG,IAAI,GAAMH,EAAE,UAAO;EAEzB,oBACEL,KAAA,CAAAS,aAAA,CAACP,kBAAkB;IACjBQ,KAAK,EAAC,4BAA4B;IAClCC,OAAO,EAAC,aAAa;IACrBC,KAAK,EAAC,MAAM;IACZC,MAAM,EAAC,MAAM;IACbC,QAAQ,EAAC,SAAS;IAClBC,IAAI,EAAC,MAAM;IACX,eAAY,MAAM;IAClB,eAAY;EAAyB,gBAErCf,KAAA,CAAAS,aAAA,4BACET,KAAA,CAAAS,aAAA;IACEJ,EAAE,EAAEC,IAAK;IACTU,WAAW,EAAC,gBAAgB;IAC5BC,CAAC,EAAC,KAAK;IACPC,CAAC,EAAC,KAAK;IACPN,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC;EAAK,gBAEZb,KAAA,CAAAS,aAAA;IAAgBU,YAAY,EAAC;EAAG,CAAE,CAC5B,CAAC,eACTnB,KAAA,CAAAS,aAAA;IACEJ,EAAE,EAAEE,MA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CAAC,EAAC,OAAO;IACTC,CAAC,EAAC,OAAO;IACTN,KAAK,EAAC,MAAM;IACZC,MAAM,EAAC,KAAK;IACZe,EAAE,EAAC,MAAM;IACTG,WAAW,EAAC,KAAK;IACjBG,eAAe,EAAC;EAAK,CACtB,CAAC,eACFlC,KAAA,CAAAS,aAAA;IAAMgB,SAAS,EAAC,MAAM;IAACR,CAAC,EAAC,IAAI;IAACC,CAAC,EAAC,IAAI;IAACN,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,KAAK;IAACe,EAAE,EAAC;EAAM,CAAE,CAAC,eACzE5B,KAAA,CAAAS,aAAA;IAAMgB,SAAS,EAAC,MAAM;IAACR,CAAC,EAAC,IAAI;IAACC,CAAC,EAAC,IAAI;IAACN,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,KAAK;IAACe,EAAE,EAAC;EAAM,CAAE,CAAC,eACzE5B,KAAA,CAAAS,aAAA;IACEgB,SAAS,EAAC,OAAO;IACjBC,EAAE,EAAC,IAAI;IACPC,EAAE,EAAC,IAAI;IACPQ,CAAC,EAAC,IAAI;IACNL,MAAM,YAAUvB,MAAM;EAAI,CAC3B,CAAC,eACFP,KAAA,CAAAS,aAAA;IAAQiB,EAAE,EAAC,MAAM;IAACC,EAAE,EAAC,MAAM;IAACQ,CAAC,EAAC,GAAG;IAACC,MAAM,EAAC,SAAS;IAACL,WAAW,EAAC;EAAK,CAAE,CAAC,eACvE/B,KAAA,CAAAS,aAAA;IACEe,CAAC,EAAC,sBAAsB;IACxBY,MAAM,EAAC,SAAS;IAChBL,WAAW,EAAC,KAAK;IACjBM,aAAa,EAAC;EAAO,CACtB,CACiB,CAAC;AAEzB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
export interface NoResultsSlateProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
/** The label of the button that clears the filter. The button needs onClear too. */
|
|
6
|
+
clearLabel?: string;
|
|
7
|
+
onClear?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const NoResultsSlate: {
|
|
10
|
+
({ title, description, clearLabel, onClear, ...rest }: NoResultsSlateProps): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=NoResultsSlate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsSlate.d.ts","sourceRoot":"","sources":["../../../../src/components/NoResultsSlate/NoResultsSlate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAY9C,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,cAAc;2DAMxB,mBAAmB;;CAerB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
const _excluded = ["title", "description", "clearLabel", "onClear"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { NoResultsIllustration } from "./NoResultsIllustration";
|
|
6
|
+
import { StyledActions, StyledIllustrationBox, StyledNoResultsSlate, StyledTitle } from "./NoResultsSlate.styles";
|
|
7
|
+
import { Button } from "../Button";
|
|
8
|
+
import { Body1 } from "../Typography";
|
|
9
|
+
export const NoResultsSlate = _ref => {
|
|
10
|
+
let title = _ref.title,
|
|
11
|
+
description = _ref.description,
|
|
12
|
+
clearLabel = _ref.clearLabel,
|
|
13
|
+
onClear = _ref.onClear,
|
|
14
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/React.createElement(StyledNoResultsSlate, _extends({}, rest, {
|
|
16
|
+
role: "status"
|
|
17
|
+
}), /*#__PURE__*/React.createElement(StyledIllustrationBox, null, /*#__PURE__*/React.createElement(NoResultsIllustration, null)), /*#__PURE__*/React.createElement(StyledTitle, null, title), description ? /*#__PURE__*/React.createElement(Body1, {
|
|
18
|
+
color: "secondary"
|
|
19
|
+
}, description) : null, clearLabel && onClear ? /*#__PURE__*/React.createElement(StyledActions, null, /*#__PURE__*/React.createElement(Button, {
|
|
20
|
+
variant: "secondary",
|
|
21
|
+
onClick: onClear
|
|
22
|
+
}, clearLabel)) : null);
|
|
23
|
+
};
|
|
24
|
+
NoResultsSlate.displayName = "NoResultsSlate";
|
|
25
|
+
//# sourceMappingURL=NoResultsSlate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsSlate.js","names":["React","NoResultsIllustration","StyledActions","StyledIllustrationBox","StyledNoResultsSlate","StyledTitle","Button","Body1","NoResultsSlate","_ref","title","description","clearLabel","onClear","rest","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","role","color","variant","onClick","displayName"],"sources":["../../../../src/components/NoResultsSlate/NoResultsSlate.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\";\n\nimport { NoResultsIllustration } from \"./NoResultsIllustration\";\nimport {\n StyledActions,\n StyledIllustrationBox,\n StyledNoResultsSlate,\n StyledTitle,\n} from \"./NoResultsSlate.styles\";\nimport { Button } from \"../Button\";\nimport { Body1 } from \"../Typography\";\n\nexport interface NoResultsSlateProps\n extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n title: string;\n description?: string;\n /** The label of the button that clears the filter. The button needs onClear too. */\n clearLabel?: string;\n onClear?: () => void;\n}\n\nexport const NoResultsSlate = ({\n title,\n description,\n clearLabel,\n onClear,\n ...rest\n}: NoResultsSlateProps) => (\n <StyledNoResultsSlate {...rest} role=\"status\">\n <StyledIllustrationBox>\n <NoResultsIllustration />\n </StyledIllustrationBox>\n <StyledTitle>{title}</StyledTitle>\n {description ? <Body1 color=\"secondary\">{description}</Body1> : null}\n {clearLabel && onClear ? (\n <StyledActions>\n <Button variant=\"secondary\" onClick={onClear}>\n {clearLabel}\n </Button>\n </StyledActions>\n ) : null}\n </StyledNoResultsSlate>\n);\n\nNoResultsSlate.displayName = \"NoResultsSlate\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAA0B,OAAO;AAE7C,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SACEC,aAAa,EACbC,qBAAqB,EACrBC,oBAAoB,EACpBC,WAAW,QACN,yBAAyB;AAChC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,eAAe;AAWrC,OAAO,MAAMC,cAAc,GAAGC,IAAA;EAAA,IAC5BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACJC,IAAI,GAAAC,6BAAA,CAAAN,IAAA,EAAAO,SAAA;EAAA,oBAEPhB,KAAA,CAAAiB,aAAA,CAACb,oBAAoB,EAAAc,QAAA,KAAKJ,IAAI;IAAEK,IAAI,EAAC;EAAQ,iBAC3CnB,KAAA,CAAAiB,aAAA,CAACd,qBAAqB,qBACpBH,KAAA,CAAAiB,aAAA,CAAChB,qBAAqB,MAAE,CACH,CAAC,eACxBD,KAAA,CAAAiB,aAAA,CAACZ,WAAW,QAAEK,KAAmB,CAAC,EACjCC,WAAW,gBAAGX,KAAA,CAAAiB,aAAA,CAACV,KAAK;IAACa,KAAK,EAAC;EAAW,GAAET,WAAmB,CAAC,GAAG,IAAI,EACnEC,UAAU,IAAIC,OAAO,gBACpBb,KAAA,CAAAiB,aAAA,CAACf,aAAa,qBACZF,KAAA,CAAAiB,aAAA,CAACX,MAAM;IAACe,OAAO,EAAC,WAAW;IAACC,OAAO,EAAET;EAAQ,GAC1CD,UACK,CACK,CAAC,GACd,IACgB,CAAC;AAAA,CACxB;AAEDJ,cAAc,CAACe,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const StyledNoResultsSlate: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledIllustrationBox: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const StyledActions: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledIllustration: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
|
6
|
+
//# sourceMappingURL=NoResultsSlate.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsSlate.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/NoResultsSlate/NoResultsSlate.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,oEAYhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAIjC,CAAC;AAEF,eAAO,MAAM,WAAW,oEAMvB,CAAC;AAEF,eAAO,MAAM,aAAa,oEAEzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,oEAiC9B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { BoxSizingStyle } from "../BoxSizingStyle";
|
|
3
|
+
import { FontStyle } from "../FontStyle";
|
|
4
|
+
export const StyledNoResultsSlate = styled.div.withConfig({
|
|
5
|
+
displayName: "NoResultsSlatestyles__StyledNoResultsSlate",
|
|
6
|
+
componentId: "sc-75hsrr-0"
|
|
7
|
+
})(["align-items:center;display:flex;flex-direction:column;margin-inline:auto;max-width:768px;padding-top:16px;text-align:center;width:100%;", " ", ""], FontStyle, BoxSizingStyle);
|
|
8
|
+
export const StyledIllustrationBox = styled.div.withConfig({
|
|
9
|
+
displayName: "NoResultsSlatestyles__StyledIllustrationBox",
|
|
10
|
+
componentId: "sc-75hsrr-1"
|
|
11
|
+
})(["height:160px;margin-bottom:16px;width:160px;"]);
|
|
12
|
+
export const StyledTitle = styled.div.withConfig({
|
|
13
|
+
displayName: "NoResultsSlatestyles__StyledTitle",
|
|
14
|
+
componentId: "sc-75hsrr-2"
|
|
15
|
+
})(["color:var(--color-theme-900);font-size:24px;font-weight:700;line-height:32px;margin-bottom:8px;"]);
|
|
16
|
+
export const StyledActions = styled.div.withConfig({
|
|
17
|
+
displayName: "NoResultsSlatestyles__StyledActions",
|
|
18
|
+
componentId: "sc-75hsrr-3"
|
|
19
|
+
})(["margin-top:20px;"]);
|
|
20
|
+
export const StyledIllustration = styled.svg.withConfig({
|
|
21
|
+
displayName: "NoResultsSlatestyles__StyledIllustration",
|
|
22
|
+
componentId: "sc-75hsrr-4"
|
|
23
|
+
})([".glow-secondary{fill:color-mix(in srgb,var(--color-secondary) 20%,transparent);}.glow-primary{fill:color-mix(in srgb,var(--color-primary) 15%,transparent);}.paper{fill:var(--surface-sheet);stroke:var(--border-primary);}@supports (color:light-dark(red,red)){.paper{fill:light-dark(var(--surface-raised),var(--surface-sheet));stroke:light-dark(var(--border-primary),var(--border-raised));}}.line{fill:var(--color-theme-500);fill-opacity:0.7;}.gap{stroke:var(--color-primary);}.badge{fill:var(--color-secondary);}"]);
|
|
24
|
+
//# sourceMappingURL=NoResultsSlate.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsSlate.styles.js","names":["styled","BoxSizingStyle","FontStyle","StyledNoResultsSlate","div","withConfig","displayName","componentId","StyledIllustrationBox","StyledTitle","StyledActions","StyledIllustration","svg"],"sources":["../../../../src/components/NoResultsSlate/NoResultsSlate.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\nexport const StyledNoResultsSlate = styled.div`\n align-items: center;\n display: flex;\n flex-direction: column;\n margin-inline: auto;\n max-width: 768px;\n padding-top: 16px;\n text-align: center;\n width: 100%;\n\n ${FontStyle}\n ${BoxSizingStyle}\n`;\n\nexport const StyledIllustrationBox = styled.div`\n height: 160px;\n margin-bottom: 16px;\n width: 160px;\n`;\n\nexport const StyledTitle = styled.div`\n color: var(--color-theme-900);\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n margin-bottom: 8px;\n`;\n\nexport const StyledActions = styled.div`\n margin-top: 20px;\n`;\n\nexport const StyledIllustration = styled.svg`\n .glow-secondary {\n fill: color-mix(in srgb, var(--color-secondary) 20%, transparent);\n }\n\n .glow-primary {\n fill: color-mix(in srgb, var(--color-primary) 15%, transparent);\n }\n\n .paper {\n fill: var(--surface-sheet);\n stroke: var(--border-primary);\n }\n\n @supports (color: light-dark(red, red)) {\n .paper {\n fill: light-dark(var(--surface-raised), var(--surface-sheet));\n stroke: light-dark(var(--border-primary), var(--border-raised));\n }\n }\n\n .line {\n fill: var(--color-theme-500);\n fill-opacity: 0.7;\n }\n\n .gap {\n stroke: var(--color-primary);\n }\n\n .badge {\n fill: var(--color-secondary);\n }\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,SAAS,QAAQ,cAAc;AAExC,OAAO,MAAMC,oBAAoB,GAAGH,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yJAU1CL,SAAS,EACTD,cAAc,CACjB;AAED,OAAO,MAAMO,qBAAqB,GAAGR,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oDAI9C;AAED,OAAO,MAAME,WAAW,GAAGT,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uGAMpC;AAED,OAAO,MAAMG,aAAa,GAAGV,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wBAEtC;AAED,OAAO,MAAMI,kBAAkB,GAAGX,MAAM,CAACY,GAAG,CAAAP,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sgBAiC3C","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/NoResultsSlate/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/NoResultsSlate/index.ts"],"sourcesContent":["export * from \"./NoResultsSlate\";\n"],"mappings":"AAAA,cAAc,kBAAkB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sort.d.ts","sourceRoot":"","sources":["../../../../src/components/Sort/Sort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAc9D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,cAAc,CAAA;CAAE,CAAC;AAExE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"Sort.d.ts","sourceRoot":"","sources":["../../../../src/components/Sort/Sort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAc9D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,cAAc,CAAA;CAAE,CAAC;AAExE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0FpC,CAAC"}
|
|
@@ -42,7 +42,9 @@ export const Sort = _ref => {
|
|
|
42
42
|
}, /*#__PURE__*/React.createElement(StyledValueButton, {
|
|
43
43
|
active: open,
|
|
44
44
|
value: labelText,
|
|
45
|
-
|
|
45
|
+
icon: /*#__PURE__*/React.isValidElement(icon) ? icon : /*#__PURE__*/React.createElement(StyledSortIcon, null),
|
|
46
|
+
alwaysShowIcon: true,
|
|
47
|
+
title: label,
|
|
46
48
|
"data-testid": "sort-button"
|
|
47
49
|
}), /*#__PURE__*/React.createElement(StyledIconButton, {
|
|
48
50
|
active: open,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sort.js","names":["React","useCallback","useMemo","useState","StyledIconButton","StyledList","StyledListItem","StyledListItemName","StyledSortIcon","StyledSortIconDown","StyledSortIconUp","StyledSortWrapper","StyledValueButton","Menu","Sort","_ref","label","icon","options","selected","onChange","target","className","_useState","open","setOpen","handleClose","handleOpen","handleOnChange","event","nextSortBy","currentTarget","dataset","id","nextOrder","sortDirection","sortBy","_options$find","find","opt","defaultDirection","labelText","_options$find$name","_options$find2","name","console","warn","createElement","onOpen","onClose","position","active","value","variant","map","_ref2","showDownArrow","key","onClick","$active"],"sources":["../../../../src/components/Sort/Sort.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from \"react\";\n\nimport {\n StyledIconButton,\n StyledList,\n StyledListItem,\n StyledListItemName,\n StyledSortIcon,\n StyledSortIconDown,\n StyledSortIconUp,\n StyledSortWrapper,\n StyledValueButton,\n} from \"./Styles\";\nimport { Menu } from \"../Menu\";\nimport { ElementWithRef } from \"../Select\";\n\nexport type SortDirections = \"asc\" | \"desc\";\n\nexport type SortOption = {\n id: string;\n name: string;\n defaultDirection: SortDirections;\n};\n\nexport type SortObj = { sortBy: string; sortDirection: SortDirections };\n\nexport interface SortProps {\n label: string;\n icon?: React.ReactNode;\n options: SortOption[];\n selected: SortObj;\n onChange: (sort: SortObj) => void;\n target?: ElementWithRef<Element>;\n className?: string;\n}\n\nexport const Sort: React.FC<SortProps> = ({\n label,\n icon,\n options,\n selected,\n onChange,\n target,\n className,\n}) => {\n const [open, setOpen] = useState(false);\n\n const handleClose = useCallback(() => setOpen(false), []);\n const handleOpen = useCallback(() => setOpen(true), []);\n\n const handleOnChange = useCallback(\n (event: React.MouseEvent<HTMLLIElement>) => {\n const nextSortBy = event.currentTarget.dataset.id as string;\n let nextOrder: SortDirections =\n selected.sortDirection === \"desc\" ? \"asc\" : \"desc\";\n\n if (nextSortBy !== selected.sortBy) {\n nextOrder =\n options.find((opt) => opt.id === nextSortBy)?.defaultDirection ||\n \"asc\";\n }\n\n onChange({ sortBy: nextSortBy, sortDirection: nextOrder });\n },\n [onChange, selected, options]\n );\n\n const labelText = useMemo(() => {\n return options.find((opt) => opt.id === selected.sortBy)?.name ?? \"\";\n }, [selected.sortBy, options]);\n\n if (!labelText) {\n console.warn(\"Cannot find selected id in options.\");\n }\n\n return (\n <Menu\n onOpen={handleOpen}\n onClose={handleClose}\n position=\"bottom-end\"\n target={\n target || (\n <StyledSortWrapper className={className}>\n <StyledValueButton\n active={open}\n value={labelText}\n
|
|
1
|
+
{"version":3,"file":"Sort.js","names":["React","useCallback","useMemo","useState","StyledIconButton","StyledList","StyledListItem","StyledListItemName","StyledSortIcon","StyledSortIconDown","StyledSortIconUp","StyledSortWrapper","StyledValueButton","Menu","Sort","_ref","label","icon","options","selected","onChange","target","className","_useState","open","setOpen","handleClose","handleOpen","handleOnChange","event","nextSortBy","currentTarget","dataset","id","nextOrder","sortDirection","sortBy","_options$find","find","opt","defaultDirection","labelText","_options$find$name","_options$find2","name","console","warn","createElement","onOpen","onClose","position","active","value","isValidElement","alwaysShowIcon","title","variant","map","_ref2","showDownArrow","key","onClick","$active"],"sources":["../../../../src/components/Sort/Sort.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from \"react\";\n\nimport {\n StyledIconButton,\n StyledList,\n StyledListItem,\n StyledListItemName,\n StyledSortIcon,\n StyledSortIconDown,\n StyledSortIconUp,\n StyledSortWrapper,\n StyledValueButton,\n} from \"./Styles\";\nimport { Menu } from \"../Menu\";\nimport { ElementWithRef } from \"../Select\";\n\nexport type SortDirections = \"asc\" | \"desc\";\n\nexport type SortOption = {\n id: string;\n name: string;\n defaultDirection: SortDirections;\n};\n\nexport type SortObj = { sortBy: string; sortDirection: SortDirections };\n\nexport interface SortProps {\n label: string;\n icon?: React.ReactNode;\n options: SortOption[];\n selected: SortObj;\n onChange: (sort: SortObj) => void;\n target?: ElementWithRef<Element>;\n className?: string;\n}\n\nexport const Sort: React.FC<SortProps> = ({\n label,\n icon,\n options,\n selected,\n onChange,\n target,\n className,\n}) => {\n const [open, setOpen] = useState(false);\n\n const handleClose = useCallback(() => setOpen(false), []);\n const handleOpen = useCallback(() => setOpen(true), []);\n\n const handleOnChange = useCallback(\n (event: React.MouseEvent<HTMLLIElement>) => {\n const nextSortBy = event.currentTarget.dataset.id as string;\n let nextOrder: SortDirections =\n selected.sortDirection === \"desc\" ? \"asc\" : \"desc\";\n\n if (nextSortBy !== selected.sortBy) {\n nextOrder =\n options.find((opt) => opt.id === nextSortBy)?.defaultDirection ||\n \"asc\";\n }\n\n onChange({ sortBy: nextSortBy, sortDirection: nextOrder });\n },\n [onChange, selected, options]\n );\n\n const labelText = useMemo(() => {\n return options.find((opt) => opt.id === selected.sortBy)?.name ?? \"\";\n }, [selected.sortBy, options]);\n\n if (!labelText) {\n console.warn(\"Cannot find selected id in options.\");\n }\n\n return (\n <Menu\n onOpen={handleOpen}\n onClose={handleClose}\n position=\"bottom-end\"\n target={\n target || (\n <StyledSortWrapper className={className}>\n <StyledValueButton\n active={open}\n value={labelText}\n icon={React.isValidElement(icon) ? icon : <StyledSortIcon />}\n alwaysShowIcon\n title={label}\n data-testid=\"sort-button\"\n />\n <StyledIconButton\n active={open}\n variant=\"text gray\"\n data-testid=\"sort-icon-button\"\n >\n {icon || <StyledSortIcon />}\n </StyledIconButton>\n </StyledSortWrapper>\n )\n }\n >\n <StyledList>\n {options.map(({ id, name, defaultDirection }) => {\n let showDownArrow = selected.sortDirection === \"asc\";\n\n if (selected.sortBy !== id) {\n showDownArrow = defaultDirection === \"asc\";\n }\n\n return (\n <StyledListItem\n key={id}\n onClick={handleOnChange}\n data-id={id}\n data-testid={id}\n $active={id === selected.sortBy}\n >\n <StyledListItemName>{name}</StyledListItemName>\n {showDownArrow ? <StyledSortIconDown /> : <StyledSortIconUp />}\n </StyledListItem>\n );\n })}\n </StyledList>\n </Menu>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAE7D,SACEC,gBAAgB,EAChBC,UAAU,EACVC,cAAc,EACdC,kBAAkB,EAClBC,cAAc,EACdC,kBAAkB,EAClBC,gBAAgB,EAChBC,iBAAiB,EACjBC,iBAAiB,QACZ,UAAU;AACjB,SAASC,IAAI,QAAQ,SAAS;AAuB9B,OAAO,MAAMC,IAAyB,GAAGC,IAAA,IAQnC;EAAA,IAPJC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IACRC,MAAM,GAAAN,IAAA,CAANM,MAAM;IACNC,SAAS,GAAAP,IAAA,CAATO,SAAS;EAET,MAAAC,SAAA,GAAwBpB,QAAQ,CAAC,KAAK,CAAC;IAAhCqB,IAAI,GAAAD,SAAA;IAAEE,OAAO,GAAAF,SAAA;EAEpB,MAAMG,WAAW,GAAGzB,WAAW,CAAC,MAAMwB,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;EACzD,MAAME,UAAU,GAAG1B,WAAW,CAAC,MAAMwB,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;EAEvD,MAAMG,cAAc,GAAG3B,WAAW,CAC/B4B,KAAsC,IAAK;IAC1C,MAAMC,UAAU,GAAGD,KAAK,CAACE,aAAa,CAACC,OAAO,CAACC,EAAY;IAC3D,IAAIC,SAAyB,GA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[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stopwatch.d.ts","sourceRoot":"","sources":["../../../../src/components/Stopwatch/Stopwatch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Stopwatch.d.ts","sourceRoot":"","sources":["../../../../src/components/Stopwatch/Stopwatch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiBxC,eAAO,MAAM,SAAS;;;CAwBrB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { StyledStopwatch, StyledStopwatchCenterWrapper, StyledTrigger } from "./Stopwatch.style";
|
|
4
3
|
import { EditableHours } from "../EditableHours";
|
|
5
4
|
import { IconButton } from "../IconButton";
|
|
@@ -8,17 +7,8 @@ export const Stopwatch = () => {
|
|
|
8
7
|
const _useState = useState(false),
|
|
9
8
|
isActive = _useState[0],
|
|
10
9
|
setIsActive = _useState[1];
|
|
11
|
-
return /*#__PURE__*/React.createElement(StyledStopwatch, {
|
|
12
|
-
|
|
13
|
-
"tw-bg-red-100": isActive,
|
|
14
|
-
"tw-bg-gray-100": !isActive
|
|
15
|
-
})
|
|
16
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
17
|
-
onClick: () => setIsActive(!isActive),
|
|
18
|
-
className: classNames("tw-shadow-none hover:tw-shadow-none", {
|
|
19
|
-
"tw-bg-red-400 hover:bg-red-500": isActive,
|
|
20
|
-
"tw-bg-indigo-400 hover:bg-indigo-400": !isActive
|
|
21
|
-
})
|
|
10
|
+
return /*#__PURE__*/React.createElement(StyledStopwatch, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
11
|
+
onClick: () => setIsActive(!isActive)
|
|
22
12
|
}, !isActive ? /*#__PURE__*/React.createElement(PlaySmallIcon, null) : /*#__PURE__*/React.createElement(PauseSmallIcon, null)), /*#__PURE__*/React.createElement(StyledStopwatchCenterWrapper, null, /*#__PURE__*/React.createElement(EditableHours, {
|
|
23
13
|
value: "00:00"
|
|
24
14
|
}), /*#__PURE__*/React.createElement(IconButton, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stopwatch.js","names":["React","useState","
|
|
1
|
+
{"version":3,"file":"Stopwatch.js","names":["React","useState","StyledStopwatch","StyledStopwatchCenterWrapper","StyledTrigger","EditableHours","IconButton","CloseIcon","NoteIcon","PauseSmallIcon","PlaySmallIcon","UploadIcon","Stopwatch","_useState","isActive","setIsActive","createElement","onClick","value","size","variant","width","displayName"],"sources":["../../../../src/components/Stopwatch/Stopwatch.tsx"],"sourcesContent":["import React, { useState } from \"react\";\n\nimport {\n StyledStopwatch,\n StyledStopwatchCenterWrapper,\n StyledTrigger,\n} from \"./Stopwatch.style\";\nimport { EditableHours } from \"../EditableHours\";\nimport { IconButton } from \"../IconButton\";\nimport {\n CloseIcon,\n NoteIcon,\n PauseSmallIcon,\n PlaySmallIcon,\n UploadIcon,\n} from \"../Icons\";\n\nexport const Stopwatch = () => {\n const [isActive, setIsActive] = useState<boolean>(false);\n\n return (\n <StyledStopwatch>\n <IconButton onClick={() => setIsActive(!isActive)}>\n {!isActive ? <PlaySmallIcon /> : <PauseSmallIcon />}\n </IconButton>\n <StyledStopwatchCenterWrapper>\n <EditableHours value=\"00:00\" />\n <IconButton size=\"small\" variant=\"tertiary\">\n <NoteIcon width={20} />\n </IconButton>\n {true && (\n <IconButton size=\"small\" variant=\"tertiary\">\n <CloseIcon width={20} />\n </IconButton>\n )}\n </StyledStopwatchCenterWrapper>\n <StyledTrigger onClick={() => setIsActive(!isActive)}>\n <UploadIcon />\n </StyledTrigger>\n </StyledStopwatch>\n );\n};\n\nStopwatch.displayName = \"Stopwatch\";\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SACEC,eAAe,EACfC,4BAA4B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A,CAACL,UAAU,MAAE,CACA,CACA,CAAC;AAEtB,CAAC;AAEDC,SAAS,CAACU,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -10,6 +10,8 @@ export interface IValueButtonProps {
|
|
|
10
10
|
icon?: ReactElement;
|
|
11
11
|
/** Always show icon */
|
|
12
12
|
alwaysShowIcon?: boolean;
|
|
13
|
+
/** Names the button when the icon stands in place of the label */
|
|
14
|
+
title?: string;
|
|
13
15
|
}
|
|
14
16
|
export declare const ValueButton: React.ForwardRefExoticComponent<IValueButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
17
|
//# sourceMappingURL=ValueButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAQxD,MAAM,WAAW,iBAAiB;IAChC,uBAAuB;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,uBAAuB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ValueButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAQxD,MAAM,WAAW,iBAAiB;IAChC,uBAAuB;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,uBAAuB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,WAAW,6FAqCvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueButton.js","names":["React","forwardRef","StyledValueButton","StyledValueButtonLabel","StyledValueButtonValue","ValueButton","_ref","ref","_ref$active","active","_ref$alwaysShowIcon","alwaysShowIcon","icon","label","value","args","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","className","variant","$active","cloneElement","style","display","color","weight","displayName"],"sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"sourcesContent":["import React, { forwardRef, ReactElement } from \"react\";\n\nimport {\n StyledValueButton,\n StyledValueButtonLabel,\n StyledValueButtonValue,\n} from \"./Styles\";\n\nexport interface IValueButtonProps {\n /** Set active state */\n active?: boolean;\n /** Label for value */\n label?: string;\n /** Value */\n value: string;\n /** Icon */\n icon?: ReactElement;\n /** Always show icon */\n alwaysShowIcon?: boolean;\n}\n\nexport const ValueButton = forwardRef<HTMLButtonElement, IValueButtonProps>(\n (\n { active = false, alwaysShowIcon = false, icon, label, value, ...args },\n ref\n ) => {\n return (\n <StyledValueButton\n className=\"c-value-button\"\n {...args}\n ref={ref}\n variant=\"text gray\"\n $active={active}\n >\n {icon && alwaysShowIcon\n ? React.cloneElement(icon, {\n style: { display: \"inline-block\" },\n })\n : null}\n {label ? (\n <StyledValueButtonLabel\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__label\"\n >\n {label}:\n </StyledValueButtonLabel>\n ) : null}\n <StyledValueButtonValue\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__value\"\n >\n {value}\n </StyledValueButtonValue>\n </StyledValueButton>\n );\n }\n);\n\nValueButton.displayName = \"ValueButton\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAsB,OAAO;AAEvD,SACEC,iBAAiB,EACjBC,sBAAsB,EACtBC,sBAAsB,QACjB,UAAU;
|
|
1
|
+
{"version":3,"file":"ValueButton.js","names":["React","forwardRef","StyledValueButton","StyledValueButtonLabel","StyledValueButtonValue","ValueButton","_ref","ref","_ref$active","active","_ref$alwaysShowIcon","alwaysShowIcon","icon","label","value","args","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","className","variant","$active","cloneElement","style","display","color","weight","displayName"],"sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"sourcesContent":["import React, { forwardRef, ReactElement } from \"react\";\n\nimport {\n StyledValueButton,\n StyledValueButtonLabel,\n StyledValueButtonValue,\n} from \"./Styles\";\n\nexport interface IValueButtonProps {\n /** Set active state */\n active?: boolean;\n /** Label for value */\n label?: string;\n /** Value */\n value: string;\n /** Icon */\n icon?: ReactElement;\n /** Always show icon */\n alwaysShowIcon?: boolean;\n /** Names the button when the icon stands in place of the label */\n title?: string;\n}\n\nexport const ValueButton = forwardRef<HTMLButtonElement, IValueButtonProps>(\n (\n { active = false, alwaysShowIcon = false, icon, label, value, ...args },\n ref\n ) => {\n return (\n <StyledValueButton\n className=\"c-value-button\"\n {...args}\n ref={ref}\n variant=\"text gray\"\n $active={active}\n >\n {icon && alwaysShowIcon\n ? React.cloneElement(icon, {\n style: { display: \"inline-block\" },\n })\n : null}\n {label ? (\n <StyledValueButtonLabel\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__label\"\n >\n {label}:\n </StyledValueButtonLabel>\n ) : null}\n <StyledValueButtonValue\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__value\"\n >\n {value}\n </StyledValueButtonValue>\n </StyledValueButton>\n );\n }\n);\n\nValueButton.displayName = \"ValueButton\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAsB,OAAO;AAEvD,SACEC,iBAAiB,EACjBC,sBAAsB,EACtBC,sBAAsB,QACjB,UAAU;AAiBjB,OAAO,MAAMC,WAAW,gBAAGJ,UAAU,CACnC,CAAAK,IAAA,EAEEC,GAAG,KACA;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAFDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,KAAK,GAAAA,WAAA;IAAAE,mBAAA,GAAAJ,IAAA,CAAEK,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAG,KAAK,GAAAA,mBAAA;IAAEE,IAAI,GAAAN,IAAA,CAAJM,IAAI;IAAEC,KAAK,GAAAP,IAAA,CAALO,KAAK;IAAEC,KAAK,GAAAR,IAAA,CAALQ,KAAK;IAAKC,IAAI,GAAAC,6BAAA,CAAAV,IAAA,EAAAW,SAAA;EAGrE,oBACEjB,KAAA,CAAAkB,aAAA,CAAChB,iBAAiB,EAAAiB,QAAA;IAChBC,SAAS,EAAC;EAAgB,GACtBL,IAAI;IACRR,GAAG,EAAEA,GAAI;IACTc,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAEb;EAAO,IAEfG,IAAI,IAAID,cAAc,gBACnBX,KAAK,CAACuB,YAAY,CAACX,IAAI,EAAE;IACvBY,KAAK,EAAE;MAAEC,OAAO,EAAE;IAAe;EACnC,CAAC,CAAC,GACF,IAAI,EACPZ,KAAK,gBACJb,KAAA,CAAAkB,aAAA,CAACf,sBAAsB;IACrBuB,KAAK,EAAC,WAAW;IACjBC,MAAM,EAAC,QAAQ;IACfP,SAAS,EAAC;EAAuB,GAEhCP,KAAK,EAAC,GACe,CAAC,GACvB,IAAI,eACRb,KAAA,CAAAkB,aAAA,CAACd,sBAAsB;IACrBsB,KAAK,EAAC,WAAW;IACjBC,MAAM,EAAC,QAAQ;IACfP,SAAS,EAAC;EAAuB,GAEhCN,KACqB,CACP,CAAC;AAExB,CACF,CAAC;AAEDT,WAAW,CAACuB,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/Step.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/Step.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAY1D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAK9C,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mEAAmE;IACnE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CA2E1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from "react";
|
|
2
2
|
import { StepActionButton } from "./StepActionButton";
|
|
3
|
-
import { StyledStepTitle, StyledStepHeaderLeft, StyledStepHeader, StyledCustomStep } from "./Styles";
|
|
3
|
+
import { StyledStepTitle, StyledStepHeaderLeft, StyledStepHeader, StyledCustomStep, StyledStepBackButton } from "./Styles";
|
|
4
4
|
import { Dialog } from "../Dialog";
|
|
5
5
|
import { useDialogClose } from "../Dialog/DialogContext";
|
|
6
6
|
import { IconButton } from "../IconButton";
|
|
@@ -34,10 +34,9 @@ export const Step = _ref => {
|
|
|
34
34
|
}
|
|
35
35
|
return onNextButtonClick && onNextButtonClick();
|
|
36
36
|
}, [isLast, onClose, onNextButtonClick]);
|
|
37
|
-
return !skip ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledStepHeader, null, /*#__PURE__*/React.createElement(StyledStepHeaderLeft, null, !disableBackButton && index && index > 0 ? /*#__PURE__*/React.createElement(
|
|
37
|
+
return !skip ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledStepHeader, null, /*#__PURE__*/React.createElement(StyledStepHeaderLeft, null, !disableBackButton && index && index > 0 ? /*#__PURE__*/React.createElement(StyledStepBackButton, {
|
|
38
38
|
onClick: onPreviousButtonClick,
|
|
39
39
|
variant: "text gray",
|
|
40
|
-
className: "tw--ml-3 tw-mr-2",
|
|
41
40
|
disabled: changingStepInProgress
|
|
42
41
|
}, /*#__PURE__*/React.createElement(ArrowBackMobileIcon, null)) : null, /*#__PURE__*/React.createElement(StyledStepTitle, null, /*#__PURE__*/React.createElement(Caption2, null, title), /*#__PURE__*/React.createElement(Header3, null, subtitle))), customRightHeader ? customRightHeader : /*#__PURE__*/React.createElement(IconButton, {
|
|
43
42
|
onClick: closeDialog,
|