pixel-react 1.0.7 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/lib/components/AddButton/AddButton.d.ts +5 -0
  2. package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
  3. package/lib/components/AddButton/index.d.ts +1 -0
  4. package/lib/components/AddButton/types.d.ts +4 -0
  5. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.d.ts +3 -0
  6. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +6 -0
  7. package/lib/components/AllProjectsDropdown/index.d.ts +1 -0
  8. package/lib/components/AppHeader/AppHeader.d.ts +4 -0
  9. package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
  10. package/lib/components/AppHeader/index.d.ts +1 -0
  11. package/lib/components/AppHeader/types.d.ts +26 -0
  12. package/lib/components/GridLayout/types.d.ts +17 -0
  13. package/lib/components/Input/types.d.ts +1 -1
  14. package/lib/components/InputWithDropdown/types.d.ts +1 -1
  15. package/lib/components/Modal/types.d.ts +2 -0
  16. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  17. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
  18. package/lib/components/MultiSelect/MultiSelectTypes.d.ts +3 -0
  19. package/lib/index.d.ts +56 -4
  20. package/lib/index.esm.js +358 -97
  21. package/lib/index.esm.js.map +1 -1
  22. package/lib/index.js +359 -96
  23. package/lib/index.js.map +1 -1
  24. package/lib/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/src/assets/Themes/BaseTheme.scss +5 -0
  27. package/src/assets/Themes/DarkTheme.scss +3 -0
  28. package/src/assets/icons/all_projects.svg +3 -0
  29. package/src/assets/icons/android_icon.svg +6 -0
  30. package/src/assets/icons/download_icon.svg +4 -0
  31. package/src/assets/icons/fireflink_icon.svg +4 -0
  32. package/src/assets/icons/fireflink_logo.svg +13 -0
  33. package/src/assets/icons/mobile_icon.svg +3 -0
  34. package/src/assets/icons/ms_dynamic.svg +4 -0
  35. package/src/assets/icons/sales_force.svg +7 -0
  36. package/src/assets/icons/switch_license_icon.svg +123 -0
  37. package/src/assets/icons/vertical_separator.svg +3 -0
  38. package/src/assets/icons/web&mobile_icon.svg +3 -0
  39. package/src/assets/icons/web_icon.svg +3 -0
  40. package/src/assets/styles/_colors.scss +2 -1
  41. package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +70 -0
  42. package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +21 -0
  43. package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +148 -0
  44. package/src/components/AllProjectsDropdown/index.ts +1 -0
  45. package/src/components/AppHeader/AppHeader.scss +67 -0
  46. package/src/components/AppHeader/AppHeader.stories.tsx +156 -0
  47. package/src/components/AppHeader/AppHeader.tsx +124 -0
  48. package/src/components/AppHeader/index.ts +1 -0
  49. package/src/components/AppHeader/types.ts +27 -0
  50. package/src/components/GridLayout/GridLayout.stories.tsx +13 -51
  51. package/src/components/GridLayout/GridLayout.tsx +9 -7
  52. package/src/components/GridLayout/types.ts +20 -0
  53. package/src/components/Icon/iconList.ts +26 -0
  54. package/src/components/IconButton/IconButton.scss +2 -1
  55. package/src/components/Input/types.ts +1 -1
  56. package/src/components/InputWithDropdown/types.ts +1 -3
  57. package/src/components/Modal/Modal.stories.tsx +6 -2
  58. package/src/components/Modal/Modal.tsx +6 -2
  59. package/src/components/Modal/modal.scss +6 -4
  60. package/src/components/Modal/types.ts +2 -0
  61. package/src/components/MultiSelect/MultiSelect.scss +8 -1
  62. package/src/components/MultiSelect/MultiSelect.stories.tsx +26 -0
  63. package/src/components/MultiSelect/MultiSelect.tsx +68 -12
  64. package/src/components/MultiSelect/MultiSelectTypes.ts +3 -0
  65. package/src/components/Select/Select.scss +1 -1
  66. package/src/index.ts +5 -0
  67. package/lib/components/ThemeProvider/CustomThemeProvider.d.ts +0 -8
  68. package/lib/hooks/useCustomThemeProvider.d.ts +0 -11
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1 @@
1
+ export { default } from './AddButton';
@@ -0,0 +1,4 @@
1
+ export interface AddButtonProps {
2
+ name: string;
3
+ onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
4
+ }
@@ -0,0 +1,3 @@
1
+ import './AllProjectsDropdown.scss';
2
+ declare const AllProjectsDropdown: () => import("react/jsx-runtime").JSX.Element;
3
+ export default AllProjectsDropdown;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AllProjectsDropdown from './AllProjectsDropdown';
3
+ declare const meta: Meta<typeof AllProjectsDropdown>;
4
+ type Story = StoryObj<typeof AllProjectsDropdown>;
5
+ export declare const PrimaryIconButton: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from './AllProjectsDropdown';
@@ -0,0 +1,4 @@
1
+ import { AppHeaderProps } from './types';
2
+ import './AppHeader.scss';
3
+ declare const AppHeader: React.FC<AppHeaderProps>;
4
+ export default AppHeader;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AppHeader from './AppHeader';
3
+ declare const meta: Meta<typeof AppHeader>;
4
+ type Story = StoryObj<typeof AppHeader>;
5
+ export declare const SampleAppHeader: Story;
6
+ export declare const Controlled: Story;
7
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from "./AppHeader";
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AppHeaderProps {
3
+ logoIconName: string;
4
+ rightContent: ReactNode;
5
+ projectsList: string[];
6
+ appHeaderMenuItems: appHeaderMenuItemProps[];
7
+ appHeaderHiddenMenuItems: string[];
8
+ selectedMenu: string;
9
+ selectedSubMenu: string;
10
+ selectedQuickMenu: string;
11
+ onMenuClick?: (text: any) => void;
12
+ onSubMenuClick?: (text: any) => void;
13
+ onQuickMenuClick?: (text: any) => void;
14
+ }
15
+ export interface appHeaderMenuItemProps {
16
+ menuName: string;
17
+ subMenuItems: appHeaderSubMenuItemProps[];
18
+ }
19
+ export interface appHeaderSubMenuItemProps {
20
+ subMenuName: string;
21
+ quickMenuItems: appHeaderQuickMenuItemProps[];
22
+ }
23
+ export interface appHeaderQuickMenuItemProps {
24
+ quickMenuName: string;
25
+ quickMenuIconName: string;
26
+ }
@@ -22,6 +22,12 @@ export interface ContainerProps {
22
22
  * @type {string}
23
23
  */
24
24
  gap?: string;
25
+ /**
26
+ * Classname for Container
27
+ * @default ''
28
+ * @type {string}
29
+ */
30
+ className?: string;
25
31
  }
