@pinuts/bsr-uikit-relaunch 0.2.47 → 0.2.50

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarToolbar.d.ts","sourceRoot":"","sources":["../../../../src/items/eventWizardItems/EventDatePicker/CalendarToolbar.jsx"],"names":[],"mappings":";AAKA;;;sBA0BC;;;;;;;kBA9BkC,OAAO;sBADpB,YAAY"}
1
+ {"version":3,"file":"CalendarToolbar.d.ts","sourceRoot":"","sources":["../../../../src/items/eventWizardItems/EventDatePicker/CalendarToolbar.jsx"],"names":[],"mappings":";AAMA;;;sBAwCC;;;;;;;kBA7CkC,OAAO;sBADpB,YAAY"}
@@ -8,6 +8,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _reactBigCalendar = require("react-big-calendar");
10
10
  var _reactBootstrap = require("react-bootstrap");
11
+ var _Icon = _interopRequireDefault(require("../../Icon/Icon.jsx"));
11
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -22,16 +23,26 @@ const CalendarToolbar = _ref => {
22
23
  className: "rbc-toolbar"
23
24
  }, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Button, {
24
25
  variant: "secondary",
25
- onClick: navigatePrevious
26
- }, /*#__PURE__*/_react.default.createElement("i", {
27
- className: "pi-icon pi-arrow-left-primary mr-2"
28
- }), /*#__PURE__*/_react.default.createElement("b", null, "zur\xFCck")), /*#__PURE__*/_react.default.createElement("h4", {
26
+ onClick: navigatePrevious,
27
+ className: "d-flex align-items-center"
28
+ }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
29
+ icon: "ChevronLeft",
30
+ className: "mr-2",
31
+ width: 16,
32
+ height: 16,
33
+ stroke: "currentColor"
34
+ }), /*#__PURE__*/_react.default.createElement("span", null, "zur\xFCck")), /*#__PURE__*/_react.default.createElement("h4", {
29
35
  className: "rbc-toolbar-label"
30
36
  }, label), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Button, {
31
37
  variant: "secondary",
32
- onClick: navigateNext
33
- }, /*#__PURE__*/_react.default.createElement("b", null, "weiter"), /*#__PURE__*/_react.default.createElement("i", {
34
- className: "pi-icon pi-arrow-right-primary ml-2"
38
+ onClick: navigateNext,
39
+ className: "ml-auto d-flex align-items-center"
40
+ }, /*#__PURE__*/_react.default.createElement("span", null, "weiter"), /*#__PURE__*/_react.default.createElement(_Icon.default, {
41
+ icon: "ChevronRight",
42
+ className: "ml-2",
43
+ width: 16,
44
+ height: 16,
45
+ stroke: "currentColor"
35
46
  })));
36
47
  };
