@mailstep/design-system 0.6.77 → 0.6.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.6.77",
3
+ "version": "0.6.78",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ closeToast, title, text, type, autoClose }: import("../Toast").CustomToastProps) => JSX.Element;
6
+ tags: string[];
7
+ argTypes: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Info: Story;
12
+ export declare const Success: Story;
13
+ export declare const Error: Story;
14
+ export declare const Warning: Story;
@@ -0,0 +1,36 @@
1
+ import Toast from '../Toast';
2
+ var meta = {
3
+ title: 'Elements/Toast',
4
+ component: Toast,
5
+ tags: ['autodocs'],
6
+ argTypes: {}
7
+ };
8
+ export default meta;
9
+ export var Info = {
10
+ args: {
11
+ type: 'info',
12
+ title: 'Title of info toast',
13
+ text: 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ac leo pretium faucibus. Aenean placerat. In convallis. Ut tempus purus at lorem. Pellentesque arcu. '
14
+ }
15
+ };
16
+ export var Success = {
17
+ args: {
18
+ type: 'success',
19
+ title: 'Title of success toast',
20
+ text: 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ac leo pretium faucibus. Aenean placerat. In convallis. Ut tempus purus at lorem. Pellentesque arcu. '
21
+ }
22
+ };
23
+ export var Error = {
24
+ args: {
25
+ type: 'error',
26
+ title: 'Title of error toast',
27
+ text: 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ac leo pretium faucibus. Aenean placerat. In convallis. Ut tempus purus at lorem. Pellentesque arcu. '
28
+ }
29
+ };
30
+ export var Warning = {
31
+ args: {
32
+ type: 'warning',
33
+ title: 'Title of warning toast',
34
+ text: 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ac leo pretium faucibus. Aenean placerat. In convallis. Ut tempus purus at lorem. Pellentesque arcu. '
35
+ }
36
+ };
@@ -6,7 +6,7 @@ import styled, { css, keyframes, th } from '@xstyled/styled-components';
6
6
  export var Title = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: block;\n margin-bottom: 5px;\n line-height: 18px;\n font-weight: 700;\n color: ", ";\n"], ["\n display: block;\n margin-bottom: 5px;\n line-height: 18px;\n font-weight: 700;\n color: ", ";\n"])), th('colors.blue2'));
7
7
  export var Text = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: block;\n font-size: 12px;\n line-height: 18px;\n font-weight: 500;\n color: ", ";\n"], ["\n display: block;\n font-size: 12px;\n line-height: 18px;\n font-weight: 500;\n color: ", ";\n"])), th('colors.gray1'));
8
8
  export var ContentWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
9
- export var CloseWrapper = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: 15px;\n\n svg {\n cursor: pointer;\n }\n"], ["\n display: flex;\n align-items: center;\n margin-left: 15px;\n\n svg {\n cursor: pointer;\n }\n"])));
9
+ export var CloseWrapper = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n margin-left: 15px;\n\n svg {\n cursor: pointer;\n }\n"], ["\n display: flex;\n align-items: flex-start;\n margin-left: 15px;\n\n svg {\n cursor: pointer;\n }\n"])));
10
10
  var timerAnimation = keyframes(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n to {\n transform: scaleX(0)\n }\n"], ["\n to {\n transform: scaleX(0)\n }\n"])));
11
11
  var after = function (autoClose) { return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:after {\n position: absolute;\n bottom: 0;\n left: 0;\n content: '';\n height: 4px;\n width: 100%;\n transform-origin: left center;\n animation: ", " ", "ms linear;\n border-radius: ", ";\n background-color: ", ";\n }\n"], ["\n &:after {\n position: absolute;\n bottom: 0;\n left: 0;\n content: '';\n height: 4px;\n width: 100%;\n transform-origin: left center;\n animation: ", " ", "ms linear;\n border-radius: ", ";\n background-color: ", ";\n }\n"])), timerAnimation, autoClose, th.radius('lg'), th.color('lightGray5')); };
12
12
  export var Container = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n position: relative;\n background-color: white;\n border-radius: ", ";\n box-shadow: ", ";\n padding: 10px;\n\n @media ", " {\n font-size: 14px;\n }\n\n &:before {\n position: absolute;\n top: 5px;\n bottom: 5px;\n left: 5px;\n content: '';\n width: 4px;\n ", ";\n border-radius: ", ";\n background-color: ", ";\n }\n\n ", ";\n"], ["\n display: flex;\n position: relative;\n background-color: white;\n border-radius: ", ";\n box-shadow: ", ";\n padding: 10px;\n\n @media ", " {\n font-size: 14px;\n }\n\n &:before {\n position: absolute;\n top: 5px;\n bottom: 5px;\n left: 5px;\n content: '';\n width: 4px;\n ", ";\n border-radius: ", ";\n background-color: ", ";\n }\n\n ", ";\n"])), th.radius('lg'), th.shadow('cornerDialogShadow'), '(max-width: 576px)', function (_a) {
package/ui/index.es.js CHANGED
@@ -52785,7 +52785,7 @@ const WSe = /* @__PURE__ */ Ra(jSe), HSe = ct`
52785
52785
  justify-content: space-between;
52786
52786
  `, TEe = $.span`
52787
52787
  display: flex;
52788
- align-items: center;
52788
+ align-items: flex-start;
52789
52789
  margin-left: 15px;
52790
52790
 
52791
52791
  svg {
package/ui/index.umd.js CHANGED
@@ -4273,7 +4273,7 @@ ${q.current.stack}
4273
4273
  justify-content: space-between;
4274
4274
  `,WIe=$.span`
4275
4275
  display: flex;
4276
- align-items: center;
4276
+ align-items: flex-start;
4277
4277
  margin-left: 15px;
4278
4278
 
4279
4279
  svg {