@hybr1d-tech/charizard 0.7.133 → 0.7.134
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 +642 -616
- package/dist/hybr1d-ui.umd.cjs +15 -15
- package/dist/index.d.ts +16 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2609,6 +2609,17 @@ 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.
|
|
2620
|
+
* @property {SVGProps} [infoIcon] - Optional props for the info icon SVG.
|
|
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
|
*
|
|
@@ -2616,20 +2627,16 @@ declare type SwitchProps = {
|
|
|
2616
2627
|
* The component includes a hidden input, a slider, and optional label content.
|
|
2617
2628
|
*
|
|
2618
2629
|
* @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
|
|
2630
|
+
* @returns {JSX.Element} The rendered switch component with optional label, error message, and info tooltip.
|
|
2620
2631
|
*/
|
|
2621
|
-
export declare function SwitchV2({ children, errorMsg, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2632
|
+
export declare function SwitchV2({ children, errorMsg, infoIcon, info, tooltipProps, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2622
2633
|
|
|
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
2634
|
declare interface SwitchV2Props extends Omit<zagSwitch.Context, 'id'> {
|
|
2630
|
-
/** Optional label content displayed next to the switch */
|
|
2631
2635
|
children?: React_2.ReactNode;
|
|
2632
2636
|
errorMsg?: string;
|
|
2637
|
+
tooltipProps?: Partial<TooltipV2Props>;
|
|
2638
|
+
infoIcon?: SVGProps;
|
|
2639
|
+
info?: string;
|
|
2633
2640
|
}
|
|
2634
2641
|
|
|
2635
2642
|
export declare const Tab: default_2.FC<TabProps>;
|