tide-design-system 2.2.11 → 2.2.12

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/package.json CHANGED
@@ -61,7 +61,7 @@
61
61
  "main": "dist/tide-design-system.cjs",
62
62
  "module": "dist/tide-design-system.esm.js",
63
63
  "types": "dist/tide-design-system.esm.d.ts",
64
- "version": "2.2.11",
64
+ "version": "2.2.12",
65
65
  "dependencies": {
66
66
  "@floating-ui/vue": "^1.1.6"
67
67
  }
@@ -93,7 +93,7 @@
93
93
 
94
94
  const measureDom = () => {
95
95
  if (containerRef.value === null) return;
96
- contentRightEdge.value = containerRef.value.scrollLeft + containerRef.value.clientWidth;
96
+ contentRightEdge.value = Math.round(containerRef.value.scrollLeft + containerRef.value.clientWidth);
97
97
  contentWidth.value = containerRef.value.scrollWidth;
98
98
  frameWidth.value = containerRef.value.clientWidth;
99
99
  hasOverflow.value = contentWidth.value > frameWidth.value;
@@ -200,7 +200,7 @@
200
200
  CSS.POSITION.RELATIVE,
201
201
  CSS.DISPLAY.FLEX,
202
202
  CSS.FLEX.DIRECTION.COLUMN,
203
- CSS.GAP.TWO,
203
+ CSS.GAP.ONE,
204
204
  CSS.WIDTH.MAX_FULL,
205
205
  ]"
206
206
  ref="carouselRef"
@@ -254,6 +254,7 @@
254
254
  <ul
255
255
  :class="[
256
256
  'tide-carousel-container',
257
+ props.bleed && 'bleed',
257
258
  CSS.DISPLAY.FLEX,
258
259
  CSS.GAP.ONE,
259
260
  CSS.LIST_BULLETS.OFF,
@@ -303,7 +304,7 @@
303
304
  </template>
304
305
 
305
306
  <style scoped>
306
- .tide-carousel-container {
307
+ .tide-carousel-container.bleed {
307
308
  transition: margin var(--tide-animate), padding var(--tide-animate);
308
309
  }
309
310
 
@@ -42,6 +42,7 @@
42
42
  CSS.FONT.ROLE.BODY_1,
43
43
  disabled ? ['disabled', CSS.POINTER_EVENTS.OFF] : CSS.CURSOR.POINTER,
44
44
  ]"
45
+ :data-track="props.dataTrack"
45
46
  >
46
47
  <input
47
48
  :checked="isChecked"
@@ -46,6 +46,7 @@
46
46
  <input
47
47
  :checked="checked"
48
48
  :class="[CSS.DISPLAY.NONE]"
49
+ :data-track="props.dataTrack"
49
50
  :id="props.inputId"
50
51
  name=""
51
52
  type="radio"
@@ -50,6 +50,14 @@
50
50
  });
51
51
  };
52
52
 
53
+ const handleBackdropClick = () => {
54
+ if (props.isDismissible) triggerNativeDialogClose();
55
+ };
56
+
57
+ const handleEscapeKeydown = (e: Event) => {
58
+ if (!props.isDismissible) e.preventDefault();
59
+ };
60
+
53
61
  watch(
54
62
  () => props.isOpen,
55
63
  (newValue) => {
@@ -76,8 +84,9 @@
76
84
  :class="['tide-modal', CSS.BG.INITIAL, CSS.HEIGHT.FULL, CSS.WIDTH.FULL, CSS.OVERFLOW.XY.HIDDEN]"
77
85
  ref="modalDialog"
78
86
  :style="{ '--modal-width': props.width }"
79
- @click.self="triggerNativeDialogClose"
87
+ @click.self="handleBackdropClick"
80
88
  @close="emit('close')"
89
+ @keydown.escape="handleEscapeKeydown"
81
90
  >
82
91
  <div
83
92
  :class="[