@coras-io/embed 0.6.11 → 0.7.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/alert/alert.styles.js +4 -4
  3. package/dist/components/attraction-card/long/attraction-long-card.styles.js +1 -1
  4. package/dist/components/basket/basket.styles.js +2 -2
  5. package/dist/components/basket-item/basket-item.styles.js +2 -2
  6. package/dist/components/better-carousel/better-carousel.component.js +11 -7
  7. package/dist/components/better-carousel/better-carousel.styles.js +15 -5
  8. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +4 -0
  9. package/dist/components/button/button.styles.js +1 -1
  10. package/dist/components/calendar/base/calendar.mixin.js +7 -5
  11. package/dist/components/calendar/month/month.component.js +1 -1
  12. package/dist/components/calendar/multi/multi.component.js +3 -1
  13. package/dist/components/carousel/carousel.component.js +6 -2
  14. package/dist/components/carousel/carousel.styles.js +12 -2
  15. package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
  16. package/dist/components/dialog/dialog.styles.js +4 -0
  17. package/dist/components/drawer/drawer.styles.js +14 -6
  18. package/dist/components/filters-drawer/filters-drawer.styles.js +6 -4
  19. package/dist/components/icon/icon.styles.js +4 -0
  20. package/dist/components/image-viewer/image-viewer.styles.js +2 -2
  21. package/dist/components/input-field/input-field.component.js +1 -0
  22. package/dist/components/input-field/input-field.styles.js +20 -19
  23. package/dist/components/locations-results/locations-results.styles.js +2 -1
  24. package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +1 -1
  25. package/dist/components/seats-io/seats-io.component.js +1 -0
  26. package/dist/components/sport-options/sport-option/sport-option.styles.js +6 -6
  27. package/dist/components/tabs/tabs.component.js +4 -2
  28. package/dist/components/text-section/text-section.styles.js +2 -2
  29. package/dist/core/currency/constants.js +1 -1
  30. package/dist/core/currency/index.d.ts +7 -1
  31. package/dist/core/currency/index.js +11 -3
  32. package/dist/core/currency/saudi-riyal-font.d.ts +5 -0
  33. package/dist/core/currency/saudi-riyal-font.js +24 -0
  34. package/dist/core/i18n/date.d.ts +1 -1
  35. package/dist/core/i18n/date.js +3 -1
  36. package/dist/core/utils/direction.d.ts +6 -0
  37. package/dist/core/utils/direction.js +8 -0
  38. package/dist/core/utils/locale.d.ts +7 -0
  39. package/dist/core/utils/locale.js +12 -0
  40. package/dist/helpers/helpers.d.ts +1 -0
  41. package/dist/helpers/helpers.js +1 -0
  42. package/dist/mixins/base.mixin.js +8 -0
  43. package/dist/mixins/location-search/location-search.styles.js +3 -3
  44. package/dist/styles/tokens.d.ts +1 -1
  45. package/dist/styles/tokens.generated.d.ts +1 -1
  46. package/dist/styles/tokens.generated.js +1 -1
  47. package/dist/views/details-page/details-page.styles.js +4 -3
  48. package/dist/views/help-page/help-page.styles.js +4 -4
  49. package/dist/views/payment-page/partials/confirmation/confirmation.styles.js +1 -1
  50. package/dist/views/payment-page/partials/stripe/stripe.utils.d.ts +3 -1
  51. package/dist/views/payment-page/partials/stripe/stripe.utils.js +4 -1
  52. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @coras-io/embed
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7e6bcb4: Mirror the layout for Arabic: pages now read right to left, with direction-aware spacing, carousels, tabs and icons, and the Arabic calendar week starts on Sunday
8
+
9
+ ### Patch Changes
10
+
11
+ - 00d335b: Show SAR prices and the currency picker with the official Saudi riyal sign, rendered from a small Coras font so it displays on devices whose fonts lack it
12
+ - Updated dependencies [00d335b]
13
+ - @coras-io/brand-tokens@0.6.1
14
+
15
+ ## 0.6.12
16
+
17
+ ### Patch Changes
18
+
19
+ - 7b452be: Centre the nav search clear icon in the field and show it in the muted text colour
20
+
3
21
  ## 0.6.11
4
22
 
5
23
  ### Patch Changes
