@hybr1d-tech/charizard 0.7.130 → 0.7.132
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 +271 -261
- package/dist/hybr1d-ui.umd.cjs +16 -16
- package/dist/index.d.ts +18 -0
- 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
|