@polymarbot/nuxt-layer-shadcn-ui 0.3.9 → 0.4.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/components/ui/Accordion/index.stories.ts +43 -15
- package/app/components/ui/AdminLayout/index.stories.ts +6 -14
- package/app/components/ui/Alert/index.stories.ts +32 -2
- package/app/components/ui/AlertDialog/index.stories.ts +114 -5
- package/app/components/ui/AsyncDataTable/index.stories.ts +36 -2
- package/app/components/ui/Avatar/index.stories.ts +58 -4
- package/app/components/ui/Badge/index.stories.ts +48 -3
- package/app/components/ui/Breadcrumb/index.stories.ts +8 -19
- package/app/components/ui/Button/index.stories.ts +116 -7
- package/app/components/ui/ButtonGroup/index.stories.ts +63 -4
- package/app/components/ui/Card/index.stories.ts +40 -14
- package/app/components/ui/Checkbox/index.stories.ts +53 -3
- package/app/components/ui/CopyButton/index.stories.ts +77 -5
- package/app/components/ui/DataTable/index.stories.ts +184 -11
- package/app/components/ui/DatePicker/index.stories.ts +56 -7
- package/app/components/ui/DateRangePicker/index.stories.ts +40 -5
- package/app/components/ui/Divider/index.stories.ts +18 -15
- package/app/components/ui/Drawer/index.stories.ts +115 -16
- package/app/components/ui/Drawer/index.vue +27 -12
- package/app/components/ui/Dropdown/index.stories.ts +72 -54
- package/app/components/ui/Dropdown/index.vue +5 -8
- package/app/components/ui/Dropdown/types.ts +3 -8
- package/app/components/ui/FormItem/index.stories.ts +33 -45
- package/app/components/ui/Help/index.stories.ts +34 -2
- package/app/components/ui/Icon/index.stories.ts +41 -2
- package/app/components/ui/Input/index.stories.ts +73 -31
- package/app/components/ui/Input/index.vue +1 -0
- package/app/components/ui/InputCurrency/index.stories.ts +20 -65
- package/app/components/ui/InputNumber/index.stories.ts +31 -58
- package/app/components/ui/InputOtp/index.stories.ts +41 -9
- package/app/components/ui/InputPercent/index.stories.ts +3 -7
- package/app/components/ui/InputRange/index.stories.ts +51 -4
- package/app/components/ui/Loading/index.stories.ts +16 -1
- package/app/components/ui/Markdown/index.stories.ts +9 -0
- package/app/components/ui/Modal/index.stories.ts +133 -16
- package/app/components/ui/Modal/index.vue +27 -12
- package/app/components/ui/ModalContent/index.stories.ts +35 -11
- package/app/components/ui/PageCard/index.stories.ts +154 -56
- package/app/components/ui/Pagination/index.stories.ts +75 -41
- package/app/components/ui/Pagination/index.vue +4 -1
- package/app/components/ui/Popover/index.stories.ts +73 -27
- package/app/components/ui/Popover/index.vue +67 -4
- package/app/components/ui/Popover/types.ts +5 -2
- package/app/components/ui/Qrcode/index.stories.ts +32 -2
- package/app/components/ui/RadioCardGroup/index.stories.ts +45 -6
- package/app/components/ui/RadioGroup/index.stories.ts +64 -52
- package/app/components/ui/ScrollArea/index.stories.ts +21 -23
- package/app/components/ui/SearchSelect/index.stories.ts +73 -24
- package/app/components/ui/Select/index.stories.ts +121 -6
- package/app/components/ui/Select/index.vue +7 -6
- package/app/components/ui/Skeleton/index.stories.ts +34 -2
- package/app/components/ui/Slider/index.stories.ts +67 -4
- package/app/components/ui/Surface/index.stories.ts +86 -5
- package/app/components/ui/Surface/index.vue +115 -2
- package/app/components/ui/Surface/types.ts +2 -0
- package/app/components/ui/Switch/index.stories.ts +46 -0
- package/app/components/ui/Tabs/index.stories.ts +61 -64
- package/app/components/ui/Tag/index.stories.ts +45 -3
- package/app/components/ui/Textarea/index.stories.ts +61 -32
- package/app/components/ui/Toast/index.stories.ts +77 -3
- package/app/components/ui/Tooltip/index.stories.ts +60 -2
- package/app/components/ui/WebLink/index.stories.ts +53 -15
- package/package.json +2 -2
|
@@ -39,7 +39,18 @@ const noControls = { controls: { disable: true }} satisfies Story['parameters']
|
|
|
39
39
|
export const Default: Story = {}
|
|
40
40
|
|
|
41
41
|
export const ExternalLink: Story = {
|
|
42
|
-
parameters:
|
|
42
|
+
parameters: {
|
|
43
|
+
...noControls,
|
|
44
|
+
docs: {
|
|
45
|
+
source: {
|
|
46
|
+
code: `
|
|
47
|
+
<template>
|
|
48
|
+
<WebLink href="https://example.com">Visit Example.com</WebLink>
|
|
49
|
+
</template>
|
|
50
|
+
`.trim(),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
43
54
|
render: () => ({
|
|
44
55
|
components: { WebLink },
|
|
45
56
|
template: `
|
|
@@ -53,26 +64,36 @@ export const ExternalLink: Story = {
|
|
|
53
64
|
|
|
54
65
|
export const ExternalWithoutIcon: Story = {
|
|
55
66
|
parameters: noControls,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
`,
|
|
61
|
-
}),
|
|
67
|
+
args: {
|
|
68
|
+
href: 'https://example.com',
|
|
69
|
+
externalIcon: false,
|
|
70
|
+
},
|
|
62
71
|
}
|
|
63
72
|
|
|
64
73
|
export const WithExplicitTarget: Story = {
|
|
65
74
|
parameters: noControls,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
`,
|
|
71
|
-
}),
|
|
75
|
+
args: {
|
|
76
|
+
href: 'https://example.com',
|
|
77
|
+
target: '_self',
|
|
78
|
+
},
|
|
72
79
|
}
|
|
73
80
|
|
|
74
81
|
export const Unstyled: Story = {
|
|
75
|
-
parameters:
|
|
82
|
+
parameters: {
|
|
83
|
+
...noControls,
|
|
84
|
+
docs: {
|
|
85
|
+
source: {
|
|
86
|
+
code: `
|
|
87
|
+
<template>
|
|
88
|
+
<div class="flex flex-col gap-2">
|
|
89
|
+
<WebLink href="/settings" unstyled>Unstyled internal link (no color or underline)</WebLink>
|
|
90
|
+
<WebLink href="https://example.com" unstyled>Unstyled external link (icon still shows)</WebLink>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
`.trim(),
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
76
97
|
render: () => ({
|
|
77
98
|
components: { WebLink },
|
|
78
99
|
template: `
|
|
@@ -85,7 +106,24 @@ export const Unstyled: Story = {
|
|
|
85
106
|
}
|
|
86
107
|
|
|
87
108
|
export const InlineUsage: Story = {
|
|
88
|
-
parameters:
|
|
109
|
+
parameters: {
|
|
110
|
+
...noControls,
|
|
111
|
+
docs: {
|
|
112
|
+
source: {
|
|
113
|
+
code: `
|
|
114
|
+
<template>
|
|
115
|
+
<p class="text-sm">
|
|
116
|
+
Please read our
|
|
117
|
+
<WebLink href="https://example.com/terms">Terms of Service</WebLink>
|
|
118
|
+
and
|
|
119
|
+
<WebLink href="https://example.com/privacy">Privacy Policy</WebLink>
|
|
120
|
+
before continuing.
|
|
121
|
+
</p>
|
|
122
|
+
</template>
|
|
123
|
+
`.trim(),
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
89
127
|
render: () => ({
|
|
90
128
|
components: { WebLink },
|
|
91
129
|
template: `
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polymarbot/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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": "7002e8d3028a6ac324296d4657cb313d7ed888e7"
|
|
46
46
|
}
|