@dolanske/vui 1.4.1 → 1.4.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.
Files changed (140) hide show
  1. package/package.json +1 -2
  2. package/src/App.vue +0 -103
  3. package/src/components/Accordion/Accordion.vue +0 -98
  4. package/src/components/Accordion/AccordionGroup.vue +0 -49
  5. package/src/components/Accordion/accordion.scss +0 -97
  6. package/src/components/Alert/Alert.vue +0 -59
  7. package/src/components/Alert/alert.scss +0 -162
  8. package/src/components/Avatar/Avatar.vue +0 -53
  9. package/src/components/Avatar/avatar.scss +0 -52
  10. package/src/components/Badge/Badge.vue +0 -21
  11. package/src/components/Badge/badge.scss +0 -210
  12. package/src/components/Breadcrumbs/BreadcrumbItem.vue +0 -26
  13. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -29
  14. package/src/components/Breadcrumbs/breadcrumbs.scss +0 -31
  15. package/src/components/Button/Button.vue +0 -86
  16. package/src/components/Button/button.scss +0 -292
  17. package/src/components/ButtonGroup/ButtonGroup.vue +0 -28
  18. package/src/components/ButtonGroup/button-group.scss +0 -51
  19. package/src/components/Calendar/Calendar.vue +0 -66
  20. package/src/components/Calendar/calendar.scss +0 -88
  21. package/src/components/Card/Card.vue +0 -48
  22. package/src/components/Card/card.scss +0 -55
  23. package/src/components/Checkbox/Checkbox.vue +0 -54
  24. package/src/components/Checkbox/checkbox.scss +0 -80
  25. package/src/components/CopyClipboard/CopyClipboard.vue +0 -98
  26. package/src/components/CopyClipboard/copy-clipboard.scss +0 -25
  27. package/src/components/Divider/Divider.vue +0 -38
  28. package/src/components/Divider/divider.scss +0 -37
  29. package/src/components/Drawer/Drawer.vue +0 -102
  30. package/src/components/Drawer/drawer.scss +0 -37
  31. package/src/components/Dropdown/Dropdown.vue +0 -120
  32. package/src/components/Dropdown/DropdownItem.vue +0 -33
  33. package/src/components/Dropdown/DropdownTitle.vue +0 -14
  34. package/src/components/Dropdown/dropdown-item.scss +0 -84
  35. package/src/components/Dropdown/dropdown.scss +0 -53
  36. package/src/components/Flex/Flex.vue +0 -113
  37. package/src/components/Grid/Grid.vue +0 -87
  38. package/src/components/Input/Color.vue +0 -26
  39. package/src/components/Input/Counter.vue +0 -66
  40. package/src/components/Input/Dropzone.vue +0 -65
  41. package/src/components/Input/File.vue +0 -15
  42. package/src/components/Input/Input.vue +0 -123
  43. package/src/components/Input/Password.vue +0 -35
  44. package/src/components/Input/Textarea.vue +0 -78
  45. package/src/components/Input/input.scss +0 -302
  46. package/src/components/Kbd/Kbd.vue +0 -48
  47. package/src/components/Kbd/KbdGroup.vue +0 -28
  48. package/src/components/Kbd/kbd.scss +0 -19
  49. package/src/components/Modal/Confirm.vue +0 -56
  50. package/src/components/Modal/Modal.vue +0 -103
  51. package/src/components/Modal/modal.scss +0 -54
  52. package/src/components/OTP/OTP.vue +0 -133
  53. package/src/components/OTP/OTPItem.vue +0 -37
  54. package/src/components/OTP/otp.scss +0 -84
  55. package/src/components/Pagination/Pagination.vue +0 -92
  56. package/src/components/Pagination/pagination.ts +0 -78
  57. package/src/components/Popout/Popout.vue +0 -73
  58. package/src/components/Popout/popout.scss +0 -16
  59. package/src/components/Progress/Progress.vue +0 -103
  60. package/src/components/Progress/progress.scss +0 -47
  61. package/src/components/Radio/Radio.vue +0 -38
  62. package/src/components/Radio/RadioGroup.vue +0 -34
  63. package/src/components/Radio/radio.scss +0 -78
  64. package/src/components/Select/Select.vue +0 -212
  65. package/src/components/Select/select.scss +0 -82
  66. package/src/components/Sheet/Sheet.vue +0 -106
  67. package/src/components/Sheet/sheet.scss +0 -71
  68. package/src/components/Sidebar/Sidebar.vue +0 -116
  69. package/src/components/Sidebar/sidebar.scss +0 -124
  70. package/src/components/Skeleton/Skeleton.vue +0 -43
  71. package/src/components/Skeleton/skeleton.scss +0 -14
  72. package/src/components/Spinner/Spinner.vue +0 -42
  73. package/src/components/Spinner/spinner.scss +0 -47
  74. package/src/components/Switch/Switch.vue +0 -31
  75. package/src/components/Switch/switch.scss +0 -93
  76. package/src/components/Table/Cell.vue +0 -23
  77. package/src/components/Table/Head.vue +0 -66
  78. package/src/components/Table/Root.vue +0 -66
  79. package/src/components/Table/SelectAll.vue +0 -23
  80. package/src/components/Table/SelectRow.vue +0 -30
  81. package/src/components/Table/index.ts +0 -7
  82. package/src/components/Table/table.scss +0 -155
  83. package/src/components/Table/table.ts +0 -248
  84. package/src/components/Tabs/Tab.vue +0 -25
  85. package/src/components/Tabs/Tabs.vue +0 -90
  86. package/src/components/Tabs/tabs.scss +0 -87
  87. package/src/components/Toast/Toasts.vue +0 -52
  88. package/src/components/Toast/toast.scss +0 -45
  89. package/src/components/Toast/toast.ts +0 -75
  90. package/src/components/Tooltip/Tooltip.vue +0 -78
  91. package/src/components/Tooltip/tooltip.scss +0 -5
  92. package/src/examples/ExampleAccordions.vue +0 -69
  93. package/src/examples/ExampleAlerts.vue +0 -78
  94. package/src/examples/ExampleAvatars.vue +0 -44
  95. package/src/examples/ExampleBadges.vue +0 -48
  96. package/src/examples/ExampleBreadcrumbs.vue +0 -46
  97. package/src/examples/ExampleButtons.vue +0 -148
  98. package/src/examples/ExampleCalendars.vue +0 -40
  99. package/src/examples/ExampleCards.vue +0 -94
  100. package/src/examples/ExampleCheckboxes.vue +0 -123
  101. package/src/examples/ExampleCopyClipboard.vue +0 -47
  102. package/src/examples/ExampleDividers.vue +0 -39
  103. package/src/examples/ExampleDrawers.vue +0 -67
  104. package/src/examples/ExampleDropdowns.vue +0 -114
  105. package/src/examples/ExampleFlexGrid.vue +0 -124
  106. package/src/examples/ExampleInputs.vue +0 -236
  107. package/src/examples/ExampleKBD.vue +0 -65
  108. package/src/examples/ExampleModals.vue +0 -143
  109. package/src/examples/ExamplePalette.vue +0 -165
  110. package/src/examples/ExamplePopouts.vue +0 -41
  111. package/src/examples/ExampleSheets.vue +0 -77
  112. package/src/examples/ExampleSidebars.vue +0 -276
  113. package/src/examples/ExampleSkeletons.vue +0 -26
  114. package/src/examples/ExampleSpinners.vue +0 -80
  115. package/src/examples/ExampleTables.vue +0 -359
  116. package/src/examples/ExampleTabs.vue +0 -142
  117. package/src/examples/ExampleToasts.vue +0 -96
  118. package/src/examples/ExampleTooltips.vue +0 -70
  119. package/src/examples/shared/ExampleColor.vue +0 -28
  120. package/src/index.ts +0 -116
  121. package/src/internal/Backdrop/Backdrop.vue +0 -22
  122. package/src/internal/Backdrop/backdrop.scss +0 -34
  123. package/src/main.ts +0 -5
  124. package/src/shared/helpers.ts +0 -124
  125. package/src/shared/slots.ts +0 -61
  126. package/src/shared/theme.ts +0 -22
  127. package/src/shared/types.ts +0 -29
  128. package/src/style/animation.scss +0 -50
  129. package/src/style/core.scss +0 -133
  130. package/src/style/fonts.scss +0 -73
  131. package/src/style/layout.scss +0 -179
  132. package/src/style/media-query.scss +0 -29
  133. package/src/style/reset.scss +0 -135
  134. package/src/style/text.scss +0 -137
  135. package/src/style/theme.scss +0 -195
  136. package/src/style/tooltip.scss +0 -146
  137. package/src/style/typography.scss +0 -435
  138. package/src/style/utils.scss +0 -36
  139. package/src/style.scss +0 -1
  140. package/src/vite-env.d.ts +0 -1
