kamotive_ui 1.2.1 → 1.2.2

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 (53) hide show
  1. package/dist/Icons/ChevronDown/ChevronDown10.js +1 -2
  2. package/dist/Icons/ChevronUp/ChevronUp10.js +1 -2
  3. package/dist/Icons/IconAccount/IconAccount10.js +1 -2
  4. package/dist/Icons/IconAlarm/IconAlarm10.js +1 -2
  5. package/dist/Icons/IconBank/IconBank10.js +1 -2
  6. package/dist/Icons/IconBell/IconBell10.js +1 -2
  7. package/dist/Icons/IconBriefcase/IconBriefcase10.js +1 -2
  8. package/dist/Icons/IconCalendar/IconCalendar10.js +1 -2
  9. package/dist/Icons/IconCheck/IconCheck10.js +1 -2
  10. package/dist/Icons/IconClose/IconClose10.js +1 -2
  11. package/dist/Icons/IconColorPicker/IconColorPicker10.js +1 -2
  12. package/dist/Icons/IconError/IconError10.js +1 -2
  13. package/dist/Icons/IconEyeOff/IconEyeOff10.js +1 -2
  14. package/dist/Icons/IconInfo/IconInfo10.js +1 -2
  15. package/dist/Icons/IconSuccess/IconSuccess10.js +1 -2
  16. package/dist/Icons/IconWarning/IconWarning10.js +1 -2
  17. package/dist/components/Button/Button.js +3 -3
  18. package/dist/components/Button/Button.module.css +13 -16
  19. package/dist/components/Checkbox/Checkbox.js +2 -2
  20. package/dist/components/Checkbox/Checkbox.module.css +4 -3
  21. package/dist/components/ColorPicker/ColorPicker.d.ts +4 -34
  22. package/dist/components/ColorPicker/ColorPicker.js +15 -13
  23. package/dist/components/ColorPicker/ColorPicker.module.css +26 -32
  24. package/dist/components/Dropdown/Dropdown.d.ts +1 -1
  25. package/dist/components/Dropdown/Dropdown.js +48 -17
  26. package/dist/components/Dropdown/Dropdown.module.css +1 -1
  27. package/dist/components/Input/Input.js +15 -15
  28. package/dist/components/Input/Input.module.css +14 -14
  29. package/dist/components/ProgressBar/ProgressBar.js +7 -7
  30. package/dist/components/ProgressBar/ProgressBar.module.css +19 -12
  31. package/dist/components/ProgressLoader/ProgressLoader.js +5 -5
  32. package/dist/components/ProgressLoader/ProgressLoader.module.css +3 -3
  33. package/dist/components/RadioButton/RadioButton.js +2 -2
  34. package/dist/components/RadioButton/RadioButton.module.css +3 -3
  35. package/dist/components/SettingTag/SettingTag.js +2 -2
  36. package/dist/components/SettingTag/SettingTag.module.css +16 -0
  37. package/dist/components/Snackbar/Snackbar.d.ts +2 -8
  38. package/dist/components/Snackbar/Snackbar.js +4 -4
  39. package/dist/components/Snackbar/Snackbar.module.css +11 -2
  40. package/dist/components/Tab/Tab.js +4 -4
  41. package/dist/components/Tab/Tab.module.css +45 -0
  42. package/dist/components/Tabs/Tabs.js +1 -2
  43. package/dist/components/Tabs/Tabs.module.css +2 -1
  44. package/dist/components/Tag/Tag.js +1 -1
  45. package/dist/components/Tag/Tag.module.css +24 -25
  46. package/dist/components/ToggleButton/ToggleButton.js +2 -2
  47. package/dist/components/ToggleButton/ToggleButton.module.css +10 -10
  48. package/dist/components/Typography/Typography.js +4 -3
  49. package/dist/components/Typography/Typography.module.css +5 -5
  50. package/dist/index.d.ts +3 -1
  51. package/dist/index.js +3 -1
  52. package/package.json +1 -1
  53. 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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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
