@pinuts/bsr-uikit-relaunch 0.2.76 → 0.2.78

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":"CheckboxField.d.ts","sourceRoot":"","sources":["../../../../../src/items/eventWizardItems/EventPicker/Components/CheckboxField.jsx"],"names":[],"mappings":";AAOA,8DAsFC;;;;;;kBA7F6C,OAAO;2BAC1B,YAAY"}
1
+ {"version":3,"file":"CheckboxField.d.ts","sourceRoot":"","sources":["../../../../../src/items/eventWizardItems/EventPicker/Components/CheckboxField.jsx"],"names":[],"mappings":";AAOA,8DAwFC;;;;;;kBA/F6C,OAAO;2BAC1B,YAAY"}
@@ -43,6 +43,7 @@ const CheckboxField = props => {
43
43
  setFieldValue(field.name, [...(values.components || []), value]);
44
44
  }
45
45
  }, [isPreselected, checked, setFieldValue, field.name, values.components, value]);
46
+ const isCheckboxDisabled = isPreselected ? !isDeselectable : false;
46
47
 
47
48
  // the special onChangeHandler is used when singleSelectionCheckbox is true
48
49
  // so that only one checkbox can be selected, like RadioButtons
@@ -76,7 +77,7 @@ const CheckboxField = props => {
76
77
  checked: checked,
77
78
  onChange: onChangeHandler,
78
79
  "aria-describedby": descriptionId,
79
- disabled: isDeselectable === false && checked
80
+ disabled: isCheckboxDisabled
80
81
  })), /*#__PURE__*/_react.default.createElement("label", {
81
82
  className: "custom-control-label d-sm-flex align-items-center p-3 pl-4",
82
83
  htmlFor: inputProps.id
@@ -86,7 +87,7 @@ const CheckboxField = props => {
86
87
  }, subtitle && /*#__PURE__*/_react.default.createElement("div", {
87
88
  className: "small mt-1 mr-4"
88
89
  }, subtitle), infobadge && /*#__PURE__*/_react.default.createElement("div", {
89
- className: "badge badge-secondary rounded-pill ml-auto mt-2 mt-sm-0m"
90
+ className: "badge badge-secondary rounded-pill ml-auto mt-1 mt-sm-0m"
90
91
  }, infobadge), required && /*#__PURE__*/_react.default.createElement("span", {
91
92
  className: "pi-required text-primary mr-1"
92
93
  }, "*"))));
@@ -4,6 +4,7 @@ import { usePopulatedComponentsWithValues } from './formbuilder/populateComponen
4
4
  import { getComponentRegistry } from './formbuilder/ComponentRegistry';
5
5
  import { registerComponent } from './formbuilder/ComponentRegistry';
6
6
  import { getComponentFromRegistry } from './formbuilder/ComponentRegistry';
7
+ import FormPresentation from './presentation/FormPresentation';
7
8
  import ComponentPopulator from './formbuilder/ComponentPopulator';
8
9
  import * as hooks from './hooks';
9
10
  import * as utils from './utils';
@@ -13,5 +14,5 @@ import { jsonLogic } from './shared/formRules/createFormRules.mjs';
13
14
  import { validateValues } from './shared/formRules/createFormRules.mjs';
14
15
  import { createFormRules } from './shared/formRules/createFormRules.mjs';
15
16
  import { validateComponents } from './shared/formRules/createFormRules.mjs';
16
- export { FormBuilder, populateComponents, usePopulatedComponentsWithValues, getComponentRegistry, registerComponent, getComponentFromRegistry, ComponentPopulator, hooks, utils, formik, formHooks, jsonLogic, validateValues, createFormRules, validateComponents };
17
+ export { FormBuilder, populateComponents, usePopulatedComponentsWithValues, getComponentRegistry, registerComponent, getComponentFromRegistry, FormPresentation, ComponentPopulator, hooks, utils, formik, formHooks, jsonLogic, validateValues, createFormRules, validateComponents };
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"wBACwB,2BAA2B;mCACkB,kCAAkC;iDAAlC,kCAAkC;qCAOhG,iCAAiC;kCAAjC,iCAAiC;yCAAjC,iCAAiC;+BANT,kCAAkC;uBAQ1C,SAAS;uBACT,SAAS;wBAZR,QAAQ;2BAaL,aAAa;0BACuC,wCAAwC;+BAAxC,wCAAwC;gCAAxC,wCAAwC;mCAAxC,wCAAwC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"wBACwB,2BAA2B;mCACkB,kCAAkC;iDAAlC,kCAAkC;qCAOhG,iCAAiC;kCAAjC,iCAAiC;yCAAjC,iCAAiC;6BALX,iCAAiC;+BAD/B,kCAAkC;uBAQ1C,SAAS;uBACT,SAAS;wBAZR,QAAQ;2BAaL,aAAa;0BACuC,wCAAwC;+BAAxC,wCAAwC;gCAAxC,wCAAwC;mCAAxC,wCAAwC"}