@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.js
CHANGED
|
@@ -17067,7 +17067,7 @@ var hyphenize = function hyphenize(string) {
|
|
|
17067
17067
|
var renderFocusOnFocusableElements = function renderFocusOnFocusableElements(ref) {
|
|
17068
17068
|
var _ref$current, _ref$current2;
|
|
17069
17069
|
var shouldFocusFirstFocusableElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
17070
|
-
var focusableElements = '
|
|
17070
|
+
var focusableElements = '[href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
17071
17071
|
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];
|
|
17072
17072
|
var focusableContent = ref === null || ref === void 0 ? void 0 : (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelectorAll(focusableElements);
|
|
17073
17073
|
var lastFocusableElement = focusableContent[(focusableContent === null || focusableContent === void 0 ? void 0 : focusableContent.length) - 1];
|
|
@@ -17129,12 +17129,12 @@ var useOverlay = function useOverlay(_ref) {
|
|
|
17129
17129
|
var focusRequiredElementInOverlay = function focusRequiredElementInOverlay() {
|
|
17130
17130
|
if (hasTransitionCompleted) {
|
|
17131
17131
|
var _initialFocusRef;
|
|
17132
|
-
if (
|
|
17133
|
-
renderFocusOnFocusableElements(overlayWrapper);
|
|
17134
|
-
} else {
|
|
17132
|
+
if ((_initialFocusRef = initialFocusRef) !== null && _initialFocusRef !== void 0 && _initialFocusRef.current) {
|
|
17135
17133
|
var _initialFocusRef2, _initialFocusRef2$cur;
|
|
17136
17134
|
(_initialFocusRef2 = initialFocusRef) === null || _initialFocusRef2 === void 0 ? void 0 : (_initialFocusRef2$cur = _initialFocusRef2.current) === null || _initialFocusRef2$cur === void 0 ? void 0 : _initialFocusRef2$cur.focus();
|
|
17137
17135
|
renderFocusOnFocusableElements(overlayWrapper, false);
|
|
17136
|
+
} else {
|
|
17137
|
+
renderFocusOnFocusableElements(overlayWrapper);
|
|
17138
17138
|
}
|
|
17139
17139
|
}
|
|
17140
17140
|
};
|
|
@@ -25571,7 +25571,7 @@ var AsyncCreatableSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
|
25571
25571
|
}, selectProps));
|
|
25572
25572
|
});
|
|
25573
25573
|
|
|
25574
|
-
var _excluded$5 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components"];
|
|
25574
|
+
var _excluded$5 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
|
|
25575
25575
|
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; }
|
|
25576
25576
|
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; }
|
|
25577
25577
|
var SIZES$1 = {
|
|
@@ -25614,6 +25614,8 @@ var Select = function Select(_ref) {
|
|
|
25614
25614
|
value = _ref.value,
|
|
25615
25615
|
defaultValue = _ref.defaultValue,
|
|
25616
25616
|
componentOverrides = _ref.components,
|
|
25617
|
+
_ref$optionRemapping = _ref.optionRemapping,
|
|
25618
|
+
optionRemapping = _ref$optionRemapping === void 0 ? {} : _ref$optionRemapping,
|
|
25617
25619
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$5);
|
|
25618
25620
|
var inputId = useId(id);
|
|
25619
25621
|
var Parent = StateManagedSelect;
|
|
@@ -25623,6 +25625,12 @@ var Select = function Select(_ref) {
|
|
|
25623
25625
|
if (otherProps.loadOptions) {
|
|
25624
25626
|
Parent = isCreateable ? AsyncCreatableSelect : AsyncSelect;
|
|
25625
25627
|
}
|
|
25628
|
+
if (optionRemapping.value) {
|
|
25629
|
+
otherProps.getOptionValue = prop(optionRemapping.value);
|
|
25630
|
+
}
|
|
25631
|
+
if (optionRemapping.label) {
|
|
25632
|
+
otherProps.getOptionLabel = prop(optionRemapping.label);
|
|
25633
|
+
}
|
|
25626
25634
|
var portalProps = strategy === STRATEGIES.fixed && {
|
|
25627
25635
|
menuPortalTarget: document.body,
|
|
25628
25636
|
styles: {
|