frappe-ui 1.0.0-beta.17 → 1.0.0-beta.18
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 +1 -1
- package/src/components/Autocomplete/Autocomplete.vue +2 -2
- package/src/components/Select/Select.vue +2 -2
- package/src/components/Select/utils.ts +1 -0
- package/src/components/TextEditor/components/MediaNodeView.vue +1 -1
- package/src/components/shared/selection/utils.ts +1 -1
package/package.json
CHANGED
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
>
|
|
119
119
|
<li
|
|
120
120
|
:class="[
|
|
121
|
-
'flex cursor-pointer items-center justify-between rounded px-2.5 py-1.5 text-base',
|
|
121
|
+
'flex cursor-pointer items-center justify-between rounded px-2.5 py-1.5 text-base transition-colors duration-100 ease-out',
|
|
122
122
|
{
|
|
123
|
-
'bg-surface-gray-
|
|
123
|
+
'bg-surface-alpha-gray-2': active,
|
|
124
124
|
'opacity-50': option.disabled,
|
|
125
125
|
},
|
|
126
126
|
]"
|
|
@@ -33,6 +33,7 @@ import PopoverPanel from '../shared/popover/PopoverPanel.vue'
|
|
|
33
33
|
import {
|
|
34
34
|
EMPTY_VALUE_PREFIX,
|
|
35
35
|
inputFontSizeClasses,
|
|
36
|
+
itemClasses,
|
|
36
37
|
itemRootSizeClasses,
|
|
37
38
|
toItemListSize,
|
|
38
39
|
triggerBaseClasses,
|
|
@@ -366,8 +367,7 @@ defineSlots<SelectSlots>()
|
|
|
366
367
|
:disabled="internalOption.option.disabled"
|
|
367
368
|
:value="internalOption.internalValue"
|
|
368
369
|
data-slot="item"
|
|
369
|
-
:class="itemRootClasses"
|
|
370
|
-
class="select-none rounded border-0 text-base text-ink-gray-9 data-[disabled]:text-ink-gray-4 data-[highlighted]:bg-surface-gray-2 data-[state=checked]:bg-surface-gray-3 data-[highlighted]:data-[state=checked]:bg-surface-gray-4"
|
|
370
|
+
:class="[itemClasses, itemRootClasses]"
|
|
371
371
|
>
|
|
372
372
|
<ItemListRow
|
|
373
373
|
:size="itemSize"
|
|
@@ -381,7 +381,7 @@ const wrapperClasses = (float: string) => [
|
|
|
381
381
|
</div>
|
|
382
382
|
<div v-else class="flex flex-col items-center justify-center gap-2 border rounded text-ink-gray-6 text-sm py-5 max-w-full" :class="{ 'border-none': selected }" :style="{ width: node.attrs.width + 'px', aspectRatio: node.attrs.width && node.attrs.height ? `${node.attrs.width} / ${node.attrs.height}` : undefined,}">
|
|
383
383
|
<div class="text-ink-gray-8 text-base">This {{ isVideo ? 'video' : 'image' }} hasn't yet been uploaded.</div>
|
|
384
|
-
<div v-if="node.attrs.error" class="text-sm text-ink-red-8">
|
|
384
|
+
<div v-if="node.attrs.error" class="text-sm text-ink-red-8">{{ node.attrs.error }}</div>
|
|
385
385
|
</div>
|
|
386
386
|
|
|
387
387
|
<input v-if="(node.attrs.alt || showCaption) && !node.attrs.error" v-model="caption"
|
|
@@ -76,7 +76,7 @@ export const triggerBaseClassesFocusWithin =
|
|
|
76
76
|
'relative inline-flex items-center gap-2 text-left text-ink-gray-7 outline-none transition-[background-color,border-color,box-shadow] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] focus-within:focus-ring data-[state=open]:focus-ring'
|
|
77
77
|
|
|
78
78
|
export const itemClasses =
|
|
79
|
-
'select-none rounded border-0 text-base text-ink-gray-9 transition-colors duration-100 ease-out data-[disabled]:text-ink-gray-4 data-[highlighted]:bg-surface-gray-2 data-[state=checked]:bg-surface-gray-3 data-[highlighted]:data-[state=checked]:bg-surface-gray-4'
|
|
79
|
+
'select-none rounded border-0 text-base text-ink-gray-9 transition-colors duration-100 ease-out data-[disabled]:text-ink-gray-4 data-[highlighted]:bg-surface-alpha-gray-2 data-[state=checked]:bg-surface-gray-3 data-[highlighted]:data-[state=checked]:bg-surface-gray-4'
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Case-insensitive substring match against an option's label and value.
|