pixel-react 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/StyleGuide/ColorPalette/types.d.ts +2 -0
  3. package/lib/components/DragAndDrop/DragAndDrop.d.ts +9 -0
  4. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
  5. package/lib/components/DragAndDrop/DragAndDropList.d.ts +20 -0
  6. package/lib/components/DragAndDrop/index.d.ts +1 -0
  7. package/lib/components/Drawer/Drawer.d.ts +2 -1
  8. package/lib/components/Modal/Modal.d.ts +5 -0
  9. package/lib/components/Modal/Modal.stories.d.ts +7 -0
  10. package/lib/components/Modal/index.d.ts +1 -0
  11. package/lib/components/Modal/types.d.ts +26 -0
  12. package/lib/components/TableTree/TableTree.d.ts +1 -1
  13. package/lib/components/ThemeProvider/CustomThemeProvider.d.ts +8 -0
  14. package/lib/hooks/useCustomThemeProvider.d.ts +11 -0
  15. package/lib/index.d.ts +12 -3
  16. package/lib/index.esm.js +4714 -72
  17. package/lib/index.esm.js.map +1 -1
  18. package/lib/index.js +4712 -69
  19. package/lib/index.js.map +1 -1
  20. package/lib/tsconfig.tsbuildinfo +1 -1
  21. package/package.json +26 -23
  22. package/src/StyleGuide/ColorPalette/ColorPalette.scss +5 -0
  23. package/src/StyleGuide/ColorPalette/ColorPalette.tsx +10 -1
  24. package/src/StyleGuide/ColorPalette/colorPaletteList.ts +2 -2
  25. package/src/StyleGuide/ColorPalette/types.ts +2 -0
  26. package/src/assets/Themes/BaseTheme.scss +9 -8
  27. package/src/assets/Themes/DarkTheme.scss +1 -0
  28. package/src/assets/icons/collapse-icon.svg +6 -0
  29. package/src/assets/icons/copy-icon.svg +3 -0
  30. package/src/assets/icons/download-icon.svg +3 -0
  31. package/src/assets/icons/expand-icon.svg +6 -0
  32. package/src/assets/icons/license_info.svg +28 -0
  33. package/src/assets/icons/license_warning.svg +10 -0
  34. package/src/assets/icons/refresh-icon.svg +4 -0
  35. package/src/components/DatePicker/DatePicker.scss +3 -3
  36. package/src/components/DragAndDrop/DragAndDrop.d.ts +5 -0
  37. package/src/components/DragAndDrop/DragAndDrop.stories.tsx +25 -0
  38. package/src/components/DragAndDrop/DragAndDrop.ts +7 -0
  39. package/src/components/DragAndDrop/DragAndDropList.scss +69 -0
  40. package/src/components/DragAndDrop/DragAndDropList.tsx +150 -0
  41. package/src/components/DragAndDrop/index.ts +1 -0
  42. package/src/components/Drawer/Drawer.tsx +3 -7
  43. package/src/components/Icon/iconList.ts +14 -0
  44. package/src/components/Modal/Modal.stories.tsx +63 -0
  45. package/src/components/Modal/Modal.tsx +71 -0
  46. package/src/components/Modal/index.tsx +1 -0
  47. package/src/components/Modal/modal.scss +37 -0
  48. package/src/components/Modal/types.ts +37 -0
  49. package/src/components/TableTree/TableTree.tsx +1 -1
  50. package/src/components/ThemeProvider/ThemeProvider.tsx +11 -8
  51. package/src/index.ts +2 -5
  52. package/lib/components/AddButton/AddButton.d.ts +0 -5
  53. package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
  54. package/lib/components/AddButton/index.d.ts +0 -1
  55. package/lib/components/AddButton/types.d.ts +0 -4
Binary file
@@ -4,6 +4,7 @@ export interface ColorBoxProps {
4
4
  opacity?: number;
5
5
  dropShadow?: string;
6
6
  border?: string;
7
+ variable?: string;
7
8
  }
