@oruga-ui/theme-oruga 0.2.1 → 0.2.2
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/dist/oruga-full.css +9 -6
- package/dist/oruga-full.min.css +1 -1
- package/dist/oruga.css +9 -6
- package/dist/oruga.min.css +1 -1
- package/dist/scss/components/_sidebar.scss +4 -2
- package/dist/scss/components/_steps.scss +5 -0
- package/dist/scss/components/_taginput.scss +0 -5
- package/dist/scss/utils/_root.scss +6 -2
- package/dist/theme.js +2 -1
- package/package.json +28 -30
- package/src/assets/scss/components/_sidebar.scss +4 -2
- package/src/assets/scss/components/_steps.scss +5 -0
- package/src/assets/scss/components/_taginput.scss +0 -5
- package/src/assets/scss/utils/_root.scss +6 -2
- package/src/App.vue +0 -105
- package/src/components/Autocomplete.vue +0 -606
- package/src/components/Button.vue +0 -80
- package/src/components/Carousel.vue +0 -295
- package/src/components/Checkbox.vue +0 -135
- package/src/components/Collapse.vue +0 -134
- package/src/components/Datepicker.vue +0 -282
- package/src/components/Datetimepicker.vue +0 -127
- package/src/components/Dropdown.vue +0 -329
- package/src/components/Field.vue +0 -235
- package/src/components/Icon.vue +0 -66
- package/src/components/Input.vue +0 -129
- package/src/components/Loading.vue +0 -70
- package/src/components/Menu.vue +0 -42
- package/src/components/Modal.vue +0 -230
- package/src/components/Notification.vue +0 -136
- package/src/components/Pagination.vue +0 -96
- package/src/components/Radio.vue +0 -111
- package/src/components/Select.vue +0 -155
- package/src/components/Sidebar.vue +0 -73
- package/src/components/Skeleton.vue +0 -75
- package/src/components/Slider.vue +0 -226
- package/src/components/Steps.vue +0 -233
- package/src/components/Switch.vue +0 -137
- package/src/components/Table.vue +0 -278
- package/src/components/Tabs.vue +0 -209
- package/src/components/Taginput.vue +0 -507
- package/src/components/Timepicker.vue +0 -122
- package/src/components/Tooltip.vue +0 -187
- package/src/components/Upload.vue +0 -66
- package/src/main.ts +0 -29
- package/src/plugins/theme.ts +0 -1
- package/src/router/index.ts +0 -39
- package/src/views/Home.vue +0 -24
- package/types/index.d.ts +0 -1
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const isScrollable = ref(true);
|
|
5
|
-
const maxHeight = ref(200);
|
|
6
|
-
const currentMenu = ref({ icon: "users", text: "People" });
|
|
7
|
-
const menus = ref([
|
|
8
|
-
{ icon: "users", text: "People" },
|
|
9
|
-
{ icon: "box", text: "Orders" },
|
|
10
|
-
{ icon: "credit-card", text: "Payments" },
|
|
11
|
-
{ icon: "dolly", text: "Logistics" },
|
|
12
|
-
{ icon: "business-time", text: "Jobs" },
|
|
13
|
-
{ icon: "shopping-cart", text: "Cart" },
|
|
14
|
-
{ icon: "cog", text: "Configuration" },
|
|
15
|
-
]);
|
|
16
|
-
const selectedOptions = ref([]);
|
|
17
|
-
const teleport = ref(false);
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<template>
|
|
21
|
-
<section>
|
|
22
|
-
<h2>Dropdown Demo</h2>
|
|
23
|
-
<hr />
|
|
24
|
-
</section>
|
|
25
|
-
|
|
26
|
-
<section>
|
|
27
|
-
<h3>Base</h3>
|
|
28
|
-
|
|
29
|
-
<div class="dropdown-example">
|
|
30
|
-
<o-dropdown>
|
|
31
|
-
<template #trigger="{ active }">
|
|
32
|
-
<o-button
|
|
33
|
-
variant="primary"
|
|
34
|
-
:icon-right="active ? 'caret-up' : 'caret-down'"
|
|
35
|
-
label="Click me!" />
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<o-dropdown-item label="Action" />
|
|
39
|
-
<o-dropdown-item label="Another action" />
|
|
40
|
-
<o-dropdown-item label="Something else" />
|
|
41
|
-
</o-dropdown>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="dropdown-example">
|
|
45
|
-
<o-dropdown :triggers="['hover']">
|
|
46
|
-
<template #trigger="{ active }">
|
|
47
|
-
<o-button
|
|
48
|
-
variant="info"
|
|
49
|
-
label="Hover me!"
|
|
50
|
-
:icon-right="active ? 'caret-up' : 'caret-down'" />
|
|
51
|
-
</template>
|
|
52
|
-
|
|
53
|
-
<o-dropdown-item label="Action" />
|
|
54
|
-
<o-dropdown-item label="Another action" />
|
|
55
|
-
<o-dropdown-item label="Something else" />
|
|
56
|
-
</o-dropdown>
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
<div class="dropdown-example">
|
|
60
|
-
<o-dropdown disabled>
|
|
61
|
-
<template #trigger="{ active }">
|
|
62
|
-
<o-button
|
|
63
|
-
label="Disabled"
|
|
64
|
-
disabled
|
|
65
|
-
:icon-right="active ? 'caret-up' : 'caret-down'" />
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<o-dropdown-item label="Action" />
|
|
69
|
-
<o-dropdown-item label="Another action" />
|
|
70
|
-
<o-dropdown-item label="Something else" />
|
|
71
|
-
</o-dropdown>
|
|
72
|
-
</div>
|
|
73
|
-
|
|
74
|
-
<div class="dropdown-example">
|
|
75
|
-
<o-dropdown>
|
|
76
|
-
<template #trigger="{ active }">
|
|
77
|
-
<span role="button">
|
|
78
|
-
Custom
|
|
79
|
-
<o-icon
|
|
80
|
-
variant="success"
|
|
81
|
-
:icon="active ? 'caret-up' : 'caret-down'" />
|
|
82
|
-
</span>
|
|
83
|
-
</template>
|
|
84
|
-
|
|
85
|
-
<o-dropdown-item label="Action" />
|
|
86
|
-
<o-dropdown-item label="Another action" />
|
|
87
|
-
<o-dropdown-item label="Something else" />
|
|
88
|
-
</o-dropdown>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
<div class="dropdown-example">
|
|
92
|
-
<o-dropdown :triggers="['contextmenu']">
|
|
93
|
-
<template #trigger>
|
|
94
|
-
<o-button label="Right click" />
|
|
95
|
-
</template>
|
|
96
|
-
|
|
97
|
-
<o-dropdown-item label="Action" />
|
|
98
|
-
<o-dropdown-item label="Another action" />
|
|
99
|
-
<o-dropdown-item label="Something else" />
|
|
100
|
-
</o-dropdown>
|
|
101
|
-
</div>
|
|
102
|
-
</section>
|
|
103
|
-
|
|
104
|
-
<section>
|
|
105
|
-
<h3>Inline</h3>
|
|
106
|
-
|
|
107
|
-
<div class="dropdown-example">
|
|
108
|
-
<o-dropdown inline>
|
|
109
|
-
<template #trigger>
|
|
110
|
-
<o-button label="Inline" />
|
|
111
|
-
</template>
|
|
112
|
-
|
|
113
|
-
<o-dropdown-item value="1" label="Action " />
|
|
114
|
-
<o-dropdown-item value="2" label="Another action " />
|
|
115
|
-
<o-dropdown-item value="3" label="Something else " />
|
|
116
|
-
</o-dropdown>
|
|
117
|
-
</div>
|
|
118
|
-
</section>
|
|
119
|
-
|
|
120
|
-
<section>
|
|
121
|
-
<h3>Scrollable</h3>
|
|
122
|
-
|
|
123
|
-
<div>
|
|
124
|
-
<o-field>
|
|
125
|
-
<o-switch v-model="isScrollable" label="Scrollable" />
|
|
126
|
-
</o-field>
|
|
127
|
-
</div>
|
|
128
|
-
|
|
129
|
-
<o-dropdown
|
|
130
|
-
v-model="currentMenu"
|
|
131
|
-
:scrollable="isScrollable"
|
|
132
|
-
:max-height="maxHeight">
|
|
133
|
-
<template #trigger>
|
|
134
|
-
<o-button
|
|
135
|
-
variant="primary"
|
|
136
|
-
type="button"
|
|
137
|
-
:label="currentMenu.text"
|
|
138
|
-
:icon-left="currentMenu.icon"
|
|
139
|
-
icon-right="caret-down" />
|
|
140
|
-
</template>
|
|
141
|
-
|
|
142
|
-
<o-dropdown-item
|
|
143
|
-
v-for="(menu, index) in menus"
|
|
144
|
-
:key="index"
|
|
145
|
-
:value="menu">
|
|
146
|
-
<div class="media">
|
|
147
|
-
<o-icon class="media-left" :icon="menu.icon" />
|
|
148
|
-
<div class="media-content">{{ menu.text }}</div>
|
|
149
|
-
</div>
|
|
150
|
-
</o-dropdown-item>
|
|
151
|
-
</o-dropdown>
|
|
152
|
-
</section>
|
|
153
|
-
|
|
154
|
-
<section>
|
|
155
|
-
<h3>Multiple</h3>
|
|
156
|
-
|
|
157
|
-
<p><b>selected</b>: {{ selectedOptions }}</p>
|
|
158
|
-
<o-dropdown v-model="selectedOptions" multiple>
|
|
159
|
-
<template #trigger>
|
|
160
|
-
<o-button variant="primary" type="button">
|
|
161
|
-
Selected ({{ selectedOptions.length }})
|
|
162
|
-
</o-button>
|
|
163
|
-
</template>
|
|
164
|
-
|
|
165
|
-
<o-dropdown-item value="option1" label="option 1" />
|
|
166
|
-
<o-dropdown-item value="option2" label="Option 2" />
|
|
167
|
-
<o-dropdown-item value="option3" label="Option 3" />
|
|
168
|
-
</o-dropdown>
|
|
169
|
-
</section>
|
|
170
|
-
|
|
171
|
-
<section>
|
|
172
|
-
<h3>Positioning & Expanded</h3>
|
|
173
|
-
|
|
174
|
-
<o-field>
|
|
175
|
-
<o-switch v-model="teleport" label="teleport" />
|
|
176
|
-
</o-field>
|
|
177
|
-
|
|
178
|
-
<div class="dropdown-example expanded">
|
|
179
|
-
<o-dropdown position="auto" expanded :teleport="teleport">
|
|
180
|
-
<template #trigger>
|
|
181
|
-
<o-button variant="primary" label="Position Auto" expanded />
|
|
182
|
-
</template>
|
|
183
|
-
|
|
184
|
-
<o-dropdown-item label="Action" />
|
|
185
|
-
<o-dropdown-item label="Another action" />
|
|
186
|
-
<o-dropdown-item label="Something else" />
|
|
187
|
-
</o-dropdown>
|
|
188
|
-
</div>
|
|
189
|
-
|
|
190
|
-
<hr />
|
|
191
|
-
|
|
192
|
-
<div class="dropdown-example">
|
|
193
|
-
<o-dropdown :teleport="teleport" position="right">
|
|
194
|
-
<template #trigger>
|
|
195
|
-
<o-button label="Append to right" />
|
|
196
|
-
</template>
|
|
197
|
-
|
|
198
|
-
<o-dropdown-item label="Action" />
|
|
199
|
-
<o-dropdown-item label="Another action" />
|
|
200
|
-
<o-dropdown-item label="Something else" />
|
|
201
|
-
</o-dropdown>
|
|
202
|
-
</div>
|
|
203
|
-
|
|
204
|
-
<div class="dropdown-example">
|
|
205
|
-
<o-dropdown :teleport="teleport" position="left">
|
|
206
|
-
<template #trigger>
|
|
207
|
-
<o-button label="Append to left" />
|
|
208
|
-
</template>
|
|
209
|
-
|
|
210
|
-
<o-dropdown-item label="Action" />
|
|
211
|
-
<o-dropdown-item label="Another action" />
|
|
212
|
-
<o-dropdown-item label="Something else" />
|
|
213
|
-
</o-dropdown>
|
|
214
|
-
</div>
|
|
215
|
-
|
|
216
|
-
<div class="dropdown-example">
|
|
217
|
-
<o-dropdown :teleport="teleport" position="top">
|
|
218
|
-
<template #trigger>
|
|
219
|
-
<o-button label="Append to top" />
|
|
220
|
-
</template>
|
|
221
|
-
|
|
222
|
-
<o-dropdown-item label="Action" />
|
|
223
|
-
<o-dropdown-item label="Another action" />
|
|
224
|
-
<o-dropdown-item label="Something else" />
|
|
225
|
-
</o-dropdown>
|
|
226
|
-
</div>
|
|
227
|
-
|
|
228
|
-
<div class="dropdown-example">
|
|
229
|
-
<o-dropdown :teleport="teleport" position="bottom">
|
|
230
|
-
<template #trigger>
|
|
231
|
-
<o-button label="Append to bottom" />
|
|
232
|
-
</template>
|
|
233
|
-
|
|
234
|
-
<o-dropdown-item label="Action" />
|
|
235
|
-
<o-dropdown-item label="Another action" />
|
|
236
|
-
<o-dropdown-item label="Something else" />
|
|
237
|
-
</o-dropdown>
|
|
238
|
-
</div>
|
|
239
|
-
|
|
240
|
-
<hr />
|
|
241
|
-
|
|
242
|
-
<div class="dropdown-example">
|
|
243
|
-
<o-dropdown :teleport="teleport" position="top-right">
|
|
244
|
-
<template #trigger>
|
|
245
|
-
<o-button label="Append to top-right" />
|
|
246
|
-
</template>
|
|
247
|
-
|
|
248
|
-
<o-dropdown-item label="Action" />
|
|
249
|
-
<o-dropdown-item label="Another action" />
|
|
250
|
-
<o-dropdown-item label="Something else" />
|
|
251
|
-
</o-dropdown>
|
|
252
|
-
</div>
|
|
253
|
-
|
|
254
|
-
<div class="dropdown-example">
|
|
255
|
-
<o-dropdown :teleport="teleport" position="top-left">
|
|
256
|
-
<template #trigger>
|
|
257
|
-
<o-button label="Append to top-left" />
|
|
258
|
-
</template>
|
|
259
|
-
|
|
260
|
-
<o-dropdown-item label="Action" />
|
|
261
|
-
<o-dropdown-item label="Another action" />
|
|
262
|
-
<o-dropdown-item label="Something else" />
|
|
263
|
-
</o-dropdown>
|
|
264
|
-
</div>
|
|
265
|
-
|
|
266
|
-
<div class="dropdown-example">
|
|
267
|
-
<o-dropdown :teleport="teleport" position="bottom-right">
|
|
268
|
-
<template #trigger>
|
|
269
|
-
<o-button label="Append to bottom-right" />
|
|
270
|
-
</template>
|
|
271
|
-
|
|
272
|
-
<o-dropdown-item label="Action" />
|
|
273
|
-
<o-dropdown-item label="Another action" />
|
|
274
|
-
<o-dropdown-item label="Something else" />
|
|
275
|
-
</o-dropdown>
|
|
276
|
-
</div>
|
|
277
|
-
|
|
278
|
-
<div class="dropdown-example">
|
|
279
|
-
<o-dropdown :teleport="teleport" position="bottom-left">
|
|
280
|
-
<template #trigger>
|
|
281
|
-
<o-button label="Append to bottom-left" />
|
|
282
|
-
</template>
|
|
283
|
-
|
|
284
|
-
<o-dropdown-item label="Action" />
|
|
285
|
-
<o-dropdown-item label="Another action" />
|
|
286
|
-
<o-dropdown-item label="Something else" />
|
|
287
|
-
</o-dropdown>
|
|
288
|
-
</div>
|
|
289
|
-
</section>
|
|
290
|
-
</template>
|
|
291
|
-
|
|
292
|
-
<style scoped lang="scss">
|
|
293
|
-
.dropdown-example {
|
|
294
|
-
display: inline-flex;
|
|
295
|
-
position: relative;
|
|
296
|
-
vertical-align: top;
|
|
297
|
-
|
|
298
|
-
&.expanded {
|
|
299
|
-
display: block;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
&:not(:last-child) {
|
|
303
|
-
margin-right: 0.5rem;
|
|
304
|
-
margin-bottom: 0.5rem;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.media {
|
|
309
|
-
align-items: flex-start;
|
|
310
|
-
display: flex;
|
|
311
|
-
text-align: left;
|
|
312
|
-
|
|
313
|
-
.media-content {
|
|
314
|
-
flex-basis: auto;
|
|
315
|
-
flex-grow: 1;
|
|
316
|
-
flex-shrink: 1;
|
|
317
|
-
text-align: left;
|
|
318
|
-
overflow-y: hidden;
|
|
319
|
-
overflow-x: auto;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.media-left {
|
|
323
|
-
margin-right: 1rem;
|
|
324
|
-
flex-basis: auto;
|
|
325
|
-
flex-grow: 0;
|
|
326
|
-
flex-shrink: 0;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
</style>
|
package/src/components/Field.vue
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section>
|
|
3
|
-
<h2>Field Demo</h2>
|
|
4
|
-
<hr />
|
|
5
|
-
</section>
|
|
6
|
-
|
|
7
|
-
<section>
|
|
8
|
-
<h3>Base</h3>
|
|
9
|
-
|
|
10
|
-
<o-field label="Name">
|
|
11
|
-
<o-input value="Kevin Garvey" expanded />
|
|
12
|
-
</o-field>
|
|
13
|
-
|
|
14
|
-
<o-field
|
|
15
|
-
label="Email"
|
|
16
|
-
variant="danger"
|
|
17
|
-
message-variant="info"
|
|
18
|
-
message="This email is invalid">
|
|
19
|
-
<o-input type="email" value="john@" maxlength="30" expanded />
|
|
20
|
-
</o-field>
|
|
21
|
-
|
|
22
|
-
<o-field
|
|
23
|
-
label="Username"
|
|
24
|
-
variant="success"
|
|
25
|
-
message="This username is available">
|
|
26
|
-
<o-input value="johnsilver" maxlength="30" has-counter expanded />
|
|
27
|
-
</o-field>
|
|
28
|
-
|
|
29
|
-
<o-field label="Password" variant="warning">
|
|
30
|
-
<o-input value="123" type="password" maxlength="30" expanded />
|
|
31
|
-
</o-field>
|
|
32
|
-
|
|
33
|
-
<o-field label="Subject" grouped>
|
|
34
|
-
<o-select placeholder="Select a subject">
|
|
35
|
-
<option value="1">Option 1</option>
|
|
36
|
-
<option value="2">Option 2</option>
|
|
37
|
-
</o-select>
|
|
38
|
-
</o-field>
|
|
39
|
-
|
|
40
|
-
<o-field
|
|
41
|
-
label="Wrong subject"
|
|
42
|
-
variant="danger"
|
|
43
|
-
message="Selected subject is wrong">
|
|
44
|
-
<o-select placeholder="Select a subject">
|
|
45
|
-
<option value="1">Option 1</option>
|
|
46
|
-
<option value="2">Option 2</option>
|
|
47
|
-
</o-select>
|
|
48
|
-
</o-field>
|
|
49
|
-
</section>
|
|
50
|
-
|
|
51
|
-
<section>
|
|
52
|
-
<h3>Addons</h3>
|
|
53
|
-
|
|
54
|
-
<o-field variant="danger">
|
|
55
|
-
<o-input placeholder="Search..." type="search" icon="search" />
|
|
56
|
-
<o-button variant="primary" label="Search" />
|
|
57
|
-
</o-field>
|
|
58
|
-
|
|
59
|
-
<o-field>
|
|
60
|
-
<o-input placeholder="This is expanded" expanded />
|
|
61
|
-
<o-button label="@gmail.com" />
|
|
62
|
-
</o-field>
|
|
63
|
-
|
|
64
|
-
<o-field>
|
|
65
|
-
<o-select placeholder="Currency">
|
|
66
|
-
<option>$</option>
|
|
67
|
-
<option>£</option>
|
|
68
|
-
<option>€</option>
|
|
69
|
-
</o-select>
|
|
70
|
-
<o-input type="number" placeholder="0,00" />
|
|
71
|
-
<o-button variant="success" label="Transfer" />
|
|
72
|
-
</o-field>
|
|
73
|
-
|
|
74
|
-
<o-field>
|
|
75
|
-
<o-button>
|
|
76
|
-
<o-icon icon="bold" />
|
|
77
|
-
</o-button>
|
|
78
|
-
|
|
79
|
-
<o-button>
|
|
80
|
-
<o-icon icon="italic" />
|
|
81
|
-
</o-button>
|
|
82
|
-
|
|
83
|
-
<o-button>
|
|
84
|
-
<o-icon icon="underline" />
|
|
85
|
-
</o-button>
|
|
86
|
-
|
|
87
|
-
<o-button>
|
|
88
|
-
<o-icon icon="align-left" />
|
|
89
|
-
</o-button>
|
|
90
|
-
|
|
91
|
-
<o-button>
|
|
92
|
-
<o-icon icon="align-center" />
|
|
93
|
-
</o-button>
|
|
94
|
-
|
|
95
|
-
<o-button>
|
|
96
|
-
<o-icon icon="align-right" />
|
|
97
|
-
</o-button>
|
|
98
|
-
|
|
99
|
-
<o-input placeholder="Search..." type="search" icon="search" />
|
|
100
|
-
</o-field>
|
|
101
|
-
|
|
102
|
-
<o-field>
|
|
103
|
-
<o-button variant="primary" label="Button" />
|
|
104
|
-
<o-dropdown>
|
|
105
|
-
<template #trigger>
|
|
106
|
-
<o-button variant="primary" icon-right="caret-down" />
|
|
107
|
-
</template>
|
|
108
|
-
|
|
109
|
-
<o-dropdown-item label="Action" />
|
|
110
|
-
<o-dropdown-item label="Another action" />
|
|
111
|
-
<o-dropdown-item label="Something else" />
|
|
112
|
-
</o-dropdown>
|
|
113
|
-
</o-field>
|
|
114
|
-
|
|
115
|
-
<o-field>
|
|
116
|
-
<o-button variant="primary" label="Button" />
|
|
117
|
-
<o-dropdown>
|
|
118
|
-
<template #trigger>
|
|
119
|
-
<o-button variant="primary" icon-right="caret-down" />
|
|
120
|
-
</template>
|
|
121
|
-
|
|
122
|
-
<o-dropdown-item label="Action" />
|
|
123
|
-
<o-dropdown-item label="Another action" />
|
|
124
|
-
<o-dropdown-item label="Something else" />
|
|
125
|
-
</o-dropdown>
|
|
126
|
-
<o-button variant="primary" label="Button" />
|
|
127
|
-
</o-field>
|
|
128
|
-
|
|
129
|
-
<o-field>
|
|
130
|
-
<o-input icon="search" type="search" placeholder="Search..." />
|
|
131
|
-
<o-dropdown>
|
|
132
|
-
<template #trigger>
|
|
133
|
-
<o-button label="Filters" icon="caret-down" />
|
|
134
|
-
</template>
|
|
135
|
-
<o-dropdown-item
|
|
136
|
-
value="open_issues"
|
|
137
|
-
label="Open Issues and Pull Requests" />
|
|
138
|
-
<o-dropdown-item value="your_issues" label="Your Issues" />
|
|
139
|
-
<o-dropdown-item value="pull_requests" label="Your Pull Requests" />
|
|
140
|
-
<o-dropdown-item value="everything" label="Everything" />
|
|
141
|
-
</o-dropdown>
|
|
142
|
-
</o-field>
|
|
143
|
-
</section>
|
|
144
|
-
|
|
145
|
-
<section>
|
|
146
|
-
<h3>Grouped</h3>
|
|
147
|
-
|
|
148
|
-
<o-field grouped variant="danger" message="What do you want to search?">
|
|
149
|
-
<o-input placeholder="Search..." />
|
|
150
|
-
<o-button variant="primary" label="Search" />
|
|
151
|
-
</o-field>
|
|
152
|
-
|
|
153
|
-
<o-field grouped message="What do you want to search?">
|
|
154
|
-
<o-input placeholder="Search..." expanded />
|
|
155
|
-
<o-button variant="primary" label="Search" />
|
|
156
|
-
</o-field>
|
|
157
|
-
|
|
158
|
-
<o-field grouped group-multiline>
|
|
159
|
-
<o-input />
|
|
160
|
-
<o-button>First</o-button>
|
|
161
|
-
<o-button>Second</o-button>
|
|
162
|
-
<o-button>Third</o-button>
|
|
163
|
-
<o-button>Fourth</o-button>
|
|
164
|
-
<o-button>Fifth</o-button>
|
|
165
|
-
<o-button>Sixth</o-button>
|
|
166
|
-
<o-button>Seventh</o-button>
|
|
167
|
-
<o-button>Eighth</o-button>
|
|
168
|
-
</o-field>
|
|
169
|
-
</section>
|
|
170
|
-
|
|
171
|
-
<section class="py-4 container">
|
|
172
|
-
<h3>Horizontal</h3>
|
|
173
|
-
|
|
174
|
-
<o-field
|
|
175
|
-
horizontal
|
|
176
|
-
label="Subject"
|
|
177
|
-
variant="danger"
|
|
178
|
-
message="Please enter a subject">
|
|
179
|
-
<o-input name="subject" icon="pen" expanded />
|
|
180
|
-
</o-field>
|
|
181
|
-
|
|
182
|
-
<o-field horizontal label="From">
|
|
183
|
-
<o-input name="name" placeholder="Name" icon="user" expanded />
|
|
184
|
-
<o-input
|
|
185
|
-
name="email"
|
|
186
|
-
type="email"
|
|
187
|
-
placeholder="nobody@nowhere.com"
|
|
188
|
-
icon="at"
|
|
189
|
-
expanded />
|
|
190
|
-
</o-field>
|
|
191
|
-
|
|
192
|
-
<o-field horizontal label="Topic">
|
|
193
|
-
<o-select placeholder="Select a topic" icon="book" expanded>
|
|
194
|
-
<option value="1">Oruga</option>
|
|
195
|
-
<option value="2">Vue.js</option>
|
|
196
|
-
<option value="3">UI</option>
|
|
197
|
-
</o-select>
|
|
198
|
-
</o-field>
|
|
199
|
-
|
|
200
|
-
<o-field horizontal label="Message">
|
|
201
|
-
<o-input type="textarea" expanded />
|
|
202
|
-
</o-field>
|
|
203
|
-
|
|
204
|
-
<o-field horizontal>
|
|
205
|
-
<!-- Label left empty for spacing -->
|
|
206
|
-
<o-button
|
|
207
|
-
variant="primary"
|
|
208
|
-
icon-left="envelope"
|
|
209
|
-
outlined
|
|
210
|
-
label="Send message" />
|
|
211
|
-
</o-field>
|
|
212
|
-
</section>
|
|
213
|
-
|
|
214
|
-
<section>
|
|
215
|
-
<h3>Slot</h3>
|
|
216
|
-
|
|
217
|
-
<o-field horizontal>
|
|
218
|
-
<template #label>
|
|
219
|
-
With tooltip
|
|
220
|
-
<o-tooltip label="Help text here for explanation">
|
|
221
|
-
<o-icon size="small" icon="question-circle" />
|
|
222
|
-
</o-tooltip>
|
|
223
|
-
</template>
|
|
224
|
-
<o-input size="medium" />
|
|
225
|
-
</o-field>
|
|
226
|
-
|
|
227
|
-
<o-field>
|
|
228
|
-
<template #label> Label with custom <i>style</i> </template>
|
|
229
|
-
<o-input />
|
|
230
|
-
<template #message>
|
|
231
|
-
<small>Message with custom <b>style</b> </small>
|
|
232
|
-
</template>
|
|
233
|
-
</o-field>
|
|
234
|
-
</section>
|
|
235
|
-
</template>
|
package/src/components/Icon.vue
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section>
|
|
3
|
-
<h2>Icon Demo</h2>
|
|
4
|
-
<hr />
|
|
5
|
-
</section>
|
|
6
|
-
|
|
7
|
-
<section>
|
|
8
|
-
<h3>Base</h3>
|
|
9
|
-
|
|
10
|
-
<o-field>
|
|
11
|
-
<o-icon pack="fas" icon="user" size="small" />
|
|
12
|
-
<o-icon pack="fas" icon="home" size="small" />
|
|
13
|
-
<o-icon pack="fas" icon="tachometer-alt" size="small" />
|
|
14
|
-
</o-field>
|
|
15
|
-
|
|
16
|
-
<o-field>
|
|
17
|
-
<o-icon pack="fas" icon="user" />
|
|
18
|
-
<o-icon pack="fas" icon="home" />
|
|
19
|
-
<o-icon pack="fas" icon="tachometer-alt" />
|
|
20
|
-
</o-field>
|
|
21
|
-
|
|
22
|
-
<o-field>
|
|
23
|
-
<o-icon pack="fas" icon="user" size="medium" />
|
|
24
|
-
<o-icon pack="fas" icon="home" size="medium" />
|
|
25
|
-
<o-icon pack="fas" icon="tachometer-alt" size="medium" />
|
|
26
|
-
</o-field>
|
|
27
|
-
|
|
28
|
-
<o-field>
|
|
29
|
-
<o-icon pack="fas" icon="user" size="large" variant="success" clickable />
|
|
30
|
-
<o-icon pack="fas" icon="home" size="large" variant="info" clickable />
|
|
31
|
-
<o-icon
|
|
32
|
-
pack="fas"
|
|
33
|
-
icon="tachometer-alt"
|
|
34
|
-
size="large"
|
|
35
|
-
variant="primary"
|
|
36
|
-
clickable />
|
|
37
|
-
</o-field>
|
|
38
|
-
</section>
|
|
39
|
-
|
|
40
|
-
<section>
|
|
41
|
-
<h3>Buttons</h3>
|
|
42
|
-
|
|
43
|
-
<div class="buttons">
|
|
44
|
-
<o-button variant="success">
|
|
45
|
-
<o-icon pack="fas" icon="check" />
|
|
46
|
-
<span>Finish</span>
|
|
47
|
-
</o-button>
|
|
48
|
-
|
|
49
|
-
<o-button variant="warning">
|
|
50
|
-
<o-icon pack="fas" icon="check" />
|
|
51
|
-
<span>Finish</span>
|
|
52
|
-
</o-button>
|
|
53
|
-
|
|
54
|
-
<o-button variant="warning">
|
|
55
|
-
<o-icon pack="fas" icon="sync-alt" spin />
|
|
56
|
-
<span>Refresh</span>
|
|
57
|
-
</o-button>
|
|
58
|
-
</div>
|
|
59
|
-
</section>
|
|
60
|
-
</template>
|
|
61
|
-
|
|
62
|
-
<style lang="scss" scoped>
|
|
63
|
-
.o-icon:not(:last-child) {
|
|
64
|
-
margin-right: 0.5rem;
|
|
65
|
-
}
|
|
66
|
-
</style>
|