@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,268 +0,0 @@
1
- /* @docs */
2
- $dropdown-disabled-opacity: var(--#{$prefix}base-disabled-opacity) !default;
3
- $dropdown-item-active-background-color: var(--#{$prefix}primary) !default;
4
- $dropdown-item-active-color: var(--#{$prefix}primary-invert) !default;
5
- $dropdown-item-color: #000000 !default;
6
- $dropdown-item-disabled-opacity: var(
7
- --#{$prefix}base-disabled-opacity
8
- ) !default;
9
- $dropdown-item-font-size: var(--#{$prefix}base-font-size) !default;
10
- $dropdown-item-hover-background-color: #f5f5f5 !default;
11
- $dropdown-item-hover-color: #000000 !default;
12
- $dropdown-item-line-height: var(--#{$prefix}base-line-height) !default;
13
- $dropdown-item-padding: 0.375rem 1rem !default;
14
- $dropdown-item-font-weight: 400 !default;
15
- $dropdown-menu-background: #ffffff !default;
16
- $dropdown-menu-border-radius: var(--#{$prefix}base-border-radius) !default;
17
- $dropdown-menu-box-shadow:
18
- 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
19
- 0 0 0 1px rgba(10, 10, 10, 0.02) !default;
20
- $dropdown-menu-spacer: 0px !default;
21
- $dropdown-menu-margin: 0 !default;
22
- $dropdown-menu-padding: 0.5rem 0 0.5rem 0 !default;
23
- $dropdown-menu-width: 12rem !default;
24
- $dropdown-menu-zindex: 50 !default;
25
- $dropdown-mobile-max-height: calc(100vh - 120px) !default;
26
- $dropdown-mobile-max-width: 460px !default;
27
- $dropdown-mobile-overlay-color: rgba(#000000, 0.86) !default;
28
- $dropdown-mobile-overlay-zindex: 55 !default;
29
- $dropdown-mobile-width: calc(100vw - 40px) !default;
30
- $dropdown-mobile-zindex: 60 !default;
31
- /* @docs */
32
-
33
- .o-drop {
34
- display: inline-flex;
35
- position: relative;
36
- vertical-align: top;
37
-
38
- &__overlay {
39
- position: fixed;
40
- bottom: 0;
41
- left: 0;
42
- right: 0;
43
- top: 0;
44
- cursor: pointer;
45
- display: none;
46
-
47
- background-color: var(
48
- --#{$prefix}dropdown-mobile-overlay-color,
49
- $dropdown-mobile-overlay-color
50
- );
51
- z-index: var(
52
- --#{$prefix}dropdown-mobile-overlay-zindex,
53
- $dropdown-mobile-overlay-zindex
54
- );
55
- }
56
-
57
- &__trigger {
58
- width: 100%;
59
- }
60
-
61
- &__menu {
62
- position: absolute;
63
- display: block;
64
-
65
- min-width: var(--#{$prefix}dropdown-menu-width, $dropdown-menu-width);
66
- z-index: var(--#{$prefix}dropdown-menu-zindex, $dropdown-menu-zindex);
67
- background-color: var(
68
- --#{$prefix}dropdown-menu-background,
69
- $dropdown-menu-background
70
- );
71
- border-radius: var(
72
- --#{$prefix}dropdown-menu-border-radius,
73
- $dropdown-menu-border-radius
74
- );
75
- box-shadow: var(
76
- --#{$prefix}dropdown-menu-box-shadow,
77
- $dropdown-menu-box-shadow
78
- );
79
- padding: var(--#{$prefix}dropdown-menu-padding, $dropdown-menu-padding);
80
- margin: var(--#{$prefix}dropdown-menu-margin, $dropdown-menu-margin);
81
-
82
- &--bottom {
83
- left: 50%;
84
- right: auto;
85
- top: calc(
86
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
87
- );
88
- bottom: auto;
89
- transform: translateX(-50%);
90
- }
91
-
92
- &--top {
93
- left: 50%;
94
- right: auto;
95
- top: auto;
96
- bottom: calc(
97
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
98
- );
99
- transform: translateX(-50%);
100
- }
101
-
102
- &--left {
103
- right: calc(
104
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
105
- );
106
- left: auto;
107
- top: 50%;
108
- bottom: auto;
109
- transform: translateY(-50%);
110
- }
111
-
112
- &--right {
113
- right: auto;
114
- left: calc(
115
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
116
- );
117
- top: 50%;
118
- bottom: auto;
119
- transform: translateY(-50%);
120
- }
121
-
122
- &--top-right {
123
- right: 0;
124
- left: auto;
125
- top: auto;
126
- bottom: calc(
127
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
128
- );
129
- }
130
-
131
- &--top-left {
132
- right: auto;
133
- left: 0;
134
- top: auto;
135
- bottom: calc(
136
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
137
- );
138
- }
139
-
140
- &--bottom-right {
141
- right: 0;
142
- left: auto;
143
- top: calc(
144
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
145
- );
146
- bottom: auto;
147
- }
148
-
149
- &--bottom-left {
150
- right: auto;
151
- left: 0;
152
- top: calc(
153
- 100% + var(--#{$prefix}dropdown-menu-spacer, $dropdown-menu-spacer)
154
- );
155
- bottom: auto;
156
- }
157
- }
158
-
159
- &__item {
160
- display: block;
161
- position: relative;
162
-
163
- color: var(--#{$prefix}dropdown-item-color, $dropdown-item-color);
164
- font-size: var(
165
- --#{$prefix}dropdown-item-font-size,
166
- $dropdown-item-font-size
167
- );
168
- font-weight: var(
169
- --#{$prefix}dropdown-item-font-weight,
170
- $dropdown-item-font-weight
171
- );
172
- line-height: var(
173
- --#{$prefix}dropdown-item-line-height,
174
- $dropdown-item-line-height
175
- );
176
- padding: var(--#{$prefix}dropdown-item-padding, $dropdown-item-padding);
177
-
178
- &--disabled {
179
- opacity: var(
180
- --#{$prefix}dropdown-item-disabled-opacity,
181
- $dropdown-item-disabled-opacity
182
- );
183
- pointer-events: none;
184
- }
185
-
186
- &--active {
187
- background-color: var(
188
- --#{$prefix}dropdown-item-active-background-color,
189
- $dropdown-item-active-background-color
190
- );
191
- color: var(
192
- --#{$prefix}dropdown-item-active-color,
193
- $dropdown-item-active-color
194
- );
195
- }
196
-
197
- &--clickable {
198
- cursor: pointer;
199
- }
200
-
201
- &--clickable:not(&--active):hover {
202
- background-color: var(
203
- --#{$prefix}dropdown-item-hover-background-color,
204
- $dropdown-item-hover-background-color
205
- );
206
- color: var(
207
- --#{$prefix}dropdown-item-hover-color,
208
- $dropdown-item-hover-color
209
- );
210
- }
211
- }
212
-
213
- &--inline {
214
- display: inline;
215
-
216
- .o-drop__menu {
217
- position: static;
218
- display: inline-block;
219
- padding: 0;
220
- }
221
- }
222
-
223
- &--expanded {
224
- width: 100%;
225
-
226
- .o-drop__menu {
227
- width: 100%;
228
- }
229
- }
230
-
231
- &--disabled {
232
- opacity: var(
233
- --#{$prefix}dropdown-disabled-opacity,
234
- $dropdown-disabled-opacity
235
- );
236
- pointer-events: none;
237
- }
238
-
239
- &--mobile {
240
- > .o-drop__menu {
241
- position: fixed;
242
- top: 25%;
243
- left: 50%;
244
- bottom: auto;
245
- right: auto;
246
- transform: translate3d(-50%, -25%, 0);
247
- overflow-y: auto;
248
- width: var(--#{$prefix}dropdown-mobile-width, $dropdown-mobile-width);
249
- max-width: var(
250
- --#{$prefix}dropdown-mobile-max-width,
251
- $dropdown-mobile-max-width
252
- );
253
- max-height: var(
254
- --#{$prefix}dropdown-mobile-max-height,
255
- $dropdown-mobile-max-height
256
- );
257
- z-index: var(--#{$prefix}dropdown-mobile-zindex, $dropdown-mobile-zindex);
258
- }
259
-
260
- > .o-drop__overlay {
261
- display: block;
262
- }
263
- }
264
-
265
- &--teleport {
266
- width: unset;
267
- }
268
- }
@@ -1,132 +0,0 @@
1
- @use "sass:list";
2
-
3
- /* @docs */
4
- $field-label-color: #363636 !default;
5
- $field-label-font-weight: 600 !default;
6
- $field-margin-bottom: 0.75rem !default;
7
- $field-message-font-size: 0.75rem !default;
8
- $field-message-margin-top: 0.25rem !default;
9
- $field-margin-right: 0.37rem !default;
10
- $field-horizontal-label-margin: 0 1.5rem 0 0 !default;
11
- /* @docs */
12
-
13
- .o-field {
14
- flex-grow: 1;
15
-
16
- &:not(:last-child) {
17
- margin-bottom: var(--#{$prefix}field-margin-bottom, $field-margin-bottom);
18
- }
19
-
20
- &__label {
21
- display: block;
22
- color: var(--#{$prefix}field-label-color, $field-label-color);
23
- font-size: var(--#{$prefix}base-font-size, $base-font-size);
24
- font-weight: var(
25
- --#{$prefix}field-label-font-weight,
26
- $field-label-font-weight
27
- );
28
-
29
- @each $name, $value in $sizes {
30
- &-#{$name} {
31
- font-size: var(--#{$prefix}field-font-size-#{$name}, $value);
32
- }
33
- }
34
- }
35
-
36
- &__message {
37
- display: block;
38
- font-size: var(
39
- --#{$prefix}field-message-font-size,
40
- $field-message-font-size
41
- );
42
- margin-top: var(
43
- --#{$prefix}field-message-margin-top,
44
- $field-message-margin-top
45
- );
46
-
47
- @each $name, $pair in $colors {
48
- $color: list.nth($pair, 1);
49
- &-#{$name} {
50
- color: var(--#{$prefix}variant-#{$name}, $color);
51
- }
52
- }
53
- }
54
-
55
- &--addons {
56
- display: flex;
57
- justify-content: flex-start;
58
-
59
- > button:first-child,
60
- > *:first-child:not(:only-child) button,
61
- > input:first-child,
62
- > *:first-child:not(:only-child) input,
63
- > select:first-child,
64
- > *:first-child:not(:only-child) select {
65
- border-bottom-right-radius: 0;
66
- border-top-right-radius: 0;
67
- }
68
-
69
- > button:last-child,
70
- > *:last-child:not(:only-child) button,
71
- > input:last-child,
72
- > *:last-child:not(:only-child) input,
73
- > select:last-child,
74
- > *:last-child:not(:only-child) select {
75
- border-bottom-left-radius: 0;
76
- border-top-left-radius: 0;
77
- }
78
-
79
- > *:not(:first-child):not(:last-child) button,
80
- > button:not(:first-child):not(:last-child),
81
- > *:not(:first-child):not(:last-child) input,
82
- > input:not(:first-child):not(:last-child),
83
- > *:not(:first-child):not(:last-child) select,
84
- > select:not(:first-child):not(:last-child) {
85
- border-radius: 0;
86
- }
87
- }
88
-
89
- &--grouped {
90
- display: flex;
91
-
92
- @include side-flex-gap($field-margin-right);
93
- }
94
-
95
- &--grouped-multiline {
96
- flex-wrap: wrap;
97
-
98
- &:last-child {
99
- margin-bottom: var(--#{$prefix}field-margin-bottom, $field-margin-bottom);
100
- }
101
- }
102
-
103
- &__horizontal-body {
104
- display: flex;
105
- flex-basis: 0;
106
- flex-grow: 5;
107
- flex-shrink: 1;
108
-
109
- @include side-flex-gap($field-margin-right);
110
- }
111
-
112
- &--horizontal {
113
- display: flex;
114
- }
115
-
116
- &__horizontal-label {
117
- flex-basis: 0;
118
- flex-grow: 1;
119
- flex-shrink: 0;
120
- margin: $field-horizontal-label-margin;
121
- text-align: right;
122
- }
123
-
124
- &--mobile {
125
- &.o-field--horizontal,
126
- .o-field__horizontal-label,
127
- .o-field__horizontal-body {
128
- display: block;
129
- text-align: inherit;
130
- }
131
- }
132
- }
@@ -1,53 +0,0 @@
1
- @use "sass:list";
2
-
3
- /* @docs */
4
- $icon-spin-duration: 2s !default;
5
- /* @docs */
6
-
7
- @keyframes icon-spin {
8
- 0% {
9
- -webkit-transform: rotate(0deg);
10
- transform: rotate(0deg);
11
- }
12
-
13
- 100% {
14
- -webkit-transform: rotate(359deg);
15
- transform: rotate(359deg);
16
- }
17
- }
18
-
19
- .o-icon {
20
- align-items: center;
21
- display: inline-flex;
22
- justify-content: center;
23
- transition:
24
- transform $animation-speed $animation-timing,
25
- opacity $animation-speed-fast $animation-timing;
26
-
27
- @each $name, $value in $sizes {
28
- &--#{$name} {
29
- font-size: var(--#{$prefix}icon-font-size-#{$name}, $value);
30
- }
31
- }
32
- @each $name, $pair in $colors {
33
- $color: list.nth($pair, 1);
34
- &--#{$name} {
35
- color: var(--#{$prefix}variant-#{$name}, $color);
36
- }
37
- }
38
-
39
- &--clickable {
40
- pointer-events: auto;
41
- cursor: pointer;
42
- }
43
-
44
- &--spin {
45
- animation-name: icon-spin;
46
- animation-iteration-count: infinite;
47
- animation-timing-function: linear;
48
- animation-duration: var(
49
- --#{$prefix}icon-spin-duration,
50
- $icon-spin-duration
51
- );
52
- }
53
- }
@@ -1,149 +0,0 @@
1
- @use "sass:list";
2
-
3
- /* @docs */
4
- $input-background-color: #ffffff !default;
5
- $input-border-color: var(--#{$prefix}grey-lighter) !default;
6
- $input-border-style: solid !default;
7
- $input-border-width: 1px !default;
8
- $input-border-radius: var(--#{$prefix}base-border-radius) !default;
9
- $input-rounded-border-radius: var(
10
- --#{$prefix}base-border-radius-rounded
11
- ) !default;
12
- $input-box-shadow: $control-box-shadow !default;
13
- $input-color: #363636 !default;
14
- $input-icon-zindex: 4 !default;
15
- $input-height: $control-height !default;
16
- $input-line-height: var(--#{$prefix}base-line-height) !default;
17
- $input-margin: 0 !default;
18
- $input-padding: $control-padding-vertical $control-padding-horizontal !default;
19
- $input-counter-font-size: 0.75rem !default;
20
- $input-counter-margin: 0.25rem 0 0 0.5rem !default;
21
- $input-textarea-max-height: 600px !default;
22
- $input-textarea-min-height: 120px !default;
23
- $input-textarea-padding: 0.625em !default;
24
- /* @docs */
25
-
26
- .o-input {
27
- -moz-appearance: none;
28
- -webkit-appearance: none;
29
- display: inline-flex;
30
- position: relative;
31
- vertical-align: top;
32
-
33
- box-shadow: var(--#{$prefix}input-box-shadow, $input-box-shadow);
34
- background-color: var(
35
- --#{$prefix}input-background-color,
36
- $input-background-color
37
- );
38
- border-color: var(--#{$prefix}input-border-color, $input-border-color);
39
- border-style: var(--#{$prefix}input-border-style, $input-border-style);
40
- border-width: var(--#{$prefix}input-border-width, $input-border-width);
41
- border-radius: var(--#{$prefix}input-border-radius, $input-border-radius);
42
- color: var(--#{$prefix}input-color, $input-color);
43
- font-size: var(--#{$prefix}base-font-size, $base-font-size);
44
- height: var(--#{$prefix}input-height, $input-height);
45
- line-height: var(--#{$prefix}input-line-height, $input-line-height);
46
- padding: var(--#{$prefix}input-padding, $input-padding);
47
- margin: var(--#{$prefix}input-margin, $input-margin);
48
-
49
- &__wrapper {
50
- display: inline-block;
51
- position: relative;
52
-
53
- &--expanded {
54
- width: 100%;
55
- flex-grow: 1;
56
- flex-shrink: 1;
57
-
58
- .o-input {
59
- width: 100%;
60
- }
61
- }
62
- }
63
-
64
- &__textarea {
65
- display: block;
66
- max-width: 100%;
67
- min-width: 100%;
68
- height: auto;
69
- resize: vertical;
70
- padding: var(--#{$prefix}input-textarea-padding, $input-textarea-padding);
71
-
72
- &:not([rows]) {
73
- max-height: var(
74
- --#{$prefix}input-textarea-max-height,
75
- $input-textarea-max-height
76
- );
77
- min-height: var(
78
- --#{$prefix}input-textarea-min-height,
79
- $input-textarea-min-height
80
- );
81
- }
82
- }
83
-
84
- &__counter {
85
- display: block;
86
- float: right;
87
- font-size: var(
88
- --#{$prefix}input-counter-font-size,
89
- $input-counter-font-size
90
- );
91
- margin: var(--#{$prefix}input-counter-margin, $input-counter-margin);
92
- }
93
-
94
- &__icon-left,
95
- &__icon-right {
96
- position: absolute;
97
- top: 0;
98
- height: 100%;
99
- width: var(--#{$prefix}input-height, $input-height);
100
- z-index: var(--#{$prefix}input-icon-zindex, $input-icon-zindex);
101
- }
102
-
103
- &__icon-right {
104
- right: 0;
105
- }
106
-
107
- &__icon-left {
108
- left: 0;
109
- }
110
-
111
- &--iconspace-left {
112
- padding-left: var(--#{$prefix}input-height, $input-height);
113
- }
114
-
115
- &--iconspace-right {
116
- padding-right: var(--#{$prefix}input-height, $input-height);
117
- }
118
-
119
- &--rounded {
120
- border-radius: var(
121
- --#{$prefix}input-rounded-border-radius,
122
- $input-rounded-border-radius
123
- );
124
- }
125
-
126
- // size variants
127
- @each $name, $value in $sizes {
128
- &--#{$name} {
129
- font-size: var(--#{$prefix}input-font-size-#{$name}, $value);
130
- }
131
- }
132
-
133
- // colar variants
134
- @each $name, $pair in $colors {
135
- $color: list.nth($pair, 1);
136
-
137
- &--#{$name} {
138
- --#{$prefix}focus: #{createFocus($color)};
139
-
140
- border-color: var(--#{$prefix}variant-#{$name}, $color);
141
- }
142
- }
143
-
144
- // focus effect
145
- &:focus,
146
- &:focus-within {
147
- box-shadow: 0 0 0 0.25rem var(--#{$prefix}focus);
148
- }
149
- }
@@ -1,37 +0,0 @@
1
- /* @docs */
2
- $loading-overlay-legacy: #7f7f7f !default;
3
- $loading-overlay: rgba(255, 255, 255, 0.5) !default;
4
- $loading-zindex: 29 !default;
5
- $loading-fullpage-zindex: 999 !default;
6
- /* @docs */
7
-
8
- .o-load {
9
- position: absolute;
10
- bottom: 0;
11
- left: 0;
12
- right: 0;
13
- top: 0;
14
- align-items: center;
15
- display: flex;
16
- justify-content: center;
17
- overflow: hidden;
18
- z-index: var(--#{$prefix}loading-zindex, $loading-zindex);
19
-
20
- &--fullpage {
21
- position: fixed;
22
- z-index: var(--#{$prefix}loading-fullpage-zindex, $loading-fullpage-zindex);
23
- }
24
-
25
- &__overlay {
26
- position: absolute;
27
- bottom: 0;
28
- left: 0;
29
- right: 0;
30
- top: 0;
31
- background: var(
32
- --#{$prefix}loading-overlay-legacy,
33
- $loading-overlay-legacy
34
- );
35
- background: var(--#{$prefix}loading-overlay, $loading-overlay);
36
- }
37
- }