37
48
  CalendarToolbar.propTypes = {
@@ -61,7 +61,7 @@ const CheckboxField = props => {
61
61
  const hasDescription = !!infobadge || !!subtitle;
62
62
  const descriptionId = hasDescription ? `desc-${inputProps.id}` : null;
63
63
  return /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("div", {
64
- className: "pi-checkbox custom-control custom-checkbox border mb-1 w-100"
64
+ className: "pi-checkbox custom-control custom-checkbox border mb-1 w-100 d-flex align-items-center justify-content-between"
65
65
  }, /*#__PURE__*/_react.default.createElement("input", _extends({
66
66
  className: "custom-control-input"
67
67
  }, field, inputProps, {
@@ -73,12 +73,12 @@ const CheckboxField = props => {
73
73
  className: "custom-control-label d-sm-flex align-items-center p-3 pl-4",
74
74
  htmlFor: inputProps.id
75
75
  }, /*#__PURE__*/_react.default.createElement(_HTMLParserSanitized.HTMLParserSanitized, null, header)), hasDescription && /*#__PURE__*/_react.default.createElement("div", {
76
- className: "h5",
76
+ className: "h5 mr-4",
77
77
  id: descriptionId
78
78
  }, subtitle && /*#__PURE__*/_react.default.createElement("div", {
79
79
  className: "small mt-1"
80
80
  }, subtitle), infobadge && /*#__PURE__*/_react.default.createElement("div", {
81
- className: "badge badge-secondary rounded-pill ml-auto mt-2 mt-sm-0"
81
+ className: "badge badge-info rounded-pill ml-auto mt-2 mt-sm-0m"
82
82
  }, infobadge), required && /*#__PURE__*/_react.default.createElement("span", {
83
83
  className: "pi-required text-primary mr-1"
84
84
  }, "*"))));
@@ -41,7 +41,7 @@ const RadioField = _ref => {
41
41
  const hasDescription = !!infobadge || !!usedSubtitle;
42
42
  const descriptionId = hasDescription ? `desc-${inputProps.id}` : null;
43
43
  return /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("div", {
44
- className: "pi-radio custom-control custom-radio border mb-1 w-100"
44
+ className: "pi-radio custom-control custom-radio border mb-1 w-100 d-flex align-items-center justify-content-between"
45
45
  }, /*#__PURE__*/_react.default.createElement("input", _extends({
46
46
  className: "custom-control-input"
47
47
  }, field, inputProps, {
@@ -52,12 +52,12 @@ const RadioField = _ref => {
52
52
  className: "custom-control-label d-sm-flex align-items-center p-3 pl-4",
53
53
  htmlFor: inputProps.id
54
54
  }, /*#__PURE__*/_react.default.createElement(_HTMLParserSanitized.HTMLParserSanitized, null, header)), hasDescription && /*#__PURE__*/_react.default.createElement("div", {
55
- className: "h5",
55
+ className: "h5 mr-4",
56
56
  id: descriptionId
57
57
  }, infoLine1, usedSubtitle && /*#__PURE__*/_react.default.createElement("div", {
58
58
  className: "small mt-1"
59
59
  }, usedSubtitle), infobadge && /*#__PURE__*/_react.default.createElement("div", {
60
- className: "badge badge-secondary rounded-pill ml-auto mt-2 mt-sm-0"
60
+ className: "badge badge-info rounded-pill ml-auto mt-2 mt-sm-0"
61
61
  }, infobadge), required && /*#__PURE__*/_react.default.createElement("span", {
62
62
  className: "pi-required text-primary mr-1"
63
63
  }, "*"))));
@@ -100,7 +100,7 @@ const EventPicker = _ref => {
100
100
  "aria-labelledby": `selectGroup-${groupName}`
101
101
  }, /*#__PURE__*/_react.default.createElement("ul", {
102
102
  className: "checkboxes picker-list"
103
- }, renderedEvents)) : /*#__PURE__*/_react.default.createElement("h2", null, "Keine Veranstaltungen an diesem Termin w\xE4hlbar"));
103
+ }, renderedEvents)) : /*#__PURE__*/_react.default.createElement("h4", null, "Keine Veranstaltungen an diesem Termin w\xE4hlbar"));
104
104
  };
