@thecb/components 4.3.4 → 4.3.5

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.
package/dist/index.cjs.js CHANGED
@@ -37289,7 +37289,7 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
37289
37289
  return e.key === "Enter" && handleSubmit(e);
37290
37290
  },
37291
37291
  disabled: disabled || roleDisabled
37292
- }))), formType === ADD || formType === EDIT && /*#__PURE__*/React__default.createElement(Box, {
37292
+ }))), (formType === ADD || formType === EDIT) && /*#__PURE__*/React__default.createElement(Box, {
37293
37293
  padding: "0.5rem 0 1.5rem"
37294
37294
  }, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(Text$1, {
37295
37295
  variant: "p"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.3.4",
3
+ "version": "4.3.5",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -213,24 +213,23 @@ const InternalUserInfoForm = ({
213
213
  </FormInputColumn>
214
214
  </Box>
215
215
  )}
216
- {formType === ADD ||
217
- (formType === EDIT && (
218
- <Box padding="0.5rem 0 1.5rem">
219
- <FormInputColumn>
220
- <Text variant="p">Select which agencies the user can view</Text>
221
- <SearchableSelect
222
- actions={actions}
223
- fields={fields}
224
- items={allAgencyOptions}
225
- selectedItems={selectedAgencies}
226
- allSelected={allSelected}
227
- toggleSelectAllItems={toggleSelectAllAgencies}
228
- selectItem={selectAgency}
229
- disabled={disabled}
230
- />
231
- </FormInputColumn>
232
- </Box>
233
- ))}
216
+ {(formType === ADD || formType === EDIT) && (
217
+ <Box padding="0.5rem 0 1.5rem">
218
+ <FormInputColumn>
219
+ <Text variant="p">Select which agencies the user can view</Text>
220
+ <SearchableSelect
221
+ actions={actions}
222
+ fields={fields}
223
+ items={allAgencyOptions}
224
+ selectedItems={selectedAgencies}
225
+ allSelected={allSelected}
226
+ toggleSelectAllItems={toggleSelectAllAgencies}
227
+ selectItem={selectAgency}
228
+ disabled={disabled}
229
+ />
230
+ </FormInputColumn>
231
+ </Box>
232
+ )}
234
233
  <Box padding="0">
235
234
  <Stack childGap="1rem" direction="row" justify="flex-end">
236
235
  <ButtonWithAction