@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.
Files changed (75) hide show
  1. package/dist/oruga-full.css +530 -388
  2. package/dist/oruga-full.min.css +1 -1
  3. package/dist/oruga.css +364 -225
  4. package/dist/oruga.min.css +1 -1
  5. package/dist/scss/components/_autocomplete.scss +0 -62
  6. package/dist/scss/components/_carousel.scss +10 -6
  7. package/dist/scss/components/_checkbox.scss +4 -4
  8. package/dist/scss/components/_datepicker.scss +11 -11
  9. package/dist/scss/components/_dropdown.scss +144 -31
  10. package/dist/scss/components/_field.scss +8 -8
  11. package/dist/scss/components/_icon.scss +3 -1
  12. package/dist/scss/components/_input.scss +38 -40
  13. package/dist/scss/components/_menu.scss +68 -68
  14. package/dist/scss/components/_pagination.scss +22 -22
  15. package/dist/scss/components/_radio.scss +8 -10
  16. package/dist/scss/components/_sidebar.scss +147 -42
  17. package/dist/scss/components/_switch.scss +4 -2
  18. package/dist/scss/components/_table.scss +14 -10
  19. package/dist/scss/components/_taginput.scss +163 -0
  20. package/dist/scss/components/_tooltip.scss +422 -218
  21. package/dist/scss/oruga-common.scss +1 -1
  22. package/dist/scss/oruga.scss +15 -20
  23. package/dist/scss/utils/_helpers.scss +3 -7
  24. package/dist/scss/utils/_variables.scss +0 -1
  25. package/package.json +28 -28
  26. package/src/App.vue +1 -0
  27. package/src/assets/scss/components/_autocomplete.scss +0 -62
  28. package/src/assets/scss/components/_carousel.scss +10 -6
  29. package/src/assets/scss/components/_checkbox.scss +4 -4
  30. package/src/assets/scss/components/_datepicker.scss +11 -11
  31. package/src/assets/scss/components/_dropdown.scss +144 -31
  32. package/src/assets/scss/components/_field.scss +8 -8
  33. package/src/assets/scss/components/_icon.scss +3 -1
  34. package/src/assets/scss/components/_input.scss +38 -40
  35. package/src/assets/scss/components/_menu.scss +68 -68
  36. package/src/assets/scss/components/_pagination.scss +22 -22
  37. package/src/assets/scss/components/_radio.scss +8 -10
  38. package/src/assets/scss/components/_sidebar.scss +147 -42
  39. package/src/assets/scss/components/_switch.scss +4 -2
  40. package/src/assets/scss/components/_table.scss +14 -10
  41. package/src/assets/scss/components/_taginput.scss +163 -0
  42. package/src/assets/scss/components/_tooltip.scss +422 -218
  43. package/src/assets/scss/oruga-common.scss +1 -1
  44. package/src/assets/scss/oruga.scss +15 -20
  45. package/src/assets/scss/utils/_helpers.scss +3 -7
  46. package/src/assets/scss/utils/_variables.scss +0 -1
  47. package/src/components/Autocomplete.vue +7 -7
  48. package/src/components/Button.vue +28 -28
  49. package/src/components/Carousel.vue +19 -20
  50. package/src/components/Checkbox.vue +43 -42
  51. package/src/components/Collapse.vue +3 -1
  52. package/src/components/Datepicker.vue +7 -10
  53. package/src/components/Datetimepicker.vue +4 -4
  54. package/src/components/Dropdown.vue +146 -101
  55. package/src/components/Field.vue +35 -43
  56. package/src/components/Icon.vue +1 -1
  57. package/src/components/Input.vue +9 -1
  58. package/src/components/Loading.vue +13 -14
  59. package/src/components/Menu.vue +42 -0
  60. package/src/components/Modal.vue +59 -0
  61. package/src/components/Notification.vue +6 -6
  62. package/src/components/Pagination.vue +5 -6
  63. package/src/components/Radio.vue +55 -39
  64. package/src/components/Sidebar.vue +34 -17
  65. package/src/components/Skeleton.vue +43 -25
  66. package/src/components/Slider.vue +2 -2
  67. package/src/components/Steps.vue +13 -14
  68. package/src/components/Switch.vue +22 -19
  69. package/src/components/Table.vue +30 -37
  70. package/src/components/Tabs.vue +3 -2
  71. package/src/components/Taginput.vue +14 -14
  72. package/src/components/Timepicker.vue +4 -6
  73. package/src/components/Tooltip.vue +54 -16
  74. package/dist/scss/components/_inputitems.scss +0 -175
  75. package/src/assets/scss/components/_inputitems.scss +0 -175
