@dataloop-ai/components 0.17.33 → 0.17.35

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.33",
3
+ "version": "0.17.35",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -68,7 +68,7 @@ export default defineComponent({
68
68
  fullWidth: { type: Boolean, default: false },
69
69
  disabled: { type: Boolean, default: false },
70
70
  modelValue: { type: String, required: true },
71
- fontSize: { type: String, default: '12px' },
71
+ fontSize: { type: String, default: '18px' },
72
72
  gap: { type: String, default: '40px' }
73
73
  },
74
74
  emits: ['update:model-value'],
@@ -14,9 +14,10 @@
14
14
  <span>
15
15
  <dl-icon
16
16
  v-if="showTooltip"
17
- size="12px"
17
+ :size="iconSize"
18
18
  icon="icon-dl-info"
19
19
  class="info-icon"
20
+ color="dl-color-darker"
20
21
  />
21
22
  <dl-tooltip v-if="showTooltip === true">
22
23
  {{ tooltip }}
@@ -46,7 +47,7 @@ export default defineComponent({
46
47
  showTooltip: { type: Boolean, default: false },
47
48
  tooltip: { type: String, default: null },
48
49
  tabindex: { type: String, default: '0' },
49
- fontSize: { type: String, default: '12px' }
50
+ fontSize: { type: String, default: '18px' }
50
51
  },
51
52
  emits: ['click'],
52
53
  data() {
@@ -55,6 +56,10 @@ export default defineComponent({
55
56
  }
56
57
  },
57
58
  computed: {
59
+ iconSize(): string {
60
+ const fontSize = Number(this.fontSize.replace('px', ''))
61
+ return `${fontSize - 2 < 0 ? 0 : fontSize - 2}px`
62
+ },
58
63
  cssFontSize(): Record<string, string> {
59
64
  return {
60
65
  '--dl-tab-font-size': this.fontSize
@@ -316,6 +316,25 @@
316
316
  </template>
317
317
  </DlTable>
318
318
  </div>
319
+
320
+ <div>
321
+ <p>Test reactive cells</p>
322
+ first row:
323
+ <div class="row">
324
+ <dl-input
325
+ v-for="(value, key) in tableRows[0]"
326
+ :key="key"
327
+ v-model="tableRows[0][key]"
328
+ :title="key"
329
+ />
330
+ </div>
331
+
332
+ <DlTable
333
+ :rows="tableRows"
334
+ :columns="tableColumns"
335
+ title="Table Title"
336
+ />
337
+ </div>
319
338
  </div>
320
339
  </div>
321
340
  </template>
@@ -61,10 +61,12 @@
61
61
  </dl-tab-panel>
62
62
  </dl-tab-panels>
63
63
 
64
+ With smaller font 14px
64
65
  <dl-tabs
65
66
  v-model="selectedTab"
66
67
  :items="tabItems"
67
68
  style="margin-top: 100px; max-width: 60%"
69
+ font-size="14px"
68
70
  @update:model-value="handleModelValueUpdate"
69
71
  >
70
72
  <template #top-right="props">