asma-core-ui 2.18.9 → 2.18.11

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.
@@ -1,6 +1,7 @@
1
1
  import type { DialogProps } from '@mui/material/Dialog';
2
+ import type { ReactNode } from 'react';
2
3
  export interface IStyledDialogProps extends DialogProps {
3
- onCloseText?: string;
4
+ onCloseText?: ReactNode;
4
5
  showCloseIcon?: boolean;
5
6
  }
6
7
  export declare const StyledDialog: ({ onCloseText, children, onClose, showCloseIcon, ...rest }: IStyledDialogProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type FC } from 'react';
1
+ import { type FC, type ReactNode } from 'react';
2
2
  /**
3
3
  * Developer: bragari.andrei@carasent.com
4
4
  * Custom props:
@@ -34,11 +34,11 @@ type ConditionalProps = {
34
34
  };
35
35
  export type StyledInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & {
36
36
  size?: 'large' | 'small';
37
- description?: string;
37
+ description?: ReactNode;
38
38
  startIcon?: JSX.Element;
39
39
  endIcon?: JSX.Element;
40
40
  dataTest?: string;
41
- label?: string;
41
+ label?: ReactNode;
42
42
  refLink?: React.Ref<HTMLInputElement>;
43
43
  } & ConditionalProps;
44
44
  export declare const StyledInput: FC<StyledInputProps>;
@@ -1,10 +1,10 @@
1
- import React, { type ChangeEvent } from 'react';
1
+ import React, { type ChangeEvent, type ReactNode } from 'react';
2
2
  type TextareaCommonProps = {
3
3
  id?: string;
4
4
  value?: string;
5
- label?: string;
5
+ label?: ReactNode;
6
6
  labelClassName?: string;
7
- description?: string;
7
+ description?: ReactNode;
8
8
  containerClassName?: string;
9
9
  className?: string;
10
10
  dataTest?: string;
@@ -1,8 +1,8 @@
1
- import React, { type AnchorHTMLAttributes } from 'react';
1
+ import React, { type AnchorHTMLAttributes, type ReactNode } from 'react';
2
2
  export type StyledLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
3
3
  disabled?: boolean;
4
4
  size?: 'small' | 'large';
5
- title: string;
5
+ title: ReactNode;
6
6
  children?: never;
7
7
  reflink?: React.Ref<HTMLAnchorElement>;
8
8
  dataTest?: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.18.9",
6
+ "version": "2.18.11",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",