master-components-react-ts 1.0.9 → 1.0.10

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.
Files changed (132) hide show
  1. package/dist/index.d.ts +15 -14
  2. package/dist/master-components-react-ts.cjs.js +2 -45
  3. package/dist/master-components-react-ts.cjs10.js +1 -0
  4. package/dist/master-components-react-ts.cjs11.js +1 -0
  5. package/dist/master-components-react-ts.cjs12.js +1 -0
  6. package/dist/master-components-react-ts.cjs13.js +1 -0
  7. package/dist/master-components-react-ts.cjs14.js +1 -0
  8. package/dist/master-components-react-ts.cjs15.js +1 -0
  9. package/dist/master-components-react-ts.cjs16.js +1 -0
  10. package/dist/master-components-react-ts.cjs17.js +1 -0
  11. package/dist/master-components-react-ts.cjs18.js +1 -0
  12. package/dist/master-components-react-ts.cjs19.js +1 -0
  13. package/dist/master-components-react-ts.cjs2.js +1 -0
  14. package/dist/master-components-react-ts.cjs20.js +1 -0
  15. package/dist/master-components-react-ts.cjs21.js +1 -0
  16. package/dist/master-components-react-ts.cjs22.js +1 -0
  17. package/dist/master-components-react-ts.cjs23.js +1 -0
  18. package/dist/master-components-react-ts.cjs24.js +1 -0
  19. package/dist/master-components-react-ts.cjs25.js +1 -0
  20. package/dist/master-components-react-ts.cjs26.js +1 -0
  21. package/dist/master-components-react-ts.cjs27.js +1 -0
  22. package/dist/master-components-react-ts.cjs28.js +1 -0
  23. package/dist/master-components-react-ts.cjs29.js +1 -0
  24. package/dist/master-components-react-ts.cjs3.js +1 -0
  25. package/dist/master-components-react-ts.cjs30.js +1 -0
  26. package/dist/master-components-react-ts.cjs31.js +1 -0
  27. package/dist/master-components-react-ts.cjs32.js +1 -0
  28. package/dist/master-components-react-ts.cjs33.js +1 -0
  29. package/dist/master-components-react-ts.cjs34.js +1 -0
  30. package/dist/master-components-react-ts.cjs35.js +1 -0
  31. package/dist/master-components-react-ts.cjs36.js +1 -0
  32. package/dist/master-components-react-ts.cjs37.js +1 -0
  33. package/dist/master-components-react-ts.cjs38.js +1 -0
  34. package/dist/master-components-react-ts.cjs39.js +1 -0
  35. package/dist/master-components-react-ts.cjs4.js +1 -0
  36. package/dist/master-components-react-ts.cjs40.js +1 -0
  37. package/dist/master-components-react-ts.cjs41.js +1 -0
  38. package/dist/master-components-react-ts.cjs42.js +1 -0
  39. package/dist/master-components-react-ts.cjs43.js +1 -0
  40. package/dist/master-components-react-ts.cjs44.js +1 -0
  41. package/dist/master-components-react-ts.cjs45.js +1 -0
  42. package/dist/master-components-react-ts.cjs46.js +1 -0
  43. package/dist/master-components-react-ts.cjs47.js +1 -0
  44. package/dist/master-components-react-ts.cjs48.js +1 -0
  45. package/dist/master-components-react-ts.cjs49.js +1 -0
  46. package/dist/master-components-react-ts.cjs5.js +1 -0
  47. package/dist/master-components-react-ts.cjs50.js +1 -0
  48. package/dist/master-components-react-ts.cjs51.js +1 -0
  49. package/dist/master-components-react-ts.cjs52.js +1 -0
  50. package/dist/master-components-react-ts.cjs53.js +1 -0
  51. package/dist/master-components-react-ts.cjs54.js +10 -0
  52. package/dist/master-components-react-ts.cjs55.js +11 -0
  53. package/dist/master-components-react-ts.cjs56.js +1 -0
  54. package/dist/master-components-react-ts.cjs57.js +1 -0
  55. package/dist/master-components-react-ts.cjs58.js +1 -0
  56. package/dist/master-components-react-ts.cjs59.js +1 -0
  57. package/dist/master-components-react-ts.cjs6.js +1 -0
  58. package/dist/master-components-react-ts.cjs60.js +1 -0
  59. package/dist/master-components-react-ts.cjs61.js +1 -0
  60. package/dist/master-components-react-ts.cjs62.js +1 -0
  61. package/dist/master-components-react-ts.cjs63.js +1 -0
  62. package/dist/master-components-react-ts.cjs64.js +1 -0
  63. package/dist/master-components-react-ts.cjs7.js +1 -0
  64. package/dist/master-components-react-ts.cjs8.js +1 -0
  65. package/dist/master-components-react-ts.cjs9.js +1 -0
  66. package/dist/master-components-react-ts.es.js +31 -2543
  67. package/dist/master-components-react-ts.es10.js +116 -0
  68. package/dist/master-components-react-ts.es11.js +10 -0
  69. package/dist/master-components-react-ts.es12.js +58 -0
  70. package/dist/master-components-react-ts.es13.js +172 -0
  71. package/dist/master-components-react-ts.es14.js +211 -0
  72. package/dist/master-components-react-ts.es15.js +8 -0
  73. package/dist/master-components-react-ts.es16.js +74 -0
  74. package/dist/master-components-react-ts.es17.js +12 -0
  75. package/dist/master-components-react-ts.es18.js +56 -0
  76. package/dist/master-components-react-ts.es19.js +36 -0
  77. package/dist/master-components-react-ts.es2.js +72 -0
  78. package/dist/master-components-react-ts.es20.js +26 -0
  79. package/dist/master-components-react-ts.es21.js +62 -0
  80. package/dist/master-components-react-ts.es22.js +15 -0
  81. package/dist/master-components-react-ts.es23.js +41 -0
  82. package/dist/master-components-react-ts.es24.js +15 -0
  83. package/dist/master-components-react-ts.es25.js +29 -0
  84. package/dist/master-components-react-ts.es26.js +26 -0
  85. package/dist/master-components-react-ts.es27.js +15 -0
  86. package/dist/master-components-react-ts.es28.js +7 -0
  87. package/dist/master-components-react-ts.es29.js +7 -0
  88. package/dist/master-components-react-ts.es3.js +144 -0
  89. package/dist/master-components-react-ts.es30.js +74 -0
  90. package/dist/master-components-react-ts.es31.js +15 -0
  91. package/dist/master-components-react-ts.es32.js +31 -0
  92. package/dist/master-components-react-ts.es33.js +13 -0
  93. package/dist/master-components-react-ts.es34.js +8 -0
  94. package/dist/master-components-react-ts.es35.js +19 -0
  95. package/dist/master-components-react-ts.es36.js +16 -0
  96. package/dist/master-components-react-ts.es37.js +19 -0
  97. package/dist/master-components-react-ts.es38.js +16 -0
  98. package/dist/master-components-react-ts.es39.js +35 -0
  99. package/dist/master-components-react-ts.es4.js +149 -0
  100. package/dist/master-components-react-ts.es40.js +41 -0
  101. package/dist/master-components-react-ts.es41.js +16 -0
  102. package/dist/master-components-react-ts.es42.js +16 -0
  103. package/dist/master-components-react-ts.es43.js +16 -0
  104. package/dist/master-components-react-ts.es44.js +66 -0
  105. package/dist/master-components-react-ts.es45.js +59 -0
  106. package/dist/master-components-react-ts.es46.js +50 -0
  107. package/dist/master-components-react-ts.es47.js +129 -0
  108. package/dist/master-components-react-ts.es48.js +17 -0
  109. package/dist/master-components-react-ts.es49.js +438 -0
  110. package/dist/master-components-react-ts.es5.js +20 -0
  111. package/dist/master-components-react-ts.es50.js +32 -0
  112. package/dist/master-components-react-ts.es51.js +20 -0
  113. package/dist/master-components-react-ts.es52.js +29 -0
  114. package/dist/master-components-react-ts.es53.js +4 -0
  115. package/dist/master-components-react-ts.es54.js +41 -0
  116. package/dist/master-components-react-ts.es55.js +274 -0
  117. package/dist/master-components-react-ts.es56.js +15 -0
  118. package/dist/master-components-react-ts.es57.js +15 -0
  119. package/dist/master-components-react-ts.es58.js +8 -0
  120. package/dist/master-components-react-ts.es59.js +4 -0
  121. package/dist/master-components-react-ts.es6.js +54 -0
  122. package/dist/master-components-react-ts.es60.js +83 -0
  123. package/dist/master-components-react-ts.es61.js +13 -0
  124. package/dist/master-components-react-ts.es62.js +13 -0
  125. package/dist/master-components-react-ts.es63.js +4 -0
  126. package/dist/master-components-react-ts.es64.js +4 -0
  127. package/dist/master-components-react-ts.es7.js +340 -0
  128. package/dist/master-components-react-ts.es8.js +46 -0
  129. package/dist/master-components-react-ts.es9.js +154 -0
  130. package/package.json +1 -4
  131. package/dist/components/Tag/Tag.d.ts +0 -3
  132. package/dist/components/Tag/Tag.types.d.ts +0 -20
