randmarcomps 1.329.0 → 1.331.0

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.
@@ -396,6 +396,67 @@ export declare function ExploreManufacturers({ appID, manufPath, withBot }: {
396
396
  withBot: boolean;
397
397
  }): JSX.Element;
398
398
 
399
+ /**
400
+ * A card component to display an external product with a responsive layout.
401
+ * It shows a compact view with badges on mobile and a detailed grid on desktop.
402
+ * Includes a skeleton loader state for asynchronous data fetching.
403
+ */
404
+ export declare function ExternalProductCard({ product, viewProductLink }: ExternalProductCardProps): JSX.Element;
405
+
406
+ declare interface ExternalProductCardProps {
407
+ product?: Product;
408
+ viewProductLink?: string;
409
+ }
410
+
411
+ /**
412
+ * Formats a number as Canadian dollars (CAD) for an English (Canada) locale.
413
+ *
414
+ * @param amount The numerical value of the money.
415
+ * @returns A string representing the formatted currency value (e.g., "$1,234.56").
416
+ *
417
+ * @example
418
+ * formatMoney(4321.99); // "$4,231.99"
419
+ * formatMoney(500); // "$500.00"
420
+ * formatMoney(0.75); // "$0.75"
421
+ */
422
+ export declare const formatMoney: (amount: number, options?: Intl.NumberFormatOptions) => string;
423
+
424
+ /**
425
+ * Formats a number according to English (Canada) conventions.
426
+ * Uses a period for the decimal and a space for the thousands separator.
427
+ *
428
+ * @param value The number to format.
429
+ * @returns A string representing the formatted number.
430
+ *
431
+ * @example
432
+ * formatNumber(1234567.89); // "1 234 567.89"
433
+ * formatNumber(1234); // "1234"
434
+ * formatNumber(123.45); // "123.45"
435
+ */
436
+ export declare const formatNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
437
+
438
+ /**
439
+ * Formats a date represented as an integer in YYYYMMDD format into a 'YYYY-MM-DD' string.
440
+ * This utility is designed to handle numeric date representations commonly found in backend or legacy systems.
441
+ * It gracefully handles null or undefined inputs and includes a fallback for unexpected formats.
442
+ *
443
+ * @param {number | null | undefined} dateInt - The date to format, represented as a YYYYMMDD integer (e.g., 20250619).
444
+ * @returns {string} The formatted date string 'YYYY-MM-DD', an em dash '—' for null/undefined inputs, or the original number as a string if it's not 8 digits long.
445
+ *
446
+ * @example
447
+ * // returns "2025-06-19"
448
+ * formatYYYYMMDDIntToDateString(20250619);
449
+ *
450
+ * @example
451
+ * // returns "—"
452
+ * formatYYYYMMDDIntToDateString(null);
453
+ *
454
+ * @example
455
+ * // returns "202301" (as a fallback)
456
+ * formatYYYYMMDDIntToDateString(202301);
457
+ */
458
+ export declare const formatYYYYMMDDIntToDateString: (dateInt?: number | null) => string;
459
+
399
460
  export declare const GeminiApiKeyProvider: ({ apiKey, children, }: {
400
461
  apiKey?: string | null;
401
462
  children: ReactNode;