pixel-react 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/StyleGuide/ColorPalette/types.d.ts +2 -0
  3. package/lib/assets/utils/functionUtils.d.ts +3 -0
  4. package/lib/components/DatePicker/DatePicker.d.ts +5 -0
  5. package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
  6. package/lib/components/DatePicker/Timepicker.d.ts +4 -0
  7. package/lib/components/DatePicker/index.d.ts +1 -0
  8. package/lib/components/DatePicker/types.d.ts +81 -0
  9. package/lib/components/DragAndDrop/DragAndDrop.d.ts +9 -0
  10. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
  11. package/lib/components/DragAndDrop/DragAndDropList.d.ts +20 -0
  12. package/lib/components/DragAndDrop/index.d.ts +1 -0
  13. package/lib/components/Drawer/Drawer.d.ts +2 -1
  14. package/lib/components/IconButton/IconButton.d.ts +5 -0
  15. package/lib/components/IconButton/IconButton.stories.d.ts +6 -0
  16. package/lib/components/IconButton/index.d.ts +1 -0
  17. package/lib/components/{AddButton → IconButton}/types.d.ts +3 -2
  18. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  19. package/lib/components/InputWithDropdown/types.d.ts +3 -7
  20. package/lib/components/Modal/Modal.d.ts +5 -0
  21. package/lib/components/Modal/Modal.stories.d.ts +7 -0
  22. package/lib/components/Modal/index.d.ts +1 -0
  23. package/lib/components/Modal/types.d.ts +26 -0
  24. package/lib/components/TableTree/TableTree.d.ts +2 -2
  25. package/lib/components/ThemeProvider/CustomThemeProvider.d.ts +8 -0
  26. package/lib/hooks/useCustomThemeProvider.d.ts +11 -0
  27. package/lib/index.d.ts +76 -16
  28. package/lib/index.esm.js +13365 -414
  29. package/lib/index.esm.js.map +1 -1
  30. package/lib/index.js +13368 -415
  31. package/lib/index.js.map +1 -1
  32. package/lib/tsconfig.tsbuildinfo +1 -1
  33. package/package.json +28 -23
  34. package/src/StyleGuide/ColorPalette/ColorPalette.scss +5 -0
  35. package/src/StyleGuide/ColorPalette/ColorPalette.tsx +10 -1
  36. package/src/StyleGuide/ColorPalette/colorPaletteList.ts +2 -2
  37. package/src/StyleGuide/ColorPalette/types.ts +2 -0
  38. package/src/assets/Themes/BaseTheme.scss +9 -1
  39. package/src/assets/Themes/DarkTheme.scss +8 -1
  40. package/src/assets/icons/add_variable_icon.svg +5 -0
  41. package/src/assets/icons/calendar_icon.svg +9 -0
  42. package/src/assets/icons/clock_icon.svg +11 -0
  43. package/src/assets/icons/collapse-icon.svg +6 -0
  44. package/src/assets/icons/copy-icon.svg +3 -0
  45. package/src/assets/icons/download-icon.svg +3 -0
  46. package/src/assets/icons/expand-icon.svg +6 -0
  47. package/src/assets/icons/info_icon.svg +4 -0
  48. package/src/assets/icons/left_arrow_icon.svg +3 -0
  49. package/src/assets/icons/license_info.svg +28 -0
  50. package/src/assets/icons/license_warning.svg +10 -0
  51. package/src/assets/icons/refresh-icon.svg +4 -0
  52. package/src/assets/icons/right_arrow_icon.svg +4 -0
  53. package/src/assets/styles/_mixins.scss +1 -0
  54. package/src/assets/utils/functionUtils.ts +37 -0
  55. package/src/components/DatePicker/DatePicker.scss +387 -0
  56. package/src/components/DatePicker/DatePicker.stories.tsx +161 -0
  57. package/src/components/DatePicker/DatePicker.tsx +438 -0
  58. package/src/components/DatePicker/Timepicker.tsx +372 -0
  59. package/src/components/DatePicker/index.ts +1 -0
  60. package/src/components/DatePicker/types.ts +100 -0
  61. package/src/components/DragAndDrop/DragAndDrop.d.ts +5 -0
  62. package/src/components/DragAndDrop/DragAndDrop.stories.tsx +25 -0
  63. package/src/components/DragAndDrop/DragAndDrop.ts +7 -0
  64. package/src/components/DragAndDrop/DragAndDropList.scss +69 -0
  65. package/src/components/DragAndDrop/DragAndDropList.tsx +150 -0
  66. package/src/components/DragAndDrop/index.ts +1 -0
  67. package/src/components/Drawer/Drawer.scss +0 -1
  68. package/src/components/Drawer/Drawer.tsx +7 -15
  69. package/src/components/Icon/iconList.ts +31 -9
  70. package/src/components/{AddButton/AddButton.scss → IconButton/IconButton.scss} +6 -2
  71. package/src/components/IconButton/IconButton.stories.tsx +25 -0
  72. package/src/components/{AddButton/AddButton.tsx → IconButton/IconButton.tsx} +10 -7
  73. package/src/components/IconButton/index.ts +1 -0
  74. package/src/components/{AddButton → IconButton}/types.ts +3 -2
  75. package/src/components/InputWithDropdown/InputWithDropdown.scss +1 -1
  76. package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +10 -13
  77. package/src/components/InputWithDropdown/InputWithDropdown.tsx +10 -8
  78. package/src/components/InputWithDropdown/types.ts +4 -7
  79. package/src/components/Modal/Modal.stories.tsx +63 -0
  80. package/src/components/Modal/Modal.tsx +71 -0
  81. package/src/components/Modal/index.tsx +1 -0
  82. package/src/components/Modal/modal.scss +37 -0
  83. package/src/components/Modal/types.ts +37 -0
  84. package/src/components/RadioButton/RadioButton.scss +3 -3
  85. package/src/components/Select/Select.scss +1 -1
  86. package/src/components/TableTree/TableTree.tsx +5 -1
  87. package/src/components/ThemeProvider/ThemeProvider.tsx +11 -8
  88. package/src/index.ts +6 -6
  89. package/lib/components/AddButton/AddButton.d.ts +0 -5
  90. package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
  91. package/lib/components/AddButton/index.d.ts +0 -1
  92. package/src/assets/icons/expired_license_icon.svg +0 -3
  93. package/src/assets/icons/expiringSoon_license_icon.svg +0 -3
  94. package/src/components/AddButton/AddButton.stories.tsx +0 -24
  95. package/src/components/AddButton/index.ts +0 -1
