@team-monolith/cds 1.22.1 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,25 @@ const COLOR_TO_SWITCH_BUTTON_STYLE = (theme, color, isOn) => ({
20
20
  ${isOn
21
21
  ? css `
22
22
  background: ${theme.color.background.neutralAltActive};
23
- opacity: 0.6;
23
+ span {
24
+ opacity: 1;
25
+ font-weight: 700;
26
+ }
27
+ svg {
28
+ opacity: 1;
29
+ }
24
30
  `
25
31
  : css `
26
32
  background: ${theme.color.background.neutralAlt};
27
- opacity: 0.6;
33
+ span,
34
+ svg {
35
+ opacity: 0.6;
36
+ }
28
37
  ${HOVER(css `
29
- opacity: 1;
38
+ span,
39
+ svg {
40
+ opacity: 1;
41
+ }
30
42
  `)}
31
43
  `}
32
44
  `,
@@ -34,13 +46,25 @@ const COLOR_TO_SWITCH_BUTTON_STYLE = (theme, color, isOn) => ({
34
46
  ${isOn
35
47
  ? css `
36
48
  background: ${theme.color.background.neutralAlt};
37
- opacity: 0.6;
49
+ span {
50
+ opacity: 1;
51
+ font-weight: 700;
52
+ }
53
+ svg {
54
+ opacity: 1;
55
+ }
38
56
  `
39
57
  : css `
40
58
  background: ${theme.color.background.neutralBase};
41
- opacity: 0.6;
59
+ span,
60
+ svg {
61
+ opacity: 0.6;
62
+ }
42
63
  ${HOVER(css `
43
- opacity: 1;
64
+ span,
65
+ svg {
66
+ opacity: 1;
67
+ }
44
68
  `)}
45
69
  `}
46
70
  `,
@@ -48,13 +72,25 @@ const COLOR_TO_SWITCH_BUTTON_STYLE = (theme, color, isOn) => ({
48
72
  ${isOn
49
73
  ? css `
50
74
  background: ${theme.color.background.neutralAlt};
51
- opacity: 0.6;
75
+ span {
76
+ opacity: 1;
77
+ font-weight: 700;
78
+ }
79
+ svg {
80
+ opacity: 1;
81
+ }
52
82
  `
53
83
  : css `
54
84
  background: none;
55
- opacity: 0.6;
85
+ span,
86
+ svg {
87
+ opacity: 0.6;
88
+ }
56
89
  ${HOVER(css `
57
- opacity: 1;
90
+ span,
91
+ svg {
92
+ opacity: 1;
93
+ }
58
94
  `)}
59
95
  `}
60
96
  `,
@@ -19,12 +19,10 @@ export declare const CustomSymbolIcon: React.ForwardRefExoticComponent<{
19
19
  export declare const customGoogleSvg: string;
20
20
  export declare const CustomGoogleIcon: React.ForwardRefExoticComponent<{
21
21
  className?: string | undefined;
22
- color?: string | undefined;
23
22
  } & React.RefAttributes<any>>;
24
23
  export declare const customWhaleSvg: string;
25
24
  export declare const CustomWhaleIcon: React.ForwardRefExoticComponent<{
26
25
  className?: string | undefined;
27
- color?: string | undefined;
28
26
  } & React.RefAttributes<any>>;
29
27
  export declare const customJudgeColorSvg: string;
30
28
  export declare const CustomJudgeColorIcon: React.ForwardRefExoticComponent<{
@@ -18,10 +18,10 @@ export const customSymbolSvg = customSymbolSvgImport;
18
18
  export const CustomSymbolIcon = forwardRef((props, ref) => (_jsx("svg", Object.assign({}, props, { ref: ref, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { fill: "currentColor", d: "M11.8927 2C6.98164 2 3 5.80096 3 10.4903C3 14.0308 5.26988 17.0622 8.4957 18.336C9.05262 18.5557 9.36122 19.1512 9.19366 19.7238L8.83323 20.9592C8.66206 21.5427 9.17196 22.1009 9.76987 21.9845C11.478 21.6495 14.564 20.7587 17.0701 18.4644C19.9898 15.7908 20.7854 12.9527 20.7854 10.4915C20.7854 5.80337 16.8037 2.0012 11.8927 2.0012V2Z" }) }))));
19
19
  import customGoogleSvgImport from "./custom/google.svg";
20
20
  export const customGoogleSvg = customGoogleSvgImport;
21
- export const CustomGoogleIcon = forwardRef((props, ref) => (_jsx("svg", Object.assign({}, props, { ref: ref, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M3.06364 7.50914C4.70909 4.24092 8.09084 2 12 2C14.6954 2 16.959 2.99095 18.6909 4.60455L15.8227 7.47274C14.7864 6.48185 13.4681 5.97727 12 5.97727C9.39542 5.97727 7.19084 7.73637 6.40455 10.1C6.2045 10.7 6.09086 11.3409 6.09086 12C6.09086 12.6591 6.2045 13.3 6.40455 13.9C7.19084 16.2636 9.39542 18.0227 12 18.0227C13.3454 18.0227 14.4909 17.6682 15.3864 17.0682C16.4454 16.3591 17.15 15.3 17.3818 14.05H12V10.1818H21.4181C21.5364 10.8363 21.6 11.5182 21.6 12.2273C21.6 15.2727 20.5091 17.8363 18.6181 19.5773C16.9636 21.1046 14.7 22 12 22C8.09084 22 4.70909 19.7591 3.06364 16.4909C2.38638 15.1409 2 13.6136 2 12C2 10.3864 2.38638 8.85911 3.06364 7.50914Z", fill: "currentColor" }) }))));
21
+ export const CustomGoogleIcon = forwardRef((props, ref) => (_jsxs("svg", Object.assign({}, props, { ref: ref, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M21.8 12.2273C21.8 11.5182 21.7364 10.8364 21.6182 10.1818H12.2V14.05H17.5818C17.35 15.3 16.6455 16.3591 15.5864 17.0682V19.5773H18.8182C20.7091 17.8364 21.8 15.2727 21.8 12.2273Z", fill: "#4285F4" }), _jsx("path", { d: "M12.2 22C14.9 22 17.1635 21.1045 18.818 19.5773L15.5862 17.0682C14.6908 17.6682 13.5454 18.0227 12.2 18.0227C9.59535 18.0227 7.39085 16.2636 6.60445 13.9H3.26355V16.4909C4.90905 19.7591 8.29085 22 12.2 22Z", fill: "#34A853" }), _jsx("path", { d: "M6.60445 13.9C6.40445 13.3 6.29085 12.6591 6.29085 12C6.29085 11.3409 6.40445 10.7 6.60445 10.1V7.50909H3.26355C2.58635 8.85909 2.19995 10.3864 2.19995 12C2.19995 13.6136 2.58635 15.1409 3.26355 16.4909L6.60445 13.9Z", fill: "#FBBC04" }), _jsx("path", { d: "M12.2 5.9773C13.6681 5.9773 14.9863 6.4818 16.0227 7.4727L18.8909 4.6045C17.1591 2.9909 14.8954 2 12.2 2C8.29085 2 4.90905 4.2409 3.26355 7.5091L6.60445 10.1C7.39085 7.7364 9.59535 5.9773 12.2 5.9773Z", fill: "#E94235" })] }))));
22
22
  import customWhaleSvgImport from "./custom/whale.svg";
23
23
  export const customWhaleSvg = customWhaleSvgImport;
24
- export const CustomWhaleIcon = forwardRef((props, ref) => (_jsxs("svg", Object.assign({}, props, { ref: ref, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M13.834 5.80006C12.7674 6.51562 11.9359 7.17053 11.2243 7.73094C9.69999 8.93152 8.72638 9.69833 7.17354 9.69833C5.3568 9.69833 2.43202 7.88378 3.45298 4.28945C3.46442 4.26459 3.46614 4.23632 3.45779 4.21025C3.44944 4.18419 3.43165 4.16226 3.40796 4.14882C3.38264 4.13564 3.35343 4.13223 3.32579 4.13919C3.29816 4.14613 3.27398 4.16301 3.25781 4.18662C1.78218 6.32766 1.13261 8.93724 1.43085 11.5261C1.7291 14.1151 2.95467 16.5055 4.87785 18.2495C3.97843 19.1515 2.91239 19.8677 1.73986 20.3574C1.71407 20.3695 1.69226 20.3889 1.67698 20.4131C1.6617 20.4373 1.6536 20.4654 1.6536 20.4942C1.6536 20.5229 1.6617 20.551 1.67698 20.5752C1.69226 20.5995 1.71407 20.6188 1.73986 20.6311C3.70974 21.2359 6.05046 21.1059 7.87921 20.1774L7.89722 20.1682C8.47353 19.8761 9.01631 19.5211 9.51577 19.1098C10.1437 18.6346 10.6948 18.0643 11.1493 17.4193C12.0817 16.1083 13.0711 14.0805 14.1897 11.1727C15.7272 7.1761 17.9973 5.21638 20.2885 4.20476C20.3577 4.17452 20.4281 4.14579 20.4988 4.12008C20.5693 4.09438 20.5588 4.046 20.4988 4.0354C20.3953 4.0178 20.2912 4.00568 20.1864 3.99912C19.1804 3.9235 16.628 3.9235 13.834 5.80006Z", fill: "currentColor" }), _jsx("path", { d: "M20.9522 4.47713L20.8396 4.51192C18.2391 5.43581 16.0276 8.04272 14.5922 11.8427C13.6102 14.4572 12.7619 16.1779 11.756 17.5994C11.305 18.2428 10.7569 18.8112 10.1314 19.2839C9.80568 19.5468 9.4609 19.7849 9.09992 19.9961L8.46783 20.3726C10.5586 21.1145 12.8272 21.1799 14.9568 20.5599C17.0863 19.9398 18.9703 18.6653 20.3455 16.9143C21.7208 15.1634 22.5185 13.0234 22.6272 10.7936C22.736 8.56377 22.1504 6.35543 20.9522 4.47713Z", fill: "currentColor" })] }))));
24
+ export const CustomWhaleIcon = forwardRef((props, ref) => (_jsxs("svg", Object.assign({}, props, { ref: ref, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M11.1452 17.3571C12.1002 16.0221 12.8752 14.1821 14.0402 11.2271C15.8452 6.66707 17.2702 4.98207 20.8852 3.76207C20.8852 3.76207 17.5852 3.06207 13.8852 5.52207C10.4502 7.81207 9.38522 9.49207 7.06022 9.49207C6.40778 9.47711 5.76812 9.30813 5.19342 8.9989C4.61873 8.68968 4.12527 8.24897 3.75332 7.71274C3.38137 7.1765 3.14146 6.55993 3.05315 5.91332C2.96485 5.26672 3.03066 4.6084 3.24522 3.99207C3.25754 3.96749 3.25973 3.93905 3.25132 3.91287C3.2429 3.88669 3.22456 3.86486 3.20022 3.85207C3.17425 3.83729 3.14355 3.8332 3.11461 3.84067C3.08568 3.84814 3.06079 3.86657 3.04522 3.89207C1.5328 6.07067 0.866971 8.72613 1.17257 11.3606C1.47818 13.995 2.73422 16.4275 4.70522 18.2021C3.78258 19.1185 2.69069 19.847 1.49022 20.3471C1.46192 20.358 1.43758 20.3772 1.42042 20.4021C1.40326 20.4271 1.39407 20.4567 1.39407 20.4871C1.39407 20.5174 1.40326 20.547 1.42042 20.572C1.43758 20.597 1.46192 20.6162 1.49022 20.6271C3.5738 21.2563 5.81671 21.0907 7.78522 20.1621C8.37776 19.8703 8.93476 19.5112 9.44522 19.0921C10.1001 18.6073 10.6738 18.0216 11.1452 17.3571ZM12.0102 9.40707C12.1464 9.39082 12.2843 9.41643 12.4055 9.4805C12.5268 9.54457 12.6257 9.64406 12.689 9.76571C12.7523 9.88737 12.777 10.0254 12.7599 10.1615C12.7428 10.2976 12.6847 10.4252 12.5932 10.5274C12.5018 10.6296 12.3814 10.7015 12.248 10.7336C12.1147 10.7657 11.9748 10.7564 11.8468 10.7069C11.7189 10.6575 11.6091 10.5702 11.532 10.4568C11.4549 10.3434 11.4142 10.2092 11.4152 10.0721C11.407 9.90525 11.4649 9.74191 11.5762 9.61744C11.6876 9.49297 11.8435 9.41738 12.0102 9.40707Z", fill: "#193A97" }), _jsx("path", { d: "M21.1501 4.37203C17.7951 5.50703 16.3901 7.04703 14.6151 11.542C13.4951 14.387 12.6801 16.357 11.6601 17.777C11.1654 18.4757 10.5649 19.0931 9.88015 19.607C9.49226 19.9166 9.08104 20.1958 8.65015 20.442C9.73758 20.8095 10.8773 20.9986 12.0251 21.002C13.9701 21.0018 15.8797 20.4813 17.5558 19.4946C19.2319 18.5078 20.6137 17.0908 21.5578 15.3903C22.5019 13.6898 22.974 11.7677 22.9252 9.82335C22.8763 7.87896 22.3084 5.98302 21.2801 4.33203L21.1501 4.37203Z", fill: "#193A97" })] }))));
25
25
  import customJudgeColorSvgImport from "./custom/judge-color.svg";
26
26
  export const customJudgeColorSvg = customJudgeColorSvgImport;
27
27
  export const CustomJudgeColorIcon = forwardRef((props, ref) => (_jsxs("svg", Object.assign({}, props, { ref: ref, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M20 7V20C20 20.5304 19.7893 21.0391 19.4142 21.4142C19.0391 21.7893 18.5304 22 18 22H6C5.46957 22 4.96086 21.7893 4.58578 21.4142C4.21071 21.0391 4 20.5304 4 20V4C4 3.46957 4.21071 2.96083 4.58578 2.58575C4.96086 2.21068 5.46957 2 6 2H15L20 7Z", fill: "#B3ECCD" }), _jsx("path", { d: "M16 7H20L15 2V6C15 6.26522 15.1054 6.51956 15.2929 6.70709C15.4804 6.89463 15.7348 7 16 7Z", fill: "#1FBB26" }), _jsx("path", { d: "M6.81263 12.9609C6.81263 12.9603 6.81302 12.9597 6.81362 12.9594C7.01394 12.8648 7.15678 12.7171 7.24316 12.5174C7.32967 12.3173 7.37293 12.051 7.37293 11.7194V10.654C7.37293 9.91148 7.49858 9.34834 7.74989 8.96348C8.0012 8.57863 8.33594 8.32206 8.75307 8.19378C9.01344 8.1137 9.33201 8.05904 9.70852 8.02927C10.1179 7.9969 10.4515 8.33537 10.4515 8.74605V8.74605C10.4515 9.15674 10.1001 9.44408 9.72086 9.60171C9.69795 9.61123 9.6761 9.62136 9.65531 9.63208C9.47198 9.72666 9.34529 9.87126 9.27629 10.0659C9.20728 10.2605 9.17329 10.5214 9.17329 10.8497V12.2521C9.17329 12.612 9.08677 12.9207 8.91477 13.1784C8.74277 13.436 8.42348 13.6448 7.95691 13.8035C7.5813 13.9321 7.08554 14.0087 6.46908 14.0336C6.21022 14.0441 6 13.8326 6 13.5736V13.5736C6 13.3145 6.21208 13.1132 6.46706 13.0672C6.59862 13.0436 6.71349 13.0086 6.81166 12.9625C6.81226 12.9622 6.81263 12.9616 6.81263 12.9609V12.9609ZM6 13.8943C6 13.4569 6.35461 13.1023 6.79203 13.1023V13.1023C7.22946 13.1023 7.58407 13.4569 7.58407 13.8943V13.9975C7.58407 14.492 7.18324 14.8928 6.6888 14.8928H6V13.8943ZM8.75307 19.8105C8.75307 19.8102 8.75286 19.8099 8.75255 19.8098C8.33566 19.6837 8.0011 19.4272 7.74989 19.0425C7.49858 18.6576 7.37293 18.0934 7.37293 17.3519V16.2811C7.37293 15.9495 7.32967 15.6832 7.24316 15.481C7.15664 15.2787 7.01245 15.1309 6.81263 15.0352C6.61179 14.9406 6.34091 14.8928 6 14.8928V14.8928C6 14.3777 6.4187 13.9514 6.93165 13.999C7.33857 14.0368 7.68046 14.1021 7.95691 14.1949C8.42348 14.3514 8.74277 14.5601 8.91477 14.82C9.08677 15.0809 9.17329 15.3907 9.17329 15.7506V17.153C9.17329 17.4813 9.20728 17.7422 9.27629 17.9368C9.34529 18.1314 9.47095 18.276 9.65531 18.3706C9.67614 18.3813 9.69799 18.3914 9.72088 18.4009C10.1002 18.5582 10.4515 18.8459 10.4515 19.2566V19.2566C10.4515 19.6673 10.1179 20.0057 9.70851 19.9735C9.33226 19.944 9.01386 19.8899 8.75358 19.8112C8.75328 19.8111 8.75307 19.8109 8.75307 19.8105V19.8105Z", fill: "#1FBB26" }), _jsx("path", { d: "M15.2472 8.18971C15.247 8.18996 15.2471 8.19037 15.2475 8.19047C15.6643 8.31665 15.9987 8.57206 16.2499 8.95778C16.5012 9.34263 16.6269 9.90686 16.6269 10.6483V11.7191C16.6269 12.0507 16.6701 12.3182 16.7566 12.5193C16.8432 12.7215 16.9874 12.8694 17.1872 12.965C17.2858 13.0122 17.402 13.0475 17.5354 13.0712C17.789 13.1162 17.9998 13.3162 17.9998 13.5738V13.5738C17.9998 13.8314 17.7908 14.0416 17.5334 14.0314C16.9162 14.0069 16.419 13.9316 16.0429 13.8054C15.5763 13.6488 15.257 13.4401 15.085 13.1803C14.913 12.9194 14.8275 12.6095 14.8275 12.2497V10.8473C14.8275 10.5189 14.7936 10.258 14.7245 10.0634C14.6555 9.86881 14.5289 9.72422 14.3455 9.62964C14.3247 9.61891 14.3029 9.60879 14.28 9.59926C13.9007 9.44164 13.5494 9.1543 13.5494 8.74361V8.65439C13.5494 8.29298 13.8428 7.99616 14.2034 8.02026C14.6186 8.048 14.9666 8.10423 15.2471 8.18895C15.2474 8.18905 15.2475 8.18946 15.2472 8.18971V8.18971ZM17.1867 15.0382C17.1869 15.0388 17.1867 15.0395 17.1861 15.0398C16.9858 15.1344 16.843 15.2821 16.7566 15.4818C16.6701 15.6829 16.6269 15.9482 16.6269 16.2797V17.3452C16.6269 18.0877 16.5012 18.6508 16.2499 19.0357C15.9986 19.4205 15.6639 19.6771 15.2467 19.8054C14.9864 19.8855 14.6678 19.9401 14.2913 19.9699C13.8819 20.0023 13.5483 19.6638 13.5483 19.2531V19.2531C13.5483 18.8424 13.8997 18.5551 14.2789 18.3975C14.3018 18.3879 14.3237 18.3778 14.3445 18.3671C14.5278 18.2725 14.6545 18.1279 14.7235 17.9333C14.7925 17.7387 14.8265 17.4778 14.8265 17.1495V15.747C14.8265 15.3872 14.912 15.0784 15.084 14.8208C15.256 14.5631 15.5753 14.3555 16.0419 14.1957C16.4175 14.067 16.9132 13.9905 17.5297 13.9656C17.7886 13.9551 17.9988 14.1665 17.9988 14.4256V14.4795C17.9988 14.7088 17.8116 14.8886 17.5849 14.9231C17.431 14.9465 17.2984 14.9844 17.1872 15.0366C17.1866 15.0369 17.1864 15.0376 17.1867 15.0382V15.0382ZM17.9998 14.1049C17.9998 14.5423 17.6452 14.8969 17.2078 14.8969V14.8969C16.7703 14.8969 16.4157 14.5423 16.4157 14.1049V13.8984C16.4157 13.461 16.7703 13.1064 17.2078 13.1064V13.1064C17.6452 13.1064 17.9998 13.461 17.9998 13.8984V14.1049Z", fill: "#1FBB26" })] }))));
@@ -1,3 +1,14 @@
1
1
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M3.06364 7.50914C4.70909 4.24092 8.09084 2 12 2C14.6954 2 16.959 2.99095 18.6909 4.60455L15.8227 7.47274C14.7864 6.48185 13.4681 5.97727 12 5.97727C9.39542 5.97727 7.19084 7.73637 6.40455 10.1C6.2045 10.7 6.09086 11.3409 6.09086 12C6.09086 12.6591 6.2045 13.3 6.40455 13.9C7.19084 16.2636 9.39542 18.0227 12 18.0227C13.3454 18.0227 14.4909 17.6682 15.3864 17.0682C16.4454 16.3591 17.15 15.3 17.3818 14.05H12V10.1818H21.4181C21.5364 10.8363 21.6 11.5182 21.6 12.2273C21.6 15.2727 20.5091 17.8363 18.6181 19.5773C16.9636 21.1046 14.7 22 12 22C8.09084 22 4.70909 19.7591 3.06364 16.4909C2.38638 15.1409 2 13.6136 2 12C2 10.3864 2.38638 8.85911 3.06364 7.50914Z" fill="currentColor"/>
3
- </svg>
2
+ <path
3
+ d="M21.8 12.2273C21.8 11.5182 21.7364 10.8364 21.6182 10.1818H12.2V14.05H17.5818C17.35 15.3 16.6455 16.3591 15.5864 17.0682V19.5773H18.8182C20.7091 17.8364 21.8 15.2727 21.8 12.2273Z"
4
+ fill="#4285F4" />
5
+ <path
6
+ d="M12.2 22C14.9 22 17.1635 21.1045 18.818 19.5773L15.5862 17.0682C14.6908 17.6682 13.5454 18.0227 12.2 18.0227C9.59535 18.0227 7.39085 16.2636 6.60445 13.9H3.26355V16.4909C4.90905 19.7591 8.29085 22 12.2 22Z"
7
+ fill="#34A853" />
8
+ <path
9
+ d="M6.60445 13.9C6.40445 13.3 6.29085 12.6591 6.29085 12C6.29085 11.3409 6.40445 10.7 6.60445 10.1V7.50909H3.26355C2.58635 8.85909 2.19995 10.3864 2.19995 12C2.19995 13.6136 2.58635 15.1409 3.26355 16.4909L6.60445 13.9Z"
10
+ fill="#FBBC04" />
11
+ <path
12
+ d="M12.2 5.9773C13.6681 5.9773 14.9863 6.4818 16.0227 7.4727L18.8909 4.6045C17.1591 2.9909 14.8954 2 12.2 2C8.29085 2 4.90905 4.2409 3.26355 7.5091L6.60445 10.1C7.39085 7.7364 9.59535 5.9773 12.2 5.9773Z"
13
+ fill="#E94235" />
14
+ </svg>
@@ -1,8 +1,8 @@
1
1
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
- d="M13.834 5.80006C12.7674 6.51562 11.9359 7.17053 11.2243 7.73094C9.69999 8.93152 8.72638 9.69833 7.17354 9.69833C5.3568 9.69833 2.43202 7.88378 3.45298 4.28945C3.46442 4.26459 3.46614 4.23632 3.45779 4.21025C3.44944 4.18419 3.43165 4.16226 3.40796 4.14882C3.38264 4.13564 3.35343 4.13223 3.32579 4.13919C3.29816 4.14613 3.27398 4.16301 3.25781 4.18662C1.78218 6.32766 1.13261 8.93724 1.43085 11.5261C1.7291 14.1151 2.95467 16.5055 4.87785 18.2495C3.97843 19.1515 2.91239 19.8677 1.73986 20.3574C1.71407 20.3695 1.69226 20.3889 1.67698 20.4131C1.6617 20.4373 1.6536 20.4654 1.6536 20.4942C1.6536 20.5229 1.6617 20.551 1.67698 20.5752C1.69226 20.5995 1.71407 20.6188 1.73986 20.6311C3.70974 21.2359 6.05046 21.1059 7.87921 20.1774L7.89722 20.1682C8.47353 19.8761 9.01631 19.5211 9.51577 19.1098C10.1437 18.6346 10.6948 18.0643 11.1493 17.4193C12.0817 16.1083 13.0711 14.0805 14.1897 11.1727C15.7272 7.1761 17.9973 5.21638 20.2885 4.20476C20.3577 4.17452 20.4281 4.14579 20.4988 4.12008C20.5693 4.09438 20.5588 4.046 20.4988 4.0354C20.3953 4.0178 20.2912 4.00568 20.1864 3.99912C19.1804 3.9235 16.628 3.9235 13.834 5.80006Z"
4
- fill="currentColor" />
3
+ d="M11.1452 17.3571C12.1002 16.0221 12.8752 14.1821 14.0402 11.2271C15.8452 6.66707 17.2702 4.98207 20.8852 3.76207C20.8852 3.76207 17.5852 3.06207 13.8852 5.52207C10.4502 7.81207 9.38522 9.49207 7.06022 9.49207C6.40778 9.47711 5.76812 9.30813 5.19342 8.9989C4.61873 8.68968 4.12527 8.24897 3.75332 7.71274C3.38137 7.1765 3.14146 6.55993 3.05315 5.91332C2.96485 5.26672 3.03066 4.6084 3.24522 3.99207C3.25754 3.96749 3.25973 3.93905 3.25132 3.91287C3.2429 3.88669 3.22456 3.86486 3.20022 3.85207C3.17425 3.83729 3.14355 3.8332 3.11461 3.84067C3.08568 3.84814 3.06079 3.86657 3.04522 3.89207C1.5328 6.07067 0.866971 8.72613 1.17257 11.3606C1.47818 13.995 2.73422 16.4275 4.70522 18.2021C3.78258 19.1185 2.69069 19.847 1.49022 20.3471C1.46192 20.358 1.43758 20.3772 1.42042 20.4021C1.40326 20.4271 1.39407 20.4567 1.39407 20.4871C1.39407 20.5174 1.40326 20.547 1.42042 20.572C1.43758 20.597 1.46192 20.6162 1.49022 20.6271C3.5738 21.2563 5.81671 21.0907 7.78522 20.1621C8.37776 19.8703 8.93476 19.5112 9.44522 19.0921C10.1001 18.6073 10.6738 18.0216 11.1452 17.3571ZM12.0102 9.40707C12.1464 9.39082 12.2843 9.41643 12.4055 9.4805C12.5268 9.54457 12.6257 9.64406 12.689 9.76571C12.7523 9.88737 12.777 10.0254 12.7599 10.1615C12.7428 10.2976 12.6847 10.4252 12.5932 10.5274C12.5018 10.6296 12.3814 10.7015 12.248 10.7336C12.1147 10.7657 11.9748 10.7564 11.8468 10.7069C11.7189 10.6575 11.6091 10.5702 11.532 10.4568C11.4549 10.3434 11.4142 10.2092 11.4152 10.0721C11.407 9.90525 11.4649 9.74191 11.5762 9.61744C11.6876 9.49297 11.8435 9.41738 12.0102 9.40707Z"
4
+ fill="#193A97" />
5
5
  <path
6
- d="M20.9522 4.47713L20.8396 4.51192C18.2391 5.43581 16.0276 8.04272 14.5922 11.8427C13.6102 14.4572 12.7619 16.1779 11.756 17.5994C11.305 18.2428 10.7569 18.8112 10.1314 19.2839C9.80568 19.5468 9.4609 19.7849 9.09992 19.9961L8.46783 20.3726C10.5586 21.1145 12.8272 21.1799 14.9568 20.5599C17.0863 19.9398 18.9703 18.6653 20.3455 16.9143C21.7208 15.1634 22.5185 13.0234 22.6272 10.7936C22.736 8.56377 22.1504 6.35543 20.9522 4.47713Z"
7
- fill="currentColor" />
6
+ d="M21.1501 4.37203C17.7951 5.50703 16.3901 7.04703 14.6151 11.542C13.4951 14.387 12.6801 16.357 11.6601 17.777C11.1654 18.4757 10.5649 19.0931 9.88015 19.607C9.49226 19.9166 9.08104 20.1958 8.65015 20.442C9.73758 20.8095 10.8773 20.9986 12.0251 21.002C13.9701 21.0018 15.8797 20.4813 17.5558 19.4946C19.2319 18.5078 20.6137 17.0908 21.5578 15.3903C22.5019 13.6898 22.974 11.7677 22.9252 9.82335C22.8763 7.87896 22.3084 5.98302 21.2801 4.33203L21.1501 4.37203Z"
7
+ fill="#193A97" />
8
8
  </svg>
@@ -1,4 +1,3 @@
1
1
  export * from "./LexicalEditor";
2
2
  export * from "./nodes/ImageNode";
3
3
  export * from "./plugins/MarkdownTransformers";
4
- export * from "./utils/getSummaryFromBlocks";
@@ -1,4 +1,3 @@
1
1
  export * from "./LexicalEditor";
2
2
  export * from "./nodes/ImageNode";
3
3
  export * from "./plugins/MarkdownTransformers";
4
- export * from "./utils/getSummaryFromBlocks";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.22.1",
3
+ "version": "1.23.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -1,3 +0,0 @@
1
- import { SerializedEditorState } from "lexical";
2
- /** lexical blocks를 요약한 텍스트를 리턴합니다. */
3
- export declare function getSummaryFromBlocks(blocks: SerializedEditorState): string;
@@ -1,19 +0,0 @@
1
- /** lexical blocks를 요약한 텍스트를 리턴합니다. */
2
- export function getSummaryFromBlocks(blocks) {
3
- const textArray = [];
4
- blocks.root.children
5
- .forEach((block) => {
6
- if (block.type === "paragraph") {
7
- if (block.text) {
8
- textArray.push(block.text);
9
- }
10
- else if (block.children) {
11
- textArray.push(block.children.map((child) => child.text).join(" "));
12
- }
13
- }
14
- if (block.type === "image") {
15
- textArray.push("(이미지)");
16
- }
17
- });
18
- return textArray.join(" ");
19
- }