@hybr1d-tech/charizard 0.7.133 → 0.7.135

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
@@ -2609,27 +2609,33 @@ declare type SwitchProps = {
2609
2609
  title?: string;
2610
2610
  };
2611
2611
 
2612
+ /**
2613
+ * Props for the SwitchV2 component.
2614
+ *
2615
+ * @typedef {Object} SwitchV2Props
2616
+ * @extends {Omit<zagSwitch.Context, 'id'>}
2617
+ * @property {React.ReactNode} [children] - Optional label content displayed next to the switch.
2618
+ * @property {string} [errorMsg] - Optional error message displayed below the switch.
2619
+ * @property {Partial<TooltipV2Props>} [tooltipProps] - Optional props for the tooltip component, which appears when hovering over the info icon.
2620
+ * @property {SVGProps} [infoIcon] - Optional props for the info icon SVG used as the trigger for the tooltip.
2621
+ * @property {string} [info] - Optional info message displayed in the tooltip when hovering the info icon.
2622
+ */
2612
2623
  /**
2613
2624
  * SwitchV2 Component
2614
2625
  *
2615
2626
  * A switch component that leverages @zag-js for accessibility and state management.
2616
- * The component includes a hidden input, a slider, and optional label content.
2627
+ * The component includes a hidden input, a slider, optional label content, an error message,
2628
+ * and a tooltip-triggered info icon.
2617
2629
  *
2618
- * @param {SwitchV2Props} props - The props include the context for @zag-js switch, optional children and error message.
2619
- * @returns {JSX.Element} The rendered switch component with a label if provided.
2630
+ * @param {SwitchV2Props} props - The props include the context for @zag-js switch, optional children, error message, and tooltip properties.
2631
+ * @returns {JSX.Element} The rendered switch component with optional label, error message, and info tooltip.
2620
2632
  */
2621
- export declare function SwitchV2({ children, errorMsg, ...props }: SwitchV2Props): JSX_2.Element;
2633
+ export declare function SwitchV2({ children, errorMsg, tooltipProps, ...props }: SwitchV2Props): JSX_2.Element;
2622
2634
 
2623
- /**
2624
- * Props for the SwitchV2 component.
2625
- * Extends the zagSwitch context, excluding the 'id' property,
2626
- * includes an optional children node for labeling
2627
- * and error message.
2628
- */
2629
2635
  declare interface SwitchV2Props extends Omit<zagSwitch.Context, 'id'> {
2630
- /** Optional label content displayed next to the switch */
2631
2636
  children?: React_2.ReactNode;
2632
2637
  errorMsg?: string;
2638
+ tooltipProps?: Partial<TooltipV2Props>;
2633
2639
  }
2634
2640
 
2635
2641
  export declare const Tab: default_2.FC<TabProps>;