@mrshmllw/smores-react 2.1.18 → 2.1.21

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.
Files changed (63) hide show
  1. package/dist/ActionDropdown/__tests__/__snapshots__/ActionDropdown.js.snap +167 -0
  2. package/dist/Box/__tests__/__snapshots__/Box.js.snap +20 -0
  3. package/dist/Button/Button.js +2 -0
  4. package/dist/Button/Button.js.map +1 -1
  5. package/dist/Button/__tests__/__snapshots__/Button.js.snap +46 -0
  6. package/dist/Card/__tests__/__snapshots__/Card.js.snap +24 -0
  7. package/dist/CheckBox/CheckBox.js +3 -0
  8. package/dist/CheckBox/CheckBox.js.map +1 -1
  9. package/dist/CheckBox/__tests__/__snapshots__/CheckBox.js.snap +20 -0
  10. package/dist/CheckBoxGroup/CheckBoxGroup.js +5 -4
  11. package/dist/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
  12. package/dist/Chip/Chip.js +4 -1
  13. package/dist/Chip/Chip.js.map +1 -1
  14. package/dist/ConfirmationRadioButtons/Confirmation.d.ts +0 -1
  15. package/dist/ConfirmationRadioButtons/Confirmation.js +8 -19
  16. package/dist/ConfirmationRadioButtons/Confirmation.js.map +1 -1
  17. package/dist/ConfirmationRadioButtons/Confirmation.stories.d.ts +1 -1
  18. package/dist/ConfirmationRadioButtons/Confirmation.stories.js +3 -4
  19. package/dist/ConfirmationRadioButtons/Confirmation.stories.js.map +1 -1
  20. package/dist/Dropdown/__tests__/__snapshots__/Dropdown.js.snap +167 -0
  21. package/dist/Emoji/__tests__/__snapshots__/Emoji.js.snap +20 -0
  22. package/dist/Icon/__tests__/__snapshots__/Icon.js.snap +47 -0
  23. package/dist/IconWrapper/__tests__/__snapshots__/IconWrapper.js.snap +121 -0
  24. package/dist/LabelledText/__tests__/__snapshots__/LabelledText.js.snap +57 -0
  25. package/dist/Link/Link.d.ts +17 -0
  26. package/dist/Link/Link.js +70 -0
  27. package/dist/Link/Link.js.map +1 -0
  28. package/dist/Link/Link.stories.d.ts +14 -0
  29. package/dist/Link/Link.stories.js +22 -0
  30. package/dist/Link/Link.stories.js.map +1 -0
  31. package/dist/Link/index.d.ts +1 -0
  32. package/dist/Link/index.js +2 -0
  33. package/dist/Link/index.js.map +1 -0
  34. package/dist/Loader/__tests__/__snapshots__/Loader.js.snap +53 -0
  35. package/dist/Message/__tests__/__snapshots__/Message.js.snap +279 -0
  36. package/dist/Modal/__tests__/__snapshots__/Modal.js.snap +208 -0
  37. package/dist/NumberInput/__tests__/__snapshots__/NumberInput.js.snap +1398 -0
  38. package/dist/Pagination/__tests__/__snapshots__/Pagination.js.snap +273 -0
  39. package/dist/RadioButton/RadioButton.js +11 -6
  40. package/dist/RadioButton/RadioButton.js.map +1 -1
  41. package/dist/RadioButton/__tests__/__snapshots__/RadioButton.js.snap +146 -0
  42. package/dist/Row/__tests__/__snapshots__/Row.js.snap +96 -0
  43. package/dist/SearchInput/__tests__/__snapshots__/SearchInput.js.snap +146 -0
  44. package/dist/Tag/__tests__/Tag.js +1 -1
  45. package/dist/Tag/__tests__/Tag.js.map +1 -1
  46. package/dist/Tag/__tests__/__snapshots__/Tag.js.snap +54 -0
  47. package/dist/Text/Text.js +4 -2
  48. package/dist/Text/Text.js.map +1 -1
  49. package/dist/Text/__tests__/__snapshots__/Text.js.snap +34 -0
  50. package/dist/TextInput/__tests__/__snapshots__/TextInput.js.snap +74 -0
  51. package/dist/Textarea/__tests__/__snapshots__/Textarea.js.snap +271 -0
  52. package/dist/Toggle/Toggle.js +3 -0
  53. package/dist/Toggle/Toggle.js.map +1 -1
  54. package/dist/Toggle/__tests__/__snapshots__/Toggle.js.snap +70 -0
  55. package/dist/colors.stories.js +2 -0
  56. package/dist/colors.stories.js.map +1 -1
  57. package/dist/theme.d.ts +2 -0
  58. package/dist/theme.js +2 -0
  59. package/dist/theme.js.map +1 -1
  60. package/dist/utils/focusOutline.d.ts +3 -0
  61. package/dist/utils/focusOutline.js +11 -0
  62. package/dist/utils/focusOutline.js.map +1 -0
  63. package/package.json +3 -3
