tide-design-system 2.0.28 → 2.0.30

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.
@@ -584,6 +584,18 @@ export declare type BadgePremium = (typeof BADGE_PREMIUM)[keyof typeof BADGE_PRE
584
584
 
585
585
  export declare type BadgeTrustedYears = (typeof BADGE_TRUSTED)[keyof typeof BADGE_TRUSTED];
586
586
 
587
+ export declare type BooleanField = CheckboxField;
588
+
589
+ export declare type BooleanInput = CheckboxInput;
590
+
591
+ export declare interface BooleanValue {
592
+ value?: boolean;
593
+ }
594
+
595
+ declare interface BooleanValue_2 {
596
+ value?: boolean;
597
+ }
598
+
587
599
  export declare type BreadCrumb = {
588
600
  dataTrack?: string;
589
601
  label: string;
@@ -599,6 +611,15 @@ export declare const BREAKPOINT: {
599
611
 
600
612
  export declare type Breakpoint = (typeof BREAKPOINT)[keyof typeof BREAKPOINT];
601
613
 
614
+ export declare interface CheckboxField extends GenericInput, BooleanValue {
615
+ indeterminate?: boolean;
616
+ }
617
+
618
+ export declare type CheckboxInput = GenericInput_2 & BooleanValue_2 & {
619
+ checked?: boolean;
620
+ indeterminate?: boolean;
621
+ };
622
+
602
623
  declare const CSS_2: {
603
624
  readonly withBreakpoint: (utilities: string[], breakpoint: Breakpoint) => string[];
604
625
  readonly ALIGN: {
@@ -1019,9 +1040,48 @@ export declare const ELEMENT_TEXT_AS_ICON: {
1019
1040
 
1020
1041
  export declare type ElementTextAsIcon = (typeof ELEMENT_TEXT_AS_ICON)[keyof typeof ELEMENT_TEXT_AS_ICON];
1021
1042
 
1022
- declare type FormValueTransformer = (value: string) => string;
1043
+ declare const FACET_COMPONENT_ID_RANGE: {
1044
+ readonly GROSS_WEIGHT: "grossWeight";
1045
+ readonly LENGTH: "vehicleLength";
1046
+ readonly MILEAGE: "mileage";
1047
+ readonly PRICE: "price";
1048
+ readonly SLEEPING_CAPACITY: "sleepingCapacity";
1049
+ readonly SLIDEOUTS: "slideouts";
1050
+ readonly YEAR: "vehicleYear";
1051
+ };
1052
+
1053
+ export declare type FacetComponentIdRange = (typeof FACET_COMPONENT_ID_RANGE)[keyof typeof FACET_COMPONENT_ID_RANGE];
1054
+
1055
+ export declare type Field = SelectField | TextField | TextareaField | CheckboxField;
1056
+
1057
+ export declare const FORMAT: {
1058
+ readonly NUMBER: (input: string | number) => string;
1059
+ readonly PHONE: (input: string | number) => string;
1060
+ readonly PRICE: (input: string | number) => string;
1061
+ };
1062
+
1063
+ export declare const FORMAT_REGEX: {
1064
+ alpha: RegExp;
1065
+ alphaNumberOrEmpty: RegExp;
1066
+ alphaSpace: RegExp;
1067
+ email: RegExp;
1068
+ numberFormatted: RegExp;
1069
+ phone: RegExp;
1070
+ price: RegExp;
1071
+ };
1072
+
1073
+ export declare type Formatted = {
1074
+ [key: string]: string | string[] | number;
1075
+ };
1076
+
1077
+ export declare type FormValueTransformer = (value: string) => string;
1078
+
1079
+ export declare interface GenericField extends GenericInput {
1080
+ transformValue?: FormValueTransformer;
1081
+ validators?: Validator[];
1082
+ }
1023
1083
 
1024
- declare interface GenericInput {
1084
+ export declare interface GenericInput {
1025
1085
  disabled?: boolean;
1026
1086
  error: ValidationError;
1027
1087
  label?: string;
@@ -1029,6 +1089,16 @@ declare interface GenericInput {
1029
1089
  required?: boolean;
1030
1090
  }
1031
1091
 
1092
+ declare interface GenericInput_2 {
1093
+ error?: ValidationError;
1094
+ transformValue?: FormValueTransformer;
1095
+ name: string;
1096
+ validators?: Validator[];
1097
+ required?: boolean;
1098
+ label?: string;
1099
+ disabled?: boolean;
1100
+ }
1101
+
1032
1102
  export declare const ICON: {
1033
1103
  readonly ACCOUNT_BALANCE: "account-balance";
1034
1104
  readonly ADD: "add";
@@ -1117,18 +1187,44 @@ export declare const ICON: {
1117
1187
 
1118
1188
  export declare type Icon = (typeof ICON)[keyof typeof ICON];
1119
1189
 
1190
+ declare type ImageSlide = {
1191
+ imageUrl: string;
1192
+ type: ImageSlideType;
1193
+ };
1194
+
1195
+ export declare type ImageSlideType = (typeof MEDIA_SLIDE_TYPES.IMAGE)[keyof typeof MEDIA_SLIDE_TYPES.IMAGE];
1196
+
1197
+ export declare type Input = SelectInput | TextInput | TextareaInput | CheckboxInput;
1198
+
1120
1199
  export declare type Link = {
1121
1200
  label: string;
1122
1201
  url: string;
1123
1202
  isNewTab?: boolean;
1124
1203
  };
1125
1204
 
1126
- declare const ORIENTATION: {
1205
+ export declare type ListingMedia = ImageSlide | VideoSlide | VrSlide;
1206
+
1207
+ /**
1208
+ * These slides are used in both the inline detail page photo slider
1209
+ * and the fullscreen media gallery.
1210
+ */
1211
+ export declare const MEDIA_SLIDE_TYPES: {
1212
+ readonly IMAGE: {
1213
+ readonly FLOORPLAN: "floorplan";
1214
+ readonly IMAGE: "image";
1215
+ };
1216
+ readonly VIDEO: "video";
1217
+ readonly VR: "vr";
1218
+ };
1219
+
1220
+ export declare type MediaSlideType = (typeof MEDIA_SLIDE_TYPES.IMAGE)[keyof typeof MEDIA_SLIDE_TYPES.IMAGE] | typeof MEDIA_SLIDE_TYPES.VIDEO | typeof MEDIA_SLIDE_TYPES.VR;
1221
+
1222
+ export declare const ORIENTATION: {
1127
1223
  readonly HORIZONTAL: "horizontal";
1128
1224
  readonly VERTICAL: "vertical";
1129
1225
  };
1130
1226
 
1131
- declare type Orientation = (typeof ORIENTATION)[keyof typeof ORIENTATION];
1227
+ export declare type Orientation = (typeof ORIENTATION)[keyof typeof ORIENTATION];
1132
1228
 
1133
1229
  export declare const PRIORITY: {
1134
1230
  readonly PRIMARY: "primary";
@@ -1316,6 +1412,17 @@ declare type Props_9 = {
1316
1412
  offsetX?: number;
1317
1413
  };
1318
1414
 
1415
+ export declare type RangeData = {
1416
+ min: number | null;
1417
+ max: number | null;
1418
+ };
1419
+
1420
+ export declare type Raw = {
1421
+ [key: string]: {
1422
+ raw: number | string | string[];
1423
+ };
1424
+ };
1425
+
1319
1426
  export declare const REALM: {
1320
1427
  readonly AERO: "aero";
1321
1428
  readonly ATV: "atv";
@@ -1330,15 +1437,40 @@ export declare const REALM: {
1330
1437
 
1331
1438
  export declare type Realm = (typeof REALM)[keyof typeof REALM];
1332
1439
 
1333
- declare interface SelectField extends GenericInput, StringValue {
1334
- options: SelectOption[];
1440
+ export declare type RealmConfig = {
1441
+ cdn: {
1442
+ domain: string;
1443
+ version: string;
1444
+ };
1445
+ id: Realm;
1446
+ label: {
1447
+ plural: string;
1448
+ singular: string;
1449
+ singularWithArticle: string;
1450
+ };
1451
+ };
1452
+
1453
+ export declare interface SelectField extends GenericInput, StringValue {
1454
+ optgroups?: SelectOptionGroup[];
1455
+ options?: SelectOption[];
1335
1456
  }
1336
1457
 
1337
- declare type SelectOption = {
1458
+ export declare type SelectInput = GenericInput_2 & StringValue_2 & {
1459
+ options?: SelectOption[] | readonly SelectOption[];
1460
+ placeholder?: string;
1461
+ optgroups?: SelectOptionGroup[];
1462
+ };
1463
+
1464
+ export declare type SelectOption = {
1338
1465
  label: string | number;
1339
1466
  value: any;
1340
1467
  };
1341
1468
 
1469
+ export declare type SelectOptionGroup = {
1470
+ label: string;
1471
+ options?: SelectOption[];
1472
+ };
1473
+
1342
1474
  export declare const SIZE: {
1343
1475
  readonly LARGE: "large";
1344
1476
  readonly SMALL: "small";
@@ -1346,7 +1478,15 @@ export declare const SIZE: {
1346
1478
 
1347
1479
  export declare type Size = (typeof SIZE)[keyof typeof SIZE];
1348
1480
 
1349
- declare interface StringValue {
1481
+ export declare type StringField = SelectField | TextField | TextareaField;
1482
+
1483
+ export declare type StringInput = SelectInput | TextInput | TextareaInput;
1484
+
1485
+ export declare interface StringValue {
1486
+ value?: string;
1487
+ }
1488
+
1489
+ declare interface StringValue_2 {
1350
1490
  value?: string;
1351
1491
  }
1352
1492
 
@@ -1363,7 +1503,7 @@ export declare const TARGET: {
1363
1503
 
1364
1504
  export declare type Target = (typeof TARGET)[keyof typeof TARGET];
1365
1505
 
1366
- declare const TEXT_INPUT_TYPE: {
1506
+ export declare const TEXT_INPUT_TYPE: {
1367
1507
  readonly DATE: "date";
1368
1508
  readonly DATETIME_LOCAL: "datetime-local";
1369
1509
  readonly EMAIL: "email";
@@ -1378,7 +1518,38 @@ declare const TEXT_INPUT_TYPE: {
1378
1518
  readonly WEEK: "week";
1379
1519
  };
1380
1520
 
1381
- declare type TextInputType = (typeof TEXT_INPUT_TYPE)[keyof typeof TEXT_INPUT_TYPE];
1521
+ export declare interface TextareaField extends GenericField, StringValue {
1522
+ maxlength?: number;
1523
+ minlength?: number;
1524
+ placeholder?: string;
1525
+ value?: string;
1526
+ }
1527
+
1528
+ export declare type TextareaInput = GenericInput_2 & StringValue_2 & {
1529
+ maxlength?: number;
1530
+ minlength?: number;
1531
+ placeholder?: string;
1532
+ value?: string;
1533
+ };
1534
+
1535
+ export declare interface TextField extends GenericField, StringValue {
1536
+ maxlength?: number;
1537
+ minlength?: number;
1538
+ placeholder?: string;
1539
+ type?: TextInputType;
1540
+ value?: string;
1541
+ }
1542
+
1543
+ export declare type TextInput = GenericInput_2 & StringValue_2 & {
1544
+ autocomplete?: boolean;
1545
+ maxlength?: number;
1546
+ minlength?: number;
1547
+ type?: TextInputType;
1548
+ placeholder?: string;
1549
+ value?: string;
1550
+ };
1551
+
1552
+ export declare type TextInputType = (typeof TEXT_INPUT_TYPE)[keyof typeof TEXT_INPUT_TYPE];
1382
1553
 
1383
1554
  export declare const TideAccordionItem: __VLS_WithTemplateSlots<DefineComponent< {
1384
1555
  hasBottomDivider: {
@@ -1940,6 +2111,22 @@ export declare const VALIDATOR: {
1940
2111
  readonly PHONE: (value: string) => ValidationResult;
1941
2112
  };
1942
2113
 
1943
- declare type Validator = (value: string) => ValidationResult;
2114
+ export declare type Validator = (value: string) => ValidationResult;
2115
+
2116
+ declare type VideoSlide = {
2117
+ imageUrl: string;
2118
+ type: VideoSlideType;
2119
+ videoUrl: string;
2120
+ };
2121
+
2122
+ export declare type VideoSlideType = typeof MEDIA_SLIDE_TYPES.VIDEO;
2123
+
2124
+ declare type VrSlide = {
2125
+ imageUrl: string;
2126
+ type: VrSlideType;
2127
+ vrUrl: string;
2128
+ };
2129
+
2130
+ export declare type VrSlideType = typeof MEDIA_SLIDE_TYPES.VR;
1944
2131
 
1945
2132
  export { }