@dataloop-ai/components 0.20.258 → 0.20.259

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.258",
3
+ "version": "0.20.259",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -204,7 +204,7 @@ export default defineComponent({
204
204
  padding-bottom: 0;
205
205
  outline: 0;
206
206
  min-width: 18px;
207
- height: 20px;
207
+ min-height: 20px;
208
208
  align-items: center;
209
209
  max-width: var(--dl-chip-max-width);
210
210
  color: var(--dl-chip-text-color);
@@ -183,11 +183,7 @@
183
183
  v-else-if="showMenuList"
184
184
  class="select-list"
185
185
  :padding="false"
186
- :style="
187
- optionsCount > MAX_ITEMS_PER_LIST
188
- ? ''
189
- : `width: 100%; max-height: calc(${calculatedDropdownMaxHeight} - 20px); overflow-y: auto;`
190
- "
186
+ :style="dropdownListStyle"
191
187
  >
192
188
  <dl-select-option
193
189
  v-if="showAllItems"
@@ -218,7 +214,7 @@
218
214
  :virtual-scroll-item-size="28"
219
215
  :virtual-scroll-sticky-size-start="28"
220
216
  :virtual-scroll-sticky-size-end="20"
221
- :style="`width: 100%; max-height: calc(${calculatedDropdownMaxHeight} - 20px);`"
217
+ :style="virtualScrollStyle"
222
218
  >
223
219
  <dl-select-option
224
220
  :key="getKeyForOption(item)"
@@ -686,6 +682,25 @@ export default defineComponent({
686
682
  // :shrug: if it's not a known value, just return it
687
683
  return `calc(${this.dropdownMaxHeight} - 20px)`
688
684
  },
685
+ dropdownListStyle(): Record<string, string> {
686
+ if (this.optionsCount > this.MAX_ITEMS_PER_LIST) {
687
+ return {}
688
+ }
689
+ return {
690
+ ...this.baseDropdownStyle,
691
+ overflowY: 'auto'
692
+ }
693
+ },
694
+ virtualScrollStyle(): Record<string, string> {
695
+ return this.baseDropdownStyle
696
+ },
697
+ baseDropdownStyle(): Record<string, string> {
698
+ return {
699
+ width: '100%',
700
+ maxHeight: `calc(${this.calculatedDropdownMaxHeight} - 20px)`,
701
+ overflowX: 'hidden'
702
+ }
703
+ },
689
704
  computedMenuStyle(): string {
690
705
  let style = this.menuStyle ?? ''
691
706
  if (this.optionsCount > this.MAX_ITEMS_PER_LIST) {
@@ -1,3 +1,4 @@
1
+ 0
1
2
  <template>
2
3
  <div :id="uuid" :class="identifierClass" style="width: 100%">
3
4
  <div
@@ -440,7 +441,10 @@ export default defineComponent({
440
441
 
441
442
  .counter {
442
443
  color: var(--dl-color-lighter);
443
- font-size: 10px;
444
+ font-family: var(--dl-typography-body-body3-font-family);
445
+ font-size: var(--dl-typography-body-body3-font-size);
446
+ line-height: var(--dl-typography-body-body3-line-height);
447
+ font-weight: var(--dl-typography-body-body3-font-weight);
444
448
  }
445
449
  .expand-icon {
446
450
  display: flex !important;