pixel-react 1.4.7 → 1.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) 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/LabelEditTextField/LabelEditTextField.stories.d.ts +0 -2
  6. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +0 -1
  7. package/lib/components/Select/Select.stories.d.ts +0 -1
  8. package/lib/components/TableTree/TableTree.d.ts +2 -1
  9. package/lib/index.d.ts +10 -3
  10. package/lib/index.esm.js +131 -93
  11. package/lib/index.esm.js.map +1 -1
  12. package/lib/index.js +131 -93
  13. package/lib/index.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/assets/Themes/BaseTheme.scss +2 -0
  16. package/src/assets/fonts/Poppins-Bold.woff2 +0 -0
  17. package/src/assets/fonts/Poppins-Medium.woff2 +0 -0
  18. package/src/assets/fonts/Poppins-Regular.woff2 +0 -0
  19. package/src/assets/fonts/Poppins-SemiBold.woff2 +0 -0
  20. package/src/assets/icons/Header_preset.svg +13 -0
  21. package/src/assets/icons/add_file.svg +16 -4
  22. package/src/assets/icons/eye_open_icon.svg +2 -9
  23. package/src/assets/icons/replace_icon.svg +6 -0
  24. package/src/assets/styles/_fonts.scss +7 -4
  25. package/src/components/AppHeader/AppHeader.tsx +1 -0
  26. package/src/components/AttachmentButton/AttachmentButton.tsx +10 -5
  27. package/src/components/Form/Form.stories.tsx +4 -8
  28. package/src/components/Form/Forms.tsx +11 -4
  29. package/src/components/Icon/iconList.ts +7 -1
  30. package/src/components/Input/Input.scss +5 -0
  31. package/src/components/Input/Input.stories.tsx +44 -0
  32. package/src/components/Input/Input.tsx +24 -19
  33. package/src/components/Input/types.ts +4 -0
  34. package/src/components/MenuOption/MenuOption.tsx +5 -5
  35. package/src/components/TableTree/TableTree.scss +22 -7
  36. package/src/components/TableTree/TableTree.stories.tsx +41 -0
  37. package/src/components/TableTree/TableTree.tsx +55 -18
  38. package/src/components/Typography/Typography.scss +4 -4
  39. package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
  40. package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
  41. package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
  42. package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
  43. package/lib/components/AddButton/AddButton.d.ts +0 -5
  44. package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
  45. package/lib/components/AddButton/index.d.ts +0 -1
  46. package/lib/components/AddButton/types.d.ts +0 -4
  47. package/lib/components/AttachImage/AttachImage.stories.d.ts +0 -7
  48. package/lib/components/Charts/BarChart/BarChart.stories.d.ts +0 -6
  49. package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +0 -8
  50. package/lib/components/Charts/LineChart/LineChart.stories.d.ts +0 -7
  51. package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +0 -8
  52. package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +0 -6
  53. package/lib/components/EditTextField/EditTextField.stories.d.ts +0 -10
  54. package/lib/components/Editor/Editor.stories.d.ts +0 -6
  55. package/lib/components/Excel/ContextMenu/ContextMenu.d.ts +0 -4
  56. package/lib/components/Excel/ExcelFile.stories.d.ts +0 -6
  57. package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +0 -14
  58. package/lib/components/ExcelFile/ImportExcelStyles.d.ts +0 -24
  59. package/lib/components/StatusCard/StatusCard.stories.d.ts +0 -11
  60. package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +0 -10
  61. /package/lib/components/ExcelFile/{ColorBarSelector → ColorBarselector}/ColorBarSelector.d.ts +0 -0
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
  }
@@ -6,8 +6,6 @@ declare const meta: Meta<typeof LabelEditTextField>;
6
6
  type Story = StoryObj<typeof LabelEditTextField>;
7
7
  export declare const textField: Story;
8
8
  export declare const textFieldWithOutLabel: Story;
9
- export declare const openTextFieldWithOutLabel: Story;
10
9
  export declare const textFieldWithDropdown: Story;
11
10
  export declare const textFieldWithHighlight: Story;
12
- export declare const openLabelEditTextField: Story;
13
11
  export default meta;
@@ -7,5 +7,4 @@ export declare const Default2: Story;
7
7
  export declare const Default3: Story;
8
8
  export declare const EmailGroup: Story;
9
9
  export declare const Controlled: Story;
10
- export declare const Labels: Story;
11
10
  export default meta;
@@ -10,5 +10,4 @@ export declare const Disable: Story;
10
10
  export declare const WithInitialValue: Story;
11
11
  export declare const OptionSelection: Story;
12
12
  export declare const CustomJSX: Story;
13
- export declare const updateOptionFromOutside: Story;
14
13
  export default meta;
@@ -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
  /**