master-components-react-ts 2.1.3 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Icons/IconArrowUp.js +2 -2
- package/dist/assets/Icons/IconCalendar.js +6 -6
- package/dist/assets/Icons/IconCheck.js +2 -2
- package/dist/assets/Icons/IconCheckCircle.js +2 -2
- package/dist/assets/Icons/IconCheckmark.js +2 -2
- package/dist/assets/Icons/IconCircularLoading.js +5 -5
- package/dist/assets/Icons/IconClose.js +3 -3
- package/dist/assets/Icons/IconCloseBackground.js +2 -2
- package/dist/assets/Icons/IconCloseCircle.js +2 -2
- package/dist/assets/Icons/IconErrorDash.js +2 -2
- package/dist/assets/Icons/IconExclamation.js +2 -2
- package/dist/assets/Icons/IconLeft.js +2 -2
- package/dist/assets/Icons/IconLoading.js +4 -4
- package/dist/assets/Icons/IconMinus.js +2 -2
- package/dist/assets/Icons/IconRadioChecked.js +6 -6
- package/dist/assets/Icons/IconRadioCheckedDisabled.js +6 -6
- package/dist/assets/Icons/IconRadioUnchecked.js +4 -4
- package/dist/assets/Icons/IconRadioUncheckedDisabled.js +4 -4
- package/dist/assets/Icons/IconRight.js +2 -2
- package/dist/assets/Icons/IconSave.js +2 -2
- package/dist/assets/Icons/IconSearch.js +4 -4
- package/dist/assets/Icons/IconSuccess.js +2 -2
- package/dist/assets/Icons/IconTrash.js +2 -2
- package/dist/assets/style-CXs6Ghy1.css +2249 -0
- package/dist/components/ActionDropdown/ActionDropdown.js +6 -6
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/DatePicker/Calendar.js +50 -50
- package/dist/components/DatePicker/DatePicker.js +6 -6
- package/dist/components/Dropdown/Dropdown.js +29 -29
- package/dist/components/FormInput/FormInput.js +13 -13
- package/dist/components/InlineLoading/InlineLoading.js +11 -11
- package/dist/components/MainButton/MainButton.js +6 -6
- package/dist/components/NotificationToast/NotificationContext.js +3 -3
- package/dist/components/NotificationToast/NotificationToast.js +12 -12
- package/dist/components/Popup/Popup.js +12 -12
- package/dist/components/Radio/Radio.js +7 -7
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/Textarea/Textarea.js +9 -9
- package/dist/components/TimePicker/TimePicker.js +18 -18
- package/dist/components/Toggle/Toggle.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +6 -6
- package/package.json +6 -3
- package/dist/_virtual/jsx-runtime.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.js +0 -4
- package/dist/assets/components/ActionDropdown/ActionDropdown.module-CJpBa8kB.css +0 -85
- package/dist/assets/components/Checkbox/Checkbox.module-_XqqEodq.css +0 -82
- package/dist/assets/components/DatePicker/Calendar.module-D3fcZWFD.css +0 -316
- package/dist/assets/components/DatePicker/Datepicker.module-BxWRyQpP.css +0 -39
- package/dist/assets/components/Dropdown/Dropdown.module-DgjqziBo.css +0 -242
- package/dist/assets/components/FormInput/FormInput.module-DvfUbgbC.css +0 -240
- package/dist/assets/components/InlineLoading/InlineLoading.module-iVTVTMU0.css +0 -40
- package/dist/assets/components/MainButton/MainButton.module-8Us8t8Lb.css +0 -306
- package/dist/assets/components/NotificationToast/NotificationToast.module-mSanXElM.css +0 -179
- package/dist/assets/components/Popup/Popup.module-C1XFPW6u.css +0 -152
- package/dist/assets/components/Radio/Radio.module-BvqKw6WX.css +0 -21
- package/dist/assets/components/Skeleton/Skeleton.module-BxbVrXDg.css +0 -57
- package/dist/assets/components/Textarea/Textarea.module-BxaBUjlU.css +0 -167
- package/dist/assets/components/TimePicker/TimePicker.module-DfRiUaeb.css +0 -150
- package/dist/assets/components/Toggle/Toggle.module-DBfTR8Br.css +0 -75
- package/dist/assets/components/Tooltip/Tooltip.module-DEYqvQtd.css +0 -113
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
- package/dist/node_modules/react/jsx-runtime.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import style from "./Popup.module.scss.js";
|
|
3
3
|
import { IconCheckCircle } from "../../assets/Icons/IconCheckCircle.js";
|
|
4
4
|
import { IconSave } from "../../assets/Icons/IconSave.js";
|
|
@@ -25,13 +25,13 @@ const Popup = ({
|
|
|
25
25
|
if (!options || !options?.type) return;
|
|
26
26
|
switch (String(options?.type)) {
|
|
27
27
|
case "delete": {
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ jsx(IconTrash, {});
|
|
29
29
|
}
|
|
30
30
|
case "unsaved": {
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ jsx(IconSave, {});
|
|
32
32
|
}
|
|
33
33
|
case "success": {
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsx(IconCheckCircle, {});
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
@@ -55,7 +55,7 @@ const Popup = ({
|
|
|
55
55
|
document.removeEventListener("click", handleClick);
|
|
56
56
|
};
|
|
57
57
|
}, []);
|
|
58
|
-
return visible && /* @__PURE__ */
|
|
58
|
+
return visible && /* @__PURE__ */ jsx(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
61
|
ref: componentRef,
|
|
@@ -64,7 +64,7 @@ const Popup = ({
|
|
|
64
64
|
${style.modalOverlay}
|
|
65
65
|
${options && options?.mode === "drawer" ? style.popupDrawerMode : ""}
|
|
66
66
|
`,
|
|
67
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ jsxs(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
style: popupContainerStyle ?? {},
|
|
@@ -75,14 +75,14 @@ const Popup = ({
|
|
|
75
75
|
${widthType === "horizontal" ? style.horizontal : ""}
|
|
76
76
|
`,
|
|
77
77
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ jsx("div", { className: style.closeButton, style: closeButtonStyle ?? {}, onClick: ClickClose, children: /* @__PURE__ */ jsx(
|
|
79
79
|
IconCloseBlack,
|
|
80
80
|
{
|
|
81
81
|
color: "#131314"
|
|
82
82
|
}
|
|
83
83
|
) }),
|
|
84
|
-
(options?.title || options?.description || options?.type) && /* @__PURE__ */
|
|
85
|
-
_getType() && /* @__PURE__ */
|
|
84
|
+
(options?.title || options?.description || options?.type) && /* @__PURE__ */ jsxs("div", { className: `${style.popupHeader}`, style: popupHeaderStyle ?? {}, children: [
|
|
85
|
+
_getType() && /* @__PURE__ */ jsx("div", { className: style.typeIcon, children: /* @__PURE__ */ jsx(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
style: { backgroundColor: options?.type === "success" ? "#DCFAE6" : options?.type === "unsaved" ? "#FEF0C7" : "#FEE4E2" },
|
|
@@ -90,18 +90,18 @@ const Popup = ({
|
|
|
90
90
|
children: _getType()
|
|
91
91
|
}
|
|
92
92
|
) }),
|
|
93
|
-
options && options?.title && /* @__PURE__ */
|
|
93
|
+
options && options?.title && /* @__PURE__ */ jsx("div", { className: style.popupTitle, children: /* @__PURE__ */ jsxs("h2", { style: popupTitleStyle ?? {}, children: [
|
|
94
94
|
" ",
|
|
95
95
|
options?.title ?? "",
|
|
96
96
|
" "
|
|
97
97
|
] }) }),
|
|
98
|
-
options && options?.description && /* @__PURE__ */
|
|
98
|
+
options && options?.description && /* @__PURE__ */ jsx("div", { className: style.popupDescription, children: /* @__PURE__ */ jsxs("p", { children: [
|
|
99
99
|
" ",
|
|
100
100
|
options?.description ?? "",
|
|
101
101
|
" "
|
|
102
102
|
] }) })
|
|
103
103
|
] }),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ jsxs("div", { className: style.templateWrapper, style: templateWrapperStyle ?? {}, children: [
|
|
105
105
|
template && template,
|
|
106
106
|
children && children
|
|
107
107
|
] })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import style from "./Radio.module.scss.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { useNamespace } from "../../context/NamespaceContext.js";
|
|
@@ -23,21 +23,21 @@ const Radio = ({ checked, change, disabled, required, withUncheckState = false,
|
|
|
23
23
|
let color = disabled ? "#95969C" : radioType === "error" ? "#E3292F" : "#0058FF";
|
|
24
24
|
if (checked) {
|
|
25
25
|
if (disabled) {
|
|
26
|
-
icon = /* @__PURE__ */
|
|
26
|
+
icon = /* @__PURE__ */ jsx(IconRadioCheckedDisabled, { color });
|
|
27
27
|
} else {
|
|
28
|
-
icon = /* @__PURE__ */
|
|
28
|
+
icon = /* @__PURE__ */ jsx(IconRadioChecked, { color });
|
|
29
29
|
}
|
|
30
30
|
} else {
|
|
31
31
|
if (disabled) {
|
|
32
|
-
icon = /* @__PURE__ */
|
|
32
|
+
icon = /* @__PURE__ */ jsx(IconRadioUncheckedDisabled, { color });
|
|
33
33
|
} else {
|
|
34
|
-
icon = /* @__PURE__ */
|
|
34
|
+
icon = /* @__PURE__ */ jsx(IconRadioUnchecked, { color });
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
return icon;
|
|
38
38
|
};
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsxs("div", { className: style.radioWrapper, style: { cursor: disabled ? "not-allowed" : "pointer" }, onClick: onChange, children: [
|
|
40
|
+
/* @__PURE__ */ jsx("input", { type: "radio", checked: true, readOnly: true, hidden: true, disabled: disabled ?? false, required }),
|
|
41
41
|
RadioIcon()
|
|
42
42
|
] });
|
|
43
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import style from "./Skeleton.module.scss.js";
|
|
3
3
|
const Skeleton = ({ type = "text", customStyle, children }) => {
|
|
4
|
-
return /* @__PURE__ */
|
|
4
|
+
return /* @__PURE__ */ jsx("div", { style: customStyle ?? {}, className: ` ${style.skeleton} ${style[type] || ""}`, children });
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
Skeleton as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState, useEffect } from "react";
|
|
3
3
|
import style from "./Textarea.module.scss.js";
|
|
4
4
|
import { IconCloseBackground } from "../../assets/Icons/IconCloseBackground.js";
|
|
@@ -102,19 +102,19 @@ const Textarea = ({
|
|
|
102
102
|
onChange("");
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
return /* @__PURE__ */
|
|
105
|
+
return /* @__PURE__ */ jsxs(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
108
|
style: textareaContainerStyle ?? {},
|
|
109
109
|
className: `${style.textareaContainer} ${inputState.error ? style.error : ""} ${disabled ? style.disabled : null}`,
|
|
110
110
|
children: [
|
|
111
|
-
label && /* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
111
|
+
label && /* @__PURE__ */ jsxs("div", { style: textareaLabelStyle, className: style.textAreaLabel, children: [
|
|
112
|
+
/* @__PURE__ */ jsx("p", { children: label }),
|
|
113
|
+
/* @__PURE__ */ jsx("span", { style: requiredStyle ?? {}, className: style.required, children: required && "*" }),
|
|
114
114
|
labelSlot && iconSlot(labelSlot)
|
|
115
115
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ jsxs("div", { className: `${style.wrap} ${withResize ? style.resize : ""}`, ref: TextareaRef, children: [
|
|
117
|
+
/* @__PURE__ */ jsx(
|
|
118
118
|
"textarea",
|
|
119
119
|
{
|
|
120
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 : ""}`,
|
|
@@ -133,9 +133,9 @@ const Textarea = ({
|
|
|
133
133
|
onMouseLeave: () => setActive(false)
|
|
134
134
|
}
|
|
135
135
|
),
|
|
136
|
-
withClose && value && /* @__PURE__ */
|
|
136
|
+
withClose && value && /* @__PURE__ */ jsx("div", { className: style.textareaIconClose, onClick: HandleClose, children: /* @__PURE__ */ jsx(IconCloseBackground, {}) })
|
|
137
137
|
] }),
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ jsx("div", { style: textareaFooterStyle ?? {}, className: style.textareaFooter, children: /* @__PURE__ */ jsxs("p", { children: [
|
|
139
139
|
value?.length,
|
|
140
140
|
"/",
|
|
141
141
|
maxLength
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState, useEffect } from "react";
|
|
3
3
|
import style from "./TimePicker.module.scss.js";
|
|
4
4
|
import FormInput from "../FormInput/FormInput.js";
|
|
@@ -101,8 +101,8 @@ const TimePicker = ({
|
|
|
101
101
|
document.removeEventListener("wheel", ScrollHandler);
|
|
102
102
|
};
|
|
103
103
|
}, []);
|
|
104
|
-
return /* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ jsxs("div", { className: `${style.timepickerWrapper} ${IsFocused ? style.focused : ""}`, children: [
|
|
105
|
+
/* @__PURE__ */ jsx("div", { ref: ComponentRef, className: style.timepickerInputWrapper, onClick: () => (setIsFocused((state) => !state), CalculatePos()), onFocus: Focus, children: /* @__PURE__ */ jsx(
|
|
106
106
|
FormInput,
|
|
107
107
|
{
|
|
108
108
|
...rest,
|
|
@@ -112,8 +112,8 @@ const TimePicker = ({
|
|
|
112
112
|
value: Value,
|
|
113
113
|
toggleFocus: true,
|
|
114
114
|
formInputStyle: { cursor: "pointer" },
|
|
115
|
-
rightSlot: /* @__PURE__ */
|
|
116
|
-
Value && /* @__PURE__ */
|
|
115
|
+
rightSlot: /* @__PURE__ */ jsxs("div", { className: `${style.dropdownRightIcon} ${IsFocused ? style.focused : ""}`, children: [
|
|
116
|
+
Value && /* @__PURE__ */ jsx(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
onClick: (e) => {
|
|
@@ -121,18 +121,18 @@ const TimePicker = ({
|
|
|
121
121
|
Clear();
|
|
122
122
|
},
|
|
123
123
|
className: style.dropdownRightIconClose,
|
|
124
|
-
children: /* @__PURE__ */
|
|
124
|
+
children: /* @__PURE__ */ jsx(IconCloseCircle, {})
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ jsx("div", { className: style.dropdownRightIconArrow, children: /* @__PURE__ */ jsx(IconArrowUp, {}) })
|
|
128
128
|
] }),
|
|
129
129
|
readOnly: true,
|
|
130
130
|
forDropdown: true
|
|
131
131
|
}
|
|
132
132
|
) }),
|
|
133
|
-
IsFocused && /* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
133
|
+
IsFocused && /* @__PURE__ */ jsxs("div", { ref: DropdownRef, className: style.timepickerDropdownWrapper, children: [
|
|
134
|
+
/* @__PURE__ */ jsx("div", { className: style.timepickerDropdownHeader, children: /* @__PURE__ */ jsxs("div", { className: style.timepickerDropdownHeaderButtons, children: [
|
|
135
|
+
/* @__PURE__ */ jsx(
|
|
136
136
|
"p",
|
|
137
137
|
{
|
|
138
138
|
className: TimeType === "12" ? style.active : "",
|
|
@@ -143,7 +143,7 @@ const TimePicker = ({
|
|
|
143
143
|
children: "AM -PM"
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ jsx(
|
|
147
147
|
"p",
|
|
148
148
|
{
|
|
149
149
|
className: TimeType === "24" ? style.active : "",
|
|
@@ -155,15 +155,15 @@ const TimePicker = ({
|
|
|
155
155
|
}
|
|
156
156
|
)
|
|
157
157
|
] }) }),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
TimeType === "12" && /* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ jsxs("div", { className: style.timepickerDropdownBody, children: [
|
|
159
|
+
/* @__PURE__ */ jsx("div", { className: style.timepickerDropdownBodyHours, children: (TimeType === "12" ? hours12 : hours24).map((hour) => /* @__PURE__ */ jsx("p", { className: Hours === hour || Value?.split(":")[0] === hour ? style.active : "", onClick: () => setHours(hour), children: hour }, hour)) }),
|
|
160
|
+
/* @__PURE__ */ jsx("div", { className: style.timepickerDropdownBodyMinutes, children: minutes.map((minute) => /* @__PURE__ */ jsx("p", { className: Minutes === minute || Value?.split(":")[1] === minute ? style.active : "", onClick: () => setMinutes(minute), children: minute }, minute)) }),
|
|
161
|
+
TimeType === "12" && /* @__PURE__ */ jsxs("div", { className: style.timepickerDropdownBodyAmPm, children: [
|
|
162
|
+
/* @__PURE__ */ jsx("p", { className: AmPm === "AM" ? style.active : "", onClick: () => setAmPm("AM"), children: "AM" }, "AM"),
|
|
163
|
+
/* @__PURE__ */ jsx("p", { className: AmPm === "PM" ? style.active : "", onClick: () => setAmPm("PM"), children: "PM" }, "PM")
|
|
164
164
|
] })
|
|
165
165
|
] }),
|
|
166
|
-
withConfirm && /* @__PURE__ */
|
|
166
|
+
withConfirm && /* @__PURE__ */ jsx("div", { className: style.timepickerDropdownFooter, children: /* @__PURE__ */ jsx(MainButton, { label: "Confirm time", onClick: () => onChange?.(Value) }) })
|
|
167
167
|
] })
|
|
168
168
|
] });
|
|
169
169
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import style from "./Toggle.module.scss.js";
|
|
3
3
|
const Toggle = ({ checked, change, disabled = false, size = "md", toggleType = "default", required = false }) => {
|
|
4
4
|
const onChange = () => {
|
|
@@ -6,12 +6,12 @@ const Toggle = ({ checked, change, disabled = false, size = "md", toggleType = "
|
|
|
6
6
|
change?.(!checked);
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
10
|
"div",
|
|
11
11
|
{
|
|
12
12
|
onClick: onChange,
|
|
13
13
|
className: `${style.toggleWrapper} ${toggleType === "error" ? style.error : ""} ${style[size]} ${checked ? style.checked : ""} ${disabled ? style.disabled : ""}`,
|
|
14
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ jsx("div", { className: style.toggleState, children: /* @__PURE__ */ jsx("input", { type: "checkbox", checked, readOnly: true, disabled: disabled ?? false, hidden: true, required }) })
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState, useEffect } from "react";
|
|
3
3
|
import style from "./Tooltip.module.scss.js";
|
|
4
4
|
const Tooltip = ({
|
|
@@ -110,7 +110,7 @@ const Tooltip = ({
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}, [Active]);
|
|
113
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ jsxs(
|
|
114
114
|
"div",
|
|
115
115
|
{
|
|
116
116
|
ref: ComponentRef,
|
|
@@ -121,7 +121,7 @@ const Tooltip = ({
|
|
|
121
121
|
style: tooltipContainerStyle ?? {},
|
|
122
122
|
children: [
|
|
123
123
|
children,
|
|
124
|
-
Active && tooltipSlot ? /* @__PURE__ */
|
|
124
|
+
Active && tooltipSlot ? /* @__PURE__ */ jsx(
|
|
125
125
|
"div",
|
|
126
126
|
{
|
|
127
127
|
style: tooltipContentStyle ?? {},
|
|
@@ -130,7 +130,7 @@ const Tooltip = ({
|
|
|
130
130
|
className: `${style.tooltipContent} ${placement ? style[placement] : style.bottom}`,
|
|
131
131
|
children: tooltipSlot
|
|
132
132
|
}
|
|
133
|
-
) : Active && /* @__PURE__ */
|
|
133
|
+
) : Active && /* @__PURE__ */ jsxs(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
136
136
|
style: tooltipContentStyle ?? {},
|
|
@@ -139,8 +139,8 @@ const Tooltip = ({
|
|
|
139
139
|
className: `${style.tooltipContent} ${placement ? style[placement] : style.bottom}`,
|
|
140
140
|
children: [
|
|
141
141
|
customText && typeof customText === "string" && customText,
|
|
142
|
-
title && title.length > 0 && typeof title === "string" && /* @__PURE__ */
|
|
143
|
-
text && text.length > 0 && typeof text === "string" && /* @__PURE__ */
|
|
142
|
+
title && title.length > 0 && typeof title === "string" && /* @__PURE__ */ jsx("h2", { className: style.tooltipTitle, style: tooltipTitlestyle ?? {}, children: title }),
|
|
143
|
+
text && text.length > 0 && typeof text === "string" && /* @__PURE__ */ jsx("p", { className: style.tooltipText, style: tooltipTextStyle ?? {}, children: text })
|
|
144
144
|
]
|
|
145
145
|
}
|
|
146
146
|
)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "master-components-react-ts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
|
-
"import": "./dist/index.js"
|
|
19
|
-
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./style.css": "./dist/style.css"
|
|
20
22
|
},
|
|
23
|
+
"style": "dist/style.css",
|
|
21
24
|
"scripts": {
|
|
22
25
|
"dev": "vite --port 3737 --strictPort",
|
|
23
26
|
"build": "tsc && tsc-alias && vite build",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "Inter-Regular";
|
|
3
|
-
src: url("/assets/Inter_24pt-Regular-C7SEt4-L.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Regular.woff") format("woff");
|
|
4
|
-
}
|
|
5
|
-
@font-face {
|
|
6
|
-
font-family: "Inter-SemiBold";
|
|
7
|
-
src: url("/assets/Inter_24pt-SemiBold-DIQUEucn.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-SemiBold.woff") format("woff");
|
|
8
|
-
}
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: "Inter-Medium";
|
|
11
|
-
src: url("/assets/Inter_24pt-Medium-C1cYvkz2.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Medium.woff") format("woff");
|
|
12
|
-
}
|
|
13
|
-
.ActionDropdown-module__actionDropdownContainer {
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
.ActionDropdown-module__actionDropdownContainer.ActionDropdown-module__collapsed .ActionDropdown-module__actionDropdownIcon {
|
|
17
|
-
transform: rotate(180deg);
|
|
18
|
-
}
|
|
19
|
-
.ActionDropdown-module__actionDropdownContainer .ActionDropdown-module__actionDropdownContent {
|
|
20
|
-
width: 100%;
|
|
21
|
-
border-radius: 6px;
|
|
22
|
-
background: #f2f2f2;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: space-between;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
user-select: none;
|
|
28
|
-
-webkit-user-select: none;
|
|
29
|
-
-moz-user-select: none;
|
|
30
|
-
-ms-user-select: none;
|
|
31
|
-
}
|
|
32
|
-
.ActionDropdown-module__actionDropdownContainer .ActionDropdown-module__actionDropdownContent .ActionDropdown-module__actionDropdownTitle {
|
|
33
|
-
width: 90%;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
color: #131314;
|
|
37
|
-
font-feature-settings: "liga" off, "clig" off;
|
|
38
|
-
text-overflow: ellipsis;
|
|
39
|
-
font-family: "Inter-Regular", sans-serif;
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
line-height: 24px;
|
|
43
|
-
letter-spacing: 0.1px;
|
|
44
|
-
border-right: 1px solid #ffffff;
|
|
45
|
-
padding: 8px 16px;
|
|
46
|
-
}
|
|
47
|
-
.ActionDropdown-module__actionDropdownContainer .ActionDropdown-module__actionDropdownContent .ActionDropdown-module__actionDropdownIcon {
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
padding: 8px;
|
|
52
|
-
width: 40px;
|
|
53
|
-
height: 40px;
|
|
54
|
-
transition: transform 0.2s ease-in-out;
|
|
55
|
-
}
|
|
56
|
-
.ActionDropdown-module__actionDropdownContainer .ActionDropdown-module__actionDropdownList {
|
|
57
|
-
width: 100%;
|
|
58
|
-
border-radius: 12px;
|
|
59
|
-
border: 1px solid #e6e6e6;
|
|
60
|
-
background: #fff;
|
|
61
|
-
box-shadow: 0px 2px 4px 0px rgba(19, 19, 20, 0.04);
|
|
62
|
-
height: 250px;
|
|
63
|
-
overflow: auto;
|
|
64
|
-
padding: 8px;
|
|
65
|
-
}
|
|
66
|
-
.ActionDropdown-module__actionDropdownContainer .ActionDropdown-module__actionDropdownList .ActionDropdown-module__actionDropdownItem {
|
|
67
|
-
width: 100%;
|
|
68
|
-
border-radius: 4px;
|
|
69
|
-
background: #fff;
|
|
70
|
-
padding: 6px 10px;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
color: #131314;
|
|
73
|
-
font-feature-settings: "liga" off, "clig" off;
|
|
74
|
-
text-overflow: ellipsis;
|
|
75
|
-
font-family: "Inter-Regular", sans-serif;
|
|
76
|
-
font-size: 14px;
|
|
77
|
-
font-weight: 400;
|
|
78
|
-
line-height: 24px;
|
|
79
|
-
letter-spacing: 0.1px;
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
.ActionDropdown-module__actionDropdownContainer .ActionDropdown-module__actionDropdownList .ActionDropdown-module__actionDropdownItem:hover, .ActionDropdown-module__actionDropdownContainer .ActionDropdown-module__actionDropdownList .ActionDropdown-module__actionDropdownItem.ActionDropdown-module__selected {
|
|
83
|
-
border-radius: 4px;
|
|
84
|
-
background: #f2f2f2;
|
|
85
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "Inter-Regular";
|
|
3
|
-
src: url("/assets/Inter_24pt-Regular-C7SEt4-L.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Regular.woff") format("woff");
|
|
4
|
-
}
|
|
5
|
-
@font-face {
|
|
6
|
-
font-family: "Inter-SemiBold";
|
|
7
|
-
src: url("/assets/Inter_24pt-SemiBold-DIQUEucn.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-SemiBold.woff") format("woff");
|
|
8
|
-
}
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: "Inter-Medium";
|
|
11
|
-
src: url("/assets/Inter_24pt-Medium-C1cYvkz2.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Medium.woff") format("woff");
|
|
12
|
-
}
|
|
13
|
-
.Checkbox-module__checkboxWrapper {
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
border: 2px solid #c1c2c7;
|
|
16
|
-
background: #ffffff;
|
|
17
|
-
position: relative;
|
|
18
|
-
padding: 5px 4px;
|
|
19
|
-
border-radius: 3px;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
transition: 0.2;
|
|
22
|
-
display: grid;
|
|
23
|
-
place-items: center;
|
|
24
|
-
width: 18px;
|
|
25
|
-
height: 18px;
|
|
26
|
-
user-select: none;
|
|
27
|
-
-webkit-user-select: none;
|
|
28
|
-
-moz-user-select: none;
|
|
29
|
-
-ms-user-select: none;
|
|
30
|
-
}
|
|
31
|
-
.Checkbox-module__checkboxWrapper .Checkbox-module__checkMark {
|
|
32
|
-
display: grid;
|
|
33
|
-
place-items: center;
|
|
34
|
-
}
|
|
35
|
-
.Checkbox-module__checkboxWrapper .Checkbox-module__checkMark svg {
|
|
36
|
-
width: 0.625rem;
|
|
37
|
-
user-select: none;
|
|
38
|
-
pointer-events: none;
|
|
39
|
-
}
|
|
40
|
-
.Checkbox-module__checkboxWrapper.Checkbox-module__error {
|
|
41
|
-
border-color: #e3292f;
|
|
42
|
-
}
|
|
43
|
-
.Checkbox-module__checkboxWrapper.Checkbox-module__error.Checkbox-module__checked {
|
|
44
|
-
background: #e3292f;
|
|
45
|
-
border: none;
|
|
46
|
-
}
|
|
47
|
-
.Checkbox-module__checkboxWrapper.Checkbox-module__checked {
|
|
48
|
-
background: #0058ff;
|
|
49
|
-
border: none;
|
|
50
|
-
}
|
|
51
|
-
.Checkbox-module__checkboxWrapper.Checkbox-module__checked.Checkbox-module__disabled {
|
|
52
|
-
background: #95969c;
|
|
53
|
-
}
|
|
54
|
-
.Checkbox-module__checkboxWrapper.Checkbox-module__disabled {
|
|
55
|
-
cursor: not-allowed;
|
|
56
|
-
border-color: #c1c2c7 !important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.Checkbox-module__Namespace_Hr.Checkbox-module__checkboxWrapper.Checkbox-module__checked {
|
|
60
|
-
background: #32b45f;
|
|
61
|
-
border: 0.0625rem solid #32b45f;
|
|
62
|
-
}
|
|
63
|
-
.Checkbox-module__Namespace_Hr.Checkbox-module__checkboxWrapper.Checkbox-module__checked:hover {
|
|
64
|
-
background: #24994d;
|
|
65
|
-
border: 0.0625rem solid #24994d;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.Checkbox-module__dark {
|
|
69
|
-
background: #373a41;
|
|
70
|
-
border: unset;
|
|
71
|
-
}
|
|
72
|
-
.Checkbox-module__dark.Checkbox-module__checked {
|
|
73
|
-
background: #0158ff;
|
|
74
|
-
border: 0.0625rem solid #0158ff;
|
|
75
|
-
}
|
|
76
|
-
.Checkbox-module__dark.Checkbox-module__checked.Checkbox-module__disabled svg path {
|
|
77
|
-
stroke: #d5d7da;
|
|
78
|
-
}
|
|
79
|
-
.Checkbox-module__dark.Checkbox-module__disabled {
|
|
80
|
-
background: #8d8d8d !important;
|
|
81
|
-
border: 0.0625rem solid #373a41 !important;
|
|
82
|
-
}
|