@@ -20,15 +20,14 @@ const isCustomFullPage = ref(true);
20
20
  <o-button
21
21
  size="medium"
22
22
  variant="primary"
23
- @click="() => (isLoading = true)">
24
- Launch loading
25
- </o-button>
23
+ label="Launch loading"
24
+ @click="() => (isLoading = true)" />
26
25
  </o-field>
26
+
27
27
  <o-field>
28
- <o-switch v-model="isFullPage" disabled>
29
- Display loader over full page
30
- </o-switch>
28
+ <o-switch v-model="isFullPage" label="Display loader over full page" />
31
29
  </o-field>
30
+
32
31
  <p style="position: relative">
33
32
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
34
33
  fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
@@ -36,7 +35,7 @@ const isCustomFullPage = ref(true);
36
35
  <o-loading
37
36
  v-model:active="isLoading"
38
37
  :full-page="isFullPage"
39
- :can-cancel="true" />
38
+ :cancelable="true" />
40
39
  </p>
41
40
  </section>
42
41
 
@@ -47,15 +46,15 @@ const isCustomFullPage = ref(true);
47
46
  <o-button
48
47
  size="medium"
49
48
  variant="primary"
50
- @click="() => (isCustomLoading = true)">
51
- Launch loading
52
- </o-button>
49
+ label="Launch loading"
50
+ @click="() => (isCustomLoading = true)" />
53
51
  </o-field>
54
52
  <o-field>
55
- <o-switch v-model="isCustomFullPage">
56
- Display loader over full page
57
- </o-switch>
53
+ <o-switch
54
+ v-model="isCustomFullPage"
55
+ label="Display loader over full page" />
58
56
  </o-field>
57
+
59
58
  <p style="position: relative">
60
59
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
61
60
  fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
@@ -63,7 +62,7 @@ const isCustomFullPage = ref(true);
63
62
  <o-loading
64
63
  v-model:active="isCustomLoading"
65
64
  :full-page="isCustomFullPage"
66
- :can-cancel="true">
65
+ :cancelable="true">
67
66
  <o-icon pack="fas" icon="sync-alt" size="large" spin />
68
67
  </o-loading>
69
68
  </p>
@@ -0,0 +1,42 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <section>
5
+ <h2>Menu Demo</h2>
6
+ <hr />
7
+ </section>
8
+
9
+ <section>
10
+ <h3>Base</h3>
11
+
12
+ <o-menu label="Menu">
13
+ <o-menu-item icon="info-circle" label="Info" />
14
+ <o-menu-item icon="cog" expanded>
15
+ <template #label="props">
16
+ Administrator
17
+ <o-icon :icon="props.active ? 'chevron-up' : 'chevron-down'" />
18
+ </template>
19
+ <o-menu-item icon="user" label="Users" />
20
+ <o-menu-item icon="mobile">
21
+ <template #label> Devices </template>
22
+ </o-menu-item>
23
+ <o-menu-item icon="money-bill" label="Payments" disabled />
24
+ </o-menu-item>
25
+ <o-menu-item icon="user" label="My Account">
26
+ <o-menu-item label="Account data" />
27
+ <o-menu-item label="Addresses" />
28
+ </o-menu-item>
29
+ </o-menu>
30
+ <o-menu>
31
+ <o-menu-item
32
+ label="Documentation"
33
+ icon="link"
34
+ tag="a"
35
+ target="_blank"
36
+ href="/documentation/" />
37
+ </o-menu>
38
+ <o-menu label="Actions">
39
+ <o-menu-item label="Logout" />
40
+ </o-menu>
41
+ </section>
42
+ </template>
@@ -169,3 +169,62 @@ const value = ref(20);
169
169
  </o-modal>
