@dataloop-ai/components 0.13.10 → 0.13.11

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.13.10",
3
+ "version": "0.13.11",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -12,11 +12,14 @@
12
12
  />
13
13
  <div
14
14
  class="dialog-wrapper"
15
- :style="{ maxWidth: Number(width) ? `${width}px` : width }"
15
+ :style="{
16
+ width: Number(width) ? `${width}px` : width,
17
+ height: Number(height) ? `${height}px` : height
18
+ }"
16
19
  :class="{
17
20
  'dialog-wrapper--fullscreen': fullscreen,
18
- 'dialog-wrapper--right': right,
19
- 'dialog-wrapper--left': left
21
+ 'dialog-wrapper--right': position === 'right',
22
+ 'dialog-wrapper--left': position === 'left'
20
23
  }"
21
24
  >
22
25
  <div
@@ -44,7 +47,7 @@
44
47
 
45
48
  <script lang="ts">
46
49
  import { v4 } from 'uuid'
47
- import { defineComponent } from 'vue-demi'
50
+ import { defineComponent, PropType } from 'vue-demi'
48
51
 
49
52
  export default defineComponent({
50
53
  name: 'DlDialogBox',
@@ -54,9 +57,12 @@ export default defineComponent({
54
57
  },
55
58
  props: {
56
59
  width: { type: [Number, String], default: 400 },
60
+ height: { type: [Number, String], default: 'fit-content' },
57
61
  fullscreen: Boolean,
58
- right: Boolean,
59
- left: Boolean,
62
+ position: {
63
+ type: String as PropType<'left' | 'right' | 'center'>,
64
+ default: 'center'
65
+ },
60
66
  modelValue: Boolean,
61
67
  volatile: { type: Boolean, default: false }
62
68
  },