@pinuts/bsr-uikit-relaunch 0.2.46 → 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.
@@ -18,6 +18,7 @@ declare namespace BSRAutocompleteField {
18
18
  viewMode: PropTypes.Requireable<boolean>;
19
19
  disabled: PropTypes.Requireable<boolean>;
20
20
  suggestionsAmount: PropTypes.Requireable<number>;
21
+ placeholder: PropTypes.Requireable<string>;
21
22
  }>>>;
22
23
  }
23
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BSRAutocompleteField.d.ts","sourceRoot":"","sources":["../../../src/items/BSRAddressSelector/BSRAutocompleteField.jsx"],"names":[],"mappings":";AA+CA;;QAsRC;;;;;;;;;;;;;;;;;;;;sBArUqB,YAAY"}
1
+ {"version":3,"file":"BSRAutocompleteField.d.ts","sourceRoot":"","sources":["../../../src/items/BSRAddressSelector/BSRAutocompleteField.jsx"],"names":[],"mappings":";AA+CA;;QAyRC;;;;;;;;;;;;;;;;;;;;;sBAxUqB,YAAY"}
@@ -89,7 +89,10 @@ const BSRAutocompleteField = _ref => {
89
89
  const cancelButtonRef = (0, _react.useRef)(null);
90
90
  const isInvalid = false;
91
91
  const controllerPath = getControllerPath();
92
- const placeholder = (0, _useGetPlaceHolderText.default)('bsrAddressSelector.labels.streetPlaceholder');
92
+ const placeHolderI18nKey = 'bsrAddressSelector.labels.streetPlaceholder';
93
+ const placeHolderI18n = (0, _useGetPlaceHolderText.default)(placeHolderI18nKey);
94
+ const placeHolderConfig = config.placeholder || placeHolderI18nKey;
95
+ const placeholder = placeHolderConfig && placeHolderI18nKey !== placeHolderConfig ? placeHolderConfig : placeHolderI18n;
93
96
 
94
97
  // need this to reset the combobox from outside
95
98
  (0, _react.useEffect)(() => {
@@ -268,7 +271,8 @@ BSRAutocompleteField.propTypes = {
268
271
  labelText: _propTypes.default.string,
269
272
  viewMode: _propTypes.default.bool,
270
273
  disabled: _propTypes.default.bool,
271
- suggestionsAmount: _propTypes.default.number
274
+ suggestionsAmount: _propTypes.default.number,
275
+ placeholder: _propTypes.default.string
272
276
  }).isRequired
273
277
  };
274
278
  const HigherOrderAutocompleteField = (0, _withFieldGroup.default)(BSRAutocompleteField);
@@ -5,6 +5,7 @@ declare namespace WrappedHouseNumberSelectField {
5
5
  let config: PropTypes.Requireable<PropTypes.InferProps<{
6
6
  inputProps: PropTypes.Requireable<object>;
7
7
  key: PropTypes.Requireable<string>;
8
+ placeholder: PropTypes.Requireable<string>;
8
9
  }>>;
9
10
  }
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HouseNumberSelectField.d.ts","sourceRoot":"","sources":["../../../src/items/BSRAddressSelector/HouseNumberSelectField.jsx"],"names":[],"mappings":";AAaA,8EAiBC;;;;;;;;;kBA9BiC,OAAO;sBACnB,YAAY"}
1
+ {"version":3,"file":"HouseNumberSelectField.d.ts","sourceRoot":"","sources":["../../../src/items/BSRAddressSelector/HouseNumberSelectField.jsx"],"names":[],"mappings":";AAaA,8EAqBC;;;;;;;;;;kBAlCiC,OAAO;sBACnB,YAAY"}
@@ -21,7 +21,10 @@ const WrappedHouseNumberSelectField = props => {
21
21
  const {
22
22
  dontShowSelector
23
23
  } = (0, _react.useContext)(_BSRAddressContext.BSRAddressContext);
24
- const placeholder = (0, _useGetPlaceHolderText.default)('bsrAddressSelector.labels.houseNumberPlaceholder');
24
+ const placeHolderI18nKey = 'bsrAddressSelector.labels.houseNumberPlaceholder';
25
+ const placeHolderI18n = (0, _useGetPlaceHolderText.default)(placeHolderI18nKey);
26
+ const placeHolderConfig = props.config.placeholder || placeHolderI18nKey;
27
+ const placeholder = placeHolderConfig && placeHolderI18nKey !== placeHolderConfig ? placeHolderConfig : placeHolderI18n;
25
28
  if (dontShowSelector) {
26
29
  return null;
27
30
  }
@@ -36,7 +39,8 @@ const WrappedHouseNumberSelectField = props => {
36
39
  WrappedHouseNumberSelectField.propTypes = {
37
40
  config: _propTypes.default.shape({
38
41
  inputProps: _propTypes.default.object,
39
- key: _propTypes.default.string
42
+ key: _propTypes.default.string,
43
+ placeholder: _propTypes.default.string
40
44
  })
41
45
  };
42
46
  (0, _formBuilder.registerComponent)('HouseNumberSelectField', WrappedHouseNumberSelectField);
@@ -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.46",
3
+ "version": "0.2.49",
4
4
  "private": false,
5
5
  "description": "BSR UI-KIT Relaunch",
6
6
  "main": "dist/index.js",