@oruga-ui/theme-oruga 0.4.2 → 0.5.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 (49) hide show
  1. package/dist/oruga.css +2 -4046
  2. package/dist/scss/components/_button.scss +30 -38
  3. package/dist/scss/components/_datepicker.scss +15 -8
  4. package/dist/scss/components/_dropdown.scss +1 -1
  5. package/dist/scss/components/_menu.scss +8 -3
  6. package/dist/scss/components/_pagination.scss +10 -10
  7. package/dist/scss/components/_slider.scss +9 -4
  8. package/dist/scss/components/_steps.scss +56 -123
  9. package/dist/scss/components/_tabs.scss +220 -232
  10. package/dist/scss/utils/_variables.scss +2 -2
  11. package/dist/theme.js +1 -8
  12. package/package.json +26 -33
  13. package/dist/oruga.min.css +0 -1
  14. package/src/assets/scss/components/_autocomplete.scss +0 -23
  15. package/src/assets/scss/components/_button.scss +0 -226
  16. package/src/assets/scss/components/_carousel.scss +0 -233
  17. package/src/assets/scss/components/_checkbox.scss +0 -171
  18. package/src/assets/scss/components/_collapse.scss +0 -15
  19. package/src/assets/scss/components/_datepicker.scss +0 -494
  20. package/src/assets/scss/components/_datetimepicker.scss +0 -13
  21. package/src/assets/scss/components/_dropdown.scss +0 -268
  22. package/src/assets/scss/components/_field.scss +0 -132
  23. package/src/assets/scss/components/_icon.scss +0 -53
  24. package/src/assets/scss/components/_input.scss +0 -149
  25. package/src/assets/scss/components/_loading.scss +0 -37
  26. package/src/assets/scss/components/_menu.scss +0 -92
  27. package/src/assets/scss/components/_modal.scss +0 -94
  28. package/src/assets/scss/components/_notification.scss +0 -175
  29. package/src/assets/scss/components/_pagination.scss +0 -213
  30. package/src/assets/scss/components/_radio.scss +0 -112
  31. package/src/assets/scss/components/_select.scss +0 -156
  32. package/src/assets/scss/components/_sidebar.scss +0 -139
  33. package/src/assets/scss/components/_skeleton.scss +0 -80
  34. package/src/assets/scss/components/_slider.scss +0 -199
  35. package/src/assets/scss/components/_steps.scss +0 -427
  36. package/src/assets/scss/components/_switch.scss +0 -150
  37. package/src/assets/scss/components/_table.scss +0 -424
  38. package/src/assets/scss/components/_tabs.scss +0 -348
  39. package/src/assets/scss/components/_taginput.scss +0 -117
  40. package/src/assets/scss/components/_timepicker.scss +0 -92
  41. package/src/assets/scss/components/_tooltip.scss +0 -453
  42. package/src/assets/scss/components/_upload.scss +0 -69
  43. package/src/assets/scss/oruga-build.scss +0 -9
  44. package/src/assets/scss/oruga.scss +0 -41
  45. package/src/assets/scss/utils/_animations.scss +0 -233
  46. package/src/assets/scss/utils/_base.scss +0 -31
  47. package/src/assets/scss/utils/_helpers.scss +0 -113
  48. package/src/assets/scss/utils/_root.scss +0 -54
  49. package/src/assets/scss/utils/_variables.scss +0 -103
