@festo-ui/web-essentials 8.2.0-dev.630 → 8.2.0-dev.637

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 (78) hide show
  1. package/README.md +83 -83
  2. package/dist/css/festo-web-essentials.css +9 -12
  3. package/dist/css/festo-web-essentials.css.map +1 -1
  4. package/dist/css/festo-web-essentials.min.css +12 -12
  5. package/dist/css/festo-web-essentials.min.css.map +1 -1
  6. package/dist/css/light/festo-web-essentials-light.css +0 -3
  7. package/dist/css/light/festo-web-essentials-light.css.map +1 -1
  8. package/dist/css/themes/flatpickr/festo.css +1 -1
  9. package/dist/css/themes/flatpickr/festo.min.css +1 -1
  10. package/dist/scss/_badge.scss +49 -49
  11. package/dist/scss/_border.scss +86 -86
  12. package/dist/scss/_bottom-navigation.scss +47 -47
  13. package/dist/scss/_bottom-sheet.scss +116 -116
  14. package/dist/scss/_colors.scss +11 -11
  15. package/dist/scss/_display.scss +63 -63
  16. package/dist/scss/_flex.scss +269 -269
  17. package/dist/scss/_grid.scss +44 -44
  18. package/dist/scss/_layout.scss +64 -64
  19. package/dist/scss/_list.scss +211 -211
  20. package/dist/scss/_misc.scss +51 -51
  21. package/dist/scss/_mixins.scss +51 -51
  22. package/dist/scss/_modal.scss +233 -233
  23. package/dist/scss/_normalize.scss +369 -369
  24. package/dist/scss/_pagination.scss +124 -124
  25. package/dist/scss/_rfs.scss +177 -177
  26. package/dist/scss/_segment.scss +146 -146
  27. package/dist/scss/_sidebar-overlay.scss +51 -51
  28. package/dist/scss/_slider.scss +150 -150
  29. package/dist/scss/_snackbar.scss +159 -159
  30. package/dist/scss/_spacing.scss +51 -51
  31. package/dist/scss/_switch.scss +145 -145
  32. package/dist/scss/_text-input.scss +191 -191
  33. package/dist/scss/_text-link.scss +52 -52
  34. package/dist/scss/_toolbar.scss +83 -83
  35. package/dist/scss/_type.scss +50 -50
  36. package/dist/scss/_utils.scss +9 -9
  37. package/dist/scss/festo-web-essentials.scss +1 -1
  38. package/dist/scss/light/_border-light.scss +75 -75
  39. package/dist/scss/light/_flex-light.scss +258 -258
  40. package/dist/scss/light/_spacing-light.scss +52 -52
  41. package/dist/scss/light/festo-web-essentials-light.scss +59 -59
  42. package/dist/scss/organisms/_header-modul.scss +111 -111
  43. package/dist/scss/organisms/_teaser.scss +96 -96
  44. package/dist/scss/themes/flatpickr/festo.scss +1 -1
  45. package/package.json +10 -16
  46. package/scss/_badge.scss +49 -49
  47. package/scss/_border.scss +86 -86
  48. package/scss/_bottom-navigation.scss +47 -47
  49. package/scss/_bottom-sheet.scss +116 -116
  50. package/scss/_colors.scss +11 -11
  51. package/scss/_display.scss +63 -63
  52. package/scss/_flex.scss +269 -269
  53. package/scss/_grid.scss +44 -44
  54. package/scss/_layout.scss +64 -64
  55. package/scss/_list.scss +211 -211
  56. package/scss/_misc.scss +51 -51
  57. package/scss/_mixins.scss +51 -51
  58. package/scss/_modal.scss +233 -233
  59. package/scss/_normalize.scss +369 -369
  60. package/scss/_pagination.scss +124 -124
  61. package/scss/_rfs.scss +177 -177
  62. package/scss/_segment.scss +146 -146
  63. package/scss/_sidebar-overlay.scss +51 -51
  64. package/scss/_slider.scss +150 -150
  65. package/scss/_snackbar.scss +159 -159
  66. package/scss/_spacing.scss +51 -51
  67. package/scss/_switch.scss +145 -145
  68. package/scss/_text-input.scss +191 -191
  69. package/scss/_text-link.scss +52 -52
  70. package/scss/_toolbar.scss +83 -83
  71. package/scss/_type.scss +50 -50
  72. package/scss/_utils.scss +9 -9
  73. package/scss/light/_border-light.scss +75 -75
  74. package/scss/light/_flex-light.scss +258 -258
  75. package/scss/light/_spacing-light.scss +52 -52
  76. package/scss/light/festo-web-essentials-light.scss +59 -59
  77. package/scss/organisms/_header-modul.scss +111 -111
  78. package/scss/organisms/_teaser.scss +96 -96
