pixel-react 1.0.8 → 1.0.9
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/lib/components/AllProjectsDropdown/AllProjectsDropdown.d.ts +3 -0
 - package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +6 -0
 - package/lib/components/AllProjectsDropdown/index.d.ts +1 -0
 - package/lib/components/AppHeader/AppHeader.d.ts +4 -0
 - package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
 - package/lib/components/AppHeader/index.d.ts +1 -0
 - package/lib/components/AppHeader/types.d.ts +26 -0
 - package/lib/components/Input/types.d.ts +1 -1
 - package/lib/components/InputWithDropdown/types.d.ts +1 -1
 - package/lib/components/Modal/types.d.ts +2 -0
 - package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
 - package/lib/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
 - package/lib/components/MultiSelect/MultiSelectTypes.d.ts +3 -0
 - package/lib/index.d.ts +39 -4
 - package/lib/index.esm.js +347 -89
 - package/lib/index.esm.js.map +1 -1
 - package/lib/index.js +348 -88
 - package/lib/index.js.map +1 -1
 - package/lib/tsconfig.tsbuildinfo +1 -1
 - package/package.json +1 -1
 - package/src/assets/Themes/BaseTheme.scss +5 -0
 - package/src/assets/Themes/DarkTheme.scss +3 -0
 - package/src/assets/icons/all_projects.svg +3 -0
 - package/src/assets/icons/android_icon.svg +6 -0
 - package/src/assets/icons/download_icon.svg +4 -0
 - package/src/assets/icons/fireflink_icon.svg +4 -0
 - package/src/assets/icons/fireflink_logo.svg +13 -0
 - package/src/assets/icons/mobile_icon.svg +3 -0
 - package/src/assets/icons/ms_dynamic.svg +4 -0
 - package/src/assets/icons/sales_force.svg +7 -0
 - package/src/assets/icons/switch_license_icon.svg +123 -0
 - package/src/assets/icons/vertical_separator.svg +3 -0
 - package/src/assets/icons/web&mobile_icon.svg +3 -0
 - package/src/assets/icons/web_icon.svg +3 -0
 - package/src/assets/styles/_colors.scss +2 -1
 - package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +70 -0
 - package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +21 -0
 - package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +148 -0
 - package/src/components/AllProjectsDropdown/index.ts +1 -0
 - package/src/components/AppHeader/AppHeader.scss +67 -0
 - package/src/components/AppHeader/AppHeader.stories.tsx +156 -0
 - package/src/components/AppHeader/AppHeader.tsx +124 -0
 - package/src/components/AppHeader/index.ts +1 -0
 - package/src/components/AppHeader/types.ts +27 -0
 - package/src/components/Icon/iconList.ts +26 -0
 - package/src/components/IconButton/IconButton.scss +2 -1
 - package/src/components/Input/types.ts +1 -1
 - package/src/components/InputWithDropdown/types.ts +1 -3
 - package/src/components/Modal/Modal.stories.tsx +6 -2
 - package/src/components/Modal/Modal.tsx +6 -2
 - package/src/components/Modal/modal.scss +6 -4
 - package/src/components/Modal/types.ts +2 -0
 - package/src/components/MultiSelect/MultiSelect.scss +8 -1
 - package/src/components/MultiSelect/MultiSelect.stories.tsx +26 -0
 - package/src/components/MultiSelect/MultiSelect.tsx +68 -12
 - package/src/components/MultiSelect/MultiSelectTypes.ts +3 -0
 - package/src/components/Select/Select.scss +1 -1
 - package/src/index.ts +5 -0
 
| 
         @@ -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,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 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -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;
         
     | 
| 
         @@ -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 
     | 
| 
      
 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 
     | 
| 
      
 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 };
         
     |