170
170
  </section>
171
171
  </template>
172
+
173
+ <style lang="scss" scoped>
174
+ .modal-content {
175
+ display: flex;
176
+ flex-direction: column;
177
+ max-height: calc(100vh - 160px);
178
+ overflow: auto;
179
+ width: 100%;
180
+
181
+ @media screen and (min-width: 769px) {
182
+ margin: 0 auto;
183
+ max-height: calc(100vh - 40px);
184
+ width: 640px;
185
+ }
186
+
187
+ .modal-footer,
188
+ .modal-header {
189
+ align-items: center;
190
+ background-color: #f5f5f5;
191
+ display: flex;
192
+ flex-shrink: 0;
193
+ justify-content: flex-start;
194
+ padding: 20px;
195
+ position: relative;
196
+ }
197
+ .modal-header {
198
+ border-bottom: 1px solid #dbdbdb;
199
+ border-top-left-radius: 6px;
200
+ border-top-right-radius: 6px;
201
+
202
+ .modal-title {
203
+ color: #363636;
204
+ flex-grow: 1;
205
+ flex-shrink: 0;
206
+ font-size: 1.5rem;
207
+ line-height: 1;
208
+ margin: 0;
209
+ }
210
+ }
211
+ .modal-body {
212
+ -webkit-overflow-scrolling: touch;
213
+ background-color: #fff;
214
+ flex-grow: 1;
215
+ flex-shrink: 1;
216
+ overflow: auto;
217
+ padding: 20px;
218
+ }
219
+
220
+ .modal-footer {
221
+ border-bottom-left-radius: 6px;
222
+ border-bottom-right-radius: 6px;
223
+ border-top: 1px solid #dbdbdb;
224
+
225
+ button:not(:last-child) {
226
+ margin-right: 0.5em;
227
+ }
228
+ }
229
+ }
230
+ </style>
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
- import { useProgrammatic } from "@oruga-ui/oruga-next";
2
+ import { useOruga } from "@oruga-ui/oruga-next";
3
3
 
4
4
  function simple() {
5
- const { oruga } = useProgrammatic();
5
+ const oruga = useOruga();
6
6
  oruga.notification.open("Something happened");
7
7
  }