@@ -13,7 +13,7 @@ export default css `
13
13
  border-radius: 0;
14
14
  padding: 20px 30px;
15
15
  box-shadow: var(--coras-shadow-strong);
16
- border-left: 2px solid var(--coras-color-error);
16
+ border-inline-start: 2px solid var(--coras-color-error);
17
17
  background-color: var(--coras-color-error-background);
18
18
  display: flex;
19
19
  align-items: flex-start;
@@ -94,7 +94,7 @@ export default css `
94
94
 
95
95
  :host([variant="success"]) {
96
96
  .container {
97
- border-left-color: var(--coras-color-success);
97
+ border-inline-start-color: var(--coras-color-success);
98
98
  background-color: var(--coras-color-success-background);
99
99
 
100
100
  .icon {
@@ -107,7 +107,7 @@ export default css `
107
107
 
108
108
  :host([variant="warning"]) {
109
109
  .container {
110
- border-left-color: var(--coras-color-warning);
110
+ border-inline-start-color: var(--coras-color-warning);
111
111
  background-color: var(--coras-color-warning-background);
112
112
 
113
113
  .icon {
@@ -120,7 +120,7 @@ export default css `
120
120
 
121
121
  :host([variant="error"]) {
122
122
  .container {
123
- border-left-color: var(--coras-color-error);
123
+ border-inline-start-color: var(--coras-color-error);
124
124
  background-color: var(--coras-color-error-background);
125
125
 
126
126
  .icon {
@@ -74,7 +74,7 @@ export default css `
74
74
  gap: 0.5rem;
75
75
  align-items: baseline;
76
76
  white-space: nowrap;
77
- text-align: right;
77
+ text-align: end;
78
78
  }
79
79
  }
80
80
  }
@@ -83,7 +83,7 @@ export default css `
83
83
  font-weight: 400;
84
84
  font-size: 0.875rem;
85
85
  line-height: 1.25rem;
86
- margin-left: 0.3125rem;
86
+ margin-inline-start: 0.3125rem;
87
87
  }
88
88
  }
89
89
 
@@ -131,7 +131,7 @@ export default css `
131
131
  font-weight: var(--basket-total-font-weight);
132
132
  line-height: 22px;
133
133
  letter-spacing: 0.2px;
134
- text-align: left;
134
+ text-align: start;
135
135
  justify-self: start;
136
136
  }
137
137
 
@@ -55,7 +55,7 @@ export default css `
55
55
  width: 70px;
56
56
  height: 70px;
57
57
  border-radius: var(--basket-item-image-border-radius);
58
- margin-right: 10px;
58
+ margin-inline-end: 10px;
59
59
  }
60
60
 
61
61
  .ticket-details {
@@ -108,7 +108,7 @@ export default css `
108
108
 
109
109
  .ticket-types {
110
110
  margin: 10px 0;
111
- padding-left: 80px;
111
+ padding-inline-start: 80px;
112
112
  }
113
113
 
114
114
  .ticket-type {
@@ -12,6 +12,7 @@ import "./better-carousel-item/better-carousel-item.js";
12
12
  import "../button/button.js";
13
13
  import "../icon/icon.js";
14
14
  import styles from "./better-carousel.styles.js";
15
+ import { inlineDirectionSign } from "../../core/utils/direction.js";
15
16
  /**
16
17
  * @element coras-better-carousel
17
18
  * @slot - Default slot for carousel items
@@ -60,7 +61,9 @@ let CorasBetterCarousel = class CorasBetterCarousel extends LitElement {
60
61
  * still get the last `scroll` event at the final position.
61
62
  */
62
63
  this.handleScroll = () => {
63
- this.currentScrollPosition = this.carouselContent.scrollLeft;
64
+ this.currentScrollPosition =
65
+ this.carouselContent.scrollLeft *
66
+ inlineDirectionSign(this.carouselContent);
64
67
  if (!this.multiItem) {
65
68
  // For single-item mode, update the current item index based on scroll position
66
69
  const itemWidth = this.carouselContent.clientWidth;
@@ -140,9 +143,10 @@ let CorasBetterCarousel = class CorasBetterCarousel extends LitElement {
140
143
  // For multi-item mode, check if there's more content to scroll to
141
144
  const scrollWidth = this.carouselContent.scrollWidth;
142
145
  const clientWidth = this.carouselContent.clientWidth;
143
- const scrollLeft = this.carouselContent.scrollLeft;
144
- this.showPrevButton = scrollLeft > 0;
145
- this.showNextButton = scrollLeft + clientWidth < scrollWidth - 1; // -1 to account for rounding errors
146
+ const scrollStart = this.carouselContent.scrollLeft *
147
+ inlineDirectionSign(this.carouselContent);
148
+ this.showPrevButton = scrollStart > 0;
149
+ this.showNextButton = scrollStart + clientWidth < scrollWidth - 1; // -1 to account for rounding errors
146
150
  }
147
151
  else {
148
152
  // For single-item mode, check the current item index
@@ -186,7 +190,7 @@ let CorasBetterCarousel = class CorasBetterCarousel extends LitElement {
186
190
  // Scroll by exactly one item width to ensure CSS snap works correctly
187
191
  const scrollAmount = this.itemWidth;
188
192
  this.carouselContent.scrollBy({
189
- left: -scrollAmount,
193
+ left: -scrollAmount * inlineDirectionSign(this.carouselContent),
190
194
  behavior: "smooth",
191
195
  });
192
196
  }
@@ -199,7 +203,7 @@ let CorasBetterCarousel = class CorasBetterCarousel extends LitElement {
199
203
  // Scroll by exactly one item width to ensure CSS snap works correctly
200
204
  const scrollAmount = this.itemWidth;
201
205
  this.carouselContent.scrollBy({
202
- left: scrollAmount,
206
+ left: scrollAmount * inlineDirectionSign(this.carouselContent),
203
207
  behavior: "smooth",
204
208
  });
205
209
  }
@@ -215,7 +219,7 @@ let CorasBetterCarousel = class CorasBetterCarousel extends LitElement {
215
219
  // For single-item mode, each item is 100% of the container width
216
220
  const scrollPosition = index * this.carouselContent.clientWidth;
217
221
  this.carouselContent.scrollTo({
218
- left: scrollPosition,
222
+ left: scrollPosition * inlineDirectionSign(this.carouselContent),
219
223
  behavior,
220
224
  });
221
225
  }
@@ -94,13 +94,13 @@ export default css `
94
94
  position: absolute;
95
95
 
96
96
  &#btn-left {
97
- left: 10px;
97
+ inset-inline-start: 10px;
98
98
  transform: translateY(-50%);
99
99
  order: initial;
100
100
  }
101
101
 
102
102
  &#btn-right {
103
- right: 10px;
103
+ inset-inline-end: 10px;
104
104
  transform: translateY(-50%);
105
105
  order: initial;
106
106
  }
@@ -140,21 +140,31 @@ export default css `
140
140
  position: absolute;
141
141
 
142
142
  &#btn-left {
143
- left: 0;
143
+ inset-inline-start: 0;
144
144
  transform: translate(-50%, -50%);
145
145
  }
146
146
 
147
147
  &#btn-right {
148
- right: 0;
148
+ inset-inline-end: 0;
149
149
  transform: translate(50%, -50%);
150
150
  }
151
151
  }
152
152
 
153
+ :host(:dir(rtl)) .mode-multi-item .nav-btn {
154
+ &#btn-left {
155
+ transform: translate(50%, -50%);
156
+ }
157
+
158
+ &#btn-right {
159
+ transform: translate(-50%, -50%);
160
+ }
161
+ }
162
+
153
163
  /* Action slot container positioning */
154
164
  .action-slot-container {
155
165
  position: absolute;
156
166
  bottom: 1rem;
157
- right: 1rem;
167
+ inset-inline-end: 1rem;
158
168
  /*z-index: 10; !* Ensure it's above carousel content *!*/
159
169
  pointer-events: auto; /* Make sure it's clickable */
160
170
  }
@@ -53,4 +53,8 @@ export default css `
53
53
  background-position: center;
54
54
  flex-shrink: 0;
55
55
  }
56
+
57
+ :host(:not(:last-child):dir(rtl))::after {
58
+ transform: scaleX(-1);
59
+ }
56
60
  `;
@@ -142,7 +142,7 @@ export default css `
142
142
  gap: 0.5em;
143
143
 
144
144
  ::slotted([slot="suffix"]) {
145
- margin-left: auto;
145
+ margin-inline-start: auto;
146
146
  }
147
147
  }
