pixel-react 1.2.2 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/AddResourceButton/type.d.ts +3 -3
- package/lib/components/Form/Forms.d.ts +2 -1
- package/lib/components/Icon/types.d.ts +1 -1
- package/lib/components/MenuOption/types.d.ts +1 -1
- package/lib/components/MiniModal/MiniModal.stories.d.ts +1 -0
- package/lib/components/MiniModal/types.d.ts +6 -6
- package/lib/index.d.ts +14 -13
- package/lib/index.esm.js +91 -27
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +91 -27
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +5 -0
- package/src/assets/Themes/BaseTheme.scss +1 -0
- package/src/assets/Themes/DarkTheme.scss +1 -0
- package/src/assets/icons/add_testcase.svg +3 -0
- package/src/assets/icons/add_variable_icon.svg +3 -4
- package/src/assets/icons/attachment_icon.svg +3 -0
- package/src/assets/icons/authorization_icon.svg +3 -0
- package/src/assets/icons/automation_testcase.svg +4 -0
- package/src/assets/icons/back_icon.svg +3 -0
- package/src/assets/icons/browserstack_icon.svg +24 -0
- package/src/assets/icons/edge.svg +30 -0
- package/src/assets/icons/fire_fox.svg +106 -0
- package/src/assets/icons/internet_explorer.svg +3 -0
- package/src/assets/icons/lambda_icon.svg +3 -0
- package/src/assets/icons/linux.svg +42 -0
- package/src/assets/icons/local.svg +3 -0
- package/src/assets/icons/manual_testcase.svg +3 -0
- package/src/assets/icons/maximize_script.svg +12 -0
- package/src/assets/icons/opera.svg +9 -0
- package/src/assets/icons/safari_icon.svg +12 -0
- package/src/assets/icons/sause_lab.svg +3 -0
- package/src/assets/icons/variable_icon.svg +4 -0
- package/src/components/AddResourceButton/ArrowsButton/ArrowsButton.scss +1 -0
- package/src/components/AddResourceButton/type.ts +3 -3
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +2 -2
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +1 -1
- package/src/components/Button/types.ts +1 -1
- package/src/components/Form/Form.scss +18 -1
- package/src/components/Form/Form.stories.tsx +86 -13
- package/src/components/Form/Forms.tsx +2 -0
- package/src/components/Icon/iconList.ts +41 -1
- package/src/components/Icon/types.ts +1 -1
- package/src/components/IconButton/IconButton.scss +1 -1
- package/src/components/IconButton/IconButton.tsx +12 -7
- package/src/components/Input/Input.scss +1 -1
- package/src/components/MenuOption/MenuOption.tsx +25 -23
- package/src/components/MenuOption/types.ts +1 -1
- package/src/components/MiniModal/MiniModal.scss +5 -0
- package/src/components/MiniModal/MiniModal.stories.tsx +95 -0
- package/src/components/MiniModal/MiniModal.tsx +11 -6
- package/src/components/MiniModal/types.ts +6 -6
- package/src/components/Search/Search.tsx +6 -3
- package/src/components/Table/Table.scss +0 -1
- package/src/index.ts +2 -2
@@ -11,7 +11,7 @@ export interface DirectionalArrow {
|
|
11
11
|
menuOptions: {
|
12
12
|
label: string;
|
13
13
|
value: string | string[];
|
14
|
-
icon
|
14
|
+
icon?: string;
|
15
15
|
disable?: boolean;
|
16
16
|
}[];
|
17
17
|
}
|
@@ -34,7 +34,7 @@ export interface AddResourceButtonProps {
|
|
34
34
|
menuOptions: {
|
35
35
|
label: string;
|
36
36
|
value: string | string[];
|
37
|
-
icon
|
37
|
+
icon?: string;
|
38
38
|
disable?: boolean;
|
39
39
|
}[];
|
40
40
|
}[];
|
@@ -53,7 +53,7 @@ export interface DirectionalArrowButtonProps {
|
|
53
53
|
menuOptions: {
|
54
54
|
label: string;
|
55
55
|
value: string | string[];
|
56
|
-
icon
|
56
|
+
icon?: string;
|
57
57
|
disable?: boolean;
|
58
58
|
}[];
|
59
59
|
onArrowClick: () => void;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import Form from './Form';
|
3
3
|
interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
|
4
|
+
id?: 'string';
|
4
5
|
onSubmit: Form.SubmitHandler<T>;
|
5
6
|
children: (methods: ReturnType<typeof Form.useForm<T>>) => React.ReactNode;
|
6
7
|
}
|
7
|
-
declare const Forms: <T extends Form.FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
declare const Forms: <T extends Form.FieldValues>({ onSubmit, children, id, ...rest }: FormProps<T>) => import("react/jsx-runtime").JSX.Element;
|
8
9
|
export default Forms;
|
@@ -6,4 +6,5 @@ type Story = StoryObj<typeof MiniModal>;
|
|
6
6
|
export declare const BasicModal: Story;
|
7
7
|
export declare const CustomModalWithArrow: () => import("react/jsx-runtime").JSX.Element;
|
8
8
|
export declare const CustomModalWithWrapper: () => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export declare const normalModalFollowedByIcon: () => import("react/jsx-runtime").JSX.Element;
|
9
10
|
export default meta;
|
@@ -1,8 +1,4 @@
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
2
|
-
interface ButtonProps {
|
3
|
-
text: string;
|
4
|
-
onClick: () => void;
|
5
|
-
}
|
6
2
|
interface ModalDimensions {
|
7
3
|
width?: number;
|
8
4
|
height?: number;
|
@@ -23,11 +19,11 @@ export interface MiniEditModalProps {
|
|
23
19
|
/**
|
24
20
|
* Props for the cancel button inside the modal
|
25
21
|
*/
|
26
|
-
cancelButtonProps
|
22
|
+
cancelButtonProps?: any;
|
27
23
|
/**
|
28
24
|
* Props for the proceed button inside the modal.
|
29
25
|
*/
|
30
|
-
proceedButtonProps
|
26
|
+
proceedButtonProps?: any;
|
31
27
|
/**
|
32
28
|
* Optional content for the footer of the modal.
|
33
29
|
*/
|
@@ -44,6 +40,10 @@ export interface MiniEditModalProps {
|
|
44
40
|
* Specifies if the modal should behave as a popover with an arrow.
|
45
41
|
*/
|
46
42
|
isPopOver?: boolean;
|
43
|
+
/**
|
44
|
+
* Specifies if the modal should behave as a popover with an arrow.
|
45
|
+
*/
|
46
|
+
isIconModel?: boolean;
|
47
47
|
/**
|
48
48
|
* Sets the position of the modal relative to its anchor.
|
49
49
|
* bottom: The modal appears below the anchor.
|
package/lib/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ import * as DNDSortable from '@dnd-kit/sortable';
|
|
9
9
|
import * as DNDUtilities from '@dnd-kit/utilities';
|
10
10
|
import ReCAPTCHA from 'react-google-recaptcha';
|
11
11
|
|
12
|
-
interface ButtonProps
|
12
|
+
interface ButtonProps {
|
13
13
|
/**
|
14
14
|
* Variant of the button
|
15
15
|
*/
|
@@ -70,7 +70,7 @@ interface ButtonProps$1 {
|
|
70
70
|
transparentBackground?: boolean;
|
71
71
|
}
|
72
72
|
|
73
|
-
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps
|
73
|
+
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
74
74
|
|
75
75
|
interface BtnPropsCommon {
|
76
76
|
/**
|
@@ -203,7 +203,7 @@ interface IconProps$1 {
|
|
203
203
|
onClick?: (data?: any) => void;
|
204
204
|
hoverEffect?: boolean;
|
205
205
|
disabled?: boolean;
|
206
|
-
variant?:
|
206
|
+
variant?: 'dark' | 'light';
|
207
207
|
}
|
208
208
|
|
209
209
|
declare const Icon: React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<HTMLSpanElement>>;
|
@@ -783,7 +783,7 @@ interface OptionType extends OptionClick {
|
|
783
783
|
* @type {string}
|
784
784
|
* @required
|
785
785
|
*/
|
786
|
-
icon
|
786
|
+
icon?: string;
|
787
787
|
/**
|
788
788
|
* Indicates whether the option is disabled.
|
789
789
|
* @type {boolean}
|
@@ -990,7 +990,7 @@ interface AddResourceButtonProps {
|
|
990
990
|
menuOptions: {
|
991
991
|
label: string;
|
992
992
|
value: string | string[];
|
993
|
-
icon
|
993
|
+
icon?: string;
|
994
994
|
disable?: boolean;
|
995
995
|
}[];
|
996
996
|
}[];
|
@@ -1138,10 +1138,11 @@ declare const Typography: React__default.FC<TypographyProps>;
|
|
1138
1138
|
declare const useTheme: () => ThemeContextType;
|
1139
1139
|
|
1140
1140
|
interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
|
1141
|
+
id?: 'string';
|
1141
1142
|
onSubmit: Form.SubmitHandler<T>;
|
1142
1143
|
children: (methods: ReturnType<typeof Form.useForm<T>>) => React__default.ReactNode;
|
1143
1144
|
}
|
1144
|
-
declare const Forms: <T extends Form.FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
|
1145
|
+
declare const Forms: <T extends Form.FieldValues>({ onSubmit, children, id, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
|
1145
1146
|
|
1146
1147
|
interface Option$1 {
|
1147
1148
|
label: string | ReactNode;
|
@@ -1237,10 +1238,6 @@ declare const RadioButton: React__default.FC<RadioButtonProps>;
|
|
1237
1238
|
|
1238
1239
|
declare const RadioGroup: React__default.FC<RadioGroupProps>;
|
1239
1240
|
|
1240
|
-
interface ButtonProps {
|
1241
|
-
text: string;
|
1242
|
-
onClick: () => void;
|
1243
|
-
}
|
1244
1241
|
interface ModalDimensions {
|
1245
1242
|
width?: number;
|
1246
1243
|
height?: number;
|
@@ -1261,11 +1258,11 @@ interface MiniEditModalProps {
|
|
1261
1258
|
/**
|
1262
1259
|
* Props for the cancel button inside the modal
|
1263
1260
|
*/
|
1264
|
-
cancelButtonProps
|
1261
|
+
cancelButtonProps?: any;
|
1265
1262
|
/**
|
1266
1263
|
* Props for the proceed button inside the modal.
|
1267
1264
|
*/
|
1268
|
-
proceedButtonProps
|
1265
|
+
proceedButtonProps?: any;
|
1269
1266
|
/**
|
1270
1267
|
* Optional content for the footer of the modal.
|
1271
1268
|
*/
|
@@ -1282,6 +1279,10 @@ interface MiniEditModalProps {
|
|
1282
1279
|
* Specifies if the modal should behave as a popover with an arrow.
|
1283
1280
|
*/
|
1284
1281
|
isPopOver?: boolean;
|
1282
|
+
/**
|
1283
|
+
* Specifies if the modal should behave as a popover with an arrow.
|
1284
|
+
*/
|
1285
|
+
isIconModel?: boolean;
|
1285
1286
|
/**
|
1286
1287
|
* Sets the position of the modal relative to its anchor.
|
1287
1288
|
* bottom: The modal appears below the anchor.
|
@@ -1988,4 +1989,4 @@ declare const throttle: (func: Callback, limit: number) => ThrottledFunction;
|
|
1988
1989
|
|
1989
1990
|
declare const truncateText: (text: string, maxLength: number) => string;
|
1990
1991
|
|
1991
|
-
export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachmentButton, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExcelFile, ExpandableMenu, FileDropzone, Forms, HighlightText, Icon, IconButton, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiSelect, NlpInput as NLPInput, Paper, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, Tooltip, Typography, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, throttle, toast, truncateText, useTheme };
|
1992
|
+
export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachmentButton, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExcelFile, ExpandableMenu, FileDropzone, Forms as Form, HighlightText, Icon, IconButton, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiSelect, NlpInput as NLPInput, Paper, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, Tooltip, Typography, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, throttle, toast, truncateText, useTheme };
|