@soft-stech/bootsman-ui-shadcn 2.0.1 → 2.0.2
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
@@ -54,7 +54,7 @@ const pageSizeString = computed({
|
|
54
54
|
<p class="text-muted-foreground text-sm">
|
55
55
|
{{ translations?.itemsPerPage || 'Items per page' }}
|
56
56
|
</p>
|
57
|
-
<BuiSelect v-model
|
57
|
+
<BuiSelect v-model="pageSizeString">
|
58
58
|
<BuiSelectTrigger class="mr-2 w-[70px]">
|
59
59
|
<BuiSelectValue :placeholder="pageSize.toString()" />
|
60
60
|
</BuiSelectTrigger>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<script setup lang="ts">
|
1
|
+
<script setup lang="ts" generic="T extends AcceptableValue = AcceptableValue">
|
2
2
|
import { FORM_READONLY_INJECTION_KEY } from '@/components/form'
|
3
|
-
import type { SelectRootEmits, SelectRootProps } from 'reka-ui'
|
3
|
+
import type { AcceptableValue, SelectRootEmits, SelectRootProps } from 'reka-ui'
|
4
4
|
import { SelectRoot, useForwardPropsEmits } from 'reka-ui'
|
5
5
|
import { inject, toRef } from 'vue'
|
6
6
|
|
7
|
-
const props = defineProps<SelectRootProps
|
8
|
-
const emits = defineEmits<SelectRootEmits
|
7
|
+
const props = defineProps<SelectRootProps<T>>()
|
8
|
+
const emits = defineEmits<SelectRootEmits<T>>()
|
9
9
|
|
10
10
|
const forwarded = useForwardPropsEmits(props, emits)
|
11
11
|
|
@@ -20,13 +20,17 @@ import {
|
|
20
20
|
BuiFormControl,
|
21
21
|
BuiFormMessage
|
22
22
|
} from '@/components/form'
|
23
|
+
import type { AcceptableValue, SelectRootProps } from 'reka-ui'
|
24
|
+
import type { DefineComponent } from 'vue'
|
25
|
+
|
26
|
+
type MySelectType = DefineComponent<SelectRootProps<AcceptableValue>>
|
23
27
|
|
24
28
|
const meta = {
|
25
|
-
component: BuiSelect,
|
29
|
+
component: BuiSelect as unknown as MySelectType,
|
26
30
|
tags: ['autodocs'],
|
27
31
|
argTypes: {},
|
28
32
|
args: {}
|
29
|
-
} satisfies Meta<
|
33
|
+
} satisfies Meta<MySelectType>
|
30
34
|
export default meta
|
31
35
|
|
32
36
|
type Story = StoryObj<typeof meta>
|