@ctlyst.id/internal-ui 3.1.12 → 3.1.14

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -17,7 +17,7 @@ import { AsyncCreatableProps } from 'react-select/async-creatable';
17
17
  import { CreatableProps } from 'react-select/creatable';
18
18
  import { ToastOptions } from 'react-toastify';
19
19
  export { ToastContainer } from 'react-toastify';
20
- import { ToastIcon } from 'react-toastify/dist/types';
20
+ import { Id, ToastIcon } from 'react-toastify/dist/types';
21
21
  import * as axios from 'axios';
22
22
  import { AxiosRequestConfig, AxiosInstance, AxiosResponse } from 'axios';
23
23
  export { ThemeTypings } from '@chakra-ui/styled-system';
@@ -722,6 +722,7 @@ declare const useToast: () => {
722
722
  warning: (message: string, options?: CustomToastOptions) => void;
723
723
  info: (message: string, options?: CustomToastOptions) => void;
724
724
  custom: (message: string, options?: CustomToastOptions) => void;
725
+ dismiss: (id?: Id) => void;
725
726
  };
726
727
 
727
728
  interface BaseTooltipProps extends Omit<TooltipProps$1, 'color'> {
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ import { AsyncCreatableProps } from 'react-select/async-creatable';
17
17
  import { CreatableProps } from 'react-select/creatable';
18
18
  import { ToastOptions } from 'react-toastify';
19
19
  export { ToastContainer } from 'react-toastify';
20
- import { ToastIcon } from 'react-toastify/dist/types';
20
+ import { Id, ToastIcon } from 'react-toastify/dist/types';
21
21
  import * as axios from 'axios';
22
22
  import { AxiosRequestConfig, AxiosInstance, AxiosResponse } from 'axios';
23
23
  export { ThemeTypings } from '@chakra-ui/styled-system';
@@ -722,6 +722,7 @@ declare const useToast: () => {
722
722
  warning: (message: string, options?: CustomToastOptions) => void;
723
723
  info: (message: string, options?: CustomToastOptions) => void;
724
724
  custom: (message: string, options?: CustomToastOptions) => void;
725
+ dismiss: (id?: Id) => void;
725
726
  };
726
727
 
727
728
  interface BaseTooltipProps extends Omit<TooltipProps$1, 'color'> {
package/dist/index.js CHANGED
@@ -4025,7 +4025,9 @@ function selectStyles(colorMode, _isError) {
4025
4025
  option: (base) => ({
4026
4026
  ...base,
4027
4027
  ...selectStyle,
4028
- color: "var(--chakra-colors-neutral-900)"
4028
+ color: "var(--chakra-colors-neutral-900)",
4029
+ padding: 12,
4030
+ height: 42
4029
4031
  }),
4030
4032
  menu: (base) => {
4031
4033
  return {
@@ -4268,7 +4270,6 @@ var InputOption = ({
4268
4270
  {
4269
4271
  alignItems: "center",
4270
4272
  width: "100%",
4271
- mb: "3px",
4272
4273
  gap: 2,
4273
4274
  "data-test-id": "CT_component_select-checkbox_options",
4274
4275
  cursor: isDisabled ? "not-allowed" : "default",
@@ -4872,7 +4873,8 @@ var useToast = () => {
4872
4873
  ...restOptions,
4873
4874
  style: { backgroundColor: style == null ? void 0 : style.backgroundColor, color: style == null ? void 0 : style.color }
4874
4875
  });
4875
- }
4876
+ },
4877
+ dismiss: (id) => import_react_toastify.toast.dismiss(id)
4876
4878
  };
4877
4879
  };
4878
4880