@mrshmllw/smores-react 2.1.24 → 2.1.25
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/README.md +2 -1
- package/dist/ActionDropdown/ActionDropdown.d.ts +1 -3
- package/dist/ActionDropdown/ActionDropdown.js.map +1 -1
- package/dist/Button/Button.js +12 -4
- package/dist/Button/Button.js.map +1 -1
- package/dist/CheckBox/CheckBox.d.ts +1 -1
- package/dist/CheckBox/CheckBox.js +10 -6
- package/dist/CheckBox/CheckBox.js.map +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/CheckBox/index.js.map +1 -1
- package/dist/CheckBoxGroup/CheckBox.js +1 -1
- package/dist/ConfirmationRadioButtons/Confirmation.d.ts +2 -1
- package/dist/ConfirmationRadioButtons/Confirmation.js +9 -2
- package/dist/ConfirmationRadioButtons/Confirmation.js.map +1 -1
- package/dist/ConfirmationRadioButtons/Confirmation.stories.d.ts +1 -0
- package/dist/ConfirmationRadioButtons/Confirmation.stories.js +8 -0
- package/dist/ConfirmationRadioButtons/Confirmation.stories.js.map +1 -1
- package/dist/Datepicker/Datepicker.js +2 -3
- package/dist/Datepicker/Datepicker.js.map +1 -1
- package/dist/Dropdown/Dropdown.d.ts +5 -5
- package/dist/Dropdown/Dropdown.js +5 -2
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.stories.d.ts +7 -4
- package/dist/Dropdown/Dropdown.stories.js +9 -0
- package/dist/Dropdown/Dropdown.stories.js.map +1 -1
- package/dist/Message/Message.d.ts +3 -0
- package/dist/Message/Message.js +14 -5
- package/dist/Message/Message.js.map +1 -1
- package/dist/Message/Message.stories.js +1 -1
- package/dist/Message/Message.stories.js.map +1 -1
- package/dist/NumberInput/NumberInput.d.ts +1 -3
- package/dist/NumberInput/NumberInput.js +3 -1
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +9 -5
- package/dist/RadioButton/RadioButton.js.map +1 -1
- package/dist/SearchInput/SearchInput.d.ts +1 -2
- package/dist/SearchInput/SearchInput.js +3 -1
- package/dist/SearchInput/SearchInput.js.map +1 -1
- package/dist/SupportMessage/Collection.d.ts +2 -0
- package/dist/SupportMessage/Collection.js +40 -0
- package/dist/SupportMessage/Collection.js.map +1 -0
- package/dist/SupportMessage/SupportMessage.d.ts +10 -0
- package/dist/SupportMessage/SupportMessage.js +59 -0
- package/dist/SupportMessage/SupportMessage.js.map +1 -0
- package/dist/SupportMessage/SupportMessage.stories.d.ts +9 -0
- package/dist/SupportMessage/SupportMessage.stories.js +17 -0
- package/dist/SupportMessage/SupportMessage.stories.js.map +1 -0
- package/dist/SupportMessage/SupportMessage.test.d.ts +1 -0
- package/dist/SupportMessage/SupportMessage.test.js +30 -0
- package/dist/SupportMessage/SupportMessage.test.js.map +1 -0
- package/dist/SupportMessage/index.d.ts +1 -0
- package/dist/SupportMessage/index.js +2 -0
- package/dist/SupportMessage/index.js.map +1 -0
- package/dist/TextInput/TextInput.d.ts +5 -15
- package/dist/TextInput/TextInput.js +5 -2
- package/dist/TextInput/TextInput.js.map +1 -1
- package/dist/TextInput/TextInput.stories.d.ts +3 -37
- package/dist/TextInput/TextInput.stories.js +12 -0
- package/dist/TextInput/TextInput.stories.js.map +1 -1
- package/dist/Textarea/Textarea.d.ts +3 -3
- package/dist/Textarea/Textarea.js +5 -2
- package/dist/Textarea/Textarea.js.map +1 -1
- package/dist/Textarea/Textarea.stories.d.ts +1 -0
- package/dist/Textarea/Textarea.stories.js +10 -0
- package/dist/Textarea/Textarea.stories.js.map +1 -1
- package/dist/Toggle/Toggle.d.ts +1 -1
- package/dist/Toggle/Toggle.stories.d.ts +1 -1
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +2 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/utils/deprecated.d.ts +9 -0
- package/dist/utils/deprecated.js +30 -0
- package/dist/utils/deprecated.js.map +1 -0
- package/dist/utils/id.d.ts +2 -0
- package/dist/utils/id.js +13 -0
- package/dist/utils/id.js.map +1 -0
- package/dist/utils/id.test.d.ts +1 -0
- package/dist/utils/id.test.js +30 -0
- package/dist/utils/id.test.js.map +1 -0
- package/package.json +7 -3
- package/dist/ActionDropdown/__tests__/__snapshots__/ActionDropdown.js.snap +0 -167
- package/dist/Box/__tests__/__snapshots__/Box.js.snap +0 -20
- package/dist/Button/__tests__/__snapshots__/Button.js.snap +0 -46
- package/dist/Card/__tests__/__snapshots__/Card.js.snap +0 -24
- package/dist/CheckBox/__tests__/__snapshots__/CheckBox.js.snap +0 -20
- package/dist/Dropdown/__tests__/__snapshots__/Dropdown.js.snap +0 -167
- package/dist/Emoji/__tests__/__snapshots__/Emoji.js.snap +0 -20
- package/dist/Icon/__tests__/__snapshots__/Icon.js.snap +0 -47
- package/dist/IconWrapper/__tests__/__snapshots__/IconWrapper.js.snap +0 -121
- package/dist/LabelledText/__tests__/__snapshots__/LabelledText.js.snap +0 -57
- package/dist/Loader/__tests__/__snapshots__/Loader.js.snap +0 -53
- package/dist/Message/__tests__/__snapshots__/Message.js.snap +0 -279
- package/dist/Modal/__tests__/__snapshots__/Modal.js.snap +0 -208
- package/dist/NumberInput/__tests__/__snapshots__/NumberInput.js.snap +0 -1398
- package/dist/Pagination/__tests__/__snapshots__/Pagination.js.snap +0 -273
- package/dist/RadioButton/__tests__/__snapshots__/RadioButton.js.snap +0 -146
- package/dist/Row/__tests__/__snapshots__/Row.js.snap +0 -96
- package/dist/SearchInput/__tests__/__snapshots__/SearchInput.js.snap +0 -146
- package/dist/Tag/__tests__/__snapshots__/Tag.js.snap +0 -54
- package/dist/Text/__tests__/__snapshots__/Text.js.snap +0 -34
- package/dist/TextInput/__tests__/__snapshots__/TextInput.js.snap +0 -74
- package/dist/Textarea/__tests__/__snapshots__/Textarea.js.snap +0 -271
- package/dist/Toggle/__tests__/__snapshots__/Toggle.js.snap +0 -70
@@ -0,0 +1,30 @@
|
|
1
|
+
import { useEffect } from 'react';
|
2
|
+
const env = process.env.REACT_APP_NODE_ENV || process.env.ENV;
|
3
|
+
export const isLocal = env === 'local';
|
4
|
+
const stripUndefinedProps = (props) => {
|
5
|
+
const propKeys = Object.keys(props);
|
6
|
+
return propKeys.reduce((acc, key) => {
|
7
|
+
if (props[key] !== undefined) {
|
8
|
+
acc[key] = props[key];
|
9
|
+
}
|
10
|
+
return acc;
|
11
|
+
}, {});
|
12
|
+
};
|
13
|
+
export const useDeprecatedWarning = ({ enabled = true, title, message, componentProps, }) => {
|
14
|
+
useEffect(() => {
|
15
|
+
if (isLocal && enabled) {
|
16
|
+
const logs = [
|
17
|
+
`%c[Deprecated] ${title}`,
|
18
|
+
'font-weight:bold;',
|
19
|
+
'\n',
|
20
|
+
'\n',
|
21
|
+
message,
|
22
|
+
];
|
23
|
+
if (componentProps) {
|
24
|
+
logs.push('\n', '\n', 'Component props:', stripUndefinedProps(componentProps));
|
25
|
+
}
|
26
|
+
console.warn(...logs);
|
27
|
+
}
|
28
|
+
}, [enabled]);
|
29
|
+
};
|
30
|
+
//# sourceMappingURL=deprecated.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deprecated.js","sourceRoot":"","sources":["../../src/utils/deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAA;AAE7D,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,KAAK,OAAO,CAAA;AAEtC,MAAM,mBAAmB,GAAG,CAAC,KAA8B,EAAE,EAAE;IAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAEnC,OAAO,QAAQ,CAAC,MAAM,CAA0B,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC3D,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;YAC5B,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;SACtB;QACD,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CAAA;AACR,CAAC,CAAA;AASD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,OAAO,GAAG,IAAI,EACd,KAAK,EACL,OAAO,EACP,cAAc,GACa,EAAQ,EAAE;IACrC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,IAAI,OAAO,EAAE;YACtB,MAAM,IAAI,GAAU;gBAClB,kBAAkB,KAAK,EAAE;gBACzB,mBAAmB;gBACnB,IAAI;gBACJ,IAAI;gBACJ,OAAO;aACR,CAAA;YAED,IAAI,cAAc,EAAE;gBAClB,IAAI,CAAC,IAAI,CACP,IAAI,EACJ,IAAI,EACJ,kBAAkB,EAClB,mBAAmB,CAAC,cAAc,CAAC,CACpC,CAAA;aACF;YAED,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAA;SACtB;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;AACf,CAAC,CAAA"}
|
package/dist/utils/id.js
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import { useMemo } from 'react';
|
2
|
+
let idCount = 0;
|
3
|
+
export const smoresIdPrefix = 'MM_SMORES';
|
4
|
+
const createId = () => {
|
5
|
+
const id = `${smoresIdPrefix}_${idCount}`;
|
6
|
+
idCount += 1;
|
7
|
+
return id;
|
8
|
+
};
|
9
|
+
export const useUniqueId = (id) => {
|
10
|
+
const returnedId = useMemo(() => id || createId(), [id]);
|
11
|
+
return returnedId;
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=id.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,IAAI,OAAO,GAAG,CAAC,CAAA;AAEf,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAA;AAEzC,MAAM,QAAQ,GAAG,GAAW,EAAE;IAC5B,MAAM,EAAE,GAAG,GAAG,cAAc,IAAI,OAAO,EAAE,CAAA;IACzC,OAAO,IAAI,CAAC,CAAA;IAEZ,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAW,EAAE,EAAE;IACzC,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IAExD,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
import { renderHook } from '@testing-library/react-hooks';
|
11
|
+
import { smoresIdPrefix, useUniqueId } from './id';
|
12
|
+
describe('useUniqueId', () => {
|
13
|
+
it('should persist the same id across render', () => __awaiter(void 0, void 0, void 0, function* () {
|
14
|
+
const hook = renderHook(() => useUniqueId());
|
15
|
+
expect(hook.result.current).toBe(`${smoresIdPrefix}_0`);
|
16
|
+
hook.rerender();
|
17
|
+
expect(hook.result.current).toBe(`${smoresIdPrefix}_0`);
|
18
|
+
}));
|
19
|
+
it('should have different id if called from different instance', () => __awaiter(void 0, void 0, void 0, function* () {
|
20
|
+
const hook1 = renderHook(() => useUniqueId());
|
21
|
+
const hook2 = renderHook(() => useUniqueId());
|
22
|
+
expect(hook1.result.current).not.toBe(hook2.result.current);
|
23
|
+
}));
|
24
|
+
it('should keep to provided id if present', () => __awaiter(void 0, void 0, void 0, function* () {
|
25
|
+
const someRandomId = 'someRandomId';
|
26
|
+
const hook = renderHook(() => useUniqueId(someRandomId));
|
27
|
+
expect(hook.result.current).toBe(someRandomId);
|
28
|
+
}));
|
29
|
+
});
|
30
|
+
//# sourceMappingURL=id.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"id.test.js","sourceRoot":"","sources":["../../src/utils/id.test.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEzD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AAElD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,0CAA0C,EAAE,GAAS,EAAE;QACxD,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;QAE5C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,cAAc,IAAI,CAAC,CAAA;QACvD,IAAI,CAAC,QAAQ,EAAE,CAAA;QACf,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,cAAc,IAAI,CAAC,CAAA;IACzD,CAAC,CAAA,CAAC,CAAA;IAEF,EAAE,CAAC,4DAA4D,EAAE,GAAS,EAAE;QAC1E,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;QAC7C,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;QAE7C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC7D,CAAC,CAAA,CAAC,CAAA;IAEF,EAAE,CAAC,uCAAuC,EAAE,GAAS,EAAE;QACrD,MAAM,YAAY,GAAG,cAAc,CAAA;QACnC,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;QAExD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IAChD,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mrshmllw/smores-react",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.25",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"description": "Collection of React components used by Marshmallow Technology",
|
6
6
|
"keywords": [
|
@@ -39,10 +39,14 @@
|
|
39
39
|
"@storybook/storybook-deployer": "^2.8.7",
|
40
40
|
"@testing-library/jest-dom": "^5.11.4",
|
41
41
|
"@testing-library/react": "^12.0.0",
|
42
|
-
"@
|
42
|
+
"@testing-library/react-hooks": "^8.0.0",
|
43
|
+
"@types/jest": "^28.1.1",
|
44
|
+
"@types/node": "^17.0.35",
|
43
45
|
"@types/react": "^17.0.0",
|
44
46
|
"@types/react-dom": "^17.0.9",
|
45
47
|
"@types/styled-components": "^5.1.3",
|
48
|
+
"@types/testing-library__jest-dom": "^5.14.3",
|
49
|
+
"@types/testing-library__react": "^10.2.0",
|
46
50
|
"@typescript-eslint/eslint-plugin": "^4.3.0",
|
47
51
|
"@typescript-eslint/parser": "^4.3.0",
|
48
52
|
"babel-eslint": "^10.1.0",
|
@@ -57,7 +61,7 @@
|
|
57
61
|
"jest": "^28.0.3",
|
58
62
|
"jest-environment-jsdom": "^28.1.0",
|
59
63
|
"jest-styled-components": "^7.0.3",
|
60
|
-
"lint-staged": "^
|
64
|
+
"lint-staged": "^13.0.0",
|
61
65
|
"prettier": "^2.1.2",
|
62
66
|
"storybook-addon-performance": "^0.16.1"
|
63
67
|
},
|
@@ -1,167 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`renders 1`] = `
|
4
|
-
.c3 {
|
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
|
-
.c5 {
|
30
|
-
padding: 0;
|
31
|
-
margin: 0;
|
32
|
-
max-height: 188px;
|
33
|
-
}
|
34
|
-
|
35
|
-
.c6 {
|
36
|
-
padding: 16px 24px;
|
37
|
-
text-align: left;
|
38
|
-
overflow: hidden;
|
39
|
-
white-space: nowrap;
|
40
|
-
text-overflow: ellipsis;
|
41
|
-
box-sizing: border-box;
|
42
|
-
font-size: 14px;
|
43
|
-
cursor: pointer;
|
44
|
-
color: #112035;
|
45
|
-
border-bottom: 1px solid #E5E5E5;
|
46
|
-
}
|
47
|
-
|
48
|
-
.c6:hover {
|
49
|
-
background-color: #E5E5E5;
|
50
|
-
}
|
51
|
-
|
52
|
-
.c6:last-child {
|
53
|
-
border-bottom: none;
|
54
|
-
}
|
55
|
-
|
56
|
-
.c1 {
|
57
|
-
color: #ffffff;
|
58
|
-
background-color: #EA9C56;
|
59
|
-
position: relative;
|
60
|
-
width: 100%;
|
61
|
-
height: 48px;
|
62
|
-
display: -webkit-box;
|
63
|
-
display: -webkit-flex;
|
64
|
-
display: -ms-flexbox;
|
65
|
-
display: flex;
|
66
|
-
-webkit-align-items: center;
|
67
|
-
-webkit-box-align: center;
|
68
|
-
-ms-flex-align: center;
|
69
|
-
align-items: center;
|
70
|
-
-webkit-box-pack: justify;
|
71
|
-
-webkit-justify-content: space-between;
|
72
|
-
-ms-flex-pack: justify;
|
73
|
-
justify-content: space-between;
|
74
|
-
text-align: center;
|
75
|
-
border-radius: 8px;
|
76
|
-
padding: 16px 16px 14px;
|
77
|
-
box-sizing: border-box;
|
78
|
-
-webkit-user-select: none;
|
79
|
-
-moz-user-select: none;
|
80
|
-
-ms-user-select: none;
|
81
|
-
user-select: none;
|
82
|
-
}
|
83
|
-
|
84
|
-
.c2 {
|
85
|
-
font-size: 14px;
|
86
|
-
white-space: nowrap;
|
87
|
-
overflow: hidden;
|
88
|
-
text-overflow: ellipsis;
|
89
|
-
}
|
90
|
-
|
91
|
-
.c0 {
|
92
|
-
position: relative;
|
93
|
-
display: block;
|
94
|
-
width: 210px;
|
95
|
-
height: 48px;
|
96
|
-
text-align: center;
|
97
|
-
cursor: pointer;
|
98
|
-
outline: none;
|
99
|
-
border-radius: 8px;
|
100
|
-
}
|
101
|
-
|
102
|
-
.c4 {
|
103
|
-
position: absolute;
|
104
|
-
width: 100%;
|
105
|
-
border-radius: 8px;
|
106
|
-
margin-top: 8px;
|
107
|
-
display: none;
|
108
|
-
max-height: 48px;
|
109
|
-
background-color: #ffffff;
|
110
|
-
border: 1px solid #E5E5E5;
|
111
|
-
overflow-y: hidden;
|
112
|
-
z-index: 2;
|
113
|
-
-webkit-transition: all 0.2s ease-in-out;
|
114
|
-
transition: all 0.2s ease-in-out;
|
115
|
-
}
|
116
|
-
|
117
|
-
<div
|
118
|
-
class="c0"
|
119
|
-
>
|
120
|
-
<div
|
121
|
-
class="c1"
|
122
|
-
>
|
123
|
-
<span
|
124
|
-
class="c2"
|
125
|
-
>
|
126
|
-
High alert
|
127
|
-
</span>
|
128
|
-
<span
|
129
|
-
class="c3"
|
130
|
-
color="white"
|
131
|
-
rotate="0"
|
132
|
-
size="24"
|
133
|
-
>
|
134
|
-
<svg
|
135
|
-
fill="none"
|
136
|
-
height="100%"
|
137
|
-
viewBox="0 0 24 24"
|
138
|
-
width="100%"
|
139
|
-
xmlns="http://www.w3.org/2000/svg"
|
140
|
-
>
|
141
|
-
<path
|
142
|
-
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"
|
143
|
-
fill="#ffffff"
|
144
|
-
/>
|
145
|
-
</svg>
|
146
|
-
</span>
|
147
|
-
</div>
|
148
|
-
<div
|
149
|
-
class="c4"
|
150
|
-
>
|
151
|
-
<ul
|
152
|
-
class="c5"
|
153
|
-
>
|
154
|
-
<li
|
155
|
-
class="c6"
|
156
|
-
>
|
157
|
-
High alert
|
158
|
-
</li>
|
159
|
-
<li
|
160
|
-
class="c6"
|
161
|
-
>
|
162
|
-
Good zone
|
163
|
-
</li>
|
164
|
-
</ul>
|
165
|
-
</div>
|
166
|
-
</div>
|
167
|
-
`;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`renders 1`] = `
|
4
|
-
.c0 {
|
5
|
-
margin-top: 32px;
|
6
|
-
padding-bottom: 16px;
|
7
|
-
display: -webkit-box;
|
8
|
-
display: -webkit-flex;
|
9
|
-
display: -ms-flexbox;
|
10
|
-
display: flex;
|
11
|
-
-webkit-flex-direction: column;
|
12
|
-
-ms-flex-direction: column;
|
13
|
-
flex-direction: column;
|
14
|
-
}
|
15
|
-
|
16
|
-
<div
|
17
|
-
class="c0"
|
18
|
-
direction="column"
|
19
|
-
/>
|
20
|
-
`;
|
@@ -1,46 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`renders 1`] = `
|
4
|
-
.c0 {
|
5
|
-
position: relative;
|
6
|
-
display: inline-block;
|
7
|
-
box-sizing: border-box;
|
8
|
-
border: none;
|
9
|
-
border-radius: 8px;
|
10
|
-
font-size: 16px;
|
11
|
-
padding: 18px 16px 14px;
|
12
|
-
outline: none;
|
13
|
-
cursor: pointer;
|
14
|
-
width: auto;
|
15
|
-
background-color: #55D6AA;
|
16
|
-
color: #ffffff;
|
17
|
-
font-weight: 500;
|
18
|
-
}
|
19
|
-
|
20
|
-
.c0:hover:not([disabled]) {
|
21
|
-
background-color: #4CB99F;
|
22
|
-
}
|
23
|
-
|
24
|
-
.c0:active:not([disabled]) {
|
25
|
-
background-color: #469389;
|
26
|
-
}
|
27
|
-
|
28
|
-
.c0:disabled {
|
29
|
-
opacity: 0.5;
|
30
|
-
cursor: not-allowed;
|
31
|
-
}
|
32
|
-
|
33
|
-
@media (min-width:768px) {
|
34
|
-
.c0 {
|
35
|
-
padding: 16px 16px 15px;
|
36
|
-
font-size: 16px;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
<div>
|
41
|
-
<button
|
42
|
-
class="c0"
|
43
|
-
color="green"
|
44
|
-
/>
|
45
|
-
</div>
|
46
|
-
`;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`renders 1`] = `
|
4
|
-
.c0 {
|
5
|
-
background: #ffffff;
|
6
|
-
border: 1px solid #ECECEC;
|
7
|
-
box-sizing: border-box;
|
8
|
-
box-shadow: 0px 4px 3px rgba(0,0,0,0.08);
|
9
|
-
border-radius: 8px;
|
10
|
-
padding: 24px;
|
11
|
-
}
|
12
|
-
|
13
|
-
@media (min-width:768px) {
|
14
|
-
.c0 {
|
15
|
-
padding: 32px;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
<div
|
20
|
-
class="c0"
|
21
|
-
>
|
22
|
-
Text inside
|
23
|
-
</div>
|
24
|
-
`;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`renders 1`] = `
|
4
|
-
<label
|
5
|
-
class="sc-dlnjwi bXlBnZ"
|
6
|
-
>
|
7
|
-
<span
|
8
|
-
class="sc-bdnxRM dSPFEI"
|
9
|
-
color="blue7"
|
10
|
-
cursor="inherit"
|
11
|
-
title=""
|
12
|
-
/>
|
13
|
-
<input
|
14
|
-
type="checkbox"
|
15
|
-
/>
|
16
|
-
<span
|
17
|
-
class="sc-gtsrHT fIfsMW"
|
18
|
-
/>
|
19
|
-
</label>
|
20
|
-
`;
|
@@ -1,167 +0,0 @@
|
|
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
|
-
`;
|
@@ -1,20 +0,0 @@
|
|
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
|
-
`;
|
@@ -1,47 +0,0 @@
|
|
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
|
-
`;
|