26
32
  export interface RowProps {
27
33
  /**
@@ -38,6 +44,11 @@ export interface RowProps {
38
44
  * @type {string}
39
45
  */
40
46
  gap?: string;
47
+ /**
48
+ * @default ''
49
+ * @type string
50
+ */
51
+ className?: string;
41
52
  }
42
53
  export interface ColProps {
43
54
  /**
@@ -54,4 +65,10 @@ export interface ColProps {
54
65
  * @type {number}
55
66
  */
56
67
  size?: number;
68
+ /**
69
+ * @default ''
70
+ * @type string
71
+ *
72
+ */
73
+ className?: string;
57
74
  }
@@ -6,7 +6,7 @@ export interface InputProps {
6
6
  /**
7
7
  * Label | field label to be displayed
8
8
  */
9
- label: string;
9
+ label?: string;
10
10
  /**
11
11
  * value | input field value
12
12
  */
@@ -11,7 +11,7 @@ export interface InputWithDropdownProps {
11
11
  /**
12
12
  * Label | field label to be displayed
13
13
  */
14
- label: string;
14
+ label?: string;
15
15
  /**
16
16
  * value | input field value
17
17
  */
@@ -23,4 +23,6 @@ export interface ModalProps {
23
23
  /***Content to be displayed inside the modal */
24
24
  children: ReactNode;
25
25
  isFooterDisplayed: boolean;
26
+ customWidth: string;
27
+ customHeight?: string;
26
28
  }
@@ -1,4 +1,4 @@
1
1
  import './MultiSelect.scss';
2
2
  import { MultiSelectProps } from './MultiSelectTypes';
3
- declare const MultiSelect: ({ options, selectedOptions, onChange, zIndex, label, onSearch, required, disabled, errorMessage, withSelectButton, onSelect, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, withSelectButton, onSelect, displayCount }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default MultiSelect;
@@ -5,5 +5,6 @@ type Story = StoryObj<typeof MultiSelect>;
5
5
  export declare const Default: Story;
6
6
  export declare const Default2: Story;
7
7
  export declare const Default3: Story;
8
+ export declare const EmailGroup: Story;
8
9
  export declare const Controlled: Story;
9
10
  export default meta;
@@ -6,15 +6,18 @@ interface Option {
6
6
  }
7
7
  interface MultiSelectProps {
8
8
  options: Option[];
9
+ type?: 'email' | 'text';
9
10
  label: string;
10
11
  selectedOptions?: Option[];
11
12
  disabled?: boolean;
12
13
  onSearch?: (searchedKeyword: string) => void;
13
14
  onChange?: (selectedOptions: Option[]) => void;
15
+ acceptNewOption?: boolean;
14
16
  zIndex?: number;
15
17
  required?: boolean;
16
18
  errorMessage?: string;
17
19
  withSelectButton?: boolean;
18
20
  onSelect?: () => void;
21
+ displayCount?: boolean;
19
22
  }
20
23
  export { Option, MultiSelectProps };
package/lib/index.d.ts CHANGED
@@ -211,19 +211,22 @@ interface Option$2 {
211
211
  }
212
212
  interface MultiSelectProps {
213
213
  options: Option$2[];
214
+ type?: 'email' | 'text';
214
215
  label: string;
215
216
  selectedOptions?: Option$2[];
216
217
  disabled?: boolean;
217
218
  onSearch?: (searchedKeyword: string) => void;
218
219
  onChange?: (selectedOptions: Option$2[]) => void;
220
+ acceptNewOption?: boolean;
219
221
  zIndex?: number;
220
222
  required?: boolean;
221
223
  errorMessage?: string;
222
224
  withSelectButton?: boolean;
223
225
  onSelect?: () => void;
226
+ displayCount?: boolean;
224
227
  }
225
228
 
226
- declare const MultiSelect: ({ options, selectedOptions, onChange, zIndex, label, onSearch, required, disabled, errorMessage, withSelectButton, onSelect, }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
229
+ declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, withSelectButton, onSelect, displayCount }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
227
230
 
228
231
  interface ToasterProps {
229
232
  /**Boolean value to handle state of toaster. */
@@ -271,6 +274,12 @@ interface ContainerProps {
271
274
  * @type {string}
272
275
  */
273
276
  gap?: string;
277
+ /**
278
+ * Classname for Container
279
+ * @default ''
280
+ * @type {string}
281
+ */
282
+ className?: string;
274
283
  }
275
284
  interface RowProps {
276
285
  /**
@@ -287,6 +296,11 @@ interface RowProps {
287
296
  * @type {string}
288
297
  */
289
298
  gap?: string;
299
+ /**
300
+ * @default ''
301
+ * @type string
302
+ */
303
+ className?: string;
290
304
  }
291
305
  interface ColProps {
292
306
  /**
@@ -303,6 +317,12 @@ interface ColProps {
303
317
  * @type {number}
304
318
  */
305
319
  size?: number;
320
+ /**
321
+ * @default ''
322
+ * @type string
323
+ *
324
+ */
325
+ className?: string;
306
326
  }
307
327
 
308
328
  declare const Container: React__default.FC<ContainerProps>;
@@ -420,7 +440,7 @@ interface InputProps {
420
440
  /**
421
441
  * Label | field label to be displayed
422
442
  */
423
- label: string;
443
+ label?: string;
424
444
  /**
425
445
  * value | input field value
426
446
  */
@@ -1051,7 +1071,7 @@ interface InputWithDropdownProps {
1051
1071
  /**
1052
1072
  * Label | field label to be displayed
1053
1073
  */
1054
- label: string;
1074
+ label?: string;
1055
1075
  /**
1056
1076
  * value | input field value
1057
1077
  */
@@ -1405,12 +1425,44 @@ interface IconButtonProps {
1405
1425
 
1406
1426
  declare const IconButton: React__default.FC<IconButtonProps>;
1407
1427
 
1428
+ interface ModalProps {
1429
+ isOpen: boolean;
1430
+ onClose: () => void;
1431
+ /*** label value for aria-label */
1432
+ contentLabel?: string;
1433
+ /*** default header will be provided with title and close icon. */
1434
+ isHeaderDisplayed: boolean;
1435
+ /*** Title to be displayed in the header when defaultHeader is true*/
1436
+ headerTitle?: string;
1437
+ /*** Custom class names for the modal content */
1438
+ contentClassName?: string;
1439
+ /*** Custom class name for the overlay */
1440
+ overlayClassName?: string;
1441
+ /*** Whether the modal should close when the 'Escape' key is pressed */
1442
+ shouldCloseOnEsc?: boolean;
1443
+ /*** Whether to hide the app from screen readers when the modal is open */
1444
+ ariaHideApp?: boolean;
1445
+ /*** Whether the modal should close when clicking outside of it (on the overlay) */
1446
+ shouldCloseOnOverlayClick?: boolean;
1447
+ headerContent?: string | ReactNode;
1448
+ footerContent?: ReactNode;
1449
+ /***Content to be displayed inside the modal */
1450
+ children: ReactNode;
1451
+ isFooterDisplayed: boolean;
1452
+ customWidth: string;
1453
+ customHeight?: string;
1454
+ }
1455
+
1456
+ declare const Modal: React__default.FC<ModalProps>;
1457
+
1408
1458
  declare const DragAndDrop: {
1409
1459
  DNDCore: typeof DNDCore;
1410
1460
  DNDSortable: typeof DNDSortable;
1411
1461
  DNDUtilities: typeof DNDUtilities;
1412
1462
  };
1413
1463
 
1464
+ declare const AllProjectsDropdown: () => react_jsx_runtime.JSX.Element;
1465
+
1414
1466
  type valueType$1 = any;
1415
1467
  declare const checkEmpty: (value: valueType$1) => boolean;
1416
1468
 
@@ -1418,4 +1470,4 @@ type valueType = File | string;
1418
1470
  declare const getExtension: (value: valueType) => string | undefined;
1419
1471
  declare const getExtensionWithPeriod: (value: valueType) => string;
1420
1472
 
1421
- export { Accordion, AddButton as AddResourceButton, Button, Checkbox, Chip, Col, Container, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, IconButton, Input, InputWithDropdown, MenuOption, MiniModal, MultiSelect, RadialChart, RadioButton, RadioGroup, Row, Search, Select, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, checkEmpty, getExtension, getExtensionWithPeriod, useTheme };
1473
+ export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, Button, Checkbox, Chip, Col, Container, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, IconButton, Input, InputWithDropdown, MenuOption, MiniModal, Modal, MultiSelect, RadialChart, RadioButton, RadioGroup, Row, Search, Select, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, checkEmpty, getExtension, getExtensionWithPeriod, useTheme };