@hybr1d-tech/charizard 0.7.101 → 0.7.103

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.
package/dist/index.d.ts CHANGED
@@ -1833,15 +1833,33 @@ declare type ModalProps = {
1833
1833
  machineProps?: dialog.Context | {};
1834
1834
  };
1835
1835
 
1836
- export declare function ModalV2({ isOpen, title, subTitle, trigger, children, footerButtons, showBackdrop, }: ModalV2Props): JSX_2.Element;
1836
+ /**
1837
+ * ModalV2 component displays a modal dialog with a title, content, and footer buttons.
1838
+ *
1839
+ * @param {ModalV2Props} props - The props for the ModalV2 component.
1840
+ * @returns {JSX.Element} The rendered modal component.
1841
+ */
1842
+ export declare function ModalV2({ isOpen, title, subTitle, trigger, children, footerButtons, showBackdrop, onClose, }: ModalV2Props): JSX_2.Element;
1837
1843
 
1844
+ /**
1845
+ * Props for the ModalV2 component.
1846
+ */
1838
1847
  declare interface ModalV2Props {
1848
+ /** Indicates if the modal is open. */
1839
1849
  isOpen?: boolean;
1850
+ /** Callback function to close the modal. */
1851
+ onClose?: () => void;
1852
+ /** Title of the modal. */
1840
1853
  title: string;
1854
+ /** Optional subtitle of the modal. */
1841
1855
  subTitle?: string;
1842
- trigger: React_2.ReactNode;
1856
+ /** Optional trigger element to open the modal. */
1857
+ trigger?: React_2.ReactNode;
1858
+ /** Content to be displayed inside the modal. */
1843
1859
  children: React_2.ReactNode;
1860
+ /** Array of footer buttons for the modal. */
1844
1861
  footerButtons: DialogFooterButtons;
1862
+ /** Indicates whether to show a backdrop behind the modal. */
1845
1863
  showBackdrop?: boolean;
1846
1864
  }
1847
1865
 
@@ -3076,13 +3094,29 @@ declare interface TooltipTriggerProps {
3076
3094
  customStyles?: React.CSSProperties;
3077
3095
  }
3078
3096
 
3097
+ /**
3098
+ * TooltipV2 component that displays a tooltip on hover or focus of the trigger element.
3099
+ *
3100
+ * @param {TooltipV2Props} props - Props for the TooltipV2 component.
3101
+ * @param {string} props.id - Unique identifier for the tooltip.
3102
+ * @param {string} [props.placement='top'] - Placement of the tooltip relative to the trigger element.
3103
+ * @param {React.ReactNode} props.trigger - The element that triggers the tooltip.
3104
+ * @param {string | React.ReactNode} props.content - Content of the tooltip.
3105
+ * @param {'dark' | 'light' | 'success' | 'warning' | 'error' | 'info'} [props.variant='dark'] - Variant of the tooltip for styling.
3106
+ * @param {React.CSSProperties} [props.customStyle={}] - Custom styles to be applied to the tooltip.
3107
+ * @param {number} [props.opacity] - Opacity of the tooltip.
3108
+ * @param {string} [props.portalId] - ID of the portal element where the tooltip will be rendered.
3109
+ * @param {string} [props.portalClass] - Class name of the portal element where the tooltip will be rendered.
3110
+ * @param {number} [props.contentMaxLength] - Maximum length of content to display; truncates if exceeded.
3111
+ * @returns {JSX.Element} The rendered TooltipV2 component.
3112
+ */
3079
3113
  export declare function TooltipV2({ id, placement, trigger, content, variant, customStyle, portalId, portalClass, contentMaxLength, }: TooltipV2Props): JSX_2.Element;
3080
3114
 
3081
3115
  declare interface TooltipV2Props {
3082
3116
  id: string;
3083
3117
  placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
3084
3118
  trigger: React_2.ReactNode;
3085
- content: string;
3119
+ content: string | React_2.ReactNode;
3086
3120
  variant?: 'dark' | 'light' | 'success' | 'warning' | 'error' | 'info';
3087
3121
  customStyle?: React_2.CSSProperties;
3088
3122
  opacity?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybr1d-tech/charizard",
3
- "version": "0.7.101",
3
+ "version": "0.7.103",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"