fluency-v8-components 1.5.2 → 1.5.3
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/dist/fluency-v8-components.es.js +1 -1
- package/dist/fluency-v8-components.umd.js +69 -69
- package/dist/{index-DNQl8Suh.mjs → index-CiSJXa9Q.mjs} +5001 -4988
- package/dist/{index.es-9fhwVAdV.mjs → index.es-PoP0Se8l.mjs} +1 -1
- package/package.json +1 -1
- package/src/assets/main.css +19 -1
- package/src/components/common/CategoryCard.vue +2 -0
- package/src/components/common/ItemBox.vue +15 -2
- package/src/components/form/GreyInput.vue +1 -1
- package/src/components/form/GreyInputAutocomplete.vue +1 -1
- package/src/components/form/GreyInputGrow.vue +1 -1
package/package.json
CHANGED
package/src/assets/main.css
CHANGED
|
@@ -302,6 +302,10 @@
|
|
|
302
302
|
@apply text-slate-500 dark:text-slate-400
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
+
@utility std-placeholder {
|
|
306
|
+
@apply placeholder-gray-400 dark:placeholder-gray-500;
|
|
307
|
+
}
|
|
308
|
+
|
|
305
309
|
@utility icon-xs {
|
|
306
310
|
@apply w-3 h-3;
|
|
307
311
|
}
|
|
@@ -346,6 +350,20 @@
|
|
|
346
350
|
.status-neutral {
|
|
347
351
|
@apply text-slate-600 bg-slate-600/20 dark:text-slate-400 dark:bg-slate-400/10
|
|
348
352
|
}
|
|
353
|
+
|
|
354
|
+
.custom-scrollbar {
|
|
355
|
+
scrollbar-width: thin;
|
|
356
|
+
scrollbar-color: #e5e7eb transparent;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.custom-scrollbar::-webkit-scrollbar {
|
|
360
|
+
width: 6px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.custom-scrollbar::-webkit-scrollbar-thumb {
|
|
364
|
+
background-color: #e5e7eb;
|
|
365
|
+
border-radius: 10px;
|
|
366
|
+
}
|
|
349
367
|
}
|
|
350
368
|
|
|
351
369
|
@layer components {
|
|
@@ -429,7 +447,7 @@
|
|
|
429
447
|
}
|
|
430
448
|
|
|
431
449
|
.input-block {
|
|
432
|
-
@apply text-sm std-white-text bg-white dark:bg-neutral-700 block w-full rounded-md border-0 py-1.5 shadow-xs ring-1 ring-inset ring-gray-300 sm:leading-6 focus-within:ring-2 focus-within:ring-inset focus-within:std-blue-ring;
|
|
450
|
+
@apply text-sm std-white-text bg-white dark:bg-neutral-700 block w-full rounded-md border-0 py-1.5 shadow-xs ring-1 ring-inset ring-gray-300 sm:leading-6 focus-within:ring-2 focus-within:ring-inset focus-within:std-blue-ring std-placeholder;
|
|
433
451
|
}
|
|
434
452
|
.input-icon {
|
|
435
453
|
@apply absolute right-2 top-1/2 -translate-y-1/2 flex items-center justify-center;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
{{ category.name || category }}
|
|
8
8
|
<slot name="title" />
|
|
9
9
|
</h3>
|
|
10
|
+
<p class="text-xs font-light">{{ description }}</p>
|
|
10
11
|
</div>
|
|
11
12
|
<div class="flex mt-0 ml-4">
|
|
12
13
|
<slot name="header" />
|
|
@@ -24,5 +25,6 @@ const props = defineProps({
|
|
|
24
25
|
type: [Object, String],
|
|
25
26
|
required: true,
|
|
26
27
|
},
|
|
28
|
+
description: String,
|
|
27
29
|
});
|
|
28
30
|
</script>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{
|
|
11
11
|
'blue-box': !props.inUse && !props.selected && !props.disabled,
|
|
12
12
|
},
|
|
13
|
-
'box',
|
|
13
|
+
'box relative',
|
|
14
14
|
]"
|
|
15
15
|
:style="`min-width: ${minWidth}`"
|
|
16
16
|
@click="emits('view')"
|
|
@@ -22,10 +22,19 @@
|
|
|
22
22
|
<div class="text-xs font-light">{{ props.description }}</div>
|
|
23
23
|
<slot name="extra" />
|
|
24
24
|
</div>
|
|
25
|
+
<button
|
|
26
|
+
v-if="deleteButton"
|
|
27
|
+
class="absolute top-0 right-0 rounded-full std-btn-red -translate-y-1/2 translate-x-1/2 p-1"
|
|
28
|
+
@click.stop="emits('delete')"
|
|
29
|
+
>
|
|
30
|
+
<TrashIcon class="icon icon-gray" />
|
|
31
|
+
</button>
|
|
25
32
|
</div>
|
|
26
33
|
</template>
|
|
27
34
|
|
|
28
35
|
<script setup>
|
|
36
|
+
import { TrashIcon } from '@heroicons/vue/20/solid';
|
|
37
|
+
|
|
29
38
|
const props = defineProps({
|
|
30
39
|
inUse: Boolean,
|
|
31
40
|
selected: Boolean,
|
|
@@ -44,6 +53,10 @@ const props = defineProps({
|
|
|
44
53
|
type: Boolean,
|
|
45
54
|
default: false,
|
|
46
55
|
},
|
|
56
|
+
deleteButton: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
47
60
|
});
|
|
48
|
-
const emits = defineEmits(["view"]);
|
|
61
|
+
const emits = defineEmits(["view", "delete"]);
|
|
49
62
|
</script>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<input
|
|
9
9
|
:type="type"
|
|
10
10
|
:class="[
|
|
11
|
-
'flex-1 border-0 text-sm bg-transparent p-0.5 focus:ring-0 focus:outline-none',
|
|
11
|
+
'flex-1 border-0 text-sm bg-transparent p-0.5 focus:ring-0 focus:outline-none std-placeholder',
|
|
12
12
|
readonly ? 'disabled' : '',
|
|
13
13
|
]"
|
|
14
14
|
:value="$attrs.modelValue"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
>
|
|
8
8
|
<ComboboxInput
|
|
9
9
|
:class="[
|
|
10
|
-
'px-2 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0',
|
|
10
|
+
'px-2 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0 std-placeholder',
|
|
11
11
|
{ 'std-red-ring': error },
|
|
12
12
|
{ 'disabled': readonly },
|
|
13
13
|
]"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<textarea
|
|
7
7
|
ref="textarea"
|
|
8
8
|
:class="[
|
|
9
|
-
'py-2 px-3 w-full resize-none focus:outline-none border-0',
|
|
9
|
+
'py-2 px-3 w-full resize-none focus:outline-none border-0 std-placeholder custom-scrollbar',
|
|
10
10
|
readonly ? 'disabled' : '',
|
|
11
11
|
]"
|
|
12
12
|
:value="$attrs.modelValue || props.value"
|