@bjj/nuxt-layer-shadcn-ui 0.15.18 → 0.16.0
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/app/assets/styles/controlSize.stories.ts +3 -3
- package/app/assets/styles/tailwind-utilities.css +16 -3
- package/app/components/ui/AsyncDataTable/index.vue +3 -3
- package/app/components/ui/Button/index.stories.ts +7 -3
- package/app/components/ui/Button/types.ts +1 -1
- package/app/components/ui/Card/index.stories.ts +2 -2
- package/app/components/ui/CopyButton/index.stories.ts +1 -1
- package/app/components/ui/DatePicker/index.stories.ts +1 -1
- package/app/components/ui/DateRangePicker/index.stories.ts +1 -1
- package/app/components/ui/Dropdown/index.stories.ts +2 -2
- package/app/components/ui/InfiniteDataTable/index.vue +3 -3
- package/app/components/ui/Input/index.stories.ts +1 -1
- package/app/components/ui/InputCurrency/index.stories.ts +1 -1
- package/app/components/ui/InputNumber/index.stories.ts +1 -1
- package/app/components/ui/InputOtp/index.stories.ts +1 -1
- package/app/components/ui/InputPercent/index.stories.ts +1 -1
- package/app/components/ui/InputRange/index.stories.ts +1 -1
- package/app/components/ui/PageCard/index.stories.ts +4 -4
- package/app/components/ui/Pagination/index.vue +7 -5
- package/app/components/ui/Popover/index.stories.ts +2 -2
- package/app/components/ui/SearchSelect/index.stories.ts +1 -1
- package/app/components/ui/Select/index.stories.ts +1 -1
- package/app/components/ui/StaticDataTable/index.vue +2 -2
- package/app/components/ui/Textarea/index.stories.ts +1 -1
- package/app/types/control.ts +1 -1
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@ import InputNumber from '../../components/ui/InputNumber/index.vue'
|
|
|
7
7
|
import Select from '../../components/ui/Select/index.vue'
|
|
8
8
|
import Textarea from '../../components/ui/Textarea/index.vue'
|
|
9
9
|
|
|
10
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
10
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
11
11
|
|
|
12
12
|
const options = [
|
|
13
13
|
{ label: 'Nuxt', value: 'nuxt' },
|
|
@@ -84,7 +84,7 @@ export const InheritedFromAncestor: Story = {
|
|
|
84
84
|
source: {
|
|
85
85
|
code: `
|
|
86
86
|
<template>
|
|
87
|
-
<form data-control-size="
|
|
87
|
+
<form data-control-size="sm">
|
|
88
88
|
<Input v-model="name" />
|
|
89
89
|
<InputNumber v-model="count" />
|
|
90
90
|
<Select v-model="framework" :options="options" />
|
|
@@ -106,7 +106,7 @@ export const InheritedFromAncestor: Story = {
|
|
|
106
106
|
note: ref('Every control inside follows the form tier.'),
|
|
107
107
|
}),
|
|
108
108
|
template: `
|
|
109
|
-
<div data-control-size="
|
|
109
|
+
<div data-control-size="sm" class="grid max-w-sm gap-2">
|
|
110
110
|
<Input v-model="name" />
|
|
111
111
|
<InputNumber v-model="count" />
|
|
112
112
|
<Select v-model="framework" :options="options" />
|
|
@@ -33,8 +33,9 @@
|
|
|
33
33
|
* pre-existing look and applies when no ancestor sets a tier.
|
|
34
34
|
*
|
|
35
35
|
* tier height font edge px gap icon stepper px addon button button px button+icon px
|
|
36
|
-
* xs
|
|
37
|
-
* sm
|
|
36
|
+
* xs 24 12 6 4 12 4 16 8 6
|
|
37
|
+
* sm 28 12 8 4 14 4 20 10 8
|
|
38
|
+
* md 32 14 10 6 16 6 24 12 10
|
|
38
39
|
* default 36 14 12 8 16 12 24 16 12
|
|
39
40
|
* lg 40 14 16 8 16 14 28 24 16
|
|
40
41
|
*
|
|
@@ -66,6 +67,18 @@
|
|
|
66
67
|
--control-button-icon-px: --spacing(3);
|
|
67
68
|
}
|
|
68
69
|
[data-control-size='xs'] {
|
|
70
|
+
--control-height: --spacing(6);
|
|
71
|
+
--control-font-size: --theme(--text-xs);
|
|
72
|
+
--control-line-height: --theme(--text-xs--line-height);
|
|
73
|
+
--control-px: --spacing(1.5);
|
|
74
|
+
--control-gap: --spacing(1);
|
|
75
|
+
--control-icon: --spacing(3);
|
|
76
|
+
--control-stepper-px: --spacing(1);
|
|
77
|
+
--control-addon-button-size: --spacing(4);
|
|
78
|
+
--control-button-px: --spacing(2);
|
|
79
|
+
--control-button-icon-px: --spacing(1.5);
|
|
80
|
+
}
|
|
81
|
+
[data-control-size='sm'] {
|
|
69
82
|
--control-height: --spacing(7);
|
|
70
83
|
--control-font-size: --theme(--text-xs);
|
|
71
84
|
--control-line-height: --theme(--text-xs--line-height);
|
|
@@ -77,7 +90,7 @@
|
|
|
77
90
|
--control-button-px: --spacing(2.5);
|
|
78
91
|
--control-button-icon-px: --spacing(2);
|
|
79
92
|
}
|
|
80
|
-
[data-control-size='
|
|
93
|
+
[data-control-size='md'] {
|
|
81
94
|
--control-height: --spacing(8);
|
|
82
95
|
--control-font-size: --theme(--text-sm);
|
|
83
96
|
--control-line-height: --theme(--text-sm--line-height);
|
|
@@ -304,7 +304,7 @@ onMounted(() => {
|
|
|
304
304
|
>
|
|
305
305
|
<Button
|
|
306
306
|
:variant="batchActionsDisabled ? 'outline' : 'default'"
|
|
307
|
-
:size="isMobile ? '
|
|
307
|
+
:size="isMobile ? 'md' : 'default'"
|
|
308
308
|
:disabled="batchActionsDisabled"
|
|
309
309
|
>
|
|
310
310
|
{{ T('actions') }} ({{ selectedCount }})
|
|
@@ -372,7 +372,7 @@ onMounted(() => {
|
|
|
372
372
|
</span>
|
|
373
373
|
<Button
|
|
374
374
|
variant="outline"
|
|
375
|
-
size="
|
|
375
|
+
size="md"
|
|
376
376
|
@click="() => fetchData(undefined, true)"
|
|
377
377
|
>
|
|
378
378
|
{{ t('common.actions.retry') }}
|
|
@@ -400,7 +400,7 @@ onMounted(() => {
|
|
|
400
400
|
>
|
|
401
401
|
<Button
|
|
402
402
|
:variant="batchActionsDisabled ? 'outline' : 'default'"
|
|
403
|
-
:size="isMobile ? '
|
|
403
|
+
:size="isMobile ? 'md' : 'default'"
|
|
404
404
|
:disabled="batchActionsDisabled"
|
|
405
405
|
>
|
|
406
406
|
{{ T('actions') }} ({{ selectedCount }})
|
|
@@ -17,10 +17,12 @@ const variants = [
|
|
|
17
17
|
const sizes = [
|
|
18
18
|
'xs',
|
|
19
19
|
'sm',
|
|
20
|
+
'md',
|
|
20
21
|
'default',
|
|
21
22
|
'lg',
|
|
22
23
|
'icon-xs',
|
|
23
24
|
'icon-sm',
|
|
25
|
+
'icon-md',
|
|
24
26
|
'icon',
|
|
25
27
|
'icon-lg',
|
|
26
28
|
] as const satisfies readonly ButtonSize[]
|
|
@@ -114,10 +116,12 @@ export const Sizes: Story = {
|
|
|
114
116
|
<template>
|
|
115
117
|
<Button size="xs">xs</Button>
|
|
116
118
|
<Button size="sm">sm</Button>
|
|
119
|
+
<Button size="md">md</Button>
|
|
117
120
|
<Button size="default">default</Button>
|
|
118
121
|
<Button size="lg">lg</Button>
|
|
119
122
|
<Button size="icon-xs" icon="plus" />
|
|
120
123
|
<Button size="icon-sm" icon="plus" />
|
|
124
|
+
<Button size="icon-md" icon="plus" />
|
|
121
125
|
<Button size="icon" icon="plus" />
|
|
122
126
|
<Button size="icon-lg" icon="plus" />
|
|
123
127
|
</template>
|
|
@@ -313,9 +317,9 @@ export const InheritedHoverColor: Story = {
|
|
|
313
317
|
class="p-3 flex items-center gap-2"
|
|
314
318
|
>
|
|
315
319
|
<span class="mr-auto text-sm font-medium capitalize">{{ c }}</span>
|
|
316
|
-
<Button variant="outline" size="
|
|
317
|
-
<Button variant="ghost" size="
|
|
318
|
-
<Button variant="link" size="
|
|
320
|
+
<Button variant="outline" size="md">Outline</Button>
|
|
321
|
+
<Button variant="ghost" size="md">Ghost</Button>
|
|
322
|
+
<Button variant="link" size="md">Link</Button>
|
|
319
323
|
</Surface>
|
|
320
324
|
</div>
|
|
321
325
|
`,
|
|
@@ -8,7 +8,7 @@ export type ButtonVariant = ButtonVariants['variant']
|
|
|
8
8
|
* A control size tier for text buttons, or `icon-<tier>` for a square icon-only
|
|
9
9
|
* button (`icon` is the `default` tier). Heights match the inputs of the same tier.
|
|
10
10
|
*/
|
|
11
|
-
export type ButtonSize = ControlSize | 'icon-xs' | 'icon-sm' | 'icon' | 'icon-lg'
|
|
11
|
+
export type ButtonSize = ControlSize | 'icon-xs' | 'icon-sm' | 'icon-md' | 'icon' | 'icon-lg'
|
|
12
12
|
|
|
13
13
|
export interface ButtonProps {
|
|
14
14
|
variant?: ButtonVariant
|
|
@@ -40,7 +40,7 @@ export const CustomHeader: Story = {
|
|
|
40
40
|
<template #header>
|
|
41
41
|
<div class="flex items-center justify-between">
|
|
42
42
|
<span class="text-lg font-semibold">Custom Header</span>
|
|
43
|
-
<Button variant="ghost" size="
|
|
43
|
+
<Button variant="ghost" size="md">Action</Button>
|
|
44
44
|
</div>
|
|
45
45
|
</template>
|
|
46
46
|
<p>This card uses the header slot for a custom layout.</p>
|
|
@@ -57,7 +57,7 @@ export const CustomHeader: Story = {
|
|
|
57
57
|
<template #header>
|
|
58
58
|
<div class="flex items-center justify-between">
|
|
59
59
|
<span class="text-lg font-semibold">Custom Header</span>
|
|
60
|
-
<Button variant="ghost" size="
|
|
60
|
+
<Button variant="ghost" size="md">Action</Button>
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
<p>This card uses the header slot for a custom layout.</p>
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/vue3'
|
|
|
2
2
|
import CopyButton from './index.vue'
|
|
3
3
|
|
|
4
4
|
const variants = [ 'default', 'destructive', 'outline', 'secondary', 'ghost', 'link' ] as const
|
|
5
|
-
const sizes = [ 'sm', 'default', 'lg', 'icon-sm', 'icon', 'icon-lg' ] as const
|
|
5
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg', 'icon-xs', 'icon-sm', 'icon-md', 'icon', 'icon-lg' ] as const
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
8
|
title: 'UI/CopyButton',
|
|
@@ -5,7 +5,7 @@ import Button from '../Button/index.vue'
|
|
|
5
5
|
import Modal from '../Modal/index.vue'
|
|
6
6
|
import DatePicker from './index.vue'
|
|
7
7
|
|
|
8
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
8
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
9
9
|
|
|
10
10
|
const types: DatePickerType[] = [ 'date', 'month', 'year' ]
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/vue3'
|
|
|
2
2
|
import { useArgsModel } from '#storybook/argsModel'
|
|
3
3
|
import DateRangePicker from './index.vue'
|
|
4
4
|
|
|
5
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
5
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
8
|
title: 'UI/DateRangePicker',
|
|
@@ -280,7 +280,7 @@ export const PopupSlot: Story = {
|
|
|
280
280
|
<p class="text-sm text-muted-foreground">
|
|
281
281
|
Use the <code>popup</code> slot to render arbitrary content inside the menu.
|
|
282
282
|
</p>
|
|
283
|
-
<Button size="
|
|
283
|
+
<Button size="md" @click="hide">Close</Button>
|
|
284
284
|
</div>
|
|
285
285
|
</template>
|
|
286
286
|
</Dropdown>
|
|
@@ -300,7 +300,7 @@ export const PopupSlot: Story = {
|
|
|
300
300
|
<p class="text-sm text-muted-foreground">
|
|
301
301
|
Use the <code>popup</code> slot to render arbitrary content inside the menu.
|
|
302
302
|
</p>
|
|
303
|
-
<Button size="
|
|
303
|
+
<Button size="md" @click="hide">Close</Button>
|
|
304
304
|
</div>
|
|
305
305
|
</template>
|
|
306
306
|
</Dropdown>
|
|
@@ -292,7 +292,7 @@ onMounted(() => {
|
|
|
292
292
|
</span>
|
|
293
293
|
<Button
|
|
294
294
|
variant="ghost"
|
|
295
|
-
size="
|
|
295
|
+
size="md"
|
|
296
296
|
@click="loadMore"
|
|
297
297
|
>
|
|
298
298
|
{{ t('common.actions.retry') }}
|
|
@@ -327,7 +327,7 @@ onMounted(() => {
|
|
|
327
327
|
<Tooltip :text="T('scrollToTop')">
|
|
328
328
|
<Button
|
|
329
329
|
variant="ghost"
|
|
330
|
-
size="icon-
|
|
330
|
+
size="icon-md"
|
|
331
331
|
icon="arrow-up-to-line"
|
|
332
332
|
:disabled="loading || internalData.length === 0 || isAtTop"
|
|
333
333
|
@click="scrollToTop"
|
|
@@ -336,7 +336,7 @@ onMounted(() => {
|
|
|
336
336
|
<Tooltip :text="t('common.actions.refresh')">
|
|
337
337
|
<Button
|
|
338
338
|
variant="ghost"
|
|
339
|
-
size="icon-
|
|
339
|
+
size="icon-md"
|
|
340
340
|
icon="rotate-cw"
|
|
341
341
|
:disabled="loading"
|
|
342
342
|
@click="refresh"
|
|
@@ -4,7 +4,7 @@ import { useArgsModel } from '#storybook/argsModel'
|
|
|
4
4
|
import Icon from '../Icon/index.vue'
|
|
5
5
|
import Input from './index.vue'
|
|
6
6
|
|
|
7
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
7
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
10
|
title: 'UI/Input',
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/vue3'
|
|
|
2
2
|
import { useArgsModel } from '#storybook/argsModel'
|
|
3
3
|
import InputCurrency from './index.vue'
|
|
4
4
|
|
|
5
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
5
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
6
6
|
|
|
7
7
|
const currencyDisplays = [ 'symbol', 'narrowSymbol', 'code', 'name' ] as const
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ import { useArgsModel } from '#storybook/argsModel'
|
|
|
4
4
|
import InputNumber from './index.vue'
|
|
5
5
|
|
|
6
6
|
const aligns = [ 'left', 'center', 'right' ] as const
|
|
7
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
7
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
10
|
title: 'UI/InputNumber',
|
|
@@ -3,7 +3,7 @@ import EventLog from '#storybook/EventLog.vue'
|
|
|
3
3
|
import { useArgsModel } from '#storybook/argsModel'
|
|
4
4
|
import InputOtp from './index.vue'
|
|
5
5
|
|
|
6
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
6
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
7
7
|
|
|
8
8
|
const meta = {
|
|
9
9
|
title: 'UI/InputOtp',
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/vue3'
|
|
|
2
2
|
import { useArgsModel } from '#storybook/argsModel'
|
|
3
3
|
import InputPercent from './index.vue'
|
|
4
4
|
|
|
5
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
5
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
8
|
title: 'UI/InputPercent',
|
|
@@ -4,7 +4,7 @@ import { useArgsModel } from '#storybook/argsModel'
|
|
|
4
4
|
import InputCurrency from '../InputCurrency/index.vue'
|
|
5
5
|
import InputRange from './index.vue'
|
|
6
6
|
|
|
7
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
7
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
10
|
title: 'UI/InputRange',
|
|
@@ -124,8 +124,8 @@ export const WithActions: Story = {
|
|
|
124
124
|
<template>
|
|
125
125
|
<PageCard title="API Keys" class="max-w-2xl">
|
|
126
126
|
<template #actions>
|
|
127
|
-
<Button variant="outline" size="
|
|
128
|
-
<Button size="
|
|
127
|
+
<Button variant="outline" size="md">Export</Button>
|
|
128
|
+
<Button size="md">Create</Button>
|
|
129
129
|
</template>
|
|
130
130
|
<p>Action buttons rendered on the right side of the title.</p>
|
|
131
131
|
</PageCard>
|
|
@@ -139,8 +139,8 @@ export const WithActions: Story = {
|
|
|
139
139
|
template: `
|
|
140
140
|
<PageCard title="API Keys" class="max-w-2xl">
|
|
141
141
|
<template #actions>
|
|
142
|
-
<Button variant="outline" size="
|
|
143
|
-
<Button size="
|
|
142
|
+
<Button variant="outline" size="md">Export</Button>
|
|
143
|
+
<Button size="md">Create</Button>
|
|
144
144
|
</template>
|
|
145
145
|
<p>Action buttons rendered on the right side of the title.</p>
|
|
146
146
|
</PageCard>
|
|
@@ -33,8 +33,10 @@ const T = useTranslations('components.ui.Pagination')
|
|
|
33
33
|
const totalPages = computed(() => Math.ceil(props.total / props.pageSize) || 0)
|
|
34
34
|
const hasData = computed(() => props.total > 0)
|
|
35
35
|
|
|
36
|
+
// shadcn pagination items use the shadcn button scale; the simple-mode Buttons use the control scale.
|
|
36
37
|
const iconButtonSize = computed(() => props.size === 'sm' ? 'icon-sm' as const : 'icon' as const)
|
|
37
|
-
const
|
|
38
|
+
const simpleButtonSize = computed(() => props.size === 'sm' ? 'icon-md' as const : 'icon' as const)
|
|
39
|
+
const buttonSize = computed(() => props.size === 'sm' ? 'md' as const : 'default' as const)
|
|
38
40
|
|
|
39
41
|
const pageReport = computed(() => {
|
|
40
42
|
if (!hasData.value) return ''
|
|
@@ -77,7 +79,7 @@ const pageSizeMenuItems = computed<DropdownItem[]>(() =>
|
|
|
77
79
|
<template v-if="simple">
|
|
78
80
|
<Button
|
|
79
81
|
variant="ghost"
|
|
80
|
-
:size="
|
|
82
|
+
:size="simpleButtonSize"
|
|
81
83
|
:disabled="page <= 1"
|
|
82
84
|
@click="emit('update:page', 1)"
|
|
83
85
|
>
|
|
@@ -85,7 +87,7 @@ const pageSizeMenuItems = computed<DropdownItem[]>(() =>
|
|
|
85
87
|
</Button>
|
|
86
88
|
<Button
|
|
87
89
|
variant="ghost"
|
|
88
|
-
:size="
|
|
90
|
+
:size="simpleButtonSize"
|
|
89
91
|
:disabled="page <= 1"
|
|
90
92
|
@click="emit('update:page', page - 1)"
|
|
91
93
|
>
|
|
@@ -98,7 +100,7 @@ const pageSizeMenuItems = computed<DropdownItem[]>(() =>
|
|
|
98
100
|
</span>
|
|
99
101
|
<Button
|
|
100
102
|
variant="ghost"
|
|
101
|
-
:size="
|
|
103
|
+
:size="simpleButtonSize"
|
|
102
104
|
:disabled="page >= totalPages"
|
|
103
105
|
@click="emit('update:page', page + 1)"
|
|
104
106
|
>
|
|
@@ -106,7 +108,7 @@ const pageSizeMenuItems = computed<DropdownItem[]>(() =>
|
|
|
106
108
|
</Button>
|
|
107
109
|
<Button
|
|
108
110
|
variant="ghost"
|
|
109
|
-
:size="
|
|
111
|
+
:size="simpleButtonSize"
|
|
110
112
|
:disabled="page >= totalPages"
|
|
111
113
|
@click="emit('update:page', totalPages)"
|
|
112
114
|
>
|
|
@@ -95,7 +95,7 @@ export const WithForm: Story = {
|
|
|
95
95
|
<div class="space-y-3">
|
|
96
96
|
<h4 class="font-medium">Update Name</h4>
|
|
97
97
|
<Input placeholder="Enter new name" />
|
|
98
|
-
<Button size="
|
|
98
|
+
<Button size="md" class="w-full">Save</Button>
|
|
99
99
|
</div>
|
|
100
100
|
</Popover>
|
|
101
101
|
</template>
|
|
@@ -113,7 +113,7 @@ export const WithForm: Story = {
|
|
|
113
113
|
<div class="space-y-3">
|
|
114
114
|
<h4 class="font-medium">Update Name</h4>
|
|
115
115
|
<Input placeholder="Enter new name" />
|
|
116
|
-
<Button size="
|
|
116
|
+
<Button size="md" class="w-full">Save</Button>
|
|
117
117
|
</div>
|
|
118
118
|
</Popover>
|
|
119
119
|
`,
|
|
@@ -4,7 +4,7 @@ import { useArgsModel } from '#storybook/argsModel'
|
|
|
4
4
|
import type { SearchSelectLoadMethodParams, SearchSelectLoadMethodResult } from './types'
|
|
5
5
|
import SearchSelect from './index.vue'
|
|
6
6
|
|
|
7
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
7
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
8
8
|
|
|
9
9
|
// Mock data: 100 items for simulating server-side search
|
|
10
10
|
const allItems = Array.from({ length: 100 }, (_, i) => ({
|
|
@@ -3,7 +3,7 @@ import EventLog from '#storybook/EventLog.vue'
|
|
|
3
3
|
import { useArgsModel } from '#storybook/argsModel'
|
|
4
4
|
import Select from './index.vue'
|
|
5
5
|
|
|
6
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
6
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
7
7
|
|
|
8
8
|
const frameworks = [
|
|
9
9
|
{ label: 'React', value: 'react' },
|
|
@@ -172,7 +172,7 @@ function onSortOrderUpdate (value: number | null) {
|
|
|
172
172
|
>
|
|
173
173
|
<Button
|
|
174
174
|
:variant="batchActionsDisabled ? 'outline' : 'default'"
|
|
175
|
-
:size="isMobile ? '
|
|
175
|
+
:size="isMobile ? 'md' : 'default'"
|
|
176
176
|
:disabled="batchActionsDisabled"
|
|
177
177
|
>
|
|
178
178
|
{{ T('actions') }} ({{ selectedCount }})
|
|
@@ -239,7 +239,7 @@ function onSortOrderUpdate (value: number | null) {
|
|
|
239
239
|
>
|
|
240
240
|
<Button
|
|
241
241
|
:variant="batchActionsDisabled ? 'outline' : 'default'"
|
|
242
|
-
:size="isMobile ? '
|
|
242
|
+
:size="isMobile ? 'md' : 'default'"
|
|
243
243
|
:disabled="batchActionsDisabled"
|
|
244
244
|
>
|
|
245
245
|
{{ T('actions') }} ({{ selectedCount }})
|
|
@@ -3,7 +3,7 @@ import EventLog from '#storybook/EventLog.vue'
|
|
|
3
3
|
import { useArgsModel } from '#storybook/argsModel'
|
|
4
4
|
import Textarea from './index.vue'
|
|
5
5
|
|
|
6
|
-
const sizes = [ 'xs', 'sm', 'default', 'lg' ] as const
|
|
6
|
+
const sizes = [ 'xs', 'sm', 'md', 'default', 'lg' ] as const
|
|
7
7
|
|
|
8
8
|
const meta = {
|
|
9
9
|
title: 'UI/Textarea',
|
package/app/types/control.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Size tier shared by input-like components. The dimensions of each tier live in
|
|
3
3
|
* `assets/styles/tailwind-utilities.css` (`data-control-size`).
|
|
4
4
|
*/
|
|
5
|
-
export type ControlSize = 'xs' | 'sm' | 'default' | 'lg'
|
|
5
|
+
export type ControlSize = 'xs' | 'sm' | 'md' | 'default' | 'lg'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bjj/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Nuxt layer providing shadcn-vue based UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vue-i18n": "^11",
|
|
43
43
|
"vue-router": "^4 || ^5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "a4d32792ab79adc258207e940a1bdb76488de4d7"
|
|
46
46
|
}
|