@appquality/unguess-design-system 2.12.69 → 2.12.71

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.71 (Thu Feb 09 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Add dropdown header item and separator [#205](https://github.com/AppQuality/unguess-design-system/pull/205) ([@cannarocks](https://github.com/cannarocks))
6
+ - feat(dropdown): export header item and separator (skip ci) [#204](https://github.com/AppQuality/unguess-design-system/pull/204) ([@cannarocks](https://github.com/cannarocks))
7
+
8
+ #### Authors: 1
9
+
10
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
11
+
12
+ ---
13
+
14
+ # v2.12.70 (Fri Feb 03 2023)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - Iubenda issues [#203](https://github.com/AppQuality/unguess-design-system/pull/203) ([@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.69 (Fri Feb 03 2023)
2
27
 
3
28
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -1895,7 +1895,9 @@ const StyledDropdown = styled__default["default"].div `
1895
1895
  }
1896
1896
  `;
1897
1897
  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));
1898
+ const Message = (props) => jsxRuntime.jsx(reactDropdowns.Message, Object.assign({}, props));
1899
+ Dropdown.HeaderItem = HeaderItem;
1900
+ Dropdown.Separator = Separator;
1899
1901
 
1900
1902
  const StyledAutocomplete = styled__default["default"](Autocomplete) `
1901
1903
  ${(props) => props.hasSelectedItems &&
@@ -4671,7 +4673,7 @@ var SvgInfoFill = function SvgInfoFill(props) {
4671
4673
 
4672
4674
  const StyledButton$2 = styled__default["default"](Button) `
4673
4675
  color: ${(props) => props.theme.palette.grey[800]};
4674
- font-weight: ${(props) => props.theme.fontWeights.bold};
4676
+ font-weight: ${(props) => props.theme.fontWeights.semibold};
4675
4677
  padding-left: 0;
4676
4678
  justify-content: flex-start;
4677
4679
 
@@ -4824,7 +4826,7 @@ const StyledList = styled__default["default"].ul `
4824
4826
  padding: 0;
4825
4827
  margin: 0;
4826
4828
  `;
4827
- const StyledAnchor = styled__default["default"](Anchor) `
4829
+ styled__default["default"](Anchor) `
4828
4830
  &:hover {
4829
4831
  text-decoration: none;
4830
4832
  }
@@ -4837,7 +4839,14 @@ const UserMenu = (props) => {
4837
4839
  };
4838
4840
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [item === "" && jsxRuntime.jsx(UserContainer, Object.assign({}, props.user)), jsxRuntime.jsxs(StyledList, { children: [item === "" && props.onFeedbackClick && jsxRuntime.jsx(Separator, {}), props.onFeedbackClick && (jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgThumbsUp, {}), setActive: () => props.onFeedbackClick
4839
4841
  ? props.onFeedbackClick()
4840
- : console.log("feedback fired") }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.feedbackTitle || "Give us your feedback", jsxRuntime.jsx(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: props.feedbackSubTitle || "Help us improve UNGUESS!" }))] }) }))), item === "" && jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(HelpItem, { value: "csm", selectedItem: item, setActive: (i) => toggleItem(i), title: props.csmTitle || "Need Help?", contactLabel: props.csmContactLabel || "Contact your CSM", csm: props.csm, toggleChat: props.onToggleChat, chatSupportLabel: props === null || props === void 0 ? void 0 : props.chatSupportLabel, copyLabel: props === null || props === void 0 ? void 0 : props.copyLabel }), jsxRuntime.jsx(LanguageItem, { title: props.languageTitle || "Change Language", value: "language-selector", selectedItem: item, setActive: (i) => toggleItem(i), languages: props.languages, currentLanguage: props.currentLanguage, currentLanguageLabel: props.currentLanguageLabel, onSelectLanguage: (lang) => props.onSelectLanguage(lang) }), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgLockLockedFill, { color: theme.palette.blue[600] }), setActive: () => { } }, { children: jsxRuntime.jsx(StyledAnchor, Object.assign({ className: "iubenda-cs-preferences-link", onClick: () => { var _a; return window.open(((_a = props.privacy) === null || _a === void 0 ? void 0 : _a.url) || "#"); }, style: {} }, { children: ((_a = props.privacy) === null || _a === void 0 ? void 0 : _a.title) || "Privacy settings" })) })), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgExit, { color: theme.palette.red[600] }), setActive: () => props.onLogout() }, { children: props.logoutTitle || "Log out" }))] })] }));
4842
+ : console.log("feedback fired") }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.feedbackTitle || "Give us your feedback", jsxRuntime.jsx(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: props.feedbackSubTitle || "Help us improve UNGUESS!" }))] }) }))), item === "" && jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(HelpItem, { value: "csm", selectedItem: item, setActive: (i) => toggleItem(i), title: props.csmTitle || "Need Help?", contactLabel: props.csmContactLabel || "Contact your CSM", csm: props.csm, toggleChat: props.onToggleChat, chatSupportLabel: props === null || props === void 0 ? void 0 : props.chatSupportLabel, copyLabel: props === null || props === void 0 ? void 0 : props.copyLabel }), jsxRuntime.jsx(LanguageItem, { title: props.languageTitle || "Change Language", value: "language-selector", selectedItem: item, setActive: (i) => toggleItem(i), languages: props.languages, currentLanguage: props.currentLanguage, currentLanguageLabel: props.currentLanguageLabel, onSelectLanguage: (lang) => props.onSelectLanguage(lang) }), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgLockLockedFill, { color: theme.palette.blue[600] }), setActive: () => {
4843
+ if (document.querySelector(".iubenda-cs-preferences-link")) {
4844
+ const iubendaBtn = document.querySelector(".iubenda-cs-preferences-link");
4845
+ if (iubendaBtn) {
4846
+ iubendaBtn.click();
4847
+ }
4848
+ }
4849
+ } }, { children: ((_a = props.privacy) === null || _a === void 0 ? void 0 : _a.title) || "Privacy settings" })), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgExit, { color: theme.palette.red[600] }), setActive: () => props.onLogout() }, { children: props.logoutTitle || "Log out" }))] })] }));
4841
4850
  };
4842
4851
 
4843
4852
  const StyledModal = styled__default["default"](Modal) `
@@ -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: (props: import("../../navigation/header/header-item/_types").HeaderItemArgs) => JSX.Element;
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: (props: import("../../navigation/header/header-item/_types").HeaderItemArgs) => JSX.Element;
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.69",
3
+ "version": "2.12.71",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",