@oruga-ui/theme-oruga 0.2.0 → 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.
Files changed (49) hide show
  1. package/dist/oruga-full.css +12 -10
  2. package/dist/oruga-full.min.css +1 -1
  3. package/dist/oruga.css +12 -10
  4. package/dist/oruga.min.css +1 -1
  5. package/dist/scss/components/_sidebar.scss +7 -9
  6. package/dist/scss/components/_steps.scss +5 -0
  7. package/dist/scss/components/_taginput.scss +0 -5
  8. package/dist/scss/utils/_root.scss +6 -2
  9. package/dist/theme.js +2 -1
  10. package/package.json +28 -30
  11. package/src/assets/scss/components/_sidebar.scss +7 -9
  12. package/src/assets/scss/components/_steps.scss +5 -0
  13. package/src/assets/scss/components/_taginput.scss +0 -5
  14. package/src/assets/scss/utils/_root.scss +6 -2
  15. package/src/App.vue +0 -105
  16. package/src/components/Autocomplete.vue +0 -606
  17. package/src/components/Button.vue +0 -80
  18. package/src/components/Carousel.vue +0 -295
  19. package/src/components/Checkbox.vue +0 -135
  20. package/src/components/Collapse.vue +0 -134
  21. package/src/components/Datepicker.vue +0 -282
  22. package/src/components/Datetimepicker.vue +0 -127
  23. package/src/components/Dropdown.vue +0 -329
  24. package/src/components/Field.vue +0 -235
  25. package/src/components/Icon.vue +0 -66
  26. package/src/components/Input.vue +0 -129
  27. package/src/components/Loading.vue +0 -70
  28. package/src/components/Menu.vue +0 -42
  29. package/src/components/Modal.vue +0 -230
  30. package/src/components/Notification.vue +0 -136
  31. package/src/components/Pagination.vue +0 -96
  32. package/src/components/Radio.vue +0 -111
  33. package/src/components/Select.vue +0 -155
  34. package/src/components/Sidebar.vue +0 -73
  35. package/src/components/Skeleton.vue +0 -75
  36. package/src/components/Slider.vue +0 -226
  37. package/src/components/Steps.vue +0 -233
  38. package/src/components/Switch.vue +0 -137
  39. package/src/components/Table.vue +0 -278
  40. package/src/components/Tabs.vue +0 -209
  41. package/src/components/Taginput.vue +0 -507
  42. package/src/components/Timepicker.vue +0 -122
  43. package/src/components/Tooltip.vue +0 -187
  44. package/src/components/Upload.vue +0 -66
  45. package/src/main.ts +0 -29
  46. package/src/plugins/theme.ts +0 -1
  47. package/src/router/index.ts +0 -39
  48. package/src/views/Home.vue +0 -24
  49. package/types/index.d.ts +0 -1
