@trafilea/afrodita-components 5.0.0-beta.274 → 5.0.0-beta.276
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/build/index.esm.js +3 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +3 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -4869,7 +4869,8 @@ function SimpleDropdown(_a) {
|
|
|
4869
4869
|
setSelectedValue(value);
|
|
4870
4870
|
}, [value, options, initialValue]);
|
|
4871
4871
|
var Button = label ? withLabel(BaseDropdown$1.Button, label) : BaseDropdown$1.Button;
|
|
4872
|
-
|
|
4872
|
+
var DropdownContainer = showRequiredPlaceholder ? Container$12 : Fragment$2;
|
|
4873
|
+
return (jsxs$1(DropdownContainer, { children: [jsxs$1(BaseDropdown$1, __assign$1({ value: selectedValue, onChange: onChangeHandler, disabled: disabled, wide: wide }, { children: [jsx$1(Button, __assign$1({ OpenIcon: Icon.Arrows.ChevronDown, CloseIcon: Icon.Arrows.ChevronUp, wide: wide, isSortOrFilter: sort, "data-testid": testId }, { children: selectedOptionLabel }), void 0), jsx$1(BaseDropdown$1.Options, { children: options.map(function (item) { return (jsx$1(BaseDropdown$1.Option, __assign$1({ value: item, disabled: item.disabled }, { children: item.label }), item.key)); }) }, void 0)] }), void 0), !!required && jsx$1(Error$1, { error: required }, void 0)] }, void 0));
|
|
4873
4874
|
}
|
|
4874
4875
|
var templateObject_1$1x, templateObject_2$10;
|
|
4875
4876
|
|
|
@@ -18273,7 +18274,7 @@ var Tabs = function (_a) {
|
|
|
18273
18274
|
return null;
|
|
18274
18275
|
}
|
|
18275
18276
|
var selectedContent = (_b = tabs.find(function (tab) { return tab.title === selectedTab; })) === null || _b === void 0 ? void 0 : _b.content;
|
|
18276
|
-
return (jsxs$1(Container$f, __assign$1({ "data-testid": "tabs-container" }, { children: [jsx$1(TabList, __assign$1({ backgroundColor: backgroundColor }, { children: tabs.map(function (tab, index) { return (jsxs$1(Fragment
|
|
18277
|
+
return (jsxs$1(Container$f, __assign$1({ "data-testid": "tabs-container" }, { children: [jsx$1(TabList, __assign$1({ backgroundColor: backgroundColor }, { children: tabs.map(function (tab, index) { return (jsxs$1(React__default.Fragment, { children: [jsx$1(Tab, { title: tab.title, selected: selectedTab === tab.title, onClick: setSelectedTab, tabsMaxWidth: tabsMaxWidth }, tab.title), index + 1 < tabs.length && jsx$1(TabSeparator, { children: "|" }, void 0)] }, tab.title)); }) }), void 0), jsx$1(TabContent, __assign$1({ "data-testid": "tab-content" }, { children: selectedContent }), void 0)] }), void 0));
|
|
18277
18278
|
};
|
|
18278
18279
|
var templateObject_1$i, templateObject_2$d, templateObject_3$c, templateObject_4$6;
|
|
18279
18280
|
|