@@ -0,0 +1,167 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c4 {
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: 24px;
19
+ height: 24px;
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
+ .c0 {
30
+ display: -webkit-box;
31
+ display: -webkit-flex;
32
+ display: -ms-flexbox;
33
+ display: flex;
34
+ -webkit-flex-direction: column;
35
+ -ms-flex-direction: column;
36
+ flex-direction: column;
37
+ height: 44px;
38
+ width: 100%;
39
+ margin: 0;
40
+ padding: 0;
41
+ }
42
+
43
+ .c1 {
44
+ width: 100%;
45
+ position: relative;
46
+ }
47
+
48
+ .c2 {
49
+ width: 100%;
50
+ height: 32px;
51
+ padding-right: 24px;
52
+ background-color: #ffffff;
53
+ border: none;
54
+ border-bottom: 1px solid #D2D2D2;
55
+ border-radius: 0;
56
+ font-size: 16px;
57
+ cursor: pointer;
58
+ -webkit-appearance: none;
59
+ -moz-appearance: none;
60
+ appearance: none;
61
+ }
62
+
63
+ .c2:disabled {
64
+ cursor: not-allowed;
65
+ opacity: 0.5;
66
+ }
67
+
68
+ .c2:not(:focus):invalid {
69
+ color: #D2D2D2;
70
+ }
71
+
72
+ .c2:hover,
73
+ .c2:valid,
74
+ .c2:focus,
75
+ .c2:focus-visible,
76
+ .c2:checked {
77
+ outline: none;
78
+ border-color: #9E9E9E;
79
+ }
80
+
81
+ .c3 {
82
+ position: absolute;
83
+ top: 50%;
84
+ z-index: 1;
85
+ right: 0;
86
+ pointer-events: none;
87
+ -webkit-transform: translateY(-50%);
88
+ -ms-transform: translateY(-50%);
89
+ transform: translateY(-50%);
90
+ }
91
+
92
+ <div
93
+ class="c0"
94
+ >
95
+ <div
96
+ class="c1"
97
+ >
98
+ <select
99
+ class="c2"
100
+ required=""
101
+ >
102
+ <option
103
+ hidden=""
104
+ value=""
105
+ />
106
+ <option
107
+ value="Monday"
108
+ >
109
+ Monday
110
+ </option>
111
+ <option
112
+ value="Tuesday"
113
+ >
114
+ Tuesday
115
+ </option>
116
+ <option
117
+ value="Wednesday"
118
+ >
119
+ Wednesday
120
+ </option>
121
+ <option
122
+ value="Thursday"
123
+ >
124
+ Thursday
125
+ </option>
126
+ <option
127
+ value="Friday"
128
+ >
129
+ Friday
130
+ </option>
131
+ <option
132
+ value="Saturday"
133
+ >
134
+ Saturday
135
+ </option>
136
+ <option
137
+ value="Sunday"
138
+ >
139
+ Sunday
140
+ </option>
141
+ </select>
142
+ <div
143
+ class="c3"
144
+ >
145
+ <span
146
+ class="c4"
147
+ color="grey4"
148
+ rotate="0"
149
+ size="24"
150
+ >
151
+ <svg
152
+ fill="none"
153
+ height="100%"
154
+ viewBox="0 0 24 24"
155
+ width="100%"
156
+ xmlns="http://www.w3.org/2000/svg"
157
+ >
158
+ <path
159
+ d="M19.66 8.248a1 1 0 00-1.412.095L12 15.482l-6.248-7.14a1 1 0 10-1.504 1.317l7 8a.995.995 0 001.504 0l7-8a1 1 0 00-.093-1.411z"
160
+ fill="#D2D2D2"
161
+ />
162
+ </svg>
163
+ </span>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ `;
@@ -0,0 +1,20 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c0 {
5
+ font-size: 24px;
6
+ margin-top: 0;
7
+ margin-right: 0;
8
+ margin-bottom: 0;
9
+ margin-left: 0;
10
+ }
11
+
12
+ <span
13
+ aria-label="wink"
14
+ class="c0"
15
+ role="img"
16
+ size="24"
17
+ >
18
+ 😉
19
+ </span>
20
+ `;
@@ -0,0 +1,47 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c0 {
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
+ <span
30
+ class="c0"
31
+ color="pink"
32
+ rotate="0"
33
+ size="32"
34
+ >
35
+ <svg
36
+ fill="none"
37
+ height="100%"
38
+ viewBox="0 0 24 24"
39
+ width="100%"
40
+ xmlns="http://www.w3.org/2000/svg"
41
+ >
42
+ <path
43
+ d="M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10a1 1 0 100-2c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8c0 1.103-.897 2-2 2s-2-.897-2-2c0-2.206-1.794-4-4-4s-4 1.794-4 4 1.794 4 4 4c1.2 0 2.266-.542 3-1.382.734.84 1.8 1.382 3 1.382 2.206 0 4-1.794 4-4 0-5.514-4.486-10-10-10zm0 12c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2z"
44
+ />
45
+ </svg>
46
+ </span>
47
+ `;
@@ -0,0 +1,121 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c0 {
5
+ position: relative;
6
+ width: -webkit-fit-content;
7
+ width: -moz-fit-content;
8
+ width: fit-content;
9
+ }
10
+
11
+ .c2 {
12
+ position: absolute;
13
+ width: 100%;
14
+ max-width: 16px;
15
+ height: 16px;
16
+ top: auto;
17
+ right: auto;
18
+ bottom: auto;
19
+ left: auto;
20
+ }
21
+
22
+ .c1 {
23
+ display: -webkit-box;
24
+ display: -webkit-flex;
25
+ display: -ms-flexbox;
26
+ display: flex;
27
+ -webkit-align-items: center;
28
+ -webkit-box-align: center;
29
+ -ms-flex-align: center;
30
+ align-items: center;
31
+ -webkit-box-pack: center;
32
+ -webkit-justify-content: center;
33
+ -ms-flex-pack: center;
34
+ justify-content: center;
35
+ width: 100%;
36
+ max-width: 24px;
37
+ height: 24px;
38
+ -webkit-transform: rotate(0deg);
39
+ -ms-transform: rotate(0deg);
40
+ transform: rotate(0deg);
41
+ margin-top: 0;
42
+ margin-right: 0;
43
+ margin-bottom: 0;
44
+ margin-left: 0;
45
+ }
46
+
47
+ <div
48
+ class="c0"
49
+ >
50
+ <span
51
+ class="c1"
52
+ color="blue7"
53
+ rotate="0"
54
+ size="24"
55
+ >
56
+ <svg
57
+ fill="none"
58
+ height="100%"
59
+ viewBox="0 0 24 24"
60
+ width="100%"
61
+ xmlns="http://www.w3.org/2000/svg"
62
+ >
63
+ <path
64
+ clip-rule="evenodd"
65
+ d="M12 12a1 1 0 100 2 1 1 0 000-2zm-3 1a3 3 0 116 0 3 3 0 01-6 0z"
66
+ fill="#112035"
67
+ fill-rule="evenodd"
68
+ />
69
+ <path
70
+ clip-rule="evenodd"
71
+ d="M12.95 13.309a1 1 0 011.261-.642l4.755 1.545a1 1 0 11-.618 1.902l-4.755-1.545a1 1 0 01-.642-1.26zM16.702 6.528a1 1 0 01.221 1.397l-2.938 4.045a1 1 0 01-1.618-1.176l2.938-4.045a1 1 0 011.397-.221zM7.298 6.528a1 1 0 011.397.221l2.938 4.045a1 1 0 01-1.618 1.176L7.077 7.925a1 1 0 01.221-1.397zM11.05 13.309a1 1 0 01-.643 1.26l-4.755 1.545a1 1 0 01-.618-1.902l4.755-1.545a1 1 0 011.26.642z"
72
+ fill="#112035"
73
+ fill-rule="evenodd"
74
+ />
75
+ <path
76
+ clip-rule="evenodd"
77
+ d="M17.707 11.146a6 6 0 00-11.413 3.708 5.973 5.973 0 001.42 2.347 1 1 0 01-1.428 1.4 7.974 7.974 0 01-1.894-3.129m13.315-4.326a6.002 6.002 0 01-1.421 6.056 1 1 0 101.43 1.398 8 8 0 10-13.324-3.128"
78
+ fill="#112035"
79
+ fill-rule="evenodd"
80
+ />
81
+ <path
82
+ d="M1 22h22"
83
+ stroke="#112035"
84
+ stroke-linecap="round"
85
+ stroke-linejoin="round"
86
+ stroke-miterlimit="10"
87
+ stroke-width="2"
88
+ />
89
+ <path
90
+ clip-rule="evenodd"
91
+ d="M0 13C0 6.373 5.373 1 12 1s12 5.373 12 12c0 4.065-2.027 7.65-5.113 9.818a1 1 0 01-.575.182H5.687a1 1 0 01-.575-.182C2.027 20.65 0 17.065 0 13zM12 3C6.477 3 2 7.477 2 13a9.977 9.977 0 004.012 8h11.976A9.975 9.975 0 0022 13c0-5.523-4.477-10-10-10z"
92
+ fill="#112035"
93
+ fill-rule="evenodd"
94
+ />
95
+ </svg>
96
+ </span>
97
+ <div
98
+ class="c2"
99
+ r="auto"
100
+ size="16"
101
+ >
102
+ <svg
103
+ fill="none"
104
+ height="100%"
105
+ viewBox="0 0 16 16"
106
+ width="100%"
107
+ >
108
+ <circle
109
+ cx="8"
110
+ cy="8"
111
+ fill="#55D6AA"
112
+ r="8"
113
+ />
114
+ <path
115
+ d="M12.3203 4.61579C12.1068 4.43879 11.7928 4.46829 11.6158 4.67979L6.9033 10.3348L4.2773 8.58429C4.0468 8.43029 3.7368 8.49279 3.5838 8.72279C3.4303 8.95229 3.4923 9.26329 3.7223 9.41629L6.7223 11.4163C6.8073 11.4723 6.9038 11.4998 6.9993 11.4998C7.1433 11.4998 7.2853 11.4378 7.3843 11.3198L12.3843 5.31979C12.5608 5.10779 12.5318 4.79229 12.3203 4.61579V4.61579Z"
116
+ fill="white"
117
+ />
118
+ </svg>
119
+ </div>
120
+ </div>
121
+ `;
@@ -0,0 +1,57 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c1 {
5
+ font-size: 8px;
6
+ line-height: 100%;
7
+ font-weight: 700;
8
+ text-transform: uppercase;
9
+ -webkit-letter-spacing: 0.75px;
10
+ -moz-letter-spacing: 0.75px;
11
+ -ms-letter-spacing: 0.75px;
12
+ letter-spacing: 0.75px;
13
+ margin: 0;
14
+ padding: 0;
15
+ color: #636768;
16
+ text-align: left;
17
+ cursor: inherit;
18
+ -webkit-letter-spacing: 0.15px;
19
+ -moz-letter-spacing: 0.15px;
20
+ -ms-letter-spacing: 0.15px;
21
+ letter-spacing: 0.15px;
22
+ }
23
+
24
+ .c0 {
25
+ display: -webkit-box;
26
+ display: -webkit-flex;
27
+ display: -ms-flexbox;
28
+ display: flex;
29
+ -webkit-flex-direction: column;
30
+ -ms-flex-direction: column;
31
+ flex-direction: column;
32
+ }
33
+
34
+ .c0 label {
35
+ margin-bottom: 8px;
36
+ }
37
+
38
+ @media (min-width:768px) {
39
+ .c1 {
40
+ font-size: 10px;
41
+ }
42
+ }
43
+
44
+ <div
45
+ class="c0"
46
+ >
47
+ <label
48
+ class="c1"
49
+ color="grey8"
50
+ cursor="inherit"
51
+ title=""
52
+ >
53
+ Name
54
+ </label>
55
+ Hideo Kojima
56
+ </div>
57
+ `;
@@ -0,0 +1,17 @@
1
+ import { FC, MouseEventHandler, ReactNode } from 'react';
2
+ export declare type LinkProps = {
3
+ className?: string;
4
+ href: string;
5
+ onClick?: MouseEventHandler;
6
+ openInNewTab?: boolean;
7
+ children?: ReactNode;
8
+ download?: boolean;
9
+ };
10
+ export declare const Link: FC<LinkProps>;
11
+ /**
12
+ * Internal utility to override styling in other components (see Text)
13
+ * @internal
14
+ */
15
+ export declare const linkStyleOverride: ({ color }: {
16
+ color: string;
17
+ }) => import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1,70 @@
1
+ import React from 'react';
2
+ import styled, { css } from 'styled-components';
3
+ import { darken } from 'polished';
4
+ import { focusOutline } from '../utils/focusOutline';
5
+ import { theme } from '../theme';
6
+ import { Icon } from '../Icon';
7
+ export const Link = ({ className, href, onClick, openInNewTab, download, children, }) => {
8
+ return (React.createElement(LinkWrapper, Object.assign({ href: href, className: className, onClick: onClick, download: download }, (openInNewTab && {
9
+ rel: 'noopener noreferrer',
10
+ target: '_blank',
11
+ })),
12
+ children,
13
+ openInNewTab && (React.createElement(StyledIcon, { render: "new-window", size: 12, color: "primary" }))));
14
+ };
15
+ const LinkWrapper = styled.a `
16
+ ${focusOutline()}
17
+ display: inline-flex;
18
+ flex-direction: row;
19
+
20
+ font-size: 14px;
21
+ font-weight: ${theme.font.weight.medium};
22
+ line-height: 14px;
23
+ text-decoration: underline;
24
+ color: ${theme.colors.primary};
25
+
26
+ background: none;
27
+ cursor: pointer;
28
+
29
+ &:hover {
30
+ color: ${darken(0.1, theme.colors.primary)};
31
+
32
+ path {
33
+ fill: ${darken(0.1, theme.colors.primary)};
34
+ }
35
+ }
36
+
37
+ &:active {
38
+ color: ${theme.colors.secondary};
39
+
40
+ path {
41
+ fill: ${theme.colors.secondary};
42
+ }
43
+ }
44
+ `;
45
+ /**
46
+ * Internal utility to override styling in other components (see Text)
47
+ * @internal
48
+ */
49
+ export const linkStyleOverride = ({ color }) => css `
50
+ & ${LinkWrapper} {
51
+ color: ${color};
52
+
53
+ path {
54
+ fill: ${color};
55
+ }
56
+
57
+ &:hover {
58
+ color: ${darken(0.1, color)};
59
+
60
+ path {
61
+ fill: ${darken(0.1, color)};
62
+ }
63
+ }
64
+ }
65
+ `;
66
+ const StyledIcon = styled(Icon) `
67
+ margin-left: 4px;
68
+ margin-top: 3px;
69
+ `;
70
+ //# sourceMappingURL=Link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.js","sourceRoot":"","sources":["../../src/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAC/D,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAW9B,MAAM,CAAC,MAAM,IAAI,GAAkB,CAAC,EAClC,SAAS,EACT,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,WAAW,kBACV,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IACd,CAAC,YAAY,IAAI;QACnB,GAAG,EAAE,qBAAqB;QAC1B,MAAM,EAAE,QAAQ;KACjB,CAAC;QAED,QAAQ;QACR,YAAY,IAAI,CACf,oBAAC,UAAU,IAAC,MAAM,EAAC,YAAY,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,SAAS,GAAG,CAC7D,CACW,CACf,CAAA;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAA;IACxB,YAAY,EAAE;;;;;iBAKD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;;WAG9B,KAAK,CAAC,MAAM,CAAC,OAAO;;;;;;aAMlB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;;;cAGhC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;;;;;aAKlC,KAAK,CAAC,MAAM,CAAC,SAAS;;;cAGrB,KAAK,CAAC,MAAM,CAAC,SAAS;;;CAGnC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,GAAG,CAAA;MAChE,WAAW;aACJ,KAAK;;;cAGJ,KAAK;;;;eAIJ,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC;;;gBAGjB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC;;;;CAIjC,CAAA;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;CAG9B,CAAA"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { LinkProps } from './Link';
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.FC<LinkProps>;
6
+ argTypes: {
7
+ onClick: {
8
+ action: string;
9
+ };
10
+ };
11
+ };
12
+ export default _default;
13
+ export declare const Playground: any;
14
+ export declare const InParagraph: any;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { Text } from '../Text';
3
+ import { Link } from './Link';
4
+ export default {
5
+ title: 'Link',
6
+ component: Link,
7
+ argTypes: { onClick: { action: 'clicked' } },
8
+ };
9
+ const linkArgs = {
10
+ href: 'https://www.google.com',
11
+ openInNewTab: true,
12
+ children: 'Google link',
13
+ };
14
+ export const Playground = Link.bind({});
15
+ Playground.args = linkArgs;
16
+ const ParagraphDemo = (props) => (React.createElement(Text, { tag: "p", color: "success" },
17
+ "Lorem Ipsum is simply dummy text of the printing and typesetting industry, more details ",
18
+ React.createElement(Link, Object.assign({}, props)),
19
+ ". Lorem Ipsum has been the industrys standard dummy text ever since the 1500s."));
20
+ export const InParagraph = ParagraphDemo.bind({});
21
+ InParagraph.args = Object.assign(Object.assign({}, linkArgs), { href: 'https://en.wikipedia.org/wiki/Lorem_ipsum', children: 'here' });
22
+ //# sourceMappingURL=Link.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.stories.js","sourceRoot":"","sources":["../../src/Link/Link.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AAExC,eAAe;IACb,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;CAC7C,CAAA;AAED,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,wBAAwB;IAC9B,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,aAAa;CACxB,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAA;AAE1B,MAAM,aAAa,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,CAC1C,oBAAC,IAAI,IAAC,GAAG,EAAC,GAAG,EAAC,KAAK,EAAC,SAAS;;IAEd,oBAAC,IAAI,oBAAK,KAAK,EAAI;qFAE3B,CACR,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjD,WAAW,CAAC,IAAI,mCACX,QAAQ,KACX,IAAI,EAAE,2CAA2C,EACjD,QAAQ,EAAE,MAAM,GACjB,CAAA"}
@@ -0,0 +1 @@
1
+ export { Link, LinkProps } from './Link';
@@ -0,0 +1,2 @@
1
+ export { Link } from './Link';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Link/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,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
+ `;