@scaleflex/widget-core 4.0.7 → 4.3.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.
package/lib/_common.scss CHANGED
@@ -1,244 +1,244 @@
1
- /**
2
- * General Scaleflex styles that apply to everything inside the .filerobot-Root container
3
- */
4
-
5
- .filerobot-Root {
6
- overflow: hidden;
7
- box-sizing: border-box;
8
- font-family: $font-family-base;
9
- line-height: 1;
10
- -webkit-font-smoothing: antialiased;
11
- -moz-osx-font-smoothing: grayscale;
12
- text-align: left;
13
- position: relative;
14
- color: $gray-800;
15
-
16
- :disabled {
17
- cursor: not-allowed;
18
- }
19
- }
20
-
21
-
22
- .SfxModal-Wrapper, .filerobot-Root *, #SfxPopper * {
23
- font-family: $font-family-base;
24
- }
25
-
26
- #SfxPopper * {
27
- box-sizing: border-box;
28
- }
29
-
30
- .SfxModal-Wrapper *, .filerobot-Root *, #SfxPopper * {
31
- scrollbar-color: auto !important;
32
-
33
- &::-webkit-scrollbar {
34
- width: 12px !important;
35
- height: 12px !important;
36
- }
37
-
38
- /* Track */
39
- &::-webkit-scrollbar-track {
40
- background: transparent !important;
41
- }
42
-
43
- /* Handle */
44
- &::-webkit-scrollbar-thumb {
45
- background: #CCD6DE;
46
- border: 4px solid #FFFFFF;
47
- border-radius: 99px;
48
- padding: 4px 6px;
49
- }
50
- }
51
-
52
- .filerobot-Root *, .filerobot-Root *:before, .filerobot-Root *:after {
53
- box-sizing: inherit;
54
- }
55
-
56
- .filerobot-Root [hidden] {
57
- display: none;
58
- }
59
-
60
- // Utilities
61
-
62
- // used in a few places
63
- .filerobot-u-reset {
64
- -webkit-appearance: none;
65
- line-height: 1;
66
- padding: 0;
67
- margin: 0;
68
- border: 0;
69
- color: inherit;
70
- backface-visibility: visible;
71
- background: none;
72
- border: medium none currentColor;
73
- border-collapse: separate;
74
- border-image: none;
75
- border-radius: 0;
76
- border-spacing: 0;
77
- box-shadow: none;
78
- clear: none;
79
- cursor: auto;
80
- display: inline;
81
- empty-cells: show;
82
- float: none;
83
- font-family: inherit;
84
- font-size: inherit;
85
- font-style: normal;
86
- font-variant: normal;
87
- font-weight: normal;
88
- font-stretch: normal;
89
- hyphens: none;
90
- left: auto;
91
- letter-spacing: normal;
92
- list-style: none;
93
- margin: 0;
94
- max-height: none;
95
- max-width: none;
96
- min-height: 0;
97
- min-width: 0;
98
- opacity: 1;
99
- outline: medium none invert;
100
- overflow: visible;
101
- overflow-x: visible;
102
- overflow-y: visible;
103
- text-align: left;
104
- text-decoration: none;
105
- text-indent: 0;
106
- text-shadow: none;
107
- text-transform: none;
108
- top: auto;
109
- transform: none;
110
- transform-origin: 50% 50% 0;
111
- transform-style: flat;
112
- transition: none 0s ease 0s;
113
- unicode-bidi: normal;
114
- vertical-align: baseline;
115
- visibility: visible;
116
- white-space: normal;
117
- z-index: auto;
118
-
119
- span {
120
- max-width: 250px;
121
- overflow: hidden;
122
- text-overflow: ellipsis;
123
-
124
- :not(:disabled) {
125
- :active {
126
- background-color: #eceef2;
127
- }
128
- }
129
- }
130
- }
131
-
132
- //.filerobot-c-separator {
133
- // height: 60%;
134
- // border-left: 1px solid $border-primary-stateless;
135
- // width: 1px;
136
- // display: inline;
137
- // margin: 0 8px;
138
- //}
139
-
140
- .filerobot-c-horizontal-separator {
141
- width: 100%;
142
- border-bottom: 1px solid $border;
143
- height: 1px;
144
- display: block;
145
- position: absolute;
146
- left: 0;
147
- right: 0;
148
- }
149
-
150
- // Icon
151
-
152
- // https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
153
- // used in a few places
154
- .filerobot-c-icon {
155
- max-width: 100%;
156
- max-height: 100%;
157
- fill: currentColor;
158
- display: inline-block;
159
- overflow: hidden;
160
- }
161
-
162
- // Buttons
163
-
164
- .filerobot-c-btn {
165
- display: inline-block;
166
- text-align: center;
167
- white-space: nowrap;
168
- vertical-align: middle;
169
- font-family: inherit;
170
- font-size: 16px;
171
- line-height: 1;
172
- font-weight: 500;
173
- transition-property: background-color, color;
174
- transition-duration: 0.3s;
175
- user-select: none;
176
- }
177
-
178
- .filerobot-c-btn:not(:disabled):not(.disabled) {
179
- cursor: pointer;
180
- }
181
-
182
- .filerobot-c-btn::-moz-focus-inner {
183
- border: 0;
184
- }
185
-
186
- .filerobot-c-btn-primary {
187
- font-size: 14px;
188
- padding: 10px 18px;
189
- border-radius: 4px;
190
- background-color: $blue;
191
- color: $white;
192
-
193
- &:hover {
194
- background-color: darken($blue, 10%);
195
- }
196
-
197
- &:focus {
198
- outline: none;
199
- box-shadow: 0 0 0 3px rgba($blue, 0.4);
200
- }
201
-
202
- .filerobot-size--md & {
203
- padding: 13px 22px;
204
- }
205
-
206
- [data-filerobot-theme="dark"] & {
207
- color: $gray-200;
208
- @include blue-border-focus--dark;
209
- }
210
- }
211
-
212
- .filerobot-c-empty {
213
- &-wrapper {
214
- display: flex;
215
- height: 100%;
216
- }
217
- height: 100%;
218
- width: 100%;
219
- display: flex;
220
- align-items: center;
221
- justify-content: center;
222
- flex-flow: column wrap;
223
- flex: 1;
224
- color: $gray-500;
225
- background-color: #ffffff;
226
- line-height: 14px;
227
- font-size: 12px;
228
-
229
- &.left {
230
- align-items: flex-start;
231
- }
232
- &.right {
233
- align-items: flex-end;
234
- }
235
- }
236
-
237
- .filerobot-c-empty {
238
- align-items: flex-start;
239
- color: $light-txt-secondary;
240
- }
241
-
242
- svg {
243
- outline: none;
1
+ /**
2
+ * General Scaleflex styles that apply to everything inside the .filerobot-Root container
3
+ */
4
+
5
+ .filerobot-Root {
6
+ overflow: hidden;
7
+ box-sizing: border-box;
8
+ font-family: $font-family-base;
9
+ line-height: 1;
10
+ -webkit-font-smoothing: antialiased;
11
+ -moz-osx-font-smoothing: grayscale;
12
+ text-align: left;
13
+ position: relative;
14
+ color: $gray-800;
15
+
16
+ :disabled {
17
+ cursor: not-allowed;
18
+ }
19
+ }
20
+
21
+
22
+ .SfxModal-Wrapper, .filerobot-Root *, #SfxPopper * {
23
+ font-family: $font-family-base;
24
+ }
25
+
26
+ #SfxPopper * {
27
+ box-sizing: border-box;
28
+ }
29
+
30
+ .SfxModal-Wrapper *, .filerobot-Root *, #SfxPopper * {
31
+ scrollbar-color: auto !important;
32
+
33
+ &::-webkit-scrollbar {
34
+ width: 12px !important;
35
+ height: 12px !important;
36
+ }
37
+
38
+ /* Track */
39
+ &::-webkit-scrollbar-track {
40
+ background: transparent !important;
41
+ }
42
+
43
+ /* Handle */
44
+ &::-webkit-scrollbar-thumb {
45
+ background: #CCD6DE;
46
+ border: 4px solid #FFFFFF;
47
+ border-radius: 99px;
48
+ padding: 4px 6px;
49
+ }
50
+ }
51
+
52
+ .filerobot-Root *, .filerobot-Root *:before, .filerobot-Root *:after {
53
+ box-sizing: inherit;
54
+ }
55
+
56
+ .filerobot-Root [hidden] {
57
+ display: none;
58
+ }
59
+
60
+ // Utilities
61
+
62
+ // used in a few places
63
+ .filerobot-u-reset {
64
+ -webkit-appearance: none;
65
+ line-height: 1;
66
+ padding: 0;
67
+ margin: 0;
68
+ border: 0;
69
+ color: inherit;
70
+ backface-visibility: visible;
71
+ background: none;
72
+ border: medium none currentColor;
73
+ border-collapse: separate;
74
+ border-image: none;
75
+ border-radius: 0;
76
+ border-spacing: 0;
77
+ box-shadow: none;
78
+ clear: none;
79
+ cursor: auto;
80
+ display: inline;
81
+ empty-cells: show;
82
+ float: none;
83
+ font-family: inherit;
84
+ font-size: inherit;
85
+ font-style: normal;
86
+ font-variant: normal;
87
+ font-weight: normal;
88
+ font-stretch: normal;
89
+ hyphens: none;
90
+ left: auto;
91
+ letter-spacing: normal;
92
+ list-style: none;
93
+ margin: 0;
94
+ max-height: none;
95
+ max-width: none;
96
+ min-height: 0;
97
+ min-width: 0;
98
+ opacity: 1;
99
+ outline: medium none invert;
100
+ overflow: visible;
101
+ overflow-x: visible;
102
+ overflow-y: visible;
103
+ text-align: left;
104
+ text-decoration: none;
105
+ text-indent: 0;
106
+ text-shadow: none;
107
+ text-transform: none;
108
+ top: auto;
109
+ transform: none;
110
+ transform-origin: 50% 50% 0;
111
+ transform-style: flat;
112
+ transition: none 0s ease 0s;
113
+ unicode-bidi: normal;
114
+ vertical-align: baseline;
115
+ visibility: visible;
116
+ white-space: normal;
117
+ z-index: auto;
118
+
119
+ span {
120
+ max-width: 250px;
121
+ overflow: hidden;
122
+ text-overflow: ellipsis;
123
+
124
+ :not(:disabled) {
125
+ :active {
126
+ background-color: #eceef2;
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ //.filerobot-c-separator {
133
+ // height: 60%;
134
+ // border-left: 1px solid $border-primary-stateless;
135
+ // width: 1px;
136
+ // display: inline;
137
+ // margin: 0 8px;
138
+ //}
139
+
140
+ .filerobot-c-horizontal-separator {
141
+ width: 100%;
142
+ border-bottom: 1px solid $border;
143
+ height: 1px;
144
+ display: block;
145
+ position: absolute;
146
+ left: 0;
147
+ right: 0;
148
+ }
149
+
150
+ // Icon
151
+
152
+ // https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
153
+ // used in a few places
154
+ .filerobot-c-icon {
155
+ max-width: 100%;
156
+ max-height: 100%;
157
+ fill: currentColor;
158
+ display: inline-block;
159
+ overflow: hidden;
160
+ }
161
+
162
+ // Buttons
163
+
164
+ .filerobot-c-btn {
165
+ display: inline-block;
166
+ text-align: center;
167
+ white-space: nowrap;
168
+ vertical-align: middle;
169
+ font-family: inherit;
170
+ font-size: 16px;
171
+ line-height: 1;
172
+ font-weight: 500;
173
+ transition-property: background-color, color;
174
+ transition-duration: 0.3s;
175
+ user-select: none;
176
+ }
177
+
178
+ .filerobot-c-btn:not(:disabled):not(.disabled) {
179
+ cursor: pointer;
180
+ }
181
+
182
+ .filerobot-c-btn::-moz-focus-inner {
183
+ border: 0;
184
+ }
185
+
186
+ .filerobot-c-btn-primary {
187
+ font-size: 14px;
188
+ padding: 10px 18px;
189
+ border-radius: 4px;
190
+ background-color: $blue;
191
+ color: $white;
192
+
193
+ &:hover {
194
+ background-color: darken($blue, 10%);
195
+ }
196
+
197
+ &:focus {
198
+ outline: none;
199
+ box-shadow: 0 0 0 3px rgba($blue, 0.4);
200
+ }
201
+
202
+ .filerobot-size--md & {
203
+ padding: 13px 22px;
204
+ }
205
+
206
+ [data-filerobot-theme="dark"] & {
207
+ color: $gray-200;
208
+ @include blue-border-focus--dark;
209
+ }
210
+ }
211
+
212
+ .filerobot-c-empty {
213
+ &-wrapper {
214
+ display: flex;
215
+ height: 100%;
216
+ }
217
+ height: 100%;
218
+ width: 100%;
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: center;
222
+ flex-flow: column wrap;
223
+ flex: 1;
224
+ color: $gray-500;
225
+ background-color: #ffffff;
226
+ line-height: 14px;
227
+ font-size: 12px;
228
+
229
+ &.left {
230
+ align-items: flex-start;
231
+ }
232
+ &.right {
233
+ align-items: flex-end;
234
+ }
235
+ }
236
+
237
+ .filerobot-c-empty {
238
+ align-items: flex-start;
239
+ color: $light-txt-secondary;
240
+ }
241
+
242
+ svg {
243
+ outline: none;
244
244
  }
package/lib/_utils.scss CHANGED
@@ -1,38 +1,38 @@
1
- // Utility Mixins
2
-
3
- @mixin reset-button() {
4
- background: none;
5
- -webkit-appearance: none;
6
- font-family: inherit;
7
- font-size: inherit;
8
- line-height: 1;
9
- padding: 0;
10
- margin: 0;
11
- border: 0;
12
- color: inherit;
13
- }
14
-
15
- @mixin blue-border-focus() {
16
- @include clear-focus();
17
-
18
- &:focus {
19
- box-shadow: 0 0 0 3px rgba($blue, 0.5);
20
- }
21
- }
22
-
23
- @mixin blue-border-focus--dark() {
24
- @include clear-focus();
25
-
26
- &:focus {
27
- box-shadow: 0 0 0 2px rgba($lightblue, 0.85);
28
- }
29
- }
30
-
31
- @mixin clear-focus() {
32
- &:focus {
33
- outline: none;
34
- }
35
- &::-moz-focus-inner {
36
- border: 0;
37
- }
38
- }
1
+ // Utility Mixins
2
+
3
+ @mixin reset-button() {
4
+ background: none;
5
+ -webkit-appearance: none;
6
+ font-family: inherit;
7
+ font-size: inherit;
8
+ line-height: 1;
9
+ padding: 0;
10
+ margin: 0;
11
+ border: 0;
12
+ color: inherit;
13
+ }
14
+
15
+ @mixin blue-border-focus() {
16
+ @include clear-focus();
17
+
18
+ &:focus {
19
+ box-shadow: 0 0 0 3px rgba($blue, 0.5);
20
+ }
21
+ }
22
+
23
+ @mixin blue-border-focus--dark() {
24
+ @include clear-focus();
25
+
26
+ &:focus {
27
+ box-shadow: 0 0 0 2px rgba($lightblue, 0.85);
28
+ }
29
+ }
30
+
31
+ @mixin clear-focus() {
32
+ &:focus {
33
+ outline: none;
34
+ }
35
+ &::-moz-focus-inner {
36
+ border: 0;
37
+ }
38
+ }
@@ -1,64 +1,64 @@
1
- // Fonts
2
- @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
3
- $font-family-base: 'Roboto', sans-serif, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !default;
4
-
5
- // Colors
6
-
7
- $white: #fff !default;
8
- $black: #000 !default;
9
- $red: #e32437 !default;
10
- $blue: #5282DB !default;
11
- $lightblue: #aae1ff !default;
12
- $darkgrey: #37414B !default;
13
- $light-icons-primary: #768A9F;
14
- $light-icons-secondary: #97A6B6 !default;
15
- $light-txt-secondary: #768A9F;
16
-
17
- $primary: #4D4E4E !default;
18
- $secondary: #768184 !default;
19
- $accent: #6879EB !default;
20
- $accent-hover: #606FD1 !default;
21
- $accent-active: #4958BC !default;
22
- $error: #E85B46 !default;
23
-
24
- $background-primary: #F8FAFB !default;
25
- $background-secondary: #FFFFFF !default;
26
- $background-light-hover: #F9FBFC !default;
27
- $background-light-active: #F3F7FA !default;
28
- $hover: #EFF3F6 !default;
29
- $active: #5D6D7E !default;
30
- $active-transition: #d9dde0 !default;
31
- $active-secondary: #E9EEF2 !default;
32
- $border: #DFE7ED !default;
33
- $border-primary-stateless: #CCD6DE;
34
- $link-active: #92A6BC !default;
35
-
36
- $gray-50: #fafafa !default;
37
- $gray-100: #f4f4f4 !default;
38
- $gray-100--highlighted: #f1f3f6 !default;
39
- $gray-200: #eaeaea !default;
40
- $gray-400: #bbb !default;
41
- $gray-500: #939393 !default;
42
- $gray-600: #757575 !default;
43
- $gray-800: #333 !default;
44
- $gray-900: #1f1f1f !default;
45
-
46
- $highlight: #eceef2;
47
- $highlight--dark: #02baf2;
48
-
49
- $shadow-color: rgba(0, 0, 0, 0.25);
50
-
51
- // Z-index
52
-
53
- $zIndex-0: 100 !default;
54
- $zIndex-1: 1001 !default;
55
- $zIndex-2: 1002 !default;
56
- $zIndex-3: 1003 !default;
57
- $zIndex-5: 1005 !default;
58
- $zIndex-highest-1: 1199 !default;
59
- $zIndex-highest: 1200 !default;
60
- $zIndex-modal: 100000 !default;
61
-
62
- // Media Queries
63
- $screen-medium: 'only screen and (min-width: 820px)' !default;
1
+ // Fonts
2
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
3
+ $font-family-base: 'Roboto', sans-serif, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !default;
4
+
5
+ // Colors
6
+
7
+ $white: #fff !default;
8
+ $black: #000 !default;
9
+ $red: #e32437 !default;
10
+ $blue: #5282DB !default;
11
+ $lightblue: #aae1ff !default;
12
+ $darkgrey: #37414B !default;
13
+ $light-icons-primary: #768A9F;
14
+ $light-icons-secondary: #97A6B6 !default;
15
+ $light-txt-secondary: #768A9F;
16
+
17
+ $primary: #4D4E4E !default;
18
+ $secondary: #768184 !default;
19
+ $accent: #6879EB !default;
20
+ $accent-hover: #606FD1 !default;
21
+ $accent-active: #4958BC !default;
22
+ $error: #E85B46 !default;
23
+
24
+ $background-primary: #F8FAFB !default;
25
+ $background-secondary: #FFFFFF !default;
26
+ $background-light-hover: #F9FBFC !default;
27
+ $background-light-active: #F3F7FA !default;
28
+ $hover: #EFF3F6 !default;
29
+ $active: #5D6D7E !default;
30
+ $active-transition: #d9dde0 !default;
31
+ $active-secondary: #E9EEF2 !default;
32
+ $border: #DFE7ED !default;
33
+ $border-primary-stateless: #CCD6DE;
34
+ $link-active: #92A6BC !default;
35
+
36
+ $gray-50: #fafafa !default;
37
+ $gray-100: #f4f4f4 !default;
38
+ $gray-100--highlighted: #f1f3f6 !default;
39
+ $gray-200: #eaeaea !default;
40
+ $gray-400: #bbb !default;
41
+ $gray-500: #939393 !default;
42
+ $gray-600: #757575 !default;
43
+ $gray-800: #333 !default;
44
+ $gray-900: #1f1f1f !default;
45
+
46
+ $highlight: #eceef2;
47
+ $highlight--dark: #02baf2;
48
+
49
+ $shadow-color: rgba(0, 0, 0, 0.25);
50
+
51
+ // Z-index
52
+
53
+ $zIndex-0: 100 !default;
54
+ $zIndex-1: 1001 !default;
55
+ $zIndex-2: 1002 !default;
56
+ $zIndex-3: 1003 !default;
57
+ $zIndex-5: 1005 !default;
58
+ $zIndex-highest-1: 1199 !default;
59
+ $zIndex-highest: 1200 !default;
60
+ $zIndex-modal: 100000 !default;
61
+
62
+ // Media Queries
63
+ $screen-medium: 'only screen and (min-width: 820px)' !default;
64
64
  $screen-xxl: 'only screen and (min-width: 1601px)' !default;