@ntbjs/react-components 1.3.0-rc.37 → 1.3.0-rc.39
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-b2345555.js → ActionButton-df714c16.js} +6 -4
- package/{Alert-d69a3f95.js → Alert-28de48e1.js} +13 -8
- package/{AssetAction-65eebe9b.js → AssetAction-163f4042.js} +286 -106
- package/{AssetPreviewTopBar-b1fe3188.js → AssetPreviewTopBar-5636a6e9.js} +23 -9
- package/{Badge-e984e6f5.js → Badge-2e008fe7.js} +21 -10
- package/{Button-39607724.js → Button-700afca4.js} +58 -32
- package/{Checkbox-ad9c9e54.js → Checkbox-89fb44b0.js} +29 -12
- package/{CompactAutocompleteSelect-7d05d707.js → CompactAutocompleteSelect-394a96f2.js} +108 -49
- package/{CompactStarRating-d4cfae17.js → CompactStarRating-c02080fd.js} +50 -30
- package/{CompactTextInput-f89988be.js → CompactTextInput-1a216516.js} +72 -43
- package/{ContextMenu-4eb8fdc5.js → ContextMenu-265b13dc.js} +5 -3
- package/{ContextMenuItem-c536b460.js → ContextMenuItem-9008feb7.js} +16 -8
- package/{InputGroup-a89a0ea3.js → InputGroup-daac9ea0.js} +5 -3
- package/{Instructions-c8502398.js → Instructions-5d777a4d.js} +19 -8
- package/{MultiLevelCheckboxSelect-6be69491.js → MultiLevelCheckboxSelect-d8e6ab4c.js} +86 -34
- package/{MultiSelect-81e7016c.js → MultiSelect-f9fbcdff.js} +89 -30
- package/{Popover-c5e425a7.js → Popover-8e025dcb.js} +8 -6
- package/{Radio-55db4781.js → Radio-ecf4226c.js} +11 -6
- package/{SectionSeparator-af8dc1ce.js → SectionSeparator-e69cddfd.js} +5 -3
- package/{Switch-04ecd8d0.js → Switch-76d7d568.js} +27 -10
- package/{Tab-e43241f0.js → Tab-74c2bca2.js} +5 -3
- package/{Tabs-cfc08c6b.js → Tabs-41bd6cc1.js} +28 -14
- package/{TextArea-6e15b44f.js → TextArea-40baf21d.js} +87 -55
- package/{TextInput-9a995449.js → TextInput-c1bb5c8c.js} +49 -26
- package/{Tooltip-a68a7e49.js → Tooltip-dbd1bc99.js} +6 -4
- package/{VerificationStatusIcon-7b0e23fe.js → VerificationStatusIcon-b43db48d.js} +14 -6
- 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-cd01e6c2.js → defaultTheme-b6420d7d.js} +1 -10
- 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-9745dc34.js → react-select-creatable.esm-a9d74549.js} +1 -1
- package/{shift-away-subtle-631cd794.js → shift-away-subtle-e3830923.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 +5 -3
- package/widgets/ContextMenu/index.js +2 -2
- package/widgets/Instructions/index.js +13 -13
- package/widgets/index.js +29 -29
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-b6420d7d.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var styled = require('styled-components');
|
|
6
6
|
var close = require('./close-1751121a.js');
|
|
@@ -41,8 +41,10 @@ function SvgArrowBack(props) {
|
|
|
41
41
|
})));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
var
|
|
45
|
-
|
|
44
|
+
var AssetPreviewTopBar$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
45
|
+
displayName: "AssetPreviewTopBarstyled__AssetPreviewTopBar",
|
|
46
|
+
componentId: "sc-w8my3j-0"
|
|
47
|
+
})(["box-sizing:border-box;align-items:center;border-bottom:", ";color:inherit;display:flex;font-family:", ";font-weight:400;min-height:72px;padding:0 24px;width:100%;", " ", " ", ""], function (props) {
|
|
46
48
|
return props.border ? "1px solid" : "none";
|
|
47
49
|
}, function (props) {
|
|
48
50
|
return props.theme.primaryFontFamily;
|
|
@@ -51,18 +53,30 @@ var AssetPreviewTopBar$1 = styled__default["default"].div.attrs(defaultTheme.app
|
|
|
51
53
|
}, function (props) {
|
|
52
54
|
return props.shadow && props.theme.themeProp('box-shadow', '0 -2px 12px #505050', '0 -3px 12px #b0b6b9');
|
|
53
55
|
}, function (props) {
|
|
54
|
-
return props.disabled && styled.css(
|
|
56
|
+
return props.disabled && styled.css(["cursor:not-allowed;"]);
|
|
55
57
|
});
|
|
56
|
-
var BackButtonContainer = styled__default["default"].a.attrs(defaultTheme.applyDefaultTheme)
|
|
58
|
+
var BackButtonContainer = styled__default["default"].a.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
59
|
+
displayName: "AssetPreviewTopBarstyled__BackButtonContainer",
|
|
60
|
+
componentId: "sc-w8my3j-1"
|
|
61
|
+
})(["align-items:center;display:flex;font-size:1.125rem;", ";", " &:hover{cursor:pointer;}> svg{height:24px;margin-right:16px;width:24px;}"], function (props) {
|
|
57
62
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'));
|
|
58
63
|
}, function (props) {
|
|
59
|
-
return props.disabled && styled.css(
|
|
64
|
+
return props.disabled && styled.css(["opacity:0.5;pointer-events:none;"]);
|
|
60
65
|
});
|
|
61
|
-
var BackHoverEffect = styled__default["default"].div
|
|
62
|
-
|
|
66
|
+
var BackHoverEffect = styled__default["default"].div.withConfig({
|
|
67
|
+
displayName: "AssetPreviewTopBarstyled__BackHoverEffect",
|
|
68
|
+
componentId: "sc-w8my3j-2"
|
|
69
|
+
})(["display:inline-flex;align-items:center;> svg{height:24px;margin-right:16px;width:24px;transition:transform 0.3s ease-in-out;}&:hover > svg{transform:translateX(-2px);}"]);
|
|
70
|
+
var LeftText = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
71
|
+
displayName: "AssetPreviewTopBarstyled__LeftText",
|
|
72
|
+
componentId: "sc-w8my3j-3"
|
|
73
|
+
})(["font-size:1.125rem;margin-left:16px;", ";"], function (props) {
|
|
63
74
|
return props.theme.themeProp('color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400'));
|
|
64
75
|
});
|
|
65
|
-
var ButtonsContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
76
|
+
var ButtonsContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
77
|
+
displayName: "AssetPreviewTopBarstyled__ButtonsContainer",
|
|
78
|
+
componentId: "sc-w8my3j-4"
|
|
79
|
+
})(["align-items:center;display:flex;margin-left:auto;> span{margin-left:16px;}"]);
|
|
66
80
|
|
|
67
81
|
var _excluded = ["onBackButtonClick", "backButtonText", "backButtonAsClose", "leftText", "buttons", "shadow", "border", "disabled"];
|
|
68
82
|
var AssetPreviewTopBar = React__default["default"].forwardRef(function AssetPreviewTopBar(_ref, forwardedRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-b6420d7d.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var styled = require('styled-components');
|
|
6
6
|
|
|
@@ -9,16 +9,24 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
|
|
12
|
+
var Badge$1 = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
13
|
+
displayName: "Badgestyled__Badge",
|
|
14
|
+
componentId: "sc-7l6i64-0"
|
|
15
|
+
})(["align-content:center;display:", ";font-family:", ";font-size:1rem;font-weight:500;min-height:24px;position:relative;width:", ";"], function (props) {
|
|
14
16
|
return props.elevated || !props.hasChildren ? 'inline-flex' : 'flex';
|
|
15
17
|
}, function (props) {
|
|
16
18
|
return props.theme.primaryFontFamily;
|
|
17
19
|
}, function (props) {
|
|
18
20
|
return props.elevated ? 'fit-content' : 'initial';
|
|
19
21
|
});
|
|
20
|
-
var BadgeChildrenContainer = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)
|
|
21
|
-
|
|
22
|
+
var BadgeChildrenContainer = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
23
|
+
displayName: "Badgestyled__BadgeChildrenContainer",
|
|
24
|
+
componentId: "sc-7l6i64-1"
|
|
25
|
+
})(["align-self:center;height:fit-content;margin-right:8px;"]);
|
|
26
|
+
var BadgeLabel = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
27
|
+
displayName: "Badgestyled__BadgeLabel",
|
|
28
|
+
componentId: "sc-7l6i64-2"
|
|
29
|
+
})(["border-radius:", ";display:flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:", ";font-weight:", ";line-height:", ";height:", ";letter-spacing:0.32px;margin-left:", ";position:", ";right:0;transform:", ";", " ", " ", " ", " ", " ", ""], function (props) {
|
|
22
30
|
return props.elevated ? '12px' : '14px';
|
|
23
31
|
}, function (props) {
|
|
24
32
|
if (props.fontSize) {
|
|
@@ -39,15 +47,15 @@ var BadgeLabel = styled__default["default"].span.attrs(defaultTheme.applyDefault
|
|
|
39
47
|
}, function (props) {
|
|
40
48
|
return props.elevated ? 'translate(33%, -8px)' : 'initial';
|
|
41
49
|
}, function (props) {
|
|
42
|
-
return props.width ? styled.css(
|
|
50
|
+
return props.width ? styled.css(["width:", "px;"], props.width) : null;
|
|
43
51
|
}, function (props) {
|
|
44
|
-
return props.minWidth ? styled.css(
|
|
52
|
+
return props.minWidth ? styled.css(["min-width:", "px;"], props.minWidth) : null;
|
|
45
53
|
}, function (props) {
|
|
46
|
-
return props.minHeight ? styled.css(
|
|
54
|
+
return props.minHeight ? styled.css(["min-height:", "px;"], props.minHeight) : null;
|
|
47
55
|
}, function (props) {
|
|
48
56
|
var verticalPadding = props.verticalPadding ? "".concat(props.verticalPadding, "px") : props.elevated ? '4px' : '6px';
|
|
49
57
|
var horizontalPadding = props.horizontalPadding ? "".concat(props.horizontalPadding, "px") : props.elevated ? '7px' : '10px';
|
|
50
|
-
return styled.css(
|
|
58
|
+
return styled.css(["padding:", " ", ";"], verticalPadding, horizontalPadding);
|
|
51
59
|
}, function (props) {
|
|
52
60
|
return props.theme.themeProp('background', function () {
|
|
53
61
|
var _props$backgroundColo, _props$backgroundColo2;
|
|
@@ -113,7 +121,10 @@ var BadgeLabel = styled__default["default"].span.attrs(defaultTheme.applyDefault
|
|
|
113
121
|
}
|
|
114
122
|
});
|
|
115
123
|
});
|
|
116
|
-
var BadgeIcon = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)
|
|
124
|
+
var BadgeIcon = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
125
|
+
displayName: "Badgestyled__BadgeIcon",
|
|
126
|
+
componentId: "sc-7l6i64-3"
|
|
127
|
+
})(["display:flex;align-items:center;margin-right:", ";svg{height:12px;}"], function (props) {
|
|
117
128
|
return props.useGutter ? '4px' : 0;
|
|
118
129
|
});
|
|
119
130
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-b6420d7d.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var styled = require('styled-components');
|
|
6
|
-
var Popover = require('./Popover-
|
|
7
|
-
var ContextMenu = require('./ContextMenu-
|
|
6
|
+
var Popover = require('./Popover-8e025dcb.js');
|
|
7
|
+
var ContextMenu = require('./ContextMenu-265b13dc.js');
|
|
8
8
|
var expandMore = require('./expand-more-d74e2bd2.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -12,15 +12,17 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
|
|
15
|
+
var Button$1 = styled__default["default"].button.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
16
|
+
displayName: "Buttonstyled__Button",
|
|
17
|
+
componentId: "sc-skp8g4-0"
|
|
18
|
+
})(["position:relative;border-radius:3px;font-family:inherit;font-size:0.875rem;font-weight:400;padding:12px 16px;cursor:pointer;background:", ";border:2px solid ", ";transition:all 250ms,opacity 200ms;&:hover,&.dropdown-is-active{background:#296c58;border-color:#296c58;}", " &&{", ";}&&{", ";}&&{", ";}&&{", ";}", ";", ";", ";", ";", ";", ";"], function (props) {
|
|
17
19
|
return props.theme.getColor('emerald-500');
|
|
18
20
|
}, function (props) {
|
|
19
21
|
return props.theme.getColor('emerald-500');
|
|
20
22
|
}, function (props) {
|
|
21
23
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('white'));
|
|
22
24
|
}, function (props) {
|
|
23
|
-
return props.secondary && styled.css(
|
|
25
|
+
return props.secondary && styled.css(["background:", ";border-color:", ";", " &:hover,&.dropdown-is-active{background:", ";border-color:", ";}"], function (props) {
|
|
24
26
|
return props.theme.getColor('gray-200');
|
|
25
27
|
}, function (props) {
|
|
26
28
|
return props.theme.getColor('gray-200');
|
|
@@ -30,50 +32,74 @@ var Button$1 = styled__default["default"].button.attrs(defaultTheme.applyDefault
|
|
|
30
32
|
return props.theme.getColor('gray-300');
|
|
31
33
|
});
|
|
32
34
|
}, function (props) {
|
|
33
|
-
return props.outlined && styled.css(
|
|
35
|
+
return props.outlined && styled.css(["background:transparent;transition:none;", " ", " &:hover,&.dropdown-is-active{background-color:#296c58;", " ", "}"], props.theme.themeProp('border-color', props.theme.getColor('emerald-400'), props.theme.getColor('emerald-500')), props.theme.themeProp('color', props.theme.getColor('emerald-400'), props.theme.getColor('emerald-500')), props.theme.themeProp('border-color', props.theme.getColor('emerald-400'), '#296c58'), props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-200')));
|
|
34
36
|
}, function (props) {
|
|
35
|
-
return props.outlined && props.secondary && styled.css(
|
|
37
|
+
return props.outlined && props.secondary && styled.css(["", " ", " &:hover,&.dropdown-is-active{background:", ";", " ", "}"], props.theme.themeProp('border-color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700')), props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700')), props.theme.getColor('gray-300'), props.theme.themeProp('border-color', props.theme.getColor('gray-300'), props.theme.getColor('gray-300')), props.theme.themeProp('color', props.theme.getColor('gray-700'), props.theme.getColor('gray-700')));
|
|
36
38
|
}, function (props) {
|
|
37
|
-
return props.outlined && props.secondary && props.dropdownItems && styled.css(
|
|
39
|
+
return props.outlined && props.secondary && props.dropdownItems && styled.css(["&:hover,&.dropdown-is-active{", "}"], props.theme.themeProp('border-color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700')));
|
|
38
40
|
}, function (props) {
|
|
39
|
-
return props.block && styled.css(
|
|
41
|
+
return props.block && styled.css(["width:100%;"]);
|
|
40
42
|
}, function (props) {
|
|
41
|
-
return props.disabled && styled.css(
|
|
43
|
+
return props.disabled && styled.css(["opacity:0.5;cursor:not-allowed;pointer-events:none;"]);
|
|
42
44
|
}, function (props) {
|
|
43
|
-
return props.size === 'x-small' && styled.css(
|
|
45
|
+
return props.size === 'x-small' && styled.css(["padding:1px 16px;height:24px;"]);
|
|
44
46
|
}, function (props) {
|
|
45
|
-
return props.size === 'small' && styled.css(
|
|
47
|
+
return props.size === 'small' && styled.css(["padding:6px 16px;"]);
|
|
46
48
|
}, function (props) {
|
|
47
|
-
return props.size === 'large' && styled.css(
|
|
49
|
+
return props.size === 'large' && styled.css(["padding:16px 16px;"]);
|
|
48
50
|
}, function (props) {
|
|
49
|
-
return props.singleAction && styled.css(
|
|
51
|
+
return props.singleAction && styled.css(["display:flex;align-items:center;gap:34px;border-radius:3px !important;transition:all 250ms,opacity 200ms;"]);
|
|
50
52
|
});
|
|
51
|
-
var ButtonContent = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
52
|
-
|
|
53
|
+
var ButtonContent = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
54
|
+
displayName: "Buttonstyled__ButtonContent",
|
|
55
|
+
componentId: "sc-skp8g4-1"
|
|
56
|
+
})(["display:flex;justify-content:center;align-items:center;transform:scale(1);opacity:1;transition:all 200ms;> svg{width:100%;max-width:16px;max-height:16px;margin-right:8px;", ";", ";}", " ", ";"], function (props) {
|
|
57
|
+
return props.size === 'small' && styled.css(["max-width:13px;max-height:13px;"]);
|
|
53
58
|
}, function (props) {
|
|
54
|
-
return props.size === 'x-small' && styled.css(
|
|
59
|
+
return props.size === 'x-small' && styled.css(["max-width:11px;max-height:11px;"]);
|
|
55
60
|
}, function (props) {
|
|
56
|
-
return props.$loading && styled.css(
|
|
61
|
+
return props.$loading && styled.css(["transform:scale(0.95);opacity:0;"]);
|
|
57
62
|
}, function (props) {
|
|
58
|
-
return props.singleAction && styled.css(
|
|
63
|
+
return props.singleAction && styled.css(["svg{width:100% !important;height:100% !important;margin-right:24px;}"]);
|
|
59
64
|
});
|
|
60
|
-
var LoadingIndicator = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
61
|
-
|
|
65
|
+
var LoadingIndicator = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
66
|
+
displayName: "Buttonstyled__LoadingIndicator",
|
|
67
|
+
componentId: "sc-skp8g4-2"
|
|
68
|
+
})(["position:absolute;height:100%;width:100%;top:0;left:0;padding:4px;background:inherit;opacity:0;transition:opacity 200ms;box-sizing:border-box;", ""], function (props) {
|
|
69
|
+
return props.$loading && styled.css(["opacity:1;"]);
|
|
62
70
|
});
|
|
63
|
-
var LoadingIndicatorSvg = styled__default["default"].svg.attrs(defaultTheme.applyDefaultTheme)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
var LoadingIndicatorSvg = styled__default["default"].svg.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
72
|
+
displayName: "Buttonstyled__LoadingIndicatorSvg",
|
|
73
|
+
componentId: "sc-skp8g4-3"
|
|
74
|
+
})(["height:100%;color:inherit;transform:rotate(-88deg);"]);
|
|
75
|
+
var LoadingIndicatorSvgCircle = styled__default["default"].circle.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
76
|
+
displayName: "Buttonstyled__LoadingIndicatorSvgCircle",
|
|
77
|
+
componentId: "sc-skp8g4-4"
|
|
78
|
+
})(["transition:stroke-dashoffset 300ms linear;stroke-dasharray:113;"]);
|
|
79
|
+
var ButtonWrapper = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
80
|
+
displayName: "Buttonstyled__ButtonWrapper",
|
|
81
|
+
componentId: "sc-skp8g4-5"
|
|
82
|
+
})(["white-space:nowrap;"]);
|
|
83
|
+
var MainButtonContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
84
|
+
displayName: "Buttonstyled__MainButtonContainer",
|
|
85
|
+
componentId: "sc-skp8g4-6"
|
|
86
|
+
})(["display:inline-block;button{", ";", ";}"], function (props) {
|
|
87
|
+
return props.dropdownItems && styled.css(["border-bottom-right-radius:0;border-top-right-radius:0;"]);
|
|
68
88
|
}, function (props) {
|
|
69
|
-
return props.dropdownItems && props.outlined && styled.css(
|
|
89
|
+
return props.dropdownItems && props.outlined && styled.css(["border-right:none;"]);
|
|
70
90
|
});
|
|
71
|
-
var MainButtonContainerSingle = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
72
|
-
|
|
91
|
+
var MainButtonContainerSingle = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
92
|
+
displayName: "Buttonstyled__MainButtonContainerSingle",
|
|
93
|
+
componentId: "sc-skp8g4-7"
|
|
94
|
+
})(["display:inline-block;", ";button{", ";}"], function (props) {
|
|
95
|
+
return props.singleAction && styled.css(["display:flex;align-items:center;border-radius:3px !important;transition:all 250ms,opacity 200ms;"]);
|
|
73
96
|
}, function (props) {
|
|
74
|
-
return props.dropdownItems && styled.css(
|
|
97
|
+
return props.dropdownItems && styled.css(["border-bottom-right-radius:0;border-top-right-radius:0;"]);
|
|
75
98
|
});
|
|
76
|
-
var DropdownButtonContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
99
|
+
var DropdownButtonContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
100
|
+
displayName: "Buttonstyled__DropdownButtonContainer",
|
|
101
|
+
componentId: "sc-skp8g4-8"
|
|
102
|
+
})(["display:inline-block;button{border-bottom-left-radius:0;border-top-left-radius:0;", ";}svg{color:inherit;height:7px;width:12px;", ";}"], function (props) {
|
|
77
103
|
return !props.singleAction && 'border-left: none';
|
|
78
104
|
}, function (props) {
|
|
79
105
|
return !props.singleAction && 'margin-bottom: 1px';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-b6420d7d.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var nanoid = require('nanoid');
|
|
6
6
|
var lodash = require('lodash');
|
|
@@ -11,35 +11,52 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
13
|
|
|
14
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
15
14
|
var checkboxSize = '18px';
|
|
16
|
-
var Checkbox$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
17
|
-
|
|
15
|
+
var Checkbox$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
16
|
+
displayName: "Checkboxstyled__Checkbox",
|
|
17
|
+
componentId: "sc-1cmcaax-0"
|
|
18
|
+
})(["display:flex;flex-direction:column;"]);
|
|
19
|
+
var CheckIcon = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
20
|
+
displayName: "Checkboxstyled__CheckIcon",
|
|
21
|
+
componentId: "sc-1cmcaax-1"
|
|
22
|
+
})(["opacity:0;transform:scale(0.1);transition:all 200ms;position:absolute;width:12px;top:4px;left:3px;color:", ";svg{width:100%;display:block;}"], function (props) {
|
|
18
23
|
return props.theme.getColor('gray-100');
|
|
19
24
|
});
|
|
20
|
-
var IndeterminateCheckIcon = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
25
|
+
var IndeterminateCheckIcon = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
26
|
+
displayName: "Checkboxstyled__IndeterminateCheckIcon",
|
|
27
|
+
componentId: "sc-1cmcaax-2"
|
|
28
|
+
})(["opacity:0;transform:scale(0.1);transition:all 200ms;position:absolute;height:2px;top:8px;left:4px;background:", ";width:10px;"], function (props) {
|
|
21
29
|
return props.theme.getColor('gray-100');
|
|
22
30
|
});
|
|
23
|
-
var CheckboxLabel = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme)
|
|
31
|
+
var CheckboxLabel = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
32
|
+
displayName: "Checkboxstyled__CheckboxLabel",
|
|
33
|
+
componentId: "sc-1cmcaax-3"
|
|
34
|
+
})(["display:inline-flex;position:relative;cursor:pointer;user-select:none;min-height:", ";text-align:left;flex-wrap:wrap;flex:1;line-height:", ";margin-right:auto;& input[type='checkbox']{position:absolute;opacity:0;pointer-events:none;margin:0;}&::before{content:'';border:2px solid ", ";border-radius:2px;transition:all 200ms;width:", ";height:", ";box-sizing:border-box;", "}&:has(input[type='checkbox']:checked){&::before{background:", ";border-color:", ";}}&:has(input[type='checkbox']:not([data-indeterminate='true']):checked){", "{opacity:1;transform:scale(1);}}&:has(input[type='checkbox'][data-indeterminate='true']:checked){", "{opacity:1;transform:scale(1);}}", " ", ""], checkboxSize, checkboxSize, function (props) {
|
|
24
35
|
return props.theme.getColor('gray-300');
|
|
25
36
|
}, checkboxSize, checkboxSize, function (props) {
|
|
26
|
-
return props.muted && styled.css(
|
|
37
|
+
return props.muted && styled.css(["opacity:0.75;"]);
|
|
27
38
|
}, function (props) {
|
|
28
39
|
return props.theme.getColor('emerald-500');
|
|
29
40
|
}, function (props) {
|
|
30
41
|
return props.theme.getColor('emerald-500');
|
|
31
42
|
}, CheckIcon, IndeterminateCheckIcon, function (props) {
|
|
32
|
-
return props.readOnly && styled.css(
|
|
43
|
+
return props.readOnly && styled.css(["opacity:0.5;cursor:default;pointer-events:none;user-select:text;"]);
|
|
33
44
|
}, function (props) {
|
|
34
|
-
return props.disabled && styled.css(
|
|
45
|
+
return props.disabled && styled.css(["opacity:0.5;cursor:not-allowed;"]);
|
|
35
46
|
});
|
|
36
|
-
var CheckboxVisualLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
47
|
+
var CheckboxVisualLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
48
|
+
displayName: "Checkboxstyled__CheckboxVisualLabel",
|
|
49
|
+
componentId: "sc-1cmcaax-4"
|
|
50
|
+
})(["padding-left:10px;font-weight:400;font-size:0.875rem;flex:1;", ";"], function (props) {
|
|
37
51
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
|
|
38
52
|
});
|
|
39
|
-
var Description = styled__default["default"].p.attrs(defaultTheme.applyDefaultTheme)
|
|
53
|
+
var Description = styled__default["default"].p.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
54
|
+
displayName: "Checkboxstyled__Description",
|
|
55
|
+
componentId: "sc-1cmcaax-5"
|
|
56
|
+
})(["margin:0.375rem 0 0 0;font-size:0.75rem;line-height:1.333;", ";", ""], function (props) {
|
|
40
57
|
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
41
58
|
}, function (props) {
|
|
42
|
-
return props.error && styled.css(
|
|
59
|
+
return props.error && styled.css(["content:'error';", ""], props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
43
60
|
});
|
|
44
61
|
|
|
45
62
|
var Checkbox = React__default["default"].forwardRef(function Checkbox(_ref, forwardedRef) {
|