@skyscanner/backpack-web 38.22.0 → 39.0.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 (44) hide show
  1. package/bpk-mixins/_badges-v2.scss +37 -36
  2. package/bpk-mixins/_badges.scss +37 -36
  3. package/bpk-mixins/_borders.scss +16 -16
  4. package/bpk-mixins/_breakpoints.scss +11 -11
  5. package/bpk-mixins/_buttons.scss +141 -137
  6. package/bpk-mixins/_cards.scss +13 -13
  7. package/bpk-mixins/_chips.scss +66 -66
  8. package/bpk-mixins/_forms.scss +214 -202
  9. package/bpk-mixins/_icons.scss +7 -4
  10. package/bpk-mixins/_index.scss +19 -19
  11. package/bpk-mixins/_layers.scss +34 -34
  12. package/bpk-mixins/_margins.scss +3 -3
  13. package/bpk-mixins/_panels.scss +9 -9
  14. package/bpk-mixins/_radii.scss +6 -6
  15. package/bpk-mixins/_scroll-indicators.scss +2 -2
  16. package/bpk-mixins/_shadows.scss +4 -4
  17. package/bpk-mixins/_spinners.scss +10 -10
  18. package/bpk-mixins/_tokens.scss +1 -3
  19. package/bpk-mixins/_typography.scss +204 -195
  20. package/bpk-mixins/_utils.scss +17 -12
  21. package/bpk-stylesheets/index.scss +13 -14
  22. package/bpk-stylesheets/normalize.css +18 -422
  23. package/bpk-stylesheets/normalize.scss +422 -0
  24. package/package.json +1 -5
  25. package/unstable__bpk-mixins/_badges-v2.scss +0 -240
  26. package/unstable__bpk-mixins/_badges.scss +0 -240
  27. package/unstable__bpk-mixins/_borders.scss +0 -268
  28. package/unstable__bpk-mixins/_breakpoints.scss +0 -221
  29. package/unstable__bpk-mixins/_buttons.scss +0 -587
  30. package/unstable__bpk-mixins/_cards.scss +0 -94
  31. package/unstable__bpk-mixins/_chips.scss +0 -249
  32. package/unstable__bpk-mixins/_forms.scss +0 -1045
  33. package/unstable__bpk-mixins/_icons.scss +0 -88
  34. package/unstable__bpk-mixins/_index.scss +0 -38
  35. package/unstable__bpk-mixins/_layers.scss +0 -199
  36. package/unstable__bpk-mixins/_margins.scss +0 -75
  37. package/unstable__bpk-mixins/_panels.scss +0 -96
  38. package/unstable__bpk-mixins/_radii.scss +0 -80
  39. package/unstable__bpk-mixins/_scroll-indicators.scss +0 -79
  40. package/unstable__bpk-mixins/_shadows.scss +0 -58
  41. package/unstable__bpk-mixins/_spinners.scss +0 -102
  42. package/unstable__bpk-mixins/_tokens.scss +0 -19
  43. package/unstable__bpk-mixins/_typography.scss +0 -1225
  44. package/unstable__bpk-mixins/_utils.scss +0 -267
@@ -1,58 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- /* stylelint-disable at-rule-disallowed-list */
20
-
21
- @use 'tokens.scss';
22
-
23
- ////
24
- /// @group box-shadows
25
- ////
26
-
27
- /// Small box shadow.
28
- ///
29
- /// @example scss
30
- /// .selector {
31
- /// @include bpk-box-shadow-sm();
32
- /// }
33
-
34
- @mixin bpk-box-shadow-sm {
35
- box-shadow: tokens.$bpk-box-shadow-sm;
36
- }
37
-
38
- /// Large box shadow.
39
- ///
40
- /// @example scss
41
- /// .selector {
42
- /// @include bpk-box-shadow-lg();
43
- /// }
44
-
45
- @mixin bpk-box-shadow-lg {
46
- box-shadow: tokens.$bpk-box-shadow-lg;
47
- }
48
-
49
- /// Extra large box shadow.
50
- ///
51
- /// @example scss
52
- /// .selector {
53
- /// @include bpk-box-shadow-xl();
54
- /// }
55
-
56
- @mixin bpk-box-shadow-xl {
57
- box-shadow: tokens.$bpk-box-shadow-xl;
58
- }
@@ -1,102 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- /* stylelint-disable at-rule-disallowed-list */
20
-
21
- @use 'tokens.scss';
22
- @use 'icons.scss';
23
- @use 'utils.scss';
24
-
25
- @keyframes bpk-keyframe-spin {
26
- 100% {
27
- transform: rotate(1turn);
28
- }
29
- }
30
-
31
- /// Small spinner.
32
- ///
33
- /// @param {key} $spinner - The key of the desired SVG datauri from the $bpk-spinners map.
34
- ///
35
- /// @example scss
36
- /// .selector {
37
- /// @include bpk-spinner(spinner-sky-gray-tint-02);
38
- /// }
39
-
40
- @mixin bpk-spinner() {
41
- width: tokens.bpk-spacing-base();
42
- height: tokens.bpk-spacing-base();
43
- animation: bpk-keyframe-spin 600ms linear infinite;
44
- }
45
-
46
- /// Large spinner. Modifies the bpk-spinner mixin.
47
- ///
48
- /// @require {mixin} bpk-spinner
49
- ///
50
- /// @example scss
51
- /// .selector {
52
- /// @include bpk-spinner(spinner-sky-gray-tint-02);
53
- /// @include bpk-spinner--lg();
54
- /// }
55
-
56
- @mixin bpk-spinner--lg() {
57
- width: tokens.bpk-spacing-lg();
58
- height: tokens.bpk-spacing-lg();
59
- }
60
-
61
- /// Extra large spinner. Modifies the bpk-spinner mixin.
62
- ///
63
- /// @require {mixin} bpk-spinner
64
- ///
65
- /// @example scss
66
- /// .selector {
67
- /// @include bpk-spinner(spinner-sky-gray-tint-02);
68
- /// @include bpk-spinner--xl();
69
- /// }
70
-
71
- @mixin bpk-spinner--xl() {
72
- width: tokens.bpk-spacing-xl();
73
- height: tokens.bpk-spacing-xl();
74
- }
75
-
76
- /// Align spinner to button. Modifies the bpk-spinner mixin.
77
- ///
78
- /// @require {mixin} bpk-spinner
79
- ///
80
- /// @example scss
81
- /// .selector {
82
- /// @include bpk-spinner();
83
- /// @include bpk-icon--align-to-button();
84
- /// }
85
-
86
- @mixin bpk-spinner--align-to-button() {
87
- vertical-align: baseline;
88
- }
89
-
90
- /// Align spinner to large button. Modifies the bpk-spinner mixin.
91
- ///
92
- /// @require {mixin} bpk-spinner
93
- ///
94
- /// @example scss
95
- /// .selector {
96
- /// @include bpk-spinner();
97
- /// @include bpk-spinner--align-to-large-button();
98
- /// }
99
-
100
- @mixin bpk-spinner--align-to-large-button() {
101
- @include icons.bpk-icon-lg--align-to-large-button;
102
- }
@@ -1,19 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- @forward '@skyscanner/bpk-foundations-web/tokens/base.default';