@@ -1,122 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from "vue";
3
-
4
- const time = ref<Date | null>(null);
5
- const hourFormat = ref(undefined); // Browser locale
6
- const enableSeconds = ref(false);
7
- const locale = ref(undefined); // Browser locale
8
-
9
- const min = new Date();
10
- min.setHours(9);
11
- min.setMinutes(0);
12
- const max = new Date();
13
- max.setHours(18);
14
- max.setMinutes(0);
15
-
16
- const minTime = ref(min);
17
- const maxTime = ref(max);
18
-
19
- const minutesGranularity = ref(5);
20
- const hoursGranularity = ref(2);
21
- </script>
22
-
23
- <template>
24
- <section>
25
- <h2>Timepicker Demo</h2>
26
- <hr />
27
- </section>
28
-
29
- <section>
30
- <h3>Base</h3>
31
-
32
- <o-field grouped>
33
- <o-field>
34
- <o-switch v-model="enableSeconds" label="Enable seconds" />
35
- </o-field>
36
- <o-field label="Locale">
37
- <o-select v-model="locale">
38
- <option :value="undefined"></option>
39
- <option value="de-DE">de-DE</option>
40
- <option value="en-CA">en-CA</option>
41
- <option value="en-GB">en-GB</option>
42
- <option value="en-US">en-US</option>
43
- <option value="es-ES">es-ES</option>
44
- <option value="es-MX">es-MX</option>
45
- <option value="fr-CA">fr-CA</option>
46
- <option value="fr-FR">fr-FR</option>
47
- <option value="it-IT">it-IT</option>
48
- <option value="ja-JP">ja-JP</option>
49
- <option value="pt-BR">pt-BR</option>
50
- <option value="ru-RU">ru-RU</option>
51
- <option value="zn-CN">zn-CN</option>
52
- </o-select>
53
- </o-field>
54
- <o-field label="Hour format">
55
- <o-select v-model="hourFormat">
56
- <option :value="undefined"></option>
57
- <option value="12">12</option>
58
- <option value="24">24</option>
59
- </o-select>
60
- </o-field>
61
- </o-field>
62
-
63
- <o-field label="Select time">
64
- <o-timepicker
65
- rounded
66
- placeholder="Click to select..."
67
- icon="clock"
68
- :enable-seconds="enableSeconds"
69
- :hour-format="hourFormat"
70
- :locale="locale" />
71
- </o-field>
72
- </section>
73
-
74
- <section>
75
- <h3>Inline</h3>
76
-
77
- <o-timepicker v-model="time" inline />
78
- </section>
79
-
80
- <section>
81
- <h3>Min/Max date</h3>
82
-
83
- <o-field label="Select time">
84
- <o-timepicker
85
- placeholder="Click to select..."
86
- :min-time="minTime"
87
- :max-time="maxTime" />
88
- </o-field>
89
- </section>
90
-
91
- <section>
92
- <h3>Slot</h3>
93
-
94
- <o-field label="Select time">
95
- <o-timepicker v-model="time" placeholder="Click to select...">
96
- <o-button
97
- label="Now"
98
- variant="primary"
99
- icon-left="clock"
100
- @click="time = new Date()" />
101
- <o-button
102
- label="Clear"
103
- variant="danger"
104
- icon-left="times"
105
- outlined
106
- @click="time = null" />
107
- </o-timepicker>
108
- </o-field>
109
- </section>
110
-
111
- <section>
112
- <h3>Granularity</h3>
113
-
114
- <o-field label="Select time">
115
- <o-timepicker
116
- placeholder="Click to select"
117
- icon="clock"
118
- :increment-minutes="minutesGranularity"
119
- :increment-hours="hoursGranularity" />
120
- </o-field>
121
- </section>
122
- </template>
@@ -1,187 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from "vue";
3
-
4
- const active = ref(true);
5
- const teleport = ref(false);
6
- </script>
7
-
8
- <template>
9
- <section>
10
- <h2>Tooltip Demo</h2>
11
- <hr />
12
- </section>
13
-
14
- <section>
15
- <h3>Base</h3>
16
-
17
- <o-tooltip label="Tooltip">
18
- <o-button label="Hover me! " />
19
- </o-tooltip>
20
-
21
- <o-tooltip label="delayed by 1000ms" :delay="1000">
22
- <o-button variant="warning" label="Delayed" />
23
- </o-tooltip>
24
-
25
- <o-tooltip label="I'm on body" teleport>
26
- <o-button variant="info" label="Append on body" />
27
- </o-tooltip>
28
- </section>
29
-
30
- <section>
31
- <h3>Position</h3>
32
-
33
- <o-field>
34
- <o-switch v-model="teleport" label="teleport" />
35
- </o-field>
36
-
37
- <o-tooltip label="Tooltip right" :teleport="teleport" position="right">
38
- <o-button label="Right" />
39
- </o-tooltip>
40
-
41
- <o-tooltip label="Tooltip top" :teleport="teleport" position="top">
42
- <o-button label="Top" />
43
- </o-tooltip>
44
-
45
- <o-tooltip label="Tooltip bottom" :teleport="teleport" position="bottom">
46
- <o-button label="Bottom" />
47
- </o-tooltip>
48
-
49
- <o-tooltip label="Tooltip left" :teleport="teleport" position="left">
50
- <o-button label="Left" />
51
- </o-tooltip>
52
-
53
- <hr />
54
-
55
- <o-tooltip label="Tooltip right" :teleport="teleport" position="top-right">
56
- <o-button label="Top Right" />
57
- </o-tooltip>
58
-
59
- <o-tooltip label="Tooltip top" :teleport="teleport" position="top-left">
60
- <o-button label="Top Left" />
61
- </o-tooltip>
62
-
63
- <o-tooltip
64
- label="Tooltip bottom"
65
- :teleport="teleport"
66
- position="bottom-right">
67
- <o-button label="Bottom Right" />
68
- </o-tooltip>
69
-
70
- <o-tooltip label="Tooltip left" :teleport="teleport" position="bottom-left">
71
- <o-button label="Bottom Left" />
72
- </o-tooltip>
73
- </section>
74
- <section>
75
- <h3>Variants</h3>
76
-
77
- <o-tooltip label="Default">
78
- <o-button label="Default" />
79
- </o-tooltip>
80
-
81
- <o-tooltip label="Primary" variant="primary">
82
- <o-button label="Primary" variant="primary" />
83
- </o-tooltip>
84
-
85
- <o-tooltip label="Secondary" variant="secondary">
86
- <o-button label="Secondary" variant="secondary" />
87
- </o-tooltip>
88
-
89
- <o-tooltip label="Success" variant="success">
90
- <o-button label="Success" variant="success" />
91
- </o-tooltip>
92
-
93
- <o-tooltip label="Danger" variant="danger">
94
- <o-button label="Danger" variant="danger" />
95
- </o-tooltip>
96
-
97
- <o-tooltip label="Warning" variant="warning">
98
- <o-button label="Warning" variant="warning" />
99
- </o-tooltip>
100
-
101
- <o-tooltip label="Info" variant="info">
102
- <o-button label="Info" variant="info" />
103
- </o-tooltip>
104
- </section>
105
-
106
- <section>
107
- <h3>Multiline</h3>
108
-
109
- <o-tooltip
110
- variant="info"
111
- label="Tooltip multiline, probably because it's too long for a casual tooltip"
112
- multiline>
113
- <o-button label="Multiline (default)" />
114
- </o-tooltip>
115
-
116
- <o-tooltip
117
- variant="info"
118
- label="It's not brief, but it's also not long"
119
- multiline>
120
- <o-button label="Multiline (small)" />
121
- </o-tooltip>
122
-
123
- <o-tooltip
124
- variant="info"
125
- label="Tooltip large multiline, because it's too long to be on a medium size. Did I tell you it's really long? Yes, it is — I assure you!"
126
- position="bottom"
127
- multiline>
128
- <o-button label="Multiline (large)" />
129
- </o-tooltip>
130
- </section>
131
-
132
- <section>
133
- <h3>Slot</h3>
134
-
135
- <o-tooltip variant="light" position="bottom" multiline>
136
- <o-button>Html Content</o-button>
137
- <template #content>
138
- <b>Lorem ipsum dolor sit amet</b>, consectetur warning elit.
139
- <i>Fusce id fermentum quam</i>.
140
- </template>
141
- </o-tooltip>
142
-
143
- <o-tooltip
144
- variant="light"
145
- :triggers="['click']"
146
- :auto-close="['outside', 'escape']">
147
- <template #content>
148
- <o-icon icon="heart" variant="dark"></o-icon>
149
- <o-icon icon="thumbs-up" variant="dark"></o-icon>
150
- <o-icon icon="thumbs-down" variant="dark"></o-icon>
151
- <o-icon icon="smile-beam"></o-icon>
152
- </template>
153
- <o-button label="Action" />
154
- </o-tooltip>
155
- </section>
156
-
157
- <section>
158
- <h3>Toggle</h3>
159
-
160
- <o-field>
161
- <o-switch v-model="active" label="Toggle Always" />
162
- </o-field>
163
-
164
- <o-tooltip
165
- variant="danger"
166
- label="I'm never closing"
167
- :active="active"
168
- always
169
- position="bottom">
170
- <o-button label="Always" />
171
- </o-tooltip>
172
-
173
- <o-tooltip
174
- variant="danger"
175
- label="Tooltip right"
176
- position="right"
177
- :active="active">
178
- <o-button label="Right" />
179
- </o-tooltip>
180
- </section>
181
- </template>
182
-
183
- <style scoped>
184
- .o-tip {
185
- margin-right: 10px;
186
- }
187
- </style>
@@ -1,66 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from "vue";
3
-
4
- const dropFiles = ref<File[]>([]);
5
- const file = ref<File | null>(null);
6
-
7
- function deleteDropFile(index: number) {
8
- dropFiles.value.splice(index, 1);
9
- }
10
- </script>
11
-
12
- <template>
13
- <section>
14
- <h2>Upload Demo</h2>
15
- <hr />
16
- </section>
17
-
18
- <section>
19
- <h3>Base</h3>
20
-
21
- <o-field class="file">
22
- <o-upload v-model="file">
23
- <o-button
24
- tag="a"
25
- variant="primary"
26
- icon-left="upload"
27
- label="Click to upload" />
28
- </o-upload>
29
- </o-field>
30
- <p><b>Selected File:</b> {{ file?.name }}</p>
31
- </section>
32
-
33
- <section>
34
- <h3>Drag&Drop</h3>
35
-
36
- <o-field>
37
- <o-upload v-model="dropFiles" multiple variant="info" expanded drag-drop>
38
- <section class="ex-center">
39
- <p>
40
- <o-icon icon="upload" size="large" />
41
- </p>
42
- <p>Drop your files here or click to upload</p>
43
- </section>
44
- </o-upload>
45
- </o-field>
46
-
47
- <div class="tags">
48
- <span v-for="(f, index) in dropFiles" :key="index">
49
- {{ f.name }}
50
- <o-button
51
- icon-left="times"
52
- size="small"
53
- native-type="button"
54
- @click="deleteDropFile(index)" />
55
- </span>
56
- </div>
57
- </section>
58
- </template>
59
-
60
- <style scoped lang="scss">
61
- .ex-center {
62
- p {
63
- text-align: center;
64
- }
65
- }
66
- </style>
package/src/main.ts DELETED
@@ -1,29 +0,0 @@
1
- import { createApp } from "vue";
2
-
3
- import App from "./App.vue";
4
- import router from "./router";
5
-
6
- import Oruga from "@oruga-ui/oruga-next";
7
-
8
- import "@fortawesome/fontawesome-free/scss/fontawesome.scss";
9
- import "@fortawesome/fontawesome-free/scss/regular.scss";
10
- import "@fortawesome/fontawesome-free/scss/solid.scss";
11
-
12
- import "./assets/scss/oruga-full.scss";
13
-
14
- createApp(App)
15
- .use(router)
16
- .use(Oruga, {
17
- iconPack: "fas",
18
- customIconPacks: {
19
- fas: {
20
- sizes: {
21
- default: "",
22
- small: "fa-sm",
23
- medium: "fa-lg",
24
- large: "fa-2x",
25
- },
26
- },
27
- },
28
- })
29
- .mount("#app");
@@ -1 +0,0 @@
1
- // No theme config to export. Theme includes only css.
@@ -1,39 +0,0 @@
1
- import {
2
- createRouter,
3
- createWebHistory,
4
- type RouteRecordRaw,
5
- } from "vue-router";
6
- import Home from "../views/Home.vue";
7
-
8
- const paths = import.meta.glob("../components/*.vue") as any;
9
- const components = Object.keys(paths)
10
- .map((c: string) => c.replace(".vue", ""))
11
- .map((c: string) => c.replace("../components/", ""))
12
- .map((c: string) => `/${c}`)
13
- .map((c: string) => {
14
- const name = c.split("/")[1];
15
- return {
16
- name,
17
- link: c,
18
- };
19
- });
20
-
21
- const routes: Array<RouteRecordRaw> = [
22
- {
23
- path: "/",
24
- name: "Home",
25
- component: Home,
26
- },
27
- ...components.map(({ name, link }: any) => ({
28
- path: link,
29
- name: name,
30
- component: () => import("../components" + link + ".vue"),
31
- })),
32
- ];
33
-
34
- const router = createRouter({
35
- history: createWebHistory("/"),
36
- routes,
37
- });
38
-
39
- export default router;
@@ -1,24 +0,0 @@
1
- <template>
2
- <div class="content">
3
- <img
4
- class="image__oruga"
5
- src="https://oruga.io/logo.png"
6
- alt="Logo Oruga Default Theme" />
7
- <h1 class="mt-2">Oruga Default Theme Demo</h1>
8
- </div>
9
- </template>
10
-
11
- <style scoped lang="scss">
12
- .content {
13
- text-align: center;
14
- width: auto;
15
- margin: 0 auto;
16
- transform: translateY(70%);
17
- }
18
-
19
- .image__oruga {
20
- height: 128px;
21
- display: flex;
22
- margin: 0 auto;
23
- }
24
- </style>
package/types/index.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module "@oruga-ui/theme-oruga";