@ntbjs/react-components 1.2.0-rc.8 → 1.2.0-rc.81
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/{ActionButton-06df3d6c.js → ActionButton-46735b89.js} +13 -5
- package/{AssetGallery-46f5cbef.js → AssetGallery-40695055.js} +128 -53
- package/{AssetPreviewTopBar-c28715f7.js → AssetPreviewTopBar-912c3469.js} +8 -3
- package/{Button-353f5bbc.js → Button-49f82b31.js} +1 -1
- package/{CompactAutocompleteSelect-e99629df.js → CompactAutocompleteSelect-c3e344f9.js} +112 -79
- package/{CompactStarRating-5dc2131c.js → CompactStarRating-0303d646.js} +87 -48
- package/{CompactTextInput-fa11fda0.js → CompactTextInput-8d962bef.js} +78 -78
- package/{ContextMenuItem-1fe17ed5.js → ContextMenuItem-ba2b697e.js} +3 -3
- package/{Instructions-6c9498a9.js → Instructions-68d8dfb2.js} +20 -7
- package/{MultiLevelCheckboxSelect-418de626.js → MultiLevelCheckboxSelect-24c88aaa.js} +36 -66
- package/{MultiSelect-4b8d3d0d.js → MultiSelect-efd60232.js} +1 -1
- package/{Popover-6afb3779.js → Popover-569cd272.js} +31 -5
- package/{Tabs-c2261e7e.js → Tabs-ea48ce3e.js} +46 -42
- package/TextArea-65ab87ba.js +438 -0
- package/{Tooltip-6b6f0b0a.js → Tooltip-66daf6e3.js} +2 -2
- package/{VerificationStatusIcon-b574fd21.js → VerificationStatusIcon-6fe95a92.js} +24 -12
- package/data/Popover/index.js +2 -1
- package/data/Tabs/index.js +1 -1
- package/data/Tooltip/index.js +1 -1
- package/data/index.js +5 -4
- package/inputs/ActionButton/index.js +1 -1
- package/inputs/Button/index.js +3 -2
- package/inputs/CompactAutocompleteSelect/index.js +12 -2
- package/inputs/CompactStarRating/index.js +13 -2
- package/inputs/CompactTextInput/index.js +6 -6
- package/inputs/MultiSelect/index.js +1 -1
- package/inputs/TextArea/index.js +13 -2
- package/inputs/index.js +16 -16
- package/package.json +2 -1
- package/widgets/AssetGallery/index.js +15 -15
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -1
- package/widgets/ContextMenu/ContextMenuItem/index.js +1 -1
- package/widgets/Instructions/index.js +14 -4
- package/widgets/index.js +17 -17
- package/TextArea-1689b8d8.js +0 -348
- package/check-555d831b.js +0 -213
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var defaultTheme = require('./defaultTheme-ea44e34a.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var useMergedRefs = require('./useMergedRefs-b6d2f8fc.js');
|
|
6
|
+
var nanoid = require('nanoid');
|
|
7
|
+
require('./Alert-13b75102.js');
|
|
8
|
+
require('./Badge-aec841c8.js');
|
|
9
|
+
require('./Popover-569cd272.js');
|
|
10
|
+
require('./Tab-f499ecbc.js');
|
|
11
|
+
require('./Tabs-ea48ce3e.js');
|
|
12
|
+
var Tooltip = require('./Tooltip-66daf6e3.js');
|
|
13
|
+
require('./VerificationStatusIcon-6fe95a92.js');
|
|
14
|
+
var editNote = require('./edit-note-c47d292e.js');
|
|
15
|
+
var styled = require('styled-components');
|
|
16
|
+
|
|
17
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
+
|
|
19
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
21
|
+
|
|
22
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45;
|
|
23
|
+
var fadeInCheck = styled.keyframes(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 0\n }\n to {\n opacity: 1\n }\n"])));
|
|
24
|
+
var fadeOutCheck = styled.keyframes(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 1\n }\n to {\n opacity: 0\n }\n"])));
|
|
25
|
+
var activeLabel = styled.css(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n font-size: 0.75rem;\n padding: 0 3px;\n top: -7px;\n letter-spacing: 0.03em;\n left: 8px !important;\n opacity: 1 !important;\n"])));
|
|
26
|
+
var placeholderBaseStyle = styled.css(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n ", "\n\n ", "\n"])), function (props) {
|
|
27
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
|
|
28
|
+
}, function (props) {
|
|
29
|
+
return props.theme.themeProp('opacity', 0.6, 0.5);
|
|
30
|
+
});
|
|
31
|
+
var InputIconContainer = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject5 || (_templateObject5 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0;\n pointer-events: none;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px;\n display: flex;\n align-items: flex-start;\n position: absolute;\n right: 15px;\n top: 10px;\n bottom: 0;\n > .smallPadingIcon {\n padding: 4px;\n width: 15px;\n height: 15px;\n border-radius: 5px;\n opacity: 1;\n margin-top: -5px;\n ", "\n }\n svg {\n width: 15px;\n opacity: 0.7;\n transition: opacity 250ms;\n\n ", "\n }\n"])), function (props) {
|
|
32
|
+
return props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('gray-300'), '!important');
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return props.disabled && styled.css(_templateObject6 || (_templateObject6 = defaultTheme._taggedTemplateLiteral(["\n display: none;\n "])));
|
|
35
|
+
});
|
|
36
|
+
var TextInputField = styled__default['default'].textarea.attrs(defaultTheme.applyDefaultTheme)(_templateObject7 || (_templateObject7 = defaultTheme._taggedTemplateLiteral(["\n width: 100%;\n font-family: inherit;\n font-size: 0.875rem;\n border-radius: 2px;\n padding: 5px 10px;\n resize: vertical;\n z-index: 0;\n border-radius: 3px;\n box-sizing: border-box;\n appearance: none;\n border: 1px solid;\n ", "\n\n\n\n ", "\n \n transition: height 550ms ease-in-out; border-color 350ms;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n \n ", "\n \n ", "\n\n ", "\n \n ", "\n\n ", "\n\n ", " \n\n ", " \n \n\n ", " \n\n \n \n ", "\n\n ", " \n\n ", "\n \n \n ", "\n\n ", "\n\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\n\n &&:hover:not(:focus) {\n ", ";\n\n ", ";\n\n ", ";\n\n \n ", "; \n\n\n ", ";\n transition: background 350ms;\n & + ", " {\n opacity: 1;\n ", ";\n transition: opacity 350ms;\n }\n }\n\n &::placeholder {\n ", "\n\n ", "\n }\n\n &&:focus {\n outline: none;\n ", "\n\n ", ";\n\n \n ", " \n \n ", "\n\n }\n\n &&:not(:hover):not(:focus) {\n ", ";\n ", ";\n\n ", "\n\n ", ";\n\n \n }\n"])), function (props) {
|
|
37
|
+
return props.borderRadius && styled.css(_templateObject8 || (_templateObject8 = defaultTheme._taggedTemplateLiteral(["\n border-radius: ", "px;\n "])), props.borderRadius);
|
|
38
|
+
}, function (props) {
|
|
39
|
+
return props.showMore && !props.expanded && styled.css(_templateObject9 || (_templateObject9 = defaultTheme._taggedTemplateLiteral(["\n -webkit-mask-image: linear-gradient(0deg, transparent 5px, white 45px);\n "])));
|
|
40
|
+
}, function (props) {
|
|
41
|
+
return props.theme.themeProp('color', 'white', 'black');
|
|
42
|
+
}, function (props) {
|
|
43
|
+
return props.readOnly && styled.css(_templateObject10 || (_templateObject10 = defaultTheme._taggedTemplateLiteral(["\n cursor: default;\n border-color: transparent !important;\n "])));
|
|
44
|
+
}, function (props) {
|
|
45
|
+
return props.disabled && styled.css(_templateObject11 || (_templateObject11 = defaultTheme._taggedTemplateLiteral(["\n cursor: not-allowed;\n "])));
|
|
46
|
+
}, function (props) {
|
|
47
|
+
return props.readOnly && styled.css(_templateObject12 || (_templateObject12 = defaultTheme._taggedTemplateLiteral(["\n padding: 12px 10px; ;\n "])));
|
|
48
|
+
}, function (props) {
|
|
49
|
+
return props.showMore && styled.css(_templateObject13 || (_templateObject13 = defaultTheme._taggedTemplateLiteral(["\n overflow: hidden;\n "])));
|
|
50
|
+
}, function (props) {
|
|
51
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'));
|
|
52
|
+
}, function (props) {
|
|
53
|
+
return (props.state === 'warning' || props.state === 'error') && props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('gray-900'));
|
|
54
|
+
}, function (props) {
|
|
55
|
+
return props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
56
|
+
}, function (props) {
|
|
57
|
+
return props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400'));
|
|
58
|
+
}, function (props) {
|
|
59
|
+
return props.noBorder && styled.css(_templateObject14 || (_templateObject14 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), function (props) {
|
|
60
|
+
return props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
61
|
+
});
|
|
62
|
+
}, function (props) {
|
|
63
|
+
return props.type === 'warning' && styled.css(_templateObject15 || (_templateObject15 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n "])), props.theme.themeProp('color', '#EAB308', 'black'), props.theme.themeProp('background', '#2F2402', '#F2D16B'), props.theme.themeProp('border-color', '#2F2402 ', '#F2D16B'));
|
|
64
|
+
}, function (props) {
|
|
65
|
+
return props.type === 'error' && styled.css(_templateObject16 || (_templateObject16 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n "])), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#7f1b1b', '#FBEAE6'), props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6'));
|
|
66
|
+
}, function (props) {
|
|
67
|
+
return props.noBorder && props.type === 'warning' && styled.css(_templateObject17 || (_templateObject17 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), function (props) {
|
|
68
|
+
return props.theme.themeProp('border-color', '#2F2402', '#F2D16B');
|
|
69
|
+
});
|
|
70
|
+
}, function (props) {
|
|
71
|
+
return props.noBorder && props.type === 'error' && styled.css(_templateObject18 || (_templateObject18 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), function (props) {
|
|
72
|
+
return props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6');
|
|
73
|
+
});
|
|
74
|
+
}, function (props) {
|
|
75
|
+
return props.type === 'warning-border' && styled.css(_templateObject19 || (_templateObject19 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('orange-500')));
|
|
76
|
+
}, function (props) {
|
|
77
|
+
return props.type === 'error-border' && styled.css(_templateObject20 || (_templateObject20 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
78
|
+
}, function (props) {
|
|
79
|
+
return props.lightBackground && styled.css(_templateObject21 || (_templateObject21 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n &&:hover {\n ", "\n }\n "])), props.theme.themeProp('background', '#FFFDDE', '#fffde8'), props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('gray-900')), props.theme.themeProp('background', 'white', 'white'));
|
|
80
|
+
}, function (props) {
|
|
81
|
+
return props.edit && props.type != 'warning' && props.theme.themeProp('background', '#505050', '#eff1f4');
|
|
82
|
+
}, function (props) {
|
|
83
|
+
return props.edit && props.type === 'warning' && props.theme.themeProp('background', '#AD8800', '#FFF3A7');
|
|
84
|
+
}, function (props) {
|
|
85
|
+
return props.padding === 'small' && styled.css(_templateObject22 || (_templateObject22 = defaultTheme._taggedTemplateLiteral(["\n padding: 5px 10px;\n "])));
|
|
86
|
+
}, function (props) {
|
|
87
|
+
return props.padding === 'medium' && styled.css(_templateObject23 || (_templateObject23 = defaultTheme._taggedTemplateLiteral(["\n padding: 13px 15px;\n "])));
|
|
88
|
+
}, function (props) {
|
|
89
|
+
return props.padding === 'large' && styled.css(_templateObject24 || (_templateObject24 = defaultTheme._taggedTemplateLiteral(["\n padding: 15px 55px;\n "])));
|
|
90
|
+
}, function (props) {
|
|
91
|
+
return props.hasIcon && styled.css(_templateObject25 || (_templateObject25 = defaultTheme._taggedTemplateLiteral(["\n padding-left: 55px;\n padding-right: 35px;\n padding-top: 13.5px;\n "])));
|
|
92
|
+
}, function (props) {
|
|
93
|
+
return !props.readOnly && !props.disabled && props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'));
|
|
94
|
+
}, function (props) {
|
|
95
|
+
return props.edit && props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'));
|
|
96
|
+
}, function (props) {
|
|
97
|
+
return props.type === 'warning' && props.theme.themeProp('background', '#806403', '#FFDB70');
|
|
98
|
+
}, function (props) {
|
|
99
|
+
return props.type === 'error' && props.theme.themeProp('background', '#F7D5D0', '#F7D5D0');
|
|
100
|
+
}, function (props) {
|
|
101
|
+
return props.noBorder && !props.readOnly && props.type != 'warning' && props.type != 'error' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')) : 'background: transparent';
|
|
102
|
+
}, InputIconContainer, function (props) {
|
|
103
|
+
return props.type === 'success' && styled.css(_templateObject26 || (_templateObject26 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0;\n "])));
|
|
104
|
+
}, function (props) {
|
|
105
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'), 1);
|
|
106
|
+
}, function (props) {
|
|
107
|
+
return props.theme.themeProp('opacity', 0.6, 0.5, 1);
|
|
108
|
+
}, function (props) {
|
|
109
|
+
return props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-600'));
|
|
110
|
+
}, function (props) {
|
|
111
|
+
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white'));
|
|
112
|
+
}, function (props) {
|
|
113
|
+
return props.type === 'warning' && styled.css(_templateObject27 || (_templateObject27 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n "])), function (props) {
|
|
114
|
+
return props.theme.themeProp('border-color', '#F4E21E', '#F4E21E');
|
|
115
|
+
}, props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
|
|
116
|
+
}, function (props) {
|
|
117
|
+
return props.type === 'error' && styled.css(_templateObject28 || (_templateObject28 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n "])), function (props) {
|
|
118
|
+
return props.theme.themeProp('border-color', '#D83018', '#D83018');
|
|
119
|
+
}, props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
|
|
120
|
+
}, function (props) {
|
|
121
|
+
return props.edit && props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)');
|
|
122
|
+
}, function (props) {
|
|
123
|
+
return props.edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)');
|
|
124
|
+
}, function (props) {
|
|
125
|
+
return props.noBorder && props.edit && styled.css(_templateObject29 || (_templateObject29 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), function (props) {
|
|
126
|
+
return props.theme.themeProp('border-color', '#27272A', 'rgba(244,244,245, 0.3)');
|
|
127
|
+
});
|
|
128
|
+
}, function (props) {
|
|
129
|
+
return props.edit && props.type === 'warning' && props.theme.themeProp('background', '#2F2402', '#FFF3A7');
|
|
130
|
+
});
|
|
131
|
+
var TextInputLabel = styled__default['default'].label.attrs(defaultTheme.applyDefaultTheme)(_templateObject30 || (_templateObject30 = defaultTheme._taggedTemplateLiteral(["\n position: absolute;\n top: 13px;\n left: 11px;\n line-height: 1.2;\n font-size: 0.875rem;\n transition: all 150ms;\n margin-botton: 50px;\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n content: \"\";\n\n ", "\n"])), function (props) {
|
|
132
|
+
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'));
|
|
133
|
+
}, placeholderBaseStyle, function (props) {
|
|
134
|
+
return props.theme.themeProp('background', "linear-gradient(0deg, ".concat(props.theme.getColor('gray-900'), " calc(50% + 1px), transparent 50%)"), "linear-gradient(0deg, ".concat(props.theme.getColor('white'), " calc(50% + 1px), transparent 50%)"));
|
|
135
|
+
}, function (props) {
|
|
136
|
+
return !props.inputIsEmpty && styled.css(_templateObject31 || (_templateObject31 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), activeLabel);
|
|
137
|
+
}, function (props) {
|
|
138
|
+
return props.hasPlaceholder && styled.css(_templateObject32 || (_templateObject32 = defaultTheme._taggedTemplateLiteral(["\n ", ";\n "])), activeLabel);
|
|
139
|
+
}, function (props) {
|
|
140
|
+
return props.hasIcon && styled.css(_templateObject33 || (_templateObject33 = defaultTheme._taggedTemplateLiteral(["\n left: 55px;\n "])));
|
|
141
|
+
});
|
|
142
|
+
var TextInputFieldIcon = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject34 || (_templateObject34 = defaultTheme._taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n height: 2.625rem;\n display: flex;\n padding: 0 10px;\n\n svg {\n width: 15px;\n opacity: 0.6;\n transition: opacity 250ms;\n }\n"])));
|
|
143
|
+
var TextInputFieldIconAlert = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject35 || (_templateObject35 = defaultTheme._taggedTemplateLiteral(["\n position: absolute;\n top: 2.8px;\n display: flex;\n padding: 0 10px 0 30px;\n opacity: 0.6;\n transition: opacity 250ms;\n ", "\n svg {\n margin-top: 11px;\n width: 15px;\n }\n"])), function (props) {
|
|
144
|
+
return props.type === 'warning' && props.theme.themeProp('color', '#EAB308', '#2F2402');
|
|
145
|
+
});
|
|
146
|
+
var TextInput = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject36 || (_templateObject36 = defaultTheme._taggedTemplateLiteral(["\n position: relative;\n\n ", "\n\n ", "\n\n &:focus-within {\n ", " {\n ", ";\n }\n\n ", " {\n svg {\n opacity: 1;\n }\n }\n }\n\n ", ":not(:placeholder-shown) + ", " {\n ", ";\n ", "\n }\n }\n"])), function (props) {
|
|
147
|
+
return props.readOnly && styled.css(_templateObject37 || (_templateObject37 = defaultTheme._taggedTemplateLiteral(["\n pointer-events: none;\n "])));
|
|
148
|
+
}, function (props) {
|
|
149
|
+
return props.disabled && styled.css(_templateObject38 || (_templateObject38 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n\n > * {\n cursor: not-allowed;\n }\n "])));
|
|
150
|
+
}, TextInputLabel, activeLabel, TextInputFieldIcon, TextInputField, TextInputLabel, activeLabel, function (props) {
|
|
151
|
+
return props.type === 'error' && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'));
|
|
152
|
+
});
|
|
153
|
+
var Description = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject39 || (_templateObject39 = defaultTheme._taggedTemplateLiteral(["\n margin: 8px 0 0 0;\n padding: 0 0.6875rem;\n font-size: 0.75rem;\n line-height: 1.333;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (props) {
|
|
154
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
155
|
+
}, function (props) {
|
|
156
|
+
return (props.type === 'warning-border' || props.type === 'warning') && styled.css(_templateObject40 || (_templateObject40 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500')));
|
|
157
|
+
}, function (props) {
|
|
158
|
+
return (props.type === 'error-border' || props.type === 'error') && styled.css(_templateObject41 || (_templateObject41 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
159
|
+
});
|
|
160
|
+
var SuccessContainer = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject42 || (_templateObject42 = defaultTheme._taggedTemplateLiteral(["\n opacity: 1;\n pointer-events: none;\n opacity: ", ";\n animation: ", " 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n position: absolute;\n margin-top: -35px;\n margin-left: 5px;\n width: 15px;\n height: 15px;\n padding: 5px;\n ", "\n\n > svg {\n width: 15px;\n }\n"])), function (props) {
|
|
161
|
+
return props.fadeIn ? 0 : 1;
|
|
162
|
+
}, function (props) {
|
|
163
|
+
return props.fadeIn ? fadeOutCheck : fadeInCheck;
|
|
164
|
+
}, function (props) {
|
|
165
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'));
|
|
166
|
+
});
|
|
167
|
+
var ShowMoreText = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject43 || (_templateObject43 = defaultTheme._taggedTemplateLiteral(["\n margin-top: -18px;\n margin-bottom: 0;\n display: block;\n position: absolute;\n font-size: 0.875rem;\n cursor: pointer;\n padding: 2px 10px;\n margin-right: 10px;\n margin-top: -26px;\n ", "\n transition: margin-top 550ms ease-in-out;\n -webkit-mask-image: linear-gradient(180deg, transparent 1px, white 7px);\n ", "\n\n ", ";\n\n ", "\n"])), function (props) {
|
|
168
|
+
return props.expanded && styled.css(_templateObject44 || (_templateObject44 = defaultTheme._taggedTemplateLiteral(["\n margin-top: 0px;\n "])));
|
|
169
|
+
}, function (props) {
|
|
170
|
+
return props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
171
|
+
}, function (props) {
|
|
172
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('emerald-500'));
|
|
173
|
+
}, function (props) {
|
|
174
|
+
return props.type === 'error' && styled.css(_templateObject45 || (_templateObject45 = defaultTheme._taggedTemplateLiteral(["\n content: 'error';\n ", "\n "])), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
var TextArea = React__default['default'].forwardRef(function TextArea(_ref, forwardedRef) {
|
|
178
|
+
var value = _ref.value,
|
|
179
|
+
defaultValue = _ref.defaultValue,
|
|
180
|
+
name = _ref.name,
|
|
181
|
+
label = _ref.label,
|
|
182
|
+
placeholder = _ref.placeholder,
|
|
183
|
+
required = _ref.required,
|
|
184
|
+
disabled = _ref.disabled,
|
|
185
|
+
hidden = _ref.hidden,
|
|
186
|
+
readOnly = _ref.readOnly,
|
|
187
|
+
edit = _ref.edit,
|
|
188
|
+
showMore = _ref.showMore,
|
|
189
|
+
showMoreText = _ref.showMoreText,
|
|
190
|
+
showLessText = _ref.showLessText,
|
|
191
|
+
autoComplete = _ref.autoComplete,
|
|
192
|
+
description = _ref.description,
|
|
193
|
+
type = _ref.type,
|
|
194
|
+
icon = _ref.icon,
|
|
195
|
+
rows = _ref.rows,
|
|
196
|
+
className = _ref.className,
|
|
197
|
+
style = _ref.style,
|
|
198
|
+
_onChange = _ref.onChange,
|
|
199
|
+
onBlur = _ref.onBlur,
|
|
200
|
+
lightBackground = _ref.lightBackground,
|
|
201
|
+
noBorder = _ref.noBorder,
|
|
202
|
+
instructionsTextArea = _ref.instructionsTextArea,
|
|
203
|
+
loadingIcon = _ref.loadingIcon,
|
|
204
|
+
successIcon = _ref.successIcon,
|
|
205
|
+
padding = _ref.padding,
|
|
206
|
+
descriptionToolTip = _ref.descriptionToolTip,
|
|
207
|
+
borderRadius = _ref.borderRadius,
|
|
208
|
+
rest = defaultTheme._objectWithoutProperties(_ref, ["value", "defaultValue", "name", "label", "placeholder", "required", "disabled", "hidden", "readOnly", "edit", "showMore", "showMoreText", "showLessText", "autoComplete", "description", "type", "icon", "rows", "className", "style", "onChange", "onBlur", "lightBackground", "noBorder", "instructionsTextArea", "loadingIcon", "successIcon", "padding", "descriptionToolTip", "borderRadius"]);
|
|
209
|
+
|
|
210
|
+
var textInputDomNode = React.useRef(null);
|
|
211
|
+
var textInputRef = useMergedRefs.useMergedRefs(forwardedRef, textInputDomNode);
|
|
212
|
+
|
|
213
|
+
var _useState = React.useState(!(value || defaultValue)),
|
|
214
|
+
_useState2 = defaultTheme._slicedToArray(_useState, 2),
|
|
215
|
+
inputIsEmpty = _useState2[0],
|
|
216
|
+
setInputIsEmpty = _useState2[1];
|
|
217
|
+
|
|
218
|
+
var _useState3 = React.useState(value || defaultValue),
|
|
219
|
+
_useState4 = defaultTheme._slicedToArray(_useState3, 2),
|
|
220
|
+
defaultInput = _useState4[0],
|
|
221
|
+
setDefaultInput = _useState4[1];
|
|
222
|
+
|
|
223
|
+
var _useState5 = React.useState(false),
|
|
224
|
+
_useState6 = defaultTheme._slicedToArray(_useState5, 2),
|
|
225
|
+
expanded = _useState6[0],
|
|
226
|
+
setExpanded = _useState6[1];
|
|
227
|
+
|
|
228
|
+
var _useState7 = React.useState(false),
|
|
229
|
+
_useState8 = defaultTheme._slicedToArray(_useState7, 2),
|
|
230
|
+
autoFocus = _useState8[0],
|
|
231
|
+
setAutoFocus = _useState8[1];
|
|
232
|
+
|
|
233
|
+
var _useState9 = React.useState(nanoid.nanoid()),
|
|
234
|
+
_useState10 = defaultTheme._slicedToArray(_useState9, 1),
|
|
235
|
+
uniqueId = _useState10[0];
|
|
236
|
+
|
|
237
|
+
var defaultHeight = rows * 16;
|
|
238
|
+
var memoizedDescriptionToolTip = React.useMemo(function () {
|
|
239
|
+
return descriptionToolTip;
|
|
240
|
+
}, [descriptionToolTip]);
|
|
241
|
+
|
|
242
|
+
var defaultHeightFunction = function defaultHeightFunction() {
|
|
243
|
+
var textareaRefCurrent = textInputDomNode.current;
|
|
244
|
+
textareaRefCurrent.style.height = "".concat(defaultHeight, "px");
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
var adjustHeighToScroll = function adjustHeighToScroll() {
|
|
248
|
+
var textareaRefCurrent = textInputDomNode === null || textInputDomNode === void 0 ? void 0 : textInputDomNode.current;
|
|
249
|
+
|
|
250
|
+
if (textareaRefCurrent !== null) {
|
|
251
|
+
textareaRefCurrent.style.height = 'auto';
|
|
252
|
+
var newHeight = textareaRefCurrent.scrollHeight;
|
|
253
|
+
textareaRefCurrent.style.height = "".concat(newHeight, "px");
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
React.useEffect(function () {
|
|
258
|
+
defaultHeightFunction();
|
|
259
|
+
setDefaultInput(value || defaultValue);
|
|
260
|
+
setExpanded(false);
|
|
261
|
+
adjustHeighToScroll();
|
|
262
|
+
|
|
263
|
+
if ((value || defaultValue) != defaultInput) {
|
|
264
|
+
adjustHeighToScroll();
|
|
265
|
+
}
|
|
266
|
+
}, []);
|
|
267
|
+
React.useEffect(function () {
|
|
268
|
+
defaultHeightFunction();
|
|
269
|
+
|
|
270
|
+
if ((value || defaultValue) != defaultInput) {
|
|
271
|
+
adjustHeighToScroll();
|
|
272
|
+
}
|
|
273
|
+
}, [value, defaultValue]);
|
|
274
|
+
|
|
275
|
+
var handleTextAreaClick = function handleTextAreaClick() {
|
|
276
|
+
var textareaRefCurrent = textInputDomNode.current;
|
|
277
|
+
|
|
278
|
+
if (textareaRefCurrent !== null) {
|
|
279
|
+
textareaRefCurrent.style.height = "".concat(textareaRefCurrent.scrollHeight, "px");
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (!expanded) {
|
|
283
|
+
setExpanded(true);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
var handleTextAreaShowLess = function handleTextAreaShowLess() {
|
|
288
|
+
var textareaRefCurrent = textInputDomNode.current;
|
|
289
|
+
|
|
290
|
+
if (textareaRefCurrent !== null) {
|
|
291
|
+
textareaRefCurrent.style.height = expanded ? "".concat(rows * 16, "px") : "".concat(textareaRefCurrent.scrollHeight, "px");
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
setExpanded(!expanded);
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
var onKeyDown = React.useCallback(function (event) {
|
|
298
|
+
if (event.key === 'Enter') {
|
|
299
|
+
event.stopPropagation();
|
|
300
|
+
}
|
|
301
|
+
}, []);
|
|
302
|
+
|
|
303
|
+
var input = function input() {
|
|
304
|
+
return React__default['default'].createElement(TextInput, {
|
|
305
|
+
disabled: disabled,
|
|
306
|
+
readOnly: readOnly,
|
|
307
|
+
type: type,
|
|
308
|
+
className: className,
|
|
309
|
+
style: style
|
|
310
|
+
}, React__default['default'].createElement(TextInputFieldIconAlert, {
|
|
311
|
+
type: type
|
|
312
|
+
}, icon), React__default['default'].createElement(TextInputField, defaultTheme._extends({
|
|
313
|
+
autoFocus: autoFocus,
|
|
314
|
+
borderRadius: borderRadius,
|
|
315
|
+
ref: textInputRef,
|
|
316
|
+
rows: rows,
|
|
317
|
+
expanded: expanded,
|
|
318
|
+
defaultHeight: defaultHeight,
|
|
319
|
+
value: value,
|
|
320
|
+
defaultValue: defaultValue,
|
|
321
|
+
name: name,
|
|
322
|
+
placeholder: placeholder || ' ',
|
|
323
|
+
required: required,
|
|
324
|
+
readOnly: readOnly,
|
|
325
|
+
disabled: disabled,
|
|
326
|
+
edit: edit,
|
|
327
|
+
instructionsTextArea: instructionsTextArea,
|
|
328
|
+
showMore: showMore,
|
|
329
|
+
type: type,
|
|
330
|
+
autoComplete: autoComplete,
|
|
331
|
+
hasIcon: Boolean(icon),
|
|
332
|
+
icon: icon,
|
|
333
|
+
id: "text-input-".concat(uniqueId),
|
|
334
|
+
key: uniqueId,
|
|
335
|
+
lightBackground: lightBackground,
|
|
336
|
+
padding: padding,
|
|
337
|
+
onChange: function onChange(e) {
|
|
338
|
+
if (e.target.value) {
|
|
339
|
+
setInputIsEmpty(false);
|
|
340
|
+
|
|
341
|
+
if (!autoFocus) {
|
|
342
|
+
setAutoFocus(true);
|
|
343
|
+
}
|
|
344
|
+
} else {
|
|
345
|
+
setInputIsEmpty(true);
|
|
346
|
+
|
|
347
|
+
if (!autoFocus) {
|
|
348
|
+
setAutoFocus(true);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
_onChange(e);
|
|
353
|
+
},
|
|
354
|
+
onKeyDown: onKeyDown,
|
|
355
|
+
onBlur: onBlur,
|
|
356
|
+
noBorder: noBorder
|
|
357
|
+
}, rest, {
|
|
358
|
+
onClick: handleTextAreaClick
|
|
359
|
+
})), (type === 'loading' || type === 'success') && React__default['default'].createElement(SuccessContainer, null, type === 'loading' && loadingIcon, type === 'success' && successIcon), !readOnly && noBorder && React__default['default'].createElement(InputIconContainer, {
|
|
360
|
+
disabled: disabled
|
|
361
|
+
}, React__default['default'].createElement(editNote.SvgEditNote, {
|
|
362
|
+
className: padding === 'small' ? 'smallPadingIcon' : undefined
|
|
363
|
+
})), label && React__default['default'].createElement(TextInputLabel, {
|
|
364
|
+
htmlFor: "text-input-".concat(uniqueId),
|
|
365
|
+
hasPlaceholder: Boolean(placeholder),
|
|
366
|
+
hasIcon: Boolean(icon),
|
|
367
|
+
inputIsEmpty: inputIsEmpty
|
|
368
|
+
}, label, required && ' *'), typeof description === 'string' && description.length > 0 && React__default['default'].createElement(Description, {
|
|
369
|
+
type: type
|
|
370
|
+
}, description), showMore && React__default['default'].createElement(ShowMoreText, {
|
|
371
|
+
onClick: showMore ? handleTextAreaShowLess : undefined,
|
|
372
|
+
expanded: expanded
|
|
373
|
+
}, !expanded ? showMoreText : expanded ? showLessText : null));
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
if (hidden) return null;
|
|
377
|
+
return React__default['default'].createElement(React__default['default'].Fragment, null, !memoizedDescriptionToolTip && input(), memoizedDescriptionToolTip && React__default['default'].createElement("div", null, React__default['default'].createElement(Tooltip.Tooltip, {
|
|
378
|
+
content: memoizedDescriptionToolTip,
|
|
379
|
+
key: "tooltipTextArea1",
|
|
380
|
+
placement: "bottom-end",
|
|
381
|
+
trigger: 'mouseenter',
|
|
382
|
+
zIndex: 999999
|
|
383
|
+
}, input())));
|
|
384
|
+
});
|
|
385
|
+
TextArea.defaultProps = {
|
|
386
|
+
rows: 4,
|
|
387
|
+
noBorder: false,
|
|
388
|
+
readOnly: false,
|
|
389
|
+
edit: false,
|
|
390
|
+
hidden: false,
|
|
391
|
+
showMore: false,
|
|
392
|
+
showMoreText: '',
|
|
393
|
+
showLessText: '',
|
|
394
|
+
type: '',
|
|
395
|
+
padding: 'medium',
|
|
396
|
+
instructionsTextArea: false,
|
|
397
|
+
descriptionToolTip: '',
|
|
398
|
+
isExpanded: function isExpanded() {},
|
|
399
|
+
onChange: function onChange() {},
|
|
400
|
+
borderRadius: 0
|
|
401
|
+
};
|
|
402
|
+
TextArea.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
403
|
+
value: defaultTheme.PropTypes.string,
|
|
404
|
+
defaultValue: defaultTheme.PropTypes.string,
|
|
405
|
+
name: defaultTheme.PropTypes.string,
|
|
406
|
+
label: defaultTheme.PropTypes.string,
|
|
407
|
+
placeholder: defaultTheme.PropTypes.string,
|
|
408
|
+
required: defaultTheme.PropTypes.bool,
|
|
409
|
+
disabled: defaultTheme.PropTypes.bool,
|
|
410
|
+
hidden: defaultTheme.PropTypes.bool,
|
|
411
|
+
readOnly: defaultTheme.PropTypes.bool,
|
|
412
|
+
showMore: defaultTheme.PropTypes.bool,
|
|
413
|
+
showMoreText: defaultTheme.PropTypes.string,
|
|
414
|
+
showLessText: defaultTheme.PropTypes.string,
|
|
415
|
+
edit: defaultTheme.PropTypes.bool,
|
|
416
|
+
autoComplete: defaultTheme.PropTypes.string,
|
|
417
|
+
description: defaultTheme.PropTypes.string,
|
|
418
|
+
error: defaultTheme.PropTypes.oneOfType([defaultTheme.PropTypes.bool, defaultTheme.PropTypes.string]),
|
|
419
|
+
warning: defaultTheme.PropTypes.oneOfType([defaultTheme.PropTypes.bool, defaultTheme.PropTypes.string]),
|
|
420
|
+
icon: defaultTheme.PropTypes.element,
|
|
421
|
+
rows: defaultTheme.PropTypes.oneOfType([defaultTheme.PropTypes.number, defaultTheme.PropTypes.string]),
|
|
422
|
+
className: defaultTheme.PropTypes.string,
|
|
423
|
+
style: defaultTheme.PropTypes.object,
|
|
424
|
+
padding: defaultTheme.PropTypes.oneOf(['small', 'medium', 'large']),
|
|
425
|
+
lightBackground: defaultTheme.PropTypes.bool,
|
|
426
|
+
onChange: defaultTheme.PropTypes.func,
|
|
427
|
+
onBlur: defaultTheme.PropTypes.func,
|
|
428
|
+
noBorder: defaultTheme.PropTypes.bool,
|
|
429
|
+
isExpanded: defaultTheme.PropTypes.func,
|
|
430
|
+
type: defaultTheme.PropTypes.oneOf(['', 'error', 'error-border', 'warning-border', 'warning', 'loading', 'success']),
|
|
431
|
+
instructionsTextArea: defaultTheme.PropTypes.bool,
|
|
432
|
+
loadingIcon: defaultTheme.PropTypes.element,
|
|
433
|
+
successIcon: defaultTheme.PropTypes.element,
|
|
434
|
+
descriptionToolTip: defaultTheme.PropTypes.string,
|
|
435
|
+
borderRadius: defaultTheme.PropTypes.number
|
|
436
|
+
} : {};
|
|
437
|
+
|
|
438
|
+
exports.TextArea = TextArea;
|
|
@@ -31,7 +31,7 @@ var Tooltip = React__default['default'].forwardRef(function Tooltip(_ref, ref) {
|
|
|
31
31
|
children = _ref.children,
|
|
32
32
|
props = defaultTheme._objectWithoutProperties(_ref, ["content", "interactive", "placement", "duration", "trigger", "visible", "children"]);
|
|
33
33
|
|
|
34
|
-
return React__default['default'].createElement(Tooltip$1, defaultTheme._extends({
|
|
34
|
+
return React__default['default'].createElement("div", null, React__default['default'].createElement(Tooltip$1, defaultTheme._extends({
|
|
35
35
|
ref: ref,
|
|
36
36
|
content: content,
|
|
37
37
|
interactive: interactive,
|
|
@@ -40,7 +40,7 @@ var Tooltip = React__default['default'].forwardRef(function Tooltip(_ref, ref) {
|
|
|
40
40
|
trigger: trigger,
|
|
41
41
|
visible: visible,
|
|
42
42
|
animation: 'shift-away-subtle'
|
|
43
|
-
}, props), children);
|
|
43
|
+
}, props), children));
|
|
44
44
|
});
|
|
45
45
|
Tooltip.defaultProps = {
|
|
46
46
|
content: 'Tooltip',
|
|
@@ -30,15 +30,20 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
30
30
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
31
31
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
32
32
|
|
|
33
|
-
var _templateObject, _templateObject2;
|
|
34
|
-
var
|
|
33
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
34
|
+
var VerificationIconWrapper = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n ", ";\n"])), function (props) {
|
|
35
|
+
return props.background && styled.css(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n background-color: #000 !important;\n width: fit-content;\n padding: 6px 14px 6px 9px;\n border-radius: 15px;\n}\n "])));
|
|
36
|
+
});
|
|
37
|
+
var VerificationStatusIcon$1 = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n position: relative;\n font: normal normal normal 12px/16px Roboto;\n ", ";\n\n ", ";\n\n svg {\n height: ", "px;\n }\n"])), function (props) {
|
|
35
38
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700'));
|
|
39
|
+
}, function (props) {
|
|
40
|
+
return props.background && props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-100'));
|
|
36
41
|
}, function (props) {
|
|
37
42
|
var _props$iconHeight;
|
|
38
43
|
|
|
39
44
|
return (_props$iconHeight = props.iconHeight) !== null && _props$iconHeight !== void 0 ? _props$iconHeight : 15;
|
|
40
45
|
});
|
|
41
|
-
var VerificationStatusColor = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(
|
|
46
|
+
var VerificationStatusColor = styled__default['default'].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n position: absolute;\n bottom: 0;\n left: ", "px;\n width: ", "px;\n height: ", "px;\n border-radius: 50%;\n ", ";\n"])), function (props) {
|
|
42
47
|
var _props$iconHeight2;
|
|
43
48
|
|
|
44
49
|
return ((_props$iconHeight2 = props.iconHeight) !== null && _props$iconHeight2 !== void 0 ? _props$iconHeight2 : 15) * 2 / 3;
|
|
@@ -56,13 +61,13 @@ var VerificationStatusColor = styled__default['default'].div.attrs(defaultTheme.
|
|
|
56
61
|
|
|
57
62
|
if (props.status === 'verified') {
|
|
58
63
|
darkThemeColor = props.theme.getColor('emerald-500');
|
|
59
|
-
lightThemeColor = props.theme.getColor('emerald-
|
|
64
|
+
lightThemeColor = props.theme.getColor('emerald-500');
|
|
60
65
|
} else if (props.status === 'pending') {
|
|
61
|
-
darkThemeColor = props.theme.getColor('
|
|
66
|
+
darkThemeColor = props.theme.getColor('signal-yellow-500');
|
|
62
67
|
lightThemeColor = props.theme.getColor('signal-yellow-500');
|
|
63
68
|
} else if (props.status === 'rejected') {
|
|
64
69
|
darkThemeColor = props.theme.getColor('red-600');
|
|
65
|
-
lightThemeColor = props.theme.getColor('red-
|
|
70
|
+
lightThemeColor = props.theme.getColor('red-600');
|
|
66
71
|
}
|
|
67
72
|
|
|
68
73
|
return props.theme.themeProp('background-color', darkThemeColor, lightThemeColor);
|
|
@@ -85,22 +90,29 @@ function SvgVerification(props) {
|
|
|
85
90
|
var VerificationStatusIcon = React__default['default'].forwardRef(function VerificationStatusIcon(_ref, forwardedRef) {
|
|
86
91
|
var status = _ref.status,
|
|
87
92
|
iconHeight = _ref.iconHeight,
|
|
88
|
-
|
|
93
|
+
background = _ref.background,
|
|
94
|
+
props = defaultTheme._objectWithoutProperties(_ref, ["status", "iconHeight", "background"]);
|
|
89
95
|
|
|
90
|
-
return React__default['default'].createElement(
|
|
96
|
+
return React__default['default'].createElement(VerificationIconWrapper, {
|
|
97
|
+
background: background
|
|
98
|
+
}, React__default['default'].createElement(VerificationStatusIcon$1, defaultTheme._extends({
|
|
91
99
|
iconHeight: iconHeight,
|
|
100
|
+
background: background,
|
|
92
101
|
ref: forwardedRef
|
|
93
102
|
}, props), React__default['default'].createElement(SvgVerification, null), React__default['default'].createElement(VerificationStatusColor, {
|
|
94
103
|
iconHeight: iconHeight,
|
|
95
|
-
status: status
|
|
96
|
-
|
|
104
|
+
status: status,
|
|
105
|
+
background: background
|
|
106
|
+
})));
|
|
97
107
|
});
|
|
98
108
|
VerificationStatusIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
99
109
|
status: defaultTheme.PropTypes.oneOf(['verified', 'pending', 'rejected']).isRequired,
|
|
100
|
-
iconHeight: defaultTheme.PropTypes.number
|
|
110
|
+
iconHeight: defaultTheme.PropTypes.number,
|
|
111
|
+
background: defaultTheme.PropTypes.bool
|
|
101
112
|
} : {};
|
|
102
113
|
VerificationStatusIcon.defaultProps = {
|
|
103
|
-
iconHeight: 15
|
|
114
|
+
iconHeight: 15,
|
|
115
|
+
background: false
|
|
104
116
|
};
|
|
105
117
|
|
|
106
118
|
exports.VerificationStatusIcon = VerificationStatusIcon;
|
package/data/Popover/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Popover = require('../../Popover-
|
|
3
|
+
var Popover = require('../../Popover-569cd272.js');
|
|
4
4
|
require('../../defaultTheme-ea44e34a.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('lodash');
|
|
@@ -8,6 +8,7 @@ require('react');
|
|
|
8
8
|
require('polished');
|
|
9
9
|
require('@tippyjs/react');
|
|
10
10
|
require('../../shift-away-subtle-0bed9a3c.js');
|
|
11
|
+
require('popper-max-size-modifier');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
package/data/Tabs/index.js
CHANGED
package/data/Tooltip/index.js
CHANGED
package/data/index.js
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var Alert = require('../Alert-13b75102.js');
|
|
6
6
|
var Badge = require('../Badge-aec841c8.js');
|
|
7
|
-
var Popover = require('../Popover-
|
|
7
|
+
var Popover = require('../Popover-569cd272.js');
|
|
8
8
|
var Tab = require('../Tab-f499ecbc.js');
|
|
9
|
-
var Tabs = require('../Tabs-
|
|
10
|
-
var Tooltip = require('../Tooltip-
|
|
11
|
-
var VerificationStatusIcon = require('../VerificationStatusIcon-
|
|
9
|
+
var Tabs = require('../Tabs-ea48ce3e.js');
|
|
10
|
+
var Tooltip = require('../Tooltip-66daf6e3.js');
|
|
11
|
+
var VerificationStatusIcon = require('../VerificationStatusIcon-6fe95a92.js');
|
|
12
12
|
require('../defaultTheme-ea44e34a.js');
|
|
13
13
|
require('styled-components');
|
|
14
14
|
require('react');
|
|
@@ -16,6 +16,7 @@ require('lodash');
|
|
|
16
16
|
require('polished');
|
|
17
17
|
require('@tippyjs/react');
|
|
18
18
|
require('../shift-away-subtle-0bed9a3c.js');
|
|
19
|
+
require('popper-max-size-modifier');
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
|
package/inputs/Button/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Button = require('../../Button-
|
|
3
|
+
var Button = require('../../Button-49f82b31.js');
|
|
4
4
|
require('../../defaultTheme-ea44e34a.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../../Popover-
|
|
7
|
+
require('../../Popover-569cd272.js');
|
|
8
8
|
require('lodash');
|
|
9
9
|
require('polished');
|
|
10
10
|
require('@tippyjs/react');
|
|
11
11
|
require('../../shift-away-subtle-0bed9a3c.js');
|
|
12
|
+
require('popper-max-size-modifier');
|
|
12
13
|
require('../../ContextMenu-4ec3d9f3.js');
|
|
13
14
|
require('../../expand-more-94585605.js');
|
|
14
15
|
|