@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.
Files changed (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +115 -0
  3. package/dist/oruga-full.css +3778 -0
  4. package/dist/oruga-full.min.css +1 -0
  5. package/dist/oruga.css +2209 -0
  6. package/dist/oruga.min.css +1 -0
  7. package/dist/scss/components/_autocomplete.scss +130 -0
  8. package/dist/scss/components/_button.scss +242 -0
  9. package/dist/scss/components/_carousel.scss +256 -0
  10. package/dist/scss/components/_checkbox.scss +183 -0
  11. package/dist/scss/components/_collapse.scss +12 -0
  12. package/dist/scss/components/_datepicker.scss +592 -0
  13. package/dist/scss/components/_datetimepicker.scss +10 -0
  14. package/dist/scss/components/_dropdown.scss +241 -0
  15. package/dist/scss/components/_field.scss +154 -0
  16. package/dist/scss/components/_icon.scss +53 -0
  17. package/dist/scss/components/_input.scss +153 -0
  18. package/dist/scss/components/_inputitems.scss +175 -0
  19. package/dist/scss/components/_loading.scss +45 -0
  20. package/dist/scss/components/_menu.scss +124 -0
  21. package/dist/scss/components/_modal.scss +103 -0
  22. package/dist/scss/components/_notification.scss +212 -0
  23. package/dist/scss/components/_pagination.scss +256 -0
  24. package/dist/scss/components/_radio.scss +121 -0
  25. package/dist/scss/components/_select.scss +168 -0
  26. package/dist/scss/components/_sidebar.scss +112 -0
  27. package/dist/scss/components/_skeleton.scss +93 -0
  28. package/dist/scss/components/_slider.scss +241 -0
  29. package/dist/scss/components/_steps.scss +599 -0
  30. package/dist/scss/components/_switch.scss +171 -0
  31. package/dist/scss/components/_table.scss +481 -0
  32. package/dist/scss/components/_tabs.scss +385 -0
  33. package/dist/scss/components/_timepicker.scss +116 -0
  34. package/dist/scss/components/_tooltip.scss +345 -0
  35. package/dist/scss/components/_upload.scss +74 -0
  36. package/dist/scss/oruga-common.scss +37 -0
  37. package/dist/scss/oruga-full.scss +9 -0
  38. package/dist/scss/oruga.scss +197 -0
  39. package/dist/scss/utils/_animations.scss +231 -0
  40. package/dist/scss/utils/_base.scss +31 -0
  41. package/dist/scss/utils/_helpers.scss +211 -0
  42. package/dist/scss/utils/_root.scss +28 -0
  43. package/dist/scss/utils/_variables.scss +105 -0
  44. package/dist/theme.js +8 -0
  45. package/package.json +72 -0
  46. package/src/App.vue +104 -0
  47. package/src/assets/scss/components/_autocomplete.scss +130 -0
  48. package/src/assets/scss/components/_button.scss +242 -0
  49. package/src/assets/scss/components/_carousel.scss +256 -0
  50. package/src/assets/scss/components/_checkbox.scss +183 -0
  51. package/src/assets/scss/components/_collapse.scss +12 -0
  52. package/src/assets/scss/components/_datepicker.scss +592 -0
  53. package/src/assets/scss/components/_datetimepicker.scss +10 -0
  54. package/src/assets/scss/components/_dropdown.scss +241 -0
  55. package/src/assets/scss/components/_field.scss +154 -0
  56. package/src/assets/scss/components/_icon.scss +53 -0
  57. package/src/assets/scss/components/_input.scss +153 -0
  58. package/src/assets/scss/components/_inputitems.scss +175 -0
  59. package/src/assets/scss/components/_loading.scss +45 -0
  60. package/src/assets/scss/components/_menu.scss +124 -0
  61. package/src/assets/scss/components/_modal.scss +103 -0
  62. package/src/assets/scss/components/_notification.scss +212 -0
  63. package/src/assets/scss/components/_pagination.scss +256 -0
  64. package/src/assets/scss/components/_radio.scss +121 -0
  65. package/src/assets/scss/components/_select.scss +168 -0
  66. package/src/assets/scss/components/_sidebar.scss +112 -0
  67. package/src/assets/scss/components/_skeleton.scss +93 -0
  68. package/src/assets/scss/components/_slider.scss +241 -0
  69. package/src/assets/scss/components/_steps.scss +599 -0
  70. package/src/assets/scss/components/_switch.scss +171 -0
  71. package/src/assets/scss/components/_table.scss +481 -0
  72. package/src/assets/scss/components/_tabs.scss +385 -0
  73. package/src/assets/scss/components/_timepicker.scss +116 -0
  74. package/src/assets/scss/components/_tooltip.scss +345 -0
  75. package/src/assets/scss/components/_upload.scss +74 -0
  76. package/src/assets/scss/oruga-common.scss +37 -0
  77. package/src/assets/scss/oruga-full.scss +9 -0
  78. package/src/assets/scss/oruga.scss +197 -0
  79. package/src/assets/scss/utils/_animations.scss +231 -0
  80. package/src/assets/scss/utils/_base.scss +31 -0
  81. package/src/assets/scss/utils/_helpers.scss +211 -0
  82. package/src/assets/scss/utils/_root.scss +28 -0
  83. package/src/assets/scss/utils/_variables.scss +105 -0
  84. package/src/components/Autocomplete.vue +606 -0
  85. package/src/components/Button.vue +80 -0
  86. package/src/components/Carousel.vue +296 -0
  87. package/src/components/Checkbox.vue +134 -0
  88. package/src/components/Collapse.vue +132 -0
  89. package/src/components/Datepicker.vue +285 -0
  90. package/src/components/Datetimepicker.vue +127 -0
  91. package/src/components/Dropdown.vue +284 -0
  92. package/src/components/Field.vue +243 -0
  93. package/src/components/Icon.vue +66 -0
  94. package/src/components/Input.vue +121 -0
  95. package/src/components/Loading.vue +71 -0
  96. package/src/components/Modal.vue +171 -0
  97. package/src/components/Notification.vue +136 -0
  98. package/src/components/Pagination.vue +97 -0
  99. package/src/components/Radio.vue +95 -0
  100. package/src/components/Select.vue +155 -0
  101. package/src/components/Sidebar.vue +56 -0
  102. package/src/components/Skeleton.vue +57 -0
  103. package/src/components/Slider.vue +226 -0
  104. package/src/components/Steps.vue +234 -0
  105. package/src/components/Switch.vue +134 -0
  106. package/src/components/Table.vue +285 -0
  107. package/src/components/Tabs.vue +208 -0
  108. package/src/components/Taginput.vue +507 -0
  109. package/src/components/Timepicker.vue +124 -0
  110. package/src/components/Tooltip.vue +149 -0
  111. package/src/components/Upload.vue +66 -0
  112. package/src/main.ts +29 -0
  113. package/src/plugins/theme.ts +1 -0
  114. package/src/router/index.ts +39 -0
  115. package/src/views/Home.vue +24 -0
  116. package/types/index.d.ts +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Oruga
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,115 @@
1
+ <p align="center">
2
+ <img width="150" src="https://oruga.io/logo.png" />
3
+ </p>
4
+
5
+ <p align="center">
6
+ 🦋 <i>Default theme for <a href="https://oruga.io" target="_blank">Oruga</a></i> without any dependencies
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/package/@oruga-ui/theme-oruga">
11
+ <img src="https://img.shields.io/npm/v/@oruga-ui/theme-oruga.svg?logo=npm" alt="Oruga Default theme version" />
12
+ <a>
13
+ <a href="https://www.npmjs.com/package/@oruga-ui/theme-oruga">
14
+ <img src="https://img.shields.io/npm/dt/@oruga-ui/theme-oruga.svg" alt="Oruga Default theme downloads" />
15
+ </a>
16
+ <a href="https://vuejs.org">
17
+ <img src="https://img.shields.io/badge/vue.js-3.x-4fc08d" alt="Vue.js version">
18
+ </a>
19
+ <a href="https://discord.gg/RuKuBYN">
20
+ <img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg?logo=discord" alt="Discord Link"/>
21
+ </a>
22
+ </p>
23
+
24
+
25
+ ### Install
26
+
27
+ ```sh
28
+ npm install @oruga-ui/theme-oruga
29
+ ```
30
+
31
+ or
32
+
33
+ ```sh
34
+ yarn add @oruga-ui/theme-oruga
35
+ ```
36
+
37
+ ### Configure
38
+
39
+ ```js
40
+ import { createApp } from 'vue'
41
+ import App from './App.vue'
42
+
43
+ // import Oruga
44
+ import Oruga from '@oruga-ui/oruga-next'
45
+
46
+ // import Oruga theme styling
47
+ import '@oruga-ui/theme-oruga/dist/oruga.css'
48
+
49
+ createApp(App)
50
+ .use(Oruga)
51
+ .mount('#app')
52
+ ```
53
+
54
+ The Oruga Default theme comes with two different stylesheets:
55
+
56
+ * `oruga.css` provides a lightweight stylesheet containing only essential CSS rules for Oruga components such as display, position, z-index and other basic attributes.
57
+ * `oruga-full.css` contains the full Oruga style (the default style used for documentation).
58
+
59
+ The Oruga Default theme uses the default classes set by Oruga and doesn't come with any JS configuration at all.
60
+
61
+ Note that the package also works for `@oruga-ui/oruga` (Vue 2).
62
+
63
+ ### Customization (SASS/SCSS)
64
+
65
+ For customasing any SASS variables you have to set them pefore the SCSS Import.
66
+
67
+
68
+ ```scss
69
+ // Include any default variable overrides here (though functions and maps won't be available here)
70
+ // ...
71
+
72
+ // Include the full Oruga theme here
73
+ @import "/node_modules/@oruga-ui/theme-oruga/dist/scss/oruga-full";
74
+
75
+ // Then add additional custom code here
76
+ // ...
77
+ ```
78
+
79
+ ### Override default config
80
+
81
+ In case you want to replace the default style of a component you can override or add new classes; more details about components customization on https://oruga.io/documentation/#customization
82
+
83
+ ```js
84
+ import { createApp } from 'vue'
85
+
86
+ import Oruga from '@oruga-ui/oruga-next'
87
+
88
+ import '@oruga-ui/theme-oruga/dist/oruga-full.css'
89
+
90
+ const customConfig = {
91
+ checkbox: {
92
+ override: true,
93
+ rootClass: 'checkbox'
94
+ }
95
+ }
96
+
97
+ createApp(App)
98
+ .use(Oruga, customConfig)
99
+ .mount('#app')
100
+ ```
101
+
102
+ ## Contributors
103
+ Thank you to everyone involved for improving this project, day by day 💚
104
+
105
+ <a href="https://github.com/oruga-ui/theme-oruga">
106
+ <img
107
+ src="https://contrib.rocks/image?repo=oruga-ui/theme-oruga"
108
+ />
109
+ </a>
110
+
111
+ [Complete list](CONTRIBUTORS.md).
112
+
113
+ ## License
114
+
115
+ Code released under [MIT](https://github.com/oruga-ui/theme-oruga/blob/main/LICENSE) license.