@dataloop-ai/components 0.17.4 → 0.18.0

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.4",
3
+ "version": "0.18.0",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -229,7 +229,6 @@ export default defineComponent({
229
229
  const rangeStyles = computed(() => ({
230
230
  '--dl-track-width': 0.25 * parseInt(props.thumbSize) + 'px',
231
231
  '--text-color': getColor(props.textColor, 'dl-color-darker'),
232
- '--thumb-size': props.thumbSize,
233
232
  '--width': props.width,
234
233
  '--color': getColor(props.color, 'dl-color-secondary'),
235
234
  width: props.width
@@ -115,7 +115,7 @@
115
115
  disableDropdown === true
116
116
  "
117
117
  :disabled="disabled === true || disableMainButton === true"
118
- :style="[mainButtonStyle, cssVars]"
118
+ :style="mainButtonStyle"
119
119
  :no-wrap="props.noWrap"
120
120
  :tooltip="tooltip"
121
121
  :max-width="maxWidth"
@@ -316,14 +316,6 @@ export default defineComponent({
316
316
  }
317
317
  })
318
318
 
319
- const cssVars = computed(() => {
320
- return {
321
- '--justify-content': props.fluid
322
- ? 'space-between'
323
- : 'space-around'
324
- }
325
- })
326
-
327
319
  watch(
328
320
  () => props.modelValue,
329
321
  (val) => {
@@ -424,8 +416,7 @@ export default defineComponent({
424
416
  menuModel,
425
417
  props,
426
418
  setHighlightedIndex,
427
- handleSelectedItem,
428
- cssVars
419
+ handleSelectedItem
429
420
  }
430
421
  }
431
422
  })
@@ -476,7 +467,7 @@ export default defineComponent({
476
467
  &__title {
477
468
  display: flex;
478
469
  align-items: center;
479
- justify-content: var(--justify-content);
470
+ justify-content: space-around;
480
471
  text-align: center;
481
472
  padding: 0;
482
473
  flex: 10000 1 0%;
@@ -281,7 +281,6 @@ export default defineComponent({
281
281
  const rangeStyles = computed(() => ({
282
282
  '--text-color': getColor(props.textColor, 'dl-color-darker'),
283
283
  '--width': props.width,
284
- '--thumb-size': props.thumbSize,
285
284
  '--color': getColor(props.color, 'dl-color-secondary')
286
285
  }))
287
286
 
@@ -28,7 +28,6 @@
28
28
  :color="color"
29
29
  :readonly="readonly"
30
30
  :disabled="disabled"
31
- :thumb-size="thumbSize"
32
31
  :snap="snap"
33
32
  :tabindex="tabindex"
34
33
  :name="name"
@@ -83,7 +82,6 @@
83
82
  :step="step"
84
83
  :color="color"
85
84
  :readonly="readonly"
86
- :thumb-size="thumbSize"
87
85
  :disabled="disabled"
88
86
  :snap="snap"
89
87
  :name="name"
@@ -136,10 +134,6 @@ export default defineComponent({
136
134
  type: Boolean,
137
135
  default: false
138
136
  },
139
- thumbSize: {
140
- type: String,
141
- default: '10px'
142
- },
143
137
  min: {
144
138
  type: Number,
145
139
  default: 0
@@ -216,7 +210,6 @@ export default defineComponent({
216
210
  return {
217
211
  '--text-color': getColor(this.textColor, 'dl-color-darker'),
218
212
  '--width': this.width,
219
- '--thumb-size': parseInt(this.thumbSize) / 2 + 'px',
220
213
  '--color': getColor(this.color, 'dl-color-secondary')
221
214
  }
222
215
  }
@@ -70,8 +70,7 @@
70
70
  & .slider-bar-container {
71
71
  display: flex;
72
72
  align-items: center;
73
- width: calc(100% - var(--thumb-size));
74
- align-self: center;
73
+ width: 100%;
75
74
  }
76
75
 
77
76
  & .text {