pixel-react 1.4.7 → 1.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/Form/Forms.d.ts +3 -1
  3. package/lib/components/Input/Input.d.ts +1 -1
  4. package/lib/components/Input/types.d.ts +4 -0
  5. package/lib/components/TableTree/TableTree.d.ts +2 -1
  6. package/lib/index.d.ts +10 -3
  7. package/lib/index.esm.js +121 -83
  8. package/lib/index.esm.js.map +1 -1
  9. package/lib/index.js +121 -83
  10. package/lib/index.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/assets/Themes/BaseTheme.scss +3 -0
  13. package/src/assets/Themes/DarkTheme.scss +1 -0
  14. package/src/assets/fonts/Poppins-Bold.woff2 +0 -0
  15. package/src/assets/fonts/Poppins-Medium.woff2 +0 -0
  16. package/src/assets/fonts/Poppins-Regular.woff2 +0 -0
  17. package/src/assets/fonts/Poppins-SemiBold.woff2 +0 -0
  18. package/src/assets/icons/Header_preset.svg +13 -0
  19. package/src/assets/icons/add_file.svg +16 -4
  20. package/src/assets/icons/eye_open_icon.svg +2 -9
  21. package/src/assets/icons/replace_icon.svg +6 -0
  22. package/src/assets/styles/_fonts.scss +7 -4
  23. package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +6 -1
  24. package/src/components/AppHeader/AppHeader.scss +6 -1
  25. package/src/components/AppHeader/AppHeader.stories.tsx +0 -4
  26. package/src/components/AppHeader/AppHeader.tsx +1 -0
  27. package/src/components/AttachmentButton/AttachmentButton.tsx +10 -5
  28. package/src/components/Form/Form.stories.tsx +4 -8
  29. package/src/components/Form/Forms.tsx +11 -4
  30. package/src/components/Icon/iconList.ts +7 -1
  31. package/src/components/Input/Input.scss +5 -0
  32. package/src/components/Input/Input.stories.tsx +44 -0
  33. package/src/components/Input/Input.tsx +24 -19
  34. package/src/components/Input/types.ts +4 -0
  35. package/src/components/MenuOption/MenuOption.tsx +5 -5
  36. package/src/components/Modal/Modal.stories.tsx +1 -1
  37. package/src/components/Modal/Modal.tsx +1 -1
  38. package/src/components/Modal/modal.scss +7 -7
  39. package/src/components/TableTree/TableTree.scss +22 -7
  40. package/src/components/TableTree/TableTree.stories.tsx +41 -0
  41. package/src/components/TableTree/TableTree.tsx +55 -18
  42. package/src/components/Typography/Typography.scss +4 -4
Binary file
@@ -3,7 +3,9 @@ import Form from './Form';
3
3
  interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
4
4
  id?: string;
5
5
  onSubmit: Form.SubmitHandler<T>;
6
- children: (methods: ReturnType<typeof Form.useForm<T>>) => React.ReactNode;
6
+ children: (methods: ReturnType<typeof Form.useForm<T>> & {
7
+ Form: typeof Form;
8
+ }) => React.ReactNode;
7
9
  }
8
10
  declare const ForwardedForms: <T extends Form.FieldValues>(props: FormProps<T> & {
9
11
  ref?: React.Ref<any>;
@@ -1,4 +1,4 @@
1
1
  import './Input.scss';
2
2
  import { InputProps } from './types';
3
- declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, size, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, size, isLabelRequired, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Input;
@@ -75,4 +75,8 @@ export interface InputProps {
75
75
  * size for the input field
76
76
  */
77
77
  size?: 'small' | 'medium';
78
+ /**
79
+ * isLabelRequired for the input field without label,showing placeholder
80
+ */
81
+ isLabelRequired?: boolean;
78
82
  }
@@ -19,6 +19,7 @@ interface TableTreeProps {
19
19
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
20
20
  onChange?: (e: any, node: any) => void;
21
21
  selected: Array<string>;
22
+ onPagination?: (node: ObjectProps) => void;
22
23
  }
23
- declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
24
+ declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, onPagination, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
24
25
  export default TableTree;
package/lib/index.d.ts CHANGED
@@ -590,9 +590,13 @@ interface InputProps {
590
590
  * size for the input field
591
591
  */
592
592
  size?: 'small' | 'medium';
593
+ /**
594
+ * isLabelRequired for the input field without label,showing placeholder
595
+ */
596
+ isLabelRequired?: boolean;
593
597
  }
594
598
 
595
- declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, size, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
599
+ declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, size, isLabelRequired, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
596
600
 
597
601
  type Status$1 = {
598
602
  status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'passed' | 'failed' | 'warning' | 'skipped';
@@ -1180,7 +1184,9 @@ declare const useTheme: () => ThemeContextType;
1180
1184
  interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
1181
1185
  id?: string;
1182
1186
  onSubmit: Form.SubmitHandler<T>;
1183
- children: (methods: ReturnType<typeof Form.useForm<T>>) => React__default.ReactNode;
1187
+ children: (methods: ReturnType<typeof Form.useForm<T>> & {
1188
+ Form: typeof Form;
1189
+ }) => React__default.ReactNode;
1184
1190
  }
1185
1191
  declare const ForwardedForms: <T extends Form.FieldValues>(props: FormProps<T> & {
1186
1192
  ref?: React__default.Ref<any>;
@@ -1448,8 +1454,9 @@ interface TableTreeProps {
1448
1454
  onClick?: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
1449
1455
  onChange?: (e: any, node: any) => void;
1450
1456
  selected: Array<string>;
1457
+ onPagination?: (node: ObjectProps) => void;
1451
1458
  }
1452
- declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, }: TableTreeProps) => react_jsx_runtime.JSX.Element;
1459
+ declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, onPagination, }: TableTreeProps) => react_jsx_runtime.JSX.Element;
1453
1460
 
1454
1461
  interface TabsProps {
1455
1462
  /**