@appquality/unguess-design-system 2.10.5 → 2.10.8
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,39 @@
|
|
|
1
|
+
# v2.10.8 (Thu May 05 2022)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `master`
|
|
4
|
+
|
|
5
|
+
- feat(contentcard): update content card padding ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v2.10.7 (Wed May 04 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- feat(card): add Container variant with different border-radius [#49](https://github.com/AppQuality/unguess-design-system/pull/49) ([@cannarocks](https://github.com/cannarocks))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v2.10.6 (Wed May 04 2022)
|
|
26
|
+
|
|
27
|
+
#### ⚠️ Pushed to `master`
|
|
28
|
+
|
|
29
|
+
- feat(palette): add `water` palette ([@cannarocks](https://github.com/cannarocks))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v2.10.5 (Wed May 04 2022)
|
|
2
38
|
|
|
3
39
|
#### ⚠️ Pushed to `master`
|
package/build/index.js
CHANGED
|
@@ -102,7 +102,7 @@ var palette = __assign(__assign({}, reactTheming.DEFAULT_THEME.palette), { black
|
|
|
102
102
|
talk: "#efc93d",
|
|
103
103
|
sell: "#c38f00",
|
|
104
104
|
}, grey: {
|
|
105
|
-
"100": "#
|
|
105
|
+
"100": "#F6F6F8",
|
|
106
106
|
"200": "#e9ebed",
|
|
107
107
|
"300": "#d8dcde",
|
|
108
108
|
"400": "#c2c8cc",
|
|
@@ -210,6 +210,13 @@ var palette = __assign(__assign({}, reactTheming.DEFAULT_THEME.palette), { black
|
|
|
210
210
|
"600": "#6a27b8",
|
|
211
211
|
M400: "#b072cc",
|
|
212
212
|
M600: "#9358b0",
|
|
213
|
+
}, water: {
|
|
214
|
+
100: "#D4FFF7",
|
|
215
|
+
200: "#ABEBDF",
|
|
216
|
+
300: "#6FD1BE",
|
|
217
|
+
600: "#2B8473",
|
|
218
|
+
700: "#206E6A",
|
|
219
|
+
800: "#0C4D5E",
|
|
213
220
|
} });
|
|
214
221
|
|
|
215
222
|
var hex2rgba = function (hex, alpha) {
|
|
@@ -236,8 +243,8 @@ var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), {
|
|
|
236
243
|
|
|
237
244
|
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600] }), palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
238
245
|
|
|
239
|
-
var GlobalStyle = styled.createGlobalStyle(templateObject_1$
|
|
240
|
-
var templateObject_1$
|
|
246
|
+
var GlobalStyle = styled.createGlobalStyle(templateObject_1$U || (templateObject_1$U = __makeTemplateObject(["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n \n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"], ["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n \n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"])), theme.palette.grey["200"], theme.palette.grey["200"], theme.palette.blue["200"], theme.palette.blue["200"], theme.fonts.system);
|
|
247
|
+
var templateObject_1$U;
|
|
241
248
|
|
|
242
249
|
/**
|
|
243
250
|
* Accordions are headers that can be expanded to reveal content or collapsed to hide it.
|
|
@@ -253,7 +260,7 @@ Accordion.Label = reactAccordions.Accordion.Label;
|
|
|
253
260
|
Accordion.Panel = reactAccordions.Accordion.Panel;
|
|
254
261
|
|
|
255
262
|
// import useWindowSize from "../../hooks/useWindowSize";
|
|
256
|
-
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$
|
|
263
|
+
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
257
264
|
return props.avatarType &&
|
|
258
265
|
props.avatarType !== "image" &&
|
|
259
266
|
"background: ".concat(props.backgroundColor || theme.gradients.dark, ";");
|
|
@@ -278,7 +285,7 @@ var Avatar = function (props) {
|
|
|
278
285
|
return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
|
|
279
286
|
};
|
|
280
287
|
Avatar.Text = UgAvatar.Text;
|
|
281
|
-
var templateObject_1$
|
|
288
|
+
var templateObject_1$T;
|
|
282
289
|
|
|
283
290
|
/**
|
|
284
291
|
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
@@ -299,7 +306,7 @@ var Breadcrumb = function (props) { return jsxRuntime.jsx(reactBreadcrumbs.Bread
|
|
|
299
306
|
*/
|
|
300
307
|
var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
|
|
301
308
|
|
|
302
|
-
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
309
|
+
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$S || (templateObject_1$S = __makeTemplateObject([""], [""])));
|
|
303
310
|
/**
|
|
304
311
|
* Buttons let users take action quickly.
|
|
305
312
|
* Use a Button to enable actions or decisions that are important to a user’s workflow.
|
|
@@ -311,7 +318,7 @@ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
|
311
318
|
var Button = function (props) { return jsxRuntime.jsx(UgButton, __assign({}, props)); };
|
|
312
319
|
Button.StartIcon = UgButton.StartIcon;
|
|
313
320
|
Button.EndIcon = UgButton.EndIcon;
|
|
314
|
-
var templateObject_1$
|
|
321
|
+
var templateObject_1$S;
|
|
315
322
|
|
|
316
323
|
/**
|
|
317
324
|
A Button group lets users make a selection from a set of options.
|
|
@@ -341,13 +348,32 @@ Used for this:
|
|
|
341
348
|
**/
|
|
342
349
|
var SplitButton = function (props) { return (jsxRuntime.jsx(reactButtons.SplitButton, __assign({}, props))); };
|
|
343
350
|
|
|
351
|
+
var ContentCard = styled__default["default"](reactNotifications.Well)(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"])), function (_a) {
|
|
352
|
+
var theme = _a.theme;
|
|
353
|
+
return theme.borderRadii.lg;
|
|
354
|
+
}, function (_a) {
|
|
355
|
+
var theme = _a.theme;
|
|
356
|
+
return theme.space.xxl;
|
|
357
|
+
}, function (_a) {
|
|
358
|
+
var theme = _a.theme;
|
|
359
|
+
return theme.palette.grey["200"];
|
|
360
|
+
}, function (_a) {
|
|
361
|
+
var isFloating = _a.isFloating, theme = _a.theme;
|
|
362
|
+
return !isFloating &&
|
|
363
|
+
"\n &:hover {\n box-shadow: ".concat(theme.shadows.boxShadow(theme), ";\n }");
|
|
364
|
+
});
|
|
344
365
|
/**
|
|
345
366
|
* A Card is a container that groups related content.
|
|
346
367
|
* <hr>
|
|
347
368
|
* Used for this:
|
|
348
369
|
- To group related content
|
|
349
370
|
*/
|
|
350
|
-
var Card = function (props) { return jsxRuntime.jsx(
|
|
371
|
+
var Card = function (props) { return jsxRuntime.jsx(ContentCard, __assign({}, props)); };
|
|
372
|
+
var ContainerCard = styled__default["default"](Card)(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), function (_a) {
|
|
373
|
+
var theme = _a.theme;
|
|
374
|
+
return theme.borderRadii.xl;
|
|
375
|
+
});
|
|
376
|
+
var templateObject_1$R, templateObject_2$i;
|
|
351
377
|
|
|
352
378
|
/**
|
|
353
379
|
* Tags let users categorize content using a keyword.
|
|
@@ -2385,6 +2411,7 @@ exports.Chrome = Chrome;
|
|
|
2385
2411
|
exports.Close = Close;
|
|
2386
2412
|
exports.Code = Code;
|
|
2387
2413
|
exports.Col = Col;
|
|
2414
|
+
exports.ContainerCard = ContainerCard;
|
|
2388
2415
|
exports.Content = Content;
|
|
2389
2416
|
exports.Counter = Counter;
|
|
2390
2417
|
exports.CursorPagination = CursorPagination;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { CardProps } from "./_types";
|
|
4
|
+
interface CardStoryProps extends CardProps {
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Default: Story<CardStoryProps>;
|
|
9
|
+
export declare const Floating: Story<CardStoryProps>;
|
|
10
|
+
declare const _default: ComponentMeta<import("styled-components").StyledComponent<(props: CardProps) => JSX.Element, any, {}, never>>;
|
|
11
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CardProps } from
|
|
2
|
+
import { CardProps } from "./_types";
|
|
3
3
|
/**
|
|
4
4
|
* A Card is a container that groups related content.
|
|
5
5
|
* <hr>
|
|
@@ -7,4 +7,5 @@ import { CardProps } from './_types';
|
|
|
7
7
|
- To group related content
|
|
8
8
|
*/
|
|
9
9
|
declare const Card: (props: CardProps) => JSX.Element;
|
|
10
|
-
|
|
10
|
+
declare const ContainerCard: import("styled-components").StyledComponent<(props: CardProps) => JSX.Element, any, {}, never>;
|
|
11
|
+
export { Card, ContainerCard };
|