@fleetbridge/ui 1.0.0 → 1.1.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.
- package/index.d.ts +10 -0
- package/index.js +619 -304
- package/package.json +1 -1
- package/server.js +10 -5
- package/styles.css +1 -1
package/index.d.ts
CHANGED
|
@@ -518,11 +518,15 @@ interface BranchLocation {
|
|
|
518
518
|
region: string;
|
|
519
519
|
isAirportBranch: boolean;
|
|
520
520
|
isInternational: boolean;
|
|
521
|
+
/** The branch's street address, when the catalogue has one. Searchable. */
|
|
522
|
+
address?: string;
|
|
521
523
|
}
|
|
522
524
|
interface LocationOption {
|
|
523
525
|
value: string;
|
|
524
526
|
label: string;
|
|
525
527
|
icon?: LucideIcon;
|
|
528
|
+
/** A second line under the label (the branch's address). Searchable. */
|
|
529
|
+
description?: string;
|
|
526
530
|
}
|
|
527
531
|
interface LocationGroup {
|
|
528
532
|
/** Omitted for a leading, header-less group (e.g. sentinel options). */
|
|
@@ -1010,6 +1014,12 @@ interface Extra {
|
|
|
1010
1014
|
/** Above 1, the card gets a quantity stepper (Per Unit). */
|
|
1011
1015
|
maxQuantity: number;
|
|
1012
1016
|
icon: 'shield' | 'tyre' | 'child' | 'driver' | 'gps' | 'wifi' | 'delivery' | 'document';
|
|
1017
|
+
/**
|
|
1018
|
+
* The supplier's own group for this add-on, when its API sends one (Bluu's
|
|
1019
|
+
* ProductType: Waivers, Additional services, Extended services). The
|
|
1020
|
+
* wizard lists add-ons under these groups, as the supplier does.
|
|
1021
|
+
*/
|
|
1022
|
+
group?: string;
|
|
1013
1023
|
/** Surfaced first, with a "Popular" chip. Set client-side via isPopularExtra. */
|
|
1014
1024
|
recommended?: boolean;
|
|
1015
1025
|
/**
|