@majoo-ui/react 1.61.24 → 1.61.25-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/index.d.ts +1 -5
  2. package/index.esm.js +24546 -26967
  3. package/package.json +4 -4
  4. package/{colors → src/colors}/index.d.ts +1 -1
  5. package/{components → src/components}/accordion/Accordion.d.ts +35 -35
  6. package/{components → src/components}/accordion/index.d.ts +1 -1
  7. package/{components → src/components}/barChart/BarChart.d.ts +82 -82
  8. package/{components → src/components}/barChart/index.d.ts +1 -1
  9. package/{components → src/components}/breadcrumb/index.d.ts +7 -7
  10. package/{components → src/components}/button/index.d.ts +2 -2
  11. package/{components → src/components}/card/index.d.ts +2 -2
  12. package/{components → src/components}/chart/index.d.ts +1 -1
  13. package/{components → src/components}/chart/lineChart/LineChart.d.ts +80 -80
  14. package/{components → src/components}/chart/lineChart/components/Comparator.d.ts +16 -16
  15. package/{components → src/components}/chart/lineChart/components/ComparatorController.d.ts +8 -8
  16. package/{components → src/components}/chart/lineChart/components/ComparatorItem.d.ts +10 -10
  17. package/{components → src/components}/chart/lineChart/components/ProductList.d.ts +10 -10
  18. package/{components → src/components}/chart/lineChart/components/TitleLegend.d.ts +19 -19
  19. package/{components → src/components}/chart/lineChart/components/Tooltip.d.ts +21 -21
  20. package/{components → src/components}/chart/lineChart/index.d.ts +1 -1
  21. package/{components → src/components}/chart/utils/index.d.ts +18 -18
  22. package/{components → src/components}/checkboxTable/CheckboxTable.d.ts +29 -29
  23. package/{components → src/components}/checkboxTable/index.d.ts +1 -1
  24. package/{components → src/components}/checkboxTable/transition.d.ts +11 -11
  25. package/{components → src/components}/contentEditor/ContentEditor.d.ts +44 -44
  26. package/{components → src/components}/contentEditor/index.d.ts +1 -1
  27. package/{components → src/components}/contextMenu/index.d.ts +1 -1
  28. package/{components → src/components}/datePicker/AdvancedOption.d.ts +12 -12
  29. package/{components → src/components}/datePicker/CustomDatePicker.d.ts +63 -63
  30. package/{components → src/components}/datePicker/DatePicker.d.ts +10 -10
  31. package/{components → src/components}/datePicker/DatePickerMulti.d.ts +11 -11
  32. package/{components → src/components}/datePicker/InputDatePicker.d.ts +170 -170
  33. package/{components → src/components}/datePicker/InputDateRangePicker.d.ts +26 -26
  34. package/{components → src/components}/datePicker/components/Calendar.d.ts +32 -32
  35. package/{components → src/components}/datePicker/components/CalendarMulti.d.ts +21 -21
  36. package/{components → src/components}/datePicker/components/CalendarTimePicker.d.ts +11 -11
  37. package/{components → src/components}/datePicker/components/MobileCalendar.d.ts +4 -4
  38. package/{components → src/components}/datePicker/components/index.d.ts +6 -6
  39. package/{components → src/components}/datePicker/index.d.ts +7 -7
  40. package/{components → src/components}/datePicker/state/reducer.d.ts +26 -26
  41. package/{components → src/components}/datePicker/timePicker/index.d.ts +4 -4
  42. package/{components → src/components}/devicePreview/index.d.ts +2 -2
  43. package/{components → src/components}/dialog/index.d.ts +2 -2
  44. package/{components → src/components}/editableTable/Columns.d.ts +59 -59
  45. package/{components → src/components}/editableTable/EditableMobile.d.ts +23 -23
  46. package/{components → src/components}/editableTable/EditableTable.d.ts +432 -432
  47. package/{components → src/components}/editableTable/faker.d.ts +16 -16
  48. package/{components → src/components}/editableTable/index.d.ts +2 -2
  49. package/{components → src/components}/form/components/InputCombobox/InputCombobox.d.ts +43 -43
  50. package/{components → src/components}/form/components/InputCombobox/index.d.ts +1 -1
  51. package/{components → src/components}/form/components/InputCounter/InputCounter.d.ts +58 -58
  52. package/{components → src/components}/form/components/InputCounter/index.d.ts +2 -2
  53. package/{components → src/components}/form/components/InputDateRange/InputDateRange.d.ts +39 -39
  54. package/{components → src/components}/form/components/InputDateRange/index.d.ts +2 -2
  55. package/{components → src/components}/form/components/InputElement/index.d.ts +1 -1
  56. package/{components → src/components}/form/components/InputGroup/index.d.ts +1 -1
  57. package/{components → src/components}/form/components/InputOTP/InputOTP.d.ts +108 -108
  58. package/{components → src/components}/form/components/InputOTP/index.d.ts +2 -2
  59. package/{components → src/components}/form/components/InputResourceList/InputResourceList.d.ts +39 -39
  60. package/{components → src/components}/form/components/InputSelect/index.d.ts +2 -2
  61. package/{components → src/components}/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -5
  62. package/{components → src/components}/form/components/InputSignature/InputSignature.d.ts +12 -12
  63. package/{components → src/components}/form/components/InputSignature/SignatureModal.d.ts +11 -11
  64. package/{components → src/components}/form/components/InputSignature/index.d.ts +2 -2
  65. package/{components → src/components}/form/components/InputText/index.d.ts +1 -1
  66. package/{components → src/components}/form/components/index.d.ts +27 -27
  67. package/{components → src/components}/form/index.d.ts +1 -1
  68. package/{components → src/components}/heading/index.d.ts +2 -2
  69. package/{components → src/components}/image/index.d.ts +2 -2
  70. package/{components → src/components}/index.d.ts +53 -53
  71. package/{components → src/components}/link/index.d.ts +1 -1
  72. package/{components → src/components}/loadingBar/LoadingBar.d.ts +51 -51
  73. package/{components → src/components}/loadingBar/index.d.ts +1 -1
  74. package/{components → src/components}/mapPicker/InputMapPicker.d.ts +4 -4
  75. package/{components → src/components}/mapPicker/MapPicker.d.ts +17 -17
  76. package/{components → src/components}/mapPicker/index.d.ts +2 -2
  77. package/{components → src/components}/mapPicker/types/index.d.ts +103 -103
  78. package/{components → src/components}/modalDialog/index.d.ts +2 -2
  79. package/{components → src/components}/pageDialog/index.d.ts +1 -1
  80. package/{components → src/components}/paragraph/index.d.ts +2 -2
  81. package/{components → src/components}/pieChart/PieChart.d.ts +100 -100
  82. package/{components → src/components}/pieChart/index.d.ts +1 -1
  83. package/{components → src/components}/progressIndicator/ProgressIndicator.d.ts +17 -17
  84. package/{components → src/components}/progressIndicator/index.d.ts +1 -1
  85. package/{components → src/components}/scrollSync/ScrollSync.d.ts +45 -45
  86. package/{components → src/components}/scrollSync/ScrollSyncNode.d.ts +32 -32
  87. package/{components → src/components}/scrollSync/index.d.ts +2 -2
  88. package/{components → src/components}/scrollSync/utils.d.ts +3 -3
  89. package/{components → src/components}/separator/index.d.ts +2 -2
  90. package/{components → src/components}/skeleton/Skeleton.d.ts +19 -19
  91. package/{components → src/components}/skeleton/index.d.ts +1 -1
  92. package/{components → src/components}/stepWizard/index.d.ts +45 -45
  93. package/{components → src/components}/table/MobileTable.d.ts +39 -39
  94. package/{components → src/components}/table/index.d.ts +3 -3
  95. package/{components → src/components}/tableOfContent/index.d.ts +57 -57
  96. package/{components → src/components}/tagList/TagList.d.ts +21 -21
  97. package/{components → src/components}/tagList/index.d.ts +1 -1
  98. package/{components → src/components}/text/index.d.ts +2 -2
  99. package/{components → src/components}/upload/utils/canvasPreview.d.ts +2 -2
  100. package/{components → src/components}/upload/utils/imgPreview.d.ts +2 -2
  101. package/{foundations → src/foundations}/indices/Indices.d.ts +2 -2
  102. package/{foundations → src/foundations}/radii/Radii.d.ts +2 -2
  103. package/{foundations → src/foundations}/space/Space.d.ts +2 -2
  104. package/{hooks → src/hooks}/index.d.ts +2 -2
  105. package/{hooks → src/hooks}/useListOption/useListOption.d.ts +8 -8
  106. package/{hooks → src/hooks}/useToggle/useToggle.d.ts +1 -1
  107. package/src/index.d.ts +5 -0
  108. package/{layout → src/layout}/box/index.d.ts +1 -1
  109. package/{layout → src/layout}/flex/index.d.ts +2 -2
  110. package/{layout → src/layout}/grid/index.d.ts +2 -2
  111. package/{layout → src/layout}/index.d.ts +4 -4
  112. package/{type → src/type}/base.types.d.ts +11 -11
  113. package/src/type/stitches.types.d.ts +1 -0
  114. package/{utils → src/utils}/request.d.ts +14 -14
  115. package/{utils → src/utils}/useNavigatorOnline.d.ts +2 -2
  116. package/{utils → src/utils}/variant.d.ts +4 -4
  117. package/components/alert-backup/index.backup.d.ts +0 -1
  118. package/components/button/Button.d.ts +0 -163
  119. package/components/card/Card.d.ts +0 -531
  120. package/components/contextMenu/ContextMenu.d.ts +0 -404
  121. package/components/datePicker/components/DateNumber.d.ts +0 -104
  122. package/components/devicePreview/DevicePreview.d.ts +0 -161
  123. package/components/dialog/Dialog.d.ts +0 -402
  124. package/components/form/components/InputCombobox/InputCombobox.backup.d.ts +0 -43
  125. package/components/form/components/InputSelect/InputSelect.d.ts +0 -862
  126. package/components/heading/Heading.d.ts +0 -100
  127. package/components/link/Link.d.ts +0 -109
  128. package/components/modalDialog/ModalDialog.d.ts +0 -836
  129. package/components/pageDialog/PageDialog.d.ts +0 -810
  130. package/components/table/Table.d.ts +0 -1529
  131. package/config/stitches.config.d.ts +0 -645
  132. package/foundations/typography/Typography.d.ts +0 -396
  133. package/type/stitches.types.d.ts +0 -1
