@hybr1d-tech/charizard 0.7.134 → 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/hybr1d-ui.js +15 -23
- package/dist/hybr1d-ui.umd.cjs +13 -13
- package/dist/index.d.ts +6 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2616,27 +2616,26 @@ declare type SwitchProps = {
|
|
|
2616
2616
|
* @extends {Omit<zagSwitch.Context, 'id'>}
|
|
2617
2617
|
* @property {React.ReactNode} [children] - Optional label content displayed next to the switch.
|
|
2618
2618
|
* @property {string} [errorMsg] - Optional error message displayed below the switch.
|
|
2619
|
-
* @property {Partial<TooltipV2Props>} [tooltipProps] - Optional props for the tooltip component.
|
|
2620
|
-
* @property {SVGProps} [infoIcon] - Optional props for the info icon SVG.
|
|
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
2621
|
* @property {string} [info] - Optional info message displayed in the tooltip when hovering the info icon.
|
|
2622
2622
|
*/
|
|
2623
2623
|
/**
|
|
2624
2624
|
* SwitchV2 Component
|
|
2625
2625
|
*
|
|
2626
2626
|
* A switch component that leverages @zag-js for accessibility and state management.
|
|
2627
|
-
* The component includes a hidden input, a slider,
|
|
2627
|
+
* The component includes a hidden input, a slider, optional label content, an error message,
|
|
2628
|
+
* and a tooltip-triggered info icon.
|
|
2628
2629
|
*
|
|
2629
|
-
* @param {SwitchV2Props} props - The props include the context for @zag-js switch, optional children and
|
|
2630
|
+
* @param {SwitchV2Props} props - The props include the context for @zag-js switch, optional children, error message, and tooltip properties.
|
|
2630
2631
|
* @returns {JSX.Element} The rendered switch component with optional label, error message, and info tooltip.
|
|
2631
2632
|
*/
|
|
2632
|
-
export declare function SwitchV2({ children, errorMsg,
|
|
2633
|
+
export declare function SwitchV2({ children, errorMsg, tooltipProps, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2633
2634
|
|
|
2634
2635
|
declare interface SwitchV2Props extends Omit<zagSwitch.Context, 'id'> {
|
|
2635
2636
|
children?: React_2.ReactNode;
|
|
2636
2637
|
errorMsg?: string;
|
|
2637
2638
|
tooltipProps?: Partial<TooltipV2Props>;
|
|
2638
|
-
infoIcon?: SVGProps;
|
|
2639
|
-
info?: string;
|
|
2640
2639
|
}
|
|
2641
2640
|
|
|
2642
2641
|
export declare const Tab: default_2.FC<TabProps>;
|