@appquality/unguess-design-system 2.12.58 → 2.12.59
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v2.12.59 (Thu Jan 19 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Allow isCompact on counter multiselect [#181](https://github.com/AppQuality/unguess-design-system/pull/181) ([@d-beezee](https://github.com/d-beezee))
|
|
6
|
+
- feat(countermulti): Allow isCompact [#180](https://github.com/AppQuality/unguess-design-system/pull/180) ([@d-beezee](https://github.com/d-beezee))
|
|
7
|
+
|
|
8
|
+
#### Authors: 1
|
|
9
|
+
|
|
10
|
+
- [@d-beezee](https://github.com/d-beezee)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v2.12.58 (Tue Jan 17 2023)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -1818,7 +1818,7 @@ const StyledAutocomplete = styled__default["default"](reactDropdowns.Autocomplet
|
|
|
1818
1818
|
}
|
|
1819
1819
|
`}
|
|
1820
1820
|
`;
|
|
1821
|
-
const CounterMultiselect = ({ options, label, i18n, onChange, }) => {
|
|
1821
|
+
const CounterMultiselect = ({ options, label, i18n, onChange, isCompact, }) => {
|
|
1822
1822
|
var _a, _b;
|
|
1823
1823
|
const [selectedItems, setSelectedItems] = React.useState(options.filter((o) => o.selected));
|
|
1824
1824
|
const [inputValue, setInputValue] = React.useState("");
|
|
@@ -1841,11 +1841,11 @@ const CounterMultiselect = ({ options, label, i18n, onChange, }) => {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}, downshiftProps: {
|
|
1843
1843
|
itemToString: (item) => item && item.id,
|
|
1844
|
-
}, onInputValueChange: (value) => setInputValue(value) }, { children: [jsxRuntime.jsxs(reactDropdowns.Field, { children: [label && jsxRuntime.jsx(reactDropdowns.Label, { children: label }), jsxRuntime.jsx(StyledAutocomplete, Object.assign({ hasSelectedItems: hasSelectedItems }, { children: hasSelectedItems
|
|
1844
|
+
}, onInputValueChange: (value) => setInputValue(value) }, { children: [jsxRuntime.jsxs(reactDropdowns.Field, { children: [label && jsxRuntime.jsx(reactDropdowns.Label, { children: label }), jsxRuntime.jsx(StyledAutocomplete, Object.assign({ isCompact: isCompact, hasSelectedItems: hasSelectedItems }, { children: hasSelectedItems
|
|
1845
1845
|
? (i18n === null || i18n === void 0 ? void 0 : i18n.counterText)
|
|
1846
1846
|
? i18n.counterText(selectedItems.length)
|
|
1847
1847
|
: `Items (${selectedItems.length})`
|
|
1848
|
-
: (_a = i18n === null || i18n === void 0 ? void 0 : i18n.noItems) !== null && _a !== void 0 ? _a : "No items" }))] }), jsxRuntime.jsx(reactDropdowns.Menu, { children: matchingOptions.length === 0 ? (jsxRuntime.jsx(reactDropdowns.Item, Object.assign({ disabled: true }, { children: (_b = i18n === null || i18n === void 0 ? void 0 : i18n.noMatches) !== null && _b !== void 0 ? _b : "No matches found" }))) : (matchingOptions.map((option) => (jsxRuntime.jsx(reactDropdowns.Item, Object.assign({ value: option }, { children: jsxRuntime.jsx("span", { children: option.label }) }), option.id)))) })] })) }));
|
|
1848
|
+
: (_a = i18n === null || i18n === void 0 ? void 0 : i18n.noItems) !== null && _a !== void 0 ? _a : "No items" }))] }), jsxRuntime.jsx(reactDropdowns.Menu, Object.assign({ isCompact: isCompact }, { children: matchingOptions.length === 0 ? (jsxRuntime.jsx(reactDropdowns.Item, Object.assign({ disabled: true }, { children: (_b = i18n === null || i18n === void 0 ? void 0 : i18n.noMatches) !== null && _b !== void 0 ? _b : "No matches found" }))) : (matchingOptions.map((option) => (jsxRuntime.jsx(reactDropdowns.Item, Object.assign({ value: option }, { children: jsxRuntime.jsx("span", { children: option.label }) }), option.id)))) }))] })) }));
|
|
1849
1849
|
};
|
|
1850
1850
|
|
|
1851
1851
|
const UgSelect = styled__default["default"](reactDropdowns.Select) `
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CounterMultiselectArgs } from "./_types";
|
|
2
|
-
declare const CounterMultiselect: ({ options, label, i18n, onChange, }: CounterMultiselectArgs) => JSX.Element;
|
|
2
|
+
declare const CounterMultiselect: ({ options, label, i18n, onChange, isCompact, }: CounterMultiselectArgs) => JSX.Element;
|
|
3
3
|
export { CounterMultiselect };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
2
|
import { CounterMultiselectArgs } from "./_types";
|
|
3
3
|
export declare const Default: Story<CounterMultiselectArgs>;
|
|
4
|
-
declare const _default: ComponentMeta<({ options, label, i18n, onChange, }: CounterMultiselectArgs) => JSX.Element>;
|
|
4
|
+
declare const _default: ComponentMeta<({ options, label, i18n, onChange, isCompact, }: CounterMultiselectArgs) => JSX.Element>;
|
|
5
5
|
export default _default;
|