@oruga-ui/theme-oruga 0.0.1 → 0.2.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/dist/oruga-full.css +530 -388
- package/dist/oruga-full.min.css +1 -1
- package/dist/oruga.css +364 -225
- package/dist/oruga.min.css +1 -1
- package/dist/scss/components/_autocomplete.scss +0 -62
- package/dist/scss/components/_carousel.scss +10 -6
- package/dist/scss/components/_checkbox.scss +4 -4
- package/dist/scss/components/_datepicker.scss +11 -11
- package/dist/scss/components/_dropdown.scss +144 -31
- package/dist/scss/components/_field.scss +8 -8
- package/dist/scss/components/_icon.scss +3 -1
- package/dist/scss/components/_input.scss +38 -40
- package/dist/scss/components/_menu.scss +68 -68
- package/dist/scss/components/_pagination.scss +22 -22
- package/dist/scss/components/_radio.scss +8 -10
- package/dist/scss/components/_sidebar.scss +147 -42
- package/dist/scss/components/_switch.scss +4 -2
- package/dist/scss/components/_table.scss +14 -10
- package/dist/scss/components/_taginput.scss +163 -0
- package/dist/scss/components/_tooltip.scss +422 -218
- package/dist/scss/oruga-common.scss +1 -1
- package/dist/scss/oruga.scss +15 -20
- package/dist/scss/utils/_helpers.scss +3 -7
- package/dist/scss/utils/_variables.scss +0 -1
- package/package.json +28 -28
- package/src/App.vue +1 -0
- package/src/assets/scss/components/_autocomplete.scss +0 -62
- package/src/assets/scss/components/_carousel.scss +10 -6
- package/src/assets/scss/components/_checkbox.scss +4 -4
- package/src/assets/scss/components/_datepicker.scss +11 -11
- package/src/assets/scss/components/_dropdown.scss +144 -31
- package/src/assets/scss/components/_field.scss +8 -8
- package/src/assets/scss/components/_icon.scss +3 -1
- package/src/assets/scss/components/_input.scss +38 -40
- package/src/assets/scss/components/_menu.scss +68 -68
- package/src/assets/scss/components/_pagination.scss +22 -22
- package/src/assets/scss/components/_radio.scss +8 -10
- package/src/assets/scss/components/_sidebar.scss +147 -42
- package/src/assets/scss/components/_switch.scss +4 -2
- package/src/assets/scss/components/_table.scss +14 -10
- package/src/assets/scss/components/_taginput.scss +163 -0
- package/src/assets/scss/components/_tooltip.scss +422 -218
- package/src/assets/scss/oruga-common.scss +1 -1
- package/src/assets/scss/oruga.scss +15 -20
- package/src/assets/scss/utils/_helpers.scss +3 -7
- package/src/assets/scss/utils/_variables.scss +0 -1
- package/src/components/Autocomplete.vue +7 -7
- package/src/components/Button.vue +28 -28
- package/src/components/Carousel.vue +19 -20
- package/src/components/Checkbox.vue +43 -42
- package/src/components/Collapse.vue +3 -1
- package/src/components/Datepicker.vue +7 -10
- package/src/components/Datetimepicker.vue +4 -4
- package/src/components/Dropdown.vue +146 -101
- package/src/components/Field.vue +35 -43
- package/src/components/Icon.vue +1 -1
- package/src/components/Input.vue +9 -1
- package/src/components/Loading.vue +13 -14
- package/src/components/Menu.vue +42 -0
- package/src/components/Modal.vue +59 -0
- package/src/components/Notification.vue +6 -6
- package/src/components/Pagination.vue +5 -6
- package/src/components/Radio.vue +55 -39
- package/src/components/Sidebar.vue +34 -17
- package/src/components/Skeleton.vue +43 -25
- package/src/components/Slider.vue +2 -2
- package/src/components/Steps.vue +13 -14
- package/src/components/Switch.vue +22 -19
- package/src/components/Table.vue +30 -37
- package/src/components/Tabs.vue +3 -2
- package/src/components/Taginput.vue +14 -14
- package/src/components/Timepicker.vue +4 -6
- package/src/components/Tooltip.vue +54 -16
- package/dist/scss/components/_inputitems.scss +0 -175
- package/src/assets/scss/components/_inputitems.scss +0 -175
|
@@ -14,6 +14,7 @@ const menus = ref([
|
|
|
14
14
|
{ icon: "cog", text: "Configuration" },
|
|
15
15
|
]);
|
|
16
16
|
const selectedOptions = ref([]);
|
|
17
|
+
const teleport = ref(false);
|
|
17
18
|
</script>
|
|
18
19
|
|
|
19
20
|
<template>
|
|
@@ -26,46 +27,52 @@ const selectedOptions = ref([]);
|
|
|
26
27
|
<h3>Base</h3>
|
|
27
28
|
|
|
28
29
|
<div class="dropdown-example">
|
|
29
|
-
<o-dropdown
|
|
30
|
-
<template #trigger>
|
|
30
|
+
<o-dropdown>
|
|
31
|
+
<template #trigger="{ active }">
|
|
31
32
|
<o-button
|
|
32
33
|
variant="primary"
|
|
33
|
-
|
|
34
|
+
:icon-right="active ? 'caret-up' : 'caret-down'"
|
|
34
35
|
label="Click me!" />
|
|
35
36
|
</template>
|
|
36
37
|
|
|
37
|
-
<o-dropdown-item
|
|
38
|
-
<o-dropdown-item
|
|
39
|
-
<o-dropdown-item
|
|
38
|
+
<o-dropdown-item label="Action" />
|
|
39
|
+
<o-dropdown-item label="Another action" />
|
|
40
|
+
<o-dropdown-item label="Something else" />
|
|
40
41
|
</o-dropdown>
|
|
41
42
|
</div>
|
|
42
43
|
|
|
43
44
|
<div class="dropdown-example">
|
|
44
|
-
<o-dropdown :triggers="['hover']"
|
|
45
|
-
<template #trigger>
|
|
46
|
-
<o-button
|
|
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'" />
|
|
47
51
|
</template>
|
|
48
52
|
|
|
49
|
-
<o-dropdown-item
|
|
50
|
-
<o-dropdown-item
|
|
51
|
-
<o-dropdown-item
|
|
53
|
+
<o-dropdown-item label="Action" />
|
|
54
|
+
<o-dropdown-item label="Another action" />
|
|
55
|
+
<o-dropdown-item label="Something else" />
|
|
52
56
|
</o-dropdown>
|
|
53
57
|
</div>
|
|
54
58
|
|
|
55
59
|
<div class="dropdown-example">
|
|
56
|
-
<o-dropdown disabled
|
|
57
|
-
<template #trigger>
|
|
58
|
-
<o-button
|
|
60
|
+
<o-dropdown disabled>
|
|
61
|
+
<template #trigger="{ active }">
|
|
62
|
+
<o-button
|
|
63
|
+
label="Disabled"
|
|
64
|
+
disabled
|
|
65
|
+
:icon-right="active ? 'caret-up' : 'caret-down'" />
|
|
59
66
|
</template>
|
|
60
67
|
|
|
61
|
-
<o-dropdown-item
|
|
62
|
-
<o-dropdown-item
|
|
63
|
-
<o-dropdown-item
|
|
68
|
+
<o-dropdown-item label="Action" />
|
|
69
|
+
<o-dropdown-item label="Another action" />
|
|
70
|
+
<o-dropdown-item label="Something else" />
|
|
64
71
|
</o-dropdown>
|
|
65
72
|
</div>
|
|
66
73
|
|
|
67
74
|
<div class="dropdown-example">
|
|
68
|
-
<o-dropdown
|
|
75
|
+
<o-dropdown>
|
|
69
76
|
<template #trigger="{ active }">
|
|
70
77
|
<span role="button">
|
|
71
78
|
Custom
|
|
@@ -75,21 +82,21 @@ const selectedOptions = ref([]);
|
|
|
75
82
|
</span>
|
|
76
83
|
</template>
|
|
77
84
|
|
|
78
|
-
<o-dropdown-item
|
|
79
|
-
<o-dropdown-item
|
|
80
|
-
<o-dropdown-item
|
|
85
|
+
<o-dropdown-item label="Action" />
|
|
86
|
+
<o-dropdown-item label="Another action" />
|
|
87
|
+
<o-dropdown-item label="Something else" />
|
|
81
88
|
</o-dropdown>
|
|
82
89
|
</div>
|
|
83
90
|
|
|
84
91
|
<div class="dropdown-example">
|
|
85
|
-
<o-dropdown :triggers="['contextmenu']"
|
|
92
|
+
<o-dropdown :triggers="['contextmenu']">
|
|
86
93
|
<template #trigger>
|
|
87
94
|
<o-button label="Right click" />
|
|
88
95
|
</template>
|
|
89
96
|
|
|
90
|
-
<o-dropdown-item
|
|
91
|
-
<o-dropdown-item
|
|
92
|
-
<o-dropdown-item
|
|
97
|
+
<o-dropdown-item label="Action" />
|
|
98
|
+
<o-dropdown-item label="Another action" />
|
|
99
|
+
<o-dropdown-item label="Something else" />
|
|
93
100
|
</o-dropdown>
|
|
94
101
|
</div>
|
|
95
102
|
</section>
|
|
@@ -98,20 +105,14 @@ const selectedOptions = ref([]);
|
|
|
98
105
|
<h3>Inline</h3>
|
|
99
106
|
|
|
100
107
|
<div class="dropdown-example">
|
|
101
|
-
<o-dropdown inline
|
|
108
|
+
<o-dropdown inline>
|
|
102
109
|
<template #trigger>
|
|
103
110
|
<o-button label="Inline" />
|
|
104
111
|
</template>
|
|
105
112
|
|
|
106
|
-
<o-dropdown-item
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<o-dropdown-item aria-role="listitem" value="2">
|
|
110
|
-
Another action
|
|
111
|
-
</o-dropdown-item>
|
|
112
|
-
<o-dropdown-item aria-role="listitem" value="3">
|
|
113
|
-
Something else
|
|
114
|
-
</o-dropdown-item>
|
|
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 " />
|
|
115
116
|
</o-dropdown>
|
|
116
117
|
</div>
|
|
117
118
|
</section>
|
|
@@ -121,32 +122,30 @@ const selectedOptions = ref([]);
|
|
|
121
122
|
|
|
122
123
|
<div>
|
|
123
124
|
<o-field>
|
|
124
|
-
<o-switch v-model="isScrollable"
|
|
125
|
+
<o-switch v-model="isScrollable" label="Scrollable" />
|
|
125
126
|
</o-field>
|
|
126
127
|
</div>
|
|
127
128
|
|
|
128
129
|
<o-dropdown
|
|
129
130
|
v-model="currentMenu"
|
|
130
131
|
:scrollable="isScrollable"
|
|
131
|
-
:max-height="maxHeight"
|
|
132
|
-
aria-role="list">
|
|
132
|
+
:max-height="maxHeight">
|
|
133
133
|
<template #trigger>
|
|
134
|
-
<o-button
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
<o-button
|
|
135
|
+
variant="primary"
|
|
136
|
+
type="button"
|
|
137
|
+
:label="currentMenu.text"
|
|
138
|
+
:icon-left="currentMenu.icon"
|
|
139
|
+
icon-right="caret-down" />
|
|
138
140
|
</template>
|
|
139
141
|
|
|
140
142
|
<o-dropdown-item
|
|
141
143
|
v-for="(menu, index) in menus"
|
|
142
144
|
:key="index"
|
|
143
|
-
:value="menu"
|
|
144
|
-
aria-role="listitem">
|
|
145
|
+
:value="menu">
|
|
145
146
|
<div class="media">
|
|
146
147
|
<o-icon class="media-left" :icon="menu.icon" />
|
|
147
|
-
<div class="media-content">
|
|
148
|
-
<span>{{ menu.text }}</span>
|
|
149
|
-
</div>
|
|
148
|
+
<div class="media-content">{{ menu.text }}</div>
|
|
150
149
|
</div>
|
|
151
150
|
</o-dropdown-item>
|
|
152
151
|
</o-dropdown>
|
|
@@ -156,91 +155,135 @@ const selectedOptions = ref([]);
|
|
|
156
155
|
<h3>Multiple</h3>
|
|
157
156
|
|
|
158
157
|
<p><b>selected</b>: {{ selectedOptions }}</p>
|
|
159
|
-
<o-dropdown v-model="selectedOptions" multiple
|
|
158
|
+
<o-dropdown v-model="selectedOptions" multiple>
|
|
160
159
|
<template #trigger>
|
|
161
|
-
<o-button variant="primary" type="button"
|
|
162
|
-
|
|
160
|
+
<o-button variant="primary" type="button">
|
|
161
|
+
Selected ({{ selectedOptions.length }})
|
|
163
162
|
</o-button>
|
|
164
163
|
</template>
|
|
165
164
|
|
|
166
|
-
<o-dropdown-item value="option1"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<o-dropdown-item value="option2" aria-role="listitem">
|
|
171
|
-
Option 2
|
|
172
|
-
</o-dropdown-item>
|
|
173
|
-
|
|
174
|
-
<o-dropdown-item value="option3" aria-role="listitem">
|
|
175
|
-
Option 3
|
|
176
|
-
</o-dropdown-item>
|
|
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" />
|
|
177
168
|
</o-dropdown>
|
|
178
169
|
</section>
|
|
179
170
|
|
|
180
171
|
<section>
|
|
181
172
|
<h3>Positioning & Expanded</h3>
|
|
182
173
|
|
|
174
|
+
<o-field>
|
|
175
|
+
<o-switch v-model="teleport" label="teleport" />
|
|
176
|
+
</o-field>
|
|
177
|
+
|
|
183
178
|
<div class="dropdown-example expanded">
|
|
184
|
-
<o-dropdown position="
|
|
179
|
+
<o-dropdown position="auto" expanded :teleport="teleport">
|
|
185
180
|
<template #trigger>
|
|
186
|
-
<o-button
|
|
187
|
-
class="dropdown-toggle"
|
|
188
|
-
variant="primary"
|
|
189
|
-
label="Position top right"
|
|
190
|
-
expanded />
|
|
181
|
+
<o-button variant="primary" label="Position Auto" expanded />
|
|
191
182
|
</template>
|
|
192
183
|
|
|
193
|
-
<o-dropdown-item
|
|
194
|
-
<o-dropdown-item
|
|
195
|
-
<o-dropdown-item
|
|
184
|
+
<o-dropdown-item label="Action" />
|
|
185
|
+
<o-dropdown-item label="Another action" />
|
|
186
|
+
<o-dropdown-item label="Something else" />
|
|
196
187
|
</o-dropdown>
|
|
197
188
|
</div>
|
|
198
189
|
|
|
199
|
-
<
|
|
200
|
-
|
|
190
|
+
<hr />
|
|
191
|
+
|
|
192
|
+
<div class="dropdown-example">
|
|
193
|
+
<o-dropdown :teleport="teleport" position="right">
|
|
201
194
|
<template #trigger>
|
|
202
|
-
<o-button
|
|
203
|
-
class="dropdown-toggle"
|
|
204
|
-
variant="primary"
|
|
205
|
-
label="Position top left"
|
|
206
|
-
expanded />
|
|
195
|
+
<o-button label="Append to right" />
|
|
207
196
|
</template>
|
|
208
197
|
|
|
209
|
-
<o-dropdown-item
|
|
210
|
-
<o-dropdown-item
|
|
211
|
-
<o-dropdown-item
|
|
198
|
+
<o-dropdown-item label="Action" />
|
|
199
|
+
<o-dropdown-item label="Another action" />
|
|
200
|
+
<o-dropdown-item label="Something else" />
|
|
212
201
|
</o-dropdown>
|
|
213
202
|
</div>
|
|
214
203
|
|
|
215
|
-
<div class="dropdown-example
|
|
216
|
-
<o-dropdown
|
|
204
|
+
<div class="dropdown-example">
|
|
205
|
+
<o-dropdown :teleport="teleport" position="left">
|
|
217
206
|
<template #trigger>
|
|
218
|
-
<o-button
|
|
219
|
-
class="dropdown-toggle"
|
|
220
|
-
variant="primary"
|
|
221
|
-
label="Position bottom left"
|
|
222
|
-
expanded />
|
|
207
|
+
<o-button label="Append to left" />
|
|
223
208
|
</template>
|
|
224
209
|
|
|
225
|
-
<o-dropdown-item
|
|
226
|
-
<o-dropdown-item
|
|
227
|
-
<o-dropdown-item
|
|
210
|
+
<o-dropdown-item label="Action" />
|
|
211
|
+
<o-dropdown-item label="Another action" />
|
|
212
|
+
<o-dropdown-item label="Something else" />
|
|
228
213
|
</o-dropdown>
|
|
229
214
|
</div>
|
|
230
215
|
|
|
231
|
-
<div class="dropdown-example
|
|
232
|
-
<o-dropdown
|
|
216
|
+
<div class="dropdown-example">
|
|
217
|
+
<o-dropdown :teleport="teleport" position="top">
|
|
233
218
|
<template #trigger>
|
|
234
|
-
<o-button
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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" />
|
|
239
246
|
</template>
|
|
240
247
|
|
|
241
|
-
<o-dropdown-item
|
|
242
|
-
<o-dropdown-item
|
|
243
|
-
<o-dropdown-item
|
|
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" />
|
|
244
287
|
</o-dropdown>
|
|
245
288
|
</div>
|
|
246
289
|
</section>
|
|
@@ -266,6 +309,7 @@ const selectedOptions = ref([]);
|
|
|
266
309
|
align-items: flex-start;
|
|
267
310
|
display: flex;
|
|
268
311
|
text-align: left;
|
|
312
|
+
|
|
269
313
|
.media-content {
|
|
270
314
|
flex-basis: auto;
|
|
271
315
|
flex-grow: 1;
|
|
@@ -274,6 +318,7 @@ const selectedOptions = ref([]);
|
|
|
274
318
|
overflow-y: hidden;
|
|
275
319
|
overflow-x: auto;
|
|
276
320
|
}
|
|
321
|
+
|
|
277
322
|
.media-left {
|
|
278
323
|
margin-right: 1rem;
|
|
279
324
|
flex-basis: auto;
|
package/src/components/Field.vue
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<h3>Base</h3>
|
|
9
9
|
|
|
10
10
|
<o-field label="Name">
|
|
11
|
-
<o-input value="Kevin Garvey" />
|
|
11
|
+
<o-input value="Kevin Garvey" expanded />
|
|
12
12
|
</o-field>
|
|
13
13
|
|
|
14
14
|
<o-field
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
variant="danger"
|
|
17
17
|
message-variant="info"
|
|
18
18
|
message="This email is invalid">
|
|
19
|
-
<o-input type="email" value="john@" maxlength="30" />
|
|
19
|
+
<o-input type="email" value="john@" maxlength="30" expanded />
|
|
20
20
|
</o-field>
|
|
21
21
|
|
|
22
22
|
<o-field
|
|
23
23
|
label="Username"
|
|
24
24
|
variant="success"
|
|
25
25
|
message="This username is available">
|
|
26
|
-
<o-input value="johnsilver" maxlength="30" has-counter />
|
|
26
|
+
<o-input value="johnsilver" maxlength="30" has-counter expanded />
|
|
27
27
|
</o-field>
|
|
28
28
|
|
|
29
29
|
<o-field label="Password" variant="warning">
|
|
30
|
-
<o-input value="123" type="password" maxlength="30" />
|
|
30
|
+
<o-input value="123" type="password" maxlength="30" expanded />
|
|
31
31
|
</o-field>
|
|
32
32
|
|
|
33
33
|
<o-field label="Subject" grouped>
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
|
|
54
54
|
<o-field variant="danger">
|
|
55
55
|
<o-input placeholder="Search..." type="search" icon="search" />
|
|
56
|
-
<o-button variant="primary"
|
|
56
|
+
<o-button variant="primary" label="Search" />
|
|
57
57
|
</o-field>
|
|
58
58
|
|
|
59
59
|
<o-field>
|
|
60
60
|
<o-input placeholder="This is expanded" expanded />
|
|
61
|
-
<o-button
|
|
61
|
+
<o-button label="@gmail.com" />
|
|
62
62
|
</o-field>
|
|
63
63
|
|
|
64
64
|
<o-field>
|
|
@@ -67,9 +67,8 @@
|
|
|
67
67
|
<option>£</option>
|
|
68
68
|
<option>€</option>
|
|
69
69
|
</o-select>
|
|
70
|
-
<o-input type="number" placeholder="0,00"
|
|
71
|
-
|
|
72
|
-
</o-button>
|
|
70
|
+
<o-input type="number" placeholder="0,00" />
|
|
71
|
+
<o-button variant="success" label="Transfer" />
|
|
73
72
|
</o-field>
|
|
74
73
|
|
|
75
74
|
<o-field>
|
|
@@ -101,53 +100,44 @@
|
|
|
101
100
|
</o-field>
|
|
102
101
|
|
|
103
102
|
<o-field>
|
|
104
|
-
<o-button variant="primary"
|
|
103
|
+
<o-button variant="primary" label="Button" />
|
|
105
104
|
<o-dropdown>
|
|
106
105
|
<template #trigger>
|
|
107
|
-
<o-button variant="primary"
|
|
108
|
-
<o-icon icon="caret-down" />
|
|
109
|
-
</o-button>
|
|
106
|
+
<o-button variant="primary" icon-right="caret-down" />
|
|
110
107
|
</template>
|
|
111
108
|
|
|
112
|
-
<o-dropdown-item
|
|
113
|
-
<o-dropdown-item
|
|
114
|
-
<o-dropdown-item
|
|
109
|
+
<o-dropdown-item label="Action" />
|
|
110
|
+
<o-dropdown-item label="Another action" />
|
|
111
|
+
<o-dropdown-item label="Something else" />
|
|
115
112
|
</o-dropdown>
|
|
116
113
|
</o-field>
|
|
117
114
|
|
|
118
115
|
<o-field>
|
|
119
|
-
<o-button variant="primary"
|
|
116
|
+
<o-button variant="primary" label="Button" />
|
|
120
117
|
<o-dropdown>
|
|
121
118
|
<template #trigger>
|
|
122
|
-
<o-button variant="primary"
|
|
123
|
-
<o-icon icon="caret-down" />
|
|
124
|
-
</o-button>
|
|
119
|
+
<o-button variant="primary" icon-right="caret-down" />
|
|
125
120
|
</template>
|
|
126
121
|
|
|
127
|
-
<o-dropdown-item
|
|
128
|
-
<o-dropdown-item
|
|
129
|
-
<o-dropdown-item
|
|
122
|
+
<o-dropdown-item label="Action" />
|
|
123
|
+
<o-dropdown-item label="Another action" />
|
|
124
|
+
<o-dropdown-item label="Something else" />
|
|
130
125
|
</o-dropdown>
|
|
131
|
-
<o-button variant="primary"
|
|
126
|
+
<o-button variant="primary" label="Button" />
|
|
132
127
|
</o-field>
|
|
133
128
|
|
|
134
129
|
<o-field>
|
|
135
130
|
<o-input icon="search" type="search" placeholder="Search..." />
|
|
136
131
|
<o-dropdown>
|
|
137
132
|
<template #trigger>
|
|
138
|
-
<o-button
|
|
139
|
-
<span>Filters</span>
|
|
140
|
-
<o-icon icon="caret-down" />
|
|
141
|
-
</o-button>
|
|
133
|
+
<o-button label="Filters" icon="caret-down" />
|
|
142
134
|
</template>
|
|
143
|
-
<o-dropdown-item
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<o-dropdown-item value="your_issues"
|
|
147
|
-
<o-dropdown-item value="pull_requests"
|
|
148
|
-
|
|
149
|
-
</o-dropdown-item>
|
|
150
|
-
<o-dropdown-item value="everything">Everything</o-dropdown-item>
|
|
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" />
|
|
151
141
|
</o-dropdown>
|
|
152
142
|
</o-field>
|
|
153
143
|
</section>
|
|
@@ -157,12 +147,12 @@
|
|
|
157
147
|
|
|
158
148
|
<o-field grouped variant="danger" message="What do you want to search?">
|
|
159
149
|
<o-input placeholder="Search..." />
|
|
160
|
-
<o-button variant="primary"
|
|
150
|
+
<o-button variant="primary" label="Search" />
|
|
161
151
|
</o-field>
|
|
162
152
|
|
|
163
153
|
<o-field grouped message="What do you want to search?">
|
|
164
154
|
<o-input placeholder="Search..." expanded />
|
|
165
|
-
<o-button variant="primary"
|
|
155
|
+
<o-button variant="primary" label="Search" />
|
|
166
156
|
</o-field>
|
|
167
157
|
|
|
168
158
|
<o-field grouped group-multiline>
|
|
@@ -200,7 +190,7 @@
|
|
|
200
190
|
</o-field>
|
|
201
191
|
|
|
202
192
|
<o-field horizontal label="Topic">
|
|
203
|
-
<o-select placeholder="Select a topic" icon="book">
|
|
193
|
+
<o-select placeholder="Select a topic" icon="book" expanded>
|
|
204
194
|
<option value="1">Oruga</option>
|
|
205
195
|
<option value="2">Vue.js</option>
|
|
206
196
|
<option value="3">UI</option>
|
|
@@ -208,14 +198,16 @@
|
|
|
208
198
|
</o-field>
|
|
209
199
|
|
|
210
200
|
<o-field horizontal label="Message">
|
|
211
|
-
<o-input type="textarea" />
|
|
201
|
+
<o-input type="textarea" expanded />
|
|
212
202
|
</o-field>
|
|
213
203
|
|
|
214
204
|
<o-field horizontal>
|
|
215
205
|
<!-- Label left empty for spacing -->
|
|
216
|
-
<o-button
|
|
217
|
-
|
|
218
|
-
|
|
206
|
+
<o-button
|
|
207
|
+
variant="primary"
|
|
208
|
+
icon-left="envelope"
|
|
209
|
+
outlined
|
|
210
|
+
label="Send message" />
|
|
219
211
|
</o-field>
|
|
220
212
|
</section>
|
|
221
213
|
|
package/src/components/Icon.vue
CHANGED
package/src/components/Input.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</o-field>
|
|
13
13
|
|
|
14
14
|
<o-field label="Email" variant="danger" message="This email is invalid">
|
|
15
|
-
<o-input type="email" value="john@" maxlength="30" />
|
|
15
|
+
<o-input type="email" value="john@" maxlength="30" expanded />
|
|
16
16
|
</o-field>
|
|
17
17
|
|
|
18
18
|
<o-field
|
|
@@ -50,18 +50,23 @@
|
|
|
50
50
|
<o-field label="Primary" variant="primary">
|
|
51
51
|
<o-input placeholder="Primary" />
|
|
52
52
|
</o-field>
|
|
53
|
+
|
|
53
54
|
<o-field label="Secondary" variant="secondary">
|
|
54
55
|
<o-input placeholder="Secondary" />
|
|
55
56
|
</o-field>
|
|
57
|
+
|
|
56
58
|
<o-field label="Success" variant="success">
|
|
57
59
|
<o-input placeholder="Success" />
|
|
58
60
|
</o-field>
|
|
61
|
+
|
|
59
62
|
<o-field label="Info" variant="info">
|
|
60
63
|
<o-input placeholder="Info" />
|
|
61
64
|
</o-field>
|
|
65
|
+
|
|
62
66
|
<o-field label="Warning" variant="warning">
|
|
63
67
|
<o-input placeholder="Warning" />
|
|
64
68
|
</o-field>
|
|
69
|
+
|
|
65
70
|
<o-field
|
|
66
71
|
label="Error"
|
|
67
72
|
variant="danger"
|
|
@@ -76,12 +81,15 @@
|
|
|
76
81
|
<o-field>
|
|
77
82
|
<o-input placeholder="small" size="small" icon="user" />
|
|
78
83
|
</o-field>
|
|
84
|
+
|
|
79
85
|
<o-field>
|
|
80
86
|
<o-input placeholder="default" icon="user" />
|
|
81
87
|
</o-field>
|
|
88
|
+
|
|
82
89
|
<o-field>
|
|
83
90
|
<o-input placeholder="medium" size="medium" icon="user" />
|
|
84
91
|
</o-field>
|
|
92
|
+
|
|
85
93
|
<o-field>
|
|
86
94
|
<o-input placeholder="Large" size="large" icon="user" />
|
|
87
95
|
</o-field>
|