@@ -1,48 +0,0 @@
1
- <script setup lang='ts'>
2
- import Badge from '../components/Badge/Badge.vue'
3
- import Flex from '../components/Flex/Flex.vue'
4
-
5
- const variants = ['neutral', 'danger', 'warning', 'success', 'info', 'accent'] as const
6
- </script>
7
-
8
- <template>
9
- <div class="mb-xxl">
10
- <h3 class="mb-l">
11
- Badges
12
- </h3>
13
- <table>
14
- <tbody>
15
- <tr>
16
- <th>Base</th>
17
- <td>
18
- <Flex>
19
- <Badge v-for="variant in variants" :key="variant" :variant>
20
- Badge
21
- </Badge>
22
- </Flex>
23
- </td>
24
- </tr>
25
- <tr>
26
- <th>Outline</th>
27
- <td>
28
- <Flex>
29
- <Badge v-for="variant in variants" :key="variant" :variant outline>
30
- Badge
31
- </Badge>
32
- </Flex>
33
- </td>
34
- </tr>
35
- <tr>
36
- <th>Filled</th>
37
- <td>
38
- <Flex>
39
- <Badge v-for="variant in variants" :key="variant" :variant filled>
40
- Badge
41
- </Badge>
42
- </Flex>
43
- </td>
44
- </tr>
45
- </tbody>
46
- </table>
47
- </div>
48
- </template>
@@ -1,46 +0,0 @@
1
- <script setup lang='ts'>
2
- import { Icon } from '@iconify/vue'
3
- import BreadcrumbItem from '../components/Breadcrumbs/BreadcrumbItem.vue'
4
- import Breadcrumbs from '../components/Breadcrumbs/Breadcrumbs.vue'
5
- import Button from '../components/Button/Button.vue'
6
- </script>
7
-
8
- <template>
9
- <div class="mb-xxl">
10
- <h3 class="mb-l">
11
- Breadcrumbs
12
- </h3>
13
-
14
- <table>
15
- <tbody>
16
- <tr>
17
- <th>Base with links</th>
18
- <td>
19
- <Breadcrumbs>
20
- <BreadcrumbItem label="Home" href="#" />
21
- <BreadcrumbItem label="About" href="#" />
22
- <BreadcrumbItem label="You" />
23
- </Breadcrumbs>
24
- </td>
25
- </tr>
26
- <tr>
27
- <th>With components</th>
28
- <td>
29
- <Breadcrumbs>
30
- <BreadcrumbItem label="Home" href="#" />
31
- <BreadcrumbItem label="About" href="#" />
32
- <BreadcrumbItem>
33
- <Button size="s">
34
- Switch
35
- <template #end>
36
- <Icon icon="ph:caret-down" />
37
- </template>
38
- </Button>
39
- </BreadcrumbItem>
40
- </Breadcrumbs>
41
- </td>
42
- </tr>
43
- </tbody>
44
- </table>
45
- </div>
46
- </template>
@@ -1,148 +0,0 @@
1
- <script setup lang='ts'>
2
- import { Icon } from '@iconify/vue'
3
- import Button from '../components/Button/Button.vue'
4
- import ButtonGroup from '../components/ButtonGroup/ButtonGroup.vue'
5
- import Flex from '../components/Flex/Flex.vue'
6
-
7
- const variants = ['gray', 'fill', 'danger', 'success', 'link', 'accent'] as const
8
- </script>
9
-
10
- <template>
11
- <div class="mb-xxl">
12
- <h3 class="mb-l">
13
- Buttons
14
- </h3>
15
- <table>
16
- <tbody>
17
- <tr>
18
- <th>Base</th>
19
- <td>
20
- <Flex gap="s">
21
- <Button v-for="btn in variants" :key="btn" :variant="btn">
22
- Button
23
- </Button>
24
- </Flex>
25
- </td>
26
- </tr>
27
- <tr>
28
- <th>Base + large</th>
29
- <td>
30
- <Flex gap="s">
31
- <Button v-for="btn in variants" :key="btn" :variant="btn" size="l">
32
- Button
33
- </Button>
34
- </Flex>
35
- </td>
36
- </tr>
37
- <tr>
38
- <th>Base + small</th>
39
- <td>
40
- <Flex gap="s">
41
- <Button v-for="btn in variants" :key="btn" :variant="btn" size="s">
42
- Button
43
- </Button>
44
- </Flex>
45
- </td>
46
- </tr>
47
- <tr>
48
- <th>Plain</th>
49
- <td>
50
- <Flex gap="s">
51
- <Button v-for="btn in variants" :key="btn" :variant="btn" plain>
52
- Button
53
- </Button>
54
- </Flex>
55
- </td>
56
- </tr>
57
- <tr>
58
- <th>Outline</th>
59
- <td>
60
- <Flex gap="s">
61
- <Button v-for="btn in variants" :key="btn" :variant="btn" outline>
62
- Button
63
- </Button>
64
- </Flex>
65
- </td>
66
- </tr>
67
- <tr>
68
- <th>Disabled</th>
69
- <td>
70
- <Flex gap="s">
71
- <Button v-for="btn in variants" :key="btn" :variant="btn" disabled>
72
- Button
73
- </Button>
74
- </Flex>
75
- </td>
76
- </tr>
77
- <tr>
78
- <th>Square + icon</th>
79
- <td>
80
- <Flex gap="s">
81
- <Button v-for="btn in variants" :key="btn" :variant="btn" square icon="ph:info" />
82
- </Flex>
83
- </td>
84
- </tr>
85
- <tr>
86
- <th>Square + icon + small</th>
87
- <td>
88
- <Flex gap="s">
89
- <Button v-for="btn in variants" :key="btn" :variant="btn" square icon="ph:info" size="s" />
90
- </Flex>
91
- </td>
92
- </tr>
93
- <tr>
94
- <th>Square + icon + large</th>
95
- <td>
96
- <Flex gap="s">
97
- <Button v-for="btn in variants" :key="btn" :variant="btn" square icon="ph:info" size="l" />
98
- </Flex>
99
- </td>
100
- </tr>
101
- <tr>
102
- <th>Loading</th>
103
- <td>
104
- <Flex gap="s">
105
- <Button v-for="btn in variants" :key="btn" :variant="btn" loading size="l" />
106
- </Flex>
107
- </td>
108
- </tr>
109
- <tr>
110
- <th>Icon + text</th>
111
- <td>
112
- <Flex gap="s">
113
- <Button v-for="btn in variants" :key="btn" :variant="btn">
114
- <template #start>
115
- <Icon icon="ph:arrow-left" />
116
- </template>
117
- Prev
118
- <template #end>
119
- <Icon icon="ph:arrow-right" />
120
- </template>
121
- </Button>
122
- </Flex>
123
- </td>
124
- </tr>
125
- <tr>
126
- <td>Button group</td>
127
- <td>
128
- <Flex gap="s" wrap>
129
- <ButtonGroup v-for="btn in variants" :key="btn">
130
- <Button :variant="btn">
131
- Hello
132
- </Button>
133
- <Button :variant="btn" icon="ph:caret-down" />
134
- </ButtonGroup>
135
-
136
- <ButtonGroup>
137
- <Button square icon="ph:text-b-bold" active />
138
- <Button square icon="ph:text-bold" />
139
- <Button square icon="ph:text-italic" />
140
- <Button square icon="ph:text-a-underline" />
141
- </ButtonGroup>
142
- </Flex>
143
- </td>
144
- </tr>
145
- </tbody>
146
- </table>
147
- </div>
148
- </template>
@@ -1,40 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from 'vue'
3
- import Button from '../components/Button/Button.vue'
4
- import Calendar from '../components/Calendar/Calendar.vue'
5
-
6
- const date = ref(Date.now())
7
- </script>
8
-
9
- <template>
10
- <div class="mb-xxl">
11
- <h3 class="mb-l">
12
- Calendars
13
- </h3>
14
-
15
- <p class="mb-s">
16
- Using the <a href="https://vue3datepicker.com/" target="_blank">Vue Datepicker</a> component. By default it always outputs a javascript Date object. So it is up to the user to format the dates themselves.
17
- </p>
18
-
19
- <table>
20
- <tbody>
21
- <tr>
22
- <th>Base</th>
23
- <td>
24
- <Calendar v-model="date" format="dd/MM/yyyy">
25
- <template #trigger>
26
- <Button>{{ date ?? 'Choose date' }}</Button>
27
- </template>
28
- </Calendar>
29
- </td>
30
- </tr>
31
- <tr>
32
- <th>Inline</th>
33
- <th>
34
- <Calendar inline />
35
- </th>
36
- </tr>
37
- </tbody>
38
- </table>
39
- </div>
40
- </template>
@@ -1,94 +0,0 @@
1
- <script setup lang='ts'>
2
- import Button from '../components/Button/Button.vue'
3
- import Card from '../components/Card/Card.vue'
4
- import Flex from '../components/Flex/Flex.vue'
5
- import Grid from '../components/Grid/Grid.vue'
6
- </script>
7
-
8
- <template>
9
- <div class="mb-xxl">
10
- <h3 class="mb-l">
11
- Cards
12
- </h3>
13
-
14
- <Grid :columns="2" gap="xl">
15
- <Flex column gap="xl">
16
- <div>
17
- <strong class="block mb-s">Base</strong>
18
- <Card>
19
- <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Adipisci eligendi quos inventore voluptas ab saepe fugit deleniti ipsam exercitationem impedit quod rem ipsum laborum, quis quam error ipsa corrupti. Dolorem!</p>
20
- </Card>
21
- </div>
22
-
23
- <div>
24
- <strong class="block mb-s">With header</strong>
25
- <Card>
26
- <template #header>
27
- <h4>Hello</h4>
28
- </template>
29
- <template #header-end>
30
- <Button icon="ph:x" plain size="s" />
31
- </template>
32
- <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Adipisci eligendi quos inventore voluptas ab saepe fugit deleniti ipsam exercitationem impedit quod rem ipsum laborum, quis quam error ipsa corrupti. Dolorem!</p>
33
- </Card>
34
- </div>
35
-
36
- <div>
37
- <strong class="block mb-s">With footer</strong>
38
- <Card>
39
- <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Adipisci eligendi quos inventore voluptas ab saepe fugit deleniti ipsam exercitationem impedit quod rem ipsum laborum, quis quam error ipsa corrupti. Dolorem!</p>
40
-
41
- <template #footer>
42
- <Flex gap="s" x-end>
43
- <Button>Cancel</Button>
44
- <Button variant="success">
45
- Save
46
- </Button>
47
- </Flex>
48
- </template>
49
- </Card>
50
- </div>
51
- </Flex>
52
- <Flex column gap="xl">
53
- <div>
54
- <strong class="block mb-s">With header + separators (each separator can be individually disabled)</strong>
55
- <Card separators>
56
- <template #header>
57
- <h4>Hello</h4>
58
- </template>
59
- <template #header-end>
60
- <Button icon="ph:x" plain size="s" />
61
- </template>
62
- <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Adipisci eligendi quos inventore voluptas ab saepe fugit deleniti ipsam exercitationem impedit quod rem ipsum laborum, quis quam error ipsa corrupti. Dolorem!</p>
63
- <template #footer>
64
- <Flex gap="s" x-start>
65
- <Button variant="success">
66
- Save
67
- </Button>
68
- <Button>Cancel</Button>
69
- </Flex>
70
- </template>
71
- </Card>
72
- </div>
73
-
74
- <Card :header-separator="false" footer-separator>
75
- <template #header>
76
- <h4>Hello</h4>
77
- </template>
78
- <template #header-end>
79
- <Button icon="ph:x" plain size="s" />
80
- </template>
81
- <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Adipisci eligendi quos inventore voluptas ab saepe fugit deleniti ipsam exercitationem impedit quod rem ipsum laborum, quis quam error ipsa corrupti. Dolorem!</p>
82
- <template #footer>
83
- <Flex gap="s" x-end>
84
- <Button>Cancel</Button>
85
- <Button variant="success">
86
- Save
87
- </Button>
88
- </Flex>
89
- </template>
90
- </Card>
91
- </Flex>
92
- </Grid>
93
- </div>
94
- </template>
@@ -1,123 +0,0 @@
1
- <script setup lang='ts'>
2
- import Checkbox from '../components/Checkbox/Checkbox.vue'
3
- import Grid from '../components/Grid/Grid.vue'
4
- import Radio from '../components/Radio/Radio.vue'
5
- import RadioGroup from '../components/Radio/RadioGroup.vue'
6
- import Switch from '../components/Switch/Switch.vue'
7
- </script>
8
-
9
- <template>
10
- <div class="mb-xxl">
11
- <Grid :columns="2" gap="xl">
12
- <div>
13
- <h3 class="mb-l">
14
- Checkbox
15
- </h3>
16
- <table class="mb-xl w-100">
17
- <tbody>
18
- <tr>
19
- <th>Base</th>
20
- <td>
21
- <Checkbox label="Just click me" />
22
- </td>
23
- </tr>
24
- <tr>
25
- <th>Accent</th>
26
- <td>
27
- <Checkbox label="Just click me" accent />
28
- </td>
29
- </tr>
30
- <tr>
31
- <th>Disabled</th>
32
- <td>
33
- <Checkbox disabled label="Just click me" />
34
- </td>
35
- </tr>
36
- <tr>
37
- <th>Custom icons</th>
38
- <td>
39
- <Checkbox icon-on="ph:check-fat" icon-off="ph:x-bold" label="Just click me" />
40
- </td>
41
- </tr>
42
- </tbody>
43
- </table>
44
-
45
- <h3 class="mb-l">
46
- Switch
47
- </h3>
48
- <table class="mb-xl w-100">
49
- <tbody>
50
- <tr>
51
- <th>Base</th>
52
- <td>
53
- <Switch label="Just click me" />
54
- </td>
55
- </tr>
56
- <tr>
57
- <th>Accent</th>
58
- <td>
59
- <Switch label="Just click me" accent />
60
- </td>
61
- </tr>
62
- <tr>
63
- <th>Disabled</th>
64
- <td>
65
- <Switch label="Just click me" disabled />
66
- </td>
67
- </tr>
68
- </tbody>
69
- </table>
70
- </div>
71
- <div>
72
- <h3 class="mb-l">
73
- Radio group
74
- </h3>
75
-
76
- <table class="w-100">
77
- <tbody>
78
- <tr>
79
- <th>Base</th>
80
- <td>
81
- <RadioGroup>
82
- <Radio value="one" label="First" />
83
- <Radio value="two" label="Second" />
84
- <Radio value="three" label="Third" disabled />
85
- </RadioGroup>
86
- </td>
87
- </tr>
88
- <tr>
89
- <th>Accent</th>
90
- <td>
91
- <RadioGroup>
92
- <Radio value="one" label="First" accent />
93
- <Radio value="two" label="Second" accent />
94
- <Radio value="three" label="Third" disabled accent />
95
- </RadioGroup>
96
- </td>
97
- </tr>
98
- <tr>
99
- <th>Vertical</th>
100
- <td>
101
- <RadioGroup column>
102
- <Radio value="one" label="First" />
103
- <Radio value="two" label="Second" />
104
- <Radio value="three" label="Third" disabled />
105
- </RadioGroup>
106
- </td>
107
- </tr>
108
- <tr>
109
- <th>Disabled</th>
110
- <td>
111
- <RadioGroup column disabled>
112
- <Radio value="one" label="First" />
113
- <Radio value="two" label="Second" />
114
- <Radio value="three" label="Third" disabled />
115
- </RadioGroup>
116
- </td>
117
- </tr>
118
- </tbody>
119
- </table>
120
- </div>
121
- </Grid>
122
- </div>
123
- </template>
@@ -1,47 +0,0 @@
1
- <script setup lang='ts'>
2
- import Button from '../components/Button/Button.vue'
3
- import CopyClipboard from '../components/CopyClipboard/CopyClipboard.vue'
4
- import Flex from '../components/Flex/Flex.vue'
5
- </script>
6
-
7
- <template>
8
- <div class="mb-xxl">
9
- <h3 class="mb-l">
10
- Clipboard copy
11
- </h3>
12
- <table>
13
- <tbody>
14
- <tr>
15
- <th>Base</th>
16
- <td>
17
- <CopyClipboard text="Copy me!">
18
- <p>Copy me!</p>
19
- </CopyClipboard>
20
- </td>
21
- </tr>
22
- <tr>
23
- <th>Custom slot & confirmation</th>
24
- <td>
25
- <CopyClipboard text="Copy me!" confirm>
26
- <Button>Copy me!</Button>
27
- </CopyClipboard>
28
- </td>
29
- </tr>
30
- <tr>
31
- <th>Custom confirm popup & positioned at the right</th>
32
- <td>
33
- <CopyClipboard text="Copy me!" confirm confirm-placement="right">
34
- <Button>Copy me!</Button>
35
- <template #confirm>
36
- <Flex column gap="s" y-center>
37
- <strong>The dawg</strong>
38
- <img style="width:128px;border-radius:8px" src="https://i.imgur.com/jMxIs6p.png" alt="">
39
- </Flex>
40
- </template>
41
- </CopyClipboard>
42
- </td>
43
- </tr>
44
- </tbody>
45
- </table>
46
- </div>
47
- </template>
@@ -1,39 +0,0 @@
1
- <script setup lang='ts'>
2
- import Avatar from '../components/Avatar/Avatar.vue'
3
- import Divider from '../components/Divider/Divider.vue'
4
- import Flex from '../components/Flex/Flex.vue'
5
- </script>
6
-
7
- <template>
8
- <div class="mb-xxl">
9
- <h3 class="mb-l">
10
- Dividers
11
- </h3>
12
-
13
- <div class="container container-s">
14
- <p>Standard divider</p>
15
- <Divider />
16
- <p>Divider with a variable spacing. For instance 80px. This means there will be a gap of 40 pixels above and below the divider. Size serves a different purpose with vertical dividers, so to achieve the same thing, you could also set the margin to <code>40px 0</code></p>
17
- <Divider :size="80" />
18
- <p>Using margin. The default divider size is 32px, so we need to either set it to 0 or offset the provided margin.</p>
19
- <Divider margin="40px 0" />
20
-
21
- <p>Different thickness (you specify the number of pixels)</p>
22
- <Divider :thickness="5" :size="64" />
23
- <p class="mb-s">
24
- Vertical dividers. Here, size is the height of the divider. And if you want to add extra spacing between dividers, jsut set the margin to something like <code>0 16px</code>.
25
- </p>
26
- <Flex class="mb-xl">
27
- <span>One</span>
28
- <Divider vertical :size="16" />
29
- <span>Two</span>
30
- <Divider vertical :size="16" />
31
- <span>Three</span>
32
- </Flex>
33
- <p>Dividers also accept a slot. This is rendered in the center, overlaying the divider. For instance an icon or an avatar, but it can be any component.</p>
34
- <Divider size="80">
35
- <Avatar />
36
- </Divider>
37
- </div>
38
- </div>
39
- </template>
@@ -1,67 +0,0 @@
1
- <script setup lang='ts'>
2
- import type { Sizes } from '../shared/types'
3
- import { ref } from 'vue'
4
- import Button from '../components/Button/Button.vue'
5
- import Drawer from '../components/Drawer/Drawer.vue'
6
- import Flex from '../components/Flex/Flex.vue'
7
-
8
- const open = ref(false)
9
- const open2 = ref(false)
10
-
11
- const size = ref<Sizes | 'full'>('s')
12
- function setSize(s: any) {
13
- size.value = s
14
- open.value = true
15
- }
16
- </script>
17
-
18
- <template>
19
- <div class="mb-xxl">
20
- <h3 class="mb-l">
21
- Drawers
22
- </h3>
23
-
24
- <table>
25
- <tbody>
26
- <tr>
27
- <th>Base</th>
28
- <td>
29
- <Flex>
30
- <Button square @click="setSize('s')">
31
- S
32
- </Button>
33
- <Button square @click="setSize('m')">
34
- M
35
- </Button>
36
- <Button square @click="setSize('l')">
37
- L
38
- </Button>
39
- <Button square @click="setSize('xl')">
40
- XL
41
- </Button>
42
- <Button square @click="setSize('full')">
43
- Full
44
- </Button>
45
- </Flex>
46
- <Drawer :open title="Hello" :container-size="size" @close="open = false">
47
- <h2>Hello</h2>
48
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dicta cupiditate laudantium maiores? Nesciunt harum doloribus accusantium architecto, quod rem porro iusto, quia dicta ex sapiente nulla earum voluptatibus, dolor veritatis?</p>
49
- </Drawer>
50
- </td>
51
- </tr>
52
- <tr>
53
- <th>With animation + no handle</th>
54
- <td>
55
- <Button @click="open2 = !open2">
56
- Open
57
- </Button>
58
- <Drawer :open="open2" :handle="false" title="Hello" :container-size="size" @close="open2 = false">
59
- <h2>Hello</h2>
60
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dicta cupiditate laudantium maiores? Nesciunt harum doloribus accusantium architecto, quod rem porro iusto, quia dicta ex sapiente nulla earum voluptatibus, dolor veritatis?</p>
61
- </Drawer>
62
- </td>
63
- </tr>
64
- </tbody>
65
- </table>
66
- </div>
67
- </template>