@squiz/generic-browser-lib 1.35.1-alpha.34
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/.storybook/main.ts +23 -0
- package/.storybook/preview-head.html +15 -0
- package/.storybook/preview.ts +16 -0
- package/README.md +10 -0
- package/build.js +21 -0
- package/jest.config.ts +29 -0
- package/lib/Hooks/useAsync.d.ts +21 -0
- package/lib/Hooks/useAsync.js +53 -0
- package/lib/Icons/Generics/ArrowDown.d.ts +15 -0
- package/lib/Icons/Generics/ArrowDown.js +23 -0
- package/lib/Icons/Generics/ArrowRight.d.ts +15 -0
- package/lib/Icons/Generics/ArrowRight.js +23 -0
- package/lib/Icons/Generics/Back.d.ts +4 -0
- package/lib/Icons/Generics/Back.js +12 -0
- package/lib/Icons/Generics/Close.d.ts +15 -0
- package/lib/Icons/Generics/Close.js +23 -0
- package/lib/Icons/Generics/Empty.d.ts +4 -0
- package/lib/Icons/Generics/Empty.js +12 -0
- package/lib/Icons/Generics/Error.d.ts +4 -0
- package/lib/Icons/Generics/Error.js +12 -0
- package/lib/Icons/Generics/GenericIconMap.d.ts +14 -0
- package/lib/Icons/Generics/GenericIconMap.js +18 -0
- package/lib/Icons/Generics/ResourceSelect.d.ts +15 -0
- package/lib/Icons/Generics/ResourceSelect.js +28 -0
- package/lib/Icons/Generics/Retry.d.ts +4 -0
- package/lib/Icons/Generics/Retry.js +12 -0
- package/lib/Icons/Generics/Root.d.ts +15 -0
- package/lib/Icons/Generics/Root.js +23 -0
- package/lib/Icons/Generics/Selected.d.ts +15 -0
- package/lib/Icons/Generics/Selected.js +23 -0
- package/lib/Icons/Generics/index.d.ts +10 -0
- package/lib/Icons/Generics/index.js +27 -0
- package/lib/Icons/Icon.d.ts +50 -0
- package/lib/Icons/Icon.js +42 -0
- package/lib/Icons/MatrixResources/Audio.d.ts +15 -0
- package/lib/Icons/MatrixResources/Audio.js +28 -0
- package/lib/Icons/MatrixResources/Excel.d.ts +15 -0
- package/lib/Icons/MatrixResources/Excel.js +27 -0
- package/lib/Icons/MatrixResources/Folder.d.ts +15 -0
- package/lib/Icons/MatrixResources/Folder.js +24 -0
- package/lib/Icons/MatrixResources/GenericFile.d.ts +15 -0
- package/lib/Icons/MatrixResources/GenericFile.js +28 -0
- package/lib/Icons/MatrixResources/Image.d.ts +15 -0
- package/lib/Icons/MatrixResources/Image.js +26 -0
- package/lib/Icons/MatrixResources/MatrixResourceMap.d.ts +15 -0
- package/lib/Icons/MatrixResources/MatrixResourceMap.js +19 -0
- package/lib/Icons/MatrixResources/Page.d.ts +15 -0
- package/lib/Icons/MatrixResources/Page.js +30 -0
- package/lib/Icons/MatrixResources/Pdf.d.ts +15 -0
- package/lib/Icons/MatrixResources/Pdf.js +31 -0
- package/lib/Icons/MatrixResources/Powerpoint.d.ts +15 -0
- package/lib/Icons/MatrixResources/Powerpoint.js +28 -0
- package/lib/Icons/MatrixResources/Site.d.ts +15 -0
- package/lib/Icons/MatrixResources/Site.js +30 -0
- package/lib/Icons/MatrixResources/Video.d.ts +15 -0
- package/lib/Icons/MatrixResources/Video.js +24 -0
- package/lib/Icons/MatrixResources/Word.d.ts +17 -0
- package/lib/Icons/MatrixResources/Word.js +28 -0
- package/lib/Icons/MatrixResources/index.d.ts +11 -0
- package/lib/Icons/MatrixResources/index.js +29 -0
- package/lib/Modal/Modal.d.ts +10 -0
- package/lib/Modal/Modal.js +47 -0
- package/lib/Modal/ModalOpeningButton.d.ts +10 -0
- package/lib/Modal/ModalOpeningButton.js +14 -0
- package/lib/Modal/ModalTrigger.d.ts +9 -0
- package/lib/Modal/ModalTrigger.js +26 -0
- package/lib/PreviewPanel/PreviewModal.d.ts +11 -0
- package/lib/PreviewPanel/PreviewModal.js +79 -0
- package/lib/PreviewPanel/PreviewPanel.d.ts +13 -0
- package/lib/PreviewPanel/PreviewPanel.js +58 -0
- package/lib/PreviewPanel/PreviewPanelHOC.d.ts +6 -0
- package/lib/PreviewPanel/PreviewPanelHOC.js +16 -0
- package/lib/ResetButton/ResetButton.d.ts +5 -0
- package/lib/ResetButton/ResetButton.js +12 -0
- package/lib/ResourceItem/ResourceItem.d.ts +19 -0
- package/lib/ResourceItem/ResourceItem.js +29 -0
- package/lib/ResourceState/ResourceState.d.ts +7 -0
- package/lib/ResourceState/ResourceState.js +17 -0
- package/lib/Skeleton/List/SkeletonList.d.ts +6 -0
- package/lib/Skeleton/List/SkeletonList.js +13 -0
- package/lib/Skeleton/ListItem/SkeletonListItem.d.ts +1 -0
- package/lib/Skeleton/ListItem/SkeletonListItem.js +15 -0
- package/lib/Spinner/Spinner.d.ts +7 -0
- package/lib/Spinner/Spinner.js +13 -0
- package/lib/index.css +885 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +28 -0
- package/package.json +76 -0
- package/postcss.config.js +11 -0
- package/src/Hooks/useAsync.spec.ts +106 -0
- package/src/Hooks/useAsync.ts +62 -0
- package/src/Icons/Generics/ArrowDown.tsx +27 -0
- package/src/Icons/Generics/ArrowRight.tsx +27 -0
- package/src/Icons/Generics/Back.tsx +13 -0
- package/src/Icons/Generics/Close.tsx +26 -0
- package/src/Icons/Generics/Empty.tsx +13 -0
- package/src/Icons/Generics/Error.tsx +13 -0
- package/src/Icons/Generics/GenericIconMap.ts +18 -0
- package/src/Icons/Generics/ResourceSelect.tsx +40 -0
- package/src/Icons/Generics/Retry.tsx +13 -0
- package/src/Icons/Generics/Root.tsx +24 -0
- package/src/Icons/Generics/Selected.tsx +27 -0
- package/src/Icons/Generics/index.tsx +11 -0
- package/src/Icons/Icon.spec.tsx +62 -0
- package/src/Icons/Icon.stories.tsx +110 -0
- package/src/Icons/Icon.tsx +54 -0
- package/src/Icons/MatrixResources/Audio.tsx +30 -0
- package/src/Icons/MatrixResources/Excel.tsx +29 -0
- package/src/Icons/MatrixResources/Folder.tsx +29 -0
- package/src/Icons/MatrixResources/GenericFile.tsx +34 -0
- package/src/Icons/MatrixResources/Image.tsx +36 -0
- package/src/Icons/MatrixResources/MatrixResourceMap.ts +19 -0
- package/src/Icons/MatrixResources/Page.tsx +33 -0
- package/src/Icons/MatrixResources/Pdf.tsx +34 -0
- package/src/Icons/MatrixResources/Powerpoint.tsx +34 -0
- package/src/Icons/MatrixResources/Site.tsx +37 -0
- package/src/Icons/MatrixResources/Video.tsx +27 -0
- package/src/Icons/MatrixResources/Word.tsx +30 -0
- package/src/Icons/MatrixResources/index.tsx +12 -0
- package/src/Modal/Modal.spec.tsx +269 -0
- package/src/Modal/Modal.tsx +55 -0
- package/src/Modal/ModalContainer.stories.tsx +33 -0
- package/src/Modal/ModalOpeningButton.tsx +20 -0
- package/src/Modal/ModalTrigger.tsx +54 -0
- package/src/PreviewPanel/PreviewModal.spec.tsx +164 -0
- package/src/PreviewPanel/PreviewModal.tsx +94 -0
- package/src/PreviewPanel/PreviewPanel.spec.tsx +162 -0
- package/src/PreviewPanel/PreviewPanel.stories.tsx +66 -0
- package/src/PreviewPanel/PreviewPanel.tsx +83 -0
- package/src/PreviewPanel/PreviewPanelHOC.spec.tsx +45 -0
- package/src/PreviewPanel/PreviewPanelHOC.tsx +17 -0
- package/src/ResetButton/ResetButton.spec.tsx +42 -0
- package/src/ResetButton/ResetButton.tsx +22 -0
- package/src/ResourceItem/ResourceItem.spec.tsx +65 -0
- package/src/ResourceItem/ResourceItem.tsx +90 -0
- package/src/ResourceState/ResourceState.spec.tsx +26 -0
- package/src/ResourceState/ResourceState.stories.tsx +24 -0
- package/src/ResourceState/ResourceState.tsx +31 -0
- package/src/Skeleton/List/SkeletonList.spec.tsx +18 -0
- package/src/Skeleton/List/SkeletonList.stories.tsx +15 -0
- package/src/Skeleton/List/SkeletonList.tsx +20 -0
- package/src/Skeleton/ListItem/SkeletonListItem.stories.tsx +15 -0
- package/src/Skeleton/ListItem/SkeletonListItem.tsx +14 -0
- package/src/Skeleton/_skeleton.scss +15 -0
- package/src/Spinner/Spinner.spec.tsx +18 -0
- package/src/Spinner/Spinner.stories.tsx +26 -0
- package/src/Spinner/Spinner.tsx +16 -0
- package/src/Spinner/_spinner.scss +14 -0
- package/src/index.scss +22 -0
- package/src/index.stories.tsx +26 -0
- package/src/index.ts +20 -0
- package/tailwind.config.cjs +89 -0
- package/tsconfig.json +22 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const iconSources: {
|
3
|
+
generic: {
|
4
|
+
'arrow-right': typeof import("./Generics").ArrowRight;
|
5
|
+
'arrow-down': typeof import("./Generics").ArrowDown;
|
6
|
+
'resource-select': typeof import("./Generics").ResourceSelect;
|
7
|
+
selected: typeof import("./Generics").Selected;
|
8
|
+
root: typeof import("./Generics").Root;
|
9
|
+
close: typeof import("./Generics").Close;
|
10
|
+
error: typeof import("./Generics").Error;
|
11
|
+
retry: typeof import("./Generics").Retry;
|
12
|
+
empty: typeof import("./Generics").Empty;
|
13
|
+
back: typeof import("./Generics").Back;
|
14
|
+
};
|
15
|
+
matrix: {
|
16
|
+
audio_file: typeof import("./MatrixResources").Audio;
|
17
|
+
excel_doc: typeof import("./MatrixResources").Excel;
|
18
|
+
folder: typeof import("./MatrixResources").Folder;
|
19
|
+
generic_file: typeof import("./MatrixResources").GenericFile;
|
20
|
+
image: typeof import("./MatrixResources").Image;
|
21
|
+
page_standard: typeof import("./MatrixResources").Page;
|
22
|
+
pdf_file: typeof import("./MatrixResources").Pdf;
|
23
|
+
powerpoint_doc: typeof import("./MatrixResources").Powerpoint;
|
24
|
+
site: typeof import("./MatrixResources").Site;
|
25
|
+
video_file: typeof import("./MatrixResources").Video;
|
26
|
+
word_doc: typeof import("./MatrixResources").Word;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export type ResourceSources = keyof typeof iconSources;
|
30
|
+
export type IconOptions = string;
|
31
|
+
/**
|
32
|
+
* Renders an icon based on the resource source and the icon name
|
33
|
+
* @param {{resourceSource?: ResourceSources; icon?: IconOptions; props: React.HTMLAttributes<HTMLOrSVGElement>}} props - The props for the Icon component
|
34
|
+
* @returns {React.FunctionComponent} - The icon component
|
35
|
+
* @example
|
36
|
+
* <Icon />
|
37
|
+
* @example
|
38
|
+
* <Icon resourceSource="generic" icon="generic_file" />
|
39
|
+
* @example
|
40
|
+
* <Icon resourceSource="matrix" icon="page" />
|
41
|
+
* @example
|
42
|
+
* <Icon resourceSource="matrix" icon="page" height={24} width={24} />
|
43
|
+
* @example
|
44
|
+
* <Icon resourceSource="matrix" icon="page" className="custom-class" />
|
45
|
+
*/
|
46
|
+
export declare function Icon({ resourceSource, icon, isDecorative, ...props }: {
|
47
|
+
icon?: IconOptions;
|
48
|
+
resourceSource?: ResourceSources;
|
49
|
+
isDecorative?: boolean;
|
50
|
+
} & React.HTMLAttributes<HTMLElement> & React.SVGAttributes<SVGElement>): JSX.Element;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.Icon = exports.iconSources = void 0;
|
7
|
+
const react_1 = __importDefault(require("react"));
|
8
|
+
const GenericIconMap_1 = __importDefault(require("./Generics/GenericIconMap"));
|
9
|
+
const MatrixResourceMap_1 = __importDefault(require("./MatrixResources/MatrixResourceMap"));
|
10
|
+
exports.iconSources = {
|
11
|
+
generic: GenericIconMap_1.default,
|
12
|
+
matrix: MatrixResourceMap_1.default,
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* Renders an icon based on the resource source and the icon name
|
16
|
+
* @param {{resourceSource?: ResourceSources; icon?: IconOptions; props: React.HTMLAttributes<HTMLOrSVGElement>}} props - The props for the Icon component
|
17
|
+
* @returns {React.FunctionComponent} - The icon component
|
18
|
+
* @example
|
19
|
+
* <Icon />
|
20
|
+
* @example
|
21
|
+
* <Icon resourceSource="generic" icon="generic_file" />
|
22
|
+
* @example
|
23
|
+
* <Icon resourceSource="matrix" icon="page" />
|
24
|
+
* @example
|
25
|
+
* <Icon resourceSource="matrix" icon="page" height={24} width={24} />
|
26
|
+
* @example
|
27
|
+
* <Icon resourceSource="matrix" icon="page" className="custom-class" />
|
28
|
+
*/
|
29
|
+
function Icon({ resourceSource = 'generic', icon, isDecorative = true, ...props }) {
|
30
|
+
const icons = exports.iconSources[resourceSource] || null;
|
31
|
+
// If the resource source is the current source and the icon is in the current source map, render the icon
|
32
|
+
if (icons && icon && icon in icons) {
|
33
|
+
// Get the icon from the current source map
|
34
|
+
const Icon = icons[icon];
|
35
|
+
// Render the icon
|
36
|
+
return react_1.default.createElement(Icon, { isDecorative: isDecorative, ...props });
|
37
|
+
}
|
38
|
+
// If the icon is not defined, render the default icon
|
39
|
+
const DefaultIcon = MatrixResourceMap_1.default['generic_file'];
|
40
|
+
return react_1.default.createElement(DefaultIcon, { isDecorative: isDecorative, ...props });
|
41
|
+
}
|
42
|
+
exports.Icon = Icon;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Audio icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Audio component
|
5
|
+
* @returns {JSX.Element} - The Audio component
|
6
|
+
* @example
|
7
|
+
* <Audio />
|
8
|
+
* @example
|
9
|
+
* <Audio height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Audio className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Audio({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Audio icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Audio component
|
10
|
+
* @returns {JSX.Element} - The Audio component
|
11
|
+
* @example
|
12
|
+
* <Audio />
|
13
|
+
* @example
|
14
|
+
* <Audio height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Audio className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Audio({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("rect", { fill: "#cce9ed", height: "19", rx: "1.5", stroke: "#73c0cb", width: "19", x: "2.5", y: "2.5" }),
|
21
|
+
react_1.default.createElement("path", { d: "m9.5 7.4798c0-.23683.16616-.44118.39802-.48949l5.99998-1.25c.3105-.06468.602.17234.602.48949v1.2904c0 .23683-.1662.44118-.398.48949l-6 1.25c-.31051.06468-.602-.17234-.602-.48949z", fill: "#73c0cb", stroke: "#057e91" }),
|
22
|
+
react_1.default.createElement("path", { d: "m9 8c0-.55228.44772-1 1-1v9.5c0 .2761-.22386.5-.5.5s-.5-.2239-.5-.5z", fill: "#057e91" }),
|
23
|
+
react_1.default.createElement("circle", { cx: "7.5", cy: "16.5", fill: "#73c0cb", r: "2", stroke: "#057e91" }),
|
24
|
+
react_1.default.createElement("path", { d: "m16 7 1 .32v7.18c0 .2761-.2239.5-.5.5s-.5-.2239-.5-.5z", fill: "#057e91" }),
|
25
|
+
react_1.default.createElement("circle", { cx: "14.5", cy: "14.5", fill: "#73c0cb", r: "2", stroke: "#057e91" }),
|
26
|
+
!isDecorative && react_1.default.createElement("title", null, "audio file icon")));
|
27
|
+
}
|
28
|
+
exports.default = Audio;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Excel icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Excel component
|
5
|
+
* @returns {JSX.Element} - The Excel component
|
6
|
+
* @example
|
7
|
+
* <Excel />
|
8
|
+
* @example
|
9
|
+
* <Excel height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Excel className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Excel({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Excel icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Excel component
|
10
|
+
* @returns {JSX.Element} - The Excel component
|
11
|
+
* @example
|
12
|
+
* <Excel />
|
13
|
+
* @example
|
14
|
+
* <Excel height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Excel className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Excel({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("path", { d: "M14.1716 2.5H6C5.17157 2.5 4.5 3.17157 4.5 4V20C4.5 20.8284 5.17157 21.5 6 21.5H18C18.8284 21.5 19.5 20.8284 19.5 20V7.82843C19.5 7.16539 19.2366 6.5295 18.7678 6.06066L15.9393 3.23223C15.4705 2.76339 14.8346 2.5 14.1716 2.5Z", fill: "#E7E7E7", stroke: "#BCBCBC" }),
|
21
|
+
react_1.default.createElement("path", { d: "M14.5 3V6.5C14.5 7.05228 14.9477 7.5 15.5 7.5H19", stroke: "#BCBCBC" }),
|
22
|
+
react_1.default.createElement("rect", { y: "8", width: "12", height: "12", rx: "2", fill: "#4FAD6F" }),
|
23
|
+
react_1.default.createElement("path", { d: "M3.5 11.5L8.5 16.5", stroke: "white", strokeLinecap: "round" }),
|
24
|
+
react_1.default.createElement("path", { d: "M8.5 11.5L3.5 16.5", stroke: "white", strokeLinecap: "round" }),
|
25
|
+
!isDecorative && react_1.default.createElement("title", null, "excel doc icon")));
|
26
|
+
}
|
27
|
+
exports.default = Excel;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Folder icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Folder component
|
5
|
+
* @returns {JSX.Element} - The Folder component
|
6
|
+
* @example
|
7
|
+
* <Folder />
|
8
|
+
* @example
|
9
|
+
* <Folder height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Folder className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Folder({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Folder icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Folder component
|
10
|
+
* @returns {JSX.Element} - The Folder component
|
11
|
+
* @example
|
12
|
+
* <Folder />
|
13
|
+
* @example
|
14
|
+
* <Folder height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Folder className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Folder({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("path", { d: "m1 5c0-1.10457.89543-2 2-2h8.1177c.6752 0 1.3049.34077 1.6743.9061l2.208 3.37961-14 3.71429z", fill: "#efb324" }),
|
21
|
+
react_1.default.createElement("path", { d: "m3 6.5c-.82843 0-1.5.67157-1.5 1.5v11.5c0 .5523.44771 1 1 1h18.5c.8284 0 1.5-.6716 1.5-1.5v-11c0-.82843-.6716-1.5-1.5-1.5h-7.5106-2.8369z", fill: "#fbefd2", stroke: "#f5d584" }),
|
22
|
+
!isDecorative && react_1.default.createElement("title", null, "folder icon")));
|
23
|
+
}
|
24
|
+
exports.default = Folder;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the GenericFile icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the GenericFile component
|
5
|
+
* @returns {JSX.Element} - The GenericFile component
|
6
|
+
* @example
|
7
|
+
* <GenericFile />
|
8
|
+
* @example
|
9
|
+
* <GenericFile height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <GenericFile className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function GenericFile({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the GenericFile icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the GenericFile component
|
10
|
+
* @returns {JSX.Element} - The GenericFile component
|
11
|
+
* @example
|
12
|
+
* <GenericFile />
|
13
|
+
* @example
|
14
|
+
* <GenericFile height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <GenericFile className="custom-class" />
|
17
|
+
*/
|
18
|
+
function GenericFile({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("path", { d: "m15.9393 3.23223-.3515.35154.3515-.35154c-.4688-.46884-1.1047-.73223-1.7677-.73223h-8.1716c-.82843 0-1.5.67157-1.5 1.5v16c0 .8284.67157 1.5 1.5 1.5h12c.8284 0 1.5-.6716 1.5-1.5v-12.17157c0-.66304-.2634-1.29893-.7322-1.76777z", fill: "#fff", stroke: "#74b1e6" }),
|
21
|
+
react_1.default.createElement("path", { d: "m14.5 3v3.5c0 .55228.4477 1 1 1h3.5", stroke: "#74b1e6" }),
|
22
|
+
react_1.default.createElement("path", { d: "m14.5 7.5v-5l5 5z", fill: "#cce2f6" }),
|
23
|
+
react_1.default.createElement("g", { stroke: "#74b1e6" },
|
24
|
+
react_1.default.createElement("path", { d: "m15.9393 3.23223-.3515.35154.3515-.35154c-.4688-.46884-1.1047-.73223-1.7677-.73223h-8.1716c-.82843 0-1.5.67157-1.5 1.5v16c0 .8284.67157 1.5 1.5 1.5h12c.8284 0 1.5-.6716 1.5-1.5v-12.17157c0-.66304-.2634-1.29893-.7322-1.76777z" }),
|
25
|
+
react_1.default.createElement("path", { d: "m14.5 3v3.5c0 .55228.4477 1 1 1h3.5" })),
|
26
|
+
!isDecorative && react_1.default.createElement("title", null, "generic file icon")));
|
27
|
+
}
|
28
|
+
exports.default = GenericFile;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Image icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Image component
|
5
|
+
* @returns {JSX.Element} - The Image component
|
6
|
+
* @example
|
7
|
+
* <Image />
|
8
|
+
* @example
|
9
|
+
* <Image height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Image className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Image({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Image icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Image component
|
10
|
+
* @returns {JSX.Element} - The Image component
|
11
|
+
* @example
|
12
|
+
* <Image />
|
13
|
+
* @example
|
14
|
+
* <Image height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Image className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Image({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("path", { d: "m21 17.5h.5v-.5-13c0-.82843-.6716-1.5-1.5-1.5h-16c-.82843 0-1.5.67157-1.5 1.5v13 .5h.5z", fill: "#cce2f6", stroke: "#74b1e6" }),
|
21
|
+
react_1.default.createElement("circle", { cx: "15.5", cy: "8.5", fill: "#fbefd2", r: "3", stroke: "#f0c14f" }),
|
22
|
+
react_1.default.createElement("path", { d: "m21.3749 16.0025.1251.1418v.189 3.6667c0 .8284-.6716 1.5-1.5 1.5h-8.5-1.1506l.7851-.8412 6.2481-6.6944c.6044-.6476 1.6353-.6331 2.2214.031z", fill: "#cee9d8", stroke: "#79c292" }),
|
23
|
+
react_1.default.createElement("path", { d: "m2.62777 13.6262-.12777.1424v.1914 6.04c0 .8284.67157 1.5 1.5 1.5h13 1.0974l-.7201-.8281-9.25697-10.6455c-.59189-.68068-1.64634-.68877-2.2486-.0173z", fill: "#79c292", stroke: "#098934" }),
|
24
|
+
!isDecorative && react_1.default.createElement("title", null, "image icon")));
|
25
|
+
}
|
26
|
+
exports.default = Image;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Audio, Excel, Folder, GenericFile, Image, Page, Pdf, Powerpoint, Site, Video, Word } from '.';
|
2
|
+
declare const MatrixResourceMap: {
|
3
|
+
audio_file: typeof Audio;
|
4
|
+
excel_doc: typeof Excel;
|
5
|
+
folder: typeof Folder;
|
6
|
+
generic_file: typeof GenericFile;
|
7
|
+
image: typeof Image;
|
8
|
+
page_standard: typeof Page;
|
9
|
+
pdf_file: typeof Pdf;
|
10
|
+
powerpoint_doc: typeof Powerpoint;
|
11
|
+
site: typeof Site;
|
12
|
+
video_file: typeof Video;
|
13
|
+
word_doc: typeof Word;
|
14
|
+
};
|
15
|
+
export default MatrixResourceMap;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const _1 = require(".");
|
4
|
+
// Define our map of matrix types to icons
|
5
|
+
const MatrixResourceMap = {
|
6
|
+
audio_file: _1.Audio,
|
7
|
+
excel_doc: _1.Excel,
|
8
|
+
folder: _1.Folder,
|
9
|
+
generic_file: _1.GenericFile,
|
10
|
+
image: _1.Image,
|
11
|
+
page_standard: _1.Page,
|
12
|
+
pdf_file: _1.Pdf,
|
13
|
+
powerpoint_doc: _1.Powerpoint,
|
14
|
+
site: _1.Site,
|
15
|
+
video_file: _1.Video,
|
16
|
+
word_doc: _1.Word,
|
17
|
+
};
|
18
|
+
// Export our map
|
19
|
+
exports.default = MatrixResourceMap;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Page icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Page component
|
5
|
+
* @returns {JSX.Element} - The Page component
|
6
|
+
* @example
|
7
|
+
* <Page />
|
8
|
+
* @example
|
9
|
+
* <Page height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Page className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Page({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Page icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Page component
|
10
|
+
* @returns {JSX.Element} - The Page component
|
11
|
+
* @example
|
12
|
+
* <Page />
|
13
|
+
* @example
|
14
|
+
* <Page height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Page className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Page({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("path", { d: "m4 1.5c-.82843 0-1.5.67157-1.5 1.5v18c0 .8284.67157 1.5 1.5 1.5h16c.8284 0 1.5-.6716 1.5-1.5v-18c0-.82843-.6716-1.5-1.5-1.5z", fill: "#cee9d8", stroke: "#79c292" }),
|
21
|
+
react_1.default.createElement("g", { fill: "#098934" },
|
22
|
+
react_1.default.createElement("rect", { height: "1", rx: ".5", width: "6", x: "6", y: "8" }),
|
23
|
+
react_1.default.createElement("rect", { height: "1", rx: ".5", width: "6", x: "6", y: "10" }),
|
24
|
+
react_1.default.createElement("rect", { height: "1", rx: ".5", width: "12", x: "6", y: "12" }),
|
25
|
+
react_1.default.createElement("rect", { height: "1", rx: ".5", width: "12", x: "6", y: "14" }),
|
26
|
+
react_1.default.createElement("rect", { height: "1", rx: ".5", width: "12", x: "6", y: "16" }),
|
27
|
+
react_1.default.createElement("rect", { height: "1", rx: ".5", width: "12", x: "6", y: "18" })),
|
28
|
+
!isDecorative && react_1.default.createElement("title", null, "page standard icon")));
|
29
|
+
}
|
30
|
+
exports.default = Page;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Pdf icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Pdf component
|
5
|
+
* @returns {JSX.Element} - The Pdf component
|
6
|
+
* @example
|
7
|
+
* <Pdf />
|
8
|
+
* @example
|
9
|
+
* <Pdf height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Pdf className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Pdf({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Pdf icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Pdf component
|
10
|
+
* @returns {JSX.Element} - The Pdf component
|
11
|
+
* @example
|
12
|
+
* <Pdf />
|
13
|
+
* @example
|
14
|
+
* <Pdf height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Pdf className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Pdf({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("path", { d: "m15.9393 3.23223-.3515.35154.3515-.35154c-.4688-.46884-1.1047-.73223-1.7677-.73223h-8.1716c-.82843 0-1.5.67157-1.5 1.5v16c0 .8284.67157 1.5 1.5 1.5h12c.8284 0 1.5-.6716 1.5-1.5v-12.17157c0-.66304-.2634-1.29893-.7322-1.76777z", fill: "#f6d2d1", stroke: "#e88483" }),
|
21
|
+
react_1.default.createElement("path", { d: "m14.5 3v3.5c0 .55228.4477 1 1 1h3.5", stroke: "#e88483" }),
|
22
|
+
react_1.default.createElement("rect", { fill: "#d72321", height: "9", rx: "2", width: "17", y: "11" }),
|
23
|
+
react_1.default.createElement("rect", { fill: "#d72321", height: "7", rx: "1", width: "13", x: "2", y: "12" }),
|
24
|
+
react_1.default.createElement("g", { stroke: "#fff", strokeLinecap: "round" },
|
25
|
+
react_1.default.createElement("path", { d: "m3.5 17.5v-2m0 0v-1.8c0-.1105.08954-.2.2-.2h1c.55228 0 1 .4477 1 1 0 .5523-.44772 1-1 1z" }),
|
26
|
+
react_1.default.createElement("path", { d: "m7.5 17.3v-3.6c0-.1105.08954-.2.2-.2h.3c.82843 0 1.5.6716 1.5 1.5v1c0 .8284-.67157 1.5-1.5 1.5h-.3c-.11046 0-.2-.0895-.2-.2z" }),
|
27
|
+
react_1.default.createElement("path", { d: "m11.5 17.5v-3.8c0-.1105.0895-.2.2-.2h1.8" }),
|
28
|
+
react_1.default.createElement("path", { d: "m11.5 15.5h1" })),
|
29
|
+
!isDecorative && react_1.default.createElement("title", null, "pdf file icon")));
|
30
|
+
}
|
31
|
+
exports.default = Pdf;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Powerpoint icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Powerpoint component
|
5
|
+
* @returns {JSX.Element} - The Powerpoint component
|
6
|
+
* @example
|
7
|
+
* <Powerpoint />
|
8
|
+
* @example
|
9
|
+
* <Powerpoint height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Powerpoint className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Powerpoint({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Powerpoint icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Powerpoint component
|
10
|
+
* @returns {JSX.Element} - The Powerpoint component
|
11
|
+
* @example
|
12
|
+
* <Powerpoint />
|
13
|
+
* @example
|
14
|
+
* <Powerpoint height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Powerpoint className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Powerpoint({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("path", { d: "m15.9393 3.23223-.3515.35154.3515-.35154c-.4688-.46884-1.1047-.73223-1.7677-.73223h-8.1716c-.82843 0-1.5.67157-1.5 1.5v16c0 .8284.67157 1.5 1.5 1.5h12c.8284 0 1.5-.6716 1.5-1.5v-12.17157c0-.66304-.2634-1.29893-.7322-1.76777z", fill: "#e7e7e7", stroke: "#bcbcbc" }),
|
21
|
+
react_1.default.createElement("path", { d: "m14.5 3v3.5c0 .55228.4477 1 1 1h3.5", stroke: "#bcbcbc" }),
|
22
|
+
react_1.default.createElement("rect", { fill: "#e96900", height: "12", rx: "2", width: "12", y: "8" }),
|
23
|
+
react_1.default.createElement("g", { stroke: "#fff", strokeLinecap: "round" },
|
24
|
+
react_1.default.createElement("path", { d: "m3.5 11.5v5" }),
|
25
|
+
react_1.default.createElement("path", { d: "m3.5 11.5h3.5c.33333 0 1.5 0 1.5 1.5s-1.16667 1.5-1.5 1.5h-3" })),
|
26
|
+
!isDecorative && react_1.default.createElement("title", null, "powerpoint doc icon")));
|
27
|
+
}
|
28
|
+
exports.default = Powerpoint;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Site icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Site component
|
5
|
+
* @returns {JSX.Element} - The Site component
|
6
|
+
* @example
|
7
|
+
* <Site />
|
8
|
+
* @example
|
9
|
+
* <Site height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Site className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Site({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Site icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Site component
|
10
|
+
* @returns {JSX.Element} - The Site component
|
11
|
+
* @example
|
12
|
+
* <Site />
|
13
|
+
* @example
|
14
|
+
* <Site height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Site className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Site({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("circle", { cx: "12", cy: "12", fill: "#cce2f5", r: "10.5", stroke: "#7db4e3" }),
|
21
|
+
react_1.default.createElement("path", { d: "m19.5 12c0 2.9434-.8684 5.5878-2.2475 7.4841-1.3795 1.8968-3.2427 3.0159-5.2525 3.0159-2.00976 0-3.87299-1.1191-5.25249-3.0159-1.37913-1.8963-2.24751-4.5407-2.24751-7.4841 0-2.94337.86838-5.58777 2.24751-7.48409 1.3795-1.8968 3.24273-3.01591 5.25249-3.01591 2.0098 0 3.873 1.11911 5.2525 3.01591 1.3791 1.89632 2.2475 4.54072 2.2475 7.48409z", fill: "#cce2f5", stroke: "#7db4e3" }),
|
22
|
+
react_1.default.createElement("path", { d: "m14.5 12c0 3.0063-.3329 5.7099-.8611 7.6466-.265.9719-.5718 1.7223-.8914 2.218-.334.5181-.5981.6354-.7475.6354s-.4135-.1173-.7475-.6354c-.3196-.4957-.6264-1.2461-.8914-2.218-.52822-1.9367-.8611-4.6403-.8611-7.6466 0-3.00626.33288-5.70993.8611-7.64662.265-.97192.5718-1.72231.8914-2.21799.334-.51806.5981-.63539.7475-.63539s.4135.11733.7475.63539c.3196.49568.6264 1.24607.8914 2.21799.5282 1.93669.8611 4.64036.8611 7.64662z", fill: "#cce2f5", stroke: "#7db4e3" }),
|
23
|
+
react_1.default.createElement("g", { fill: "#7db4e3" },
|
24
|
+
react_1.default.createElement("path", { d: "m2 14h20v1h-20z" }),
|
25
|
+
react_1.default.createElement("path", { d: "m2 9h20v1h-20z" }),
|
26
|
+
react_1.default.createElement("path", { d: "m5 4 2.5-1-.5 1h10l-.5-1 2.5 1 .5 1h-15z" }),
|
27
|
+
react_1.default.createElement("path", { d: "m4 19h16l-.5 1-3 1 .5-1h-10l.5 1-3-1z" })),
|
28
|
+
!isDecorative && react_1.default.createElement("title", null, "site icon")));
|
29
|
+
}
|
30
|
+
exports.default = Site;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Video icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Video component
|
5
|
+
* @returns {JSX.Element} - The Video component
|
6
|
+
* @example
|
7
|
+
* <Video />
|
8
|
+
* @example
|
9
|
+
* <Video height={24} width={24} />
|
10
|
+
* @example
|
11
|
+
* <Video className="custom-class" />
|
12
|
+
*/
|
13
|
+
export default function Video({ isDecorative, ...props }: {
|
14
|
+
isDecorative: boolean;
|
15
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Video icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Video component
|
10
|
+
* @returns {JSX.Element} - The Video component
|
11
|
+
* @example
|
12
|
+
* <Video />
|
13
|
+
* @example
|
14
|
+
* <Video height={24} width={24} />
|
15
|
+
* @example
|
16
|
+
* <Video className="custom-class" />
|
17
|
+
*/
|
18
|
+
function Video({ isDecorative, ...props }) {
|
19
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
20
|
+
react_1.default.createElement("rect", { fill: "#e0d9ef", height: "15", rx: "1.5", stroke: "#ac98d5", width: "21", x: "1.5", y: "4.5" }),
|
21
|
+
react_1.default.createElement("path", { d: "m9.5 15.2516v-6.50318c0-.38671.42019-.62704.7535-.43097l5.5277 3.25155c.3287.1934.3287.6686 0 .862l-5.5277 3.2516c-.33331.196-.7535-.0443-.7535-.431z", fill: "#ac98d5", stroke: "#6b47b4", strokeLinecap: "round" }),
|
22
|
+
!isDecorative && react_1.default.createElement("title", null, "video file icon")));
|
23
|
+
}
|
24
|
+
exports.default = Video;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Renders the Word icon
|
4
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Word component
|
5
|
+
* @returns {JSX.Element} - The Word component
|
6
|
+
* @example
|
7
|
+
* <Word />
|
8
|
+
* @example
|
9
|
+
* <Word isDecorative={false} />
|
10
|
+
* @example
|
11
|
+
* <Word height={24} width={24} />
|
12
|
+
* @example
|
13
|
+
* <Word className="custom-class" />
|
14
|
+
*/
|
15
|
+
export default function Word({ isDecorative, ...props }: {
|
16
|
+
isDecorative: boolean;
|
17
|
+
} & React.SVGProps<SVGSVGElement>): JSX.Element;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const react_1 = __importDefault(require("react"));
|
7
|
+
/**
|
8
|
+
* Renders the Word icon
|
9
|
+
* @param {React.SVGProps<SVGSVGElement>} props - The props for the Word component
|
10
|
+
* @returns {JSX.Element} - The Word component
|
11
|
+
* @example
|
12
|
+
* <Word />
|
13
|
+
* @example
|
14
|
+
* <Word isDecorative={false} />
|
15
|
+
* @example
|
16
|
+
* <Word height={24} width={24} />
|
17
|
+
* @example
|
18
|
+
* <Word className="custom-class" />
|
19
|
+
*/
|
20
|
+
function Word({ isDecorative, ...props }) {
|
21
|
+
return (react_1.default.createElement("svg", { fill: "none", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg", ...props },
|
22
|
+
react_1.default.createElement("path", { d: "m15.9393 3.23223-.3515.35154.3515-.35154c-.4688-.46884-1.1047-.73223-1.7677-.73223h-8.1716c-.82843 0-1.5.67157-1.5 1.5v16c0 .8284.67157 1.5 1.5 1.5h12c.8284 0 1.5-.6716 1.5-1.5v-12.17157c0-.66304-.2634-1.29893-.7322-1.76777z", fill: "#e7e7e7", stroke: "#bcbcbc" }),
|
23
|
+
react_1.default.createElement("path", { d: "m14.5 3v3.5c0 .55228.4477 1 1 1h3.5", stroke: "#bcbcbc" }),
|
24
|
+
react_1.default.createElement("rect", { fill: "#0774d2", height: "12", rx: "2", width: "12", y: "8" }),
|
25
|
+
react_1.default.createElement("path", { d: "m2.5 11.5 1.5 5 2-5 2 5 1.5-5", stroke: "#fff", strokeLinecap: "round", strokeLinejoin: "round" }),
|
26
|
+
!isDecorative && react_1.default.createElement("title", null, "word doc icon")));
|
27
|
+
}
|
28
|
+
exports.default = Word;
|