@@ -1,233 +0,0 @@
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 $animation-speed $animation-timing;
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 $animation-speed $animation-timing;
127
-
128
- .animation-content {
129
- transition: transform $animation-speed $animation-timing;
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 $animation-speed $animation-timing;
147
-
148
- .animation-content {
149
- transition: transform $animation-speed $animation-timing;
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 $animation-speed-fast
169
- cubic-bezier(0.785, 0.135, 0.15, 0.86);
170
- }
171
-
172
- .slide-prev-leave-to,
173
- .slide-next-enter,
174
- .slide-next-enter-from {
175
- transform: translate3d(-100%, 0, 0);
176
- position: absolute;
177
- width: 100%;
178
- }
179
-
180
- .slide-prev-enter,
181
- .slide-prev-enter-from,
182
- .slide-next-leave-to {
183
- transform: translate3d(100%, 0, 0);
184
- position: absolute;
185
- width: 100%;
186
- }
187
-
188
- .slide-down-enter-active,
189
- .slide-down-leave-active,
190
- .slide-up-enter-active,
191
- .slide-up-leave-active {
192
- transition: transform $animation-speed-fast
193
- cubic-bezier(0.785, 0.135, 0.15, 0.86);
194
- }
195
-
196
- .slide-down-enter,
197
- .slide-up-leave-to,
198
- .slide-down-enter-from {
199
- transform: translate3d(0, -100%, 0);
200
- position: absolute;
201
- height: 100%;
202
- }
203
-
204
- .slide-up-enter,
205
- .slide-up-enter-from,
206
- .slide-down-leave-to {
207
- transform: translate3d(0, 100%, 0);
208
- position: absolute;
209
- height: 100%;
210
- }
211
-
212
- .slide-enter-active {
213
- transition: $animation-speed $animation-timing;
214
- }
215
-
216
- .slide-leave-active {
217
- transition: $animation-speed $animation-timing;
218
- transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
219
- }
220
-
221
- .slide-leave,
222
- .slide-enter-to,
223
- .slide-leave-from {
224
- max-height: 100px;
225
- overflow: hidden;
226
- }
227
-
228
- .slide-enter,
229
- .slide-enter-from,
230
- .slide-leave-to {
231
- overflow: hidden;
232
- max-height: 0;
233
- }
@@ -1,31 +0,0 @@
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
- font-family: var(--#{$prefix}base-font-family, $base-font-family);
16
- font-size: var(--#{$prefix}base-font-size, $base-font-size);
17
- font-weight: var(--#{$prefix}base-font-weight, $base-font-weight);
18
- line-height: var(--#{$prefix}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
- }
@@ -1,113 +0,0 @@
1
- @use "sass:string";
2
- @use "sass:math";
3
- @use "sass:color";
4
-
5
- /**********************************
6
- * Utility mixins and functions
7
- ***********************************/
8
-
9
- /// Replaces characters in a string
10
- ///
11
- /// @param {string} $string
12
- /// String where the replace happens
13
- /// @param {string} $search
14
- /// Portion of string to find and replace
15
- /// @param {string} $replace
16
- /// Replacement. Default is ''.
17
- /// @return {string} string with characters replaced.
18
- @function str-replace($string, $search, $replace: "") {
19
- $index: string.index($string, $search);
20
-
21
- @return if(
22
- $index,
23
- string.slice($string, 1, $index - 1) + $replace +
24
- str-replace(
25
- string.slice($string, $index + string.length($search)),
26
- $search,
27
- $replace
28
- ),
29
- $string
30
- );
31
- }
32
-
33
- /// Encodes an inline svg. Original source code: http://codepen.io/jakob-e/pen/doMoML
34
- ///
35
- /// @param {string} $svg
36
- /// Inline svg to encode
37
- /// @return {string} encoded svg.
38
- @function svg-encode($svg) {
39
- // Chunk up string in order to avoid "stack level too deep" error
40
- $encoded: "";
41
- $slice: 2000;
42
- $index: 0;
43
- $loops: math.ceil(divide(string.length($svg), $slice));
44
-
45
- @for $i from 1 through $loops {
46
- $chunk: string.slice($svg, $index, $index + $slice - 1);
47
- // Encode
48
- $chunk: str-replace($chunk, '"', "'");
49
- $chunk: str-replace($chunk, "%", "%25");
50
- $chunk: str-replace($chunk, "#", "%23");
51
- $chunk: str-replace($chunk, "{", "%7B");
52
- $chunk: str-replace($chunk, "}", "%7D");
53
- $chunk: str-replace($chunk, "<", "%3C");
54
- $chunk: str-replace($chunk, ">", "%3E");
55
-
56
- $encoded: #{$encoded}#{$chunk};
57
- $index: $index + $slice;
58
- }
59
-
60
- @return "data:image/svg+xml,#{$encoded}";
61
- }
62
-
63
- @mixin unselectable {
64
- -webkit-touch-callout: none;
65
- -webkit-user-select: none;
66
- -moz-user-select: none;
67
- -ms-user-select: none;
68
- user-select: none;
69
- }
70
- @mixin side-flex-gap($gap) {
71
- //flex-wrap: wrap;
72
- margin-left: -$gap;
73
- margin-right: -$gap;
74
-
75
- & > * {
76
- margin-left: $gap;
77
- margin-right: $gap;
78
- }
79
- }
80
-
81
- // Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
82
- // Replaces old slash division deprecated in Dart Sass
83
- @function divide($dividend, $divisor, $precision: 10) {
84
- $sign: if($dividend > 0 and $divisor > 0, 1, -1);
85
- $dividend: math.abs($dividend);
86
- $divisor: math.abs($divisor);
87
- $quotient: 0;
88
- $remainder: $dividend;
89
- @if $dividend == 0 {
90
- @return 0;
91
- }
92
- @if $divisor == 0 {
93
- @error "Cannot divide by 0";
94
- }
95
- @if $divisor == 1 {
96
- @return $dividend;
97
- }
98
-
99
- @while $remainder >= $divisor {
100
- $quotient: $quotient + 1;
101
- $remainder: $remainder - $divisor;
102
- }
103
- @if $remainder > 0 and $precision > 0 {
104
- $remainder: divide($remainder * 10, $divisor, $precision - 1) * 0.1;
105
- }
106
-
107
- @return ($quotient + $remainder) * $sign;
108
- }
109
-
110
- // create a focus color based on a given color
111
- @function createFocus($color) {
112
- @return color.adjust($color, $alpha: -0.75);
113
- }
@@ -1,54 +0,0 @@
1
- @use "sass:list";
2
- @use "sass:meta";
3
-
4
- @mixin root() {
5
- $host-selector: if($enable-host, ":host", ":root");
6
-
7
- #{$host-selector} {
8
- @content;
9
- }
10
- }
11
-
12
- /*******************************
13
- * Root variables extensions
14
- ********************************/
15
-
16
- @include root() {
17
- // define color variables
18
- @each $name, $color in $colors {
19
- @if meta.type-of($color) == list {
20
- --#{$prefix}#{$name}: #{list.nth($color, 1)};
21
- --#{$prefix}#{$name}-invert: #{list.nth($color, 2)};
22
- } @else {
23
- --#{$prefix}#{$name}: $color;
24
- }
25
- }
26
-
27
- // define additional colors
28
- --#{$prefix}white: #{$white};
29
- --#{$prefix}black: #{$black};
30
- --#{$prefix}grey: #{$grey};
31
- --#{$prefix}grey-light: #{$grey-light};
32
- --#{$prefix}grey-lighter: #{$grey-lighter};
33
- --#{$prefix}grey-dark: #{$grey-dark};
34
- --#{$prefix}focus: #{createFocus($primary)};
35
-
36
- // define size variables
37
- @each $name, $size in $sizes {
38
- --#{$prefix}size-#{$name}: #{$size};
39
- }
40
-
41
- // define base variables
42
- --#{$prefix}base-font-family: #{$base-font-family};
43
- --#{$prefix}base-font-size: #{$base-font-size};
44
- --#{$prefix}base-font-weight: #{$base-font-weight};
45
- --#{$prefix}base-line-height: #{$base-line-height};
46
-
47
- --#{$prefix}base-border-radius: #{$base-border-radius};
48
- --#{$prefix}base-border-radius-rounded: #{$base-border-radius-rounded};
49
- --#{$prefix}base-line-height: #{$base-line-height};
50
- --#{$prefix}base-disabled-opacity: #{$base-disabled-opacity};
51
-
52
- --#{$prefix}transition-duration: #{$animation-speed};
53
- --#{$prefix}transition-timing: #{$animation-timing};
54
- }
@@ -1,103 +0,0 @@
1
- /*********************
2
- * Theme Variables
3
- **********************/
4
-
5
- // Settings
6
- $prefix: "oruga-" !default;
7
- $enable-host: false !default;
8
-
9
- // Animations
10
- $animation-speed: 150ms !default;
11
- $animation-speed-fast: 300ms !default;
12
- $animation-timing: ease-out !default;
13
-
14
- // Font
15
- $base-font-family:
16
- // Cross-platform generic font family (default user interface font)
17
- system-ui,
18
- // Safari for macOS and iOS (San Francisco)
19
- -apple-system,
20
- // Windows
21
- "Segoe UI",
22
- // Android
23
- Roboto,
24
- // older macOS and iOS
25
- "Helvetica Neue",
26
- // Linux
27
- "Noto Sans",
28
- "Liberation Sans",
29
- // Basic web fallback
30
- Arial,
31
- // Sans serif fallback
32
- sans-serif !default;
33
- $base-font-size: 1rem !default;
34
- $base-font-weight: 400 !default;
35
- $base-line-height: 1.5 !default;
36
-
37
- // Base Style
38
- $base-border-radius: 4px !default;
39
- $base-border-radius-rounded: 9999px !default;
40
- $base-line-height: 1.5 !default;
41
- $base-disabled-opacity: 0.5 !default;
42
-
43
- $control-border-width: 1px !default;
44
- $control-height: 2.25em !default;
45
- $control-padding-vertical: calc(0.375em - #{$control-border-width});
46
- $control-padding-horizontal: calc(0.625em - #{$control-border-width});
47
- $control-box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.1);
48
-
49
- // Sizes
50
- $sizes: (
51
- "small": 0.75rem,
52
- "medium": 1.25rem,
53
- "large": 1.5rem,
54
- ) !default;
55
-
56
- // Colors
57
- $white: #ffffff !default;
58
- $black: #000000 !default;
59
- $grey: #7a7a7a !default;
60
- $grey-light: #b5b5b5 !default;
61
- $grey-lighter: #dbdbdb !default;
62
- $grey-dark: #4a4a4a !default;
63
-
64
- $primary: #445e00 !default;
65
- $primary-invert: $white !default;
66
- $secondary: #6c757d !default;
67
- $secondary-invert: $white !default;
68
-
69
- $success: #006724 !default;
70
- $success-invert: $white !default;
71
- $info: #005c98 !default;
72
- $info-invert: $white !default;
73
- $warning: #f4c300 !default;
74
- $warning-invert: $black !default;
75
- $danger: #b60000 !default;
76
- $danger-invert: $white !default;
77
-
78
- $colors: (
79
- "primary": (
80
- $primary,
81
- $primary-invert,
82
- ),
83
- "secondary": (
84
- $secondary,
85
- $secondary-invert,
86
- ),
87
- "success": (
88
- $success,
89
- $success-invert,
90
- ),
91
- "info": (
92
- $info,
93
- $info-invert,
94
- ),
95
- "warning": (
96
- $warning,
97
- $warning-invert,
98
- ),
99
- "danger": (
100
- $danger,
101
- $danger-invert,
102
- ),
103
- ) !default;