@hybr1d-tech/charizard 0.7.128 → 0.7.130
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 +3628 -3600
- package/dist/hybr1d-ui.umd.cjs +18 -18
- package/dist/index.d.ts +26 -2
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { StylesConfig } from 'react-select';
|
|
|
23
23
|
import { ToastOptions } from 'react-toastify';
|
|
24
24
|
import { ToastPosition } from 'react-toastify';
|
|
25
25
|
import { UseBoundStore } from 'zustand';
|
|
26
|
+
import * as zagSwitch from '@zag-js/switch';
|
|
26
27
|
|
|
27
28
|
export declare const ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
|
|
28
29
|
|
|
@@ -443,7 +444,7 @@ declare type CustomColCheckedState = {
|
|
|
443
444
|
|
|
444
445
|
declare type DateConfig = Partial<DateRangePickerProps>;
|
|
445
446
|
|
|
446
|
-
export declare function DatePicker({ value, onChange, mode, variant, displayDateFormat, errorMsg, disableDatepicker, disabled, buttonVariant, customContainerStyles, popoverConfig, isError, showOutsideDays, ...props }: DatePickerProps): JSX_2.Element;
|
|
447
|
+
export declare function DatePicker({ value, onChange, mode, variant, displayDateFormat, errorMsg, disableDatepicker, disabled, buttonVariant, customContainerStyles, popoverConfig, isError, showOutsideDays, trigger, ...props }: DatePickerProps): JSX_2.Element;
|
|
447
448
|
|
|
448
449
|
declare interface DatePickerProps extends PropsSingle {
|
|
449
450
|
value?: Date | string;
|
|
@@ -468,9 +469,10 @@ declare interface DatePickerProps extends PropsSingle {
|
|
|
468
469
|
};
|
|
469
470
|
showOutsideDays?: boolean;
|
|
470
471
|
disabled?: Matcher | Matcher[];
|
|
472
|
+
trigger?: React_2.ReactNode;
|
|
471
473
|
}
|
|
472
474
|
|
|
473
|
-
export declare function DateRangePicker({ value, onChange, mode, datePickerClassNames, showQuickSelect, disabled, customDisable, disableDatepicker, disableWeekends, showOutsideDays, errorMsg, customInputContentStyles, customClasses, size, onReset, placeholder, ...props }: DateRangePickerProps): JSX_2.Element;
|
|
475
|
+
export declare function DateRangePicker({ value, onChange, mode, datePickerClassNames, showQuickSelect, disabled, customDisable, disableDatepicker, disableWeekends, showOutsideDays, errorMsg, customInputContentStyles, customClasses, size, onReset, placeholder, trigger, ...props }: DateRangePickerProps): JSX_2.Element;
|
|
474
476
|
|
|
475
477
|
declare interface DateRangePickerProps extends PropsRange {
|
|
476
478
|
value: DateRange;
|
|
@@ -494,6 +496,7 @@ declare interface DateRangePickerProps extends PropsRange {
|
|
|
494
496
|
};
|
|
495
497
|
size?: BUTTON_V2_SIZE;
|
|
496
498
|
placeholder?: string;
|
|
499
|
+
trigger?: React_2.ReactNode;
|
|
497
500
|
}
|
|
498
501
|
|
|
499
502
|
/**
|
|
@@ -2588,6 +2591,27 @@ declare type SwitchProps = {
|
|
|
2588
2591
|
title?: string;
|
|
2589
2592
|
};
|
|
2590
2593
|
|
|
2594
|
+
/**
|
|
2595
|
+
* SwitchV2 Component
|
|
2596
|
+
*
|
|
2597
|
+
* A switch component that leverages @zag-js for accessibility and state management.
|
|
2598
|
+
* The component includes a hidden input, a slider, and optional label content.
|
|
2599
|
+
*
|
|
2600
|
+
* @param {SwitchV2Props} props - The props include the context for @zag-js switch and optional children.
|
|
2601
|
+
* @returns {JSX.Element} The rendered switch component with a label if provided.
|
|
2602
|
+
*/
|
|
2603
|
+
export declare function SwitchV2({ children, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* Props for the SwitchV2 component.
|
|
2607
|
+
* Extends the zagSwitch context, excluding the 'id' property,
|
|
2608
|
+
* and includes an optional children node for labeling.
|
|
2609
|
+
*/
|
|
2610
|
+
declare interface SwitchV2Props extends Omit<zagSwitch.Context, 'id'> {
|
|
2611
|
+
/** Optional label content displayed next to the switch */
|
|
2612
|
+
children?: React_2.ReactNode;
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2591
2615
|
export declare const Tab: default_2.FC<TabProps>;
|
|
2592
2616
|
|
|
2593
2617
|
export declare function Table({ data, loaderConfig, columns, filterConfig, sortConfig, rowSelectionConfig, actionsConfig, searchConfig, totalText, paginationConfig, emptyStateConfig, tableStyleConfig, customColumnConfig, exportConfig, }: TableProps): JSX_2.Element;
|