@oruga-ui/theme-oruga 0.0.1
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/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/oruga-full.css +3778 -0
- package/dist/oruga-full.min.css +1 -0
- package/dist/oruga.css +2209 -0
- package/dist/oruga.min.css +1 -0
- package/dist/scss/components/_autocomplete.scss +130 -0
- package/dist/scss/components/_button.scss +242 -0
- package/dist/scss/components/_carousel.scss +256 -0
- package/dist/scss/components/_checkbox.scss +183 -0
- package/dist/scss/components/_collapse.scss +12 -0
- package/dist/scss/components/_datepicker.scss +592 -0
- package/dist/scss/components/_datetimepicker.scss +10 -0
- package/dist/scss/components/_dropdown.scss +241 -0
- package/dist/scss/components/_field.scss +154 -0
- package/dist/scss/components/_icon.scss +53 -0
- package/dist/scss/components/_input.scss +153 -0
- package/dist/scss/components/_inputitems.scss +175 -0
- package/dist/scss/components/_loading.scss +45 -0
- package/dist/scss/components/_menu.scss +124 -0
- package/dist/scss/components/_modal.scss +103 -0
- package/dist/scss/components/_notification.scss +212 -0
- package/dist/scss/components/_pagination.scss +256 -0
- package/dist/scss/components/_radio.scss +121 -0
- package/dist/scss/components/_select.scss +168 -0
- package/dist/scss/components/_sidebar.scss +112 -0
- package/dist/scss/components/_skeleton.scss +93 -0
- package/dist/scss/components/_slider.scss +241 -0
- package/dist/scss/components/_steps.scss +599 -0
- package/dist/scss/components/_switch.scss +171 -0
- package/dist/scss/components/_table.scss +481 -0
- package/dist/scss/components/_tabs.scss +385 -0
- package/dist/scss/components/_timepicker.scss +116 -0
- package/dist/scss/components/_tooltip.scss +345 -0
- package/dist/scss/components/_upload.scss +74 -0
- package/dist/scss/oruga-common.scss +37 -0
- package/dist/scss/oruga-full.scss +9 -0
- package/dist/scss/oruga.scss +197 -0
- package/dist/scss/utils/_animations.scss +231 -0
- package/dist/scss/utils/_base.scss +31 -0
- package/dist/scss/utils/_helpers.scss +211 -0
- package/dist/scss/utils/_root.scss +28 -0
- package/dist/scss/utils/_variables.scss +105 -0
- package/dist/theme.js +8 -0
- package/package.json +72 -0
- package/src/App.vue +104 -0
- package/src/assets/scss/components/_autocomplete.scss +130 -0
- package/src/assets/scss/components/_button.scss +242 -0
- package/src/assets/scss/components/_carousel.scss +256 -0
- package/src/assets/scss/components/_checkbox.scss +183 -0
- package/src/assets/scss/components/_collapse.scss +12 -0
- package/src/assets/scss/components/_datepicker.scss +592 -0
- package/src/assets/scss/components/_datetimepicker.scss +10 -0
- package/src/assets/scss/components/_dropdown.scss +241 -0
- package/src/assets/scss/components/_field.scss +154 -0
- package/src/assets/scss/components/_icon.scss +53 -0
- package/src/assets/scss/components/_input.scss +153 -0
- package/src/assets/scss/components/_inputitems.scss +175 -0
- package/src/assets/scss/components/_loading.scss +45 -0
- package/src/assets/scss/components/_menu.scss +124 -0
- package/src/assets/scss/components/_modal.scss +103 -0
- package/src/assets/scss/components/_notification.scss +212 -0
- package/src/assets/scss/components/_pagination.scss +256 -0
- package/src/assets/scss/components/_radio.scss +121 -0
- package/src/assets/scss/components/_select.scss +168 -0
- package/src/assets/scss/components/_sidebar.scss +112 -0
- package/src/assets/scss/components/_skeleton.scss +93 -0
- package/src/assets/scss/components/_slider.scss +241 -0
- package/src/assets/scss/components/_steps.scss +599 -0
- package/src/assets/scss/components/_switch.scss +171 -0
- package/src/assets/scss/components/_table.scss +481 -0
- package/src/assets/scss/components/_tabs.scss +385 -0
- package/src/assets/scss/components/_timepicker.scss +116 -0
- package/src/assets/scss/components/_tooltip.scss +345 -0
- package/src/assets/scss/components/_upload.scss +74 -0
- package/src/assets/scss/oruga-common.scss +37 -0
- package/src/assets/scss/oruga-full.scss +9 -0
- package/src/assets/scss/oruga.scss +197 -0
- package/src/assets/scss/utils/_animations.scss +231 -0
- package/src/assets/scss/utils/_base.scss +31 -0
- package/src/assets/scss/utils/_helpers.scss +211 -0
- package/src/assets/scss/utils/_root.scss +28 -0
- package/src/assets/scss/utils/_variables.scss +105 -0
- package/src/components/Autocomplete.vue +606 -0
- package/src/components/Button.vue +80 -0
- package/src/components/Carousel.vue +296 -0
- package/src/components/Checkbox.vue +134 -0
- package/src/components/Collapse.vue +132 -0
- package/src/components/Datepicker.vue +285 -0
- package/src/components/Datetimepicker.vue +127 -0
- package/src/components/Dropdown.vue +284 -0
- package/src/components/Field.vue +243 -0
- package/src/components/Icon.vue +66 -0
- package/src/components/Input.vue +121 -0
- package/src/components/Loading.vue +71 -0
- package/src/components/Modal.vue +171 -0
- package/src/components/Notification.vue +136 -0
- package/src/components/Pagination.vue +97 -0
- package/src/components/Radio.vue +95 -0
- package/src/components/Select.vue +155 -0
- package/src/components/Sidebar.vue +56 -0
- package/src/components/Skeleton.vue +57 -0
- package/src/components/Slider.vue +226 -0
- package/src/components/Steps.vue +234 -0
- package/src/components/Switch.vue +134 -0
- package/src/components/Table.vue +285 -0
- package/src/components/Tabs.vue +208 -0
- package/src/components/Taginput.vue +507 -0
- package/src/components/Timepicker.vue +124 -0
- package/src/components/Tooltip.vue +149 -0
- package/src/components/Upload.vue +66 -0
- package/src/main.ts +29 -0
- package/src/plugins/theme.ts +1 -0
- package/src/router/index.ts +39 -0
- package/src/views/Home.vue +24 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,243 @@
|
|
|
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" />
|
|
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" />
|
|
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 />
|
|
27
|
+
</o-field>
|
|
28
|
+
|
|
29
|
+
<o-field label="Password" variant="warning">
|
|
30
|
+
<o-input value="123" type="password" maxlength="30" />
|
|
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">Search</o-button>
|
|
57
|
+
</o-field>
|
|
58
|
+
|
|
59
|
+
<o-field>
|
|
60
|
+
<o-input placeholder="This is expanded" expanded />
|
|
61
|
+
<o-button>@gmail.com</o-button>
|
|
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" /><o-button variant="success">
|
|
71
|
+
Transfer
|
|
72
|
+
</o-button>
|
|
73
|
+
</o-field>
|
|
74
|
+
|
|
75
|
+
<o-field>
|
|
76
|
+
<o-button>
|
|
77
|
+
<o-icon icon="bold" />
|
|
78
|
+
</o-button>
|
|
79
|
+
|
|
80
|
+
<o-button>
|
|
81
|
+
<o-icon icon="italic" />
|
|
82
|
+
</o-button>
|
|
83
|
+
|
|
84
|
+
<o-button>
|
|
85
|
+
<o-icon icon="underline" />
|
|
86
|
+
</o-button>
|
|
87
|
+
|
|
88
|
+
<o-button>
|
|
89
|
+
<o-icon icon="align-left" />
|
|
90
|
+
</o-button>
|
|
91
|
+
|
|
92
|
+
<o-button>
|
|
93
|
+
<o-icon icon="align-center" />
|
|
94
|
+
</o-button>
|
|
95
|
+
|
|
96
|
+
<o-button>
|
|
97
|
+
<o-icon icon="align-right" />
|
|
98
|
+
</o-button>
|
|
99
|
+
|
|
100
|
+
<o-input placeholder="Search..." type="search" icon="search" />
|
|
101
|
+
</o-field>
|
|
102
|
+
|
|
103
|
+
<o-field>
|
|
104
|
+
<o-button variant="primary"> Button </o-button>
|
|
105
|
+
<o-dropdown>
|
|
106
|
+
<template #trigger>
|
|
107
|
+
<o-button variant="primary">
|
|
108
|
+
<o-icon icon="caret-down" />
|
|
109
|
+
</o-button>
|
|
110
|
+
</template>
|
|
111
|
+
|
|
112
|
+
<o-dropdown-item>Action</o-dropdown-item>
|
|
113
|
+
<o-dropdown-item>Another action</o-dropdown-item>
|
|
114
|
+
<o-dropdown-item>Something else</o-dropdown-item>
|
|
115
|
+
</o-dropdown>
|
|
116
|
+
</o-field>
|
|
117
|
+
|
|
118
|
+
<o-field>
|
|
119
|
+
<o-button variant="primary"> Button </o-button>
|
|
120
|
+
<o-dropdown>
|
|
121
|
+
<template #trigger>
|
|
122
|
+
<o-button variant="primary">
|
|
123
|
+
<o-icon icon="caret-down" />
|
|
124
|
+
</o-button>
|
|
125
|
+
</template>
|
|
126
|
+
|
|
127
|
+
<o-dropdown-item>Action</o-dropdown-item>
|
|
128
|
+
<o-dropdown-item>Another action</o-dropdown-item>
|
|
129
|
+
<o-dropdown-item>Something else</o-dropdown-item>
|
|
130
|
+
</o-dropdown>
|
|
131
|
+
<o-button variant="primary"> Button </o-button>
|
|
132
|
+
</o-field>
|
|
133
|
+
|
|
134
|
+
<o-field>
|
|
135
|
+
<o-input icon="search" type="search" placeholder="Search..." />
|
|
136
|
+
<o-dropdown>
|
|
137
|
+
<template #trigger>
|
|
138
|
+
<o-button>
|
|
139
|
+
<span>Filters</span>
|
|
140
|
+
<o-icon icon="caret-down" />
|
|
141
|
+
</o-button>
|
|
142
|
+
</template>
|
|
143
|
+
<o-dropdown-item value="open_issues">
|
|
144
|
+
Open Issues and Pull Requests
|
|
145
|
+
</o-dropdown-item>
|
|
146
|
+
<o-dropdown-item value="your_issues">Your Issues</o-dropdown-item>
|
|
147
|
+
<o-dropdown-item value="pull_requests">
|
|
148
|
+
Your Pull Requests
|
|
149
|
+
</o-dropdown-item>
|
|
150
|
+
<o-dropdown-item value="everything">Everything</o-dropdown-item>
|
|
151
|
+
</o-dropdown>
|
|
152
|
+
</o-field>
|
|
153
|
+
</section>
|
|
154
|
+
|
|
155
|
+
<section>
|
|
156
|
+
<h3>Grouped</h3>
|
|
157
|
+
|
|
158
|
+
<o-field grouped variant="danger" message="What do you want to search?">
|
|
159
|
+
<o-input placeholder="Search..." />
|
|
160
|
+
<o-button variant="primary">Search</o-button>
|
|
161
|
+
</o-field>
|
|
162
|
+
|
|
163
|
+
<o-field grouped message="What do you want to search?">
|
|
164
|
+
<o-input placeholder="Search..." expanded />
|
|
165
|
+
<o-button variant="primary">Search</o-button>
|
|
166
|
+
</o-field>
|
|
167
|
+
|
|
168
|
+
<o-field grouped group-multiline>
|
|
169
|
+
<o-input />
|
|
170
|
+
<o-button>First</o-button>
|
|
171
|
+
<o-button>Second</o-button>
|
|
172
|
+
<o-button>Third</o-button>
|
|
173
|
+
<o-button>Fourth</o-button>
|
|
174
|
+
<o-button>Fifth</o-button>
|
|
175
|
+
<o-button>Sixth</o-button>
|
|
176
|
+
<o-button>Seventh</o-button>
|
|
177
|
+
<o-button>Eighth</o-button>
|
|
178
|
+
</o-field>
|
|
179
|
+
</section>
|
|
180
|
+
|
|
181
|
+
<section class="py-4 container">
|
|
182
|
+
<h3>Horizontal</h3>
|
|
183
|
+
|
|
184
|
+
<o-field
|
|
185
|
+
horizontal
|
|
186
|
+
label="Subject"
|
|
187
|
+
variant="danger"
|
|
188
|
+
message="Please enter a subject">
|
|
189
|
+
<o-input name="subject" icon="pen" expanded />
|
|
190
|
+
</o-field>
|
|
191
|
+
|
|
192
|
+
<o-field horizontal label="From">
|
|
193
|
+
<o-input name="name" placeholder="Name" icon="user" expanded />
|
|
194
|
+
<o-input
|
|
195
|
+
name="email"
|
|
196
|
+
type="email"
|
|
197
|
+
placeholder="nobody@nowhere.com"
|
|
198
|
+
icon="at"
|
|
199
|
+
expanded />
|
|
200
|
+
</o-field>
|
|
201
|
+
|
|
202
|
+
<o-field horizontal label="Topic">
|
|
203
|
+
<o-select placeholder="Select a topic" icon="book">
|
|
204
|
+
<option value="1">Oruga</option>
|
|
205
|
+
<option value="2">Vue.js</option>
|
|
206
|
+
<option value="3">UI</option>
|
|
207
|
+
</o-select>
|
|
208
|
+
</o-field>
|
|
209
|
+
|
|
210
|
+
<o-field horizontal label="Message">
|
|
211
|
+
<o-input type="textarea" />
|
|
212
|
+
</o-field>
|
|
213
|
+
|
|
214
|
+
<o-field horizontal>
|
|
215
|
+
<!-- Label left empty for spacing -->
|
|
216
|
+
<o-button variant="primary" icon-left="envelope" outlined>
|
|
217
|
+
Send message
|
|
218
|
+
</o-button>
|
|
219
|
+
</o-field>
|
|
220
|
+
</section>
|
|
221
|
+
|
|
222
|
+
<section>
|
|
223
|
+
<h3>Slot</h3>
|
|
224
|
+
|
|
225
|
+
<o-field horizontal>
|
|
226
|
+
<template #label>
|
|
227
|
+
With tooltip
|
|
228
|
+
<o-tooltip label="Help text here for explanation">
|
|
229
|
+
<o-icon size="small" icon="question-circle" />
|
|
230
|
+
</o-tooltip>
|
|
231
|
+
</template>
|
|
232
|
+
<o-input size="medium" />
|
|
233
|
+
</o-field>
|
|
234
|
+
|
|
235
|
+
<o-field>
|
|
236
|
+
<template #label> Label with custom <i>style</i> </template>
|
|
237
|
+
<o-input />
|
|
238
|
+
<template #message>
|
|
239
|
+
<small>Message with custom <b>style</b> </small>
|
|
240
|
+
</template>
|
|
241
|
+
</o-field>
|
|
242
|
+
</section>
|
|
243
|
+
</template>
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
.icon:not(:last-child) {
|
|
64
|
+
margin-right: 0.5rem;
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section>
|
|
3
|
+
<h2>Input Demo</h2>
|
|
4
|
+
<hr />
|
|
5
|
+
</section>
|
|
6
|
+
|
|
7
|
+
<section>
|
|
8
|
+
<h3>Base</h3>
|
|
9
|
+
|
|
10
|
+
<o-field label="Name">
|
|
11
|
+
<o-input expanded />
|
|
12
|
+
</o-field>
|
|
13
|
+
|
|
14
|
+
<o-field label="Email" variant="danger" message="This email is invalid">
|
|
15
|
+
<o-input type="email" value="john@" maxlength="30" />
|
|
16
|
+
</o-field>
|
|
17
|
+
|
|
18
|
+
<o-field
|
|
19
|
+
label="Username"
|
|
20
|
+
variant="success"
|
|
21
|
+
message="This username is available">
|
|
22
|
+
<o-input value="johnsilver" maxlength="30" />
|
|
23
|
+
</o-field>
|
|
24
|
+
|
|
25
|
+
<o-field label="Password">
|
|
26
|
+
<o-input type="password" value="iwantmytreasure" password-reveal>
|
|
27
|
+
</o-input>
|
|
28
|
+
</o-field>
|
|
29
|
+
|
|
30
|
+
<o-field label="Message">
|
|
31
|
+
<o-input maxlength="200" type="textarea" />
|
|
32
|
+
</o-field>
|
|
33
|
+
|
|
34
|
+
<o-field>
|
|
35
|
+
<o-input placeholder="No label" />
|
|
36
|
+
</o-field>
|
|
37
|
+
|
|
38
|
+
<o-field label="Rounded">
|
|
39
|
+
<o-input placeholder="No label" rounded />
|
|
40
|
+
</o-field>
|
|
41
|
+
|
|
42
|
+
<o-field label="Disabled">
|
|
43
|
+
<o-input placeholder="Disabled" disabled />
|
|
44
|
+
</o-field>
|
|
45
|
+
</section>
|
|
46
|
+
|
|
47
|
+
<section>
|
|
48
|
+
<h3>Variants</h3>
|
|
49
|
+
|
|
50
|
+
<o-field label="Primary" variant="primary">
|
|
51
|
+
<o-input placeholder="Primary" />
|
|
52
|
+
</o-field>
|
|
53
|
+
<o-field label="Secondary" variant="secondary">
|
|
54
|
+
<o-input placeholder="Secondary" />
|
|
55
|
+
</o-field>
|
|
56
|
+
<o-field label="Success" variant="success">
|
|
57
|
+
<o-input placeholder="Success" />
|
|
58
|
+
</o-field>
|
|
59
|
+
<o-field label="Info" variant="info">
|
|
60
|
+
<o-input placeholder="Info" />
|
|
61
|
+
</o-field>
|
|
62
|
+
<o-field label="Warning" variant="warning">
|
|
63
|
+
<o-input placeholder="Warning" />
|
|
64
|
+
</o-field>
|
|
65
|
+
<o-field
|
|
66
|
+
label="Error"
|
|
67
|
+
variant="danger"
|
|
68
|
+
message="You can have a message too">
|
|
69
|
+
<o-input placeholder="Error" />
|
|
70
|
+
</o-field>
|
|
71
|
+
</section>
|
|
72
|
+
|
|
73
|
+
<section>
|
|
74
|
+
<h3>Sizes</h3>
|
|
75
|
+
|
|
76
|
+
<o-field>
|
|
77
|
+
<o-input placeholder="small" size="small" icon="user" />
|
|
78
|
+
</o-field>
|
|
79
|
+
<o-field>
|
|
80
|
+
<o-input placeholder="default" icon="user" />
|
|
81
|
+
</o-field>
|
|
82
|
+
<o-field>
|
|
83
|
+
<o-input placeholder="medium" size="medium" icon="user" />
|
|
84
|
+
</o-field>
|
|
85
|
+
<o-field>
|
|
86
|
+
<o-input placeholder="Large" size="large" icon="user" />
|
|
87
|
+
</o-field>
|
|
88
|
+
</section>
|
|
89
|
+
|
|
90
|
+
<section>
|
|
91
|
+
<h3>With Icons</h3>
|
|
92
|
+
|
|
93
|
+
<o-field>
|
|
94
|
+
<o-input
|
|
95
|
+
placeholder="Search..."
|
|
96
|
+
type="search"
|
|
97
|
+
icon="search"
|
|
98
|
+
icon-clickable>
|
|
99
|
+
</o-input>
|
|
100
|
+
</o-field>
|
|
101
|
+
|
|
102
|
+
<o-field>
|
|
103
|
+
<o-input
|
|
104
|
+
placeholder="Search..."
|
|
105
|
+
type="search"
|
|
106
|
+
icon-right="search"
|
|
107
|
+
icon-right-clickable>
|
|
108
|
+
</o-input>
|
|
109
|
+
</o-field>
|
|
110
|
+
|
|
111
|
+
<o-field>
|
|
112
|
+
<o-input
|
|
113
|
+
placeholder="Email"
|
|
114
|
+
type="email"
|
|
115
|
+
icon="envelope"
|
|
116
|
+
icon-right="times-circle"
|
|
117
|
+
icon-right-clickable>
|
|
118
|
+
</o-input>
|
|
119
|
+
</o-field>
|
|
120
|
+
</section>
|
|
121
|
+
</template>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
|
|
4
|
+
const isLoading = ref(false);
|
|
5
|
+
const isFullPage = ref(true);
|
|
6
|
+
const isCustomLoading = ref(false);
|
|
7
|
+
const isCustomFullPage = ref(true);
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<section>
|
|
12
|
+
<h2>Loading Demo</h2>
|
|
13
|
+
<hr />
|
|
14
|
+
</section>
|
|
15
|
+
|
|
16
|
+
<section>
|
|
17
|
+
<h3>Base</h3>
|
|
18
|
+
|
|
19
|
+
<o-field>
|
|
20
|
+
<o-button
|
|
21
|
+
size="medium"
|
|
22
|
+
variant="primary"
|
|
23
|
+
@click="() => (isLoading = true)">
|
|
24
|
+
Launch loading
|
|
25
|
+
</o-button>
|
|
26
|
+
</o-field>
|
|
27
|
+
<o-field>
|
|
28
|
+
<o-switch v-model="isFullPage" disabled>
|
|
29
|
+
Display loader over full page
|
|
30
|
+
</o-switch>
|
|
31
|
+
</o-field>
|
|
32
|
+
<p style="position: relative">
|
|
33
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
34
|
+
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
35
|
+
laoreet elit
|
|
36
|
+
<o-loading
|
|
37
|
+
v-model:active="isLoading"
|
|
38
|
+
:full-page="isFullPage"
|
|
39
|
+
:can-cancel="true" />
|
|
40
|
+
</p>
|
|
41
|
+
</section>
|
|
42
|
+
|
|
43
|
+
<section>
|
|
44
|
+
<h3>Base Custom Slot</h3>
|
|
45
|
+
|
|
46
|
+
<o-field>
|
|
47
|
+
<o-button
|
|
48
|
+
size="medium"
|
|
49
|
+
variant="primary"
|
|
50
|
+
@click="() => (isCustomLoading = true)">
|
|
51
|
+
Launch loading
|
|
52
|
+
</o-button>
|
|
53
|
+
</o-field>
|
|
54
|
+
<o-field>
|
|
55
|
+
<o-switch v-model="isCustomFullPage">
|
|
56
|
+
Display loader over full page
|
|
57
|
+
</o-switch>
|
|
58
|
+
</o-field>
|
|
59
|
+
<p style="position: relative">
|
|
60
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
61
|
+
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
62
|
+
laoreet elit
|
|
63
|
+
<o-loading
|
|
64
|
+
v-model:active="isCustomLoading"
|
|
65
|
+
:full-page="isCustomFullPage"
|
|
66
|
+
:can-cancel="true">
|
|
67
|
+
<o-icon pack="fas" icon="sync-alt" size="large" spin />
|
|
68
|
+
</o-loading>
|
|
69
|
+
</p>
|
|
70
|
+
</section>
|
|
71
|
+
</template>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
|
|
4
|
+
const isImageModalActive = ref(false);
|
|
5
|
+
const isCardModalActive = ref(false);
|
|
6
|
+
const isFullScreenModalActive = ref(false);
|
|
7
|
+
|
|
8
|
+
const tags = ref([]);
|
|
9
|
+
const value = ref(20);
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<section>
|
|
14
|
+
<h2>Modal Demo</h2>
|
|
15
|
+
<hr />
|
|
16
|
+
</section>
|
|
17
|
+
|
|
18
|
+
<section>
|
|
19
|
+
<h3>Base</h3>
|
|
20
|
+
|
|
21
|
+
<div class="buttons">
|
|
22
|
+
<o-button
|
|
23
|
+
size="medium"
|
|
24
|
+
variant="primary"
|
|
25
|
+
label="Open Image Modal"
|
|
26
|
+
@click="isImageModalActive = true" />
|
|
27
|
+
|
|
28
|
+
<o-button
|
|
29
|
+
size="medium"
|
|
30
|
+
variant="primary"
|
|
31
|
+
label="Open Card Modal"
|
|
32
|
+
@click="isCardModalActive = true" />
|
|
33
|
+
|
|
34
|
+
<o-button
|
|
35
|
+
size="medium"
|
|
36
|
+
variant="primary"
|
|
37
|
+
label="Open FullScreen Modal"
|
|
38
|
+
@click="isFullScreenModalActive = true" />
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<!-- image modal -->
|
|
42
|
+
<o-modal v-model:active="isImageModalActive">
|
|
43
|
+
<p style="text-align: center">
|
|
44
|
+
<img
|
|
45
|
+
style="background-color: white"
|
|
46
|
+
src="https://avatars2.githubusercontent.com/u/66300512?s=200&v=4" />
|
|
47
|
+
</p>
|
|
48
|
+
</o-modal>
|
|
49
|
+
|
|
50
|
+
<!-- card modal -->
|
|
51
|
+
<o-modal v-model:active="isCardModalActive" :width="720" scroll="clip">
|
|
52
|
+
<div class="modal-content">
|
|
53
|
+
<div class="modal-header">
|
|
54
|
+
<h5 class="modal-title">Log in to continue using the service</h5>
|
|
55
|
+
<o-icon
|
|
56
|
+
clickable
|
|
57
|
+
native-type="button"
|
|
58
|
+
icon="times"
|
|
59
|
+
@click="isCardModalActive = false" />
|
|
60
|
+
</div>
|
|
61
|
+
<div class="modal-body">
|
|
62
|
+
<o-field label="Email">
|
|
63
|
+
<o-input
|
|
64
|
+
icon="at"
|
|
65
|
+
:has-counter="true"
|
|
66
|
+
maxlength="10"
|
|
67
|
+
placeholder="Enter Your Email" />
|
|
68
|
+
</o-field>
|
|
69
|
+
<o-field label="Password">
|
|
70
|
+
<o-input
|
|
71
|
+
icon="lock"
|
|
72
|
+
:has-counter="true"
|
|
73
|
+
maxlength="10"
|
|
74
|
+
placeholder="Enter Your Password" />
|
|
75
|
+
</o-field>
|
|
76
|
+
<o-field label="Enter some items">
|
|
77
|
+
<o-inputitems
|
|
78
|
+
v-model="tags"
|
|
79
|
+
variant="primary"
|
|
80
|
+
field="user.first_name"
|
|
81
|
+
icon="tag"
|
|
82
|
+
placeholder="Add an item"
|
|
83
|
+
keep-first />
|
|
84
|
+
</o-field>
|
|
85
|
+
<o-field label="Dark & Medium">
|
|
86
|
+
<o-slider
|
|
87
|
+
v-model="value"
|
|
88
|
+
:rounded="true"
|
|
89
|
+
size="medium"
|
|
90
|
+
variant="dark"
|
|
91
|
+
tooltip-variant="dark" />
|
|
92
|
+
</o-field>
|
|
93
|
+
<o-field>
|
|
94
|
+
<o-checkbox variant="info"> Remember me </o-checkbox>
|
|
95
|
+
</o-field>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="modal-footer">
|
|
98
|
+
<o-button
|
|
99
|
+
outlined
|
|
100
|
+
variant="danger"
|
|
101
|
+
label="Close"
|
|
102
|
+
@click="isCardModalActive = false" />
|
|
103
|
+
<o-button outlined variant="primary" label="Log in" />
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</o-modal>
|
|
107
|
+
|
|
108
|
+
<!-- fullscreen modal -->
|
|
109
|
+
<o-modal
|
|
110
|
+
v-model:active="isFullScreenModalActive"
|
|
111
|
+
:width="720"
|
|
112
|
+
scroll="clip"
|
|
113
|
+
:can-cancel="['escape', 'button']"
|
|
114
|
+
full-screen>
|
|
115
|
+
<div class="modal-content h-100">
|
|
116
|
+
<div class="modal-header">
|
|
117
|
+
<h5 class="modal-title">Log in to continue using the service</h5>
|
|
118
|
+
<o-icon
|
|
119
|
+
clickable
|
|
120
|
+
native-type="button"
|
|
121
|
+
icon="times"
|
|
122
|
+
@click="isFullScreenModalActive = false" />
|
|
123
|
+
</div>
|
|
124
|
+
<div class="modal-body">
|
|
125
|
+
<o-field label="Email">
|
|
126
|
+
<o-input
|
|
127
|
+
icon="at"
|
|
128
|
+
:has-counter="true"
|
|
129
|
+
maxlength="10"
|
|
130
|
+
placeholder="Enter Your Email" />
|
|
131
|
+
</o-field>
|
|
132
|
+
<o-field label="Password">
|
|
133
|
+
<o-input
|
|
134
|
+
icon="lock"
|
|
135
|
+
:has-counter="true"
|
|
136
|
+
maxlength="10"
|
|
137
|
+
placeholder="Enter Your Password" />
|
|
138
|
+
</o-field>
|
|
139
|
+
<o-field label="Enter some items">
|
|
140
|
+
<o-inputitems
|
|
141
|
+
v-model="tags"
|
|
142
|
+
variant="primary"
|
|
143
|
+
field="user.first_name"
|
|
144
|
+
icon="tag"
|
|
145
|
+
placeholder="Add an item"
|
|
146
|
+
keep-first />
|
|
147
|
+
</o-field>
|
|
148
|
+
<o-field label="Dark & Medium">
|
|
149
|
+
<o-slider
|
|
150
|
+
v-model="value"
|
|
151
|
+
:rounded="true"
|
|
152
|
+
size="medium"
|
|
153
|
+
variant="dark"
|
|
154
|
+
tooltip-variant="dark" />
|
|
155
|
+
</o-field>
|
|
156
|
+
<o-field>
|
|
157
|
+
<o-checkbox variant="info"> Remember me </o-checkbox>
|
|
158
|
+
</o-field>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="modal-footer">
|
|
161
|
+
<o-button
|
|
162
|
+
outlined
|
|
163
|
+
variant="danger"
|
|
164
|
+
label="Close"
|
|
165
|
+
@click="isFullScreenModalActive = false" />
|
|
166
|
+
<o-button outlined variant="primary" label="Log in" />
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</o-modal>
|
|
170
|
+
</section>
|
|
171
|
+
</template>
|