@dataloop-ai/components 0.17.126 → 0.17.128

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.17.126",
3
+ "version": "0.17.128",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -24,6 +24,7 @@
24
24
  <dl-item-section
25
25
  v-if="startIcon"
26
26
  side
27
+ style="display: flex"
27
28
  >
28
29
  <dl-icon
29
30
  :icon="startIcon"
@@ -35,6 +36,7 @@
35
36
  <dl-item-section
36
37
  v-if="endIcon"
37
38
  side
39
+ style="display: flex"
38
40
  >
39
41
  <dl-icon
40
42
  :icon="endIcon"
@@ -2,7 +2,9 @@
2
2
  <div
3
3
  :id="uuid"
4
4
  class="dl-switch-wrapper"
5
- :style="`height: ${size}px; margin: ${margin}`"
5
+ :style="`height: ${size}px; margin: ${margin}; ${
6
+ fluid ? 'justify-content: space-between;' : ''
7
+ }`"
6
8
  >
7
9
  <label
8
10
  v-if="!!leftLabel"
@@ -102,7 +104,8 @@ export default defineComponent({
102
104
  value: { type: Any, default: null },
103
105
  falseValue: { type: Any, default: false },
104
106
  trueValue: { type: Any, default: true },
105
- tabindex: { type: String, default: '0' }
107
+ tabindex: { type: String, default: '0' },
108
+ fluid: { type: Boolean, default: false }
106
109
  },
107
110
  emits: ['update:model-value', 'toggle', 'click', 'change'],
108
111
  data() {
@@ -9,6 +9,18 @@
9
9
  />
10
10
  Switch with value not updating
11
11
  <dl-switch v-model="switchValue" />
12
+ Switch with left-label
13
+ <dl-switch
14
+ v-model="switchValue"
15
+ left-label="Left label"
16
+ />
17
+ <div style="width: 500px">
18
+ <dl-switch
19
+ v-model="switchValue"
20
+ left-label="Left label"
21
+ fluid
22
+ />
23
+ </div>
12
24
  </div>
13
25
  </template>
14
26