8
8
  function success() {
9
- const { oruga } = useProgrammatic();
9
+ const oruga = useOruga();
10
10
  oruga.notification.open({
11
11
  message: "Something happened correctly!",
12
12
  variant: "success",
@@ -14,7 +14,7 @@ function success() {
14
14
  });
15
15
  }
16
16
  function toast() {
17
- const { oruga } = useProgrammatic();
17
+ const oruga = useOruga();
18
18
  oruga.notification.open({
19
19
  message: "Something happened correctly!",
20
20
  rootClass: "toast",
@@ -22,7 +22,7 @@ function toast() {
22
22
  });
23
23
  }
24
24
  function danger() {
25
- const { oruga } = useProgrammatic();
25
+ const oruga = useOruga();
26
26
 
27
27
  oruga.notification.open({
28
28
  message: `Something's not good, also I'm on <b>bottom</b>`,
@@ -34,7 +34,7 @@ function danger() {
34
34
  ariaAtomic: true,
35
35
  ariaCloseLabel: "Close",
36
36
  onClose: () => {
37
- const { oruga } = useProgrammatic();
37
+ const oruga = useOruga();
38
38
  oruga.notification.open("Custom notification closed!");
39
39
  },
40
40
  });
@@ -25,19 +25,19 @@ const nextIcon = ref("chevron-right");
25
25
 
26
26
  <o-field grouped group-multiline>
27
27
  <o-field label="Total">
28
- <o-input v-model="total" type="number"></o-input>
28
+ <o-input v-model="total" type="number" />
29
29
  </o-field>
30
30
  <o-field label="Items per page">
31
- <o-input v-model="perPage" type="number"></o-input>
31
+ <o-input v-model="perPage" type="number" />
32
32
  </o-field>
33
33
  </o-field>
34
34
 
35
35
  <o-field grouped group-multiline>
36
36
  <o-field label="Show buttons before current">
37
- <o-input v-model="rangeBefore" type="number" min="0"></o-input>
37
+ <o-input v-model="rangeBefore" type="number" min="0" />
38
38
  </o-field>
39
39
  <o-field label="Show buttons after current">
40
- <o-input v-model="rangeAfter" type="number" min="0"></o-input>
40
+ <o-input v-model="rangeAfter" type="number" min="0" />
41
41
  </o-field>
42
42
  </o-field>
43
43
 
@@ -91,7 +91,6 @@ const nextIcon = ref("chevron-right");
91
91
  aria-next-label="Next page"
92
92
  aria-previous-label="Previous page"
93
93
  aria-page-label="Page"
94
- aria-current-label="Current page">
95
- </o-pagination>
94
+ aria-current-label="Current page" />
96
95
  </section>
97
96
  </template>
@@ -16,17 +16,21 @@ const size = ref("small");
16
16
  <h3>Base</h3>
17
17
 
18
18
  <o-field>
19
- <o-radio v-model="radio" name="name" native-value="Flint">
20
- Flint
21
- </o-radio>
22
- <o-radio v-model="radio" name="name" native-value="Silver">
23
- Silver
24
- </o-radio>
25
- <o-radio v-model="radio" name="name" native-value="Jack"> Jack </o-radio>
26
- <o-radio v-model="radio" name="name" native-value="Vane" disabled>
27
- Vane
28
- </o-radio>
19
+ <o-radio v-model="radio" name="name" native-value="Flint" label="Flint" />
20
+ <o-radio
21
+ v-model="radio"
22
+ name="name"
23
+ native-value="Silver"
24
+ label="Silver" />
25
+ <o-radio v-model="radio" name="name" native-value="Jack" label="Jack" />
26
+ <o-radio
27
+ v-model="radio"
28
+ name="name"
29
+ native-value="Vane"
30
+ disabled
31
+ label="Vane" />
29
32
  </o-field>
33
+
30
34
  <p><b>Selection:</b> {{ radio }}</p>
31
35
  </section>
32
36
 
@@ -34,38 +38,51 @@ const size = ref("small");
34
38
  <h3>Variant</h3>
35
39
 
36
40
  <o-field>
37
- <o-radio v-model="variant" native-value="default"> Default </o-radio>
41
+ <o-radio v-model="variant" native-value="default" label="Default" />
38
42
  </o-field>
39
43
  <o-field>
40
- <o-radio v-model="variant" native-value="primary" variant="primary">
41
- Primary
42
- </o-radio>
44
+ <o-radio
45
+ v-model="variant"
46
+ native-value="primary"
47
+ variant="primary"
48
+ label="Primary" />
43
49
  </o-field>
44
50
  <o-field>
45
- <o-radio v-model="variant" native-value="secondary" variant="secondary">
46
- Secondary
47
- </o-radio>
51
+ <o-radio
52
+ v-model="variant"
53
+ native-value="secondary"
54
+ variant="secondary"
55
+ label="Secondary" />
48
56
  </o-field>
49
57
  <o-field>
50
- <o-radio v-model="variant" native-value="info" variant="info">
51
- Info
52
- </o-radio>
58
+ <o-radio
59
+ v-model="variant"
60
+ native-value="info"
61
+ variant="info"
62
+ label="Info" />
53
63
  </o-field>
54
64
  <o-field>
55
- <o-radio v-model="variant" native-value="success" variant="success">
56
- Success
57
- </o-radio>
65
+ <o-radio
66
+ v-model="variant"
67
+ native-value="success"
68
+ variant="success"
69
+ label="Success" />
58
70
  </o-field>
59
71
  <o-field>
60
- <o-radio v-model="variant" native-value="warning" variant="warning">
61
- Warning
62
- </o-radio>
72
+ <o-radio
73
+ v-model="variant"
74
+ native-value="warning"
75
+ variant="warning"
76
+ label="Warning" />
63
77
  </o-field>
64
78
  <o-field>
65
- <o-radio v-model="variant" native-value="danger" variant="danger">
66
- Danger
67
- </o-radio>
79
+ <o-radio
80
+ v-model="variant"
81
+ native-value="danger"
82
+ variant="danger"
83
+ label="Danger" />
68
84
  </o-field>
85
+
69
86
  <p><b>Selection:</b> {{ variant }}</p>
70
87
  </section>
71
88
 
@@ -73,23 +90,22 @@ const size = ref("small");
73
90
  <h3>Size</h3>
74
91
 
75
92
  <o-field>
76
- <o-radio v-model="size" native-value="small" size="small">
77
- Small
78
- </o-radio>
93
+ <o-radio v-model="size" native-value="small" size="small" label="Small" />
79
94
  </o-field>
80
95
  <o-field>
81
- <o-radio v-model="size" native-value="default"> Default </o-radio>
96
+ <o-radio v-model="size" native-value="default" label="Default" />
82
97
  </o-field>
83
98
  <o-field>
84
- <o-radio v-model="size" native-value="medium" size="medium">
85
- Medium
86
- </o-radio>
99
+ <o-radio
100
+ v-model="size"
101
+ native-value="medium"
102
+ size="medium"
103
+ label="Medium" />
87
104
  </o-field>
88
105
  <o-field>
89
- <o-radio v-model="size" native-value="large" size="large">
90
- Large
91
- </o-radio>
106
+ <o-radio v-model="size" native-value="large" size="large" label="Large" />
92
107
  </o-field>
108
+
93
109
  <p><b>Selection:</b> {{ size }}</p>
94
110
  </section>
95
111
  </template>
@@ -1,16 +1,18 @@
1
1
  <script setup lang="ts">
2
2
  import { ref } from "vue";
3
3
 
4
- const isOpen = ref(false);
4
+ const isActive = ref(false);
5
5
  const isOverlay = ref(true);
6
6
  const isFullheight = ref(true);
7
7
  const isFullwidth = ref(false);
8
8
  const isReduced = ref(false);
9
- const right = ref(false);
10
9
  const expandOnHover = ref(false);
10
+ const teleport = ref(false);
11
+ const position = ref("left");
12
+ const inline = ref(false);
11
13
 
12
14
  const toggleSidebar = () => {
13
- isOpen.value = !isOpen.value;
15
+ isActive.value = !isActive.value;
14
16
  };
15
17
  </script>
16
18
 
@@ -23,34 +25,49 @@ const toggleSidebar = () => {
23
25
  <section>
24
26
  <h3>Base</h3>
25
27
 
28
+ <o-field grouped>
29
+ <o-switch v-model="isOverlay" label="Overlay" />
30
+ <o-switch v-model="isFullheight" label="Fullheight" />
31
+ <o-switch v-model="isFullwidth" label="Fullwidth" />
32
+ <o-switch v-model="isReduced" label="Reduce" />
33
+ <o-switch v-model="expandOnHover" label="Expand on hover" />
34
+ <o-switch v-model="teleport" label="On body" />
35
+ <o-switch v-model="inline" label="Inline" />
36
+ </o-field>
37
+
38
+ <o-field label="Position">
39
+ <o-select v-model="position">
40
+ <option value="top">Top</option>
41
+ <option value="bottom">Bottom</option>
42
+ <option value="right">Right</option>
43
+ <option value="left">Left</option>
44
+ </o-select>
45
+ </o-field>
46
+ <o-button @click="toggleSidebar()">Show</o-button>
47
+
26
48
  <o-sidebar
27
- v-model:open="isOpen"
49
+ v-model:active="isActive"
28
50
  variant="primary"
29
51
  :fullheight="isFullheight"
30
52
  :fullwidth="isFullwidth"
31
53
  :overlay="isOverlay"
32
- :right="right"
54
+ :position="position"
33
55
  :reduce="isReduced"
34
56
  :expand-on-hover="expandOnHover"
57
+ :teleport="teleport"
58
+ :inline="inline"
35
59
  mobile="fullwidth"
36
60
  @close="toggleSidebar()">
37
- <a class="btn-close" aria-label="Close" @click="toggleSidebar()" />
61
+ <o-button
62
+ class="btn-close"
63
+ icon-left="times"
64
+ label="Close"
65
+ @click="toggleSidebar()" />
38
66
  <img
39
67
  width="80"
40
68
  src="https://avatars2.githubusercontent.com/u/66300512?s=200&v=4"
41
69
  alt="Lightweight UI components for Vue.js" />
42
70
  <h3>Example</h3>
43
71
  </o-sidebar>
44
-
45
- <o-field grouped>
46
- <o-switch v-model="isOverlay">Overlay</o-switch>
47
- <o-switch v-model="isFullheight">Fullheight</o-switch>
48
- <o-switch v-model="isFullwidth">Fullwidth</o-switch>
49
- <o-switch v-model="isReduced">Reduce</o-switch>
50
- <o-switch v-model="expandOnHover">Expand on hover</o-switch>
51
- <o-switch v-model="right">right</o-switch>
52
- </o-field>
53
-
54
- <o-button @click="toggleSidebar()">Show</o-button>
55
72
  </section>
56
73
  </template>
@@ -13,17 +13,25 @@ const animated = ref(true);
13
13
  <section>
14
14
  <h3>Base</h3>
15
15
 
16
- <o-field grouped group-multiline>
17
- <o-switch v-model="animated">Animated</o-switch>
18
- </o-field>
19
- 20%
20
- <o-skeleton width="20%" :animated="animated" />
21
- 40%
22
- <o-skeleton width="40%" :animated="animated" />
23
- 80%
24
- <o-skeleton width="80%" :animated="animated" />
25
- Count 2
26
- <o-skeleton :animated="animated" :count="2" />
16
+ <o-field grouped>
17
+ <o-switch v-model="animated" label="Animated" />
18
+ </o-field>
19
+
20
+ <o-field label="20%">
21
+ <o-skeleton width="20%" :animated="animated" />
22
+ </o-field>
23
+ <o-field label="40%">
24
+ <o-skeleton width="40%" :animated="animated" />
25
+ </o-field>
26
+ <o-field label="80%">
27
+ <o-skeleton width="80%" :animated="animated" />
28
+ </o-field>
29
+ <o-field label="100%">
30
+ <o-skeleton :animated="animated" />
31
+ </o-field>
32
+ <o-field label=" Count 2">
33
+ <o-skeleton :animated="animated" :count="2" />
34
+ </o-field>
27
35
  </section>
28
36
 
29
37
  <section>
@@ -34,24 +42,34 @@ const animated = ref(true);
34
42
 
35
43
  <section>
36
44
  <h3>Sizes</h3>
37
- Small
38
- <o-skeleton :animated="animated" size="small" />
39
- Default
40
- <o-skeleton :animated="animated" />
41
- Medium
42
- <o-skeleton :animated="animated" size="medium" />
43
- Large
44
- <o-skeleton :animated="animated" size="large" />
45
+
46
+ <o-field label="Small" grouped>
47
+ <o-skeleton size="small" />
48
+ </o-field>
49
+ <o-field label="Default" grouped>
50
+ <o-skeleton />
51
+ </o-field>
52
+ <o-field label="Medium" grouped>
53
+ <o-skeleton size="medium" />
54
+ </o-field>
55
+ <o-field label="Large" grouped>
56
+ <o-skeleton size="large" />
57
+ </o-field>
45
58
  </section>
46
59
 
47
60
  <section>
48
61
  <h3>Position</h3>
49
62
 
50
- Left
51
- <o-skeleton width="30%" position="left" :animated="animated" />
52
- Center
53
- <o-skeleton width="30%" position="centered" :animated="animated" />
54
- Right
55
- <o-skeleton width="30%" position="right" :animated="animated" />
63
+ <o-field label="Left" grouped>
64
+ <o-skeleton width="30%" position="left" />
65
+ </o-field>
66
+
67
+ <o-field label="Center" grouped>
68
+ <o-skeleton width="30%" position="centered" />
69
+ </o-field>
70
+
71
+ <o-field label="Right" grouped>
72
+ <o-skeleton width="30%" position="right" />
73
+ </o-field>
56
74
  </section>
57
75
  </template>
@@ -131,10 +131,10 @@ const sliderType = computed(() => {
131
131
  <h3>Customize</h3>
132
132
  <o-field>
133
133
  <o-field>
134
- <o-switch v-model="settings.rounded">Rounded</o-switch>
134
+ <o-switch v-model="settings.rounded" label="Rounded" />
135
135
  </o-field>
136
136
  <o-field>
137
- <o-switch v-model="settings.tooltip">With Tooltip</o-switch>
137
+ <o-switch v-model="settings.tooltip" label="With Tooltip" />
138
138
  </o-field>
139
139
  <o-field label="Size">
140
140
  <o-select v-model="settings.size">
@@ -32,27 +32,27 @@ const size = ref(null);
32
32
 
33
33
  <o-field grouped group-multiline>
34
34
  <o-field>
35
- <o-switch v-model="showSocial"> Show Social step </o-switch>
35
+ <o-switch v-model="showSocial" label="Show Social step" />
36
36
  </o-field>
37
37
  <o-field>
38
- <o-switch v-model="isAnimated"> Animated </o-switch>
38
+ <o-switch v-model="isAnimated" label="Animated" />
39
39
  </o-field>
40
40
  <o-field>
41
- <o-switch v-model="isRounded"> Rounded </o-switch>
41
+ <o-switch v-model="isRounded" label="Rounded" />
42
42
  </o-field>
43
43
  <o-field>
44
- <o-switch v-model="isVertical"> Vertical </o-switch>
44
+ <o-switch v-model="isVertical" label="Vertical" />
45
45
  </o-field>
46
46
  <o-field>
47
- <o-switch v-model="isStepsClickable"> Clickable Marker </o-switch>
47
+ <o-switch v-model="isStepsClickable" label="Clickable Marker" />
48
48
  </o-field>
49
49
  </o-field>
50
50
  <o-field grouped group-multiline>
51
51
  <o-field>
52
- <o-switch v-model="hasNavigation"> Navigation Buttons </o-switch>
52
+ <o-switch v-model="hasNavigation" label="Navigation Buttons" />
53
53
  </o-field>
54
54
  <o-field>
55
- <o-switch v-model="customNavigation"> Custom Navigation </o-switch>
55
+ <o-switch v-model="customNavigation" label="Custom Navigation" />
56
56
  </o-field>
57
57
  <o-field>
58
58
  <o-switch v-model="isProfileSuccess">
@@ -137,18 +137,17 @@ const size = ref(null);
137
137
  icon-pack="fas"
138
138
  icon-left="backward"
139
139
  :disabled="previous.disabled"
140
- @click.prevent="previous.action">
141
- Previous
142
- </o-button>
140
+ label="Previous"
141
+ @click.prevent="previous.action" />
142
+
143
143
  <o-button
144
144
  outlined
145
145
  variant="success"
146
146
  icon-pack="fas"
147
147
  icon-right="forward"
148
148
  :disabled="next.disabled"
149
- @click.prevent="next.action">
150
- Next
151
- </o-button>
149
+ label="Next"
150
+ @click.prevent="next.action" />
152
151
  </template>
153
152
  </o-steps>
154
153
  </section>
@@ -195,7 +194,7 @@ const size = ref(null);
195
194
  <option value="large">Large</option>
196
195
  </o-select>
197
196
  </o-field>
198
- <o-field label="Label position" label-position="on-border">
197
+ <o-field label="Label position">
199
198
  <o-select v-model="labelPosition">
200
199
  <option value="bottom">Bottom</option>
201
200
  <option value="right">Right</option>