kamotive_ui 1.2.1 → 1.2.3
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/Icons/ChevronDown/ChevronDown10.js +1 -2
- package/dist/Icons/ChevronUp/ChevronUp10.js +1 -2
- package/dist/Icons/IconAccount/IconAccount10.js +1 -2
- package/dist/Icons/IconAlarm/IconAlarm10.js +1 -2
- package/dist/Icons/IconBank/IconBank10.js +1 -2
- package/dist/Icons/IconBell/IconBell10.js +1 -2
- package/dist/Icons/IconBriefcase/IconBriefcase10.js +1 -2
- package/dist/Icons/IconCalendar/IconCalendar10.js +1 -2
- package/dist/Icons/IconCheck/IconCheck10.js +1 -2
- package/dist/Icons/IconClose/IconClose10.d.ts +2 -1
- package/dist/Icons/IconClose/IconClose10.js +2 -3
- package/dist/Icons/IconColorPicker/IconColorPicker10.js +1 -2
- package/dist/Icons/IconError/IconError10.js +1 -2
- package/dist/Icons/IconEyeOff/IconEyeOff10.js +1 -2
- package/dist/Icons/IconInfo/IconInfo10.js +1 -2
- package/dist/Icons/IconSuccess/IconSuccess10.js +1 -2
- package/dist/Icons/IconWarning/IconWarning10.js +1 -2
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +4 -7
- package/dist/components/Button/Button.module.css +12 -26
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -1
- package/dist/components/Checkbox/Checkbox.module.css +3 -13
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -34
- package/dist/components/ColorPicker/ColorPicker.js +5 -2
- package/dist/components/ColorPicker/ColorPicker.module.css +8 -31
- package/dist/components/Dropdown/Dropdown.d.ts +12 -8
- package/dist/components/Dropdown/Dropdown.js +230 -46
- package/dist/components/Dropdown/Dropdown.module.css +152 -89
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +18 -17
- package/dist/components/Input/Input.module.css +91 -44
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +6 -5
- package/dist/components/ProgressBar/ProgressBar.module.css +22 -22
- package/dist/components/ProgressLoader/ProgressLoader.d.ts +1 -1
- package/dist/components/ProgressLoader/ProgressLoader.js +5 -4
- package/dist/components/ProgressLoader/ProgressLoader.module.css +1 -10
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.js +3 -1
- package/dist/components/RadioButton/RadioButton.module.css +2 -15
- package/dist/components/SettingTag/SettingTag.d.ts +1 -1
- package/dist/components/SettingTag/SettingTag.js +2 -1
- package/dist/components/SettingTag/SettingTag.module.css +7 -0
- package/dist/components/Snackbar/Snackbar.d.ts +2 -8
- package/dist/components/Snackbar/Snackbar.js +3 -2
- package/dist/components/Snackbar/Snackbar.module.css +5 -4
- package/dist/components/Tab/Tab.d.ts +1 -1
- package/dist/components/Tab/Tab.js +7 -4
- package/dist/components/Tab/Tab.module.css +32 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/Tabs.module.css +1 -6
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +1 -0
- package/dist/components/Tag/Tag.module.css +87 -94
- package/dist/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +5 -3
- package/dist/components/ToggleButton/ToggleButton.module.css +9 -14
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.js +4 -2
- package/dist/components/Typography/Typography.module.css +8 -13
- package/dist/components/Typography/enums.d.ts +2 -0
- package/dist/components/Typography/enums.js +2 -0
- package/dist/index.d.ts +9 -6
- package/dist/index.js +8 -6
- package/dist/types/index.d.ts +261 -0
- package/dist/types/index.js +1 -0
- package/package.json +2 -1
- package/dist/Icons/Icons.module.css +0 -4
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const ChevronDown10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M5.84,9.59L11.5,15.25L17.16,9.59L16.45,8.89L11.5,13.84L6.55,8.89L5.84,9.59Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const ChevronUp10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M5.84,15.41L11.5,9.75L17.16,15.41L16.45,16.11L11.5,11.16L6.55,16.11L5.84,15.41Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconAccount10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M11.5,14C15.64,14 19,15.57 19,17.5V20H4V17.5C4,15.57 7.36,14 11.5,14M18,17.5C18,16.12 15.09,15 11.5,15C7.91,15 5,16.12 5,17.5V19H18V17.5M11.5,5C13.43,5 15,6.57 15,8.5C15,10.43 13.43,12 11.5,12C9.57,12 8,10.43 8,8.5C8,6.57 9.57,5 11.5,5M11.5,6C10.12,6 9,7.12 9,8.5C9,9.88 10.12,11 11.5,11C12.88,11 14,9.88 14,8.5C14,7.12 12.88,6 11.5,6Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconAlarm10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M11.5,6C15.64,6 19,9.36 19,13.5C19,17.64 15.64,21 11.5,21C7.36,21 4,17.64 4,13.5C4,9.36 7.36,6 11.5,6M11.5,7C7.91,7 5,9.91 5,13.5C5,17.09 7.91,20 11.5,20C15.09,20 18,17.09 18,13.5C18,9.91 15.09,7 11.5,7M11,9H12V13.36L15.05,14.78L14.63,15.69L11,14V9M15.25,5.25L15.89,4.5L19.72,7.7L19.08,8.46L15.25,5.25M7.75,5.25L3.92,8.46L3.28,7.7L7.11,4.5L7.75,5.25Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconBank10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M11,2.5L20,7V9H2V7L11,2.5M15,10H19V18H15V10M2,22V19H20V22H2M9,10H13V18H9V10M3,10H7V18H3V10M3,20V21H19V20H3M4,11V17H6V11H4M10,11V17H12V11H10M16,11V17H18V11H16M3,8H19V7.6L11,3.58L3,7.6V8Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconBell10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', color: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M12,4.5C12,4.22 11.78,4 11.5,4C11.22,4 11,4.22 11,4.5V6.03C8.75,6.28 7,8.18 7,10.5V16.41L5.41,18H17.59L16,16.41V10.5C16,8.18 14.25,6.28 12,6.03V4.5M11.5,3C12.33,3 13,3.67 13,4.5V5.21C15.31,5.86 17,8 17,10.5V16L20,19H3L6,16V10.5C6,8 7.69,5.86 10,5.21V4.5C10,3.67 10.67,3 11.5,3M11.5,22C10.29,22 9.28,21.14 9.05,20H10.09C10.29,20.58 10.85,21 11.5,21C12.15,21 12.71,20.58 12.91,20H13.95C13.72,21.14 12.71,22 11.5,22Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconBriefcase10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M5,7H8V5L10,3H13L15,5V7H18C19.66,7 21,8.34 21,10V18C21,19.66 19.66,21 18,21H5C3.34,21 2,19.66 2,18V10C2,8.34 3.34,7 5,7M10.41,4L9,5.41V7H14V5.41L12.59,4H10.41M5,8C3.9,8 3,8.9 3,10V18C3,19.1 3.9,20 5,20H18C19.1,20 20,19.1 20,18V10C20,8.9 19.1,8 18,8H5Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconCalendar10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M7,2H8C8.55,2 9,2.45 9,3V4H14V3C14,2.45 14.45,2 15,2H16C16.55,2 17,2.45 17,3V4C18.66,4 20,5.34 20,7V18C20,19.66 18.66,21 17,21H6C4.34,21 3,19.66 3,18V7C3,5.34 4.34,4 6,4V3C6,2.45 6.45,2 7,2M15,4H16V3H15V4M8,4V3H7V4H8M6,5C4.9,5 4,5.9 4,7V8H19V7C19,5.9 18.1,5 17,5H6M4,18C4,19.1 4.9,20 6,20H17C18.1,20 19,19.1 19,18V9H4V18M12,13H17V18H12V13M13,14V17H16V14H13Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconCheck10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M18.9,8.1L9,18L4.05,13.05L4.76,12.34L9,16.59L18.19,7.39L18.9,8.1Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return (React.createElement("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: `${styles.icon} ${color && styles[color]}` },
|
|
2
|
+
export const IconClose10 = ({ color = 'inherit', htmlColor, strokeWidth, onClick }) => {
|
|
3
|
+
return (React.createElement("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color, onClick: onClick },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconColorPicker10 = ({ color = 'inherit', htmlColor, strokeWidth, className, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: `${
|
|
3
|
+
return (React.createElement("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: `${color} ${className}` },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: 0, strokeLinejoin: "round", d: "M6.92,19L5,17.08L13.06,9L15,10.94M20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L13.84,6.41L11.91,4.5L10.5,5.91L11.92,7.33L3,16.25V21H7.75L16.67,12.08L18.09,13.5L19.5,12.09L17.58,10.17L20.7,7.05C21.1,6.65 21.1,6 20.71,5.63Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconError10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', strokeLinejoin: "round", d: "M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconEyeOff10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M2.54,4.71L3.25,4L20,20.75L19.29,21.46L15.95,18.11C14.58,18.68 13.08,19 11.5,19C6.94,19 3,16.35 1.14,12.5C2.11,10.5 3.63,8.83 5.5,7.68L2.54,4.71M11.5,18C12.79,18 14.03,17.77 15.17,17.34L14.05,16.21C13.32,16.71 12.45,17 11.5,17C9,17 7,15 7,12.5C7,11.55 7.29,10.68 7.79,9.95L6.24,8.41C4.57,9.38 3.19,10.8 2.26,12.5C4.04,15.78 7.5,18 11.5,18M20.74,12.5C18.96,9.22 15.5,7 11.5,7C10.35,7 9.23,7.19 8.19,7.53L7.41,6.75C8.68,6.26 10.06,6 11.5,6C16.06,6 20,8.65 21.86,12.5C20.95,14.39 19.53,16 17.79,17.13L17.07,16.4C18.6,15.44 19.87,14.1 20.74,12.5M11.5,8C14,8 16,10 16,12.5C16,13.32 15.78,14.08 15.4,14.74L14.66,14C14.88,13.54 15,13.04 15,12.5C15,10.57 13.43,9 11.5,9C10.96,9 10.46,9.12 10,9.34L9.26,8.6C9.92,8.22 10.68,8 11.5,8M8,12.5C8,14.43 9.57,16 11.5,16C12.17,16 12.79,15.81 13.32,15.5L8.5,10.68C8.19,11.21 8,11.83 8,12.5Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconInfo10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconSuccess10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', d: "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z" })));
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '../Icons.module.css';
|
|
3
2
|
export const IconWarning10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
|
|
4
|
-
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className:
|
|
3
|
+
return (React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: color },
|
|
5
4
|
React.createElement("path", { fill: htmlColor || 'currentColor', stroke: htmlColor || 'currentColor', strokeWidth: strokeWidth || '0', strokeLinejoin: "round", d: "M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16" })));
|
|
6
5
|
};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styles from './Button.module.css';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
+
import { Typography } from '../Typography/Typography';
|
|
4
5
|
/**
|
|
5
6
|
* Компонент Button представляет собой кнопку, которую можно настроить с помощью различных параметров (размер, иконки, стили, состояние).
|
|
6
7
|
*/
|
|
7
8
|
export const Button = ({ label, variant = 'fill', size = 'md', style = 'text', condition = 'default', icon, disabled = false, onClick, }) => {
|
|
8
|
-
const
|
|
9
|
-
// {
|
|
10
|
-
// [styles['button--disabled']]: disabled,
|
|
11
|
-
// }
|
|
12
|
-
);
|
|
9
|
+
const buttonClasses = classNames(styles['button'], styles[`button--${variant}-${condition}`], styles[`button--${size}`], styles[`button--${style}`]);
|
|
13
10
|
const iconColorFn = () => {
|
|
14
11
|
switch (condition) {
|
|
15
12
|
case 'default':
|
|
@@ -39,11 +36,11 @@ export const Button = ({ label, variant = 'fill', size = 'md', style = 'text', c
|
|
|
39
36
|
}
|
|
40
37
|
};
|
|
41
38
|
const iconColorStyle = iconColorFn();
|
|
42
|
-
return (React.createElement("button", { className:
|
|
39
|
+
return (React.createElement("button", { className: buttonClasses, onClick: onClick, disabled: disabled },
|
|
43
40
|
icon &&
|
|
44
41
|
React.cloneElement(icon, {
|
|
45
42
|
htmlColor: iconColorStyle,
|
|
46
43
|
strokeWidth: size === 'lg' ? '0.5' : size === 'md' ? '0.3' : '0.0',
|
|
47
44
|
}),
|
|
48
|
-
label));
|
|
45
|
+
React.createElement(Typography, { variant: 'Body2' }, label)));
|
|
49
46
|
};
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
.story--wrapper {
|
|
2
|
-
background-color: var(--white);
|
|
3
|
-
padding: 30px;
|
|
4
|
-
border-radius: 10px;
|
|
5
|
-
width: 900px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
1
|
.button {
|
|
9
|
-
font-family: 'Raleway';
|
|
10
|
-
font-style: normal;
|
|
11
|
-
font-weight: 400;
|
|
12
|
-
/* font-size: 12px; */
|
|
13
|
-
line-height: 16.5px;
|
|
14
|
-
|
|
15
|
-
/* padding: 0.5em 1.5em;
|
|
16
|
-
border: none;*/
|
|
17
2
|
border-radius: 10px;
|
|
18
3
|
padding: 5px 10px;
|
|
19
4
|
cursor: pointer;
|
|
20
5
|
padding: 0.5em 1.5em;
|
|
21
|
-
|
|
6
|
+
width: fit-content;
|
|
7
|
+
|
|
22
8
|
}
|
|
23
9
|
|
|
24
10
|
/* Стили для дефолтных кнопок */
|
|
@@ -136,7 +122,7 @@
|
|
|
136
122
|
/* Стили для outline кнопок */
|
|
137
123
|
/* синяя */
|
|
138
124
|
.button--outline-default {
|
|
139
|
-
background-color:
|
|
125
|
+
background-color: transparent;
|
|
140
126
|
color: var(--blue-main);
|
|
141
127
|
border: 1px solid var(--blue-main);
|
|
142
128
|
}
|
|
@@ -151,14 +137,14 @@
|
|
|
151
137
|
border: 1px solid var(--blue-main);
|
|
152
138
|
}
|
|
153
139
|
.button--outline-default:disabled {
|
|
154
|
-
background-color:
|
|
140
|
+
background-color: transparent;
|
|
155
141
|
color: var(--blue-disabled);
|
|
156
142
|
border: 1px solid var(--blue-disabled);
|
|
157
143
|
cursor: not-allowed;
|
|
158
144
|
}
|
|
159
145
|
/* ошибка */
|
|
160
146
|
.button--outline-error {
|
|
161
|
-
background-color:
|
|
147
|
+
background-color: transparent;
|
|
162
148
|
color: var(--error-main);
|
|
163
149
|
border: 1px solid var(--error-main);
|
|
164
150
|
}
|
|
@@ -173,14 +159,14 @@
|
|
|
173
159
|
border: 1px solid var(--error-main);
|
|
174
160
|
}
|
|
175
161
|
.button--outline-error:disabled {
|
|
176
|
-
background-color:
|
|
162
|
+
background-color: transparent;
|
|
177
163
|
color: var(--error-disabled);
|
|
178
164
|
border: 1px solid var(--error-disabled);
|
|
179
165
|
cursor: not-allowed;
|
|
180
166
|
}
|
|
181
167
|
/* success */
|
|
182
168
|
.button--outline-success {
|
|
183
|
-
background-color:
|
|
169
|
+
background-color: transparent;
|
|
184
170
|
color: var(--success-main);
|
|
185
171
|
border: 1px solid var(--success-main);
|
|
186
172
|
}
|
|
@@ -195,14 +181,14 @@
|
|
|
195
181
|
border: 1px solid var(--success-dark);
|
|
196
182
|
}
|
|
197
183
|
.button--outline-success:disabled {
|
|
198
|
-
background-color:
|
|
184
|
+
background-color: transparent;
|
|
199
185
|
color: var(--success-disabled);
|
|
200
186
|
border: 1px solid var(--success-disabled);
|
|
201
187
|
cursor: not-allowed;
|
|
202
188
|
}
|
|
203
189
|
/* warning */
|
|
204
190
|
.button--outline-warning {
|
|
205
|
-
background-color:
|
|
191
|
+
background-color: transparent;
|
|
206
192
|
color: var(--warning-main);
|
|
207
193
|
border: 1px solid var(--warning-main);
|
|
208
194
|
}
|
|
@@ -217,14 +203,14 @@
|
|
|
217
203
|
border: 1px solid var(--warning-dark);
|
|
218
204
|
}
|
|
219
205
|
.button--outline-warning:disabled {
|
|
220
|
-
background-color:
|
|
206
|
+
background-color: transparent;
|
|
221
207
|
color: var(--warning-disabled);
|
|
222
208
|
border: 1px solid var(--warning-disabled);
|
|
223
209
|
cursor: not-allowed;
|
|
224
210
|
}
|
|
225
211
|
/* info */
|
|
226
212
|
.button--outline-info {
|
|
227
|
-
background-color:
|
|
213
|
+
background-color: transparent;
|
|
228
214
|
color: var(--text-btn);
|
|
229
215
|
border: 1px solid var(--text-btn);
|
|
230
216
|
}
|
|
@@ -239,7 +225,7 @@
|
|
|
239
225
|
border: 1px solid var(--text-btn);
|
|
240
226
|
}
|
|
241
227
|
.button--outline-info:disabled {
|
|
242
|
-
background-color:
|
|
228
|
+
background-color: transparent;
|
|
243
229
|
color: var(--text-btn-light);
|
|
244
230
|
border: 1px solid var(--text-btn-light);
|
|
245
231
|
cursor: not-allowed;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styles from './Checkbox.module.css';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
+
;
|
|
5
|
+
import { Typography } from '../Typography/Typography';
|
|
4
6
|
export const Checkbox = ({ checked, onChange, disabled = false, size = 'sm', label }) => {
|
|
5
7
|
const handleChange = (e) => {
|
|
6
8
|
if (onChange) {
|
|
@@ -9,5 +11,5 @@ export const Checkbox = ({ checked, onChange, disabled = false, size = 'sm', lab
|
|
|
9
11
|
};
|
|
10
12
|
return (React.createElement("label", { className: styles.checkbox },
|
|
11
13
|
React.createElement("input", { type: "checkbox", checked: checked, onChange: handleChange, disabled: disabled, className: classNames(styles.input, styles[size]) }),
|
|
12
|
-
label));
|
|
14
|
+
React.createElement(Typography, { variant: 'Body2' }, label)));
|
|
13
15
|
};
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
.story--wrapper {
|
|
2
|
-
background-color: var(--white);
|
|
3
|
-
padding: 30px;
|
|
4
|
-
border-radius: 10px;
|
|
5
|
-
}
|
|
6
1
|
|
|
7
2
|
.checkbox {
|
|
8
3
|
display: flex;
|
|
9
4
|
align-items: center;
|
|
10
5
|
justify-content: left;
|
|
11
6
|
gap: 5px;
|
|
12
|
-
|
|
13
|
-
font-family: 'Raleway';
|
|
14
|
-
font-style: normal;
|
|
15
|
-
font-weight: 400;
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
line-height: 16px;
|
|
18
7
|
color: var(--text-dark);
|
|
19
8
|
}
|
|
20
9
|
|
|
21
|
-
.sm {
|
|
10
|
+
.checkbox.sm {
|
|
22
11
|
width: 12px;
|
|
23
12
|
height: 12px;
|
|
24
13
|
}
|
|
25
14
|
|
|
26
|
-
.md {
|
|
15
|
+
.checkbox.md {
|
|
27
16
|
width: 16px;
|
|
28
17
|
height: 16px;
|
|
29
18
|
}
|
|
@@ -40,6 +29,7 @@
|
|
|
40
29
|
background-clip: content-box;
|
|
41
30
|
position: relative;
|
|
42
31
|
cursor: pointer;
|
|
32
|
+
|
|
43
33
|
}
|
|
44
34
|
|
|
45
35
|
.input[type="checkbox"]:hover,
|
|
@@ -1,37 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
color?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @description Основной цвет
|
|
9
|
-
*/
|
|
10
|
-
mainColor?: string;
|
|
11
|
-
/**
|
|
12
|
-
* @description Последние использованные цвета
|
|
13
|
-
*/
|
|
14
|
-
recentColors?: string[];
|
|
15
|
-
/**
|
|
16
|
-
* @description Флаг наведения на меню
|
|
17
|
-
*/
|
|
18
|
-
setIsHovered: (isHover: boolean) => void;
|
|
19
|
-
/**
|
|
20
|
-
* @description Ширина ColorPicker
|
|
21
|
-
*/
|
|
22
|
-
width?: number;
|
|
23
|
-
/**
|
|
24
|
-
* @description Высота ColorPicker
|
|
25
|
-
*/
|
|
26
|
-
height?: number;
|
|
27
|
-
/**
|
|
28
|
-
* @description Автофокус ColorPicker
|
|
29
|
-
*/
|
|
30
|
-
autoOpen?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @description Функция обработки изменения цвета
|
|
33
|
-
*/
|
|
34
|
-
onChange?: (color: string) => void;
|
|
35
|
-
}
|
|
2
|
+
import { ColorPickerProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Компонент ColorPicker представляет собой элемент управления для выбора цвета.
|
|
5
|
+
*/
|
|
36
6
|
export declare const ColorPicker: FC<ColorPickerProps>;
|
|
37
7
|
export default ColorPicker;
|
|
@@ -5,6 +5,10 @@ import { Chrome } from '@uiw/react-color';
|
|
|
5
5
|
import EditableInput from '@uiw/react-color-editable-input';
|
|
6
6
|
import { GithubPlacement } from '@uiw/react-color-github';
|
|
7
7
|
import { IconColorPicker10 } from '../../Icons';
|
|
8
|
+
;
|
|
9
|
+
/**
|
|
10
|
+
* Компонент ColorPicker представляет собой элемент управления для выбора цвета.
|
|
11
|
+
*/
|
|
8
12
|
export const ColorPicker = ({ color = '#ffffff', mainColor, recentColors, setIsHovered, width = 10, height = 10, autoOpen = false, onChange, }) => {
|
|
9
13
|
const [colorValue, setColorValue] = useState(mainColor);
|
|
10
14
|
const [selectedColor, setSelectedColor] = useState(color);
|
|
@@ -53,7 +57,7 @@ export const ColorPicker = ({ color = '#ffffff', mainColor, recentColors, setIsH
|
|
|
53
57
|
const colorCircleDefaultClasses = classNames(styles.circle, {
|
|
54
58
|
[styles.colorCircleDefault]: color === '#ffffff' && !isColorChanged || isColorChanged && selectedColor !== colorValue
|
|
55
59
|
});
|
|
56
|
-
const popoverClassess = classNames(styles
|
|
60
|
+
const popoverClassess = classNames(styles['popover'], {
|
|
57
61
|
[styles[`popover--${popoverPosition}`]]: true,
|
|
58
62
|
});
|
|
59
63
|
// Функция для преобразования HEXA в HEX
|
|
@@ -106,7 +110,6 @@ export const ColorPicker = ({ color = '#ffffff', mainColor, recentColors, setIsH
|
|
|
106
110
|
React.createElement("div", { className: styles.hex, style: { padding: '0 10px 0 20px' } },
|
|
107
111
|
React.createElement(EditableInput, { value: hexaToHex(selectedColor), style: { width: 68, alignItems: 'flex-start' }, onChange: (e, color) => {
|
|
108
112
|
const formattedColor = hexaToHex(color.toString());
|
|
109
|
-
// colorChangeHandler(`#${ formattedColor }`)
|
|
110
113
|
colorChangeHandler(formattedColor);
|
|
111
114
|
} })))))));
|
|
112
115
|
};
|
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
.story--wrapper {
|
|
2
|
-
background-color: var(--white);
|
|
3
|
-
padding: 30px;
|
|
4
|
-
border-radius: 10px;
|
|
5
|
-
width: 900px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
1
|
|
|
11
2
|
.colorPicker {
|
|
12
3
|
-webkit-appearance: none;
|
|
4
|
+
appearance: none;
|
|
13
5
|
border-radius: 50%;
|
|
14
6
|
border: none;
|
|
15
7
|
position: relative;
|
|
16
8
|
cursor: pointer;
|
|
17
9
|
padding: 0;
|
|
18
|
-
font-family: 'Raleway';
|
|
19
|
-
font-style: normal;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
line-height: 16.5px;
|
|
22
|
-
font-size: 16px;
|
|
23
10
|
}
|
|
24
11
|
|
|
25
12
|
.colorPicker:hover{
|
|
@@ -27,13 +14,8 @@
|
|
|
27
14
|
background-color: var(--white);
|
|
28
15
|
border-radius: 50%;
|
|
29
16
|
padding: 0;
|
|
30
|
-
font-family: 'Raleway';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 400;
|
|
33
|
-
line-height: 16.5px;
|
|
34
|
-
font-size: 16px;
|
|
35
|
-
|
|
36
17
|
}
|
|
18
|
+
|
|
37
19
|
.colorPicker--defaultColor{
|
|
38
20
|
background: conic-gradient(
|
|
39
21
|
rgba(255, 59, 48) 0deg,
|
|
@@ -187,23 +169,23 @@
|
|
|
187
169
|
line-height: 14px !important;
|
|
188
170
|
font-size: 12px !important;
|
|
189
171
|
margin: 0 !important;
|
|
190
|
-
}
|
|
172
|
+
}
|
|
191
173
|
:global(.w-color-editable-input){
|
|
192
174
|
margin: 0 !important;
|
|
193
175
|
max-width: 30px !important;
|
|
176
|
+
flex-direction: column-reverse !important;
|
|
177
|
+
--editable-input-box-shadow : none !important;
|
|
194
178
|
}
|
|
195
179
|
:global(.w-color-editable-input-rgba){
|
|
196
180
|
justify-content: end !important;
|
|
197
181
|
}
|
|
198
|
-
|
|
199
|
-
flex-direction: column-reverse !important;
|
|
200
|
-
}
|
|
182
|
+
|
|
201
183
|
:global(.w-color-editable-input) > span {
|
|
202
184
|
padding-top: 0 !important;
|
|
203
185
|
}
|
|
204
186
|
:global(.w-color-editable-input:nth-child(1))> input{
|
|
205
187
|
border-radius: 10px 0 0 10px !important;
|
|
206
|
-
border: 1px solid var(--grey-light) !important;
|
|
188
|
+
border: 1px solid var(--grey-light) !important;
|
|
207
189
|
}
|
|
208
190
|
:global(.w-color-editable-input:nth-child(2))> input{
|
|
209
191
|
border-radius: 0 0 0 0px !important;
|
|
@@ -212,7 +194,6 @@ border-left: none !important;
|
|
|
212
194
|
}
|
|
213
195
|
:global(.w-color-editable-input:nth-child(3))> input{
|
|
214
196
|
border-radius: 0 0 0 0px !important;
|
|
215
|
-
|
|
216
197
|
border: 1px solid var(--grey-light) !important;
|
|
217
198
|
border-left: none !important;
|
|
218
199
|
}
|
|
@@ -242,16 +223,12 @@ border-left: none !important;
|
|
|
242
223
|
|
|
243
224
|
.colorPickerIcon {
|
|
244
225
|
position: absolute;
|
|
245
|
-
top:
|
|
226
|
+
top: 69%;
|
|
246
227
|
left: 8px;
|
|
247
228
|
z-index: 200;
|
|
248
229
|
padding: 10px;
|
|
249
230
|
}
|
|
250
231
|
|
|
251
|
-
:global(.w-color-editable-input){
|
|
252
|
-
--editable-input-box-shadow : none !important;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
232
|
.hex{
|
|
256
233
|
position: absolute;
|
|
257
234
|
bottom: 20px;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DropdownProps } from '
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { DropdownProps, TOptions } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Компонент Dropdown позволяет пользователям выбирать однин вариант из выпадающего меню
|
|
5
|
-
*/
|
|
5
|
+
*/
|
|
6
6
|
export interface DropdownListItemProps {
|
|
7
|
-
item:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
item: TOptions | null;
|
|
8
|
+
getOptionLabel?: ((option: TOptions) => string);
|
|
9
|
+
size: 'md' | 'lg';
|
|
10
|
+
selectedItem: TOptions | null;
|
|
11
|
+
style?: 'icons' | 'text';
|
|
12
|
+
onChange: (event: React.MouseEvent<HTMLElement>, item: TOptions | null) => void;
|
|
13
|
+
isActive?: boolean;
|
|
14
|
+
activeIndex?: number;
|
|
15
|
+
index?: number;
|
|
12
16
|
}
|
|
13
17
|
export declare const DropdownListItem: FC<DropdownListItemProps>;
|
|
14
18
|
export declare const Dropdown: FC<DropdownProps>;
|