@ntbjs/react-components 1.3.0-rc.36 → 1.3.0-rc.38
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-32bdf257.js → AssetAction-163f4042.js} +293 -110
- package/{AssetPreviewTopBar-f800a63a.js → AssetPreviewTopBar-5636a6e9.js} +25 -17
- package/{Badge-e984e6f5.js → Badge-2e008fe7.js} +21 -10
- package/{Button-17bb2db1.js → Button-700afca4.js} +58 -32
- package/{Checkbox-ad9c9e54.js → Checkbox-89fb44b0.js} +29 -12
- package/{CompactAutocompleteSelect-76b297c1.js → CompactAutocompleteSelect-394a96f2.js} +108 -49
- package/{CompactStarRating-158381c8.js → CompactStarRating-c02080fd.js} +50 -30
- package/{CompactTextInput-90c41fe2.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-52e8f6dd.js → Instructions-5d777a4d.js} +19 -8
- package/{MultiLevelCheckboxSelect-3fa37f40.js → MultiLevelCheckboxSelect-d8e6ab4c.js} +86 -34
- package/{MultiSelect-32e3ed90.js → MultiSelect-f9fbcdff.js} +89 -30
- package/Popover-8e025dcb.js +146 -0
- 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-77fd5efd.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 +4 -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 +10 -9
- package/{defaultTheme-cd01e6c2.js → defaultTheme-b6420d7d.js} +1 -10
- package/inputs/ActionButton/index.js +2 -2
- package/inputs/Button/index.js +6 -5
- package/inputs/Checkbox/index.js +2 -2
- package/inputs/CompactAutocompleteSelect/index.js +12 -11
- package/inputs/CompactStarRating/index.js +11 -10
- package/inputs/CompactTextInput/index.js +11 -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 +11 -10
- package/inputs/TextInput/index.js +2 -2
- package/inputs/index.js +26 -25
- package/layout/InputGroup/index.js +2 -2
- package/layout/SectionSeparator/index.js +2 -2
- package/layout/index.js +3 -3
- package/package.json +6 -6
- package/{react-select-creatable.esm-753a67f1.js → react-select-creatable.esm-a9d74549.js} +9 -7
- package/{shift-away-subtle-631cd794.js → shift-away-subtle-e3830923.js} +1 -1
- package/widgets/AssetGallery/index.js +30 -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 +14 -13
- package/widgets/index.js +30 -29
- package/Popover-85ce744d.js +0 -131
|
@@ -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 polished = require('polished');
|
|
@@ -10,8 +10,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
|
|
13
|
+
var ActionButton$1 = styled__default["default"].button.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
14
|
+
displayName: "ActionButtonstyled__ActionButton",
|
|
15
|
+
componentId: "sc-14sb7cm-0"
|
|
16
|
+
})(["display:inline-flex;justify-content:center;align-items:center;border-radius:50%;width:", ";height:", ";border:0;color:inherit;background-color:transparent;", " background-position:center;background-repeat:no-repeat;background-size:0 0;transition:background-size 250ms ease;cursor:pointer;", " ", " &:disabled{opacity:0.5;color:inherit;cursor:not-allowed;}svg{width:100%;max-width:", ";max-height:", ";pointer-events:none;transition:color 250ms;}"], function (props) {
|
|
15
17
|
return "".concat(props.actionWidthHeight[0], "px");
|
|
16
18
|
}, function (props) {
|
|
17
19
|
return "".concat(props.actionWidthHeight[1], "px");
|
|
@@ -21,7 +23,7 @@ var ActionButton$1 = styled__default["default"].button.attrs(defaultTheme.applyD
|
|
|
21
23
|
var lightThemeBgColor = (_props$backgroundColo3 = props === null || props === void 0 ? void 0 : (_props$backgroundColo4 = props.backgroundColors) === null || _props$backgroundColo4 === void 0 ? void 0 : _props$backgroundColo4[1]) !== null && _props$backgroundColo3 !== void 0 ? _props$backgroundColo3 : props.theme.getColor('gray-200');
|
|
22
24
|
return props.theme.themeProp('background-image', "radial-gradient(circle at center, ".concat(darkThemeBgColor, " 50%, transparent 50%)"), "radial-gradient(circle at center, ".concat(lightThemeBgColor, " 50%, transparent 50%)"));
|
|
23
25
|
}, function (props) {
|
|
24
|
-
return styled.css(
|
|
26
|
+
return styled.css(["", ":not(:disabled){background-size:200% 200%;svg{", ";}}"], props.active ? '' : ':hover', function (props) {
|
|
25
27
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-700'));
|
|
26
28
|
});
|
|
27
29
|
}, function (props) {
|
|
@@ -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 lodash = require('lodash');
|
|
@@ -10,8 +10,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
|
|
13
|
+
var Alert$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
14
|
+
displayName: "Alertstyled__Alert",
|
|
15
|
+
componentId: "sc-1pjcgpa-0"
|
|
16
|
+
})(["display:flex;flex-direction:column;padding:", ";width:", ";box-sizing:border-box;", " ", " ", " text-align:", ";"], function (props) {
|
|
15
17
|
var _props$verticalPaddin, _props$horizontalPadd;
|
|
16
18
|
var verticalPadding = (_props$verticalPaddin = props.verticalPadding) !== null && _props$verticalPaddin !== void 0 ? _props$verticalPaddin : 17;
|
|
17
19
|
var horizontalPadding = (_props$horizontalPadd = props.horizontalPadding) !== null && _props$horizontalPadd !== void 0 ? _props$horizontalPadd : 30;
|
|
@@ -19,22 +21,25 @@ var Alert$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultThem
|
|
|
19
21
|
}, function (props) {
|
|
20
22
|
return props.width ? "".concat(props.width, "px") : '100%';
|
|
21
23
|
}, function (props) {
|
|
22
|
-
return props.warning && styled.css(
|
|
24
|
+
return props.warning && styled.css(["", ""], props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')));
|
|
23
25
|
}, function (props) {
|
|
24
|
-
return props.error && styled.css(
|
|
26
|
+
return props.error && styled.css(["", ""], props.theme.themeProp('background', '#7F1B1B', props.theme.getColor('red-200')));
|
|
25
27
|
}, function (props) {
|
|
26
|
-
return props.info && styled.css(
|
|
28
|
+
return props.info && styled.css(["background:transparent;"]);
|
|
27
29
|
}, function (props) {
|
|
28
30
|
return props.align === 'center' ? 'center' : 'left';
|
|
29
31
|
});
|
|
30
|
-
var AlertRender = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
32
|
+
var AlertRender = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
33
|
+
displayName: "Alertstyled__AlertRender",
|
|
34
|
+
componentId: "sc-1pjcgpa-1"
|
|
35
|
+
})(["display:flex;align-items:center;word-break:break-word;", " ", " ", ";svg{width:12px;height:12px;}span{flex:1;padding-left:5px;", ";}"], function (props) {
|
|
31
36
|
return props.lineHeight ? "line-height: ".concat(props.lineHeight, "px;") : null;
|
|
32
37
|
}, function (props) {
|
|
33
38
|
return props.fontSize ? "font-size: ".concat(props.fontSize, "px;") : null;
|
|
34
39
|
}, function (props) {
|
|
35
40
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'));
|
|
36
41
|
}, function (props) {
|
|
37
|
-
return props.lineClamp ? styled.css(
|
|
42
|
+
return props.lineClamp ? styled.css(["display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;"], props.lineClamp) : null;
|
|
38
43
|
});
|
|
39
44
|
|
|
40
45
|
var _excluded = ["warning", "error", "type", "alertMessage", "align", "icon", "fontSize", "lineHeight", "lineClamp", "verticalPadding", "horizontalPadding", "width"];
|