@@ -1,16 +1,16 @@
1
- declare type ProductType = {
2
- name: string;
3
- variants: ('Small' | 'Medium' | 'Large')[];
4
- };
5
- export interface IProduct {
6
- id: number;
7
- produk: ProductType;
8
- terima_stok: boolean;
9
- jumlah: number;
10
- satuan: 'cup' | 'pcs';
11
- harga_beli: number;
12
- total: number;
13
- note: string;
14
- }
15
- export declare const makeData: (len: number) => IProduct[];
16
- export {};
1
+ type ProductType = {
2
+ name: string;
3
+ variants: ('Small' | 'Medium' | 'Large')[];
4
+ };
5
+ export interface IProduct {
6
+ id: number;
7
+ produk: ProductType;
8
+ terima_stok: boolean;
9
+ jumlah: number;
10
+ satuan: 'cup' | 'pcs';
11
+ harga_beli: number;
12
+ total: number;
13
+ note: string;
14
+ }
15
+ export declare const makeData: (len: number) => IProduct[];
16
+ export {};
@@ -1,2 +1,2 @@
1
- export { default as EditableTable } from './EditableTable';
2
- export { MemoizedEditableTable } from './EditableTable';
1
+ export { default as EditableTable } from './EditableTable';
2
+ export { MemoizedEditableTable } from './EditableTable';
@@ -1,43 +1,43 @@
1
- import * as React from 'react';
2
- import { CSS } from '../../../../config/stitches.config';
3
- interface InputComboboxProps extends Partial<Omit<React.ComponentPropsWithoutRef<'input'>, 'size'>> {
4
- /**
5
- * Array of options.
6
- */
7
- options: string[];
8
- /**
9
- * If true, the search icon is shown.
10
- */
11
- showLeadingIcon?: boolean;
12
- /**
13
- * Specify the default value.
14
- */
15
- defaultValue?: string;
16
- /**
17
- * If true, the component is disabled.
18
- */
19
- disabled?: boolean;
20
- /**
21
- * Specify the input placeholder.
22
- */
23
- placeholder?: string;
24
- /**
25
- * Specify the options view placement.
26
- */
27
- placement?: 'top' | 'bottom';
28
- /**
29
- * Specify the input size.
30
- */
31
- size?: 'sm' | 'lg';
32
- /**
33
- * If true, the input will become invalid state.
34
- */
35
- isInvalid?: boolean;
36
- /**
37
- * Called whenever the input value changes.
38
- */
39
- onValueChange?: (value: string) => void;
40
- css?: CSS;
41
- }
42
- export declare const InputCombobox: React.ForwardRefExoticComponent<InputComboboxProps & React.RefAttributes<HTMLInputElement>>;
43
- export {};
1
+ import * as React from 'react';
2
+ import { CSS } from '../../../../config/stitches.config';
3
+ interface InputComboboxProps extends Partial<Omit<React.ComponentPropsWithoutRef<'input'>, 'size'>> {
4
+ /**
5
+ * Array of options.
6
+ */
7
+ options: string[];
8
+ /**
9
+ * If true, the search icon is shown.
10
+ */
11
+ showLeadingIcon?: boolean;
12
+ /**
13
+ * Specify the default value.
14
+ */
15
+ defaultValue?: string;
16
+ /**
17
+ * If true, the component is disabled.
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Specify the input placeholder.
22
+ */
23
+ placeholder?: string;
24
+ /**
25
+ * Specify the options view placement.
26
+ */
27
+ placement?: 'top' | 'bottom';
28
+ /**
29
+ * Specify the input size.
30
+ */
31
+ size?: 'sm' | 'lg';
32
+ /**
33
+ * If true, the input will become invalid state.
34
+ */
35
+ isInvalid?: boolean;
36
+ /**
37
+ * Called whenever the input value changes.
38
+ */
39
+ onValueChange?: (value: string) => void;
40
+ css?: CSS;
41
+ }
42
+ export declare const InputCombobox: React.ForwardRefExoticComponent<InputComboboxProps & React.RefAttributes<HTMLInputElement>>;
43
+ export {};
@@ -1 +1 @@
1
- export * from './InputCombobox';
1
+ export * from './InputCombobox';
@@ -1,58 +1,58 @@
1
- import React from 'react';
2
- import { CSS } from '../../../../config/stitches.config';
3
- interface CounterProps {
4
- /**
5
- * Counter value.
6
- */
7
- value?: number;
8
- /**
9
- * Input counter size.
10
- */
11
- size: 'sm' | 'md' | 'lg';
12
- /**
13
- * Change event handler.
14
- */
15
- onChange?: (e: number) => void;
16
- /**
17
- * minimum value of a counter.
18
- */
19
- min?: number;
20
- /**
21
- * maximum value of a counter.
22
- */
23
- max?: number;
24
- /**
25
- * allow counter to return negative value.
26
- */
27
- allowNegative?: boolean;
28
- /**
29
- * disabled state of a counter.
30
- */
31
- disabled?: boolean;
32
- /**
33
- * disabled state increment button.
34
- */
35
- disabledIncrement?: boolean;
36
- /**
37
- * disabled state decrement button.
38
- */
39
- disabledDecrement?: boolean;
40
- /**
41
- * Additional css style.
42
- */
43
- css?: CSS;
44
- /**
45
- * add prefix to input.
46
- */
47
- prefix?: string;
48
- /**
49
- * add suffix to input.
50
- */
51
- suffix?: string;
52
- /**
53
- * disable manual input.
54
- */
55
- disableManualInput?: boolean;
56
- }
57
- declare const InputCounter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<unknown>>;
58
- export default InputCounter;
1
+ import React from 'react';
2
+ import { CSS } from '../../../../config/stitches.config';
3
+ interface CounterProps {
4
+ /**
5
+ * Counter value.
6
+ */
7
+ value?: number;
8
+ /**
9
+ * Input counter size.
10
+ */
11
+ size: 'sm' | 'md' | 'lg';
12
+ /**
13
+ * Change event handler.
14
+ */
15
+ onChange?: (e: number) => void;
16
+ /**
17
+ * minimum value of a counter.
18
+ */
19
+ min?: number;
20
+ /**
21
+ * maximum value of a counter.
22
+ */
23
+ max?: number;
24
+ /**
25
+ * allow counter to return negative value.
26
+ */
27
+ allowNegative?: boolean;
28
+ /**
29
+ * disabled state of a counter.
30
+ */
31
+ disabled?: boolean;
32
+ /**
33
+ * disabled state increment button.
34
+ */
35
+ disabledIncrement?: boolean;
36
+ /**
37
+ * disabled state decrement button.
38
+ */
39
+ disabledDecrement?: boolean;
40
+ /**
41
+ * Additional css style.
42
+ */
43
+ css?: CSS;
44
+ /**
45
+ * add prefix to input.
46
+ */
47
+ prefix?: string;
48
+ /**
49
+ * add suffix to input.
50
+ */
51
+ suffix?: string;
52
+ /**
53
+ * disable manual input.
54
+ */
55
+ disableManualInput?: boolean;
56
+ }
57
+ declare const InputCounter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<unknown>>;
58
+ export default InputCounter;
@@ -1,2 +1,2 @@
1
- export { default as InputCounter } from './InputCounter';
2
- export * from './InputCounter';
1
+ export { default as InputCounter } from './InputCounter';
2
+ export * from './InputCounter';
@@ -1,39 +1,39 @@
1
- import * as React from 'react';
2
- import { CSS } from '../../../../config/stitches.config';
3
- import { InputSelectProps } from '..';
4
- interface InputDateRangeProps extends InputSelectProps {
5
- /**
6
- * Specify the InputDateRange placeholder.
7
- */
8
- placeholder?: string;
9
- /**
10
- * Specify an `onChange` handler that is called whenever the InputDateRange value changes.
11
- */
12
- onChange?: (value: any) => void;
13
- /**
14
- * Specify the input size.
15
- */
16
- size?: 'sm' | 'lg';
17
- /**
18
- * If true, the component is disabled.
19
- */
20
- disabled?: boolean;
21
- /**
22
- * Specify the options view placement.
23
- */
24
- placement?: 'bottom' | 'top';
25
- /**
26
- * If true, the input will become read-only state.
27
- */
28
- readOnly?: boolean;
29
- /**
30
- * If true, the input will become invalid state.
31
- */
32
- isInvalid?: boolean;
33
- /**
34
- * Additional CSS InputDateRange styles
35
- */
36
- css?: CSS;
37
- }
38
- export declare const InputDateRange: React.ForwardRefExoticComponent<InputDateRangeProps & React.RefAttributes<HTMLInputElement>>;
39
- export default InputDateRange;
1
+ import * as React from 'react';
2
+ import { CSS } from '../../../../config/stitches.config';
3
+ import { InputSelectProps } from '..';
4
+ interface InputDateRangeProps extends InputSelectProps {
5
+ /**
6
+ * Specify the InputDateRange placeholder.
7
+ */
8
+ placeholder?: string;
9
+ /**
10
+ * Specify an `onChange` handler that is called whenever the InputDateRange value changes.
11
+ */
12
+ onChange?: (value: any) => void;
13
+ /**
14
+ * Specify the input size.
15
+ */
16
+ size?: 'sm' | 'lg';
17
+ /**
18
+ * If true, the component is disabled.
19
+ */
20
+ disabled?: boolean;
21
+ /**
22
+ * Specify the options view placement.
23
+ */
24
+ placement?: 'bottom' | 'top';
25
+ /**
26
+ * If true, the input will become read-only state.
27
+ */
28
+ readOnly?: boolean;
29
+ /**
30
+ * If true, the input will become invalid state.
31
+ */
32
+ isInvalid?: boolean;
33
+ /**
34
+ * Additional CSS InputDateRange styles
35
+ */
36
+ css?: CSS;
37
+ }
38
+ export declare const InputDateRange: React.ForwardRefExoticComponent<InputDateRangeProps & React.RefAttributes<HTMLInputElement>>;
39
+ export default InputDateRange;
@@ -1,2 +1,2 @@
1
- export { default as InputDateRange } from './InputDateRange';
2
- export * from './InputDateRange';
1
+ export { default as InputDateRange } from './InputDateRange';
2
+ export * from './InputDateRange';
@@ -1 +1 @@
1
- export { InputRightElement, InputLeftElement } from './InputElement';
1
+ export { InputRightElement, InputLeftElement } from './InputElement';
@@ -1 +1 @@
1
- export { InputGroup } from './InputGroup';
1
+ export { InputGroup } from './InputGroup';
@@ -1,108 +1,108 @@
1
- import React from 'react';
2
- interface InputOTPProps {
3
- /**
4
- * Number of input boxes.
5
- */
6
- OTPLength?: number;
7
- /**
8
- * Returns OTP code typed in inputs.
9
- */
10
- onChange: (value: string | number) => void;
11
- /**
12
- * The value of the otp passed into the component.
13
- */
14
- value: string | number;
15
- /**
16
- * Disables all the inputs.
17
- */
18
- disabled?: boolean;
19
- /**
20
- * Auto focuses input on initial page load.
21
- */
22
- autoFocus?: boolean;
23
- /**
24
- * any - allows any value. number - allow only numbers. alpha - allows only a-zA-Z. alphanumeric - allows 0-9a-zA-z.
25
- */
26
- otpType?: 'any' | 'number' | 'alpha' | 'alphanumeric';
27
- /**
28
- * Change input type to password.
29
- */
30
- secure?: boolean;
31
- /**
32
- * Class for input element.
33
- */
34
- inputClassName?: string;
35
- /**
36
- * Class for root element.
37
- */
38
- className?: string;
39
- /**
40
- * Styles for input element.
41
- */
42
- inputStyles?: object;
43
- /**
44
- * Styles for root element.
45
- */
46
- style?: object;
47
- /**
48
- * Placeholder value of each input.
49
- */
50
- placeholder?: string[];
51
- /**
52
- * Error state input OTP.
53
- */
54
- isError?: boolean;
55
- }
56
- declare function InputOTP(props: InputOTPProps): JSX.Element;
57
- declare namespace InputOTP {
58
- var defaultProps: {
59
- OTPLength: number;
60
- value: string;
61
- disabled: boolean;
62
- autoFocus: boolean;
63
- otpType: string;
64
- secure: boolean;
65
- };
66
- }
67
- export default InputOTP;
68
- interface ResendOTPProps {
69
- /**
70
- * Timer that user has to wait before resend otp gets active.
71
- */
72
- maxTime?: number;
73
- /**
74
- * Function get triggers when user click on resend otp button. But when button is disabled(i.e. time is not completed) it won't get trigger.
75
- */
76
- onResendClick: () => void;
77
- /**
78
- * An optional callback when timer completes.
79
- */
80
- onTimerComplete?: () => void;
81
- /**
82
- * You can change time interval.
83
- */
84
- timeInterval?: number;
85
- /**
86
- * You can use your own component for seconds. Function will get remainingTime as props you can use it to show timer.
87
- */
88
- renderTime?: (remainingTime: number) => React.ReactElement;
89
- /**
90
- * You can use your own component for resend button. Function will get disabled and onClick function and remainingTime as props you can pass it to your component.
91
- */
92
- renderButton?: (buttonProps: object) => void;
93
- /**
94
- * For changing root component inline styles.
95
- */
96
- style?: object;
97
- /**
98
- * For adding class to root component.
99
- */
100
- className?: string;
101
- }
102
- export declare function ResendOTP(props: ResendOTPProps): JSX.Element;
103
- export declare namespace ResendOTP {
104
- var defaultProps: {
105
- maxTime: number;
106
- timeInterval: number;
107
- };
108
- }
1
+ import React from 'react';
2
+ interface InputOTPProps {
3
+ /**
4
+ * Number of input boxes.
5
+ */
6
+ OTPLength?: number;
7
+ /**
8
+ * Returns OTP code typed in inputs.
9
+ */
10
+ onChange: (value: string | number) => void;
11
+ /**
12
+ * The value of the otp passed into the component.
13
+ */
14
+ value: string | number;
15
+ /**
16
+ * Disables all the inputs.
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Auto focuses input on initial page load.
21
+ */
22
+ autoFocus?: boolean;
23
+ /**
24
+ * any - allows any value. number - allow only numbers. alpha - allows only a-zA-Z. alphanumeric - allows 0-9a-zA-z.
25
+ */
26
+ otpType?: 'any' | 'number' | 'alpha' | 'alphanumeric';
27
+ /**
28
+ * Change input type to password.
29
+ */
30
+ secure?: boolean;
31
+ /**
32
+ * Class for input element.
33
+ */
34
+ inputClassName?: string;
35
+ /**
36
+ * Class for root element.
37
+ */
38
+ className?: string;
39
+ /**
40
+ * Styles for input element.
41
+ */
42
+ inputStyles?: object;
43
+ /**
44
+ * Styles for root element.
45
+ */
46
+ style?: object;
47
+ /**
48
+ * Placeholder value of each input.
49
+ */
50
+ placeholder?: string[];
51
+ /**
52
+ * Error state input OTP.
53
+ */
54
+ isError?: boolean;
55
+ }
56
+ declare function InputOTP(props: InputOTPProps): JSX.Element;
57
+ declare namespace InputOTP {
58
+ var defaultProps: {
59
+ OTPLength: number;
60
+ value: string;
61
+ disabled: boolean;
62
+ autoFocus: boolean;
63
+ otpType: string;
64
+ secure: boolean;
65
+ };
66
+ }
67
+ export default InputOTP;
68
+ interface ResendOTPProps {
69
+ /**
70
+ * Timer that user has to wait before resend otp gets active.
71
+ */
72
+ maxTime?: number;
73
+ /**
74
+ * Function get triggers when user click on resend otp button. But when button is disabled(i.e. time is not completed) it won't get trigger.
75
+ */
76
+ onResendClick: () => void;
77
+ /**
78
+ * An optional callback when timer completes.
79
+ */
80
+ onTimerComplete?: () => void;
81
+ /**
82
+ * You can change time interval.
83
+ */
84
+ timeInterval?: number;
85
+ /**
86
+ * You can use your own component for seconds. Function will get remainingTime as props you can use it to show timer.
87
+ */
88
+ renderTime?: (remainingTime: number) => React.ReactElement;
89
+ /**
90
+ * You can use your own component for resend button. Function will get disabled and onClick function and remainingTime as props you can pass it to your component.
91
+ */
92
+ renderButton?: (buttonProps: object) => void;
93
+ /**
94
+ * For changing root component inline styles.
95
+ */
96
+ style?: object;
97
+ /**
98
+ * For adding class to root component.
99
+ */
100
+ className?: string;
101
+ }
102
+ export declare function ResendOTP(props: ResendOTPProps): JSX.Element;
103
+ export declare namespace ResendOTP {
104
+ var defaultProps: {
105
+ maxTime: number;
106
+ timeInterval: number;
107
+ };
108
+ }
@@ -1,2 +1,2 @@
1
- export { default as InputOTP } from './InputOTP';
2
- export * from './InputOTP';
1
+ export { default as InputOTP } from './InputOTP';
2
+ export * from './InputOTP';
@@ -1,39 +1,39 @@
1
- /// <reference types="react" />
2
- import type * as Stitches from '@stitches/react';
3
- export interface IResource {
4
- value: string;
5
- label: string;
6
- variants?: string[];
7
- description?: string;
8
- subLabel?: string;
9
- icon?: () => JSX.Element;
10
- disabled?: boolean;
11
- }
12
- export interface InputResourceListProps {
13
- data: IResource[];
14
- disabled: boolean;
15
- onChange(checkedItems: (string | IResource)[]): void;
16
- searchPlaceholder?: string;
17
- counterFooter?: boolean;
18
- counterFooterText?: string;
19
- isLoading: boolean;
20
- disabledItems?: string[];
21
- emptyDataMessage?: string;
22
- value?: (string | IResource)[];
23
- fetchData?(props: {
24
- query?: string;
25
- pageIndex?: number;
26
- }): void;
27
- onQueryChange?(query: string): void;
28
- css?: Stitches.CSS;
29
- wrapperCss?: Stitches.CSS;
30
- defaultSort?: 'asc' | 'desc';
31
- title?: string;
32
- hideSelectAll?: boolean;
33
- renderSelectAll?: JSX.Element;
34
- customHeader?: JSX.Element;
35
- expandable?: boolean;
36
- searchable?: boolean;
37
- }
38
- declare function InputResourceList({ data: dataProp, disabled, onChange, searchPlaceholder, counterFooter, counterFooterText, isLoading, disabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, renderSelectAll, customHeader, expandable, searchable, }: InputResourceListProps): JSX.Element;
39
- export default InputResourceList;
1
+ /// <reference types="react" />
2
+ import type * as Stitches from '@stitches/react';
3
+ export interface IResource {
4
+ value: string;
5
+ label: string;
6
+ variants?: string[];
7
+ description?: string;
8
+ subLabel?: string;
9
+ icon?: () => JSX.Element;
10
+ disabled?: boolean;
11
+ }
12
+ export interface InputResourceListProps {
13
+ data: IResource[];
14
+ disabled: boolean;
15
+ onChange(checkedItems: (string | IResource)[]): void;
16
+ searchPlaceholder?: string;
17
+ counterFooter?: boolean;
18
+ counterFooterText?: string;
19
+ isLoading: boolean;
20
+ disabledItems?: string[];
21
+ emptyDataMessage?: string;
22
+ value?: (string | IResource)[];
23
+ fetchData?(props: {
24
+ query?: string;
25
+ pageIndex?: number;
26
+ }): void;
27
+ onQueryChange?(query: string): void;
28
+ css?: Stitches.CSS;
29
+ wrapperCss?: Stitches.CSS;
30
+ defaultSort?: 'asc' | 'desc';
31
+ title?: string;
32
+ hideSelectAll?: boolean;
33
+ renderSelectAll?: JSX.Element;
34
+ customHeader?: JSX.Element;
35
+ expandable?: boolean;
36
+ searchable?: boolean;
37
+ }
38
+ declare function InputResourceList({ data: dataProp, disabled, onChange, searchPlaceholder, counterFooter, counterFooterText, isLoading, disabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, renderSelectAll, customHeader, expandable, searchable, }: InputResourceListProps): JSX.Element;
39
+ export default InputResourceList;
@@ -1,2 +1,2 @@
1
- export { default as InputSelect } from './InputSelect';
2
- export * from './InputSelect';
1
+ export { default as InputSelect } from './InputSelect';
2
+ export * from './InputSelect';
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export default function OptionGroupItem({ item, children }: {
3
- item: any;
4
- children: any;
5
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ export default function OptionGroupItem({ item, children }: {
3
+ item: any;
4
+ children: any;
5
+ }): JSX.Element;