@tui/design-system 1.0.0 → 1.1.1
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/CHANGELOG.md +95 -0
- package/dist/themes/crystalski/index.css +6 -5
- package/dist/themes/crystalski/index.css.map +1 -1
- package/dist/themes/firstchoice/index.css +6 -5
- package/dist/themes/firstchoice/index.css.map +1 -1
- package/dist/themes/tui/index.css +9 -5
- package/dist/themes/tui/index.css.map +1 -1
- package/package.json +20 -14
- package/scss/lib/button/_mixins.scss +2 -0
- package/scss/lib/cards/selectable/_mixins.scss +135 -80
- package/scss/lib/cards/selectable/_variables.scss +0 -2
- package/scss/lib/flyout-dropdown/_mixins.scss +130 -59
- package/scss/lib/flyout-dropdown/_variables.scss +7 -0
- package/scss/lib/forms/input-checkbox/_mixins.scss +4 -0
- package/scss/lib/forms/input-chip/_mixins.scss +17 -27
- package/scss/lib/forms/input-chip/_variables.scss +0 -1
- package/scss/lib/forms/input-radio/_mixins.scss +4 -0
- package/scss/lib/forms/input-switch/_mixins.scss +1 -1
- package/scss/lib/grid/_mixins.scss +5 -3
- package/scss/lib/media-button/_mixins.scss +7 -0
- package/scss/lib/modal/_mixins.scss +8 -13
- package/scss/lib/ratings-reviews/range-bar/_variables.scss +1 -1
- package/scss/lib/scroller/_mixins.scss +9 -4
- package/scss/themes/crystalski/_overrides.scss +8 -0
- package/scss/themes/crystalski/index.scss +3 -0
- package/scss/themes/firstchoice/_overrides.scss +8 -0
- package/scss/themes/firstchoice/index.scss +3 -0
- package/scss/themes/tui/_colors.scss +3 -2
- package/scss/themes/tui/_primitives.scss +3 -0
- package/scss/themes/tui/index.scss +3 -0
- package/scss/themes/tui/theme.json +12 -0
- package/scss/variables/_colors.scss +4 -1
- package/scss/variables/_primitives.scss +3 -1
- package/scss/variables/base-theme.json +23 -16
- package/scss/variables.scss +1 -0
- package/types/components.ts +8 -5
|
@@ -219,11 +219,20 @@
|
|
|
219
219
|
"description": "Specific brand colours",
|
|
220
220
|
"displayType": "color",
|
|
221
221
|
"tokens": {
|
|
222
|
-
"color-brand-
|
|
223
|
-
"primitive": "color-brand-
|
|
224
|
-
"title": "
|
|
222
|
+
"color-brand-tripadvisor": {
|
|
223
|
+
"primitive": "color-brand-tripadvisor-green-60",
|
|
224
|
+
"title": "TripAdvisor",
|
|
225
225
|
"lowContrast": true
|
|
226
226
|
},
|
|
227
|
+
"color-brand-tripadvisor-pine-green": {
|
|
228
|
+
"primitive": "color-brand-tripadvisor-pine-green",
|
|
229
|
+
"title": "TripAdvisor pine green",
|
|
230
|
+
"darkColor": true
|
|
231
|
+
},
|
|
232
|
+
"color-brand-tripadvisor-inverse": {
|
|
233
|
+
"primitive": "color-brand-tripadvisor-trip-green",
|
|
234
|
+
"title": "TripAdvisor inverse"
|
|
235
|
+
},
|
|
227
236
|
"color-brand-paypal": {
|
|
228
237
|
"primitive": "color-brand-paypal-blue",
|
|
229
238
|
"title": "PayPal",
|
|
@@ -1061,12 +1070,6 @@
|
|
|
1061
1070
|
"title": "Selected border colour",
|
|
1062
1071
|
"description": "Selected border colour"
|
|
1063
1072
|
},
|
|
1064
|
-
"card-selectable-disabled-text-color": {
|
|
1065
|
-
"displayType": "color",
|
|
1066
|
-
"primitive": "uilib-color-other-disabled-soft",
|
|
1067
|
-
"title": "Disabled text colour",
|
|
1068
|
-
"description": "Disabled text colour"
|
|
1069
|
-
},
|
|
1070
1073
|
"card-selectable-selected-icon": {
|
|
1071
1074
|
"displayType": "icon",
|
|
1072
1075
|
"title": "Icon for selected card",
|
|
@@ -1163,6 +1166,16 @@
|
|
|
1163
1166
|
}
|
|
1164
1167
|
}
|
|
1165
1168
|
},
|
|
1169
|
+
"flyout-dropdown": {
|
|
1170
|
+
"tokens": {
|
|
1171
|
+
"flyout-dropdown-close-icon": {
|
|
1172
|
+
"displayType": "icon",
|
|
1173
|
+
"title": "Close Icon ",
|
|
1174
|
+
"description": "Flyout Dropdown close button icon",
|
|
1175
|
+
"longValue": true
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1166
1179
|
"form-row": {
|
|
1167
1180
|
"tokens": {
|
|
1168
1181
|
"form-row-label-font": {
|
|
@@ -1568,12 +1581,6 @@
|
|
|
1568
1581
|
"title": "Selected hover background colour",
|
|
1569
1582
|
"description": "Hover background colour when selected"
|
|
1570
1583
|
},
|
|
1571
|
-
"input-chip-disabled-text-color": {
|
|
1572
|
-
"displayType": "color",
|
|
1573
|
-
"primitive": "uilib-color-other-disabled-soft",
|
|
1574
|
-
"title": "Disabled text colour",
|
|
1575
|
-
"description": "Disabled text colour"
|
|
1576
|
-
},
|
|
1577
1584
|
"input-chip-disabled-bg-color": {
|
|
1578
1585
|
"displayType": "color",
|
|
1579
1586
|
"primitive": "uilib-color-core-neutral",
|
|
@@ -2248,7 +2255,7 @@
|
|
|
2248
2255
|
"ratings-range-bar-tripadvisor-bar-color": {
|
|
2249
2256
|
"title": "Tripadvisor range bar colour",
|
|
2250
2257
|
"description": "Tripadvisor range bar colour",
|
|
2251
|
-
"primitive": "--uilib-color-brand-
|
|
2258
|
+
"primitive": "--uilib-color-brand-tripadvisor"
|
|
2252
2259
|
},
|
|
2253
2260
|
"ratings-range-bar-tripadvisor-bar-bg-color": {
|
|
2254
2261
|
"title": "Tripadvisor range bar background",
|
package/scss/variables.scss
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
@forward 'lib/cards/selectable/variables';
|
|
30
30
|
@forward 'lib/divider/variables';
|
|
31
31
|
@forward 'lib/flight-details/variables';
|
|
32
|
+
@forward 'lib/flyout-dropdown/variables';
|
|
32
33
|
@forward 'lib/forms/datepicker/variables';
|
|
33
34
|
@forward 'lib/forms/form-row/variables';
|
|
34
35
|
@forward 'lib/forms/input-checkbox/variables';
|
package/types/components.ts
CHANGED
|
@@ -429,6 +429,7 @@ export interface MediaButtonProps {
|
|
|
429
429
|
accessibleLabel?: string;
|
|
430
430
|
icon?: IconPosition;
|
|
431
431
|
iconAsset?: string;
|
|
432
|
+
isDisabled?: boolean;
|
|
432
433
|
}
|
|
433
434
|
|
|
434
435
|
// ─── Price ─────────────────────────────────────────────
|
|
@@ -508,6 +509,7 @@ export interface ModalProps {
|
|
|
508
509
|
primaryButtonLabel?: string;
|
|
509
510
|
secondaryButtonLabel?: string;
|
|
510
511
|
closeButtonLabel?: string;
|
|
512
|
+
scrollerAriaLabel?: string;
|
|
511
513
|
}
|
|
512
514
|
|
|
513
515
|
// ─── Hero ──────────────────────────────────────────────
|
|
@@ -534,12 +536,12 @@ export interface ScrollerProps {
|
|
|
534
536
|
|
|
535
537
|
// ─── Flyout Dropdown ───────────────────────────────────
|
|
536
538
|
export interface FlyoutDropdownProps {
|
|
537
|
-
variant?: '
|
|
538
|
-
arrowPosition?: 'centre' | 'left' | 'right';
|
|
539
|
-
hasHeader?: boolean;
|
|
540
|
-
hasHeaderDivider?: boolean;
|
|
541
|
-
hasFooter?: boolean;
|
|
539
|
+
variant?: 'default' | 'menu-flyout';
|
|
542
540
|
label?: string;
|
|
541
|
+
primaryButtonLabel?: string;
|
|
542
|
+
secondaryButtonLabel?: string;
|
|
543
|
+
closeButtonLabel?: string;
|
|
544
|
+
scrollerAriaLabel?: string;
|
|
543
545
|
}
|
|
544
546
|
|
|
545
547
|
// ─── Card Article ──────────────────────────────────────
|
|
@@ -573,6 +575,7 @@ export interface CardSelectableProps {
|
|
|
573
575
|
contentLayout?: 'content only' | 'title only' | 'title and content';
|
|
574
576
|
selectedIndex?: number;
|
|
575
577
|
clickableArea?: 'input' | 'card';
|
|
578
|
+
includeImage?: boolean;
|
|
576
579
|
}
|
|
577
580
|
|
|
578
581
|
// ─── Search Card ───────────────────────────────────────
|