@@ -0,0 +1,71 @@
1
+ import React, { useContext, useEffect } from 'react';
2
+ import { createPortal } from 'react-dom';
3
+ import './modal.scss';
4
+ import { ModalProps } from './types';
5
+ import { ThemeContext } from '../ThemeProvider/ThemeProvider';
6
+
7
+
8
+ const Modal: React.FC<ModalProps> = ({
9
+ isOpen,
10
+ onClose,
11
+ contentLabel,
12
+ isHeaderDisplayed,
13
+ headerContent,
14
+ footerContent,
15
+ contentClassName,
16
+ isFooterDisplayed,
17
+ overlayClassName,
18
+ shouldCloseOnEsc = true,
19
+ ariaHideApp = true,
20
+ shouldCloseOnOverlayClick = true,
21
+ children,
22
+ }) => {
23
+ useEffect(() => {
24
+ const handleKeyDown = (e: KeyboardEvent) => {
25
+ if (e.key === 'Escape' && shouldCloseOnEsc) {
26
+ onClose();
27
+ }
28
+ };
29
+
30
+ if (isOpen) {
31
+ document.addEventListener('keydown', handleKeyDown);
32
+ if (ariaHideApp) {
33
+ document.body.style.overflow = 'hidden';
34
+ }
35
+ }
36
+ return () => {
37
+ document.removeEventListener('keydown', handleKeyDown);
38
+ if (ariaHideApp) {
39
+ document.body.style.overflow = '';
40
+ }
41
+ };
42
+ }, [isOpen, onClose, ariaHideApp, shouldCloseOnEsc]);
43
+
44
+ if (!isOpen) return null;
45
+ const themeContext = useContext(ThemeContext);
46
+ const currentTheme = themeContext?.currentTheme;
47
+
48
+ return createPortal(
49
+ <div
50
+ className={`ff-modal-overlay ${overlayClassName || ''}`}
51
+ onClick={shouldCloseOnOverlayClick ? onClose : undefined}
52
+ >
53
+ <div
54
+ className={`ff-modal-content ${currentTheme} ${contentClassName || ''}`}
55
+ onClick={(e) => e.stopPropagation()}
56
+ aria-label={contentLabel}
57
+ >
58
+ {isHeaderDisplayed && (
59
+ <div className="ff-modal-header">{headerContent}</div>
60
+ )}
61
+ {children}
62
+ </div>
63
+ {isFooterDisplayed && (
64
+ <div className="ff-modal-footer">{footerContent}</div>
65
+ )}
66
+ </div>,
67
+ document.body
68
+ );
69
+ };
70
+
71
+ export default Modal;
@@ -0,0 +1 @@
1
+ export { default } from './Modal';
@@ -0,0 +1,37 @@
1
+ @use '../../assets/styles/mixins' as *;
2
+ .ff-modal-overlay {
3
+ position: fixed;
4
+ top: 0;
5
+ left: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ background: var(--background-modal-color);
9
+ @include center-content;
10
+ flex-direction: column;
11
+ }
12
+
13
+ .ff-modal-content {
14
+ background: var(--ff-mini-modal-border);
15
+ position: relative;
16
+ max-width: 549px;
17
+ width: 100%;
18
+ border-radius: 12px 12px 0 0;
19
+ padding: 16px;
20
+ .ff-modal-header {
21
+ height: 32px;
22
+ width: 448px;
23
+ }
24
+ }
25
+ .ff-modal-footer {
26
+ background-color: var(--expandable-menu-option-bg);
27
+ max-width: 549px;
28
+ width: 100%;
29
+ height: 32px;
30
+ border-radius: 0 0 12px 12px;
31
+ display: flex;
32
+ flex-direction: row;
33
+ justify-content: end;
34
+ align-items: center;
35
+ gap: 8px;
36
+ padding: 4px 16px;
37
+ }
@@ -0,0 +1,37 @@
1
+ import { ReactNode } from "react";
2
+
3
+ export interface ModalProps {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+
7
+ /*** label value for aria-label */
8
+ contentLabel?: string;
9
+
10
+ /*** default header will be provided with title and close icon. */
11
+ isHeaderDisplayed: boolean;
12
+
13
+ /*** Title to be displayed in the header when defaultHeader is true*/
14
+ headerTitle?: string;
15
+
16
+ /*** Custom class names for the modal content */
17
+ contentClassName?: string;
18
+
19
+ /*** Custom class name for the overlay */
20
+ overlayClassName?: string;
21
+
22
+ /*** Whether the modal should close when the 'Escape' key is pressed */
23
+ shouldCloseOnEsc?: boolean;
24
+
25
+ /*** Whether to hide the app from screen readers when the modal is open */
26
+ ariaHideApp?: boolean; //for screen readers
27
+
28
+ /*** Whether the modal should close when clicking outside of it (on the overlay) */
29
+ shouldCloseOnOverlayClick?: boolean;
30
+ // shouldFocusAfterRender?: boolean;
31
+ // shouldReturnFocusAfterClose?: boolean;
32
+ headerContent?: string | ReactNode;
33
+ footerContent?: ReactNode;
34
+ /***Content to be displayed inside the modal */
35
+ children: ReactNode;
36
+ isFooterDisplayed: boolean;
37
+ }
@@ -23,15 +23,15 @@
23
23
  display: none;