105
105
  EventPicker.propTypes = {
106
106
  config: PropTypes.object
@@ -39,13 +39,13 @@ const FormTitle = _ref => {
39
39
  if (current <= 0) return;
40
40
  if (!total) {
41
41
  return /*#__PURE__*/_react.default.createElement("div", {
42
- className: "step-line bg-primary rounded-pill flex-fill"
42
+ className: "step-line bg-brick rounded-pill flex-fill"
43
43
  });
44
44
  }
45
45
  const stepper = [];
46
46
  for (let i = 0; i < total; i++) {
47
47
  let cssClasses = 'step-line rounded-pill flex-fill ';
48
- cssClasses += i < current ? 'bg-primary' : 'bg-secondary';
48
+ cssClasses += i < current ? 'bg-brick' : 'bg-secondary';
49
49
  cssClasses += i + 1 !== total ? ' mr-2' : '';
50
50
  stepper.push(/*#__PURE__*/_react.default.createElement("div", {
51
51
  key: `${i}_${current}`,
@@ -64,7 +64,7 @@ const FormTitle = _ref => {
64
64
  }, /*#__PURE__*/_react.default.createElement("small", {
65
65
  className: "mr-1 mr-sm-0"
66
66
  }, "Schritt"), steps.current > 0 && /*#__PURE__*/_react.default.createElement("span", {
67
- className: "h4 d-inline d-sm-block"
67
+ className: "h4 d-inline d-sm-block mt-0"
68
68
  }, `${steps.current} ${steps.total ? `von ${steps.total}` : ''}`))), steps && /*#__PURE__*/_react.default.createElement("div", {
69
69
  className: "pi-step-indicator d-flex mb-4"
70
70
  }, stepCreator(steps)), errorMsg && /*#__PURE__*/_react.default.createElement(_Alert.default, {
@@ -16,10 +16,12 @@ const Intro = props => {
16
16
  } = props.config;
17
17
  return /*#__PURE__*/_react.default.createElement("div", {
18
18
  className: "pi-intro my-5"
19
- }, /*#__PURE__*/_react.default.createElement("h4", null, /*#__PURE__*/_react.default.createElement("span", {
19
+ }, /*#__PURE__*/_react.default.createElement("h4", {
20
+ className: "d-flex align-items-center justify-content-between"
21
+ }, /*#__PURE__*/_react.default.createElement("span", {
20
22
  className: "mr-2 mr-sm-0"
21
23
  }, headline), infobadge && /*#__PURE__*/_react.default.createElement("span", {
22
- className: "badge badge-secondary rounded-pill ml-sm-3 mt-2 mt-sm-0"
24
+ className: "badge badge-info rounded-pill ml-sm-3 mt-2 mt-sm-0"
23
25
  }, infobadge)), /*#__PURE__*/_react.default.createElement("p", null, description));
24
26
  };
25
27
  Intro.propTypes = {
@@ -9,8 +9,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
9
9
  //FIXME sr-only oder aria-hidden="true" setzen
10
10
  const LocationPicker = () => {
11
11
  return /*#__PURE__*/_react.default.createElement("a", {
12
- className: "ml-auto",
13
- href: "https://www.bsr.de/recyclinghoefe-20503.php",
12
+ className: "ml-auto location-picker-text",
13
+ href: "/recyclinghoefe-berlin",
14
14
  rel: "noopener noreferrer",
15
15
  target: "_blank"
16
16
  }, /*#__PURE__*/_react.default.createElement("span", {
@@ -559,7 +559,15 @@ form input[type="checkbox"] + label:before {
559
559
  }
560
560
  }
561
561
 
562
- .event-picker {
562
+ .selectGroup-events, .event-picker {
563
+
564
+ .location-picker-text {
565
+ font-family: $fontfamily-base;
566
+ font-size: $inputField-font-size;
567
+ line-height: $inputField-line-height;
568
+ color: $bsr-black-90;
569
+ font-weight: $fontweight-normal;
570
+ }
563
571
  legend {
564
572
  display: flex;
565
573
  align-items: center;
@@ -573,7 +581,7 @@ form input[type="checkbox"] + label:before {
573
581
  gap: 0;
574
582
  padding-left: 0;
575
583
 
576
- li:before {
584
+ li:before, li::marker {
577
585
  display: none;
578
586
  }
579
587
  }
@@ -18,3 +18,73 @@
18
18
  background: $bsr-black-10;
19
19
  }
20
20
  }
21
+
22
+ body {
23
+ font-family: $fontfamily-base;
24
+ font-size: $defaultBrowserFontSize;
25
+ }
26
+
27
+ p, span {
28
+ font-family: $fontfamily-base;
29
+ }
30
+
31
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
32
+ font-family: $fontfamily-heading;
33
+ font-weight: $fontweight-bold;
34
+ scroll-margin-top: $base-gap * 18;
35
+ }
36
+
37
+ h1, .h1 {
38
+ font-size: $h1-fontsize;
39
+ line-height: $h1-lineheight;
40
+ letter-spacing: $letter-spacing-lg;
41
+ margin-bottom: $base-gap * 10;
42
+
43
+ @media screen and (max-width: $screen-sm-max) {
44
+ font-size: $h1-fontsize-sm;
45
+ line-height: $h1-lineheight-sm;
46
+ letter-spacing: $letter-spacing-sm;
47
+ margin-bottom: $base-gap * 3;
48
+ }
49
+ }
50
+
51
+ h2, .h2 {
52
+ font-size: $h2-fontsize;
53
+ line-height: $h2-lineheight;
54
+ letter-spacing: $letter-spacing-md;
55
+ margin-bottom: $base-gap * 5;
56
+
57
+ @media screen and (max-width: $screen-sm-max) {
58
+ font-size: $h2-fontsize-sm;
59
+ line-height: $h2-lineheight-sm;
60
+ margin-bottom: $base-gap * 3;
61
+ }
62
+ }
63
+
64
+ h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
65
+ margin-bottom: $base-gap * 5;
66
+ margin-top: $base-gap * 10;
67
+
68
+ @media screen and (max-width: $screen-sm-max) {
69
+ font-size: $h3-fontsize-sm;
70
+ line-height: $h3-lineheight-sm;
71
+ margin-bottom: $base-gap * 3;
72
+ margin-top: $base-gap * 8;
73
+ }
74
+ }
75
+
76
+ q {
77
+ font-family: $fontfamily-heading;
78
+ }
79
+
80
+ footer {
81
+ font-family: $fontfamily-heading;
82
+ }
83
+
84
+ .rbc-wrapper {
85
+ min-height: 590px;
86
+ }
87
+
88
+ .rbc-wrapper .rbc-calendar {
89
+ font-family: $fontfamily-base;
90
+ }
@@ -157,3 +157,50 @@ $btn-padding-y: calc($base-gap * 2 - 1px);
157
157
  cursor: not-allowed;
158
158
  }
159
159
  }
160
+
161
+ button[type="button"].btn.btn-primary, button[type="button"].btn.btn-secondary {
162
+ padding: $base-gap * 1.5 $base-gap * 6;
163
+ border-radius: $btn-border-radius;
164
+ background: none;
165
+ font-size: $fontsize-base;
166
+ line-height: $lineheight-base;
167
+ background-image: none !important;
168
+
169
+ &:hover,
170
+ &:focus-visible {
171
+ text-decoration-color: currentColor;
172
+ }
173
+
174
+ &:focus,
175
+ &:focus-visible {
176
+ outline: none;
177
+ }
178
+ }
179
+
180
+ button[type="button"].btn.btn-primary {
181
+ background-color: $bsr-brick-100;
182
+ color: $bsr-white-100;
183
+ border: $bsr-border-width-m solid $bsr-brick-100;
184
+
185
+ &:hover,
186
+ &:focus-visible {
187
+ background-color: $bsr-white-100;
188
+ color: $bsr-brick-100;
189
+ }
190
+ }
191
+
192
+ button[type="button"].btn.btn-secondary {
193
+ background-color: $bsr-white-100;
194
+ color: $bsr-brick-100;
195
+ border: $bsr-border-width-m solid $bsr-brick-100;
196
+
197
+ &:hover,
198
+ &:focus-visible {
199
+ background-color: $bsr-brick-100 !important;
200
+ color: $bsr-white-100 !important;
201
+
202
+ & i {
203
+ color: $bsr-white-100 !important;
204
+ }
205
+ }
206
+ }
@@ -44,6 +44,7 @@
44
44
  src: local(""), url("../../assets/fonts/TradeGothicNextLT/TradeGothicNextCondensed_normal_condensed.woff2") format("woff2");
45
45
  }
46
46
  */
47
+ $defaultBrowserFontSize: 16px;
47
48
  $fontsize-base: to-rem(18px);
48
49
 
49
50
  $fontfamily-base: "TradeGothicNext", sans-serif;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinuts/bsr-uikit-relaunch",
3
- "version": "0.2.47",
3
+ "version": "0.2.50",
4
4
  "private": false,
5
5
  "description": "BSR UI-KIT Relaunch",
6
6
  "main": "dist/index.js",