@pinuts/bsr-uikit-relaunch 0.2.72 → 0.2.74

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.
@@ -10,6 +10,7 @@ declare namespace FieldsetWrapper {
10
10
  label: PropTypes.Validator<string>;
11
11
  helpText: PropTypes.Requireable<string>;
12
12
  headingLevel: PropTypes.Requireable<string>;
13
+ className: PropTypes.Requireable<string>;
13
14
  }>>>;
14
15
  }
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FieldsetWrapper.d.ts","sourceRoot":"","sources":["../../../src/items/FieldsetWrapper/FieldsetWrapper.jsx"],"names":[],"mappings":";AAQA;;;sBAiCC;;;;;;;;;;;kBAzC8B,OAAO;sBAChB,YAAY"}
1
+ {"version":3,"file":"FieldsetWrapper.d.ts","sourceRoot":"","sources":["../../../src/items/FieldsetWrapper/FieldsetWrapper.jsx"],"names":[],"mappings":";AAQA;;;sBAiCC;;;;;;;;;;;;kBAzC8B,OAAO;sBAChB,YAAY"}
@@ -46,7 +46,8 @@ FieldsetWrapper.propTypes = {
46
46
  config: _propTypes.default.shape({
47
47
  label: _propTypes.default.string.isRequired,
48
48
  helpText: _propTypes.default.string,
49
- headingLevel: _propTypes.default.string
49
+ headingLevel: _propTypes.default.string,
50
+ className: _propTypes.default.string
50
51
  }).isRequired
51
52
  };
52
53
  (0, _formBuilder.registerComponent)('FieldsetWrapper', FieldsetWrapper);
@@ -6,6 +6,27 @@ declare namespace EventPicker {
6
6
  namespace propTypes {
7
7
  let config: PropTypes.Requireable<PropTypes.InferProps<{
8
8
  className: PropTypes.Requireable<string>;
9
+ key: PropTypes.Validator<string>;
10
+ singleSelection: PropTypes.Requireable<boolean>;
11
+ singleSelectionCheckbox: PropTypes.Requireable<boolean>;
12
+ locationPicker: PropTypes.Requireable<boolean>;
13
+ inputProps: PropTypes.Requireable<PropTypes.InferProps<{
14
+ events: PropTypes.Requireable<PropTypes.InferProps<{
15
+ header: PropTypes.Requireable<string>;
16
+ infoLine1: PropTypes.Requireable<string>;
17
+ infoLine2: PropTypes.Requireable<string>;
18
+ subtext: PropTypes.Requireable<string>;
19
+ eventId: PropTypes.Requireable<string>;
20
+ event: PropTypes.Requireable<string>;
21
+ bookable: PropTypes.Requireable<boolean>;
22
+ }>[]>;
23
+ headline: PropTypes.Requireable<string>;
24
+ className: PropTypes.Requireable<string>;
25
+ infoText: PropTypes.Requireable<string>;
26
+ infoButton: PropTypes.Requireable<boolean>;
27
+ }>>;
28
+ errorMsgId: PropTypes.Requireable<string>;
29
+ name: PropTypes.Requireable<string>;
9
30
  }>>;
10
31
  }
11
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EventPicker.d.ts","sourceRoot":"","sources":["../../../../src/items/eventWizardItems/EventPicker/EventPicker.jsx"],"names":[],"mappings":";AAUA;;sBAgFC;;;;;;;;kBA1FiB,OAAO;2BACE,YAAY"}
1
+ {"version":3,"file":"EventPicker.d.ts","sourceRoot":"","sources":["../../../../src/items/eventWizardItems/EventPicker/EventPicker.jsx"],"names":[],"mappings":";AAUA;;sBAqFC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA/FiB,OAAO;2BACE,YAAY"}
@@ -27,7 +27,8 @@ const EventPicker = _ref => {
27
27
  singleSelectionCheckbox,
28
28
  locationPicker,
29
29
  inputProps = {},
30
- name = ''
30
+ name = '',
31
+ sortAlphabetically = false
31
32
  } = config;
32
33
  const {
33
34
  events,
@@ -44,6 +45,9 @@ const EventPicker = _ref => {
44
45
  } = useFormikContext();
45
46
  const errorMsg = errors[errorMsgId];
46
47
  const groupName = name || id;
48
+ if (sortAlphabetically) {
49
+ events.sort((a, b) => a.header.localeCompare(b.header));
50
+ }
47
51
  if (singleSelection && !singleSelectionCheckbox) {
48
52
  renderedEvents = events.map(_ref2 => {
49
53
  let {
@@ -117,7 +121,28 @@ const EventPicker = _ref => {
117
121
  };
118
122
  EventPicker.propTypes = {
119
123
  config: PropTypes.shape({
120
- className: PropTypes.string
124
+ className: PropTypes.string,
125
+ key: PropTypes.string.isRequired,
126
+ singleSelection: PropTypes.bool,
127
+ singleSelectionCheckbox: PropTypes.bool,
128
+ locationPicker: PropTypes.bool,
129
+ inputProps: PropTypes.shape({
130
+ events: PropTypes.arrayOf(PropTypes.shape({
131
+ header: PropTypes.string,
132
+ infoLine1: PropTypes.string,
133
+ infoLine2: PropTypes.string,
134
+ subtext: PropTypes.string,
135
+ eventId: PropTypes.string,
136
+ event: PropTypes.string,
137
+ bookable: PropTypes.bool
138
+ })),
139
+ headline: PropTypes.string,
140
+ className: PropTypes.string,
141
+ infoText: PropTypes.string,
142
+ infoButton: PropTypes.bool
143
+ }),
144
+ errorMsgId: PropTypes.string,
145
+ name: PropTypes.string
121
146
  })
122
147
  };
123
148
  var _default = exports.default = EventPicker;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinuts/bsr-uikit-relaunch",
3
- "version": "0.2.72",
3
+ "version": "0.2.74",
4
4
  "private": false,
5
5
  "description": "BSR UI-KIT Relaunch",
6
6
  "main": "dist/index.js",