@@ -0,0 +1,31 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconClose = ({
3
+ width = "14",
4
+ height = "14",
5
+ color = "#A4A7AE",
6
+ xmlns = "http://www.w3.org/2000/svg",
7
+ viewBox = "0 0 14 14",
8
+ fill = "none",
9
+ d = "M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",
10
+ stroke = "#A4A7AE",
11
+ strokeWidth = "1.66667",
12
+ strokeLinecap = "round",
13
+ strokeLinejoin = "round"
14
+ }) => {
15
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns, width, height, viewBox, fill, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d, stroke, strokeWidth, strokeLinecap, strokeLinejoin }) });
16
+ };
17
+ const IconCloseBlack = ({ color = "#131314" }) => {
18
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", color, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19
+ "path",
20
+ {
21
+ fillRule: "evenodd",
22
+ clipRule: "evenodd",
23
+ d: "M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L6 4.58579L10.2929 0.292893C10.6834 -0.0976311 11.3166 -0.0976311 11.7071 0.292893C12.0976 0.683417 12.0976 1.31658 11.7071 1.70711L7.41421 6L11.7071 10.2929C12.0976 10.6834 12.0976 11.3166 11.7071 11.7071C11.3166 12.0976 10.6834 12.0976 10.2929 11.7071L6 7.41421L1.70711 11.7071C1.31658 12.0976 0.683417 12.0976 0.292893 11.7071C-0.0976311 11.3166 -0.0976311 10.6834 0.292893 10.2929L4.58579 6L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",
24
+ fill: color
25
+ }
26
+ ) });
27
+ };
28
+ export {
29
+ IconClose,
30
+ IconCloseBlack
31
+ };
@@ -0,0 +1,13 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconArrowUp = ({ width = "10", height = "6", color = "#131314" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width, height, viewBox: `0 0 ${width} ${height}`, fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
4
+ "path",
5
+ {
6
+ d: "M4.75065 3.75401L8.00065 0.504008C8.15343 0.35123 8.34787 0.274841 8.58398 0.274841C8.8201 0.274841 9.01454 0.35123 9.16732 0.504008C9.3201 0.656786 9.39648 0.85123 9.39648 1.08734C9.39648 1.32345 9.3201 1.5179 9.16732 1.67067L5.33398 5.50401C5.25065 5.58734 5.16037 5.64637 5.06315 5.68109C4.96593 5.71581 4.86176 5.73317 4.75065 5.73317C4.63954 5.73317 4.53537 5.71581 4.43815 5.68109C4.34093 5.64637 4.25065 5.58734 4.16732 5.50401L0.333984 1.67067C0.181207 1.5179 0.104817 1.32345 0.104817 1.08734C0.104817 0.85123 0.181207 0.656785 0.333984 0.504008C0.486762 0.35123 0.681207 0.274841 0.917317 0.274841C1.15343 0.274841 1.34787 0.35123 1.50065 0.504008L4.75065 3.75401Z",
7
+ fill: color
8
+ }
9
+ ) });
10
+ };
11
+ export {
12
+ IconArrowUp
13
+ };
@@ -0,0 +1,8 @@
1
+ const radioWrapper = "Radio-module__radioWrapper";
2
+ const style = {
3
+ radioWrapper
4
+ };
5
+ export {
6
+ style as default,
7
+ radioWrapper
8
+ };
@@ -0,0 +1,19 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconRadioChecked = ({ size = "24", color = "#0058FF" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "none", children: [
4
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_118_485)", children: [
5
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
6
+ "path",
7
+ {
8
+ d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
9
+ fill: color
10
+ }
11
+ ),
12
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 17C14.7614 17 17 14.7614 17 12C17 9.23858 14.7614 7 12 7C9.23858 7 7 9.23858 7 12C7 14.7614 9.23858 17 12 17Z", fill: color })
13
+ ] }),
14
+ /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_118_485", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
15
+ ] });
16
+ };
17
+ export {
18
+ IconRadioChecked
19
+ };
@@ -0,0 +1,16 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconRadioUnchecked = ({ size = "24", color = "#C1C2C7" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "none", children: [
4
+ /* @__PURE__ */ jsxRuntimeExports.jsx("g", { clipPath: "url(#clip0_118_495)", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5
+ "path",
6
+ {
7
+ d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
8
+ fill: color
9
+ }
10
+ ) }),
11
+ /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_118_495", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: size, height: size, fill: "white" }) }) })
12
+ ] });
13
+ };
14
+ export {
15
+ IconRadioUnchecked
16
+ };
@@ -0,0 +1,19 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconRadioCheckedDisabled = ({ size = "24", color = "#95969C" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "none", children: [
4
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_118_531)", children: [
5
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
6
+ "path",
7
+ {
8
+ d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
9
+ fill: color
10
+ }
11
+ ),
12
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 17C14.7614 17 17 14.7614 17 12C17 9.23858 14.7614 7 12 7C9.23858 7 7 9.23858 7 12C7 14.7614 9.23858 17 12 17Z", fill: color })
13
+ ] }),
14
+ /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_118_531", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: size, height: size, fill: "white" }) }) })
15
+ ] });
16
+ };
17
+ export {
18
+ IconRadioCheckedDisabled
19
+ };
@@ -0,0 +1,16 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconRadioUncheckedDisabled = ({ size = "24", color = "#C1C2C7" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "none", children: [
4
+ /* @__PURE__ */ jsxRuntimeExports.jsx("g", { clipPath: "url(#clip0_118_495)", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5
+ "path",
6
+ {
7
+ d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
8
+ fill: color
9
+ }
10
+ ) }),
11
+ /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_118_495", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: size, height: size, fill: "white" }) }) })
12
+ ] });
13
+ };
14
+ export {
15
+ IconRadioUncheckedDisabled
16
+ };
@@ -0,0 +1,35 @@
1
+ const tooltipContainer = "Tooltip-module__tooltipContainer";
2
+ const tooltipContent = "Tooltip-module__tooltipContent";
3
+ const withoutPointer = "Tooltip-module__withoutPointer";
4
+ const top = "Tooltip-module__top";
5
+ const right = "Tooltip-module__right";
6
+ const bottom = "Tooltip-module__bottom";
7
+ const left = "Tooltip-module__left";
8
+ const tooltipTitle = "Tooltip-module__tooltipTitle";
9
+ const tooltipText = "Tooltip-module__tooltipText";
10
+ const dark = "Tooltip-module__dark";
11
+ const style = {
12
+ tooltipContainer,
13
+ tooltipContent,
14
+ withoutPointer,
15
+ top,
16
+ right,
17
+ bottom,
18
+ left,
19
+ tooltipTitle,
20
+ tooltipText,
21
+ dark
22
+ };
23
+ export {
24
+ bottom,
25
+ dark,
26
+ style as default,
27
+ left,
28
+ right,
29
+ tooltipContainer,
30
+ tooltipContent,
31
+ tooltipText,
32
+ tooltipTitle,
33
+ top,
34
+ withoutPointer
35
+ };
@@ -0,0 +1,149 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ import { useRef, useState, useEffect } from "react";
3
+ import style from "./master-components-react-ts.es23.js";
4
+ import { IconCloseBackground } from "./master-components-react-ts.es24.js";
5
+ const Textarea = ({
6
+ placeholder,
7
+ label,
8
+ cols = 30,
9
+ rows = 5,
10
+ value,
11
+ inputState = { error: false, success: true },
12
+ maxLength = 20,
13
+ withFocus = true,
14
+ withActive = true,
15
+ withResize = true,
16
+ withClose = true,
17
+ onChange,
18
+ onFocus,
19
+ onBlur,
20
+ disabled,
21
+ required,
22
+ textareaContainerStyle,
23
+ textareaLabelStyle,
24
+ requiredStyle,
25
+ labelSlot,
26
+ textareaFooterStyle
27
+ }) => {
28
+ const TextareaRef = useRef(null);
29
+ const [Focused, setFocused] = useState(false);
30
+ const [Active, setActive] = useState(false);
31
+ const Change = (e) => {
32
+ let value2 = e.target.value;
33
+ if (onChange && typeof onChange === "function") {
34
+ onChange(value2);
35
+ }
36
+ };
37
+ const iconSlot = (icon) => {
38
+ return icon;
39
+ };
40
+ const Focus = (e) => {
41
+ setFocused(true);
42
+ if (onFocus && typeof onFocus === "function") {
43
+ onFocus(e);
44
+ }
45
+ };
46
+ const Blur = (e) => {
47
+ setFocused(false);
48
+ if (onBlur && typeof onBlur === "function") {
49
+ onBlur(e);
50
+ }
51
+ };
52
+ let isManuallyResized = false;
53
+ useEffect(() => {
54
+ if (!TextareaRef.current) return;
55
+ const textarea = TextareaRef.current.querySelector("textarea");
56
+ if (!textarea) return;
57
+ let isUserResizing = false;
58
+ const onMouseDown = (e) => {
59
+ const bounds = textarea.getBoundingClientRect();
60
+ const isNearBottomRight = e.clientX > bounds.right - 20 && e.clientY > bounds.bottom - 20;
61
+ if (isNearBottomRight) {
62
+ isUserResizing = true;
63
+ }
64
+ };
65
+ const observer = new ResizeObserver(() => {
66
+ if (isUserResizing) {
67
+ isManuallyResized = true;
68
+ isUserResizing = false;
69
+ }
70
+ });
71
+ textarea.addEventListener("mousedown", onMouseDown);
72
+ observer.observe(textarea);
73
+ return () => {
74
+ textarea.removeEventListener("mousedown", onMouseDown);
75
+ observer.disconnect();
76
+ };
77
+ }, []);
78
+ const adjustHeight = () => {
79
+ if (!TextareaRef.current) return;
80
+ const el = TextareaRef.current.querySelector("textarea");
81
+ if (!el || isManuallyResized) return;
82
+ el.style.height = "auto";
83
+ el.style.height = `${el.scrollHeight}px`;
84
+ };
85
+ useEffect(() => {
86
+ if (!TextareaRef.current) return;
87
+ const textarea = TextareaRef.current.querySelector("textarea");
88
+ const observer = new ResizeObserver(() => {
89
+ const isShrunk = textarea.offsetHeight < textarea.scrollHeight;
90
+ isManuallyResized = isShrunk;
91
+ });
92
+ observer.observe(textarea);
93
+ return () => observer.disconnect();
94
+ }, []);
95
+ const handleInput = (e) => {
96
+ isManuallyResized = false;
97
+ onChange == null ? void 0 : onChange(e.target.value);
98
+ adjustHeight();
99
+ };
100
+ const HandleClose = () => {
101
+ if (onChange && typeof onChange === "function") {
102
+ onChange("");
103
+ }
104
+ };
105
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
106
+ "div",
107
+ {
108
+ style: textareaContainerStyle ?? {},
109
+ className: `${style.textareaContainer} ${inputState.error ? style.error : ""} ${disabled ? style.disabled : null}`,
110
+ children: [
111
+ label && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: textareaLabelStyle, className: style.textAreaLabel, children: [
112
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: label }),
113
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: requiredStyle ?? {}, className: style.required, children: required && "*" }),
114
+ labelSlot && iconSlot(labelSlot)
115
+ ] }),
116
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${style.wrap} ${withResize ? style.resize : ""}`, ref: TextareaRef, children: [
117
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
118
+ "textarea",
119
+ {
120
+ className: `${style.textarea} ${Focused ? style.focused : ""} ${disabled ? style.disabled : ""} ${withFocus && Focused ? !inputState.error ? style.focused : style.errorFocused : ""} ${withActive && Active ? !inputState.error ? style.active : style.errorActive : ""} ${inputState.error ? style.error : ""} ${inputState.success ? style.success : ""}`,
121
+ value,
122
+ placeholder: placeholder ?? "",
123
+ cols,
124
+ rows,
125
+ maxLength: maxLength ?? void 0,
126
+ onInput: handleInput,
127
+ onFocus: Focus,
128
+ disabled,
129
+ onBlur: Blur,
130
+ onChange: Change,
131
+ onMouseDown: () => setActive(true),
132
+ onMouseUp: () => setActive(false),
133
+ onMouseLeave: () => setActive(false)
134
+ }
135
+ ),
136
+ withClose && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.textareaIconClose, onClick: HandleClose, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconCloseBackground, {}) })
137
+ ] }),
138
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: textareaFooterStyle ?? {}, className: style.textareaFooter, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { children: [
139
+ value == null ? void 0 : value.length,
140
+ "/",
141
+ maxLength
142
+ ] }) })
143
+ ]
144
+ }
145
+ );
146
+ };
147
+ export {
148
+ Textarea as default
149
+ };
@@ -0,0 +1,41 @@
1
+ const modalOverlay = "Popup-module__modalOverlay";
2
+ const popupDrawerMode = "Popup-module__popupDrawerMode";
3
+ const popupContainer = "Popup-module__popupContainer";
4
+ const closeButton = "Popup-module__closeButton";
5
+ const withOptions = "Popup-module__withOptions";
6
+ const horizontal = "Popup-module__horizontal";
7
+ const popupHeader = "Popup-module__popupHeader";
8
+ const popupTitle = "Popup-module__popupTitle";
9
+ const popupDescription = "Popup-module__popupDescription";
10
+ const typeIcon = "Popup-module__typeIcon";
11
+ const icon = "Popup-module__icon";
12
+ const templateWrapper = "Popup-module__templateWrapper";
13
+ const style = {
14
+ modalOverlay,
15
+ popupDrawerMode,
16
+ popupContainer,
17
+ closeButton,
18
+ withOptions,
19
+ horizontal,
20
+ popupHeader,
21
+ popupTitle,
22
+ popupDescription,
23
+ typeIcon,
24
+ icon,
25
+ templateWrapper
26
+ };
27
+ export {
28
+ closeButton,
29
+ style as default,
30
+ horizontal,
31
+ icon,
32
+ modalOverlay,
33
+ popupContainer,
34
+ popupDescription,
35
+ popupDrawerMode,
36
+ popupHeader,
37
+ popupTitle,
38
+ templateWrapper,
39
+ typeIcon,
40
+ withOptions
41
+ };
@@ -0,0 +1,16 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconCheckCircle = ({ width = "24", height = "24", color = "#079455" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width, height, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
4
+ "path",
5
+ {
6
+ d: "M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",
7
+ stroke: color,
8
+ strokeWidth: "2",
9
+ strokeLinecap: "round",
10
+ strokeLinejoin: "round"
11
+ }
12
+ ) });
13
+ };
14
+ export {
15
+ IconCheckCircle
16
+ };
@@ -0,0 +1,16 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconSave = ({ size = "24", color = "#DC6803" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
4
+ "path",
5
+ {
6
+ d: "M7 3V6.4C7 6.96005 7 7.24008 7.10899 7.45399C7.20487 7.64215 7.35785 7.79513 7.54601 7.89101C7.75992 8 8.03995 8 8.6 8H15.4C15.9601 8 16.2401 8 16.454 7.89101C16.6422 7.79513 16.7951 7.64215 16.891 7.45399C17 7.24008 17 6.96005 17 6.4V4M17 21V14.6C17 14.0399 17 13.7599 16.891 13.546C16.7951 13.3578 16.6422 13.2049 16.454 13.109C16.2401 13 15.9601 13 15.4 13H8.6C8.03995 13 7.75992 13 7.54601 13.109C7.35785 13.2049 7.20487 13.3578 7.10899 13.546C7 13.7599 7 14.0399 7 14.6V21M21 9.32548V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H14.6745C15.1637 3 15.4083 3 15.6385 3.05526C15.8425 3.10425 16.0376 3.18506 16.2166 3.29472C16.4184 3.4184 16.5914 3.59135 16.9373 3.93726L20.0627 7.06274C20.4086 7.40865 20.5816 7.5816 20.7053 7.78343C20.8149 7.96237 20.8957 8.15746 20.9447 8.36154C21 8.59171 21 8.8363 21 9.32548Z",
7
+ stroke: color,
8
+ strokeWidth: "2",
9
+ strokeLinecap: "round",
10
+ strokeLinejoin: "round"
11
+ }
12
+ ) });
13
+ };
14
+ export {
15
+ IconSave
16
+ };
@@ -0,0 +1,16 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ const IconTrash = ({ width = "24", color = "#D92D20" }) => {
3
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width, height: width, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
4
+ "path",
5
+ {
6
+ d: "M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6",
7
+ stroke: color,
8
+ strokeWidth: "2",
9
+ strokeLinecap: "round",
10
+ strokeLinejoin: "round"
11
+ }
12
+ ) });
13
+ };
14
+ export {
15
+ IconTrash
16
+ };
@@ -0,0 +1,66 @@
1
+ import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
2
+ import { IconCloseBlack } from "./master-components-react-ts.es32.js";
3
+ import style from "./master-components-react-ts.es45.js";
4
+ import { useState, useEffect } from "react";
5
+ import { IconExclamation } from "./master-components-react-ts.es56.js";
6
+ import { IconCheck } from "./master-components-react-ts.es57.js";
7
+ const NotificationToast = ({
8
+ title,
9
+ colorType = "neutral",
10
+ filled = false,
11
+ withClose = false,
12
+ withUndo = false,
13
+ withInfoIcon = true,
14
+ description,
15
+ customAction,
16
+ timeout = 4e3,
17
+ children,
18
+ onUndo,
19
+ onClose
20
+ }) => {
21
+ const [animationClass, setAnimationClass] = useState("fadeIn");
22
+ useEffect(() => {
23
+ const duration = timeout;
24
+ const fadeDuration = 300;
25
+ const hideTimeout = setTimeout(() => {
26
+ setAnimationClass("fadeOut");
27
+ setTimeout(() => {
28
+ onClose == null ? void 0 : onClose();
29
+ }, fadeDuration);
30
+ }, duration);
31
+ return () => {
32
+ clearTimeout(hideTimeout);
33
+ };
34
+ }, [onClose]);
35
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
36
+ "div",
37
+ {
38
+ className: `${style.notificationToast} ${style[colorType]} ${filled ? style.filled : ""} ${style[animationClass]}`,
39
+ style: description ? { padding: "12px" } : {},
40
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: style.notificationToastContent, style: description ? { alignItems: "flex-start" } : {}, children: [
41
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: style.notificationToastContentLeft, style: description ? { alignItems: "flex-start" } : {}, children: [
42
+ withInfoIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.notificationToastContentInfoIcon, children: colorType === "success" ? /* @__PURE__ */ jsxRuntimeExports.jsx(IconCheck, { color: filled ? "#328707" : "#fff" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(IconExclamation, { color: filled ? colorType === "neutral" ? "#131314" : colorType === "error" ? "#E3292F" : "#0058FF" : "#fff" }) }),
43
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: style.notificationToastContentLeftText, children: [
44
+ title && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: style.notificationToastContentLeftTextTitle, children: title }),
45
+ description && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: style.notificationToastContentLeftTextDescription, children: description }),
46
+ children && children
47
+ ] })
48
+ ] }),
49
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.notificationToastContentDescription }),
50
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: style.notificationToastContentRight, children: [
51
+ customAction && customAction,
52
+ !description && withUndo && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: style.notificationToastContentRightUndoText, onClick: () => onUndo == null ? void 0 : onUndo(), children: "Undo" }),
53
+ withClose && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.notificationToastContentRightClose, style: description || !withUndo ? { border: "none" } : {}, onClick: () => onClose == null ? void 0 : onClose(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
54
+ IconCloseBlack,
55
+ {
56
+ color: filled ? colorType === "neutral" ? "#131314" : colorType === "error" ? "#E3292F" : colorType === "info" ? "#0058FF" : "#328707" : "#fff"
57
+ }
58
+ ) })
59
+ ] })
60
+ ] })
61
+ }
62
+ );
63
+ };
64
+ export {
65
+ NotificationToast as default
66
+ };
@@ -0,0 +1,59 @@
1
+ const toastContainer = "NotificationToast-module__toastContainer";
2
+ const notificationToast = "NotificationToast-module__notificationToast";
3
+ const fadeIn = "NotificationToast-module__fadeIn";
4
+ const fadeOut = "NotificationToast-module__fadeOut";
5
+ const neutral = "NotificationToast-module__neutral";
6
+ const filled = "NotificationToast-module__filled";
7
+ const notificationToastContentLeftTextTitle = "NotificationToast-module__notificationToastContentLeftTextTitle";
8
+ const notificationToastContentRightUndoText = "NotificationToast-module__notificationToastContentRightUndoText";
9
+ const notificationToastContentLeftTextDescription = "NotificationToast-module__notificationToastContentLeftTextDescription";
10
+ const info = "NotificationToast-module__info";
11
+ const error = "NotificationToast-module__error";
12
+ const success = "NotificationToast-module__success";
13
+ const notificationToastContent = "NotificationToast-module__notificationToastContent";
14
+ const notificationToastContentLeft = "NotificationToast-module__notificationToastContentLeft";
15
+ const notificationToastContentInfoIcon = "NotificationToast-module__notificationToastContentInfoIcon";
16
+ const notificationToastContentLeftText = "NotificationToast-module__notificationToastContentLeftText";
17
+ const notificationToastContentRight = "NotificationToast-module__notificationToastContentRight";
18
+ const notificationToastContentRightClose = "NotificationToast-module__notificationToastContentRightClose";
19
+ const style = {
20
+ toastContainer,
21
+ notificationToast,
22
+ fadeIn,
23
+ fadeOut,
24
+ neutral,
25
+ filled,
26
+ notificationToastContentLeftTextTitle,
27
+ notificationToastContentRightUndoText,
28
+ notificationToastContentLeftTextDescription,
29
+ info,
30
+ error,
31
+ success,
32
+ notificationToastContent,
33
+ notificationToastContentLeft,
34
+ notificationToastContentInfoIcon,
35
+ notificationToastContentLeftText,
36
+ notificationToastContentRight,
37
+ notificationToastContentRightClose
38
+ };
39
+ export {
40
+ style as default,
41
+ error,
42
+ fadeIn,
43
+ fadeOut,
44
+ filled,
45
+ info,
46
+ neutral,
47
+ notificationToast,
48
+ notificationToastContent,
49
+ notificationToastContentInfoIcon,
50
+ notificationToastContentLeft,
51
+ notificationToastContentLeftText,
52
+ notificationToastContentLeftTextDescription,
53
+ notificationToastContentLeftTextTitle,
54
+ notificationToastContentRight,
55
+ notificationToastContentRightClose,
56
+ notificationToastContentRightUndoText,
57
+ success,
58
+ toastContainer
59
+ };
@@ -0,0 +1,50 @@
1
+ const timepickerWrapper = "TimePicker-module__timepickerWrapper";
2
+ const timepickerInputWrapper = "TimePicker-module__timepickerInputWrapper";
3
+ const dropdownRightIcon = "TimePicker-module__dropdownRightIcon";
4
+ const dropdownRightIconClose = "TimePicker-module__dropdownRightIconClose";
5
+ const dropdownRightIconArrow = "TimePicker-module__dropdownRightIconArrow";
6
+ const focused = "TimePicker-module__focused";
7
+ const timepickerDropdownWrapper = "TimePicker-module__timepickerDropdownWrapper";
8
+ const timepickerDropdownHeader = "TimePicker-module__timepickerDropdownHeader";
9
+ const timepickerDropdownHeaderButtons = "TimePicker-module__timepickerDropdownHeaderButtons";
10
+ const active = "TimePicker-module__active";
11
+ const timepickerDropdownBody = "TimePicker-module__timepickerDropdownBody";
12
+ const timepickerDropdownBodyHours = "TimePicker-module__timepickerDropdownBodyHours";
13
+ const timepickerDropdownBodyMinutes = "TimePicker-module__timepickerDropdownBodyMinutes";
14
+ const timepickerDropdownBodyAmPm = "TimePicker-module__timepickerDropdownBodyAmPm";
15
+ const timepickerDropdownFooter = "TimePicker-module__timepickerDropdownFooter";
16
+ const style = {
17
+ timepickerWrapper,
18
+ timepickerInputWrapper,
19
+ dropdownRightIcon,
20
+ dropdownRightIconClose,
21
+ dropdownRightIconArrow,
22
+ focused,
23
+ timepickerDropdownWrapper,
24
+ timepickerDropdownHeader,
25
+ timepickerDropdownHeaderButtons,
26
+ active,
27
+ timepickerDropdownBody,
28
+ timepickerDropdownBodyHours,
29
+ timepickerDropdownBodyMinutes,
30
+ timepickerDropdownBodyAmPm,
31
+ timepickerDropdownFooter
32
+ };
33
+ export {
34
+ active,
35
+ style as default,
36
+ dropdownRightIcon,
37
+ dropdownRightIconArrow,
38
+ dropdownRightIconClose,
39
+ focused,
40
+ timepickerDropdownBody,
41
+ timepickerDropdownBodyAmPm,
42
+ timepickerDropdownBodyHours,
43
+ timepickerDropdownBodyMinutes,
44
+ timepickerDropdownFooter,
45
+ timepickerDropdownHeader,
46
+ timepickerDropdownHeaderButtons,
47
+ timepickerDropdownWrapper,
48
+ timepickerInputWrapper,
49
+ timepickerWrapper
50
+ };