@300codes/design-system 1.2.2 → 1.2.3
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
|
@@ -88,13 +88,23 @@ export const Vertical: Story = {
|
|
|
88
88
|
parameters: {
|
|
89
89
|
controls: { disable: true },
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
args: {
|
|
92
|
+
size: 'md',
|
|
93
|
+
items: [
|
|
94
|
+
{ label: 'Overview', value: 'overview', icon: 'house' },
|
|
95
|
+
{ label: 'Analytics', value: 'analytics', icon: 'chart-bar' },
|
|
96
|
+
{ label: 'Reports', value: 'reports', icon: 'file-text' },
|
|
97
|
+
{ label: 'Settings', value: 'settings', icon: 'gear' },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
render: (args: TabsListProps) => ({
|
|
92
101
|
components: { TabsList },
|
|
93
102
|
setup() {
|
|
94
103
|
const active = ref('overview');
|
|
95
|
-
return {
|
|
104
|
+
return { args, active };
|
|
96
105
|
},
|
|
97
|
-
template:
|
|
106
|
+
template:
|
|
107
|
+
'<div style="width: 200px"><TabsList v-bind="args" v-model="active" :vertical="true" /></div>',
|
|
98
108
|
}),
|
|
99
109
|
};
|
|
100
110
|
|
|
@@ -162,11 +162,15 @@ watch(model, () => {
|
|
|
162
162
|
.tabsList--vertical {
|
|
163
163
|
@apply md:flex-col;
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
.tabsList--vertical
|
|
165
|
+
|
|
166
|
+
.tabsList--vertical > li {
|
|
167
167
|
@apply md:w-full;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
.tabsList--vertical .tabsList__tab {
|
|
171
|
+
@apply md:w-full md:justify-between;
|
|
172
|
+
}
|
|
173
|
+
|
|
170
174
|
/* ── lg ── */
|
|
171
175
|
|
|
172
176
|
.tabsList--lg {
|