@dataloop-ai/components 0.20.248 → 0.20.250

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.248",
3
+ "version": "0.20.250",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -194,13 +194,18 @@ export default defineComponent({
194
194
  position: relative;
195
195
  display: flex;
196
196
  vertical-align: middle;
197
- font-size: var(--dl-font-size-body);
198
- line-height: 12px;
197
+ font-family: var(--dl-typography-body-body2-font-family);
198
+ font-size: var(--dl-typography-body-body2-font-size);
199
+ line-height: var(--dl-typography-body-body2-line-height);
200
+ font-weight: var(--dl-typography-body-body2-font-weight);
199
201
  border-radius: 2px !important;
200
202
  padding: var(--dl-chip-padding);
203
+ padding-top: 0;
204
+ padding-bottom: 0;
201
205
  outline: 0;
202
206
  min-width: 18px;
203
- min-height: 12px;
207
+ height: 18px;
208
+ align-items: center;
204
209
  max-width: var(--dl-chip-max-width);
205
210
  color: var(--dl-chip-text-color);
206
211
  background-color: var(--dl-chip-bg-color);
@@ -52,7 +52,7 @@
52
52
  >
53
53
  <div ref="select" :class="selectClasses">
54
54
  <div
55
- v-if="hasPrepend || searchable"
55
+ v-if="hasLeftAdornment"
56
56
  :class="[
57
57
  ...adornmentClasses,
58
58
  'adornment-container--pos-left'
@@ -444,6 +444,7 @@ export default defineComponent({
444
444
  withoutBorders: { type: Boolean, default: false },
445
445
  title: { type: String, default: '' },
446
446
  searchable: { type: Boolean, default: false },
447
+ showPrepend: { type: Boolean, default: true },
447
448
  customFilter: { type: Boolean, default: false },
448
449
  required: { type: Boolean, default: false },
449
450
  optional: { type: Boolean, default: false },
@@ -894,7 +895,7 @@ export default defineComponent({
894
895
  if (this.withoutBorders && this.hasPrepend) {
895
896
  classes.push('dl_select__select--without-border__with-prepend')
896
897
  }
897
- if (this.hasPrepend || this.searchable) {
898
+ if (this.hasLeftAdornment) {
898
899
  classes.push('dl_select__select--prepend')
899
900
  classes.push('dl_select__select--both-adornments')
900
901
  }
@@ -943,6 +944,9 @@ export default defineComponent({
943
944
  hasPrepend(): boolean {
944
945
  return !!this.$slots.prepend && !this.isSmall
945
946
  },
947
+ hasLeftAdornment(): boolean {
948
+ return this.showPrepend && (this.hasPrepend || this.searchable)
949
+ },
946
950
  chevronIconColor(): string {
947
951
  return `${this.disabled ? 'dell-gray-500' : null}`
948
952
  },