@dataloop-ai/components 0.20.16 → 0.20.17

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": "@dataloop-ai/components",
3
- "version": "0.20.16",
3
+ "version": "0.20.17",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -125,6 +125,7 @@ export default defineComponent({
125
125
  emits: ['update:model-value'],
126
126
  setup(props, { emit }) {
127
127
  const { padding, modelValue, type } = toRefs(props)
128
+ const show = ref(modelValue.value)
128
129
  const icon = computed(() => typeToIconMap[type.value as DlAlertType])
129
130
  const iconColor = computed(
130
131
  () => typeToIconColorMap[type.value as DlAlertType]
@@ -143,7 +144,7 @@ export default defineComponent({
143
144
  })
144
145
 
145
146
  watch(modelValue, (val) => {
146
- modelValue.value = val
147
+ show.value = val
147
148
  })
148
149
 
149
150
  watch(type, (val) => {
@@ -198,14 +199,14 @@ export default defineComponent({
198
199
  }
199
200
 
200
201
  function handleClose() {
201
- modelValue.value = false
202
+ show.value = false
202
203
  emit('update:model-value', false)
203
204
  }
204
205
 
205
206
  return {
206
207
  uuid: `dl-alert-${v4()}`,
207
208
  rootRef,
208
- show: modelValue,
209
+ show,
209
210
  icon,
210
211
  iconColor,
211
212
  rootStyle,
@@ -177,7 +177,7 @@
177
177
  :style="
178
178
  optionsCount > MAX_ITEMS_PER_LIST
179
179
  ? ''
180
- : `width: 100%; max-height: calc(${calculatedDropdownMaxHeight} - 20px); overflow-y: scroll;`
180
+ : `width: 100%; max-height: calc(${calculatedDropdownMaxHeight} - 20px); overflow-y: auto;`
181
181
  "
182
182
  >
183
183
  <dl-select-option
@@ -1245,9 +1245,7 @@ export default defineComponent({
1245
1245
  justify-content: center !important;
1246
1246
  align-items: center;
1247
1247
  color: var(--dl-color-medium);
1248
- transition-property:
1249
- transform,
1250
- -webkit-transform;
1248
+ transition-property: transform, -webkit-transform;
1251
1249
  transition-duration: 0.28s, 0.28s;
1252
1250
  transition-timing-function: ease, ease;
1253
1251
  transition-delay: 0s, 0s;