- import styles from '../Icons.module.css';
3
2
  export const IconClose10 = ({ color = 'inherit', htmlColor, strokeWidth, }) => {
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]}` },
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 },
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: `${styles.icon} ${color && styles[color]} ${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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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: `${styles.icon} ${color && styles[color]}` },
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
  };
@@ -5,9 +5,9 @@ import classNames from 'classnames';
5
5
  * Компонент Button представляет собой кнопку, которую можно настроить с помощью различных параметров (размер, иконки, стили, состояние).
6
6
  */
7
7
  export const Button = ({ label, variant = 'fill', size = 'md', style = 'text', condition = 'default', icon, disabled = false, onClick, }) => {
8
- const buttonClassess = classNames(styles.button, styles[`button--${variant}-${condition}`], styles[`button--${size}`], styles[`button--${style}`]
8
+ const buttonClasses = classNames(styles['button'], styles[`button--${variant}-${condition}`], styles[`button--${size}`], styles[`button--${style}`]
9
9
  // {
10
- // [styles['button--disabled']]: disabled,
10
+ // ['button--disabled']: disabled,
11
11
  // }
12
12
  );
13
13
  const iconColorFn = () => {
@@ -39,7 +39,7 @@ export const Button = ({ label, variant = 'fill', size = 'md', style = 'text', c
39
39
  }
40
40
  };
41
41
  const iconColorStyle = iconColorFn();
42
- return (React.createElement("button", { className: buttonClassess, onClick: onClick, disabled: disabled },
42
+ return (React.createElement("button", { className: buttonClasses, onClick: onClick, disabled: disabled },
43
43
  icon &&
44
44
  React.cloneElement(icon, {
45
45
  htmlColor: iconColorStyle,
@@ -1,4 +1,4 @@
1
- .story--wrapper {
1
+ .story--wrapper-btn {
2
2
  background-color: var(--white);
3
3
  padding: 30px;
4
4
  border-radius: 10px;
@@ -9,16 +9,13 @@
9
9
  font-family: 'Raleway';
10
10
  font-style: normal;
11
11
  font-weight: 400;
12
- /* font-size: 12px; */
13
12
  line-height: 16.5px;
14
-
15
- /* padding: 0.5em 1.5em;
16
- border: none;*/
17
13
  border-radius: 10px;
18
14
  padding: 5px 10px;
19
15
  cursor: pointer;
20
16
  padding: 0.5em 1.5em;
21
- /* transition: all 0.3s ease; */
17
+ width: fit-content;
18
+
22
19
  }
23
20
 
24
21
  /* Стили для дефолтных кнопок */
@@ -136,7 +133,7 @@
136
133
  /* Стили для outline кнопок */
137
134
  /* синяя */
138
135
  .button--outline-default {
139
- background-color: var(--white);
136
+ background-color: transparent;
140
137
  color: var(--blue-main);
141
138
  border: 1px solid var(--blue-main);
142
139
  }
@@ -151,14 +148,14 @@
151
148
  border: 1px solid var(--blue-main);
152
149
  }
153
150
  .button--outline-default:disabled {
154
- background-color: var(--white);
151
+ background-color: transparent;
155
152
  color: var(--blue-disabled);
156
153
  border: 1px solid var(--blue-disabled);
157
154
  cursor: not-allowed;
158
155
  }
159
156
  /* ошибка */
160
157
  .button--outline-error {
161
- background-color: var(--white);
158
+ background-color: transparent;
162
159
  color: var(--error-main);
163
160
  border: 1px solid var(--error-main);
164
161
  }
@@ -173,14 +170,14 @@
173
170
  border: 1px solid var(--error-main);
174
171
  }
175
172
  .button--outline-error:disabled {
176
- background-color: var(--white);
173
+ background-color: transparent;
177
174
  color: var(--error-disabled);
178
175
  border: 1px solid var(--error-disabled);
179
176
  cursor: not-allowed;
180
177
  }
181
178
  /* success */
182
179
  .button--outline-success {
183
- background-color: var(--white);
180
+ background-color: transparent;
184
181
  color: var(--success-main);
185
182
  border: 1px solid var(--success-main);
186
183
  }
@@ -195,14 +192,14 @@
195
192
  border: 1px solid var(--success-dark);
196
193
  }
197
194
  .button--outline-success:disabled {
198
- background-color: var(--white);
195
+ background-color: transparent;
199
196
  color: var(--success-disabled);
200
197
  border: 1px solid var(--success-disabled);
201
198
  cursor: not-allowed;
202
199
  }
203
200
  /* warning */
204
201
  .button--outline-warning {
205
- background-color: var(--white);
202
+ background-color: transparent;
206
203
  color: var(--warning-main);
207
204
  border: 1px solid var(--warning-main);
208
205
  }
@@ -217,14 +214,14 @@
217
214
  border: 1px solid var(--warning-dark);
218
215
  }
219
216
  .button--outline-warning:disabled {
220
- background-color: var(--white);
217
+ background-color: transparent;
221
218
  color: var(--warning-disabled);
222
219
  border: 1px solid var(--warning-disabled);
223
220
  cursor: not-allowed;
224
221
  }
225
222
  /* info */
226
223
  .button--outline-info {
227
- background-color: var(--white);
224
+ background-color: transparent;
228
225
  color: var(--text-btn);
229
226
  border: 1px solid var(--text-btn);
230
227
  }
@@ -239,7 +236,7 @@
239
236
  border: 1px solid var(--text-btn);
240
237
  }
241
238
  .button--outline-info:disabled {
242
- background-color: var(--white);
239
+ background-color: transparent;
243
240
  color: var(--text-btn-light);
244
241
  border: 1px solid var(--text-btn-light);
245
242
  cursor: not-allowed;
@@ -7,7 +7,7 @@ export const Checkbox = ({ checked, onChange, disabled = false, size = 'sm', lab
7
7
  onChange(e);
8
8
  }
9
9
  };
10
- return (React.createElement("label", { className: styles.checkbox },
11
- React.createElement("input", { type: "checkbox", checked: checked, onChange: handleChange, disabled: disabled, className: classNames(styles.input, styles[size]) }),
10
+ return (React.createElement("label", { className: styles["checkbox"] },
11
+ React.createElement("input", { type: "checkbox", checked: checked, onChange: handleChange, disabled: disabled, className: classNames('input', size) }),
12
12
  label));
13
13
  };
@@ -1,4 +1,4 @@
1
- .story--wrapper {
1
+ .story--wrapper-checkbox {
2
2
  background-color: var(--white);
3
3
  padding: 30px;
4
4
  border-radius: 10px;
@@ -18,12 +18,12 @@
18
18
  color: var(--text-dark);
19
19
  }
20
20
 
21
- .sm {
21
+ .checkbox.sm {
22
22
  width: 12px;
23
23
  height: 12px;
24
24
  }
25
25
 
26
- .md {
26
+ .checkbox.md {
27
27
  width: 16px;
28
28
  height: 16px;
29
29
  }
@@ -40,6 +40,7 @@
40
40
  background-clip: content-box;
41
41
  position: relative;
42
42
  cursor: pointer;
43
+
43
44
  }
44
45
 
45
46
  .input[type="checkbox"]:hover,
@@ -1,37 +1,7 @@
1
1
  import { FC } from 'react';
2
- export interface ColorPickerProps {
3
- /**
4
- * @description Цвет выбранный пользователем
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 'kamotive_ui';
3
+ /**
4
+ * Компонент ColorPicker представляет собой элемент управления для выбора цвета.
5
+ */
36
6
  export declare const ColorPicker: FC<ColorPickerProps>;
37
7
  export default ColorPicker;
@@ -5,6 +5,9 @@ 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
+ * Компонент ColorPicker представляет собой элемент управления для выбора цвета.
10
+ */
8
11
  export const ColorPicker = ({ color = '#ffffff', mainColor, recentColors, setIsHovered, width = 10, height = 10, autoOpen = false, onChange, }) => {
9
12
  const [colorValue, setColorValue] = useState(mainColor);
10
13
  const [selectedColor, setSelectedColor] = useState(color);
@@ -47,14 +50,14 @@ export const ColorPicker = ({ color = '#ffffff', mainColor, recentColors, setIsH
47
50
  !autoOpen && document.removeEventListener('mousedown', handleClickOutside);
48
51
  };
49
52
  }, [isOpen]);
50
- const mainColorClasses = classNames(styles.circle, {
51
- [styles['mainColor']]: mainColor,
53
+ const mainColorClasses = classNames(styles['circle'], {
54
+ 'mainColor': mainColor,
52
55
  });
53
- const colorCircleDefaultClasses = classNames(styles.circle, {
54
- [styles.colorCircleDefault]: color === '#ffffff' && !isColorChanged || isColorChanged && selectedColor !== colorValue
56
+ const colorCircleDefaultClasses = classNames(styles['circle'], {
57
+ 'colorCircleDefault': color === '#ffffff' && !isColorChanged || isColorChanged && selectedColor !== colorValue
55
58
  });
56
- const popoverClassess = classNames(styles.popover, {
57
- [styles[`popover--${popoverPosition}`]]: true,
59
+ const popoverClassess = classNames(styles['popover'], {
60
+ [`popover--${popoverPosition}`]: true,
58
61
  });
59
62
  // Функция для преобразования HEXA в HEX
60
63
  const hexaToHex = (hexa = 'fff') => {
@@ -83,30 +86,29 @@ export const ColorPicker = ({ color = '#ffffff', mainColor, recentColors, setIsH
83
86
  useEffect(() => {
84
87
  setSelectedColor(color);
85
88
  }, [color]);
86
- return (React.createElement("div", { className: (mainColor || recentColors) && styles.colorPickerWrapper, onMouseLeave: () => setIsHovered && setIsHovered(false) },
89
+ return (React.createElement("div", { className: (mainColor || recentColors) ? 'colorPickerWrapper' : '', onMouseLeave: () => setIsHovered && setIsHovered(false) },
87
90
  mainColor && React.createElement("div", { className: mainColorClasses, style: {
88
91
  width: `${width}px`,
89
92
  height: `${height}px`,
90
93
  backgroundColor: (colorValue === null || colorValue === void 0 ? void 0 : colorValue.startsWith('#')) ? colorValue : `var(--${colorValue})`,
91
94
  }, onClick: () => setIsHovered && setIsHovered(false) }),
92
- recentColors && recentColors.map((color, index) => (React.createElement("div", { key: index, className: styles.circle, style: {
95
+ recentColors && recentColors.map((color, index) => (React.createElement("div", { key: index, className: "circle", style: {
93
96
  width: `${width}px`,
94
97
  height: `${height}px`,
95
98
  backgroundColor: color.startsWith('#') ? color : `var(--${color})`,
96
99
  }, onClick: () => colorChangeHandler(color) }))),
97
- React.createElement("div", { className: styles.colorPicker },
100
+ React.createElement("div", { className: "colorPicker" },
98
101
  React.createElement("div", { ref: circleRef, className: colorCircleDefaultClasses, onClick: () => setIsOpen(!isOpen), style: {
99
102
  width: `${width}px`,
100
103
  height: `${height}px`,
101
104
  backgroundColor: selectedColor.startsWith('#') ? selectedColor : `var(--${selectedColor})`,
102
105
  } }),
103
106
  isOpen && (React.createElement("div", { ref: popoverRef, className: popoverClassess },
104
- isOpen && React.createElement(IconColorPicker10, { className: styles.colorPickerIcon, htmlColor: 'var(--white)' }),
105
- React.createElement(Chrome, { color: selectedColor, placement: GithubPlacement.Right, onChange: colorChangeHandler, className: styles.customChrome, showEyeDropper: false }),
106
- React.createElement("div", { className: styles.hex, style: { padding: '0 10px 0 20px' } },
107
+ isOpen && React.createElement(IconColorPicker10, { className: "colorPickerIcon", htmlColor: 'var(--white)' }),
108
+ React.createElement(Chrome, { color: selectedColor, placement: GithubPlacement.Right, onChange: colorChangeHandler, className: "customChrome", showEyeDropper: false }),
109
+ React.createElement("div", { className: "hex", style: { padding: '0 10px 0 20px' } },
107
110
  React.createElement(EditableInput, { value: hexaToHex(selectedColor), style: { width: 68, alignItems: 'flex-start' }, onChange: (e, color) => {
108
111
  const formattedColor = hexaToHex(color.toString());
109
- // colorChangeHandler(`#${ formattedColor }`)
110
112
  colorChangeHandler(formattedColor);
111
113
  } })))))));
112
114
  };
@@ -1,15 +1,13 @@
1
- .story--wrapper {
1
+ .story--wrapper-colorpicker {
2
2
  background-color: var(--white);
3
3
  padding: 30px;
4
4
  border-radius: 10px;
5
5
  width: 900px;
6
6
  }
7
7
 
8
-
9
-
10
-
11
8
  .colorPicker {
12
9
  -webkit-appearance: none;
10
+ appearance: none;
13
11
  border-radius: 50%;
14
12
  border: none;
15
13
  position: relative;
@@ -145,7 +143,7 @@
145
143
  z-index: 100;
146
144
  }
147
145
 
148
- :global(.w-color-swatch){
146
+ .w-color-swatch{
149
147
  padding: 10px !important;
150
148
  border-radius: 10px !important;
151
149
  width: fit-content !important;
@@ -156,31 +154,31 @@
156
154
  --github-border: 0px !important;
157
155
  }
158
156
 
159
- :global(.w-color-swatch) > div:nth-child(1),
160
- :global(.w-color-swatch) > div:nth-child(2){
157
+ .w-color-swatch > div:nth-child(1),
158
+ .w-color-swatch > div:nth-child(2){
161
159
  display: none !important;
162
160
  }
163
- :global(.w-color-swatch) > div:nth-child(3) {
161
+ .w-color-swatch > div:nth-child(3) {
164
162
  width: 195px !important;
165
163
  height: 195px !important;
166
164
  border-radius: 10px !important;
167
165
  }
168
166
 
169
- :global(.w-color-swatch) > div:nth-child(4){
167
+ .w-color-swatch > div:nth-child(4){
170
168
  gap: 15px !important;
171
169
  padding: 10px 0 !important;
172
170
  /* width: 80%; */
173
171
  }
174
- :global(.w-color-swatch) > div:nth-child(5){
172
+ .w-color-swatch > div:nth-child(5){
175
173
  padding: 0 !important;
176
174
 
177
175
  }
178
- :global(.w-color-swatch) > div:nth-child(5) > div:nth-child(2){
176
+ .w-color-swatch > div:nth-child(5) > div:nth-child(2){
179
177
  display: none !important;
180
178
  /* width: 80%; */
181
179
  }
182
180
  /* Для всех инпутов в пикере */
183
- :global(.w-color-chrome) :global(.w-color-editable-input) input {
181
+ .w-color-chrome .w-color-editable-input input {
184
182
  font-family: 'Raleway' !important;
185
183
  font-style: normal !important;
186
184
  font-weight: 400 !important;
@@ -188,41 +186,41 @@
188
186
  font-size: 12px !important;
189
187
  margin: 0 !important;
190
188
  }
191
- :global(.w-color-editable-input){
189
+ .w-color-editable-input{
192
190
  margin: 0 !important;
193
191
  max-width: 30px !important;
192
+ flex-direction: column-reverse !important;
193
+ --editable-input-box-shadow : none !important;
194
194
  }
195
- :global(.w-color-editable-input-rgba){
195
+ .w-color-editable-input-rgba{
196
196
  justify-content: end !important;
197
197
  }
198
- :global(.w-color-editable-input){
199
- flex-direction: column-reverse !important;
200
- }
201
- :global(.w-color-editable-input) > span {
198
+
199
+ .w-color-editable-input > span {
202
200
  padding-top: 0 !important;
203
201
  }
204
- :global(.w-color-editable-input:nth-child(1))> input{
202
+ .w-color-editable-input:nth-child(1)> input{
205
203
  border-radius: 10px 0 0 10px !important;
206
204
  border: 1px solid var(--grey-light) !important;
207
205
  }
208
- :global(.w-color-editable-input:nth-child(2))> input{
206
+ .w-color-editable-input:nth-child(2)> input{
209
207
  border-radius: 0 0 0 0px !important;
210
208
  border: 1px solid var(--grey-light) !important;
211
209
  border-left: none !important;
212
210
  }
213
- :global(.w-color-editable-input:nth-child(3))> input{
211
+ .w-color-editable-input:nth-child(3)> input{
214
212
  border-radius: 0 0 0 0px !important;
215
213
 
216
214
  border: 1px solid var(--grey-light) !important;
217
215
  border-left: none !important;
218
216
  }
219
- :global(.w-color-editable-input:nth-child(4))> input{
217
+ .w-color-editable-input:nth-child(4)> input{
220
218
  border-radius: 0px 10px 10px 0px !important;
221
219
  border: 1px solid var(--grey-light) !important;
222
220
  border-left: none !important;
223
221
  }
224
222
  /* Для лейблов */
225
- :global(.w-color-chrome-fields) :global(.w-color-editable-input) label {
223
+ .w-color-chrome-fields.w-color-editable-input label {
226
224
  font-family: 'Raleway' !important;
227
225
  font-style: normal !important;
228
226
  font-weight: 400 !important;
@@ -230,13 +228,13 @@ border-left: none !important;
230
228
  font-size: 16px !important;
231
229
  }
232
230
 
233
- :global(.w-color-alpha-horizontal > div.w-color-interactive){
231
+ .w-color-alpha-horizontal > div.w-color-interactive{
234
232
  border-radius: 8px !important;
235
233
  }
236
- :global(.w-color-alpha-horizontal:first-of-type > div:first-child){
234
+ .w-color-alpha-horizontal:first-of-type > div:first-child{
237
235
  border-radius: 50px !important;
238
236
  }
239
- :global(.w-color-alpha-horizontal:nth-of-type(2) > div:first-child){
237
+ .w-color-alpha-horizontal:nth-of-type(2) > div:first-child{
240
238
  border-radius: 50px !important;
241
239
  }
242
240
 
@@ -248,19 +246,15 @@ border-left: none !important;
248
246
  padding: 10px;
249
247
  }
250
248
 
251
- :global(.w-color-editable-input){
252
- --editable-input-box-shadow : none !important;
253
- }
254
-
255
249
  .hex{
256
250
  position: absolute;
257
251
  bottom: 20px;
258
252
  left: -10px;
259
253
  }
260
- .hex :global(.w-color-editable-input){
254
+ .hex .w-color-editable-input{
261
255
  border-radius: 10px !important;
262
256
  }
263
- .hex > :global(.w-color-editable-input) > input {
257
+ .hex > .w-color-editable-input > input {
264
258
  /* padding: 0 !important; */
265
259
  font-size: 12px !important;
266
260
  font-family: 'Raleway' !important;
@@ -6,7 +6,7 @@ import { DropdownProps } from 'kamotive_ui';
6
6
  export interface DropdownListItemProps {
7
7
  item: DropdownProps['items'][number];
8
8
  size: 'sm' | 'md' | 'lg';
9
- selectedItem: DropdownProps['items'][number] | null;
9
+ selectedItem: DropdownProps['items'][number] | null | string | number;
10
10
  style?: 'default' | 'text';
11
11
  onChange: (value: DropdownProps['items'][number]) => void;
12
12
  }