@hybr1d-tech/charizard 0.7.131 → 0.7.133
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 +501 -487
- package/dist/hybr1d-ui.umd.cjs +16 -16
- package/dist/index.d.ts +23 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,24 @@ declare interface CommonOptions {
|
|
|
319
319
|
onClick?: (event: React_2.MouseEvent) => void;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Converts a timestamp to a formatted time string.
|
|
324
|
+
*
|
|
325
|
+
* @param {number} timestamp - The timestamp to convert (in milliseconds).
|
|
326
|
+
* @param {TIME_PICKER_FORMAT} [timeFormat=TIME_PICKER_FORMAT.STANDARD] - The desired time format (12-hour or 24-hour).
|
|
327
|
+
* @param {boolean} [enableSeconds=false] - Whether to include seconds in the formatted time string.
|
|
328
|
+
* @returns {string} - The formatted time string.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* // Returns "02:30 PM"
|
|
332
|
+
* convertFromTimestamp(1620000000000, TIME_PICKER_FORMAT.STANDARD);
|
|
333
|
+
*
|
|
334
|
+
* @example
|
|
335
|
+
* // Returns "14:30:45"
|
|
336
|
+
* convertFromTimestamp(1620000000000, TIME_PICKER_FORMAT.MILITARY, true);
|
|
337
|
+
*/
|
|
338
|
+
export declare const convertFromTimestamp: (timestamp: number, timeFormat?: TIME_PICKER_FORMAT, enableSeconds?: boolean) => string;
|
|
339
|
+
|
|
322
340
|
/**
|
|
323
341
|
* Converts a time string (e.g., "12:30 PM") to a timestamp
|
|
324
342
|
* @param {string} timeString - The time string to convert
|
|
@@ -2597,19 +2615,21 @@ declare type SwitchProps = {
|
|
|
2597
2615
|
* A switch component that leverages @zag-js for accessibility and state management.
|
|
2598
2616
|
* The component includes a hidden input, a slider, and optional label content.
|
|
2599
2617
|
*
|
|
2600
|
-
* @param {SwitchV2Props} props - The props include the context for @zag-js switch and
|
|
2618
|
+
* @param {SwitchV2Props} props - The props include the context for @zag-js switch, optional children and error message.
|
|
2601
2619
|
* @returns {JSX.Element} The rendered switch component with a label if provided.
|
|
2602
2620
|
*/
|
|
2603
|
-
export declare function SwitchV2({ children, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2621
|
+
export declare function SwitchV2({ children, errorMsg, ...props }: SwitchV2Props): JSX_2.Element;
|
|
2604
2622
|
|
|
2605
2623
|
/**
|
|
2606
2624
|
* Props for the SwitchV2 component.
|
|
2607
2625
|
* Extends the zagSwitch context, excluding the 'id' property,
|
|
2608
|
-
*
|
|
2626
|
+
* includes an optional children node for labeling
|
|
2627
|
+
* and error message.
|
|
2609
2628
|
*/
|
|
2610
2629
|
declare interface SwitchV2Props extends Omit<zagSwitch.Context, 'id'> {
|
|
2611
2630
|
/** Optional label content displayed next to the switch */
|
|
2612
2631
|
children?: React_2.ReactNode;
|
|
2632
|
+
errorMsg?: string;
|
|
2613
2633
|
}
|
|
2614
2634
|
|
|
2615
2635
|
export declare const Tab: default_2.FC<TabProps>;
|