@appquality/unguess-design-system 2.12.70 → 2.12.72

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.72 (Thu Feb 09 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Fix dropdown header item [#206](https://github.com/AppQuality/unguess-design-system/pull/206) ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### Authors: 1
8
+
9
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
10
+
11
+ ---
12
+
13
+ # v2.12.71 (Thu Feb 09 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Add dropdown header item and separator [#205](https://github.com/AppQuality/unguess-design-system/pull/205) ([@cannarocks](https://github.com/cannarocks))
18
+ - feat(dropdown): export header item and separator (skip ci) [#204](https://github.com/AppQuality/unguess-design-system/pull/204) ([@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.70 (Fri Feb 03 2023)
2
27
 
3
28
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -1868,6 +1868,8 @@ const StyledLabel$2 = styled__default["default"](reactForms.Label) ``;
1868
1868
  **/
1869
1869
  const Label = (props) => jsxRuntime.jsx(StyledLabel$2, Object.assign({}, props));
1870
1870
 
1871
+ const MenuHeaderItem = (props) => (jsxRuntime.jsx(reactDropdowns.HeaderItem, Object.assign({}, props)));
1872
+
1871
1873
  const UgSelect = styled__default["default"](reactDropdowns.Select) `
1872
1874
  ${(props) => props.isPrimary &&
1873
1875
  `
@@ -1894,8 +1896,13 @@ const StyledDropdown = styled__default["default"].div `
1894
1896
  display: block;
1895
1897
  }
1896
1898
  `;
1899
+ const StyledMenuHeaderItem = styled__default["default"](MenuHeaderItem) `
1900
+ pointer-events: none;
1901
+ `;
1897
1902
  const Dropdown = (props) => (jsxRuntime.jsx(StyledDropdown, { children: jsxRuntime.jsx(reactDropdowns.Dropdown, Object.assign({}, props)) }));
1898
- const Message = (props) => jsxRuntime.jsx(reactDropdowns.Message, Object.assign({}, props));
1903
+ const Message = (props) => jsxRuntime.jsx(reactDropdowns.Message, Object.assign({}, props));
1904
+ Dropdown.HeaderItem = StyledMenuHeaderItem;
1905
+ Dropdown.Separator = Separator;
1899
1906
 
1900
1907
  const StyledAutocomplete = styled__default["default"](Autocomplete) `
1901
1908
  ${(props) => props.hasSelectedItems &&
@@ -1941,8 +1948,6 @@ const CounterMultiselect = ({ options, label, i18n, onChange, isCompact, }) => {
1941
1948
  : (_a = i18n === null || i18n === void 0 ? void 0 : i18n.noItems) !== null && _a !== void 0 ? _a : "No items" }))] }), jsxRuntime.jsx(Menu, Object.assign({ isCompact: isCompact }, { children: matchingOptions.length === 0 ? (jsxRuntime.jsx(Item$1, 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(Item$1, Object.assign({ value: option }, option, { children: jsxRuntime.jsx("span", { children: option.label }) }), option.itemId)))) }))] })) }));
1942
1949
  };
1943
1950
 
1944
- const MenuHeaderItem = (props) => (jsxRuntime.jsx(reactDropdowns.HeaderItem, Object.assign({}, props)));
1945
-
1946
1951
  const editorStyle = styled.css `
1947
1952
  > * + * {
1948
1953
  margin-top: 0.75em;
@@ -4671,7 +4676,7 @@ var SvgInfoFill = function SvgInfoFill(props) {
4671
4676
 
4672
4677
  const StyledButton$2 = styled__default["default"](Button) `
4673
4678
  color: ${(props) => props.theme.palette.grey[800]};
4674
- font-weight: ${(props) => props.theme.fontWeights.bold};
4679
+ font-weight: ${(props) => props.theme.fontWeights.semibold};
4675
4680
  padding-left: 0;
4676
4681
  justify-content: flex-start;
4677
4682
 
@@ -11,6 +11,10 @@ import { SelectArgs, DropdownArgs, MessageArgs } from "./_types";
11
11
  - To select from a list on mobile, use a native Select instead
12
12
  */
13
13
  declare const Select: (props: SelectArgs) => JSX.Element;
14
- declare const Dropdown: (props: PropsWithChildren<DropdownArgs>) => JSX.Element;
14
+ declare const Dropdown: {
15
+ (props: PropsWithChildren<DropdownArgs>): JSX.Element;
16
+ HeaderItem: import("styled-components").StyledComponent<(props: import("../menuheader/_types").HeaderItemArgs) => JSX.Element, any, {}, never>;
17
+ Separator: (props: import("react").LiHTMLAttributes<HTMLLIElement>) => JSX.Element;
18
+ };
15
19
  declare const Message: (props: MessageArgs) => JSX.Element;
16
20
  export { Select, Dropdown, Message };
@@ -16,5 +16,9 @@ interface MenuStoryArgs {
16
16
  }
17
17
  export declare const Default: Story<MenuStoryArgs>;
18
18
  export declare const Validation: Story<MenuStoryArgs>;
19
- declare const _default: ComponentMeta<(props: import("react").PropsWithChildren<DropdownArgs>) => JSX.Element>;
19
+ declare const _default: ComponentMeta<{
20
+ (props: import("react").PropsWithChildren<DropdownArgs>): JSX.Element;
21
+ HeaderItem: import("styled-components").StyledComponent<(props: import("../menuheader/_types").HeaderItemArgs) => JSX.Element, any, {}, never>;
22
+ Separator: (props: import("react").LiHTMLAttributes<HTMLLIElement>) => JSX.Element;
23
+ }>;
20
24
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.12.70",
3
+ "version": "2.12.72",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",