pixel-react 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/.yarn/install-state.gz +0 -0
- package/lib/StyleGuide/ColorPalette/types.d.ts +2 -0
- package/lib/components/DragAndDrop/DragAndDrop.d.ts +9 -0
- package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
- package/lib/components/DragAndDrop/DragAndDropList.d.ts +20 -0
- package/lib/components/DragAndDrop/index.d.ts +1 -0
- package/lib/components/Drawer/Drawer.d.ts +2 -1
- package/lib/components/GridLayout/types.d.ts +17 -0
- package/lib/components/Modal/Modal.d.ts +5 -0
- package/lib/components/Modal/Modal.stories.d.ts +7 -0
- package/lib/components/Modal/index.d.ts +1 -0
- package/lib/components/Modal/types.d.ts +26 -0
- package/lib/components/TableTree/TableTree.d.ts +1 -1
- package/lib/index.d.ts +29 -3
- package/lib/index.esm.js +4725 -80
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4723 -77
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +26 -23
- package/src/StyleGuide/ColorPalette/ColorPalette.scss +5 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +10 -1
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +2 -2
- package/src/StyleGuide/ColorPalette/types.ts +2 -0
- package/src/assets/Themes/BaseTheme.scss +9 -8
- package/src/assets/Themes/DarkTheme.scss +1 -0
- package/src/assets/icons/collapse-icon.svg +6 -0
- package/src/assets/icons/copy-icon.svg +3 -0
- package/src/assets/icons/download-icon.svg +3 -0
- package/src/assets/icons/expand-icon.svg +6 -0
- package/src/assets/icons/license_info.svg +28 -0
- package/src/assets/icons/license_warning.svg +10 -0
- package/src/assets/icons/refresh-icon.svg +4 -0
- package/src/components/DatePicker/DatePicker.scss +3 -3
- package/src/components/DragAndDrop/DragAndDrop.d.ts +5 -0
- package/src/components/DragAndDrop/DragAndDrop.stories.tsx +25 -0
- package/src/components/DragAndDrop/DragAndDrop.ts +7 -0
- package/src/components/DragAndDrop/DragAndDropList.scss +69 -0
- package/src/components/DragAndDrop/DragAndDropList.tsx +150 -0
- package/src/components/DragAndDrop/index.ts +1 -0
- package/src/components/Drawer/Drawer.tsx +3 -7
- package/src/components/GridLayout/GridLayout.stories.tsx +13 -51
- package/src/components/GridLayout/GridLayout.tsx +9 -7
- package/src/components/GridLayout/types.ts +20 -0
- package/src/components/Icon/iconList.ts +14 -0
- package/src/components/Modal/Modal.stories.tsx +63 -0
- package/src/components/Modal/Modal.tsx +71 -0
- package/src/components/Modal/index.tsx +1 -0
- package/src/components/Modal/modal.scss +37 -0
- package/src/components/Modal/types.ts +37 -0
- package/src/components/TableTree/TableTree.tsx +1 -1
- package/src/components/ThemeProvider/ThemeProvider.tsx +11 -8
- package/src/index.ts +2 -5
package/.yarn/install-state.gz
CHANGED
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,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
|
-
|
3
|
+
import { FC } from 'react';
|
4
|
+
declare const Drawer: FC<DrawerProps>;
|
4
5
|
export default Drawer;
|
@@ -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
|
}
|
@@ -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
|
+
}
|
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:
|
159
|
+
declare const Drawer: FC<DrawerProps>;
|
157
160
|
|
158
161
|
interface IconProps {
|
159
162
|
name: string;
|
@@ -268,6 +271,12 @@ interface ContainerProps {
|
|
268
271
|
* @type {string}
|
269
272
|
*/
|
270
273
|
gap?: string;
|
274
|
+
/**
|
275
|
+
* Classname for Container
|
276
|
+
* @default ''
|
277
|
+
* @type {string}
|
278
|
+
*/
|
279
|
+
className?: string;
|
271
280
|
}
|
272
281
|
interface RowProps {
|
273
282
|
/**
|
@@ -284,6 +293,11 @@ interface RowProps {
|
|
284
293
|
* @type {string}
|
285
294
|
*/
|
286
295
|
gap?: string;
|
296
|
+
/**
|
297
|
+
* @default ''
|
298
|
+
* @type string
|
299
|
+
*/
|
300
|
+
className?: string;
|
287
301
|
}
|
288
302
|
interface ColProps {
|
289
303
|
/**
|
@@ -300,6 +314,12 @@ interface ColProps {
|
|
300
314
|
* @type {number}
|
301
315
|
*/
|
302
316
|
size?: number;
|
317
|
+
/**
|
318
|
+
* @default ''
|
319
|
+
* @type string
|
320
|
+
*
|
321
|
+
*/
|
322
|
+
className?: string;
|
303
323
|
}
|
304
324
|
|
305
325
|
declare const Container: React__default.FC<ContainerProps>;
|
@@ -1402,6 +1422,12 @@ interface IconButtonProps {
|
|
1402
1422
|
|
1403
1423
|
declare const IconButton: React__default.FC<IconButtonProps>;
|
1404
1424
|
|
1425
|
+
declare const DragAndDrop: {
|
1426
|
+
DNDCore: typeof DNDCore;
|
1427
|
+
DNDSortable: typeof DNDSortable;
|
1428
|
+
DNDUtilities: typeof DNDUtilities;
|
1429
|
+
};
|
1430
|
+
|
1405
1431
|
type valueType$1 = any;
|
1406
1432
|
declare const checkEmpty: (value: valueType$1) => boolean;
|
1407
1433
|
|
@@ -1409,4 +1435,4 @@ type valueType = File | string;
|
|
1409
1435
|
declare const getExtension: (value: valueType) => string | undefined;
|
1410
1436
|
declare const getExtensionWithPeriod: (value: valueType) => string;
|
1411
1437
|
|
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 };
|
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 };
|