@mrshmllw/smores-react 1.8.0 → 2.0.2
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/dist/Accordion/Accordion.js +6 -6
- package/dist/Accordion/Accordion.js.map +1 -1
- package/dist/ActionDropdown/ActionDropdown.js +4 -4
- package/dist/ActionDropdown/ActionDropdown.js.map +1 -1
- package/dist/ActionDropdown/ActionDropdown.stories.js +1 -1
- package/dist/ActionDropdown/ActionDropdown.stories.js.map +1 -1
- package/dist/ActionDropdown/Container.js +6 -6
- package/dist/ActionDropdown/Container.js.map +1 -1
- package/dist/ActionDropdown/List.js +3 -3
- package/dist/ActionDropdown/List.js.map +1 -1
- package/dist/ActionDropdown/__tests__/ActionDropdown.js +2 -2
- package/dist/ActionDropdown/__tests__/ActionDropdown.js.map +1 -1
- package/dist/ActionDropdown/__tests__/__snapshots__/ActionDropdown.js.snap +167 -0
- package/dist/Box/__tests__/__snapshots__/Box.js.snap +20 -0
- package/dist/Button/Button.js +23 -17
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Button.stories.js +2 -2
- package/dist/Button/Button.stories.js.map +1 -1
- package/dist/Button/LegacyButton.js +8 -8
- package/dist/Button/LegacyButton.js.map +1 -1
- package/dist/Button/__tests__/__snapshots__/Button.js.snap +46 -0
- package/dist/Card/Card.js +8 -8
- package/dist/Card/Card.js.map +1 -1
- package/dist/Card/__tests__/__snapshots__/Card.js.snap +24 -0
- package/dist/CheckBox/CheckBox.js +10 -8
- package/dist/CheckBox/CheckBox.js.map +1 -1
- package/dist/CheckBox/__tests__/__snapshots__/CheckBox.js.snap +20 -0
- package/dist/CheckBoxGroup/CheckBox.js +5 -5
- package/dist/CheckBoxGroup/CheckBox.js.map +1 -1
- package/dist/Chip/Chip.js +7 -7
- package/dist/Chip/Chip.js.map +1 -1
- package/dist/Chip/Chip.stories.js +1 -0
- package/dist/Chip/Chip.stories.js.map +1 -1
- package/dist/ConfirmationRadioButtons/Confirmation.js +5 -5
- package/dist/ConfirmationRadioButtons/Confirmation.js.map +1 -1
- package/dist/ConfirmationRadioButtons/RadioButtonStyled.js +3 -3
- package/dist/ConfirmationRadioButtons/RadioButtonStyled.js.map +1 -1
- package/dist/Datepicker/Datepicker.js +4 -4
- package/dist/Datepicker/Datepicker.js.map +1 -1
- package/dist/Datepicker/DatesList.js +3 -3
- package/dist/Datepicker/DatesList.js.map +1 -1
- package/dist/Divider/Divider.js +1 -1
- package/dist/Divider/Divider.js.map +1 -1
- package/dist/Dropdown/Dropdown.js +11 -11
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/__tests__/__snapshots__/Dropdown.js.snap +167 -0
- package/dist/Emoji/__tests__/__snapshots__/Emoji.js.snap +20 -0
- package/dist/Icon/Icon.js +4 -4
- package/dist/Icon/Icon.js.map +1 -1
- package/dist/Icon/Icon.stories.js +2 -2
- package/dist/Icon/Icon.stories.js.map +1 -1
- package/dist/Icon/__tests__/__snapshots__/Icon.js.snap +47 -0
- package/dist/IconWrapper/IconWrapper.js +2 -2
- package/dist/IconWrapper/IconWrapper.js.map +1 -1
- package/dist/IconWrapper/__tests__/__snapshots__/IconWrapper.js.snap +121 -0
- package/dist/LabelledText/LabelledText.js +1 -1
- package/dist/LabelledText/LabelledText.js.map +1 -1
- package/dist/LabelledText/__tests__/__snapshots__/LabelledText.js.snap +57 -0
- package/dist/Loader/Loader.js +3 -3
- package/dist/Loader/Loader.js.map +1 -1
- package/dist/Loader/Loader.stories.js +1 -1
- package/dist/Loader/Loader.stories.js.map +1 -1
- package/dist/Loader/__tests__/Loader.js +1 -1
- package/dist/Loader/__tests__/Loader.js.map +1 -1
- package/dist/Loader/__tests__/__snapshots__/Loader.js.snap +53 -0
- package/dist/Message/Message.js +4 -4
- package/dist/Message/Message.js.map +1 -1
- package/dist/Message/Message.stories.js +3 -3
- package/dist/Message/Message.stories.js.map +1 -1
- package/dist/Message/__tests__/__snapshots__/Message.js.snap +279 -0
- package/dist/Modal/Modal.js +6 -6
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/__tests__/__snapshots__/Modal.js.snap +208 -0
- package/dist/NumberInput/NumberInput.js +14 -14
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/__tests__/__snapshots__/NumberInput.js.snap +1398 -0
- package/dist/Pagination/Pagination.js +1 -1
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Pagination/__tests__/__snapshots__/Pagination.js.snap +273 -0
- package/dist/RadioButton/RadioButton.js +3 -3
- package/dist/RadioButton/RadioButton.js.map +1 -1
- package/dist/RadioButton/__tests__/__snapshots__/RadioButton.js.snap +146 -0
- package/dist/Row/Row.js +2 -2
- package/dist/Row/Row.js.map +1 -1
- package/dist/Row/Row.stories.js +2 -2
- package/dist/Row/Row.stories.js.map +1 -1
- package/dist/Row/__tests__/__snapshots__/Row.js.snap +96 -0
- package/dist/SearchInput/SearchInput.js +12 -13
- package/dist/SearchInput/SearchInput.js.map +1 -1
- package/dist/SearchInput/__tests__/__snapshots__/SearchInput.js.snap +146 -0
- package/dist/Tag/Tag.stories.js +2 -2
- package/dist/Tag/Tag.stories.js.map +1 -1
- package/dist/Tag/__tests__/__snapshots__/Tag.js.snap +54 -0
- package/dist/Text/Text.js +1 -1
- package/dist/Text/Text.js.map +1 -1
- package/dist/Text/Text.stories.js +1 -1
- package/dist/Text/Text.stories.js.map +1 -1
- package/dist/Text/__tests__/__snapshots__/Text.js.snap +34 -0
- package/dist/TextInput/TextInput.js +9 -9
- package/dist/TextInput/TextInput.js.map +1 -1
- package/dist/TextInput/__tests__/__snapshots__/TextInput.js.snap +74 -0
- package/dist/Textarea/Textarea.js +7 -7
- package/dist/Textarea/Textarea.js.map +1 -1
- package/dist/Textarea/__tests__/__snapshots__/Textarea.js.snap +271 -0
- package/dist/Toggle/Toggle.js +4 -4
- package/dist/Toggle/Toggle.js.map +1 -1
- package/dist/Toggle/__tests__/__snapshots__/Toggle.js.snap +70 -0
- package/dist/theme.d.ts +21 -51
- package/dist/theme.js +25 -61
- package/dist/theme.js.map +1 -1
- package/package.json +2 -1
package/dist/Loader/Loader.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import styled from 'styled-components';
|
3
3
|
import { theme } from '../theme';
|
4
|
-
export const Loader = ({ height, color = '
|
4
|
+
export const Loader = ({ height, color = 'primary' }) => (React.createElement(LoaderSvg, { viewBox: "0 0 60 32", height: height, color: color },
|
5
5
|
React.createElement("g", { transform: "translate(30,18.5455) translate(-30,-9)" },
|
6
6
|
React.createElement(MarshOne, { id: "Marshmallow1", d: "M73.999,81.9767L73.6592,70.6087C73.6352,69.8071,73.1892,69.0806,72.4916,68.707C71.1747,68.0014,69.0105,67.648,66.0001,67.6467C62.9894,67.648,60.8254,68.0014,59.5084,68.707C58.8109,69.0806,58.3648,69.8071,58.3408,70.6087L58.001,81.9767C57.983,82.5754,58.2138,83.1538,58.6366,83.5705C60.0408,84.9546,62.4906,85.6467,65.986,85.6467C65.9907,85.6467,65.9953,85.6467,66.0001,85.6467C66.0047,85.6467,66.0094,85.6467,66.014,85.6467C69.5095,85.6467,71.9593,84.9546,73.3634,83.5705C73.7863,83.1538,74.0169,82.5754,73.999,81.9767", transform: "translate(-58,-67.6467)" }),
|
7
7
|
React.createElement(MarshTwo, { id: "Marshmallow2", d: "M73.999,81.9767L73.6592,70.6087C73.6352,69.8071,73.1892,69.0806,72.4916,68.707C71.1747,68.0014,69.0105,67.648,66.0001,67.6467C62.9894,67.648,60.8254,68.0014,59.5084,68.707C58.8109,69.0806,58.3648,69.8071,58.3408,70.6087L58.001,81.9767C57.983,82.5754,58.2138,83.1538,58.6366,83.5705C60.0408,84.9546,62.4906,85.6467,65.986,85.6467C65.9907,85.6467,65.9953,85.6467,66.0001,85.6467C66.0047,85.6467,66.0094,85.6467,66.014,85.6467C69.5095,85.6467,71.9593,84.9546,73.3634,83.5705C73.7863,83.1538,74.0169,82.5754,73.999,81.9767", transform: "translate(-36,-67.6467)" }),
|
8
8
|
React.createElement(MarshThree, { id: "Marshmallow3", d: "M73.999,81.9767L73.6592,70.6087C73.6352,69.8071,73.1892,69.0806,72.4916,68.707C71.1747,68.0014,69.0105,67.648,66.0001,67.6467C62.9894,67.648,60.8254,68.0014,59.5084,68.707C58.8109,69.0806,58.3648,69.8071,58.3408,70.6087L58.001,81.9767C57.983,82.5754,58.2138,83.1538,58.6366,83.5705C60.0408,84.9546,62.4906,85.6467,65.986,85.6467C65.9907,85.6467,65.9953,85.6467,66.0001,85.6467C66.0047,85.6467,66.0094,85.6467,66.014,85.6467C69.5095,85.6467,71.9593,84.9546,73.3634,83.5705C73.7863,83.1538,74.0169,82.5754,73.999,81.9767", transform: "translate(-14,-67.6467)" }))));
|
9
9
|
const LoaderSvg = styled.svg `
|
10
|
-
height: ${p => p.height};
|
10
|
+
height: ${(p) => p.height};
|
11
11
|
|
12
12
|
path {
|
13
|
-
fill: ${p => theme.colors[p.color]};
|
13
|
+
fill: ${(p) => theme.colors[p.color]};
|
14
14
|
stroke: none;
|
15
15
|
fill-rule: evenodd;
|
16
16
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../src/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAahC,MAAM,CAAC,MAAM,MAAM,GAAc,CAAC,EAAE,MAAM,EAAE,KAAK,GAAG,
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../src/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAahC,MAAM,CAAC,MAAM,MAAM,GAA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"file":"Loader.stories.js","sourceRoot":"","sources":["../../src/Loader/Loader.stories.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,eAAe;IACb,KAAK,EAAE,QAAQ;IACf,SAAS,EAAE,MAAM;CAClB,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAA;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,OAAO,CAAC,IAAI,GAAG;IACb,MAAM,EAAE,EAAE;CACX,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE3C,UAAU,CAAC,IAAI,GAAG;IAChB,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"Loader.stories.js","sourceRoot":"","sources":["../../src/Loader/Loader.stories.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,eAAe;IACb,KAAK,EAAE,QAAQ;IACf,SAAS,EAAE,MAAM;CAClB,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAA;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,OAAO,CAAC,IAAI,GAAG;IACb,MAAM,EAAE,EAAE;CACX,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE3C,UAAU,CAAC,IAAI,GAAG;IAChB,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,WAAW;CACnB,CAAA"}
|
@@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
|
|
3
3
|
import 'jest-styled-components';
|
4
4
|
import { Loader } from '../Loader';
|
5
5
|
test('renders', () => {
|
6
|
-
const { container } = render(React.createElement(Loader, { color: "
|
6
|
+
const { container } = render(React.createElement(Loader, { color: "primary" }));
|
7
7
|
expect(container.firstChild).toMatchSnapshot();
|
8
8
|
});
|
9
9
|
//# sourceMappingURL=Loader.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/Loader/__tests__/Loader.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/Loader/__tests__/Loader.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;IACnB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,oBAAC,MAAM,IAAC,KAAK,EAAC,SAAS,GAAG,CAAC,CAAA;IACxD,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAA;AAChD,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`renders 1`] = `
|
4
|
+
.c0 path {
|
5
|
+
fill: #FF7695;
|
6
|
+
stroke: none;
|
7
|
+
fill-rule: evenodd;
|
8
|
+
}
|
9
|
+
|
10
|
+
.c1 {
|
11
|
+
-webkit-animation: Marshmallow1_t 1.6s linear infinite both, Marshmallow1_d 1.6s linear infinite both;
|
12
|
+
animation: Marshmallow1_t 1.6s linear infinite both, Marshmallow1_d 1.6s linear infinite both;
|
13
|
+
}
|
14
|
+
|
15
|
+
.c2 {
|
16
|
+
-webkit-animation: Marshmallow2_t 1.6s linear infinite both, Marshmallow2_d 1.6s linear infinite both;
|
17
|
+
animation: Marshmallow2_t 1.6s linear infinite both, Marshmallow2_d 1.6s linear infinite both;
|
18
|
+
}
|
19
|
+
|
20
|
+
.c3 {
|
21
|
+
-webkit-animation: Marshmallow3_t 1.6s linear infinite both, Marshmallow3_d 1.6s linear infinite both;
|
22
|
+
animation: Marshmallow3_t 1.6s linear infinite both, Marshmallow3_d 1.6s linear infinite both;
|
23
|
+
}
|
24
|
+
|
25
|
+
<svg
|
26
|
+
class="c0"
|
27
|
+
color="pink4"
|
28
|
+
viewBox="0 0 60 32"
|
29
|
+
>
|
30
|
+
<g
|
31
|
+
transform="translate(30,18.5455) translate(-30,-9)"
|
32
|
+
>
|
33
|
+
<path
|
34
|
+
class="c1"
|
35
|
+
d="M73.999,81.9767L73.6592,70.6087C73.6352,69.8071,73.1892,69.0806,72.4916,68.707C71.1747,68.0014,69.0105,67.648,66.0001,67.6467C62.9894,67.648,60.8254,68.0014,59.5084,68.707C58.8109,69.0806,58.3648,69.8071,58.3408,70.6087L58.001,81.9767C57.983,82.5754,58.2138,83.1538,58.6366,83.5705C60.0408,84.9546,62.4906,85.6467,65.986,85.6467C65.9907,85.6467,65.9953,85.6467,66.0001,85.6467C66.0047,85.6467,66.0094,85.6467,66.014,85.6467C69.5095,85.6467,71.9593,84.9546,73.3634,83.5705C73.7863,83.1538,74.0169,82.5754,73.999,81.9767"
|
36
|
+
id="Marshmallow1"
|
37
|
+
transform="translate(-58,-67.6467)"
|
38
|
+
/>
|
39
|
+
<path
|
40
|
+
class="c2"
|
41
|
+
d="M73.999,81.9767L73.6592,70.6087C73.6352,69.8071,73.1892,69.0806,72.4916,68.707C71.1747,68.0014,69.0105,67.648,66.0001,67.6467C62.9894,67.648,60.8254,68.0014,59.5084,68.707C58.8109,69.0806,58.3648,69.8071,58.3408,70.6087L58.001,81.9767C57.983,82.5754,58.2138,83.1538,58.6366,83.5705C60.0408,84.9546,62.4906,85.6467,65.986,85.6467C65.9907,85.6467,65.9953,85.6467,66.0001,85.6467C66.0047,85.6467,66.0094,85.6467,66.014,85.6467C69.5095,85.6467,71.9593,84.9546,73.3634,83.5705C73.7863,83.1538,74.0169,82.5754,73.999,81.9767"
|
42
|
+
id="Marshmallow2"
|
43
|
+
transform="translate(-36,-67.6467)"
|
44
|
+
/>
|
45
|
+
<path
|
46
|
+
class="c3"
|
47
|
+
d="M73.999,81.9767L73.6592,70.6087C73.6352,69.8071,73.1892,69.0806,72.4916,68.707C71.1747,68.0014,69.0105,67.648,66.0001,67.6467C62.9894,67.648,60.8254,68.0014,59.5084,68.707C58.8109,69.0806,58.3648,69.8071,58.3408,70.6087L58.001,81.9767C57.983,82.5754,58.2138,83.1538,58.6366,83.5705C60.0408,84.9546,62.4906,85.6467,65.986,85.6467C65.9907,85.6467,65.9953,85.6467,66.0001,85.6467C66.0047,85.6467,66.0094,85.6467,66.014,85.6467C69.5095,85.6467,71.9593,84.9546,73.3634,83.5705C73.7863,83.1538,74.0169,82.5754,73.999,81.9767"
|
48
|
+
id="Marshmallow3"
|
49
|
+
transform="translate(-14,-67.6467)"
|
50
|
+
/>
|
51
|
+
</g>
|
52
|
+
</svg>
|
53
|
+
`;
|
package/dist/Message/Message.js
CHANGED
@@ -5,7 +5,7 @@ import { Icon } from '../Icon';
|
|
5
5
|
import { theme } from '../theme';
|
6
6
|
export const Message = ({ className, children, type = 'info', alignIcon = 'center', backgroundColor, sizeSmall, hasBorder, borderColor, }) => (React.createElement(Wrapper, { className: className, type: type, backgroundColor: backgroundColor, sizeSmall: sizeSmall, hasBorder: hasBorder, borderColor: borderColor },
|
7
7
|
React.createElement(IconWrapper, { alignIcon: alignIcon },
|
8
|
-
React.createElement(Icon, { size: sizeSmall ? 24 : 32, render: type, color: type === 'warning' ? '
|
8
|
+
React.createElement(Icon, { size: sizeSmall ? 24 : 32, render: type, color: type === 'warning' ? 'error' : 'secondary' })),
|
9
9
|
children));
|
10
10
|
const IconWrapper = styled(Box) `
|
11
11
|
flex-shrink: 0;
|
@@ -17,17 +17,17 @@ const Wrapper = styled.div(({ type, backgroundColor, sizeSmall, hasBorder, borde
|
|
17
17
|
? backgroundColor
|
18
18
|
: type === 'warning'
|
19
19
|
? theme.colors.white
|
20
|
-
: theme.colors.
|
20
|
+
: theme.colors.background};
|
21
21
|
box-sizing: border-box;
|
22
22
|
${type === 'warning'
|
23
|
-
? `border: 1px solid ${theme.colors.
|
23
|
+
? `border: 1px solid ${theme.colors.error};`
|
24
24
|
: hasBorder && `border: 1px solid ${borderColor};`}
|
25
25
|
border-radius: 8px;
|
26
26
|
margin-bottom: 24px;
|
27
27
|
padding: 16px;
|
28
28
|
display: flex;
|
29
29
|
font-family: ${theme.font.system};
|
30
|
-
color: ${type === 'warning' ? theme.colors.
|
30
|
+
color: ${type === 'warning' ? theme.colors.error : theme.colors.secondary};
|
31
31
|
font-size: ${sizeSmall ? '12px' : '16px'};
|
32
32
|
|
33
33
|
span {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAehC,MAAM,CAAC,MAAM,OAAO,GAAqB,CAAC,EACxC,SAAS,EACT,QAAQ,EACR,IAAI,GAAG,MAAM,EACb,SAAS,GAAG,QAAQ,EACpB,eAAe,EACf,SAAS,EACT,SAAS,EACT,WAAW,GACZ,EAAE,EAAE,CAAC,CAC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AAK,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,GACjD,CACU;IAEb,QAAQ,CACD,CACX,CAAA;AAcD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAc;;gBAE7B,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS;CAC3C,CAAA;AAED,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CACxB,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;;wBAE/C,eAAe;IACjC,CAAC,CAAC,eAAe;IACjB,CAAC,CAAC,IAAI,KAAK,SAAS;QACpB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;QACpB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU;;MAEzB,IAAI,KAAK,SAAS;IAClB,CAAC,CAAC,qBAAqB,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG;IAC5C,CAAC,CAAC,SAAS,IAAI,qBAAqB,WAAW,GAAG;;;;;mBAKrC,KAAK,CAAC,IAAI,CAAC,MAAM;aACvB,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS;iBAC5D,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;;;;;GAKzC,CACF,CAAA"}
|
@@ -18,13 +18,13 @@ Warning.args = {
|
|
18
18
|
export const WarningBubbleSmall = Template.bind({});
|
19
19
|
WarningBubbleSmall.args = {
|
20
20
|
type: 'warning-bubble',
|
21
|
-
backgroundColor: theme.colors
|
21
|
+
backgroundColor: theme.colors.bgSecondary,
|
22
22
|
sizeSmall: true,
|
23
23
|
};
|
24
24
|
export const InfoBubbleSmall = Template.bind({});
|
25
25
|
InfoBubbleSmall.args = {
|
26
26
|
type: 'info',
|
27
|
-
backgroundColor: theme.colors
|
27
|
+
backgroundColor: theme.colors.bgSecondary,
|
28
28
|
sizeSmall: true,
|
29
29
|
};
|
30
30
|
export const CardWithBorder = Template.bind({});
|
@@ -33,6 +33,6 @@ CardWithBorder.args = {
|
|
33
33
|
alignIcon: 'flex-start',
|
34
34
|
backgroundColor: theme.colors.white,
|
35
35
|
hasBorder: true,
|
36
|
-
borderColor: theme.colors.
|
36
|
+
borderColor: theme.colors.secondary,
|
37
37
|
};
|
38
38
|
//# sourceMappingURL=Message.stories.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Message.stories.js","sourceRoot":"","sources":["../../src/Message/Message.stories.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,eAAe;IACb,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,OAAO;CACnB,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CACzB,oBAAC,OAAO,oBAAK,IAAI,sCAA4C,CAC9D,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAErC,IAAI,CAAC,IAAI,GAAG;IACV,IAAI,EAAE,MAAM;CACb,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,SAAS;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEnD,kBAAkB,CA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AAM,CAAC,WAAW;IACzC,SAAS,EAAE,IAAI;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE/C,cAAc,CAAC,IAAI,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;IACnC,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS;CACpC,CAAA"}
|
@@ -0,0 +1,279 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`default renders correctly 1`] = `
|
4
|
+
.c2 {
|
5
|
+
display: -webkit-box;
|
6
|
+
display: -webkit-flex;
|
7
|
+
display: -ms-flexbox;
|
8
|
+
display: flex;
|
9
|
+
-webkit-align-items: center;
|
10
|
+
-webkit-box-align: center;
|
11
|
+
-ms-flex-align: center;
|
12
|
+
align-items: center;
|
13
|
+
-webkit-box-pack: center;
|
14
|
+
-webkit-justify-content: center;
|
15
|
+
-ms-flex-pack: center;
|
16
|
+
justify-content: center;
|
17
|
+
width: 100%;
|
18
|
+
max-width: 32px;
|
19
|
+
height: 32px;
|
20
|
+
-webkit-transform: rotate(0deg);
|
21
|
+
-ms-transform: rotate(0deg);
|
22
|
+
transform: rotate(0deg);
|
23
|
+
margin-top: 0;
|
24
|
+
margin-right: 0;
|
25
|
+
margin-bottom: 0;
|
26
|
+
margin-left: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
.c1 {
|
30
|
+
-webkit-flex-shrink: 0;
|
31
|
+
-ms-flex-negative: 0;
|
32
|
+
flex-shrink: 0;
|
33
|
+
-webkit-align-self: center;
|
34
|
+
-ms-flex-item-align: center;
|
35
|
+
align-self: center;
|
36
|
+
}
|
37
|
+
|
38
|
+
.c0 {
|
39
|
+
-webkit-align-items: center;
|
40
|
+
-webkit-box-align: center;
|
41
|
+
-ms-flex-align: center;
|
42
|
+
align-items: center;
|
43
|
+
background-color: #ACB6D8;
|
44
|
+
box-sizing: border-box;
|
45
|
+
border-radius: 8px;
|
46
|
+
margin-bottom: 24px;
|
47
|
+
padding: 16px;
|
48
|
+
display: -webkit-box;
|
49
|
+
display: -webkit-flex;
|
50
|
+
display: -ms-flexbox;
|
51
|
+
display: flex;
|
52
|
+
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
53
|
+
color: #112035;
|
54
|
+
font-size: 16px;
|
55
|
+
}
|
56
|
+
|
57
|
+
.c0 span {
|
58
|
+
margin: 0 16px 0 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
<div>
|
62
|
+
<div
|
63
|
+
class="c0"
|
64
|
+
type="info"
|
65
|
+
>
|
66
|
+
<div
|
67
|
+
class="c1"
|
68
|
+
>
|
69
|
+
<span
|
70
|
+
class="c2"
|
71
|
+
color="blue7"
|
72
|
+
rotate="0"
|
73
|
+
size="32"
|
74
|
+
>
|
75
|
+
<svg
|
76
|
+
fill="none"
|
77
|
+
height="100%"
|
78
|
+
viewBox="0 0 24 24"
|
79
|
+
width="100%"
|
80
|
+
xmlns="http://www.w3.org/2000/svg"
|
81
|
+
>
|
82
|
+
<path
|
83
|
+
clip-rule="evenodd"
|
84
|
+
d="M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0zm-1 6.99a1 1 0 112 0c0 .553-.447 1.005-1 1.005-.553 0-1-.442-1-.995v-.01zM11 11a1 1 0 112 0v7a1 1 0 11-2 0v-7zm-9 1c0 5.514 4.486 10 10 10s10-4.486 10-10S17.514 2 12 2 2 6.486 2 12z"
|
85
|
+
fill="#112035"
|
86
|
+
fill-rule="evenodd"
|
87
|
+
/>
|
88
|
+
</svg>
|
89
|
+
</span>
|
90
|
+
</div>
|
91
|
+
This is an infomation message for the customer!
|
92
|
+
</div>
|
93
|
+
</div>
|
94
|
+
`;
|
95
|
+
|
96
|
+
exports[`info renders correctly 1`] = `
|
97
|
+
.c2 {
|
98
|
+
display: -webkit-box;
|
99
|
+
display: -webkit-flex;
|
100
|
+
display: -ms-flexbox;
|
101
|
+
display: flex;
|
102
|
+
-webkit-align-items: center;
|
103
|
+
-webkit-box-align: center;
|
104
|
+
-ms-flex-align: center;
|
105
|
+
align-items: center;
|
106
|
+
-webkit-box-pack: center;
|
107
|
+
-webkit-justify-content: center;
|
108
|
+
-ms-flex-pack: center;
|
109
|
+
justify-content: center;
|
110
|
+
width: 100%;
|
111
|
+
max-width: 32px;
|
112
|
+
height: 32px;
|
113
|
+
-webkit-transform: rotate(0deg);
|
114
|
+
-ms-transform: rotate(0deg);
|
115
|
+
transform: rotate(0deg);
|
116
|
+
margin-top: 0;
|
117
|
+
margin-right: 0;
|
118
|
+
margin-bottom: 0;
|
119
|
+
margin-left: 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
.c1 {
|
123
|
+
-webkit-flex-shrink: 0;
|
124
|
+
-ms-flex-negative: 0;
|
125
|
+
flex-shrink: 0;
|
126
|
+
-webkit-align-self: center;
|
127
|
+
-ms-flex-item-align: center;
|
128
|
+
align-self: center;
|
129
|
+
}
|
130
|
+
|
131
|
+
.c0 {
|
132
|
+
-webkit-align-items: center;
|
133
|
+
-webkit-box-align: center;
|
134
|
+
-ms-flex-align: center;
|
135
|
+
align-items: center;
|
136
|
+
background-color: #ACB6D8;
|
137
|
+
box-sizing: border-box;
|
138
|
+
border-radius: 8px;
|
139
|
+
margin-bottom: 24px;
|
140
|
+
padding: 16px;
|
141
|
+
display: -webkit-box;
|
142
|
+
display: -webkit-flex;
|
143
|
+
display: -ms-flexbox;
|
144
|
+
display: flex;
|
145
|
+
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
146
|
+
color: #112035;
|
147
|
+
font-size: 16px;
|
148
|
+
}
|
149
|
+
|
150
|
+
.c0 span {
|
151
|
+
margin: 0 16px 0 0;
|
152
|
+
}
|
153
|
+
|
154
|
+
<div>
|
155
|
+
<div
|
156
|
+
class="c0"
|
157
|
+
type="info"
|
158
|
+
>
|
159
|
+
<div
|
160
|
+
class="c1"
|
161
|
+
>
|
162
|
+
<span
|
163
|
+
class="c2"
|
164
|
+
color="blue7"
|
165
|
+
rotate="0"
|
166
|
+
size="32"
|
167
|
+
>
|
168
|
+
<svg
|
169
|
+
fill="none"
|
170
|
+
height="100%"
|
171
|
+
viewBox="0 0 24 24"
|
172
|
+
width="100%"
|
173
|
+
xmlns="http://www.w3.org/2000/svg"
|
174
|
+
>
|
175
|
+
<path
|
176
|
+
clip-rule="evenodd"
|
177
|
+
d="M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0zm-1 6.99a1 1 0 112 0c0 .553-.447 1.005-1 1.005-.553 0-1-.442-1-.995v-.01zM11 11a1 1 0 112 0v7a1 1 0 11-2 0v-7zm-9 1c0 5.514 4.486 10 10 10s10-4.486 10-10S17.514 2 12 2 2 6.486 2 12z"
|
178
|
+
fill="#112035"
|
179
|
+
fill-rule="evenodd"
|
180
|
+
/>
|
181
|
+
</svg>
|
182
|
+
</span>
|
183
|
+
</div>
|
184
|
+
This is a infomational message for the customer!
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
`;
|
188
|
+
|
189
|
+
exports[`warning renders correctly 1`] = `
|
190
|
+
.c2 {
|
191
|
+
display: -webkit-box;
|
192
|
+
display: -webkit-flex;
|
193
|
+
display: -ms-flexbox;
|
194
|
+
display: flex;
|
195
|
+
-webkit-align-items: center;
|
196
|
+
-webkit-box-align: center;
|
197
|
+
-ms-flex-align: center;
|
198
|
+
align-items: center;
|
199
|
+
-webkit-box-pack: center;
|
200
|
+
-webkit-justify-content: center;
|
201
|
+
-ms-flex-pack: center;
|
202
|
+
justify-content: center;
|
203
|
+
width: 100%;
|
204
|
+
max-width: 32px;
|
205
|
+
height: 32px;
|
206
|
+
-webkit-transform: rotate(0deg);
|
207
|
+
-ms-transform: rotate(0deg);
|
208
|
+
transform: rotate(0deg);
|
209
|
+
margin-top: 0;
|
210
|
+
margin-right: 0;
|
211
|
+
margin-bottom: 0;
|
212
|
+
margin-left: 0;
|
213
|
+
}
|
214
|
+
|
215
|
+
.c1 {
|
216
|
+
-webkit-flex-shrink: 0;
|
217
|
+
-ms-flex-negative: 0;
|
218
|
+
flex-shrink: 0;
|
219
|
+
-webkit-align-self: center;
|
220
|
+
-ms-flex-item-align: center;
|
221
|
+
align-self: center;
|
222
|
+
}
|
223
|
+
|
224
|
+
.c0 {
|
225
|
+
-webkit-align-items: center;
|
226
|
+
-webkit-box-align: center;
|
227
|
+
-ms-flex-align: center;
|
228
|
+
align-items: center;
|
229
|
+
background-color: #ffffff;
|
230
|
+
box-sizing: border-box;
|
231
|
+
border: 1px solid #AB1D20;
|
232
|
+
border-radius: 8px;
|
233
|
+
margin-bottom: 24px;
|
234
|
+
padding: 16px;
|
235
|
+
display: -webkit-box;
|
236
|
+
display: -webkit-flex;
|
237
|
+
display: -ms-flexbox;
|
238
|
+
display: flex;
|
239
|
+
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
240
|
+
color: #AB1D20;
|
241
|
+
font-size: 16px;
|
242
|
+
}
|
243
|
+
|
244
|
+
.c0 span {
|
245
|
+
margin: 0 16px 0 0;
|
246
|
+
}
|
247
|
+
|
248
|
+
<div>
|
249
|
+
<div
|
250
|
+
class="c0"
|
251
|
+
type="warning"
|
252
|
+
>
|
253
|
+
<div
|
254
|
+
class="c1"
|
255
|
+
>
|
256
|
+
<span
|
257
|
+
class="c2"
|
258
|
+
color="pink8"
|
259
|
+
rotate="0"
|
260
|
+
size="32"
|
261
|
+
>
|
262
|
+
<svg
|
263
|
+
fill="none"
|
264
|
+
height="100%"
|
265
|
+
viewBox="0 0 25 24"
|
266
|
+
width="100%"
|
267
|
+
xmlns="http://www.w3.org/2000/svg"
|
268
|
+
>
|
269
|
+
<path
|
270
|
+
d="M12.001 6a1 1 0 00-1 1v6a1 1 0 102 0V7a1 1 0 00-1-1zm0 10.005a1.003 1.003 0 000 2.005 1 1 0 001-1V17a.995.995 0 00-1-.995zm11.42-.503l-7.64-13.316A4.31 4.31 0 0012.001 0a4.31 4.31 0 00-3.78 2.186L.581 15.502a4.288 4.288 0 00.01 4.327A4.313 4.313 0 004.36 22h15.28a4.313 4.313 0 003.771-2.171 4.288 4.288 0 00.01-4.327zm-1.739 3.324A2.333 2.333 0 0119.642 20H4.361a2.331 2.331 0 01-2.042-1.174 2.306 2.306 0 01-.005-2.328l7.64-13.316A2.332 2.332 0 0112.001 2c.856 0 1.621.441 2.046 1.182l7.64 13.316c.418.73.417 1.6-.005 2.328z"
|
271
|
+
fill="#AB1D20"
|
272
|
+
/>
|
273
|
+
</svg>
|
274
|
+
</span>
|
275
|
+
</div>
|
276
|
+
This is a warning message for the customer!
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
`;
|
package/dist/Modal/Modal.js
CHANGED
@@ -9,10 +9,10 @@ export const Modal = ({ title = '', icon = '', children, showModal = false, hand
|
|
9
9
|
React.createElement(Container, { drawer: drawer, width: width || '460px', className: containerClass },
|
10
10
|
React.createElement(Box, { flex: true, alignItems: "flex-start", justifyContent: "space-between", mb: "8px" },
|
11
11
|
React.createElement(TitleElements, { flex: true, direction: "column" },
|
12
|
-
icon !== '' && (React.createElement(Icon, { render: icon, size: 42, color: "
|
12
|
+
icon !== '' && (React.createElement(Icon, { render: icon, size: 42, color: "secondary", mb: "16px" })),
|
13
13
|
React.createElement(Text, { tag: "h2", typo: "header-small", align: "left" }, title)),
|
14
14
|
cross && (React.createElement(IconContainer, { onClick: handleClick },
|
15
|
-
React.createElement(Icon, { render: "cross", color: "
|
15
|
+
React.createElement(Icon, { render: "cross", color: "secondary", size: 32 })))),
|
16
16
|
React.createElement(Box, { flex: true, direction: "column" }, children))));
|
17
17
|
const Wrapper = styled(Box)(({ showModal }) => css `
|
18
18
|
display: ${showModal ? 'flex' : 'none'};
|
@@ -26,7 +26,7 @@ const Wrapper = styled(Box)(({ showModal }) => css `
|
|
26
26
|
`);
|
27
27
|
const Overlay = styled.div `
|
28
28
|
position: fixed;
|
29
|
-
background: ${theme.colors.
|
29
|
+
background: ${theme.colors.secondary};
|
30
30
|
opacity: 0.4;
|
31
31
|
height: calc(100vh);
|
32
32
|
width: 100%;
|
@@ -37,7 +37,7 @@ const Overlay = styled.div `
|
|
37
37
|
const Container = styled.div(({ drawer, width }) => css `
|
38
38
|
background: ${theme.colors.white};
|
39
39
|
z-index: 999;
|
40
|
-
border: 1px solid ${theme.colors.
|
40
|
+
border: 1px solid ${theme.colors.outline};
|
41
41
|
box-sizing: border-box;
|
42
42
|
border-radius: 8px;
|
43
43
|
padding: 24px;
|
@@ -62,12 +62,12 @@ const Container = styled.div(({ drawer, width }) => css `
|
|
62
62
|
`);
|
63
63
|
const IconContainer = styled.div `
|
64
64
|
cursor: pointer;
|
65
|
-
background: ${theme.colors.
|
65
|
+
background: ${theme.colors.background};
|
66
66
|
border-radius: 32px;
|
67
67
|
margin-right: 8px;
|
68
68
|
|
69
69
|
&:hover {
|
70
|
-
background: ${theme.colors.
|
70
|
+
background: ${theme.colors.background};
|
71
71
|
}
|
72
72
|
|
73
73
|
svg {
|
package/dist/Modal/Modal.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,OAAO,EAAE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