@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
@@ -0,0 +1,231 @@
1
+ // Some of the animations are from animate.css (https://daneden.github.io/animate.css)
2
+
3
+ // Fade out
4
+ @keyframes fadeOut {
5
+ from {
6
+ opacity: 1;
7
+ }
8
+
9
+ to {
10
+ opacity: 0;
11
+ }
12
+ }
13
+
14
+ .fadeOut {
15
+ animation-name: fadeOut;
16
+ }
17
+
18
+ @keyframes fadeOutDown {
19
+ from {
20
+ opacity: 1;
21
+ }
22
+
23
+ to {
24
+ opacity: 0;
25
+ transform: translate3d(0, 100%, 0);
26
+ }
27
+ }
28
+
29
+ .fadeOutDown {
30
+ animation-name: fadeOutDown;
31
+ }
32
+
33
+ @keyframes fadeOutUp {
34
+ from {
35
+ opacity: 1;
36
+ }
37
+
38
+ to {
39
+ opacity: 0;
40
+ transform: translate3d(0, -100%, 0);
41
+ }
42
+ }
43
+
44
+ .fadeOutUp {
45
+ animation-name: fadeOutUp;
46
+ }
47
+
48
+ // Fade In
49
+ @keyframes fadeIn {
50
+ from {
51
+ opacity: 0;
52
+ }
53
+
54
+ to {
55
+ opacity: 1;
56
+ }
57
+ }
58
+
59
+ .fadeIn {
60
+ animation-name: fadeIn;
61
+ }
62
+
63
+ @keyframes fadeInDown {
64
+ from {
65
+ opacity: 0;
66
+ transform: translate3d(0, -100%, 0);
67
+ }
68
+
69
+ to {
70
+ opacity: 1;
71
+ transform: none;
72
+ }
73
+ }
74
+
75
+ .fadeInDown {
76
+ animation-name: fadeInDown;
77
+ }
78
+
79
+ @keyframes fadeInUp {
80
+ from {
81
+ opacity: 0;
82
+ transform: translate3d(0, 100%, 0);
83
+ }
84
+
85
+ to {
86
+ opacity: 1;
87
+ transform: none;
88
+ }
89
+ }
90
+
91
+ .fadeInUp {
92
+ animation-name: fadeInUp;
93
+ }
94
+
95
+ @keyframes append-animate {
96
+ from {
97
+ transform: scale(0);
98
+ opacity: 0;
99
+ }
100
+
101
+ to {
102
+ transform: scale(1);
103
+ opacity: 1;
104
+ }
105
+ }
106
+
107
+ /**
108
+ * Vue Transitions
109
+ */
110
+
111
+ // Fade
112
+ .fade-enter-active,
113
+ .fade-leave-active {
114
+ transition: opacity $speed-slow $easing;
115
+ }
116
+
117
+ .fade-enter,
118
+ .fade-enter-from,
119
+ .fade-leave-to {
120
+ opacity: 0;
121
+ }
122
+
123
+ // Zoom In
124
+ .zoom-in-enter-active,
125
+ .zoom-in-leave-active {
126
+ transition: opacity $speed-slow $easing;
127
+
128
+ .animation-content {
129
+ transition: transform $speed-slow $easing;
130
+ }
131
+ }
132
+
133
+ .zoom-in-enter,
134
+ .zoom-in-enter-from,
135
+ .zoom-in-leave-active {
136
+ opacity: 0;
137
+
138
+ .animation-content {
139
+ transform: scale(0.95);
140
+ }
141
+ }
142
+
143
+ // Zoom Out
144
+ .zoom-out-enter-active,
145
+ .zoom-out-leave-active {
146
+ transition: opacity $speed-slow $easing;
147
+
148
+ .animation-content {
149
+ transition: transform $speed-slow $easing;
150
+ }
151
+ }
152
+
153
+ .zoom-out-enter,
154
+ .zoom-out-enter-from,
155
+ .zoom-out-leave-active {
156
+ opacity: 0;
157
+
158
+ .animation-content {
159
+ transform: scale(1.05);
160
+ }
161
+ }
162
+
163
+ // Slide
164
+ .slide-next-enter-active,
165
+ .slide-next-leave-active,
166
+ .slide-prev-enter-active,
167
+ .slide-prev-leave-active {
168
+ transition: transform $speed-slower cubic-bezier(0.785, 0.135, 0.15, 0.86);
169
+ }
170
+
171
+ .slide-prev-leave-to,
172
+ .slide-next-enter,
173
+ .slide-next-enter-from {
174
+ transform: translate3d(-100%, 0, 0);
175
+ position: absolute;
176
+ width: 100%;
177
+ }
178
+
179
+ .slide-prev-enter,
180
+ .slide-prev-enter-from,
181
+ .slide-next-leave-to {
182
+ transform: translate3d(100%, 0, 0);
183
+ position: absolute;
184
+ width: 100%;
185
+ }
186
+
187
+ .slide-down-enter-active,
188
+ .slide-down-leave-active,
189
+ .slide-up-enter-active,
190
+ .slide-up-leave-active {
191
+ transition: transform $speed-slower cubic-bezier(0.785, 0.135, 0.15, 0.86);
192
+ }
193
+
194
+ .slide-down-enter,
195
+ .slide-up-leave-to,
196
+ .slide-down-enter-from {
197
+ transform: translate3d(0, -100%, 0);
198
+ position: absolute;
199
+ height: 100%;
200
+ }
201
+
202
+ .slide-up-enter,
203
+ .slide-up-enter-from,
204
+ .slide-down-leave-to {
205
+ transform: translate3d(0, 100%, 0);
206
+ position: absolute;
207
+ height: 100%;
208
+ }
209
+
210
+ .slide-enter-active {
211
+ transition: $speed-slow $easing;
212
+ }
213
+
214
+ .slide-leave-active {
215
+ transition: $speed-slow $easing;
216
+ transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
217
+ }
218
+
219
+ .slide-leave,
220
+ .slide-enter-to,
221
+ .slide-leave-from {
222
+ max-height: 100px;
223
+ overflow: hidden;
224
+ }
225
+
226
+ .slide-enter,
227
+ .slide-enter-from,
228
+ .slide-leave-to {
229
+ overflow: hidden;
230
+ max-height: 0;
231
+ }
@@ -0,0 +1,31 @@
1
+ *,
2
+ :after,
3
+ :before {
4
+ box-sizing: inherit;
5
+ }
6
+
7
+ html {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ body {
12
+ margin: 0;
13
+ padding: 0;
14
+
15
+ @include avariable("font-family", "base-font-family", $base-font-family);
16
+ @include avariable("font-size", "base-font-size", $base-font-size);
17
+ @include avariable("font-weight", "base-font-weight", $base-font-weight);
18
+ @include avariable("line-height", "base-line-height", $base-line-height);
19
+ }
20
+
21
+ .o-noscroll {
22
+ position: fixed;
23
+ width: 100%;
24
+ bottom: 0;
25
+ overflow-x: hidden;
26
+ overflow-y: scroll;
27
+ }
28
+
29
+ .o-clipped {
30
+ overflow: hidden;
31
+ }
@@ -0,0 +1,211 @@
1
+ @use "sass:list";
2
+ @use "sass:string";
3
+ @use "sass:math";
4
+
5
+ /// Replaces characters in a string
6
+ ///
7
+ /// @param {string} $string
8
+ /// String where the replace happens
9
+ /// @param {string} $search
10
+ /// Portion of string to find and replace
11
+ /// @param {string} $replace
12
+ /// Replacement. Default is ''.
13
+ /// @return {string} string with characters replaced.
14
+ @function str-replace($string, $search, $replace: "") {
15
+ $index: string.index($string, $search);
16
+
17
+ @return if(
18
+ $index,
19
+ str-slice($string, 1, $index - 1) + $replace +
20
+ str-replace(
21
+ str-slice($string, $index + str-length($search)),
22
+ $search,
23
+ $replace
24
+ ),
25
+ $string
26
+ );
27
+ }
28
+
29
+ /// Encodes an inline svg. Original source code: http://codepen.io/jakob-e/pen/doMoML
30
+ ///
31
+ /// @param {string} $svg
32
+ /// Inline svg to encode
33
+ /// @return {string} encoded svg.
34
+ @function svg-encode($svg) {
35
+ // Chunk up string in order to avoid "stack level too deep" error
36
+ $encoded: "";
37
+ $slice: 2000;
38
+ $index: 0;
39
+ $loops: math.ceil(divide(string.length($svg), $slice));
40
+
41
+ @for $i from 1 through $loops {
42
+ $chunk: string.slice($svg, $index, $index + $slice - 1);
43
+ // Encode
44
+ $chunk: str-replace($chunk, '"', "'");
45
+ $chunk: str-replace($chunk, "%", "%25");
46
+ $chunk: str-replace($chunk, "#", "%23");
47
+ $chunk: str-replace($chunk, "{", "%7B");
48
+ $chunk: str-replace($chunk, "}", "%7D");
49
+ $chunk: str-replace($chunk, "<", "%3C");
50
+ $chunk: str-replace($chunk, ">", "%3E");
51
+
52
+ $encoded: #{$encoded}#{$chunk};
53
+ $index: $index + $slice;
54
+ }
55
+
56
+ @return "data:image/svg+xml,#{$encoded}";
57
+ }
58
+
59
+ /// Appends a list of variables to $whitelist and return a new whitelist.
60
+ ///
61
+ /// @param {...} $variables
62
+ /// Variables to whitelist
63
+ /// @return {list} new whitelist.
64
+ ///
65
+ /// Example (in components/_radio.scss)
66
+ /// $whitelist: add-to-whitelist('radio-active-background-color','radio-focus-sibiling-box-shadow');
67
+ @function add-to-whitelist($variables...) {
68
+ @return list.join($whitelist, $variables);
69
+ }
70
+
71
+ /// Checks if a variable is in $whitelist.
72
+ ///
73
+ /// @param {string} $variable
74
+ /// Variable to check if present in whitelist
75
+ /// @return {boolean} true if $variable is in $whitelist, else false.
76
+ @function is-in-whitelist($variable) {
77
+ @return list.index($whitelist, $variable) != null;
78
+ }
79
+
80
+ /// Checks if $whitelist is empty
81
+ ///
82
+ /// @return {boolean} true if $whitelist is empty, else false.
83
+ @function is-empty-whitelist() {
84
+ @return list.length($whitelist) == 0;
85
+ }
86
+
87
+ /// Returns a variable.
88
+ ///
89
+ /// @param {string} $name
90
+ /// Variable name
91
+ /// @param {string} $value
92
+ /// Variable value
93
+ /// @param {string} $forceval
94
+ /// By default is `false`, if `true` it allows to bypass whitelist and set the value
95
+ /// @return {string} the variable or null if not in whitelist when $css-vars == false.
96
+ @function variable($name, $value, $forceval: false) {
97
+ @if $css-vars {
98
+ @if is-empty-whitelist() or is-in-whitelist($name) {
99
+ @return var(--#{$prefix}#{$name}, #{$value});
100
+ }
101
+ } @else if $sass-vars {
102
+ @if is-empty-whitelist() or is-in-whitelist($name) {
103
+ @return #{$value};
104
+ }
105
+ } @else if $forceval {
106
+ @return #{$value};
107
+ }
108
+
109
+ @return null;
110
+ }
111
+
112
+ /// Returns a pair of `(key,value)` to pass to `evariable` function.
113
+ ///
114
+ /// @param {string} $key
115
+ /// Key of the parameter
116
+ /// @param {string} $value
117
+ /// Value of the parameter
118
+ /// @return {list} list of two elements representing an `eparam` `(key, value)`.
119
+ @function eparam($key, $value) {
120
+ @return $key, $value;
121
+ }
122
+
123
+ /// Assigns a specific expression to an attribute
124
+ ///
125
+ /// @param {string} $attribute
126
+ /// The attribute we want to include
127
+ /// @param {string} $expression
128
+ /// The body of the function we want to write (e.g. `calc($width/$height)`)
129
+ /// @param {...} $parameters
130
+ /// List of `eparam` to apply to the function
131
+ @mixin evariable($attribute, $expression, $parameters...) {
132
+ $is_valid: true;
133
+
134
+ @each $parameter in $parameters {
135
+ @if not list.nth($parameter, 2) {
136
+ $is_valid: false;
137
+ }
138
+ @if str-slice(list.nth($parameter, 1), 0, 1) != "$" {
139
+ @error "Parameter #{list.nth($parameter, 1)} should start with $.";
140
+ }
141
+ $expression: str-replace(
142
+ $expression,
143
+ list.nth($parameter, 1),
144
+ list.nth($parameter, 2)
145
+ );
146
+ }
147
+ @if $is_valid {
148
+ #{$attribute}: #{$expression};
149
+ }
150
+ }
151
+
152
+ /// Assigns a specific variable to an attribute
153
+ ///
154
+ /// @param {string} $attribute
155
+ /// The attribute we want to include
156
+ /// @param {string} $name
157
+ /// Variable name
158
+ /// @param {string} $value
159
+ /// Variable value
160
+ @mixin avariable($attribute, $name, $value) {
161
+ $variable: variable($name, $value);
162
+ @if $variable {
163
+ #{$attribute}: $variable;
164
+ }
165
+ }
166
+ @mixin unselectable {
167
+ -webkit-touch-callout: none;
168
+ -webkit-user-select: none;
169
+ -moz-user-select: none;
170
+ -ms-user-select: none;
171
+ user-select: none;
172
+ }
173
+ @mixin side-flex-gap($gap) {
174
+ //flex-wrap: wrap;
175
+ margin-left: -$gap;
176
+ margin-right: -$gap;
177
+
178
+ & > * {
179
+ margin-left: $gap;
180
+ margin-right: $gap;
181
+ }
182
+ }
183
+
184
+ // Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
185
+ // Replaces old slash division deprecated in Dart Sass
186
+ @function divide($dividend, $divisor, $precision: 10) {
187
+ $sign: if($dividend > 0 and $divisor > 0, 1, -1);
188
+ $dividend: math.abs($dividend);
189
+ $divisor: math.abs($divisor);
190
+ $quotient: 0;
191
+ $remainder: $dividend;
192
+ @if $dividend == 0 {
193
+ @return 0;
194
+ }
195
+ @if $divisor == 0 {
196
+ @error "Cannot divide by 0";
197
+ }
198
+ @if $divisor == 1 {
199
+ @return $dividend;
200
+ }
201
+
202
+ @while $remainder >= $divisor {
203
+ $quotient: $quotient + 1;
204
+ $remainder: $remainder - $divisor;
205
+ }
206
+ @if $remainder > 0 and $precision > 0 {
207
+ $remainder: divide($remainder * 10, $divisor, $precision - 1) * 0.1;
208
+ }
209
+
210
+ @return ($quotient + $remainder) * $sign;
211
+ }
@@ -0,0 +1,28 @@
1
+ @use "sass:list";
2
+
3
+ :root {
4
+ @if $css-vars {
5
+ // generate color variables
6
+ @each $name, $color in $colors {
7
+ --#{$prefix}#{$name}: #{list.nth($color, 1)};
8
+ --#{$prefix}#{$name}-invert: #{list.nth($color, 2)};
9
+ }
10
+
11
+ --#{$prefix}white: #{$white};
12
+ --#{$prefix}black: #{$black};
13
+ --#{$prefix}grey: #{$grey};
14
+ --#{$prefix}grey-light: #{$grey-light};
15
+ --#{$prefix}grey-lighter: #{$grey-lighter};
16
+ --#{$prefix}grey-dark: #{$grey-dark};
17
+
18
+ // generate size variables
19
+ @each $name, $size in $sizes {
20
+ --#{$prefix}size-#{$name}: #{$size};
21
+ }
22
+
23
+ --#{$prefix}base-font-family: #{$base-font-family};
24
+ --#{$prefix}base-font-size: #{$base-font-size};
25
+ --#{$prefix}base-font-weight: #{$base-font-weight};
26
+ --#{$prefix}base-line-height: #{$base-line-height};
27
+ }
28
+ }
@@ -0,0 +1,105 @@
1
+ /*********************
2
+ * Theme Variables
3
+ **********************/
4
+
5
+ // Settings
6
+ $whitelist: () !default;
7
+ $sass-vars: true !default;
8
+ $css-vars: true !default;
9
+ $prefix: "oruga-" !default;
10
+
11
+ // Animations
12
+ $speed: 300ms !default;
13
+ $speed-slow: 150ms !default;
14
+ $speed-slower: 250ms !default;
15
+ $easing: ease-out !default;
16
+
17
+ // Font
18
+ $base-font-family:
19
+ // Cross-platform generic font family (default user interface font)
20
+ system-ui,
21
+ // Safari for macOS and iOS (San Francisco)
22
+ -apple-system,
23
+ // Windows
24
+ "Segoe UI",
25
+ // Android
26
+ Roboto,
27
+ // older macOS and iOS
28
+ "Helvetica Neue",
29
+ // Linux
30
+ "Noto Sans",
31
+ "Liberation Sans",
32
+ // Basic web fallback
33
+ Arial,
34
+ // Sans serif fallback
35
+ sans-serif !default;
36
+ $base-font-size: 1rem !default;
37
+ $base-font-weight: 400 !default;
38
+ $base-line-height: 1.5 !default;
39
+
40
+ // Base Style
41
+ $base-border-radius: 4px !default;
42
+ $base-rounded-border-radius: 9999px !default;
43
+ $base-line-height: 1.5 !default;
44
+ $base-disabled-opacity: 0.5 !default;
45
+
46
+ $control-border-width: 1px !default;
47
+ $control-height: 2.25em !default;
48
+ $control-padding-vertical: calc(0.375em - #{$control-border-width});
49
+ $control-padding-horizontal: calc(0.625em - #{$control-border-width});
50
+
51
+ // Sizes
52
+ $sizes: (
53
+ "small": 0.75rem,
54
+ "medium": 1.25rem,
55
+ "large": 1.5rem,
56
+ ) !default;
57
+
58
+ // Colors
59
+ $white: #ffffff !default;
60
+ $black: #000000 !default;
61
+ $grey: #7a7a7a !default;
62
+ $grey-light: #b5b5b5 !default;
63
+ $grey-lighter: #dbdbdb !default;
64
+ $grey-dark: #4a4a4a !default;
65
+
66
+ $primary: #445e00 !default;
67
+ $primary-invert: $white !default;
68
+ $secondary: #6c757d !default;
69
+ $secondary-invert: $white !default;
70
+
71
+ $success: #006724 !default;
72
+ $success-invert: $white !default;
73
+ $info: #005c98 !default;
74
+ $info-invert: $white !default;
75
+ $warning: #f4c300 !default;
76
+ $warning-invert: $black !default;
77
+ $danger: #b60000 !default;
78
+ $danger-invert: $white !default;
79
+
80
+ $colors: (
81
+ "primary": (
82
+ $primary,
83
+ $primary-invert,
84
+ ),
85
+ "secondary": (
86
+ $secondary,
87
+ $secondary-invert,
88
+ ),
89
+ "success": (
90
+ $success,
91
+ $success-invert,
92
+ ),
93
+ "info": (
94
+ $info,
95
+ $info-invert,
96
+ ),
97
+ "warning": (
98
+ $warning,
99
+ $warning-invert,
100
+ ),
101
+ "danger": (
102
+ $danger,
103
+ $danger-invert,
104
+ ),
105
+ ) !default;
package/dist/theme.js ADDED
@@ -0,0 +1,8 @@
1
+ (function (factory) {
2
+ typeof define === 'function' && define.amd ? define(factory) :
3
+ factory();
4
+ })((function () { 'use strict';
5
+
6
+
7
+
8
+ }));
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@oruga-ui/theme-oruga",
3
+ "version": "0.0.1",
4
+ "description": "Default theme for Oruga",
5
+ "license": "MIT",
6
+ "main": "dist/theme.js",
7
+ "module": "dist/theme.js",
8
+ "unpkg": "dist/theme.min.js",
9
+ "typings": "types/index.d.ts",
10
+ "sideEffects": [
11
+ "*.css",
12
+ "*.scss"
13
+ ],
14
+ "files": [
15
+ "dist",
16
+ "src",
17
+ "types/*.d.ts"
18
+ ],
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/oruga-ui/theme-oruga.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/oruga-ui/theme-oruga/issues"
25
+ },
26
+ "scripts": {
27
+ "dev": "vite --force",
28
+ "serve": "vite preview",
29
+ "build": "vue-tsc --noEmit && vite build",
30
+ "build:lib": "rimraf dist && npm run build:config && npm run build:scss && npm run build:scss-full",
31
+ "build:config": "rollup -c",
32
+ "build:scss": "sass --no-charset ./src/assets/scss/oruga.scss | node ./build/banner.js > dist/oruga.css && cleancss -o dist/oruga.min.css dist/oruga.css",
33
+ "build:scss-full": "sass --no-charset ./src/assets/scss/oruga-full.scss | node ./build/banner.js > dist/oruga-full.css && cleancss -o dist/oruga-full.min.css dist/oruga-full.css",
34
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
35
+ "lint:style": "stylelint **/*.{css,scss} --fix --ignore-path .gitignore",
36
+ "update": "ncu -u"
37
+ },
38
+ "devDependencies": {
39
+ "@fortawesome/fontawesome-free": "6.4.2",
40
+ "@oruga-ui/oruga-next": "0.6.0",
41
+ "@rollup/plugin-typescript": "11.1.3",
42
+ "@vitejs/plugin-vue": "4.3.4",
43
+ "@vue/eslint-config-prettier": "^8.0.0",
44
+ "@vue/eslint-config-typescript": "^11.0.3",
45
+ "@vue/tsconfig": "^0.4.0",
46
+ "autoprefixer": "10.4.15",
47
+ "clean-css-cli": "^5.6.2",
48
+ "core-js": "3.32.2",
49
+ "eslint": "^8.49.0",
50
+ "eslint-plugin-prettier": "^5.0.0",
51
+ "eslint-plugin-vue": "^9.17.0",
52
+ "npm-check-updates": "^16.13.3",
53
+ "postcss": "8.4.29",
54
+ "prettier": "^3.0.3",
55
+ "rimraf": "5.0.1",
56
+ "rollup": "^3.29.1",
57
+ "rollup-plugin-copy": "3.5.0",
58
+ "rollup-plugin-sass": "1.12.20",
59
+ "sass": "1.66.1",
60
+ "stylelint": "^15.10.3",
61
+ "stylelint-config-recommended": "^13.0.0",
62
+ "stylelint-config-recommended-scss": "^13.0.0",
63
+ "stylelint-prettier": "^4.0.2",
64
+ "stylelint-scss": "^5.1.0",
65
+ "tslib": "2.6.2",
66
+ "typescript": "5.2.2",
67
+ "vite": "^4.4.9",
68
+ "vue": "3.3.4",
69
+ "vue-router": "4.2.4",
70
+ "vue-tsc": "1.8.10"
71
+ }
72
+ }