nuxt-ui-elements 0.1.35 → 0.1.36

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements",
3
3
  "configKey": "uiElements",
4
- "version": "0.1.35",
4
+ "version": "0.1.36",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "A collection of beautiful, animated UI components for Nuxt applications",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/genu/nuxt-ui-elements.git",