vanilla-vue-ui 0.0.14 → 0.0.16

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-vue-ui",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -0,0 +1,41 @@
1
+ // Replace vue3 with vue if you are using Storybook for Vue 2
2
+ import type { Meta, StoryObj } from '@storybook/vue3';
3
+
4
+ import WOptionsArea from './WOptionsArea.vue';
5
+
6
+ const meta: Meta<typeof WOptionsArea> = {
7
+ component: WOptionsArea,
8
+ };
9
+
10
+ export default meta;
11
+ type Story = StoryObj<typeof WOptionsArea>;
12
+
13
+ /*
14
+ *👇 Render functions are a framework specific feature to allow you control on how the component renders.
15
+ * See https://storybook.js.org/docs/api/csf
16
+ * to learn how to use render functions.
17
+ */
18
+ export const Primary: Story = {
19
+ render: (args: any) => ({
20
+ setup() {
21
+ return {
22
+ ...args
23
+ }
24
+ },
25
+ components: { WOptionsArea },
26
+ template: `
27
+ <WOptionsArea>
28
+ <label class="mr-2">
29
+ æ•°ć­—
30
+ <input id="p-generator-numbers-checkbox" type="checkbox">
31
+ </label>
32
+
33
+ <label>
34
+ èš˜ć·
35
+ <input id="p-generator-symbols-checkbox" type="checkbox">
36
+ </label>
37
+ </WOptionsArea>`,
38
+ }),
39
+ args: {
40
+ }
41
+ };
@@ -0,0 +1,24 @@
1
+ <script setup lang="ts">
2
+ import { defineProps, withDefaults } from 'vue'
3
+
4
+ const props = withDefaults(
5
+ defineProps<{
6
+ /** fieldset ăźă‚żă‚€ăƒˆăƒ« */
7
+ title?: string
8
+ }>(),
9
+ {
10
+ title: 'ă‚Șăƒ—ă‚·ăƒ§ăƒł', // ăƒ‡ăƒ•ă‚©ăƒ«ăƒˆć€€
11
+ }
12
+ )
13
+ </script>
14
+
15
+ <template>
16
+ <div>
17
+ <fieldset class="border-dashed border-2 border-gray-300 rounded-lg p-4">
18
+
19
+ <legend class="px-1 text-onSurface dark:text-onSurface-dark">{{ props.title }}</legend>
20
+
21
+ <slot />
22
+ </fieldset>
23
+ </div>
24
+ </template>