148
148
 
@@ -8,6 +8,7 @@ import { html } from "lit";
8
8
  import { property, state } from "lit/decorators.js";
9
9
  import { classMap } from "lit/directives/class-map.js";
10
10
  import { memo } from "../../../core/utils/function.js";
11
+ import { getFirstDayOfWeek } from "../../../core/utils/locale.js";
11
12
  import { title } from "../../../core/utils/text.js";
12
13
  import { addDays, addMonths, differenceInCalendarMonths, differenceInDays, endOfMonth, endOfWeek, format, formatISO, isBefore, isSameMonth, isWithinInterval, parse, parseISO, startOfMonth, startOfToday, startOfWeek, } from "date-fns";
13
14
  import { getCalendarLocale, weekdayNames } from "../../../core/i18n/date.js";
@@ -26,12 +27,10 @@ export const BaseCalendarMixin = (superClass) => {
26
27
  this.availableDays = undefined;
27
28
  this.range = false;
28
29
  this.hover = undefined;
29
- this.generateMonthDays = memo((month) => {
30
+ this.monthDays = memo((month, weekStartsOn) => {
30
31
  const days = [];
31
- const start = startOfWeek(startOfMonth(month), {
32
- weekStartsOn: 1,
33
- });
34
- const end = endOfWeek(endOfMonth(month), { weekStartsOn: 1 });
32
+ const start = startOfWeek(startOfMonth(month), { weekStartsOn });
33
+ const end = endOfWeek(endOfMonth(month), { weekStartsOn });
35
34
  const daysInMonth = differenceInDays(end, start) + 1;
36
35
  for (let day = 0; day < daysInMonth; day++) {
37
36
  days.push(addDays(start, day));
@@ -155,6 +154,9 @@ export const BaseCalendarMixin = (superClass) => {
155
154
  superClass.styles ?? [],
156
155
  styles,
157
156
  ]; }
157
+ generateMonthDays(month) {
158
+ return this.monthDays(month, getFirstDayOfWeek(this.locale));
159
+ }
158
160
  dispatchDaySelected(date) {
159
161
  fireInternalEvent(this, "date-selected", {
160
162
  date: formatISO(date, { representation: "date" }),
@@ -25,7 +25,7 @@ let CorasMonthCalendar = class CorasMonthCalendar extends BaseCalendarLitElement
25
25
  ]; }
26
26
  willUpdate(changed) {
27
27
  super.willUpdate(changed);
28
- if (changed.has("selectedMonth")) {
28
+ if (changed.has("selectedMonth") || changed.has("locale")) {
29
29
  this.selectedMonthDays = this.generateMonthDays(parse(this.selectedMonth, "yyyy-MM", new Date()));
30
30
  }
31
31
  }
@@ -19,7 +19,9 @@ export class CorasMultiMonthCalendar extends BaseCalendarLitElement {
19
19
  ]; }
20
20
  willUpdate(changed) {
21
21
  super.willUpdate(changed);
22
- if (!changed.has("minDate") && !changed.has("maxDate")) {
22
+ if (!changed.has("minDate") &&
23
+ !changed.has("maxDate") &&
24
+ !changed.has("locale")) {
23
25
  return;
24
26
  }
25
27
  const eachMonth = eachMonthOfInterval({
@@ -11,6 +11,7 @@ import { classMap } from "lit/directives/class-map.js";
11
11
  import "../button/button.js";
12
12
  import "../icon/icon.js";
13
13
  import styles from "./carousel.styles.js";
14
+ import { inlineDirectionSign } from "../../core/utils/direction.js";
14
15
  const OFFSET = 1;
15
16
  let CorasCarousel = class CorasCarousel extends LitElement {
16
17
  constructor() {
@@ -42,10 +43,13 @@ let CorasCarousel = class CorasCarousel extends LitElement {
42
43
  }
43
44
  handleScroll(event) {
44
45
  event.preventDefault();
45
- this.currentScrollPosition = event.target?.scrollLeft;
46
+ const carousel = event.target;
47
+ this.currentScrollPosition =
48
+ carousel.scrollLeft * inlineDirectionSign(carousel);
46
49
  }
47
50
  handleScrollBtnClick(value) {
48
- this.carouselDiv.scrollLeft += value;
51
+ this.carouselDiv.scrollLeft +=
52
+ value * inlineDirectionSign(this.carouselDiv);
49
53
  }
50
54
  renderFooter() {
51
55
  if (this.showImageNumber) {
@@ -3,6 +3,16 @@ import component from "../../styles/defaults/component.js";
3
3
  export default css `
4
4
  ${component}
5
5
 
6
+ :host(:dir(rtl)) .carousel-wrapper .nav-btn {
7
+ &#btn-left {
8
+ transform: translate(50%, -50%);
9
+ }
10
+
11
+ &#btn-right {
12
+ transform: translate(-50%, -50%);
13
+ }
14
+ }
15
+
6
16
  .carousel-wrapper {
7
17
  display: grid;
8
18
  position: relative;
@@ -48,12 +58,12 @@ export default css `
48
58
  }
49
59
 
50
60
  &#btn-left {
51
- left: 0;
61
+ inset-inline-start: 0;
52
62
  transform: translate(-50%, -50%);
53
63
  }
54
64
 
55
65
  &#btn-right {
56
- right: 0;
66
+ inset-inline-end: 0;
57
67
  transform: translate(50%, -50%);
58
68
  }
59
69
  }
@@ -19,7 +19,7 @@ export default css `
19
19
  color: var(--checkbox-group-category-option-color);
20
20
 
21
21
  &.padded {
22
- padding-left: 1.375rem;
22
+ padding-inline-start: 1.375rem;
23
23
  }
24
24
  }
25
25
 
@@ -33,7 +33,7 @@ export default css `
33
33
  flex-direction: column;
34
34
 
35
35
  margin-top: 1rem;
36
- padding-left: 1.375rem;
36
+ padding-inline-start: 1.375rem;
37
37
  font-weight: var(--checkbox-group-option-font-weight);
38
38
  }
39
39
  }
@@ -116,6 +116,10 @@ export default css `
116
116
  outline-offset: 2px;
117
117
  }
118
118
 
119
+ .back-button:dir(rtl) svg {
120
+ transform: scaleX(-1);
121
+ }
122
+
119
123
  .header-content {
120
124
  flex: 1;
121
125
  min-width: 0;
@@ -44,7 +44,7 @@ export default css `
44
44
  box-shadow: 0 0 0 1px color-mix(in srgb, black, transparent 90%);
45
45
  overflow: hidden;
46
46
  pointer-events: all;
47
- animation: slideOutRight 0.4s both;
47
+ animation: slideOut 0.4s both;
48
48
  top: 0;
49
49
  inset-inline-end: 0;
50
50
  bottom: auto;
@@ -107,7 +107,7 @@ export default css `
107
107
 
108
108
  &.open {
109
109
  .panel {
110
- animation: slideInRight 0.4s both;
110
+ animation: slideIn 0.4s both;
111
111
  }
112
112
  }
113
113
 
@@ -124,9 +124,17 @@ export default css `
124
124
  }
125
125
  }
126
126
 
127
- @keyframes slideInRight {
127
+ :host {
128
+ --drawer-offscreen-x: 100%;
129
+ }
130
+
131
+ :host(:dir(rtl)) {
132
+ --drawer-offscreen-x: -100%;
133
+ }
134
+
135
+ @keyframes slideIn {
128
136
  from {
129
- transform: translate3d(100%, 0, 0);
137
+ transform: translate3d(var(--drawer-offscreen-x), 0, 0);
130
138
  visibility: visible;
131
139
  }
132
140
 
@@ -135,14 +143,14 @@ export default css `
135
143
  }
136
144
  }
137
145
 
138
- @keyframes slideOutRight {
146
+ @keyframes slideOut {
139
147
  from {
140
148
  transform: translate3d(0, 0, 0);
141
149
  }
142
150
 
143
151
  to {
144
152
  visibility: hidden;
145
- transform: translate3d(100%, 0, 0);
153
+ transform: translate3d(var(--drawer-offscreen-x), 0, 0);
146
154
  }
147
155
  }
148
156
  `;
@@ -22,7 +22,8 @@ export default css `
22
22
  }
23
23
 
24
24
  .container {
25
- padding: 0.25rem 1rem 2rem 1.625rem;
25
+ padding-block: 0.25rem 2rem;
26
+ padding-inline: 1.625rem 1rem;
26
27
 
27
28
  .title {
28
29
  font-family: var(--coras-font-family-heading);
@@ -30,7 +31,7 @@ export default css `
30
31
  font-weight: var(--filters-drawer-title-font-weight);
31
32
  line-height: 1.75rem;
32
33
 
33
- padding-left: 1.375rem;
34
+ padding-inline-start: 1.375rem;
34
35
  margin-bottom: 3rem;
35
36
  }
36
37
 
@@ -39,12 +40,13 @@ export default css `
39
40
  flex-direction: column;
40
41
  gap: 3rem;
41
42
 
42
- padding: 0 1rem 2rem 1.375rem;
43
+ padding-block: 0 2rem;
44
+ padding-inline: 1.375rem 1rem;
43
45
  }
44
46
 
45
47
  .categories {
46
48
  .custom-categories {
47
- padding-left: 1.375rem;
49
+ padding-inline-start: 1.375rem;
48
50
  }
49
51
  }
50
52
  }
@@ -21,6 +21,10 @@ export default css `
21
21
  cursor: pointer;
22
22
  }
23
23
 
24
+ :host([icon^="chevron-"]:dir(rtl)) svg {
25
+ transform: scaleX(-1);
26
+ }
27
+
24
28
  svg,
25
29
  div {
26
30
  display: block;
@@ -102,11 +102,11 @@ export default css `
102
102
  margin: 0;
103
103
 
104
104
  &.nav-btn-prev {
105
- left: 0.5rem;
105
+ inset-inline-start: 0.5rem;
106
106
  }
107
107
 
108
108
  &.nav-btn-next {
109
- right: 0.5rem;
109
+ inset-inline-end: 0.5rem;
110
110
  }
111
111
  }
112
112
 
@@ -126,6 +126,7 @@ let CorasInputField = class CorasInputField extends LitElement {
126
126
  <coras-icon
127
127
  assets-url="${this.assetsURL}"
128
128
  icon="close-circle"
129
+ size="small"
129
130
  label=${msg("Clear")}
130
131
  @click=${this._onClear}
131
132
  ></coras-icon>
@@ -24,8 +24,8 @@ export default css `
24
24
  --field-input-line-height: var(--coras-font-size-2xl);
25
25
  --field-input-color: var(--coras-color-text);
26
26
  --field-input-height: 3.2rem;
27
- --field-input-padding-left: 1rem;
28
- --field-input-padding-right: 1rem;
27
+ --field-input-padding-start: 1rem;
28
+ --field-input-padding-end: 1rem;
29
29
  --field-input-font-weight: inherit;
30
30
  --field-input-border-color: var(--coras-color-field-border);
31
31
  --field-input-border-radius: var(--coras-radius-field);
@@ -45,6 +45,7 @@ export default css `
45
45
  --text-field-icon-color-error: var(--coras-color-error);
46
46
 
47
47
  --field-prefix-icon-color: var(--coras-color-text);
48
+ --field-clear-icon-color: var(--coras-color-text-muted);
48
49
 
49
50
  display: block;
50
51
  width: 100%;
@@ -125,13 +126,13 @@ export default css `
125
126
  white-space: nowrap;
126
127
  justify-content: center;
127
128
  align-items: center;
128
- border-radius: var(--field-input-border-radius) 0 0
129
- var(--field-input-border-radius);
130
- padding-left: 1rem;
129
+ border-start-start-radius: var(--field-input-border-radius);
130
+ border-end-start-radius: var(--field-input-border-radius);
131
+ padding-inline-start: 1rem;
131
132
  overflow: hidden;
132
133
 
133
134
  &.divider {
134
- border-right: 1px solid var(--field-input-border-color);
135
+ border-inline-end: 1px solid var(--field-input-border-color);
135
136
  }
136
137
 
137
138
  ::slotted(coras-icon) {
@@ -144,13 +145,13 @@ export default css `
144
145
  white-space: nowrap;
145
146
  justify-content: center;
146
147
  align-items: center;
147
- border-radius: 0 var(--field-input-border-radius)
148
- var(--field-input-border-radius) 0;
149
- padding-right: 1rem;
148
+ border-start-end-radius: var(--field-input-border-radius);
149
+ border-end-end-radius: var(--field-input-border-radius);
150
+ padding-inline-end: 1rem;
150
151
  overflow: hidden;
151
152
 
152
153
  &.divider {
153
- border-left: 1px solid var(--field-input-border-color);
154
+ border-inline-start: 1px solid var(--field-input-border-color);
154
155
  }
155
156
  }
156
157
 
@@ -159,7 +160,7 @@ export default css `
159
160
  white-space: nowrap;
160
161
  justify-content: center;
161
162
  align-items: center;
162
- padding-right: 1rem;
163
+ padding-inline-end: 1rem;
163
164
 
164
165
  coras-icon {
165
166
  width: 1.3rem;
@@ -169,8 +170,8 @@ export default css `
169
170
  &.textarea {
170
171
  position: absolute;
171
172
  top: 1rem;
172
- right: 0;
173
- padding-right: 1rem;
173
+ inset-inline-end: 0;
174
+ padding-inline-end: 1rem;
174
175
  z-index: 1;
175
176
  align-items: flex-start;
176
177
  }
@@ -193,11 +194,10 @@ export default css `
193
194
  white-space: nowrap;
194
195
  justify-content: center;
195
196
  align-items: center;
196
- padding-right: 0.5rem;
197
+ padding-inline-end: 0.5rem;
197
198
 
198
199
  coras-icon {
199
- width: 1rem;
200
- height: 1rem;
200
+ fill: var(--field-clear-icon-color);
201
201
  }
202
202
  }
203
203
 
@@ -208,13 +208,14 @@ export default css `
208
208
  input,
209
209
  ::slotted(#input) {
210
210
  height: var(--field-input-height);
211
- padding-left: var(--field-input-padding-left);
212
- padding-right: var(--field-input-padding-right);
211
+ padding-inline-start: var(--field-input-padding-start);
212
+ padding-inline-end: var(--field-input-padding-end);
213
213
  }
214
214
 
215
215
  textarea {
216
216
  resize: vertical;
217
- padding: 1rem 3rem 1rem 1rem;
217
+ padding-block: 1rem;
218
+ padding-inline: 1rem 3rem;
218
219
  min-height: 4rem;
219
220
  }
220
221
 
@@ -30,7 +30,8 @@ export default css `
30
30
  font-size: var(--locations-results-popular-font-size);
31
31
  line-height: 20px;
32
32
  letter-spacing: 0.4px;
33
- padding: 0 0 0 10px;
33
+ padding-block: 0;
34
+ padding-inline: 10px 0;
34
35
  margin: 0;
35
36
  }
36
37
 
@@ -39,7 +39,7 @@ export default css `
39
39
  }
40
40
 
41
41
  .label {
42
- margin-left: 1.25rem;
42
+ margin-inline-start: 1.25rem;
43
43
  }
44
44
  }
45
45
 
@@ -88,6 +88,7 @@ export class CorasSeatsIO extends LitElement {
88
88
  value: price,
89
89
  locale: this.currencyLocale,
90
90
  currency: this.currency,
91
+ officialRiyalSign: false,
91
92
  }),
92
93
  };
93
94
  if (!this.chartData) {
@@ -34,8 +34,8 @@ export default css `
34
34
  box-shadow: var(--sport-option-shadow);
35
35
  width: 100%;
36
36
  border: 1px solid var(--sport-option-section-border-color);
37
- border-top-left-radius: var(--sport-option-section-border-radius);
38
- border-bottom-left-radius: var(--sport-option-section-border-radius);
37
+ border-start-start-radius: var(--sport-option-section-border-radius);
38
+ border-end-start-radius: var(--sport-option-section-border-radius);
39
39
  }
40
40
 
41
41
  .price {
@@ -46,13 +46,13 @@ export default css `
46
46
  justify-content: space-between;
47
47
  min-width: 14.25rem;
48
48
  border: 1px solid var(--sport-option-section-border-color);
49
- border-left: none;
50
- border-top-right-radius: var(--sport-option-section-border-radius);
51
- border-bottom-right-radius: var(--sport-option-section-border-radius);
49
+ border-inline-start: none;
50
+ border-start-end-radius: var(--sport-option-section-border-radius);
51
+ border-end-end-radius: var(--sport-option-section-border-radius);
52
52
  background-color: var(--coras-color-primary-tint);
53
53
 
54
54
  coras-button {
55
- margin-left: 1rem;
55
+ margin-inline-start: 1rem;
56
56
  display: flex;
57
57
  align-items: center;
58
58
  justify-content: center;