@ntbjs/react-components 1.3.0-rc.41 → 1.3.0-rc.43
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-581e717e.js → ActionButton-b2345555.js} +4 -6
- package/{Alert-b79a8fcc.js → Alert-d69a3f95.js} +8 -13
- package/{AssetAction-06d40708.js → AssetAction-304faafa.js} +106 -286
- package/{AssetPreviewTopBar-1b5dfde2.js → AssetPreviewTopBar-b1fe3188.js} +9 -23
- package/{Badge-a35c7018.js → Badge-e984e6f5.js} +10 -21
- package/Button-6c06d4e4.js +255 -0
- package/{Checkbox-92d07052.js → Checkbox-ad9c9e54.js} +12 -29
- package/{CompactAutocompleteSelect-c7a11d3d.js → CompactAutocompleteSelect-5676b507.js} +49 -108
- package/{CompactStarRating-86673c4f.js → CompactStarRating-d4cfae17.js} +30 -50
- package/{CompactTextInput-f1824946.js → CompactTextInput-f89988be.js} +43 -72
- package/{ContextMenu-999756c8.js → ContextMenu-4eb8fdc5.js} +3 -5
- package/{ContextMenuItem-ae4357ba.js → ContextMenuItem-c536b460.js} +8 -16
- package/{InputGroup-0423e24c.js → InputGroup-a89a0ea3.js} +3 -5
- package/{Instructions-9910f44d.js → Instructions-d1545bd4.js} +8 -19
- package/{MultiLevelCheckboxSelect-7a036b16.js → MultiLevelCheckboxSelect-6be69491.js} +34 -86
- package/{MultiSelect-9d8c24e5.js → MultiSelect-f87624b5.js} +30 -89
- package/{Popover-0d9a689b.js → Popover-c5e425a7.js} +6 -8
- package/{Radio-a0610a91.js → Radio-55db4781.js} +6 -11
- package/{SectionSeparator-5025c8f4.js → SectionSeparator-af8dc1ce.js} +3 -5
- package/{Switch-b7193858.js → Switch-04ecd8d0.js} +10 -27
- package/{Tab-7c817d4d.js → Tab-e43241f0.js} +3 -5
- package/{Tabs-318feff9.js → Tabs-cfc08c6b.js} +14 -28
- package/{TextArea-ecfd3418.js → TextArea-6e15b44f.js} +55 -87
- package/{TextInput-91d6341d.js → TextInput-9a995449.js} +26 -49
- package/{Tooltip-478ec993.js → Tooltip-a68a7e49.js} +4 -6
- package/{VerificationStatusIcon-ecec5f07.js → VerificationStatusIcon-7b0e23fe.js} +6 -14
- package/data/Alert/index.js +2 -2
- package/data/Badge/index.js +2 -2
- package/data/Popover/index.js +3 -3
- package/data/Tab/index.js +2 -2
- package/data/Tabs/index.js +3 -3
- package/data/Tooltip/index.js +3 -3
- package/data/index.js +9 -9
- package/{defaultTheme-573a9150.js → defaultTheme-cd01e6c2.js} +11 -1
- package/inputs/ActionButton/index.js +2 -2
- package/inputs/Button/index.js +5 -5
- package/inputs/Checkbox/index.js +2 -2
- package/inputs/CompactAutocompleteSelect/index.js +11 -11
- package/inputs/CompactStarRating/index.js +10 -10
- package/inputs/CompactTextInput/index.js +10 -10
- package/inputs/MultiSelect/index.js +3 -3
- package/inputs/Radio/index.js +2 -2
- package/inputs/Switch/index.js +2 -2
- package/inputs/TextArea/index.js +10 -10
- package/inputs/TextInput/index.js +2 -2
- package/inputs/index.js +25 -25
- package/layout/InputGroup/index.js +2 -2
- package/layout/SectionSeparator/index.js +2 -2
- package/layout/index.js +3 -3
- package/package.json +5 -5
- package/{react-select-creatable.esm-8bf8566a.js → react-select-creatable.esm-806f4386.js} +3 -208
- package/{shift-away-subtle-a9da38b8.js → shift-away-subtle-631cd794.js} +1 -1
- package/widgets/AssetGallery/index.js +29 -29
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -2
- package/widgets/ContextMenu/ContextMenuItem/index.js +2 -2
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +3 -5
- package/widgets/ContextMenu/index.js +2 -2
- package/widgets/Instructions/index.js +13 -13
- package/widgets/index.js +29 -29
- package/Button-70230131.js +0 -284
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-cd01e6c2.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
5
|
var nanoid = require('nanoid');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
require('./Alert-
|
|
8
|
-
require('./Badge-
|
|
9
|
-
require('./Popover-
|
|
10
|
-
require('./Tab-
|
|
11
|
-
require('./Tabs-
|
|
12
|
-
var Tooltip = require('./Tooltip-
|
|
13
|
-
require('./VerificationStatusIcon-
|
|
7
|
+
require('./Alert-d69a3f95.js');
|
|
8
|
+
require('./Badge-e984e6f5.js');
|
|
9
|
+
require('./Popover-c5e425a7.js');
|
|
10
|
+
require('./Tab-e43241f0.js');
|
|
11
|
+
require('./Tabs-cfc08c6b.js');
|
|
12
|
+
var Tooltip = require('./Tooltip-a68a7e49.js');
|
|
13
|
+
require('./VerificationStatusIcon-7b0e23fe.js');
|
|
14
14
|
var styled = require('styled-components');
|
|
15
15
|
var Select = require('react-select');
|
|
16
16
|
var reactSelectAsyncPaginate = require('react-select-async-paginate');
|
|
17
|
-
var reactSelectCreatable_esm = require('./react-select-creatable.esm-
|
|
17
|
+
var reactSelectCreatable_esm = require('./react-select-creatable.esm-806f4386.js');
|
|
18
18
|
var close = require('./close-1751121a.js');
|
|
19
19
|
var expandMore = require('./expand-more-d74e2bd2.js');
|
|
20
20
|
|
|
@@ -24,93 +24,67 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
24
24
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
25
25
|
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select);
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
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;
|
|
28
|
+
var fadeIn = styled.keyframes(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n from {\n background-color: ", ";\n }\n to {\n background-color: ", ";\n }\n"])), function (props) {
|
|
28
29
|
return props.theme.themeProp('rgba(48, 130, 106, 0)', 'rgba(191, 224, 213, 0)');
|
|
29
30
|
}, function (props) {
|
|
30
31
|
return props.theme.themeProp('rgba(48, 130, 106, 1)', 'rgba(191, 224, 213, 1)');
|
|
31
32
|
});
|
|
32
|
-
var fadeOut = styled.keyframes(["from{background-color:", "
|
|
33
|
+
var fadeOut = styled.keyframes(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n from {\n background-color: ", ";\n }\n to {\n background-color: ", ";\n }\n"])), function (props) {
|
|
33
34
|
return props.theme.themeProp('rgba(48, 130, 106, 1)', 'rgba(191, 224, 213, 1)');
|
|
34
35
|
}, function (props) {
|
|
35
36
|
return props.theme.themeProp('rgba(48, 130, 106, 0)', 'rgba(191, 224, 213, 0)');
|
|
36
37
|
});
|
|
37
|
-
var fadeInCheck = styled.keyframes(["from{opacity:0}to{opacity:1}"]);
|
|
38
|
-
var fadeOutCheck = styled.keyframes(["from{opacity:1}to{opacity:0}"]);
|
|
38
|
+
var fadeInCheck = styled.keyframes(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 0\n }\n to {\n opacity: 1\n }\n"])));
|
|
39
|
+
var fadeOutCheck = styled.keyframes(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 1\n }\n to {\n opacity: 0\n }\n"])));
|
|
39
40
|
var AsyncCreatableSelectPaginate = reactSelectAsyncPaginate.withAsyncPaginate(reactSelectCreatable_esm.CreatableSelect$1);
|
|
40
|
-
var sharedStyle = styled.css(["font-family:", "
|
|
41
|
+
var sharedStyle = styled.css(_templateObject5 || (_templateObject5 = defaultTheme._taggedTemplateLiteral(["\n font-family: ", ";\n font-size: 0.875rem;\n line-height: 1rem;\n width: 100%;\n display: block;\n box-shadow: 'none';\n flex-basis: ", ";\n"])), function (props) {
|
|
41
42
|
return props.theme.primaryFontFamily;
|
|
42
43
|
}, function (props) {
|
|
43
44
|
return props.$hasLabel ? '66.66%' : '100%';
|
|
44
45
|
});
|
|
45
|
-
var CompactAutocompleteSelect$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).
|
|
46
|
-
displayName: "CompactAutocompleteSelectstyled__CompactAutocompleteSelect",
|
|
47
|
-
componentId: "sc-rb5nhp-0"
|
|
48
|
-
})(["display:flex;align-items:center;height:24px;font-family:", ";", ""], function (props) {
|
|
46
|
+
var CompactAutocompleteSelect$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject6 || (_templateObject6 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 24px;\n font-family: ", ";\n ", "\n"])), function (props) {
|
|
49
47
|
return props.theme.primaryFontFamily;
|
|
50
48
|
}, function (props) {
|
|
51
|
-
return props.disabled && styled.css(["opacity:0.5
|
|
49
|
+
return props.disabled && styled.css(_templateObject7 || (_templateObject7 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: not-allowed;\n "])));
|
|
52
50
|
});
|
|
53
|
-
var Label = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme).
|
|
54
|
-
displayName: "CompactAutocompleteSelectstyled__Label",
|
|
55
|
-
componentId: "sc-rb5nhp-1"
|
|
56
|
-
})(["", ";flex-basis:33.33%;font-size:0.875rem;line-height:1rem;height:19px;display:flex;justify-content:space-between;align-items:center;padding-top:2px;", ""], function (props) {
|
|
51
|
+
var Label = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme)(_templateObject8 || (_templateObject8 = defaultTheme._taggedTemplateLiteral(["\n ", ";\n flex-basis: 33.33%;\n font-size: 0.875rem;\n line-height: 1rem;\n height: 19px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: 2px;\n ", "\n"])), function (props) {
|
|
57
52
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'));
|
|
58
53
|
}, function (props) {
|
|
59
|
-
return props.disabled && styled.css(["cursor:not-allowed
|
|
54
|
+
return props.disabled && styled.css(_templateObject9 || (_templateObject9 = defaultTheme._taggedTemplateLiteral(["\n cursor: not-allowed;\n "])));
|
|
60
55
|
});
|
|
61
|
-
var InputContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).
|
|
62
|
-
|
|
63
|
-
componentId: "sc-rb5nhp-2"
|
|
64
|
-
})(["display:flex;width:100%;height:19px;"]);
|
|
65
|
-
var SuccessContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
66
|
-
displayName: "CompactAutocompleteSelectstyled__SuccessContainer",
|
|
67
|
-
componentId: "sc-rb5nhp-3"
|
|
68
|
-
})(["opacity:1;pointer-events:none;display:flex;opacity:", ";animation:", " 0.5s ease-in-out;transition:opacity 0.5s ease-in-out;margin-right:5px;", " > svg{width:13px;}"], function (props) {
|
|
56
|
+
var InputContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject10 || (_templateObject10 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n height: 19px;\n"])));
|
|
57
|
+
var SuccessContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject11 || (_templateObject11 = defaultTheme._taggedTemplateLiteral(["\n opacity: 1;\n pointer-events: none;\n display: flex;\n opacity: ", ";\n animation: ", " 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n margin-right: 5px;\n ", "\n > svg {\n width: 13px;\n }\n"])), function (props) {
|
|
69
58
|
return props.fadeIn ? 0 : 1;
|
|
70
59
|
}, function (props) {
|
|
71
60
|
return props.fadeIn ? fadeOutCheck : fadeInCheck;
|
|
72
61
|
}, function (props) {
|
|
73
62
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'));
|
|
74
63
|
});
|
|
75
|
-
var AsyncCreatableAutocompleteSelect = styled__default["default"](AsyncCreatableSelectPaginate).attrs(defaultTheme.applyDefaultTheme).
|
|
76
|
-
|
|
77
|
-
componentId: "sc-rb5nhp-4"
|
|
78
|
-
})(["", " ", " &&:hover:not(:focus){", "}"], sharedStyle, function (props) {
|
|
79
|
-
return props.disabled && styled.css(["opacity:0.5;cursor:not-allowed;"]);
|
|
64
|
+
var AsyncCreatableAutocompleteSelect = styled__default["default"](AsyncCreatableSelectPaginate).attrs(defaultTheme.applyDefaultTheme)(_templateObject12 || (_templateObject12 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n &&:hover:not(:focus) {\n ", "\n }\n"])), sharedStyle, function (props) {
|
|
65
|
+
return props.disabled && styled.css(_templateObject13 || (_templateObject13 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: not-allowed;\n "])));
|
|
80
66
|
}, function (props) {
|
|
81
|
-
return props.disabled && styled.css(["background:none !important
|
|
67
|
+
return props.disabled && styled.css(_templateObject14 || (_templateObject14 = defaultTheme._taggedTemplateLiteral(["\n background: none !important;\n cursor: not-allowed;\n "])));
|
|
82
68
|
});
|
|
83
|
-
var AsyncAutocompleteSelect = styled__default["default"](reactSelectAsyncPaginate.AsyncPaginate).attrs(defaultTheme.applyDefaultTheme).
|
|
84
|
-
|
|
85
|
-
componentId: "sc-rb5nhp-5"
|
|
86
|
-
})(["", " ", " &&:hover:not(:focus){", "}"], sharedStyle, function (props) {
|
|
87
|
-
return props.disabled && styled.css(["opacity:0.5;"]);
|
|
69
|
+
var AsyncAutocompleteSelect = styled__default["default"](reactSelectAsyncPaginate.AsyncPaginate).attrs(defaultTheme.applyDefaultTheme)(_templateObject15 || (_templateObject15 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n &&:hover:not(:focus) {\n ", "\n }\n"])), sharedStyle, function (props) {
|
|
70
|
+
return props.disabled && styled.css(_templateObject16 || (_templateObject16 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n "])));
|
|
88
71
|
}, function (props) {
|
|
89
|
-
return props.disabled && styled.css(["background:none !important
|
|
72
|
+
return props.disabled && styled.css(_templateObject17 || (_templateObject17 = defaultTheme._taggedTemplateLiteral(["\n background: none !important;\n cursor: not-allowed;\n "])));
|
|
90
73
|
});
|
|
91
|
-
var AutocompletSelect = styled__default["default"](Select__default["default"]).attrs(defaultTheme.applyDefaultTheme).
|
|
92
|
-
|
|
93
|
-
componentId: "sc-rb5nhp-6"
|
|
94
|
-
})(["", " ", " &&:hover:not(:focus){", "}"], sharedStyle, function (props) {
|
|
95
|
-
return props.disabled && styled.css(["opacity:0.5;"]);
|
|
74
|
+
var AutocompletSelect = styled__default["default"](Select__default["default"]).attrs(defaultTheme.applyDefaultTheme)(_templateObject18 || (_templateObject18 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n &&:hover:not(:focus) {\n ", "\n }\n"])), sharedStyle, function (props) {
|
|
75
|
+
return props.disabled && styled.css(_templateObject19 || (_templateObject19 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n "])));
|
|
96
76
|
}, function (props) {
|
|
97
|
-
return props.disabled && styled.css(["background:none !important
|
|
77
|
+
return props.disabled && styled.css(_templateObject20 || (_templateObject20 = defaultTheme._taggedTemplateLiteral(["\n background: none !important;\n cursor: not-allowed;\n "])));
|
|
98
78
|
});
|
|
99
|
-
var AutocompletCreatableSelect = styled__default["default"](reactSelectCreatable_esm.CreatableSelect$1).attrs(defaultTheme.applyDefaultTheme).
|
|
100
|
-
|
|
101
|
-
componentId: "sc-rb5nhp-7"
|
|
102
|
-
})(["", " ", ""], sharedStyle, function (props) {
|
|
103
|
-
return props.disabled && styled.css(["opacity:0.5;"]);
|
|
79
|
+
var AutocompletCreatableSelect = styled__default["default"](reactSelectCreatable_esm.CreatableSelect$1).attrs(defaultTheme.applyDefaultTheme)(_templateObject21 || (_templateObject21 = defaultTheme._taggedTemplateLiteral(["\n ", "\n ", "\n"])), sharedStyle, function (props) {
|
|
80
|
+
return props.disabled && styled.css(_templateObject22 || (_templateObject22 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n "])));
|
|
104
81
|
});
|
|
105
|
-
var Control = styled__default["default"](Select.components.Control).attrs(defaultTheme.applyDefaultTheme).
|
|
106
|
-
displayName: "CompactAutocompleteSelectstyled__Control",
|
|
107
|
-
componentId: "sc-rb5nhp-8"
|
|
108
|
-
})(["&&{", ";", ";height:22px;min-height:22px;box-shadow:none;box-sizing:border-box;padding:1px 3px 0 8.7px;cursor:pointer;border:1px solid transparent;background-color:transparent;", " ", ";", ";", ";", ";", " ", " ", "}& .dropdown-indicator{display:none;}&:hover .dropdown-indicator{display:flex;}&&:hover{border-color:transparent;", ";", ";", ";", ";}"], function (props) {
|
|
82
|
+
var Control = styled__default["default"](Select.components.Control).attrs(defaultTheme.applyDefaultTheme)(_templateObject23 || (_templateObject23 = defaultTheme._taggedTemplateLiteral(["\n && {\n ", ";\n ", ";\n\n height: 22px;\n min-height: 22px;\n box-shadow: none;\n box-sizing: border-box;\n padding: 1px 3px 0 8.7px;\n cursor: pointer;\n border: 1px solid transparent;\n background-color: transparent;\n ", "\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n ", "\n ", "\n }\n\n & .dropdown-indicator {\n display: none;\n }\n\n &:hover .dropdown-indicator {\n display: flex;\n }\n\n &&:hover {\n border-color: transparent;\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n }\n"])), function (props) {
|
|
109
83
|
return props.edit && props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)');
|
|
110
84
|
}, function (props) {
|
|
111
85
|
return props.edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)');
|
|
112
86
|
}, function (props) {
|
|
113
|
-
return props.type && styled.css(["animation:", " 0.5s ease-in-out
|
|
87
|
+
return props.type && styled.css(_templateObject24 || (_templateObject24 = defaultTheme._taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in-out;\n "])), function (props) {
|
|
114
88
|
return props.type === 'success' ? fadeIn : fadeOut;
|
|
115
89
|
});
|
|
116
90
|
}, function (props) {
|
|
@@ -136,78 +110,45 @@ var Control = styled__default["default"](Select.components.Control).attrs(defaul
|
|
|
136
110
|
}, function (props) {
|
|
137
111
|
return props.type === 'error' && !props.isFocused && props.theme.themeProp('background', '#901d1d', '#f7d5d0');
|
|
138
112
|
});
|
|
139
|
-
var Option = styled__default["default"](Select.components.Option).attrs(defaultTheme.applyDefaultTheme).
|
|
140
|
-
displayName: "CompactAutocompleteSelectstyled__Option",
|
|
141
|
-
componentId: "sc-rb5nhp-9"
|
|
142
|
-
})(["&&{min-height:22px;height:22px;display:flex;align-items:center;padding:6px;cursor:pointer;padding:1px 13px;", " ", " ", " ", "}svg{width:15px;margin:0 9px 0 0;}a{display:flex;text-decoration:none;color:inherit;}"], function (props) {
|
|
113
|
+
var Option = styled__default["default"](Select.components.Option).attrs(defaultTheme.applyDefaultTheme)(_templateObject25 || (_templateObject25 = defaultTheme._taggedTemplateLiteral(["\n && {\n min-height: 22px;\n height: 22px;\n display: flex;\n align-items: center;\n padding: 6px;\n cursor: pointer;\n padding: 1px 13px;\n ", "\n ", "\n ", "\n ", "\n }\n svg {\n width: 15px;\n margin: 0 9px 0 0;\n }\n a {\n display: flex;\n text-decoration: none;\n color: inherit;\n }\n"])), function (props) {
|
|
143
114
|
return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
|
|
144
115
|
}, function (props) {
|
|
145
|
-
return props.isFocused && styled.css(["", ""], props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200')));
|
|
116
|
+
return props.isFocused && styled.css(_templateObject26 || (_templateObject26 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200')));
|
|
146
117
|
}, function (props) {
|
|
147
|
-
return props.isSelected && styled.css(["", "
|
|
118
|
+
return props.isSelected && styled.css(_templateObject27 || (_templateObject27 = defaultTheme._taggedTemplateLiteral(["\n ", "\n\n ", "\n "])), props.theme.themeProp('background-color', 'transparent', 'transparent'), props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700')));
|
|
148
119
|
}, function (props) {
|
|
149
|
-
return props.isFocused && props.isSelected && styled.css(["", ""], props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200')));
|
|
120
|
+
return props.isFocused && props.isSelected && styled.css(_templateObject28 || (_templateObject28 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200')));
|
|
150
121
|
});
|
|
151
|
-
var Placeholder = styled__default["default"](Select.components.Placeholder).attrs(defaultTheme.applyDefaultTheme).
|
|
152
|
-
|
|
153
|
-
componentId: "sc-rb5nhp-10"
|
|
154
|
-
})(["&&{", " ", ";}"], function (props) {
|
|
155
|
-
return (props.type === 'error' || props.type === 'warning') && styled.css(["", ""], props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700')));
|
|
122
|
+
var Placeholder = styled__default["default"](Select.components.Placeholder).attrs(defaultTheme.applyDefaultTheme)(_templateObject29 || (_templateObject29 = defaultTheme._taggedTemplateLiteral(["\n && {\n ", "\n ", ";\n }\n"])), function (props) {
|
|
123
|
+
return (props.type === 'error' || props.type === 'warning') && styled.css(_templateObject30 || (_templateObject30 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700')));
|
|
156
124
|
}, function (props) {
|
|
157
125
|
return (props.type === 'error' || props.type === 'warning') && props.theme.themeProp('opacity', '0.6', '0.6');
|
|
158
126
|
});
|
|
159
|
-
var SingleValue = styled__default["default"](Select.components.SingleValue).attrs(defaultTheme.applyDefaultTheme).
|
|
160
|
-
displayName: "CompactAutocompleteSelectstyled__SingleValue",
|
|
161
|
-
componentId: "sc-rb5nhp-11"
|
|
162
|
-
})(["&&{", ";}"], function (props) {
|
|
127
|
+
var SingleValue = styled__default["default"](Select.components.SingleValue).attrs(defaultTheme.applyDefaultTheme)(_templateObject31 || (_templateObject31 = defaultTheme._taggedTemplateLiteral(["\n && {\n ", ";\n }\n"])), function (props) {
|
|
163
128
|
return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
|
|
164
129
|
});
|
|
165
|
-
var Input = styled__default["default"](Select.components.Input).attrs(defaultTheme.applyDefaultTheme).
|
|
166
|
-
displayName: "CompactAutocompleteSelectstyled__Input",
|
|
167
|
-
componentId: "sc-rb5nhp-12"
|
|
168
|
-
})(["&&{margin:0;padding:0;padding-left:2px;", "}"], function (props) {
|
|
130
|
+
var Input = styled__default["default"](Select.components.Input).attrs(defaultTheme.applyDefaultTheme)(_templateObject32 || (_templateObject32 = defaultTheme._taggedTemplateLiteral(["\n && {\n margin: 0;\n padding: 0;\n padding-left: 2px;\n ", "\n }\n"])), function (props) {
|
|
169
131
|
return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
|
|
170
132
|
});
|
|
171
|
-
var Menu = styled__default["default"](Select.components.Menu).attrs(defaultTheme.applyDefaultTheme).
|
|
172
|
-
displayName: "CompactAutocompleteSelectstyled__Menu",
|
|
173
|
-
componentId: "sc-rb5nhp-13"
|
|
174
|
-
})(["&&{", ";}"], function (props) {
|
|
133
|
+
var Menu = styled__default["default"](Select.components.Menu).attrs(defaultTheme.applyDefaultTheme)(_templateObject33 || (_templateObject33 = defaultTheme._taggedTemplateLiteral(["\n && {\n ", ";\n }\n"])), function (props) {
|
|
175
134
|
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white'));
|
|
176
135
|
});
|
|
177
|
-
var ValueContainer = styled__default["default"](Select.components.ValueContainer).attrs(defaultTheme.applyDefaultTheme).
|
|
178
|
-
|
|
179
|
-
componentId: "sc-rb5nhp-14"
|
|
180
|
-
})(["&&{padding:0;}"]);
|
|
181
|
-
var ClearIndicator = styled__default["default"](Select.components.ClearIndicator).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
182
|
-
displayName: "CompactAutocompleteSelectstyled__ClearIndicator",
|
|
183
|
-
componentId: "sc-rb5nhp-15"
|
|
184
|
-
})(["&&{display:", ";padding:0;cursor:pointer;", ";}"], function (props) {
|
|
136
|
+
var ValueContainer = styled__default["default"](Select.components.ValueContainer).attrs(defaultTheme.applyDefaultTheme)(_templateObject34 || (_templateObject34 = defaultTheme._taggedTemplateLiteral(["\n && {\n padding: 0;\n }\n"])));
|
|
137
|
+
var ClearIndicator = styled__default["default"](Select.components.ClearIndicator).attrs(defaultTheme.applyDefaultTheme)(_templateObject35 || (_templateObject35 = defaultTheme._taggedTemplateLiteral(["\n && {\n display: ", ";\n padding: 0;\n cursor: pointer;\n ", ";\n }\n"])), function (props) {
|
|
185
138
|
return props.isFocused ? 'flex' : 'none';
|
|
186
139
|
}, function (props) {
|
|
187
140
|
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
188
141
|
});
|
|
189
|
-
var DropdownIndicator = styled__default["default"](Select.components.DropdownIndicator).attrs(defaultTheme.applyDefaultTheme).
|
|
190
|
-
displayName: "CompactAutocompleteSelectstyled__DropdownIndicator",
|
|
191
|
-
componentId: "sc-rb5nhp-16"
|
|
192
|
-
})(["&&{display:", ";padding:0;width:18px;margin-left:2px;cursor:pointer;margin-top:1px;", ";}"], function (props) {
|
|
142
|
+
var DropdownIndicator = styled__default["default"](Select.components.DropdownIndicator).attrs(defaultTheme.applyDefaultTheme)(_templateObject36 || (_templateObject36 = defaultTheme._taggedTemplateLiteral(["\n && {\n display: ", ";\n padding: 0;\n width: 18px;\n margin-left: 2px;\n cursor: pointer;\n margin-top: 1px;\n ", ";\n }\n"])), function (props) {
|
|
193
143
|
return props.isFocused ? 'flex' : 'none';
|
|
194
144
|
}, function (props) {
|
|
195
145
|
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
196
146
|
});
|
|
197
|
-
var DropdownIndicatorIcon = styled__default["default"](expandMore.SvgExpandMore).attrs(defaultTheme.applyDefaultTheme).
|
|
198
|
-
|
|
199
|
-
componentId: "sc-rb5nhp-17"
|
|
200
|
-
})(["width:12px;"]);
|
|
201
|
-
var ClearIndicatorIcon = styled__default["default"](close.SvgClose).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
202
|
-
displayName: "CompactAutocompleteSelectstyled__ClearIndicatorIcon",
|
|
203
|
-
componentId: "sc-rb5nhp-18"
|
|
204
|
-
})(["width:8px;margin-right:4px;", ";stroke-width:2px;"], function (props) {
|
|
147
|
+
var DropdownIndicatorIcon = styled__default["default"](expandMore.SvgExpandMore).attrs(defaultTheme.applyDefaultTheme)(_templateObject37 || (_templateObject37 = defaultTheme._taggedTemplateLiteral(["\n width: 12px;\n"])));
|
|
148
|
+
var ClearIndicatorIcon = styled__default["default"](close.SvgClose).attrs(defaultTheme.applyDefaultTheme)(_templateObject38 || (_templateObject38 = defaultTheme._taggedTemplateLiteral(["\n width: 8px;\n margin-right: 4px;\n ", ";\n stroke-width: 2px;\n"])), function (props) {
|
|
205
149
|
return props.theme.themeProp('stroke', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
206
150
|
});
|
|
207
|
-
var IndicatorSeparator = styled__default["default"](Select.components.IndicatorSeparator).attrs(defaultTheme.applyDefaultTheme).
|
|
208
|
-
displayName: "CompactAutocompleteSelectstyled__IndicatorSeparator",
|
|
209
|
-
componentId: "sc-rb5nhp-19"
|
|
210
|
-
})(["&&{display:", ";margin:4px;", ";}"], function (props) {
|
|
151
|
+
var IndicatorSeparator = styled__default["default"](Select.components.IndicatorSeparator).attrs(defaultTheme.applyDefaultTheme)(_templateObject39 || (_templateObject39 = defaultTheme._taggedTemplateLiteral(["\n && {\n display: ", ";\n margin: 4px;\n ", ";\n }\n"])), function (props) {
|
|
211
152
|
return props.isFocused ? 'flex' : 'none';
|
|
212
153
|
}, function (props) {
|
|
213
154
|
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-cd01e6c2.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
require('./Alert-
|
|
6
|
-
require('./Badge-
|
|
7
|
-
require('./Popover-
|
|
8
|
-
require('./Tab-
|
|
9
|
-
require('./Tabs-
|
|
10
|
-
var Tooltip = require('./Tooltip-
|
|
11
|
-
require('./VerificationStatusIcon-
|
|
5
|
+
require('./Alert-d69a3f95.js');
|
|
6
|
+
require('./Badge-e984e6f5.js');
|
|
7
|
+
require('./Popover-c5e425a7.js');
|
|
8
|
+
require('./Tab-e43241f0.js');
|
|
9
|
+
require('./Tabs-cfc08c6b.js');
|
|
10
|
+
var Tooltip = require('./Tooltip-a68a7e49.js');
|
|
11
|
+
require('./VerificationStatusIcon-7b0e23fe.js');
|
|
12
12
|
var styled = require('styled-components');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -59,59 +59,48 @@ function SvgStar(props) {
|
|
|
59
59
|
})));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
63
|
+
var fadeIn = styled.keyframes(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n from {\n background-color: ", ";\n }\n to {\n background-color: ", ";\n }\n"])), function (props) {
|
|
63
64
|
return props.theme.themeProp('rgba(48, 130, 106, 0)', 'rgba(191, 224, 213, 0)');
|
|
64
65
|
}, function (props) {
|
|
65
66
|
return props.theme.themeProp('rgba(48, 130, 106, 1)', 'rgba(191, 224, 213, 1)');
|
|
66
67
|
});
|
|
67
|
-
var fadeOut = styled.keyframes(["from{background-color:", "
|
|
68
|
+
var fadeOut = styled.keyframes(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n from {\n background-color: ", ";\n }\n to {\n background-color: ", ";\n }\n"])), function (props) {
|
|
68
69
|
return props.theme.themeProp('rgba(48, 130, 106, 1)', 'rgba(191, 224, 213, 1)');
|
|
69
70
|
}, function (props) {
|
|
70
71
|
return props.theme.themeProp('rgba(48, 130, 106, 0)', 'rgba(191, 224, 213, 0)');
|
|
71
72
|
});
|
|
72
|
-
var fadeInCheck = styled.keyframes(["from{opacity:0}to{opacity:1}"]);
|
|
73
|
-
var fadeOutCheck = styled.keyframes(["from{opacity:1}to{opacity:0}"]);
|
|
74
|
-
var CompactStarRating$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).
|
|
75
|
-
displayName: "CompactStarRatingstyled__CompactStarRating",
|
|
76
|
-
componentId: "sc-12dmf4-0"
|
|
77
|
-
})(["font-family:", ";font-size:1rem;font-weight:500;height:24px;width:100%;display:flex;align-items:center;input[type='number']{position:absolute;opacity:0;pointer-events:none;margin:0;}", " ", ""], function (props) {
|
|
73
|
+
var fadeInCheck = styled.keyframes(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 0\n }\n to {\n opacity: 1\n }\n"])));
|
|
74
|
+
var fadeOutCheck = styled.keyframes(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 1\n }\n to {\n opacity: 0\n }\n"])));
|
|
75
|
+
var CompactStarRating$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject5 || (_templateObject5 = defaultTheme._taggedTemplateLiteral(["\n font-family: ", ";\n font-size: 1rem;\n font-weight: 500;\n height: 24px;\n width: 100%;\n display: flex;\n\n align-items: center;\n input[type='number'] {\n position: absolute;\n opacity: 0;\n pointer-events: none;\n margin: 0;\n }\n\n ", "\n\n ", "\n"])), function (props) {
|
|
78
76
|
return props.theme.primaryFontFamily;
|
|
79
77
|
}, function (props) {
|
|
80
|
-
return props.readOnly && styled.css(["pointer-events:none
|
|
78
|
+
return props.readOnly && styled.css(_templateObject6 || (_templateObject6 = defaultTheme._taggedTemplateLiteral(["\n pointer-events: none;\n "])));
|
|
81
79
|
}, function (props) {
|
|
82
|
-
return props.disabled && styled.css(["opacity:0.5
|
|
80
|
+
return props.disabled && styled.css(_templateObject7 || (_templateObject7 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: not-allowed;\n "])));
|
|
83
81
|
});
|
|
84
|
-
var labelWidth = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).
|
|
85
|
-
displayName: "CompactStarRatingstyled__labelWidth",
|
|
86
|
-
componentId: "sc-12dmf4-1"
|
|
87
|
-
})(["width:33.33%;display:flex;align-items:center;text-align:left;font:normal normal normal 14px/16px Roboto;letter-spacing:0px;padding:0;height:19px;cursor:default;justify-content:space-between;", ";", ""], function (props) {
|
|
82
|
+
var labelWidth = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject8 || (_templateObject8 = defaultTheme._taggedTemplateLiteral(["\n width: 33.33%;\n display: flex;\n align-items: center;\n text-align: left;\n font: normal normal normal 14px/16px Roboto;\n letter-spacing: 0px;\n padding: 0;\n height: 19px;\n cursor: default;\n justify-content: space-between;\n ", ";\n ", "\n"])), function (props) {
|
|
88
83
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'));
|
|
89
84
|
}, function (props) {
|
|
90
|
-
return props.disabled && styled.css(["cursor:not-allowed
|
|
85
|
+
return props.disabled && styled.css(_templateObject9 || (_templateObject9 = defaultTheme._taggedTemplateLiteral(["\n cursor: not-allowed;\n "])));
|
|
91
86
|
});
|
|
92
|
-
var SuccessContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).
|
|
93
|
-
displayName: "CompactStarRatingstyled__SuccessContainer",
|
|
94
|
-
componentId: "sc-12dmf4-2"
|
|
95
|
-
})(["opacity:1;pointer-events:none;display:flex;opacity:", ";animation:", " 0.5s ease-in-out;transition:opacity 0.5s ease-in-out;margin-right:5px;", " > svg{width:13px;}"], function (props) {
|
|
87
|
+
var SuccessContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject10 || (_templateObject10 = defaultTheme._taggedTemplateLiteral(["\n opacity: 1;\n pointer-events: none;\n display: flex;\n opacity: ", ";\n animation: ", " 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n margin-right: 5px;\n ", "\n > svg {\n width: 13px;\n }\n"])), function (props) {
|
|
96
88
|
return props.fadeIn ? 0 : 1;
|
|
97
89
|
}, function (props) {
|
|
98
90
|
return props.fadeIn ? fadeOutCheck : fadeInCheck;
|
|
99
91
|
}, function (props) {
|
|
100
92
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'));
|
|
101
93
|
});
|
|
102
|
-
var starsWidth = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).
|
|
103
|
-
displayName: "CompactStarRatingstyled__starsWidth",
|
|
104
|
-
componentId: "sc-12dmf4-3"
|
|
105
|
-
})(["display:flex;width:66.66%;border-radius:3px;height:24px;align-items:center;padding-left:8px;box-sizing:border-box;border:1px solid;", " ", " ", " ", " &&:not(:hover):not(:focus){", ";", ";}&&:hover:not(:focus){", " ", ";", ";", ";}"], function (props) {
|
|
94
|
+
var starsWidth = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject11 || (_templateObject11 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n width: 66.66%;\n border-radius: 3px;\n height: 24px;\n align-items: center;\n padding-left: 8px;\n box-sizing: border-box;\n border: 1px solid;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n &&:not(:hover):not(:focus) {\n ", ";\n ", ";\n }\n &&:hover:not(:focus) {\n ", "\n\n ", ";\n\n ", ";\n\n ", ";\n }\n"])), function (props) {
|
|
106
95
|
return props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
107
96
|
}, function (props) {
|
|
108
|
-
return props.type === 'success' && styled.css(["animation:", " 0.5s ease-in-out
|
|
97
|
+
return props.type === 'success' && styled.css(_templateObject12 || (_templateObject12 = defaultTheme._taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in-out;\n "])), function (props) {
|
|
109
98
|
return props.success ? fadeIn : fadeOut;
|
|
110
99
|
});
|
|
111
100
|
}, function (props) {
|
|
112
|
-
return props.type === 'error' && styled.css(["", "
|
|
101
|
+
return props.type === 'error' && styled.css(_templateObject13 || (_templateObject13 = defaultTheme._taggedTemplateLiteral(["\n ", ";\n ", "\n "])), props.theme.themeProp('background', '#7F1B1B', '#FBEAE6'), props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6'));
|
|
113
102
|
}, function (props) {
|
|
114
|
-
return props.type === 'warning' && styled.css(["", "
|
|
103
|
+
return props.type === 'warning' && styled.css(_templateObject14 || (_templateObject14 = defaultTheme._taggedTemplateLiteral(["\n ", ";\n ", "\n "])), props.theme.themeProp('background', '#634E01', '#FFFDE8'), props.theme.themeProp('border-color', '#2F2402 ', '#FFFDE8'));
|
|
115
104
|
}, function (props) {
|
|
116
105
|
return props.edit && props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)');
|
|
117
106
|
}, function (props) {
|
|
@@ -125,10 +114,7 @@ var starsWidth = styled__default["default"].div.attrs(defaultTheme.applyDefaultT
|
|
|
125
114
|
}, function (props) {
|
|
126
115
|
return props.type === 'error' && !props.readOnly && props.theme.themeProp('background', '#901d1d', '#f7d5d0');
|
|
127
116
|
});
|
|
128
|
-
var Star = styled__default["default"].button.attrs(defaultTheme.applyDefaultTheme).
|
|
129
|
-
displayName: "CompactStarRatingstyled__Star",
|
|
130
|
-
componentId: "sc-12dmf4-4"
|
|
131
|
-
})(["display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0;svg{height:12px;padding-left:4px;transition:color 250ms;}", ";", ";", ";", ";", " ", ""], function (props) {
|
|
117
|
+
var Star = styled__default["default"].button.attrs(defaultTheme.applyDefaultTheme)(_templateObject15 || (_templateObject15 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n\n svg {\n height: 12px;\n padding-left: 4px;\n transition: color 250ms;\n }\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (props) {
|
|
132
118
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('black'));
|
|
133
119
|
}, function (props) {
|
|
134
120
|
return props.type === 'warning' && props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('black'));
|
|
@@ -137,14 +123,11 @@ var Star = styled__default["default"].button.attrs(defaultTheme.applyDefaultThem
|
|
|
137
123
|
}, function (props) {
|
|
138
124
|
return props.hover && props.theme.themeProp('color', props.theme.getColor('orange-500'), props.theme.getColor('orange-500'));
|
|
139
125
|
}, function (props) {
|
|
140
|
-
return props.readOnly && styled.css(["pointer-events:none
|
|
126
|
+
return props.readOnly && styled.css(_templateObject16 || (_templateObject16 = defaultTheme._taggedTemplateLiteral(["\n pointer-events: none;\n "])));
|
|
141
127
|
}, function (props) {
|
|
142
|
-
return props.disabled && styled.css(["button{cursor:not-allowed
|
|
128
|
+
return props.disabled && styled.css(_templateObject17 || (_templateObject17 = defaultTheme._taggedTemplateLiteral(["\n button {\n cursor: not-allowed;\n }\n > * {\n cursor: not-allowed;\n }\n "])));
|
|
143
129
|
});
|
|
144
|
-
var StarFill = styled__default["default"].button.attrs(defaultTheme.applyDefaultTheme).
|
|
145
|
-
displayName: "CompactStarRatingstyled__StarFill",
|
|
146
|
-
componentId: "sc-12dmf4-5"
|
|
147
|
-
})(["display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0;svg{height:12px;padding-left:4px;transition:color 250ms;}", ";", ";", ";", ";", " ", ""], function (props) {
|
|
130
|
+
var StarFill = styled__default["default"].button.attrs(defaultTheme.applyDefaultTheme)(_templateObject18 || (_templateObject18 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n\n svg {\n height: 12px;\n padding-left: 4px;\n transition: color 250ms;\n }\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (props) {
|
|
148
131
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('black'));
|
|
149
132
|
}, function (props) {
|
|
150
133
|
return props.type === 'error' && props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('black'));
|
|
@@ -153,14 +136,11 @@ var StarFill = styled__default["default"].button.attrs(defaultTheme.applyDefault
|
|
|
153
136
|
}, function (props) {
|
|
154
137
|
return props.hover && props.theme.themeProp('color', props.theme.getColor('orange-500'), props.theme.getColor('orange-500'));
|
|
155
138
|
}, function (props) {
|
|
156
|
-
return props.readOnly && styled.css(["pointer-events:none
|
|
139
|
+
return props.readOnly && styled.css(_templateObject19 || (_templateObject19 = defaultTheme._taggedTemplateLiteral(["\n pointer-events: none;\n "])));
|
|
157
140
|
}, function (props) {
|
|
158
|
-
return props.disabled && styled.css(["button{cursor:not-allowed
|
|
141
|
+
return props.disabled && styled.css(_templateObject20 || (_templateObject20 = defaultTheme._taggedTemplateLiteral(["\n button {\n cursor: not-allowed;\n }\n > * {\n cursor: not-allowed;\n }\n "])));
|
|
159
142
|
});
|
|
160
|
-
styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).
|
|
161
|
-
displayName: "CompactStarRatingstyled__CheckIconContainer",
|
|
162
|
-
componentId: "sc-12dmf4-6"
|
|
163
|
-
})(["opacity:1;pointer-events:none;margin-left:auto;opacity:", ";animation:", " 0.5s ease-in-out;transition:opacity 0.5s ease-in-out;", " > svg{width:13px;}"], function (props) {
|
|
143
|
+
styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject21 || (_templateObject21 = defaultTheme._taggedTemplateLiteral(["\n opacity: 1;\n pointer-events: none;\n margin-left: auto;\n opacity: ", ";\n animation: ", " 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n ", "\n > svg {\n width: 13px;\n }\n"])), function (props) {
|
|
164
144
|
return props.type === 'success' ? 0 : 1;
|
|
165
145
|
}, function (props) {
|
|
166
146
|
return props.type === 'success' ? fadeOutCheck : fadeInCheck;
|