8
9
  export interface Color {
9
10
  name: string;
@@ -11,5 +12,6 @@ export interface Color {
11
12
  opacity?: number;
12
13
  dropShadow?: string;
13
14
  border?: string;
15
+ variable?: string;
14
16
  }
15
17
  export type ColorPaletteType = Color[];
@@ -0,0 +1,9 @@
1
+ import * as DNDCore from '@dnd-kit/core';
2
+ import * as DNDSortable from '@dnd-kit/sortable';
3
+ import * as DNDUtilities from '@dnd-kit/utilities';
4
+ declare const DragAndDrop: {
5
+ DNDCore: typeof DNDCore;
6
+ DNDSortable: typeof DNDSortable;
7
+ DNDUtilities: typeof DNDUtilities;
8
+ };
9
+ export default DragAndDrop;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import DragAndDropList from './DragAndDropList';
3
+ declare const meta: Meta<typeof DragAndDropList>;
4
+ type Story = StoryObj<typeof DragAndDropList>;
5
+ export declare const Primary: Story;
6
+ export default meta;
@@ -0,0 +1,20 @@
1
+ import './DragAndDropList.scss';
2
+ interface TaskProps {
3
+ id: number;
4
+ title: string;
5
+ }
6
+ export declare const Task: ({ id, title }: TaskProps) => import("react/jsx-runtime").JSX.Element;
7
+ interface ColumnProps {
8
+ id: string;
9
+ tasks: {
10
+ id: number;
11
+ title: string;
12
+ }[];
13
+ }
14
+ export declare const Column: React.FC<ColumnProps>;
15
+ interface InputProps {
16
+ onSubmit: (input: string) => void;
17
+ }
18
+ export declare const Input: React.FC<InputProps>;
19
+ declare const DragAndDropList: () => import("react/jsx-runtime").JSX.Element;
20
+ export default DragAndDropList;
@@ -0,0 +1 @@
1
+ export * from './DragAndDrop';
@@ -1,4 +1,5 @@
1
1
  import { DrawerProps } from './Types.js';
2
2
  import './Drawer.scss';
3
- declare const Drawer: ({ isOpen, children, onClose, title, primaryButtonProps, secondaryButtonProps, leftPrimaryButtonProps, leftSecondaryButtonProps, showEditButton, onEdit, overlay, isFooterRequired, footerContent, size, _isExpanded, isBackButtonVisible, _isCloseModalButtonVisible, }: DrawerProps) => import("react").ReactPortal;
3
+ import { FC } from 'react';
4
+ declare const Drawer: FC<DrawerProps>;
4
5
  export default Drawer;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './modal.scss';
3
+ import { ModalProps } from './types';
4
+ declare const Modal: React.FC<ModalProps>;
5
+ export default Modal;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Modal from './Modal';
3
+ declare const meta: Meta<typeof Modal>;
4
+ type Story = StoryObj<typeof Modal>;
5
+ export declare const DefaultModalStory: Story;
6
+ export declare const Controlled: Story;
7
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from './Modal';
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from "react";
2
+ export interface ModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ /*** label value for aria-label */
6
+ contentLabel?: string;
7
+ /*** default header will be provided with title and close icon. */
8
+ isHeaderDisplayed: boolean;
9
+ /*** Title to be displayed in the header when defaultHeader is true*/
10
+ headerTitle?: string;
11
+ /*** Custom class names for the modal content */
12
+ contentClassName?: string;
13
+ /*** Custom class name for the overlay */
14
+ overlayClassName?: string;
15
+ /*** Whether the modal should close when the 'Escape' key is pressed */
16
+ shouldCloseOnEsc?: boolean;
17
+ /*** Whether to hide the app from screen readers when the modal is open */
18
+ ariaHideApp?: boolean;
19
+ /*** Whether the modal should close when clicking outside of it (on the overlay) */
20
+ shouldCloseOnOverlayClick?: boolean;
21
+ headerContent?: string | ReactNode;
22
+ footerContent?: ReactNode;
23
+ /***Content to be displayed inside the modal */
24
+ children: ReactNode;
25
+ isFooterDisplayed: boolean;
26
+ }
@@ -1,5 +1,5 @@
1
- import './TableTree.scss';
2
1
  import React, { ReactNode } from 'react';
2
+ import './TableTree.scss';
3
3
  interface ColumnDataProps {
4
4
  name: string;
5
5
  accessor: string;
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ThemeContextType } from './types';
3
+ declare const ThemeContext: React.Context<ThemeContextType | undefined>;
4
+ declare const CustomThemeProvider: React.FC<{
5
+ children: ReactNode;
6
+ }>;
7
+ export { ThemeContext };
8
+ export default CustomThemeProvider;
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface ThemeContextType {
3
+ currentTheme: string;
4
+ setCurrentTheme: React.Dispatch<React.SetStateAction<string>>;
5
+ applyTheme: (newTheme: string) => void;
6
+ }
7
+ export declare const useCustomThemeProvider: React.FC<{
8
+ children: ReactNode;
9
+ }>;
10
+ export declare const useTheme: () => ThemeContextType;
11
+ export {};
package/lib/index.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import * as LazyLoad from 'react-window';
2
2
  export { LazyLoad };
3
3
  import * as React$1 from 'react';
4
- import React__default, { ReactNode, RefObject } from 'react';
4
+ import React__default, { ReactNode, FC, RefObject } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { FieldValues, UseFormProps, SubmitHandler, FieldPath, FieldErrors } from 'react-hook-form';
7
+ import * as DNDCore from '@dnd-kit/core';
8
+ import * as DNDSortable from '@dnd-kit/sortable';
9
+ import * as DNDUtilities from '@dnd-kit/utilities';
7
10
 
8
11
  interface ButtonProps$1 {
9
12
  /**
@@ -153,7 +156,7 @@ interface DrawerProps {
153
156
  footerContent?: ReactNode;
154
157
  }
155
158
 
156
- declare const Drawer: ({ isOpen, children, onClose, title, primaryButtonProps, secondaryButtonProps, leftPrimaryButtonProps, leftSecondaryButtonProps, showEditButton, onEdit, overlay, isFooterRequired, footerContent, size, _isExpanded, isBackButtonVisible, _isCloseModalButtonVisible, }: DrawerProps) => React$1.ReactPortal;
159
+ declare const Drawer: FC<DrawerProps>;
157
160
 
158
161
  interface IconProps {
159
162
  name: string;
@@ -1402,6 +1405,12 @@ interface IconButtonProps {
1402
1405
 
1403
1406
  declare const IconButton: React__default.FC<IconButtonProps>;
1404
1407
 
1408
+ declare const DragAndDrop: {
1409
+ DNDCore: typeof DNDCore;
1410
+ DNDSortable: typeof DNDSortable;
1411
+ DNDUtilities: typeof DNDUtilities;
1412
+ };
1413
+
1405
1414
  type valueType$1 = any;
1406
1415
  declare const checkEmpty: (value: valueType$1) => boolean;
1407
1416
 
@@ -1409,4 +1418,4 @@ type valueType = File | string;
1409
1418
  declare const getExtension: (value: valueType) => string | undefined;
1410
1419
  declare const getExtensionWithPeriod: (value: valueType) => string;
1411
1420
 
1412
- export { Accordion, AddButton as AddResourceButton, Button, Checkbox, Chip, Col, Container, CustomDatePicker as DatePicker, DonutChart, 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 };
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 };