@appquality/unguess-design-system 2.12.57 → 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,28 @@
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
+
14
+ # v2.12.58 (Tue Jan 17 2023)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - Develop [#179](https://github.com/AppQuality/unguess-design-system/pull/179) ([@cannarocks](https://github.com/cannarocks))
19
+
20
+ #### Authors: 1
21
+
22
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
23
+
24
+ ---
25
+
1
26
  # v2.12.57 (Tue Jan 17 2023)
2
27
 
3
28
  #### 🐛 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) `
@@ -4314,6 +4314,7 @@ const StyledSlick = styled__default["default"](SlickSlider__default["default"])
4314
4314
  height: 100%;
4315
4315
  width: auto;
4316
4316
  margin: 0 auto;
4317
+ max-width: 100%;
4317
4318
  }
4318
4319
 
4319
4320
  &.dragging img {
@@ -5,6 +5,7 @@ export interface CounterMultiselectArgs {
5
5
  label: string;
6
6
  selected?: boolean;
7
7
  }[];
8
+ isCompact?: boolean;
8
9
  label?: React.ReactNode;
9
10
  onChange?: (selectedItems: CounterMultiselectArgs["options"]) => void;
10
11
  i18n?: {
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.12.57",
3
+ "version": "2.12.59",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",