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/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.js +375 -367
- package/package.json +1 -1
- package/src/components/TideCarousel.vue +4 -3
- package/src/components/TideInputCheckbox.vue +1 -0
- package/src/components/TideInputRadio.vue +1 -0
- package/src/components/TideModal.vue +10 -1
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
|
|
@@ -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="
|
|
87
|
+
@click.self="handleBackdropClick"
|
|
80
88
|
@close="emit('close')"
|
|
89
|
+
@keydown.escape="handleEscapeKeydown"
|
|
81
90
|
>
|
|
82
91
|
<div
|
|
83
92
|
:class="[
|