24
24
  }
25
25
  .ff-radio-custom {
26
- box-sizing: border-box;
27
- @include circle(16px, 1px solid var(--radio-button-border)); //todo
26
+ box-sizing: content-box;
27
+ @include circle(14px, 1px solid var(--radio-button-border)); //todo
28
28
  position: relative;
29
29
  margin-right: 8px;
30
30
  @include transition(border-color, background-color);
31
31
 
32
32
  &::before {
33
33
  content: '';
34
- @include circle(14px);
34
+ @include circle(12px);
35
35
  background: #fbfdff; //todo
36
36
  position: absolute;
37
37
  top: 50%;
@@ -112,7 +112,7 @@
112
112
  @include absolute-position(6px, auto, auto, auto);
113
113
  width: calc(100% - 38px);
114
114
  min-height: calc(100% - 8px);
115
- padding: 0 28px 0 8px;
115
+ padding: 0 8px;
116
116
  border-radius: 4px;
117
117
  border: 1px solid transparent;
118
118
  z-index: 100;
@@ -1,11 +1,13 @@
1
1
  /* eslint-disable */
2
2
  // @ts-nocheck
3
- import './TableTree.scss';
4
3
  import React, { ReactNode, useLayoutEffect, useRef, useState } from 'react';
5
4
  import { prepareData } from '../../utils/TableCell/TableCell';
6
5
  import Icon from '../Icon';
7
6
  import { checkEmpty } from '../../utils/checkEmpty/checkEmpty';
8
7
 
8
+ import Checkbox from '../Checkbox';
9
+ import './TableTree.scss';
10
+
9
11
  interface ColumnDataProps {
10
12
  name: string;
11
13
  accessor: string;
@@ -32,6 +34,7 @@ interface TableTreeProps {
32
34
  const TableTree = ({
33
35
  columnsData,
34
36
  treeData,
37
+ withCheckBox,
35
38
  onClick = () => {},
36
39
  }: TableTreeProps) => {
37
40
  const [expandedNodes, setExpandedNodes] = useState<Set<ObjectProps>>(
@@ -140,6 +143,7 @@ const TableTree = ({
140
143
  style={{ fontWeight: node.folder ? 600 : 400 }}
141
144
  onClick={(event) => onClick(event, node)}
142
145
  >
146
+ {withCheckBox && <Checkbox />}
143
147
  {prepareData(node, column)}
144
148
  </div>
145
149
  </td>
@@ -1,21 +1,24 @@
1
- import React, { createContext, useState } from 'react';
1
+ import React, { createContext, useState, useEffect } from 'react';
2
2
  import { ThemeContextType, ThemeProviderProps, Theme } from './types';
3
3
  import '../../assets/Themes/Theme.scss';
4
4
 
5
5
  const ThemeContext = createContext<ThemeContextType | undefined>(undefined);
6
6
 
7
7
  const ThemeProvider: React.FC<ThemeProviderProps> = ({ children, theme }) => {
8
- const [currentTheme, setCurrentTheme] = useState<Theme>(
9
- theme || 'ff-light-theme'
10
- );
8
+ const [currentTheme, setCurrentTheme] = useState<Theme>(theme || 'ff-light-theme');
11
9
 
12
10
  const applyTheme = (newTheme: Theme) => setCurrentTheme(newTheme);
13
11
 
12
+ useEffect(() => {
13
+ document.body.className = currentTheme;
14
+ return () => {
15
+ document.body.className = '';
16
+ };
17
+ }, [currentTheme]);
18
+
14
19
  return (
15
- <ThemeContext.Provider
16
- value={{ currentTheme, setCurrentTheme, applyTheme }}
17
- >
18
- <div className={currentTheme}>{children}</div>
20
+ <ThemeContext.Provider value={{ currentTheme, setCurrentTheme, applyTheme }}>
21
+ {children}
19
22
  </ThemeContext.Provider>
20
23
  );
21
24
  };
package/src/index.ts CHANGED
@@ -14,10 +14,8 @@ import ExpandableMenu from './components/ExpandableMenu';
14
14
  import Select from './components/Select/Select';
15
15
  import TextArea from './components/TextArea';
16
16
  import StatusButton from './components/StatusButton';
17
-
18
17
  import MenuOption from './components/MenuOption';
19
18
  import Table from './components/Table/Table';
20
-
21
19
  import AddResourceButton from './components/AddResourceButton';
22
20
  import DonutChart from './components/Charts/DonutChart';
23
21
  import FileDropzone from './components/FileDropzone';
@@ -26,7 +24,6 @@ import ThemeProvider from './components/ThemeProvider';
26
24
  import Typography from './components/Typography';
27
25
  import useTheme from './hooks/useTheme';
28
26
  import Form from './components/Form';
29
-
30
27
  import InputWithDropdown from './components/InputWithDropdown';
31
28
  import RadioButton from './components/RadioButton';
32
29
  import RadioGroup from './components/RadioGroup';
@@ -36,8 +33,10 @@ import Tabs from './components/Tabs';
36
33
  import HighlightText from './components/HighlightText';
37
34
  import Checkbox from './components/Checkbox';
38
35
  import Search from './components/Search/Search';
36
+ import DatePicker from './components/DatePicker';
39
37
  import StateDropdown from './components/StateDropdown';
40
- import AddButton from './components/AddButton';
38
+ import IconButton from './components/IconButton';
39
+ import DragAndDrop from './components/DragAndDrop/DragAndDrop';
41
40
 
42
41
  // Utils imports
43
42
  import { checkEmpty } from './utils/checkEmpty/checkEmpty';
@@ -83,10 +82,11 @@ export {
83
82
  Tabs,
84
83
  Checkbox,
85
84
  Search,
85
+ DatePicker,
86
86
  StateDropdown,
87
87
  StatusButton,
88
- AddButton,
89
-
88
+ IconButton,
89
+ DragAndDrop,
90
90
 
91
91
  // utils exports
92
92
  checkEmpty,
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './AddButton.scss';
3
- import { AddButtonProps } from './types';
4
- declare const AddButton: React.FC<AddButtonProps>;
5
- export default AddButton;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import AddButton from './AddButton';
3
- declare const meta: Meta<typeof AddButton>;
4
- type Story = StoryObj<typeof AddButton>;
5
- export declare const PrimaryAddButton: Story;
6
- export default meta;
@@ -1 +0,0 @@
1
- export { default } from './AddButton';
@@ -1,3 +0,0 @@
1
- <svg width="18" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M15.867 6.20329C15.873 6.44806 15.6805 6.65267 15.4358 6.65874C15.191 6.6648 14.9864 6.47232 14.9803 6.22754C14.9614 5.5887 14.7704 4.99913 14.4362 4.50352C14.1035 4.01018 13.6268 3.6093 13.0373 3.34938L9.25273 1.6784C8.81623 1.48592 8.37519 1.38891 7.93489 1.38891C7.49459 1.38891 7.05355 1.48516 6.61705 1.6784L2.8325 3.34938C2.22626 3.61688 1.73974 4.03216 1.4063 4.54368C1.07285 5.0552 0.890218 5.66903 0.890218 6.33212V10.8867C0.890218 12.5144 1.66622 13.9633 2.70367 15.1729C3.76613 16.4127 5.10752 17.4047 6.18965 18.0912C6.73527 18.4368 7.33242 18.6111 7.92579 18.6126C8.52294 18.6141 9.12087 18.4436 9.66801 18.1018C9.87489 17.9722 10.1485 18.0351 10.2788 18.2428C10.4084 18.4497 10.3455 18.7232 10.1378 18.8536C9.44672 19.2863 8.68663 19.5023 7.92663 19.5C7.16276 19.4977 6.40191 19.2787 5.71387 18.843C4.57715 18.1223 3.16452 17.075 2.02943 15.751C0.868459 14.3975 0 12.7591 0 10.8874V6.33289C0 5.49627 0.234914 4.71724 0.663091 4.06096C1.09049 3.4047 1.70887 2.87423 2.47579 2.53624L6.26033 0.865263C6.81203 0.62125 7.37356 0.5 7.93661 0.5C8.49965 0.5 9.06045 0.622008 9.61288 0.865263L13.3974 2.53624C14.1439 2.86588 14.7494 3.37589 15.1753 4.0079C15.6004 4.63916 15.8452 5.39166 15.8687 6.20553L15.867 6.20329ZM10.8191 12.7675C10.6448 12.5932 10.6448 12.312 10.8191 12.1377C10.9934 11.9634 11.2745 11.9634 11.4488 12.1377L12.5408 13.229L14.8242 10.9456C14.9985 10.7713 15.2797 10.7713 15.454 10.9456C15.6282 11.1199 15.6282 11.401 15.454 11.5753L12.8561 14.1732C12.6818 14.3475 12.4006 14.3475 12.2264 14.1732L10.8199 12.7667L10.8191 12.7675ZM13.1356 7.7159C14.4732 7.7159 15.6842 8.25775 16.5609 9.13453C17.4377 10.0113 17.9795 11.2224 17.9795 12.5598C17.9795 13.8972 17.4369 15.1084 16.5609 15.985C15.6841 16.8618 14.4731 17.4037 13.1356 17.4037C11.7981 17.4037 10.5871 16.8618 9.71038 15.985C8.83359 15.1083 8.29175 13.8972 8.29175 12.5598C8.29175 11.2224 8.83435 10.0112 9.71038 9.13453C10.5872 8.25775 11.7982 7.7159 13.1356 7.7159ZM15.9312 9.76435C15.2158 9.04897 14.2276 8.6064 13.1356 8.6064C12.0436 8.6064 11.0554 9.04895 10.3401 9.76435C9.62482 10.4797 9.18215 11.4679 9.18215 12.5599C9.18215 13.6519 9.62471 14.6401 10.3401 15.3554C11.0555 16.0707 12.0436 16.5134 13.1356 16.5134C14.2276 16.5134 15.2159 16.0708 15.9312 15.3554C16.6464 14.64 17.0891 13.6519 17.0891 12.5599C17.0891 11.4679 16.6466 10.4796 15.9312 9.76435Z" fill="currentColor"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="18" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M15.867 6.20329C15.873 6.44806 15.6805 6.65267 15.4358 6.65874C15.191 6.6648 14.9864 6.47232 14.9803 6.22754C14.9614 5.5887 14.7704 4.99913 14.4362 4.50352C14.1035 4.01018 13.6268 3.6093 13.0373 3.34938L9.25273 1.6784C8.81623 1.48592 8.37519 1.38891 7.93489 1.38891C7.49459 1.38891 7.05355 1.48516 6.61705 1.6784L2.8325 3.34938C2.22626 3.61688 1.73974 4.03216 1.4063 4.54368C1.07285 5.0552 0.890218 5.66903 0.890218 6.33212V10.8867C0.890218 12.5144 1.66622 13.9633 2.70367 15.1729C3.76613 16.4127 5.10752 17.4047 6.18965 18.0912C6.73527 18.4368 7.33242 18.6111 7.92579 18.6126C8.52294 18.6141 9.12087 18.4436 9.66801 18.1018C9.87489 17.9722 10.1485 18.0351 10.2788 18.2428C10.4084 18.4497 10.3455 18.7232 10.1378 18.8536C9.44672 19.2863 8.68663 19.5023 7.92663 19.5C7.16276 19.4977 6.40191 19.2787 5.71387 18.843C4.57715 18.1223 3.16452 17.075 2.02943 15.751C0.868459 14.3975 0 12.7591 0 10.8874V6.33289C0 5.49627 0.234914 4.71724 0.663091 4.06096C1.09049 3.4047 1.70887 2.87423 2.47579 2.53624L6.26033 0.865263C6.81203 0.62125 7.37356 0.5 7.93661 0.5C8.49965 0.5 9.06045 0.622008 9.61288 0.865263L13.3974 2.53624C14.1439 2.86588 14.7494 3.37589 15.1753 4.0079C15.6004 4.63916 15.8452 5.39166 15.8687 6.20553L15.867 6.20329ZM10.8191 12.7675C10.6448 12.5932 10.6448 12.312 10.8191 12.1377C10.9934 11.9634 11.2745 11.9634 11.4488 12.1377L12.5408 13.229L14.8242 10.9456C14.9985 10.7713 15.2797 10.7713 15.454 10.9456C15.6282 11.1199 15.6282 11.401 15.454 11.5753L12.8561 14.1732C12.6818 14.3475 12.4006 14.3475 12.2264 14.1732L10.8199 12.7667L10.8191 12.7675ZM13.1356 7.7159C14.4732 7.7159 15.6842 8.25775 16.5609 9.13453C17.4377 10.0113 17.9795 11.2224 17.9795 12.5598C17.9795 13.8972 17.4369 15.1084 16.5609 15.985C15.6841 16.8618 14.4731 17.4037 13.1356 17.4037C11.7981 17.4037 10.5871 16.8618 9.71038 15.985C8.83359 15.1083 8.29175 13.8972 8.29175 12.5598C8.29175 11.2224 8.83435 10.0112 9.71038 9.13453C10.5872 8.25775 11.7982 7.7159 13.1356 7.7159ZM15.9312 9.76435C15.2158 9.04897 14.2276 8.6064 13.1356 8.6064C12.0436 8.6064 11.0554 9.04895 10.3401 9.76435C9.62482 10.4797 9.18215 11.4679 9.18215 12.5599C9.18215 13.6519 9.62471 14.6401 10.3401 15.3554C11.0555 16.0707 12.0436 16.5134 13.1356 16.5134C14.2276 16.5134 15.2159 16.0708 15.9312 15.3554C16.6464 14.64 17.0891 13.6519 17.0891 12.5599C17.0891 11.4679 16.6466 10.4796 15.9312 9.76435Z" fill="currentColor"/>
3
- </svg>
@@ -1,24 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import AddButton from './AddButton';
3
-
4
- const meta: Meta<typeof AddButton> = {
5
- title: 'Components/AddButton',
6
- component: AddButton,
7
- parameters: {
8
- layout: 'centered',
9
- },
10
- tags: ['autodocs'],
11
- };
12
-
13
- type Story = StoryObj<typeof AddButton>;
14
-
15
- export const PrimaryAddButton: Story = {
16
- render: () => {
17
- const name = 'Project';
18
- const onClick = () => {};
19
-
20
- return <AddButton name={name} onClick={onClick} />;
21
- },
22
- };
23
-
24
- export default meta;
@@ -1 +0,0 @@
1
- export { default } from './AddButton';