frappe-ui 0.1.26 → 0.1.28

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": "frappe-ui",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="flex items-center space-x-2 text-base text-gray-600"
3
+ class="flex items-center space-x-2 text-sm text-gray-600"
4
4
  :class="alignmentMap[item.align]"
5
5
  >
6
6
  <slot name="prefix" v-bind="{ item }" />
@@ -34,11 +34,14 @@
34
34
  class="cursor-pointer duration-300"
35
35
  />
36
36
  <div
37
- v-for="column in list.columns"
37
+ v-for="(column, i) in list.columns"
38
38
  :key="column.key"
39
- :class="alignmentMap[column.align]"
39
+ :class="[
40
+ alignmentMap[column.align],
41
+ i == 0 ? 'text-gray-900' : 'text-gray-700',
42
+ ]"
40
43
  >
41
- <slot v-bind="{ column, item: row[column.key] }">
44
+ <slot v-bind="{ idx: i, column, item: row[column.key] }">
42
45
  <ListRowItem :item="row[column.key]" :align="column.align" />
43
46
  </slot>
44
47
  </div>
@@ -10,11 +10,13 @@
10
10
  <!-- Empty for alignment -->
11
11
  <span v-else></span>
12
12
 
13
- <span
14
- class="self-end text-base font-medium text-gray-500"
15
- v-if="props.hint"
16
- >{{ props.value }}%</span
17
- >
13
+ <span class="self-end" v-if="props.hint || $slots.hint">
14
+ <slot name="hint">
15
+ <span class="text-base font-medium text-gray-500">
16
+ {{ props.value }}%
17
+ </span>
18
+ </slot>
19
+ </span>
18
20
  </div>
19
21
 
20
22
  <div