pixel-react 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.d.ts +3 -0
  2. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +6 -0
  3. package/lib/components/AllProjectsDropdown/index.d.ts +1 -0
  4. package/lib/components/AppHeader/AppHeader.d.ts +4 -0
  5. package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
  6. package/lib/components/AppHeader/index.d.ts +1 -0
  7. package/lib/components/AppHeader/types.d.ts +26 -0
  8. package/lib/components/Input/types.d.ts +1 -1
  9. package/lib/components/InputWithDropdown/types.d.ts +1 -1
  10. package/lib/components/Modal/types.d.ts +2 -0
  11. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  12. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
  13. package/lib/components/MultiSelect/MultiSelectTypes.d.ts +3 -0
  14. package/lib/index.d.ts +39 -4
  15. package/lib/index.esm.js +347 -89
  16. package/lib/index.esm.js.map +1 -1
  17. package/lib/index.js +348 -88
  18. package/lib/index.js.map +1 -1
  19. package/lib/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +1 -1
  21. package/src/assets/Themes/BaseTheme.scss +5 -0
  22. package/src/assets/Themes/DarkTheme.scss +3 -0
  23. package/src/assets/icons/all_projects.svg +3 -0
  24. package/src/assets/icons/android_icon.svg +6 -0
  25. package/src/assets/icons/download_icon.svg +4 -0
  26. package/src/assets/icons/fireflink_icon.svg +4 -0
  27. package/src/assets/icons/fireflink_logo.svg +13 -0
  28. package/src/assets/icons/mobile_icon.svg +3 -0
  29. package/src/assets/icons/ms_dynamic.svg +4 -0
  30. package/src/assets/icons/sales_force.svg +7 -0
  31. package/src/assets/icons/switch_license_icon.svg +123 -0
  32. package/src/assets/icons/vertical_separator.svg +3 -0
  33. package/src/assets/icons/web&mobile_icon.svg +3 -0
  34. package/src/assets/icons/web_icon.svg +3 -0
  35. package/src/assets/styles/_colors.scss +2 -1
  36. package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +70 -0
  37. package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +21 -0
  38. package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +148 -0
  39. package/src/components/AllProjectsDropdown/index.ts +1 -0
  40. package/src/components/AppHeader/AppHeader.scss +67 -0
  41. package/src/components/AppHeader/AppHeader.stories.tsx +156 -0
  42. package/src/components/AppHeader/AppHeader.tsx +124 -0
  43. package/src/components/AppHeader/index.ts +1 -0
  44. package/src/components/AppHeader/types.ts +27 -0
  45. package/src/components/Icon/iconList.ts +26 -0
  46. package/src/components/IconButton/IconButton.scss +2 -1
  47. package/src/components/Input/types.ts +1 -1
  48. package/src/components/InputWithDropdown/types.ts +1 -3
  49. package/src/components/Modal/Modal.stories.tsx +6 -2
  50. package/src/components/Modal/Modal.tsx +6 -2
  51. package/src/components/Modal/modal.scss +6 -4
  52. package/src/components/Modal/types.ts +2 -0
  53. package/src/components/MultiSelect/MultiSelect.scss +8 -1
  54. package/src/components/MultiSelect/MultiSelect.stories.tsx +26 -0
  55. package/src/components/MultiSelect/MultiSelect.tsx +68 -12
  56. package/src/components/MultiSelect/MultiSelectTypes.ts +3 -0
  57. package/src/components/Select/Select.scss +1 -1
  58. package/src/index.ts +5 -0
@@ -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
+ }
@@ -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. */
@@ -437,7 +440,7 @@ interface InputProps {
437
440
  /**
438
441
  * Label | field label to be displayed
439
442
  */
440
- label: string;
443
+ label?: string;
441
444
  /**
442
445
  * value | input field value
443
446
  */
@@ -1068,7 +1071,7 @@ interface InputWithDropdownProps {
1068
1071
  /**
1069
1072
  * Label | field label to be displayed
1070
1073
  */
1071
- label: string;
1074
+ label?: string;
1072
1075
  /**
1073
1076
  * value | input field value
1074
1077
  */
@@ -1422,12 +1425,44 @@ interface IconButtonProps {
1422
1425
 
1423
1426
  declare const IconButton: React__default.FC<IconButtonProps>;
1424
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
+
1425
1458
  declare const DragAndDrop: {
1426
1459
  DNDCore: typeof DNDCore;
1427
1460
  DNDSortable: typeof DNDSortable;
1428
1461
  DNDUtilities: typeof DNDUtilities;
1429
1462
  };
1430
1463
 
1464
+ declare const AllProjectsDropdown: () => react_jsx_runtime.JSX.Element;
1465
+
1431
1466
  type valueType$1 = any;
1432
1467
  declare const checkEmpty: (value: valueType$1) => boolean;
1433
1468
 
@@ -1435,4 +1470,4 @@ type valueType = File | string;
1435
1470
  declare const getExtension: (value: valueType) => string | undefined;
1436
1471
  declare const getExtensionWithPeriod: (value: valueType) => string;
1437
1472
 
1438
- 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 };