@appquality/unguess-design-system 3.0.1 → 3.0.2-svgr-beta
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/.github/dependabot.yml +11 -11
- package/CHANGELOG.md +0 -19
- package/build/index.js +46 -55
- package/build/stories/buttons/button/index.stories.d.ts +5 -4
- package/build/stories/dropdowns/select/index.stories.d.ts +1 -0
- package/build/stories/editor/index.stories.d.ts +1 -0
- package/build/stories/tooltip/index.stories.d.ts +1 -0
- package/package.json +1 -2
package/.github/dependabot.yml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: "yarn"
|
|
9
|
-
directory: "/" # Location of package manifests
|
|
10
|
-
schedule:
|
|
11
|
-
interval: "daily"
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "yarn"
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "daily"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
# v2.12.87 (Tue May 09 2023)
|
|
2
|
-
|
|
3
|
-
#### 🐛 Bug Fix
|
|
4
|
-
|
|
5
|
-
- Restore release command [#242](https://github.com/AppQuality/unguess-design-system/pull/242) ([@d-beezee](https://github.com/d-beezee))
|
|
6
|
-
- chore: Restore release command [#241](https://github.com/AppQuality/unguess-design-system/pull/241) ([@d-beezee](https://github.com/d-beezee))
|
|
7
|
-
- Update actions [#240](https://github.com/AppQuality/unguess-design-system/pull/240) ([@d-beezee](https://github.com/d-beezee))
|
|
8
|
-
- ci: Update node version on workflows [#239](https://github.com/AppQuality/unguess-design-system/pull/239) ([@d-beezee](https://github.com/d-beezee))
|
|
9
|
-
- Storybook 7 [#238](https://github.com/AppQuality/unguess-design-system/pull/238) ([@cannarocks](https://github.com/cannarocks) [@marcbon](https://github.com/marcbon) [@d-beezee](https://github.com/d-beezee))
|
|
10
|
-
- Storybook-7 [#237](https://github.com/AppQuality/unguess-design-system/pull/237) ([@cannarocks](https://github.com/cannarocks) [@marcbon](https://github.com/marcbon))
|
|
11
|
-
|
|
12
|
-
#### Authors: 3
|
|
13
|
-
|
|
14
|
-
- [@d-beezee](https://github.com/d-beezee)
|
|
15
|
-
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
16
|
-
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
1
|
# v2.12.86 (Mon May 08 2023)
|
|
21
2
|
|
|
22
3
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -37,7 +37,6 @@ var formik = require('formik');
|
|
|
37
37
|
var reactPagination = require('@zendeskgarden/react-pagination');
|
|
38
38
|
var SlickSlider = require('react-slick');
|
|
39
39
|
var reactTables = require('@zendeskgarden/react-tables');
|
|
40
|
-
var reactSpring = require('react-spring');
|
|
41
40
|
var reactTooltips = require('@zendeskgarden/react-tooltips');
|
|
42
41
|
|
|
43
42
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -2780,12 +2779,12 @@ const UgToggle = styled__default["default"](reactForms.Toggle) ``;
|
|
|
2780
2779
|
**/
|
|
2781
2780
|
const Toggle = (props) => jsxRuntime.jsx(UgToggle, Object.assign({}, props));
|
|
2782
2781
|
|
|
2783
|
-
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
2784
|
-
margin-bottom: ${theme.space.lg};
|
|
2785
|
-
|
|
2786
|
-
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
2787
|
-
margin-bottom: ${theme.space.md};
|
|
2788
|
-
}
|
|
2782
|
+
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
2783
|
+
margin-bottom: ${theme.space.lg};
|
|
2784
|
+
|
|
2785
|
+
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
2786
|
+
margin-bottom: ${theme.space.md};
|
|
2787
|
+
}
|
|
2789
2788
|
`;
|
|
2790
2789
|
const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
2791
2790
|
|
|
@@ -3172,7 +3171,7 @@ const StyledToggle = styled__default["default"](IconButton) `
|
|
|
3172
3171
|
}
|
|
3173
3172
|
`;
|
|
3174
3173
|
const NavToggle = (props) => {
|
|
3175
|
-
return (jsxRuntime.jsx(StyledToggle, Object.assign({}, props, { className: "toggle-navigation", isPrimary: true, size: "small" }, { children: props.isExpanded ? (jsxRuntime.jsx(SvgChevronLeftStroke, {
|
|
3174
|
+
return (jsxRuntime.jsx(StyledToggle, Object.assign({}, props, { className: "toggle-navigation", isPrimary: true, size: "small" }, { children: props.isExpanded ? (jsxRuntime.jsx(SvgChevronLeftStroke, {})) : (jsxRuntime.jsx(SvgChevronRightStroke, {})) })));
|
|
3176
3175
|
};
|
|
3177
3176
|
|
|
3178
3177
|
const UgNavItem$1 = styled__default["default"](reactChrome.NavItem) `
|
|
@@ -5055,47 +5054,47 @@ const Slider = (props) => {
|
|
|
5055
5054
|
};
|
|
5056
5055
|
Slider.Slide = Slide;
|
|
5057
5056
|
|
|
5058
|
-
const UgStep = styled__default["default"](reactAccordions.Stepper.Step) `
|
|
5059
|
-
svg {
|
|
5060
|
-
color: ${({ theme }) => theme.palette.green[700]};
|
|
5061
|
-
}
|
|
5057
|
+
const UgStep = styled__default["default"](reactAccordions.Stepper.Step) `
|
|
5058
|
+
svg {
|
|
5059
|
+
color: ${({ theme }) => theme.palette.green[700]};
|
|
5060
|
+
}
|
|
5062
5061
|
`;
|
|
5063
5062
|
const UgLabel = styled__default["default"](reactAccordions.Stepper.Label) ``;
|
|
5064
|
-
const UgStepper = styled__default["default"](reactAccordions.Stepper) `
|
|
5065
|
-
div[data-garden-id="accordions.step_icon"] {
|
|
5066
|
-
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
5067
|
-
color: ${({ theme }) => theme.palette.grey[800]};
|
|
5068
|
-
font-weight: bold;
|
|
5069
|
-
}
|
|
5070
|
-
|
|
5063
|
+
const UgStepper = styled__default["default"](reactAccordions.Stepper) `
|
|
5064
|
+
div[data-garden-id="accordions.step_icon"] {
|
|
5065
|
+
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
5066
|
+
color: ${({ theme }) => theme.palette.grey[800]};
|
|
5067
|
+
font-weight: bold;
|
|
5068
|
+
}
|
|
5069
|
+
|
|
5071
5070
|
${(props) => props.activeIndex !== undefined &&
|
|
5072
|
-
`
|
|
5073
|
-
${UgStep}:nth-child(${props.activeIndex + 1}) {
|
|
5074
|
-
|
|
5075
|
-
div[data-garden-id="accordions.step_icon"] {
|
|
5076
|
-
background-color: ${props.theme.palette.blue[600]};
|
|
5077
|
-
color: white;
|
|
5078
|
-
}
|
|
5079
|
-
|
|
5080
|
-
${UgLabel} {
|
|
5081
|
-
font-weight: 500;
|
|
5082
|
-
color: ${props.theme.palette.blue[600]};
|
|
5083
|
-
}
|
|
5084
|
-
}
|
|
5085
|
-
`}
|
|
5086
|
-
`;
|
|
5087
|
-
const UgContent = styled__default["default"](reactAccordions.Stepper.Content) `
|
|
5088
|
-
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.sm} ${theme.space.sm} 24px`};
|
|
5089
|
-
margin-top: 0;
|
|
5090
|
-
margin-bottom: 0;
|
|
5091
|
-
> div {
|
|
5092
|
-
color: ${({ theme }) => theme.palette.grey[600]};
|
|
5093
|
-
}
|
|
5071
|
+
`
|
|
5072
|
+
${UgStep}:nth-child(${props.activeIndex + 1}) {
|
|
5073
|
+
|
|
5074
|
+
div[data-garden-id="accordions.step_icon"] {
|
|
5075
|
+
background-color: ${props.theme.palette.blue[600]};
|
|
5076
|
+
color: white;
|
|
5077
|
+
}
|
|
5078
|
+
|
|
5079
|
+
${UgLabel} {
|
|
5080
|
+
font-weight: 500;
|
|
5081
|
+
color: ${props.theme.palette.blue[600]};
|
|
5082
|
+
}
|
|
5083
|
+
}
|
|
5084
|
+
`}
|
|
5085
|
+
`;
|
|
5086
|
+
const UgContent = styled__default["default"](reactAccordions.Stepper.Content) `
|
|
5087
|
+
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.sm} ${theme.space.sm} 24px`};
|
|
5088
|
+
margin-top: 0;
|
|
5089
|
+
margin-bottom: 0;
|
|
5090
|
+
> div {
|
|
5091
|
+
color: ${({ theme }) => theme.palette.grey[600]};
|
|
5092
|
+
}
|
|
5094
5093
|
`;
|
|
5095
|
-
const StyledAccordionHeader = styled__default["default"](Accordion.Header) `
|
|
5096
|
-
button, svg {
|
|
5097
|
-
padding: ${({ theme }) => `${theme.space.xs} ${theme.space.md}`};
|
|
5098
|
-
}
|
|
5094
|
+
const StyledAccordionHeader = styled__default["default"](Accordion.Header) `
|
|
5095
|
+
button, svg {
|
|
5096
|
+
padding: ${({ theme }) => `${theme.space.xs} ${theme.space.md}`};
|
|
5097
|
+
}
|
|
5099
5098
|
`;
|
|
5100
5099
|
/**
|
|
5101
5100
|
* A Stepper guides users through steps of a task in sequential order.
|
|
@@ -5156,7 +5155,7 @@ const Row = (props) => jsxRuntime.jsx(UgRow, Object.assign({}, props));
|
|
|
5156
5155
|
const Cell = (props) => jsxRuntime.jsx(UgCell, Object.assign({}, props));
|
|
5157
5156
|
const Caption = (props) => (jsxRuntime.jsx(reactTables.Caption, Object.assign({}, props)));
|
|
5158
5157
|
|
|
5159
|
-
const StyledAnimatedToggle = styled__default["default"]
|
|
5158
|
+
const StyledAnimatedToggle = styled__default["default"].div `
|
|
5160
5159
|
display: inline-block;
|
|
5161
5160
|
float: right;
|
|
5162
5161
|
`;
|
|
@@ -5193,16 +5192,8 @@ const UgGroupRow = styled__default["default"](reactTables.GroupRow) `
|
|
|
5193
5192
|
`;
|
|
5194
5193
|
const GroupRow = (props) => jsxRuntime.jsx(UgGroupRow, Object.assign({}, props));
|
|
5195
5194
|
const GroupRowComponent = (props) => {
|
|
5196
|
-
const toggleIconAnimation = reactSpring.useSpring({
|
|
5197
|
-
config: { duration: 120 },
|
|
5198
|
-
transform: props.group.items.length > 0
|
|
5199
|
-
? props.open
|
|
5200
|
-
? "rotate(180deg)"
|
|
5201
|
-
: "rotate(0deg)"
|
|
5202
|
-
: "rotate(0deg)",
|
|
5203
|
-
});
|
|
5204
5195
|
return (jsxRuntime.jsx(GroupRow, Object.assign({}, (props && props.group.items.length === 0 && { className: "empty" }), (props &&
|
|
5205
|
-
props.group.items.length > 0 && { onClick: props.handleToggle }), props, { children: jsxRuntime.jsxs(Cell, Object.assign({ colSpan: props.colSpan, className: props.open ? "open" : "closed" }, { children: [props.group.groupIcon && (jsxRuntime.jsx(StyledUgIcon, { size: 12, type: props.group.groupIcon })), jsxRuntime.jsxs(Label, Object.assign({ isRegular: true, className: "title" }, { children: [props.group.groupName, " ", jsxRuntime.jsxs("b", { children: ["(", props.group.items.length, ")"] })] })), jsxRuntime.jsx(StyledAnimatedToggle, Object.assign({ style:
|
|
5196
|
+
props.group.items.length > 0 && { onClick: props.handleToggle }), props, { children: jsxRuntime.jsxs(Cell, Object.assign({ colSpan: props.colSpan, className: props.open ? "open" : "closed" }, { children: [props.group.groupIcon && (jsxRuntime.jsx(StyledUgIcon, { size: 12, type: props.group.groupIcon })), jsxRuntime.jsxs(Label, Object.assign({ isRegular: true, className: "title" }, { children: [props.group.groupName, " ", jsxRuntime.jsxs("b", { children: ["(", props.group.items.length, ")"] })] })), jsxRuntime.jsx(StyledAnimatedToggle, Object.assign({ style: { transform: props.open ? "rotate(180deg)" : "none" } }, { children: jsxRuntime.jsx(SvgChevronDownStroke, {}) }))] })) })));
|
|
5206
5197
|
};
|
|
5207
5198
|
const AnimatedRow = styled__default["default"](Row) `
|
|
5208
5199
|
&.render {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ButtonArgs } from "./_types";
|
|
2
3
|
export declare const Default: {
|
|
3
4
|
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
@@ -75,7 +76,7 @@ export declare const Default: {
|
|
|
75
76
|
results?: number | undefined;
|
|
76
77
|
security?: string | undefined;
|
|
77
78
|
unselectable?: "on" | "off" | undefined;
|
|
78
|
-
inputMode?: "
|
|
79
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
79
80
|
is?: string | undefined;
|
|
80
81
|
'aria-activedescendant'?: string | undefined;
|
|
81
82
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -379,7 +380,7 @@ export declare const Basic: {
|
|
|
379
380
|
results?: number | undefined;
|
|
380
381
|
security?: string | undefined;
|
|
381
382
|
unselectable?: "on" | "off" | undefined;
|
|
382
|
-
inputMode?: "
|
|
383
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
383
384
|
is?: string | undefined;
|
|
384
385
|
'aria-activedescendant'?: string | undefined;
|
|
385
386
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -683,7 +684,7 @@ export declare const Primary: {
|
|
|
683
684
|
results?: number | undefined;
|
|
684
685
|
security?: string | undefined;
|
|
685
686
|
unselectable?: "on" | "off" | undefined;
|
|
686
|
-
inputMode?: "
|
|
687
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
687
688
|
is?: string | undefined;
|
|
688
689
|
'aria-activedescendant'?: string | undefined;
|
|
689
690
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -987,7 +988,7 @@ export declare const WithIcon: {
|
|
|
987
988
|
results?: number | undefined;
|
|
988
989
|
security?: string | undefined;
|
|
989
990
|
unselectable?: "on" | "off" | undefined;
|
|
990
|
-
inputMode?: "
|
|
991
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
991
992
|
is?: string | undefined;
|
|
992
993
|
'aria-activedescendant'?: string | undefined;
|
|
993
994
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TooltipArgs } from "./_types";
|
|
2
3
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TooltipArgs>;
|
|
3
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-svgr-beta",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"@zendeskgarden/react-tooltips": "^8.49.0",
|
|
60
60
|
"@zendeskgarden/react-typography": "^8.49.0",
|
|
61
61
|
"react-slick": "^0.29.0",
|
|
62
|
-
"react-spring": "^9.4.4",
|
|
63
62
|
"react-window": "^1.8.6",
|
|
64
63
|
"ua-parser-js": "^1.0.2"
|
|
65
64
|
},
|