@team-monolith/cds 0.8.0 → 0.8.1

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.
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export { default as customClassSvg } from "./custom/class.svg";
3
+ export declare const CustomClassIcon: (props: {
4
+ className?: string;
5
+ }) => JSX.Element;
6
+ export { default as customMaterialSvg } from "./custom/material.svg";
7
+ export declare const CustomMaterialIcon: (props: {
8
+ className?: string;
9
+ }) => JSX.Element;
10
+ export { default as customProblemSvg } from "./custom/problem.svg";
11
+ export declare const CustomProblemIcon: (props: {
12
+ className?: string;
13
+ }) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ export { default as customClassSvg } from "./custom/class.svg";
14
+ export var CustomClassIcon = function (props) { return (_jsxs("svg", __assign({}, props, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { x: "1.5", y: "1.5", width: "21", height: "21", rx: "10", fill: "#FFFAE6" }), _jsxs("g", __assign({ "clip-path": "url(#clip0_383_3227)" }, { children: [_jsx("path", { d: "M11.799 12.0505C11.5969 11.6463 11.1122 11.5053 10.7086 11.7074L9.214 12.4747C9.214 12.4747 8.3862 11.889 8.12359 11.7074C7.96202 11.5864 7.45736 11.1822 6.97208 11.0207C6.44685 10.8391 5.07326 10.7175 4.68962 11.6264C4.28541 12.5758 4.34651 15.0192 4.36649 16.7764C4.36649 16.938 4.46754 17.0391 4.6291 17.0391H7.51728C7.69882 17.0391 7.75992 16.938 7.7799 16.7964C7.79987 16.7153 7.96144 14.7161 7.94146 13.8477V13.5446L8.70874 14.0698C8.85033 14.1709 8.99133 14.2114 9.1529 14.2114C9.27392 14.2114 9.39554 14.1914 9.51656 14.1303L11.4553 13.1204C11.8595 12.9183 12.0005 12.4336 11.7984 12.05L11.799 12.0505Z", fill: "#FF9100" }), _jsx("path", { d: "M19.1646 7.1225H9.9543C9.69168 7.1225 9.4696 7.34457 9.4696 7.60719V10.8167L9.83503 10.6293C10.1335 10.4801 10.4531 10.4043 10.7703 10.4043C11.5312 10.4043 12.215 10.8232 12.5575 11.4977C12.8019 11.9688 12.8489 12.5276 12.6862 13.0322C12.5211 13.5463 12.1627 13.9628 11.678 14.2049L9.75689 15.2054C9.66289 15.2524 9.56654 15.2894 9.47019 15.3206V16.4932C9.47019 16.7558 9.69227 16.9779 9.95488 16.9779H19.1646C19.4272 16.9779 19.6493 16.7558 19.6493 16.4932V7.60719C19.6493 7.34457 19.4272 7.1225 19.1646 7.1225Z", fill: "#FFE98A" }), _jsx("path", { d: "M6.36587 10.4754C7.33636 10.4754 8.1231 9.68866 8.1231 8.71817C8.1231 7.74768 7.33636 6.96094 6.36587 6.96094C5.39538 6.96094 4.60864 7.74768 4.60864 8.71817C4.60864 9.68866 5.39538 10.4754 6.36587 10.4754Z", fill: "#FF9100" })] })), _jsx("defs", { children: _jsx("clipPath", __assign({ id: "clip0_383_3227" }, { children: _jsx("rect", { width: "18", height: "18", fill: "white", transform: "translate(3 3)" }) })) })] }))); };
15
+ export { default as customMaterialSvg } from "./custom/material.svg";
16
+ export var CustomMaterialIcon = function (props) { return (_jsxs("svg", __assign({}, props, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { x: "1.5", y: "1.5", width: "21", height: "21", rx: "10", fill: "#ECF3FF" }), _jsx("path", { d: "M17.1114 5.25H7.26359C6.97994 5.25 6.75 5.47395 6.75 5.7502V18.9998C6.75 19.2761 6.97994 19.5 7.26359 19.5H17.1114C17.3951 19.5 17.625 19.2761 17.625 18.9998V5.7502C17.625 5.47395 17.3951 5.25 17.1114 5.25Z", fill: "#C5DBFF" }), _jsx("path", { d: "M15.1912 7.12494H9.18378C8.46096 7.12494 7.875 7.71242 7.875 8.43711V8.43776C7.875 9.16246 8.46096 9.74994 9.18378 9.74994H15.1912C15.914 9.74994 16.5 9.16246 16.5 8.43776V8.43711C16.5 7.71242 15.914 7.12494 15.1912 7.12494Z", fill: "#82ACE8" }), _jsx("path", { d: "M15.7961 11.25H8.57891C8.39726 11.25 8.25 11.4179 8.25 11.625C8.25 11.8321 8.39726 12 8.57891 12H15.7961C15.9777 12 16.125 11.8321 16.125 11.625C16.125 11.4179 15.9777 11.25 15.7961 11.25Z", fill: "#82ACE8" }), _jsx("path", { d: "M11.8931 13.8287L8.73224 12.4227C8.66206 12.3911 8.58466 12.375 8.50595 12.375H5.76424C5.48023 12.375 5.25 12.5843 5.25 12.8425V19.0325C5.25 19.2907 5.48023 19.5 5.76424 19.5H18.2358C18.5198 19.5 18.75 19.2907 18.75 19.0325V14.3439C18.75 14.0857 18.5198 13.8764 18.2358 13.8764H12.1194C12.0413 13.8764 11.9639 13.8603 11.8931 13.8287Z", fill: "#5599FF" })] }))); };
17
+ export { default as customProblemSvg } from "./custom/problem.svg";
18
+ export var CustomProblemIcon = function (props) { return (_jsxs("svg", __assign({}, props, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { x: "1.5", y: "1.5", width: "21", height: "21", rx: "10", fill: "#F4FAE8" }), _jsx("path", { d: "M17.6719 8.48577V18.9031C17.6719 19.2326 17.4052 19.5 17.0766 19.5H7.33644C7.0079 19.5 6.74121 19.2326 6.74121 18.9031V5.34721C6.74121 5.01771 7.0079 4.75024 7.33644 4.75024H13.9472C14.1053 4.75024 14.2565 4.81297 14.3685 4.92534L17.4973 8.06321C17.6086 8.17488 17.6719 8.32722 17.6719 8.48577Z", fill: "#B3ECCD" }), _jsx("path", { d: "M13.9912 4.94874V8.28721C13.9912 8.39681 14.0799 8.48505 14.1885 8.48505H17.4732C17.6485 8.48505 17.7372 8.27273 17.6141 8.14796L14.3294 4.80949C14.205 4.68334 13.9912 4.77158 13.9912 4.94874Z", fill: "#43C422" }), _jsx("path", { d: "M8.74482 13.1685C8.87885 13.1086 8.97439 13.0148 9.03212 12.888C9.08986 12.7611 9.11873 12.5922 9.11873 12.382V11.7064C9.11873 11.2356 9.20258 10.8785 9.37029 10.6345C9.538 10.3905 9.76138 10.2278 10.0398 10.1465C10.3181 10.0651 10.6962 10.0251 11.1732 10.0251V10.9682C10.9415 10.9682 10.7642 10.9985 10.6419 11.0585C10.5195 11.1184 10.435 11.2101 10.3889 11.3335C10.3429 11.4569 10.3202 11.6223 10.3202 11.8305V12.7198C10.3202 12.9479 10.2624 13.1437 10.1477 13.3071C10.0329 13.4705 9.81981 13.6028 9.50845 13.7035C9.19708 13.8048 8.762 13.8551 8.20251 13.8551V13.2602C8.43002 13.2602 8.61079 13.2299 8.74482 13.1699V13.1685ZM8.20251 13.2588H9.25963V14.3942H8.20251V13.2588ZM10.0398 17.5121C9.76138 17.4321 9.538 17.2694 9.37029 17.0254C9.20258 16.7814 9.11873 16.4236 9.11873 15.9535V15.2745C9.11873 15.0642 9.08986 14.8953 9.03212 14.7671C8.97439 14.6389 8.87816 14.5451 8.74482 14.4845C8.61079 14.4245 8.43002 14.3942 8.20251 14.3942V13.8027C8.76132 13.8027 9.19708 13.8524 9.50845 13.9516C9.81981 14.0509 10.0329 14.1832 10.1477 14.348C10.2624 14.5134 10.3202 14.7099 10.3202 14.9381V15.8273C10.3202 16.0355 10.3429 16.2009 10.3889 16.3243C10.435 16.4477 10.5188 16.5394 10.6419 16.5994C10.7649 16.6593 10.9415 16.6897 11.1732 16.6897V17.6327C10.6962 17.6327 10.3181 17.5927 10.0398 17.5127V17.5121Z", fill: "#1FBB26" }), _jsx("path", { d: "M14.3733 10.1443C14.6516 10.2243 14.875 10.3863 15.0427 10.631C15.2104 10.875 15.2943 11.2328 15.2943 11.7029V12.3819C15.2943 12.5922 15.3232 12.7617 15.3809 12.8893C15.4386 13.0175 15.5349 13.1112 15.6682 13.1719C15.8016 13.2326 15.983 13.2622 16.2105 13.2622V13.8536C15.6517 13.8536 15.2159 13.804 14.9046 13.7048C14.5932 13.6055 14.3802 13.4731 14.2654 13.3084C14.1506 13.1429 14.0935 12.9465 14.0935 12.7183V11.8291C14.0935 11.6209 14.0709 11.4554 14.0248 11.332C13.9788 11.2087 13.8942 11.117 13.7719 11.057C13.6495 10.997 13.4722 10.9667 13.2406 10.9667V10.0237C13.7176 10.0237 14.0956 10.0637 14.374 10.1436L14.3733 10.1443ZM15.6682 14.4872C15.5342 14.5471 15.4386 14.6409 15.3809 14.7677C15.3232 14.8952 15.2943 15.0634 15.2943 15.2737V15.9492C15.2943 16.4201 15.2104 16.7771 15.0427 17.0212C14.875 17.2652 14.6516 17.4279 14.3733 17.5092C14.0949 17.5906 13.7169 17.6305 13.2399 17.6305V16.6875C13.4715 16.6875 13.6488 16.6572 13.7712 16.5972C13.8935 16.5372 13.9781 16.4456 14.0241 16.3222C14.0702 16.1988 14.0928 16.0333 14.0928 15.8252V14.9359C14.0928 14.7077 14.1499 14.512 14.2647 14.3486C14.3795 14.1852 14.5925 14.0536 14.9039 13.9522C15.2153 13.8509 15.6503 13.8006 16.2098 13.8006V14.3955C15.9823 14.3955 15.8016 14.4258 15.6675 14.4858L15.6682 14.4872ZM16.2105 14.3968H15.1534V13.2615H16.2105V14.3968Z", fill: "#1FBB26" })] }))); };
@@ -0,0 +1,13 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1.5" y="1.5" width="21" height="21" rx="10" fill="#FFFAE6"/>
3
+ <g clip-path="url(#clip0_383_3227)">
4
+ <path d="M11.799 12.0505C11.5969 11.6463 11.1122 11.5053 10.7086 11.7074L9.214 12.4747C9.214 12.4747 8.3862 11.889 8.12359 11.7074C7.96202 11.5864 7.45736 11.1822 6.97208 11.0207C6.44685 10.8391 5.07326 10.7175 4.68962 11.6264C4.28541 12.5758 4.34651 15.0192 4.36649 16.7764C4.36649 16.938 4.46754 17.0391 4.6291 17.0391H7.51728C7.69882 17.0391 7.75992 16.938 7.7799 16.7964C7.79987 16.7153 7.96144 14.7161 7.94146 13.8477V13.5446L8.70874 14.0698C8.85033 14.1709 8.99133 14.2114 9.1529 14.2114C9.27392 14.2114 9.39554 14.1914 9.51656 14.1303L11.4553 13.1204C11.8595 12.9183 12.0005 12.4336 11.7984 12.05L11.799 12.0505Z" fill="#FF9100"/>
5
+ <path d="M19.1646 7.1225H9.9543C9.69168 7.1225 9.4696 7.34457 9.4696 7.60719V10.8167L9.83503 10.6293C10.1335 10.4801 10.4531 10.4043 10.7703 10.4043C11.5312 10.4043 12.215 10.8232 12.5575 11.4977C12.8019 11.9688 12.8489 12.5276 12.6862 13.0322C12.5211 13.5463 12.1627 13.9628 11.678 14.2049L9.75689 15.2054C9.66289 15.2524 9.56654 15.2894 9.47019 15.3206V16.4932C9.47019 16.7558 9.69227 16.9779 9.95488 16.9779H19.1646C19.4272 16.9779 19.6493 16.7558 19.6493 16.4932V7.60719C19.6493 7.34457 19.4272 7.1225 19.1646 7.1225Z" fill="#FFE98A"/>
6
+ <path d="M6.36587 10.4754C7.33636 10.4754 8.1231 9.68866 8.1231 8.71817C8.1231 7.74768 7.33636 6.96094 6.36587 6.96094C5.39538 6.96094 4.60864 7.74768 4.60864 8.71817C4.60864 9.68866 5.39538 10.4754 6.36587 10.4754Z" fill="#FF9100"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_383_3227">
10
+ <rect width="18" height="18" fill="white" transform="translate(3 3)"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1.5" y="1.5" width="21" height="21" rx="10" fill="#ECF3FF"/>
3
+ <path d="M17.1114 5.25H7.26359C6.97994 5.25 6.75 5.47395 6.75 5.7502V18.9998C6.75 19.2761 6.97994 19.5 7.26359 19.5H17.1114C17.3951 19.5 17.625 19.2761 17.625 18.9998V5.7502C17.625 5.47395 17.3951 5.25 17.1114 5.25Z" fill="#C5DBFF"/>
4
+ <path d="M15.1912 7.12494H9.18378C8.46096 7.12494 7.875 7.71242 7.875 8.43711V8.43776C7.875 9.16246 8.46096 9.74994 9.18378 9.74994H15.1912C15.914 9.74994 16.5 9.16246 16.5 8.43776V8.43711C16.5 7.71242 15.914 7.12494 15.1912 7.12494Z" fill="#82ACE8"/>
5
+ <path d="M15.7961 11.25H8.57891C8.39726 11.25 8.25 11.4179 8.25 11.625C8.25 11.8321 8.39726 12 8.57891 12H15.7961C15.9777 12 16.125 11.8321 16.125 11.625C16.125 11.4179 15.9777 11.25 15.7961 11.25Z" fill="#82ACE8"/>
6
+ <path d="M11.8931 13.8287L8.73224 12.4227C8.66206 12.3911 8.58466 12.375 8.50595 12.375H5.76424C5.48023 12.375 5.25 12.5843 5.25 12.8425V19.0325C5.25 19.2907 5.48023 19.5 5.76424 19.5H18.2358C18.5198 19.5 18.75 19.2907 18.75 19.0325V14.3439C18.75 14.0857 18.5198 13.8764 18.2358 13.8764H12.1194C12.0413 13.8764 11.9639 13.8603 11.8931 13.8287Z" fill="#5599FF"/>
7
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1.5" y="1.5" width="21" height="21" rx="10" fill="#F4FAE8"/>
3
+ <path d="M17.6719 8.48577V18.9031C17.6719 19.2326 17.4052 19.5 17.0766 19.5H7.33644C7.0079 19.5 6.74121 19.2326 6.74121 18.9031V5.34721C6.74121 5.01771 7.0079 4.75024 7.33644 4.75024H13.9472C14.1053 4.75024 14.2565 4.81297 14.3685 4.92534L17.4973 8.06321C17.6086 8.17488 17.6719 8.32722 17.6719 8.48577Z" fill="#B3ECCD"/>
4
+ <path d="M13.9912 4.94874V8.28721C13.9912 8.39681 14.0799 8.48505 14.1885 8.48505H17.4732C17.6485 8.48505 17.7372 8.27273 17.6141 8.14796L14.3294 4.80949C14.205 4.68334 13.9912 4.77158 13.9912 4.94874Z" fill="#43C422"/>
5
+ <path d="M8.74482 13.1685C8.87885 13.1086 8.97439 13.0148 9.03212 12.888C9.08986 12.7611 9.11873 12.5922 9.11873 12.382V11.7064C9.11873 11.2356 9.20258 10.8785 9.37029 10.6345C9.538 10.3905 9.76138 10.2278 10.0398 10.1465C10.3181 10.0651 10.6962 10.0251 11.1732 10.0251V10.9682C10.9415 10.9682 10.7642 10.9985 10.6419 11.0585C10.5195 11.1184 10.435 11.2101 10.3889 11.3335C10.3429 11.4569 10.3202 11.6223 10.3202 11.8305V12.7198C10.3202 12.9479 10.2624 13.1437 10.1477 13.3071C10.0329 13.4705 9.81981 13.6028 9.50845 13.7035C9.19708 13.8048 8.762 13.8551 8.20251 13.8551V13.2602C8.43002 13.2602 8.61079 13.2299 8.74482 13.1699V13.1685ZM8.20251 13.2588H9.25963V14.3942H8.20251V13.2588ZM10.0398 17.5121C9.76138 17.4321 9.538 17.2694 9.37029 17.0254C9.20258 16.7814 9.11873 16.4236 9.11873 15.9535V15.2745C9.11873 15.0642 9.08986 14.8953 9.03212 14.7671C8.97439 14.6389 8.87816 14.5451 8.74482 14.4845C8.61079 14.4245 8.43002 14.3942 8.20251 14.3942V13.8027C8.76132 13.8027 9.19708 13.8524 9.50845 13.9516C9.81981 14.0509 10.0329 14.1832 10.1477 14.348C10.2624 14.5134 10.3202 14.7099 10.3202 14.9381V15.8273C10.3202 16.0355 10.3429 16.2009 10.3889 16.3243C10.435 16.4477 10.5188 16.5394 10.6419 16.5994C10.7649 16.6593 10.9415 16.6897 11.1732 16.6897V17.6327C10.6962 17.6327 10.3181 17.5927 10.0398 17.5127V17.5121Z" fill="#1FBB26"/>
6
+ <path d="M14.3733 10.1443C14.6516 10.2243 14.875 10.3863 15.0427 10.631C15.2104 10.875 15.2943 11.2328 15.2943 11.7029V12.3819C15.2943 12.5922 15.3232 12.7617 15.3809 12.8893C15.4386 13.0175 15.5349 13.1112 15.6682 13.1719C15.8016 13.2326 15.983 13.2622 16.2105 13.2622V13.8536C15.6517 13.8536 15.2159 13.804 14.9046 13.7048C14.5932 13.6055 14.3802 13.4731 14.2654 13.3084C14.1506 13.1429 14.0935 12.9465 14.0935 12.7183V11.8291C14.0935 11.6209 14.0709 11.4554 14.0248 11.332C13.9788 11.2087 13.8942 11.117 13.7719 11.057C13.6495 10.997 13.4722 10.9667 13.2406 10.9667V10.0237C13.7176 10.0237 14.0956 10.0637 14.374 10.1436L14.3733 10.1443ZM15.6682 14.4872C15.5342 14.5471 15.4386 14.6409 15.3809 14.7677C15.3232 14.8952 15.2943 15.0634 15.2943 15.2737V15.9492C15.2943 16.4201 15.2104 16.7771 15.0427 17.0212C14.875 17.2652 14.6516 17.4279 14.3733 17.5092C14.0949 17.5906 13.7169 17.6305 13.2399 17.6305V16.6875C13.4715 16.6875 13.6488 16.6572 13.7712 16.5972C13.8935 16.5372 13.9781 16.4456 14.0241 16.3222C14.0702 16.1988 14.0928 16.0333 14.0928 15.8252V14.9359C14.0928 14.7077 14.1499 14.512 14.2647 14.3486C14.3795 14.1852 14.5925 14.0536 14.9039 13.9522C15.2153 13.8509 15.6503 13.8006 16.2098 13.8006V14.3955C15.9823 14.3955 15.8016 14.4258 15.6675 14.4858L15.6682 14.4872ZM16.2105 14.3968H15.1534V13.2615H16.2105V14.3968Z" fill="#1FBB26"/>
7
+ </svg>
package/dist/index.d.ts CHANGED
@@ -38,3 +38,4 @@ export * from "./patterns/Table";
38
38
  export { default as CodleDesignSystemProvider } from "./CodleDesignSystemProvider";
39
39
  export { light } from "./CodleDesignSystemProvider";
40
40
  export * from "./icons";
41
+ export * from "./icons/Custom";
package/dist/index.js CHANGED
@@ -38,3 +38,4 @@ export * from "./patterns/Table";
38
38
  export { default as CodleDesignSystemProvider } from "./CodleDesignSystemProvider";
39
39
  export { light } from "./CodleDesignSystemProvider";
40
40
  export * from "./icons";
41
+ export * from "./icons/Custom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {