nuxt-ui-elements 0.1.35 → 0.1.37
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/module.json
CHANGED
|
@@ -130,7 +130,7 @@ const handleClose = () => {
|
|
|
130
130
|
v-bind="closeButtonProps"
|
|
131
131
|
data-slot="close"
|
|
132
132
|
:ui="{
|
|
133
|
-
base: 'text-
|
|
133
|
+
base: 'text-inverted hover:bg-black/10 active:bg-inverted/20'
|
|
134
134
|
}"
|
|
135
135
|
@click="handleClose" />
|
|
136
136
|
</div>
|
|
@@ -144,7 +144,7 @@ const handleClose = () => {
|
|
|
144
144
|
color="neutral"
|
|
145
145
|
variant="ghost"
|
|
146
146
|
:ui="{
|
|
147
|
-
base: 'text-
|
|
147
|
+
base: 'text-inverted hover:bg-black/10 active:bg-inverted/20'
|
|
148
148
|
}"
|
|
149
149
|
@click="dismiss" />
|
|
150
150
|
|
|
@@ -44,10 +44,12 @@ export interface ToggleGroupEmits<T extends ToggleGroupItem[] = ToggleGroupItem[
|
|
|
44
44
|
change: [event: Event];
|
|
45
45
|
}
|
|
46
46
|
export interface ToggleGroupSlots<T extends ToggleGroupItem[] = ToggleGroupItem[], I extends NestedItem<T> = NestedItem<T>> {
|
|
47
|
+
leading(): any;
|
|
47
48
|
default(props: {
|
|
48
49
|
item: I;
|
|
49
50
|
selected: boolean;
|
|
50
51
|
}): any;
|
|
52
|
+
trailing(): any;
|
|
51
53
|
}
|
|
52
54
|
declare const _default: typeof __VLS_export;
|
|
53
55
|
export default _default;
|
|
@@ -116,6 +116,7 @@ function onUpdate(value) {
|
|
|
116
116
|
data-slot="root"
|
|
117
117
|
:class="ui.root({ class: [propUi?.root] })"
|
|
118
118
|
@update:model-value="onUpdate">
|
|
119
|
+
<slot name="leading" />
|
|
119
120
|
<RekaToggleGroupItem
|
|
120
121
|
v-for="(item, index) in items"
|
|
121
122
|
:key="getKeyValue(item, index)"
|
|
@@ -126,5 +127,6 @@ function onUpdate(value) {
|
|
|
126
127
|
#="{ pressed }">
|
|
127
128
|
<slot v-if="item" :item="item" :selected="pressed" />
|
|
128
129
|
</RekaToggleGroupItem>
|
|
130
|
+
<slot name="trailing" />
|
|
129
131
|
</ToggleGroupRoot>
|
|
130
132
|
</template>
|
|
@@ -44,10 +44,12 @@ export interface ToggleGroupEmits<T extends ToggleGroupItem[] = ToggleGroupItem[
|
|
|
44
44
|
change: [event: Event];
|
|
45
45
|
}
|
|
46
46
|
export interface ToggleGroupSlots<T extends ToggleGroupItem[] = ToggleGroupItem[], I extends NestedItem<T> = NestedItem<T>> {
|
|
47
|
+
leading(): any;
|
|
47
48
|
default(props: {
|
|
48
49
|
item: I;
|
|
49
50
|
selected: boolean;
|
|
50
51
|
}): any;
|
|
52
|
+
trailing(): any;
|
|
51
53
|
}
|
|
52
54
|
declare const _default: typeof __VLS_export;
|
|
53
55
|
export default _default;
|
package/package.json
CHANGED