@300codes/design-system 1.2.13 → 1.2.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@300codes/design-system",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/components",
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { ref, computed, nextTick, watch } from 'vue';
2
+ import { ref, computed, nextTick, watch, onMounted } from 'vue';
3
3
  import { useMediaQuery, onClickOutside } from '@vueuse/core';
4
4
  import BaseIcon from '../BaseIcon/BaseIcon.vue';
5
5
  import FlatIconButton from '../FlatIconButton/FlatIconButton.vue';
@@ -29,6 +29,11 @@ const props = withDefaults(defineProps<SelectInputProps>(), {
29
29
  const model = defineModel<string>({ required: true });
30
30
 
31
31
  const isOpen = ref(false);
32
+ const isMounted = ref(false);
33
+
34
+ onMounted(() => {
35
+ isMounted.value = true;
36
+ });
32
37
 
33
38
  const wrapperRef = ref<HTMLDivElement | null>(null);
34
39
  const nativeSelectRef = ref<HTMLSelectElement | null>(null);
@@ -243,7 +248,10 @@ watch(isMobile, () => {
243
248
  </li>
244
249
  </ul>
245
250
 
246
- <Teleport to="body">
251
+ <Teleport
252
+ to="body"
253
+ :disabled="!isMounted"
254
+ >
247
255
  <dialog
248
256
  v-if="isMobile && isOpen"
249
257
  ref="dialogRef"
@@ -36,6 +36,7 @@ const props = withDefaults(defineProps<TextInputProps>(), {
36
36
  placeholder: '',
37
37
  size: 'md',
38
38
  id: undefined,
39
+ invalid: undefined,
39
40
  iconLeft: undefined,
40
41
  iconRight: undefined,
41
42
  autocomplete: undefined,