@bigbinary/neetoui 5.1.11 → 5.1.12
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 +92 -40
- package/formik.cjs.js.map +1 -1
- package/formik.js +92 -40
- package/formik.js.map +1 -1
- package/index.cjs.js +108 -47
- package/index.cjs.js.map +1 -1
- package/index.js +108 -47
- package/index.js.map +1 -1
- package/layouts.cjs.js +5 -1
- package/layouts.cjs.js.map +1 -1
- package/layouts.js +5 -1
- package/layouts.js.map +1 -1
- package/package.json +1 -1
package/formik.cjs.js
CHANGED
|
@@ -9905,6 +9905,7 @@ var Portal$1 = function Portal(_ref, ref) {
|
|
|
9905
9905
|
var children = _ref.children,
|
|
9906
9906
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$t);
|
|
9907
9907
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$2({
|
|
9908
|
+
"data-cy": "neeto-backdrop",
|
|
9908
9909
|
"data-testid": "neeto-backdrop",
|
|
9909
9910
|
ref: ref
|
|
9910
9911
|
}, otherProps), children);
|
|
@@ -13966,7 +13967,11 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
13966
13967
|
role: "tooltip",
|
|
13967
13968
|
theme: theme,
|
|
13968
13969
|
zIndex: 100001,
|
|
13969
|
-
onCreate:
|
|
13970
|
+
onCreate: function onCreate(instance) {
|
|
13971
|
+
var _instance$popper$firs;
|
|
13972
|
+
setInstance(instance);
|
|
13973
|
+
(_instance$popper$firs = instance.popper.firstElementChild) === null || _instance$popper$firs === void 0 ? void 0 : _instance$popper$firs.setAttribute("data-cy", "tooltip-box");
|
|
13974
|
+
}
|
|
13970
13975
|
}, localProps, otherProps), /*#__PURE__*/React__default["default"].isValidElement(children) ? children : /*#__PURE__*/React__default["default"].createElement("span", null, children));
|
|
13971
13976
|
};
|
|
13972
13977
|
|
|
@@ -16583,7 +16588,7 @@ var getScrollbarWidth = function getScrollbarWidth() {
|
|
|
16583
16588
|
var noop$1 = function noop() {};
|
|
16584
16589
|
var hyphenize = function hyphenize(string) {
|
|
16585
16590
|
var fallbackString = "nui";
|
|
16586
|
-
if (string && string.replace) {
|
|
16591
|
+
if (string && typeof string === "string" && string.replace) {
|
|
16587
16592
|
return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
|
|
16588
16593
|
}
|
|
16589
16594
|
return fallbackString;
|
|
@@ -16720,17 +16725,21 @@ var useSyncedRef = function useSyncedRef(ref) {
|
|
|
16720
16725
|
|
|
16721
16726
|
var Body = function Body(_ref) {
|
|
16722
16727
|
var children = _ref.children,
|
|
16723
|
-
className = _ref.className
|
|
16728
|
+
className = _ref.className,
|
|
16729
|
+
dataCy = _ref.dataCy;
|
|
16724
16730
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16725
|
-
className: classnames$1("neeto-ui-modal__body", className)
|
|
16731
|
+
className: classnames$1("neeto-ui-modal__body", className),
|
|
16732
|
+
"data-cy": dataCy !== null && dataCy !== void 0 ? dataCy : "modal-body"
|
|
16726
16733
|
}, children);
|
|
16727
16734
|
};
|
|
16728
16735
|
|
|
16729
16736
|
var Footer = function Footer(_ref) {
|
|
16730
16737
|
var children = _ref.children,
|
|
16731
|
-
className = _ref.className
|
|
16738
|
+
className = _ref.className,
|
|
16739
|
+
dataCy = _ref.dataCy;
|
|
16732
16740
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16733
|
-
className: classnames$1("neeto-ui-modal__footer", className)
|
|
16741
|
+
className: classnames$1("neeto-ui-modal__footer", className),
|
|
16742
|
+
"data-cy": dataCy !== null && dataCy !== void 0 ? dataCy : "modal-footer"
|
|
16734
16743
|
}, children);
|
|
16735
16744
|
};
|
|
16736
16745
|
|
|
@@ -16871,11 +16880,14 @@ var Header = function Header(_ref) {
|
|
|
16871
16880
|
var _ref$description = _ref.description,
|
|
16872
16881
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
16873
16882
|
children = _ref.children,
|
|
16874
|
-
className = _ref.className
|
|
16883
|
+
className = _ref.className,
|
|
16884
|
+
dataCy = _ref.dataCy;
|
|
16875
16885
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16876
|
-
className: classnames$1("neeto-ui-modal__header", className)
|
|
16886
|
+
className: classnames$1("neeto-ui-modal__header", className),
|
|
16887
|
+
"data-cy": dataCy !== null && dataCy !== void 0 ? dataCy : "modal-header"
|
|
16877
16888
|
}, children, description && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16878
|
-
className: "neeto-ui-modal__header-desc"
|
|
16889
|
+
className: "neeto-ui-modal__header-desc",
|
|
16890
|
+
"data-cy": "modal-header-desc"
|
|
16879
16891
|
}, /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
16880
16892
|
lineHeight: "normal",
|
|
16881
16893
|
style: "body2"
|
|
@@ -16968,6 +16980,7 @@ var Modal = function Modal(_ref) {
|
|
|
16968
16980
|
}, otherProps), closeButton && /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
16969
16981
|
"aria-label": "Close",
|
|
16970
16982
|
className: "neeto-ui-modal__close",
|
|
16983
|
+
"data-cy": "modal-close-button",
|
|
16971
16984
|
"data-testid": "close-button",
|
|
16972
16985
|
icon: neetoIcons.Close,
|
|
16973
16986
|
size: "small",
|
|
@@ -17031,6 +17044,7 @@ var Alert = function Alert(_ref) {
|
|
|
17031
17044
|
closeButton: closeButton,
|
|
17032
17045
|
closeOnEsc: closeOnEsc,
|
|
17033
17046
|
closeOnOutsideClick: closeOnOutsideClick,
|
|
17047
|
+
"data-cy": "alert-box",
|
|
17034
17048
|
isOpen: isOpen,
|
|
17035
17049
|
size: size,
|
|
17036
17050
|
onClose: onClose
|
|
@@ -17283,6 +17297,7 @@ var Checkbox$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
17283
17297
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends$2({
|
|
17284
17298
|
"aria-invalid": !!error,
|
|
17285
17299
|
className: "neeto-ui-checkbox",
|
|
17300
|
+
"data-cy": "".concat(hyphenize(renderLabel), "-checkbox-input"),
|
|
17286
17301
|
id: id,
|
|
17287
17302
|
name: id,
|
|
17288
17303
|
ref: ref,
|
|
@@ -21038,7 +21053,7 @@ var MenuPlacer = function MenuPlacer(props) {
|
|
|
21038
21053
|
})
|
|
21039
21054
|
});
|
|
21040
21055
|
};
|
|
21041
|
-
var Menu = function Menu(props) {
|
|
21056
|
+
var Menu$1 = function Menu(props) {
|
|
21042
21057
|
var children = props.children,
|
|
21043
21058
|
className = props.className,
|
|
21044
21059
|
cx = props.cx,
|
|
@@ -21283,7 +21298,7 @@ var valueContainerCSS = function valueContainerCSS(_ref2) {
|
|
|
21283
21298
|
overflow: 'hidden'
|
|
21284
21299
|
};
|
|
21285
21300
|
};
|
|
21286
|
-
var ValueContainer = function ValueContainer(props) {
|
|
21301
|
+
var ValueContainer$1 = function ValueContainer(props) {
|
|
21287
21302
|
var children = props.children,
|
|
21288
21303
|
className = props.className,
|
|
21289
21304
|
cx = props.cx,
|
|
@@ -21385,7 +21400,7 @@ var baseCSS = function baseCSS(_ref3) {
|
|
|
21385
21400
|
};
|
|
21386
21401
|
};
|
|
21387
21402
|
var dropdownIndicatorCSS = baseCSS;
|
|
21388
|
-
var DropdownIndicator = function DropdownIndicator(props) {
|
|
21403
|
+
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
|
21389
21404
|
var children = props.children,
|
|
21390
21405
|
className = props.className,
|
|
21391
21406
|
cx = props.cx,
|
|
@@ -21400,7 +21415,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
21400
21415
|
}, innerProps), children || jsx(DownChevron, null));
|
|
21401
21416
|
};
|
|
21402
21417
|
var clearIndicatorCSS = baseCSS;
|
|
21403
|
-
var ClearIndicator = function ClearIndicator(props) {
|
|
21418
|
+
var ClearIndicator$1 = function ClearIndicator(props) {
|
|
21404
21419
|
var children = props.children,
|
|
21405
21420
|
className = props.className,
|
|
21406
21421
|
cx = props.cx,
|
|
@@ -21757,7 +21772,7 @@ var MultiValueGeneric = function MultiValueGeneric(_ref4) {
|
|
|
21757
21772
|
};
|
|
21758
21773
|
var MultiValueContainer = MultiValueGeneric;
|
|
21759
21774
|
var MultiValueLabel = MultiValueGeneric;
|
|
21760
|
-
function MultiValueRemove$
|
|
21775
|
+
function MultiValueRemove$2(_ref5) {
|
|
21761
21776
|
var children = _ref5.children,
|
|
21762
21777
|
innerProps = _ref5.innerProps;
|
|
21763
21778
|
return jsx("div", _extends({
|
|
@@ -21872,7 +21887,7 @@ var placeholderCSS = function placeholderCSS(_ref) {
|
|
|
21872
21887
|
marginRight: spacing.baseUnit / 2
|
|
21873
21888
|
};
|
|
21874
21889
|
};
|
|
21875
|
-
var Placeholder = function Placeholder(props) {
|
|
21890
|
+
var Placeholder$1 = function Placeholder(props) {
|
|
21876
21891
|
var children = props.children,
|
|
21877
21892
|
className = props.className,
|
|
21878
21893
|
cx = props.cx,
|
|
@@ -21920,9 +21935,9 @@ var SingleValue = function SingleValue(props) {
|
|
|
21920
21935
|
};
|
|
21921
21936
|
|
|
21922
21937
|
var components = {
|
|
21923
|
-
ClearIndicator: ClearIndicator,
|
|
21938
|
+
ClearIndicator: ClearIndicator$1,
|
|
21924
21939
|
Control: Control,
|
|
21925
|
-
DropdownIndicator: DropdownIndicator,
|
|
21940
|
+
DropdownIndicator: DropdownIndicator$1,
|
|
21926
21941
|
DownChevron: DownChevron,
|
|
21927
21942
|
CrossIcon: CrossIcon,
|
|
21928
21943
|
Group: Group,
|
|
@@ -21931,7 +21946,7 @@ var components = {
|
|
|
21931
21946
|
IndicatorSeparator: IndicatorSeparator,
|
|
21932
21947
|
Input: Input,
|
|
21933
21948
|
LoadingIndicator: LoadingIndicator,
|
|
21934
|
-
Menu: Menu,
|
|
21949
|
+
Menu: Menu$1,
|
|
21935
21950
|
MenuList: MenuList,
|
|
21936
21951
|
MenuPortal: MenuPortal,
|
|
21937
21952
|
LoadingMessage: LoadingMessage,
|
|
@@ -21939,12 +21954,12 @@ var components = {
|
|
|
21939
21954
|
MultiValue: MultiValue,
|
|
21940
21955
|
MultiValueContainer: MultiValueContainer,
|
|
21941
21956
|
MultiValueLabel: MultiValueLabel,
|
|
21942
|
-
MultiValueRemove: MultiValueRemove$
|
|
21957
|
+
MultiValueRemove: MultiValueRemove$2,
|
|
21943
21958
|
Option: Option,
|
|
21944
|
-
Placeholder: Placeholder,
|
|
21959
|
+
Placeholder: Placeholder$1,
|
|
21945
21960
|
SelectContainer: SelectContainer,
|
|
21946
21961
|
SingleValue: SingleValue,
|
|
21947
|
-
ValueContainer: ValueContainer
|
|
21962
|
+
ValueContainer: ValueContainer$1
|
|
21948
21963
|
};
|
|
21949
21964
|
var defaultComponents = function defaultComponents(props) {
|
|
21950
21965
|
return _objectSpread2(_objectSpread2({}, components), props.components);
|
|
@@ -24784,7 +24799,7 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
24784
24799
|
className: "neeto-ui-email-input__suffix"
|
|
24785
24800
|
}, suffix)) : null;
|
|
24786
24801
|
};
|
|
24787
|
-
var MultiValueRemove = function MultiValueRemove(props) {
|
|
24802
|
+
var MultiValueRemove$1 = function MultiValueRemove(props) {
|
|
24788
24803
|
return /*#__PURE__*/React__default["default"].createElement(components.MultiValueRemove, props, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
24789
24804
|
size: 16
|
|
24790
24805
|
}));
|
|
@@ -24823,7 +24838,7 @@ var CUSTOM_COMPONENTS = {
|
|
|
24823
24838
|
DropdownIndicator: CustomDropdownIndicator,
|
|
24824
24839
|
ClearIndicator: null,
|
|
24825
24840
|
Control: CustomControl,
|
|
24826
|
-
MultiValueRemove: MultiValueRemove,
|
|
24841
|
+
MultiValueRemove: MultiValueRemove$1,
|
|
24827
24842
|
ValueContainer: CustomValueContainer
|
|
24828
24843
|
};
|
|
24829
24844
|
|
|
@@ -25300,14 +25315,60 @@ var STRATEGIES = {
|
|
|
25300
25315
|
"default": "default",
|
|
25301
25316
|
fixed: "fixed"
|
|
25302
25317
|
};
|
|
25318
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
|
25319
|
+
return /*#__PURE__*/React__default["default"].createElement(components.DropdownIndicator, props, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Down, {
|
|
25320
|
+
size: 16
|
|
25321
|
+
}));
|
|
25322
|
+
};
|
|
25323
|
+
var ClearIndicator = function ClearIndicator(props) {
|
|
25324
|
+
return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator, props, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
25325
|
+
size: 16
|
|
25326
|
+
}));
|
|
25327
|
+
};
|
|
25328
|
+
var MultiValueRemove = function MultiValueRemove(props) {
|
|
25329
|
+
return /*#__PURE__*/React__default["default"].createElement(components.MultiValueRemove, props, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
25330
|
+
size: 16
|
|
25331
|
+
}));
|
|
25332
|
+
};
|
|
25303
25333
|
var CustomInput = function CustomInput(props) {
|
|
25304
25334
|
var selectProps = props.selectProps;
|
|
25305
25335
|
return /*#__PURE__*/React__default["default"].createElement(components.Input, _extends$2({}, props, {
|
|
25306
|
-
"data-cy": selectProps
|
|
25336
|
+
"data-cy": selectProps ? selectProps["data-cy"] : "select-input",
|
|
25307
25337
|
"data-testid": selectProps && selectProps["data-testid"],
|
|
25308
25338
|
maxLength: selectProps && selectProps.maxLength
|
|
25309
25339
|
}));
|
|
25310
25340
|
};
|
|
25341
|
+
var CustomOption = function CustomOption(props) {
|
|
25342
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Option, _extends$2({}, props, {
|
|
25343
|
+
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
25344
|
+
"data-cy": "".concat(hyphenize(props.label), "-select-option")
|
|
25345
|
+
})
|
|
25346
|
+
}));
|
|
25347
|
+
};
|
|
25348
|
+
var Placeholder = function Placeholder(props) {
|
|
25349
|
+
var selectProps = props.selectProps;
|
|
25350
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Placeholder, _extends$2({}, props, {
|
|
25351
|
+
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
25352
|
+
"data-cy": selectProps ? "".concat(hyphenize(selectProps.label), "-select-placeholder") : "select-placeholder"
|
|
25353
|
+
})
|
|
25354
|
+
}));
|
|
25355
|
+
};
|
|
25356
|
+
var Menu = function Menu(props) {
|
|
25357
|
+
var selectProps = props.selectProps;
|
|
25358
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Menu, _extends$2({}, props, {
|
|
25359
|
+
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
25360
|
+
"data-cy": selectProps ? "".concat(hyphenize(selectProps.label), "-select-menu") : "select-menu"
|
|
25361
|
+
})
|
|
25362
|
+
}));
|
|
25363
|
+
};
|
|
25364
|
+
var ValueContainer = function ValueContainer(props) {
|
|
25365
|
+
var selectProps = props.selectProps;
|
|
25366
|
+
return /*#__PURE__*/React__default["default"].createElement(components.ValueContainer, _extends$2({}, props, {
|
|
25367
|
+
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
25368
|
+
"data-cy": selectProps ? "".concat(hyphenize(selectProps.label), "-select-value-container") : "select-value-container"
|
|
25369
|
+
})
|
|
25370
|
+
}));
|
|
25371
|
+
};
|
|
25311
25372
|
var Select = function Select(_ref) {
|
|
25312
25373
|
var _ref$size = _ref.size,
|
|
25313
25374
|
size = _ref$size === void 0 ? SIZES$1.medium : _ref$size,
|
|
@@ -25355,21 +25416,6 @@ var Select = function Select(_ref) {
|
|
|
25355
25416
|
},
|
|
25356
25417
|
menuPosition: "fixed"
|
|
25357
25418
|
};
|
|
25358
|
-
var DropdownIndicator = function DropdownIndicator(props) {
|
|
25359
|
-
return /*#__PURE__*/React__default["default"].createElement(components.DropdownIndicator, props, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Down, {
|
|
25360
|
-
size: 16
|
|
25361
|
-
}));
|
|
25362
|
-
};
|
|
25363
|
-
var ClearIndicator = function ClearIndicator(props) {
|
|
25364
|
-
return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator, props, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
25365
|
-
size: 16
|
|
25366
|
-
}));
|
|
25367
|
-
};
|
|
25368
|
-
var MultiValueRemove = function MultiValueRemove(props) {
|
|
25369
|
-
return /*#__PURE__*/React__default["default"].createElement(components.MultiValueRemove, props, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
25370
|
-
size: 16
|
|
25371
|
-
}));
|
|
25372
|
-
};
|
|
25373
25419
|
var options = otherProps.options,
|
|
25374
25420
|
defaultOptions = otherProps.defaultOptions,
|
|
25375
25421
|
getOptionValue = otherProps.getOptionValue;
|
|
@@ -25403,6 +25449,7 @@ var Select = function Select(_ref) {
|
|
|
25403
25449
|
"data-cy": "".concat(hyphenize(label), "-select-container"),
|
|
25404
25450
|
defaultValue: findInOptions(defaultValue),
|
|
25405
25451
|
inputId: inputId,
|
|
25452
|
+
label: label,
|
|
25406
25453
|
ref: innerRef,
|
|
25407
25454
|
value: findInOptions(value),
|
|
25408
25455
|
className: classnames$1(["neeto-ui-react-select__container"], {
|
|
@@ -25413,9 +25460,13 @@ var Select = function Select(_ref) {
|
|
|
25413
25460
|
}),
|
|
25414
25461
|
components: _objectSpread({
|
|
25415
25462
|
Input: CustomInput,
|
|
25463
|
+
Option: CustomOption,
|
|
25416
25464
|
DropdownIndicator: DropdownIndicator,
|
|
25417
25465
|
ClearIndicator: ClearIndicator,
|
|
25418
|
-
MultiValueRemove: MultiValueRemove
|
|
25466
|
+
MultiValueRemove: MultiValueRemove,
|
|
25467
|
+
Placeholder: Placeholder,
|
|
25468
|
+
Menu: Menu,
|
|
25469
|
+
ValueContainer: ValueContainer
|
|
25419
25470
|
}, componentOverrides)
|
|
25420
25471
|
}, portalProps, otherProps)), !!error && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
25421
25472
|
className: "neeto-ui-input__error",
|
|
@@ -25531,6 +25582,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
25531
25582
|
onChange: onChange
|
|
25532
25583
|
}, otherProps)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
25533
25584
|
"aria-hidden": "true",
|
|
25585
|
+
"data-cy": "".concat(hyphenize(renderLabel), "-switch"),
|
|
25534
25586
|
className: classnames$1("neeto-ui-switch", {
|
|
25535
25587
|
"neeto-ui-switch--checked": !!checked
|
|
25536
25588
|
})
|