@@ -1,51 +1,51 @@
1
- @use "sass:map";
2
- @use "utils";
3
- @use "variables";
4
-
5
- @mixin spacings($spacers, $infix: "") {
6
- @each $spacing, $space in $spacers {
7
- @each $property, $abrev in (margin: "fwe-m", padding: "fwe-p") {
8
- .#{$abrev}#{$infix}-#{$spacing} {
9
- #{$property}: $space !important;
10
- }
11
-
12
- .#{$abrev}t#{$infix}-#{$spacing} {
13
- #{$property}-top: $space !important;
14
- }
15
-
16
- .#{$abrev}b#{$infix}-#{$spacing} {
17
- #{$property}-bottom: $space !important;
18
- }
19
-
20
- .#{$abrev}l#{$infix}-#{$spacing} {
21
- #{$property}-left: $space !important;
22
- }
23
-
24
- .#{$abrev}r#{$infix}-#{$spacing} {
25
- #{$property}-right: $space !important;
26
- }
27
-
28
- .#{$abrev}x#{$infix}-#{$spacing} {
29
- #{$property}-right: $space !important;
30
- #{$property}-left: $space !important;
31
- }
32
- .#{$abrev}y#{$infix}-#{$spacing} {
33
- #{$property}-top: $space !important;
34
- #{$property}-bottom: $space !important;
35
- }
36
- }
37
- }
38
- }
39
-
40
- @each $breakpoint in map.keys(variables.$grid-breakpoints) {
41
- $infix: utils.breakpoint-infix($breakpoint, variables.$grid-breakpoints);
42
- $size: map.get(variables.$grid-breakpoints, $breakpoint);
43
-
44
- @if $size == 0 {
45
- @include spacings(variables.$spacers);
46
- } @else {
47
- @media (min-width: $size) {
48
- @include spacings(variables.$spacers, $infix);
49
- }
50
- }
51
- }
1
+ @use "sass:map";
2
+ @use "utils";
3
+ @use "variables";
4
+
5
+ @mixin spacings($spacers, $infix: "") {
6
+ @each $spacing, $space in $spacers {
7
+ @each $property, $abrev in (margin: "fwe-m", padding: "fwe-p") {
8
+ .#{$abrev}#{$infix}-#{$spacing} {
9
+ #{$property}: $space !important;
10
+ }
11
+
12
+ .#{$abrev}t#{$infix}-#{$spacing} {
13
+ #{$property}-top: $space !important;
14
+ }
15
+
16
+ .#{$abrev}b#{$infix}-#{$spacing} {
17
+ #{$property}-bottom: $space !important;
18
+ }
19
+
20
+ .#{$abrev}l#{$infix}-#{$spacing} {
21
+ #{$property}-left: $space !important;
22
+ }
23
+
24
+ .#{$abrev}r#{$infix}-#{$spacing} {
25
+ #{$property}-right: $space !important;
26
+ }
27
+
28
+ .#{$abrev}x#{$infix}-#{$spacing} {
29
+ #{$property}-right: $space !important;
30
+ #{$property}-left: $space !important;
31
+ }
32
+ .#{$abrev}y#{$infix}-#{$spacing} {
33
+ #{$property}-top: $space !important;
34
+ #{$property}-bottom: $space !important;
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ @each $breakpoint in map.keys(variables.$grid-breakpoints) {
41
+ $infix: utils.breakpoint-infix($breakpoint, variables.$grid-breakpoints);
42
+ $size: map.get(variables.$grid-breakpoints, $breakpoint);
43
+
44
+ @if $size == 0 {
45
+ @include spacings(variables.$spacers);
46
+ } @else {
47
+ @media (min-width: $size) {
48
+ @include spacings(variables.$spacers, $infix);
49
+ }
50
+ }
51
+ }
package/scss/_switch.scss CHANGED
@@ -1,145 +1,145 @@
1
- @use "variables";
2
-
3
- $defaultHeight: 16px;
4
- $lgHeight: 24px;
5
-
6
- %switch-label-before {
7
- flex-direction: row-reverse;
8
- justify-content: space-between;
9
-
10
- .fwe-switch-label-content {
11
- margin-left: 0px;
12
- margin-right: 8px;
13
- }
14
- }
15
-
16
- %switch-label-below {
17
- flex-direction: column;
18
-
19
- .fwe-switch-label-content {
20
- margin: 8px 0px 0px 0px;
21
- }
22
-
23
- .fwe-switch-track {
24
- margin-top: 0px;
25
- margin-bottom: 0px;
26
- }
27
- }
28
-
29
- label.fwe-switch {
30
- cursor: pointer;
31
- display: flex;
32
- align-items: center;
33
- white-space: nowrap;
34
- vertical-align: middle;
35
- -webkit-user-select: none;
36
- user-select: none;
37
-
38
- .fwe-switch-track {
39
- box-sizing: border-box;
40
- position: relative;
41
- height: $defaultHeight;
42
- width: $defaultHeight * 2;
43
- border: none;
44
- background-color: variables.$control-border;
45
- border-radius: $defaultHeight * 0.5;
46
- margin-top: 4px;
47
- margin-bottom: 4px;
48
- &:after {
49
- content: "";
50
- position: absolute;
51
- top: 3px;
52
- left: 3px;
53
- height: $defaultHeight - 6px;
54
- width: $defaultHeight - 6px;
55
- background: variables.$white;
56
- border-radius: 50%;
57
- transition: left 0.2s;
58
- }
59
- }
60
-
61
- &.fwe-switch-lg {
62
- .fwe-switch-track {
63
- height: $lgHeight;
64
- width: $lgHeight * 2;
65
- border-radius: $lgHeight * 0.5;
66
- margin-top: 0px;
67
- margin-bottom: 0px;
68
-
69
- &:after {
70
- top: 5px;
71
- left: 5px;
72
- height: $lgHeight - 10px;
73
- width: $lgHeight - 10px;
74
- }
75
- }
76
- input[type="checkbox"] {
77
- &:checked ~ .fwe-switch-track {
78
- &:after {
79
- left: $lgHeight + 5px;
80
- }
81
- }
82
- }
83
- }
84
-
85
- .fwe-switch-label-content {
86
- line-height: 24px;
87
- margin-left: 8px;
88
- }
89
-
90
- &.fwe-switch-label-before {
91
- @extend %switch-label-before;
92
- }
93
-
94
- &.fwe-switch-label-below {
95
- @extend %switch-label-below;
96
- }
97
-
98
- input[type="checkbox"] {
99
- height: 0px;
100
- width: 0px;
101
- position: absolute;
102
-
103
- &:hover ~ .fwe-switch-track {
104
- background-color: variables.$control-border-hover;
105
- }
106
-
107
- &:active ~ .fwe-switch-track {
108
- background-color: variables.$control-border-active;
109
- }
110
-
111
- &:checked ~ .fwe-switch-track {
112
- background-color: variables.$caerul;
113
- &:after {
114
- left: $defaultHeight + 3px;
115
- }
116
- }
117
-
118
- &:hover:checked ~ .fwe-switch-track {
119
- background-color: variables.$hero-hover;
120
- }
121
-
122
- &:active:checked ~ .fwe-switch-track {
123
- background-color: variables.$hero-active;
124
- }
125
-
126
- &:disabled ~ .fwe-switch-track {
127
- background-color: variables.$control-disabled;
128
- cursor: not-allowed;
129
- }
130
-
131
- &:disabled:checked ~ .fwe-switch-track {
132
- background-color: variables.$hero-bg;
133
- cursor: not-allowed;
134
- }
135
-
136
- &:disabled {
137
- cursor: not-allowed;
138
- }
139
-
140
- &:disabled ~ .fwe-switch-label-content {
141
- color: variables.$text-disabled;
142
- cursor: not-allowed;
143
- }
144
- }
145
- }
1
+ @use "variables";
2
+
3
+ $defaultHeight: 16px;
4
+ $lgHeight: 24px;
5
+
6
+ %switch-label-before {
7
+ flex-direction: row-reverse;
8
+ justify-content: space-between;
9
+
10
+ .fwe-switch-label-content {
11
+ margin-left: 0px;
12
+ margin-right: 8px;
13
+ }
14
+ }
15
+
16
+ %switch-label-below {
17
+ flex-direction: column;
18
+
19
+ .fwe-switch-label-content {
20
+ margin: 8px 0px 0px 0px;
21
+ }
22
+
23
+ .fwe-switch-track {
24
+ margin-top: 0px;
25
+ margin-bottom: 0px;
26
+ }
27
+ }
28
+
29
+ label.fwe-switch {
30
+ cursor: pointer;
31
+ display: flex;
32
+ align-items: center;
33
+ white-space: nowrap;
34
+ vertical-align: middle;
35
+ -webkit-user-select: none;
36
+ user-select: none;
37
+
38
+ .fwe-switch-track {
39
+ box-sizing: border-box;
40
+ position: relative;
41
+ height: $defaultHeight;
42
+ width: $defaultHeight * 2;
43
+ border: none;
44
+ background-color: variables.$control-border;
45
+ border-radius: $defaultHeight * 0.5;
46
+ margin-top: 4px;
47
+ margin-bottom: 4px;
48
+ &:after {
49
+ content: "";
50
+ position: absolute;
51
+ top: 3px;
52
+ left: 3px;
53
+ height: $defaultHeight - 6px;
54
+ width: $defaultHeight - 6px;
55
+ background: variables.$white;
56
+ border-radius: 50%;
57
+ transition: left 0.2s;
58
+ }
59
+ }
60
+
61
+ &.fwe-switch-lg {
62
+ .fwe-switch-track {
63
+ height: $lgHeight;
64
+ width: $lgHeight * 2;
65
+ border-radius: $lgHeight * 0.5;
66
+ margin-top: 0px;
67
+ margin-bottom: 0px;
68
+
69
+ &:after {
70
+ top: 5px;
71
+ left: 5px;
72
+ height: $lgHeight - 10px;
73
+ width: $lgHeight - 10px;
74
+ }
75
+ }
76
+ input[type="checkbox"] {
77
+ &:checked ~ .fwe-switch-track {
78
+ &:after {
79
+ left: $lgHeight + 5px;
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ .fwe-switch-label-content {
86
+ line-height: 24px;
87
+ margin-left: 8px;
88
+ }
89
+
90
+ &.fwe-switch-label-before {
91
+ @extend %switch-label-before;
92
+ }
93
+
94
+ &.fwe-switch-label-below {
95
+ @extend %switch-label-below;
96
+ }
97
+
98
+ input[type="checkbox"] {
99
+ height: 0px;
100
+ width: 0px;
101
+ position: absolute;
102
+
103
+ &:hover ~ .fwe-switch-track {
104
+ background-color: variables.$control-border-hover;
105
+ }
106
+
107
+ &:active ~ .fwe-switch-track {
108
+ background-color: variables.$control-border-active;
109
+ }
110
+
111
+ &:checked ~ .fwe-switch-track {
112
+ background-color: variables.$caerul;
113
+ &:after {
114
+ left: $defaultHeight + 3px;
115
+ }
116
+ }
117
+
118
+ &:hover:checked ~ .fwe-switch-track {
119
+ background-color: variables.$hero-hover;
120
+ }
121
+
122
+ &:active:checked ~ .fwe-switch-track {
123
+ background-color: variables.$hero-active;
124
+ }
125
+
126
+ &:disabled ~ .fwe-switch-track {
127
+ background-color: variables.$control-disabled;
128
+ cursor: not-allowed;
129
+ }
130
+
131
+ &:disabled:checked ~ .fwe-switch-track {
132
+ background-color: variables.$hero-bg;
133
+ cursor: not-allowed;
134
+ }
135
+
136
+ &:disabled {
137
+ cursor: not-allowed;
138
+ }
139
+
140
+ &:disabled ~ .fwe-switch-label-content {
141
+ color: variables.$text-disabled;
142
+ cursor: not-allowed;
143
+ }
144
+ }
145
+ }