@uncinc/uncinc-react-kitchen-sink 2.2.18 → 2.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.
@@ -123,6 +123,16 @@ const CookieCompliancePopup = props => {
123
123
  domain: cookieDomain
124
124
  });
125
125
  onDisagree();
126
+ }; // Function for accepting al categories at once.
127
+
128
+
129
+ const onConsentAll = () => {
130
+ const allCategoriesSelected = categories.reduce((prev, category) => {
131
+ prev[category] = true;
132
+ return prev;
133
+ }, {});
134
+
135
+ _onAgree(allCategoriesSelected);
126
136
  }; // This function is fired when the accept button is pressed.
127
137
  // Also has eventual support for a false case.
128
138
 
@@ -194,7 +204,7 @@ const CookieCompliancePopup = props => {
194
204
  id: "complete-agree",
195
205
  className: "Button--cta",
196
206
  primary: true,
197
- onClick: onConsent(true)
207
+ onClick: onConsentAll
198
208
  }, agreeText), showDisagree && /*#__PURE__*/React.createElement("button", {
199
209
  className: `Cookie__content__buttons__manual Cookie__content__buttons__manual-disagree ${manualButtonClassname}`,
200
210
  onClick: onConsent(false)
@@ -0,0 +1,3 @@
1
+ .WysiwygField {
2
+ margin-right: 200px;
3
+ }
@@ -0,0 +1,5 @@
1
+ const makeSafeForCSS = value => {
2
+ return encodeURIComponent(value).replace(/\.|%[0-9a-z]{2}/gi, '');
3
+ };
4
+
5
+ export default makeSafeForCSS;
@@ -17,8 +17,8 @@
17
17
  @each $breakpoint in map-keys($gutters) {
18
18
  @include media-breakpoint-up($breakpoint) {
19
19
  $gutter: map-get($gutters, $breakpoint);
20
- padding-left: ($gutter / 2);
21
- padding-right: ($gutter / 2);
20
+ padding-left: div($gutter, 2);
21
+ padding-right: div($gutter, 2);
22
22
  }
23
23
  }
24
24
  }
@@ -27,8 +27,8 @@
27
27
  @each $breakpoint in map-keys($gutters) {
28
28
  @include media-breakpoint-up($breakpoint) {
29
29
  $gutter: map-get($gutters, $breakpoint);
30
- padding-left: ($gutter / 2);
31
- padding-right: ($gutter / 2);
30
+ padding-left: div($gutter, 2);
31
+ padding-right: div($gutter, 2);
32
32
  }
33
33
  }
34
34
  }
@@ -41,13 +41,13 @@
41
41
  @include media-breakpoint-up($breakpoint) {
42
42
  $gutter: map-get($gutters, $breakpoint);
43
43
  @if $sides == all {
44
- margin: ($gutter / -2);
44
+ margin: div($gutter, -2);
45
45
  } @else if $sides == left-right {
46
- margin-left: ($gutter / -2);
47
- margin-right: ($gutter / -2);
46
+ margin-left: div($gutter, -2);
47
+ margin-right: div($gutter, -2);
48
48
  } @else if $sides == top-bottom {
49
- margin-top: ($gutter / -2);
50
- margin-bottom: ($gutter / -2);
49
+ margin-top: div($gutter, -2);
50
+ margin-bottom: div($gutter, -2);
51
51
  }
52
52
  }
53
53
  }
@@ -62,8 +62,8 @@
62
62
  @each $breakpoint in map-keys($grid-gutter-widths) {
63
63
  @include media-breakpoint-up($breakpoint) {
64
64
  $gutter: map-get($grid-gutter-widths, $breakpoint);
65
- padding-left: ($gutter / 2);
66
- padding-right: ($gutter / 2);
65
+ padding-left: div($gutter, 2);
66
+ padding-right: div($gutter, 2);
67
67
  }
68
68
  }
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.2.18",
3
+ "version": "2.3.0",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "@searchkit/client": "^3.0.0-canary.45",
42
42
  "@searchkit/elastic-ui": "^3.0.0-canary.45",
43
43
  "apollo-server-micro": "^3.4.0",
44
- "bootstrap": "^4.3.1",
44
+ "bootstrap": "^4",
45
45
  "fork-ts-checker-webpack-plugin-alt": "0.4.14",
46
46
  "formik": "^2.2.6",
47
47
  "graphql": "^15.7.0",
@@ -51,7 +51,6 @@
51
51
  "mini-css-extract-plugin": "^1.4.1",
52
52
  "moment": "^2.29.1",
53
53
  "next-with-apollo": "^5.2.1",
54
- "node-sass": "^4.14.0",
55
54
  "ola": "^1.1.1",
56
55
  "path": "^0.12.7",
57
56
  "react": "^16.14.0",
@@ -73,6 +72,7 @@
73
72
  "react-slick": "^0.27.14",
74
73
  "react-use-cookie": "^1.3.0",
75
74
  "redux": "^4.0.5",
75
+ "sass": "^1.55.0",
76
76
  "sass-loader": "^8.0.2",
77
77
  "slick-carousel": "^1.8.1"
78
78
  },