@pinuts/bsr-uikit-relaunch 0.2.47 → 0.2.49

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.
@@ -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-secondary 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,7 +52,7 @@ 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"
@@ -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,7 +16,9 @@ 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: "text-right"
21
+ }, /*#__PURE__*/_react.default.createElement("span", {
20
22
  className: "mr-2 mr-sm-0"
21
23
  }, headline), infobadge && /*#__PURE__*/_react.default.createElement("span", {
22
24
  className: "badge badge-secondary rounded-pill ml-sm-3 mt-2 mt-sm-0"
@@ -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,14 @@ 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-size: $inputField-font-size;
566
+ line-height: $inputField-line-height;
567
+ color: $bsr-black-90;
568
+ font-weight: $fontweight-normal;
569
+ }
563
570
  legend {
564
571
  display: flex;
565
572
  align-items: center;
@@ -573,7 +580,7 @@ form input[type="checkbox"] + label:before {
573
580
  gap: 0;
574
581
  padding-left: 0;
575
582
 
576
- li:before {
583
+ li:before, li::marker {
577
584
  display: none;
578
585
  }
579
586
  }
@@ -18,3 +18,65 @@
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
+ }
@@ -157,3 +157,49 @@ $btn-padding-y: calc($base-gap * 2 - 1px);
157
157
  cursor: not-allowed;
158
158
  }
159
159
  }
160
+
161
+ button[type="button"].btn-primary, button[type="button"].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
+
168
+ &:hover,
169
+ &:focus-visible {
170
+ text-decoration-color: currentColor;
171
+ }
172
+
173
+ &:focus,
174
+ &:focus-visible {
175
+ outline: none;
176
+ }
177
+ }
178
+
179
+ button[type="button"].btn-primary {
180
+ background-color: $bsr-brick-100;
181
+ color: $bsr-white-100;
182
+ border: $bsr-border-width-m solid $bsr-brick-100;
183
+
184
+ &:hover,
185
+ &:focus-visible {
186
+ background-color: $bsr-white-100;
187
+ color: $bsr-brick-100;
188
+ }
189
+ }
190
+
191
+ button[type="button"].btn-secondary {
192
+ background-color: $bsr-white-100;
193
+ color: $bsr-brick-100;
194
+ border: $bsr-border-width-m solid $bsr-brick-100;
195
+
196
+ &:hover,
197
+ &:focus-visible {
198
+ background-color: $bsr-brick-100 !important;
199
+ color: $bsr-white-100 !important;
200
+
201
+ & i {
202
+ color: $bsr-white-100 !important;
203
+ }
204
+ }
205
+ }
@@ -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.49",
4
4
  "private": false,
5
5
  "description": "BSR UI-KIT Relaunch",
6
6
  "main": "dist/index.js",