@hybr1d-tech/charizard 0.7.136 → 0.7.138
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/hybr1d-ui.js +567 -546
- package/dist/hybr1d-ui.umd.cjs +6 -6
- package/dist/index.d.ts +14 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2609,32 +2609,30 @@ 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
|
-
*/
|
|
2623
2612
|
/**
|
|
2624
2613
|
* SwitchV2 Component
|
|
2625
2614
|
*
|
|
2626
|
-
* A switch component that
|
|
2627
|
-
*
|
|
2628
|
-
*
|
|
2615
|
+
* A custom switch component that utilizes `@zag-js/switch` for accessibility and state management.
|
|
2616
|
+
* It includes an optional label, error message, and an info tooltip triggered by an info icon.
|
|
2617
|
+
*
|
|
2618
|
+
* The switch can be controlled via the `checked` prop and supports accessibility features like
|
|
2619
|
+
* hidden inputs and keyboard navigation.
|
|
2620
|
+
*
|
|
2621
|
+
* @param {SwitchV2Props} props - The props for configuring the switch.
|
|
2622
|
+
* @param {React.ReactNode} [props.children] - Optional label content displayed next to the switch.
|
|
2623
|
+
* @param {string} [props.errorMsg] - Optional error message displayed below the switch.
|
|
2624
|
+
* @param {string} [props.info] - Optional informational text that will be shown inside a tooltip.
|
|
2625
|
+
* @param {Partial<TooltipV2Props>} [props.tooltipProps] - Optional tooltip configuration for the info icon.
|
|
2626
|
+
* @param {boolean} [props.checked] - The checked state of the switch. Controls the on/off state if provided.
|
|
2629
2627
|
*
|
|
2630
|
-
* @param {SwitchV2Props} props - The props include the context for @zag-js switch, optional children, error message, and tooltip properties.
|
|
2631
2628
|
* @returns {JSX.Element} The rendered switch component with optional label, error message, and info tooltip.
|
|
2632
2629
|
*/
|
|
2633
|
-
export declare function SwitchV2({ children, errorMsg, tooltipProps, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2630
|
+
export declare function SwitchV2({ children, errorMsg, info, tooltipProps, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2634
2631
|
|
|
2635
2632
|
declare interface SwitchV2Props extends Omit<zagSwitch.Context, 'id'> {
|
|
2636
2633
|
children?: React_2.ReactNode;
|
|
2637
2634
|
errorMsg?: string;
|
|
2635
|
+
info?: string;
|
|
2638
2636
|
tooltipProps?: Partial<TooltipV2Props>;
|
|
2639
2637
|
}
|
|
2640
2638
|
|