@appquality/unguess-design-system 2.8.35 → 2.9.0
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 +36 -0
- package/build/hooks/useDebounce.d.ts +2 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +21 -10
- package/build/stories/dropdowns/autocomplete/_types.d.ts +3 -0
- package/build/stories/dropdowns/autocomplete/index.d.ts +13 -0
- package/build/stories/dropdowns/autocomplete/index.stories.d.ts +9 -0
- package/build/stories/modals/fullscreen/index.d.ts +11 -0
- package/build/stories/modals/fullscreen/index.stories.d.ts +17 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v2.9.0 (Fri Apr 29 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Cup 646 allow creation on select [#45](https://github.com/AppQuality/unguess-design-system/pull/45) ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v2.8.37 (Thu Apr 28 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Cup 642 modal fullscreen [#44](https://github.com/AppQuality/unguess-design-system/pull/44) ([@marcbon](https://github.com/marcbon))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v2.8.36 (Thu Apr 28 2022)
|
|
26
|
+
|
|
27
|
+
#### ⚠️ Pushed to `master`
|
|
28
|
+
|
|
29
|
+
- fix(campaignscard): pillIcon cannot be used as JSX component ([@cannarocks](https://github.com/cannarocks))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v2.8.35 (Wed Apr 27 2022)
|
|
2
38
|
|
|
3
39
|
#### ⚠️ Pushed to `master`
|
package/build/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./stories/dropdowns/item";
|
|
|
18
18
|
export * from "./stories/dropdowns/menu";
|
|
19
19
|
export * from "./stories/dropdowns/multiselect";
|
|
20
20
|
export * from "./stories/dropdowns/select";
|
|
21
|
+
export * from "./stories/dropdowns/autocomplete";
|
|
21
22
|
export * from "./stories/forms/checkbox";
|
|
22
23
|
export * as FormField from "./stories/forms/field";
|
|
23
24
|
export * from "./stories/forms/input";
|
package/build/index.js
CHANGED
|
@@ -606,18 +606,18 @@ var getStatusIcon = function (status) {
|
|
|
606
606
|
return SvgOnGoingStatusRoundIcon;
|
|
607
607
|
case "INCOMING":
|
|
608
608
|
return SvgArrivalStatusRoundIcon;
|
|
609
|
+
default:
|
|
610
|
+
return SvgOnGoingStatusRoundIcon;
|
|
609
611
|
}
|
|
610
612
|
};
|
|
611
|
-
var
|
|
613
|
+
var getTypeDataIcon = function (type) {
|
|
612
614
|
switch (type) {
|
|
613
615
|
case "EXPERIENTIAL":
|
|
614
|
-
return
|
|
615
|
-
pillIcon: SvgRegressionTestRoundIcon,
|
|
616
|
-
};
|
|
616
|
+
return SvgRegressionTestRoundIcon;
|
|
617
617
|
case "FUNCTIONAL":
|
|
618
|
-
return
|
|
619
|
-
|
|
620
|
-
|
|
618
|
+
return SvgFunctionalTestRoundIcon;
|
|
619
|
+
default:
|
|
620
|
+
return SvgFunctionalTestRoundIcon;
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
623
|
var Wrapper$1 = styled__default["default"](Card)(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"])), function (_a) {
|
|
@@ -683,8 +683,7 @@ var CardFooter$1 = styled__default["default"].div(templateObject_9 || (templateO
|
|
|
683
683
|
var CampaignCard = function (props) {
|
|
684
684
|
var isNew = props.isNew, date = props.date, projectTitle = props.projectTitle, campaignTitle = props.campaignTitle, status = props.status, type = props.type, labelNew = props.labelNew;
|
|
685
685
|
var StatusIcon = getStatusIcon(status !== null && status !== void 0 ? status : "PROGRESS");
|
|
686
|
-
var
|
|
687
|
-
var PillIcon = typeData === null || typeData === void 0 ? void 0 : typeData.pillIcon;
|
|
686
|
+
var PillIcon = getTypeDataIcon(type);
|
|
688
687
|
var projectTitleCut = projectTitle;
|
|
689
688
|
if (projectTitle.length > 42) {
|
|
690
689
|
projectTitleCut = "".concat(projectTitle.substring(0, 39), "...");
|
|
@@ -693,7 +692,7 @@ var CampaignCard = function (props) {
|
|
|
693
692
|
if (campaignTitle.length > 29) {
|
|
694
693
|
campaignTitleCut = "".concat(campaignTitle.substring(0, 26), "...");
|
|
695
694
|
}
|
|
696
|
-
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [
|
|
695
|
+
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [props.pillText && (jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), props.pillText] }))), jsxRuntime.jsx(StatusIcon, {})] })] })));
|
|
697
696
|
};
|
|
698
697
|
var templateObject_1$L, templateObject_2$d, templateObject_3$8, templateObject_4$4, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9;
|
|
699
698
|
|
|
@@ -1067,6 +1066,17 @@ var Dropdown = function (props) { return (jsxRuntime.jsx(reactDropdowns.Dropdown
|
|
|
1067
1066
|
var Message = function (props) { return jsxRuntime.jsx(reactDropdowns.Message, __assign({}, props)); };
|
|
1068
1067
|
var templateObject_1$F;
|
|
1069
1068
|
|
|
1069
|
+
/**
|
|
1070
|
+
* Autocomplete is an input field that filters results as users type. This helps users find something quickly in a large list of options.
|
|
1071
|
+
* <hr>
|
|
1072
|
+
* Used for this:
|
|
1073
|
+
- To filter down a large list of options
|
|
1074
|
+
- To quickly find a known option
|
|
1075
|
+
* Not for this:
|
|
1076
|
+
- To make more than one selection, use Multiselect instead
|
|
1077
|
+
*/
|
|
1078
|
+
var Autocomplete = function (props) { return jsxRuntime.jsx(reactDropdowns.Autocomplete, __assign({}, props)); };
|
|
1079
|
+
|
|
1070
1080
|
var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_1$E || (templateObject_1$E = __makeTemplateObject([""], [""])));
|
|
1071
1081
|
/**
|
|
1072
1082
|
* A Checkbox lets users select and unselect options from a list.
|
|
@@ -2212,6 +2222,7 @@ Object.defineProperty(exports, 'ModalClose', {
|
|
|
2212
2222
|
exports.Accordion = Accordion;
|
|
2213
2223
|
exports.Anchor = Anchor;
|
|
2214
2224
|
exports.AppHeader = AppHeader;
|
|
2225
|
+
exports.Autocomplete = Autocomplete;
|
|
2215
2226
|
exports.Avatar = Avatar;
|
|
2216
2227
|
exports.Blockquote = Blockquote;
|
|
2217
2228
|
exports.Body = Body$1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AutocompleteArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* Autocomplete is an input field that filters results as users type. This helps users find something quickly in a large list of options.
|
|
5
|
+
* <hr>
|
|
6
|
+
* Used for this:
|
|
7
|
+
- To filter down a large list of options
|
|
8
|
+
- To quickly find a known option
|
|
9
|
+
* Not for this:
|
|
10
|
+
- To make more than one selection, use Multiselect instead
|
|
11
|
+
*/
|
|
12
|
+
declare const Autocomplete: (props: AutocompleteArgs) => JSX.Element;
|
|
13
|
+
export { Autocomplete };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { AutocompleteArgs } from "./_types";
|
|
4
|
+
interface AutocompleteStoryArgs extends AutocompleteArgs {
|
|
5
|
+
allowNew?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Default: Story<AutocompleteStoryArgs>;
|
|
8
|
+
declare const _default: ComponentMeta<(props: AutocompleteArgs) => JSX.Element>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalArgs } from "../_types";
|
|
3
|
+
declare const ModalFullScreen: {
|
|
4
|
+
(props: ModalArgs): JSX.Element;
|
|
5
|
+
Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-modals/dist/typings/elements/Header").IHeaderProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
6
|
+
Body: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
7
|
+
Footer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
8
|
+
Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
9
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
};
|
|
11
|
+
export { ModalFullScreen };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalArgs } from "../_types";
|
|
3
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
4
|
+
interface ModalStoryArgs extends ModalArgs {
|
|
5
|
+
breadcrumbs?: any;
|
|
6
|
+
isDanger?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Default: Story<ModalStoryArgs>;
|
|
9
|
+
declare const _default: ComponentMeta<{
|
|
10
|
+
(props: ModalArgs): JSX.Element;
|
|
11
|
+
Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-modals/dist/typings/elements/Header").IHeaderProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
12
|
+
Body: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
13
|
+
Footer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
14
|
+
Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
15
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|