@bigbinary/neetoui 5.0.4 → 5.0.6
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/formik.cjs.js +13 -5
- package/formik.cjs.js.map +1 -1
- package/formik.js +13 -5
- package/formik.js.map +1 -1
- package/index.cjs.js +26 -10
- package/index.cjs.js.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.js +26 -10
- package/index.js.map +1 -1
- package/layouts.cjs.js.map +1 -1
- package/layouts.js.map +1 -1
- package/package.json +3 -3
package/formik.cjs.js
CHANGED
|
@@ -17094,7 +17094,7 @@ var hyphenize = function hyphenize(string) {
|
|
|
17094
17094
|
var renderFocusOnFocusableElements = function renderFocusOnFocusableElements(ref) {
|
|
17095
17095
|
var _ref$current, _ref$current2;
|
|
17096
17096
|
var shouldFocusFirstFocusableElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
17097
|
-
var focusableElements = '
|
|
17097
|
+
var focusableElements = '[href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
17098
17098
|
var firstFocusableElement = ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelectorAll(focusableElements)[0];
|
|
17099
17099
|
var focusableContent = ref === null || ref === void 0 ? void 0 : (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelectorAll(focusableElements);
|
|
17100
17100
|
var lastFocusableElement = focusableContent[(focusableContent === null || focusableContent === void 0 ? void 0 : focusableContent.length) - 1];
|
|
@@ -17156,12 +17156,12 @@ var useOverlay = function useOverlay(_ref) {
|
|
|
17156
17156
|
var focusRequiredElementInOverlay = function focusRequiredElementInOverlay() {
|
|
17157
17157
|
if (hasTransitionCompleted) {
|
|
17158
17158
|
var _initialFocusRef;
|
|
17159
|
-
if (
|
|
17160
|
-
renderFocusOnFocusableElements(overlayWrapper);
|
|
17161
|
-
} else {
|
|
17159
|
+
if ((_initialFocusRef = initialFocusRef) !== null && _initialFocusRef !== void 0 && _initialFocusRef.current) {
|
|
17162
17160
|
var _initialFocusRef2, _initialFocusRef2$cur;
|
|
17163
17161
|
(_initialFocusRef2 = initialFocusRef) === null || _initialFocusRef2 === void 0 ? void 0 : (_initialFocusRef2$cur = _initialFocusRef2.current) === null || _initialFocusRef2$cur === void 0 ? void 0 : _initialFocusRef2$cur.focus();
|
|
17164
17162
|
renderFocusOnFocusableElements(overlayWrapper, false);
|
|
17163
|
+
} else {
|
|
17164
|
+
renderFocusOnFocusableElements(overlayWrapper);
|
|
17165
17165
|
}
|
|
17166
17166
|
}
|
|
17167
17167
|
};
|
|
@@ -25598,7 +25598,7 @@ var AsyncCreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
25598
25598
|
}, selectProps));
|
|
25599
25599
|
});
|
|
25600
25600
|
|
|
25601
|
-
var _excluded$5 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components"];
|
|
25601
|
+
var _excluded$5 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
|
|
25602
25602
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25603
25603
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25604
25604
|
var SIZES$1 = {
|
|
@@ -25641,6 +25641,8 @@ var Select = function Select(_ref) {
|
|
|
25641
25641
|
value = _ref.value,
|
|
25642
25642
|
defaultValue = _ref.defaultValue,
|
|
25643
25643
|
componentOverrides = _ref.components,
|
|
25644
|
+
_ref$optionRemapping = _ref.optionRemapping,
|
|
25645
|
+
optionRemapping = _ref$optionRemapping === void 0 ? {} : _ref$optionRemapping,
|
|
25644
25646
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$5);
|
|
25645
25647
|
var inputId = useId(id);
|
|
25646
25648
|
var Parent = StateManagedSelect;
|
|
@@ -25650,6 +25652,12 @@ var Select = function Select(_ref) {
|
|
|
25650
25652
|
if (otherProps.loadOptions) {
|
|
25651
25653
|
Parent = isCreateable ? AsyncCreatableSelect : AsyncSelect;
|
|
25652
25654
|
}
|
|
25655
|
+
if (optionRemapping.value) {
|
|
25656
|
+
otherProps.getOptionValue = prop(optionRemapping.value);
|
|
25657
|
+
}
|
|
25658
|
+
if (optionRemapping.label) {
|
|
25659
|
+
otherProps.getOptionLabel = prop(optionRemapping.label);
|
|
25660
|
+
}
|
|
25653
25661
|
var portalProps = strategy === STRATEGIES.fixed && {
|
|
25654
25662
|
menuPortalTarget: document.body,
|
|
25655
25663
|
styles: {
|