@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.
Files changed (59) hide show
  1. package/{ActionButton-b2345555.js → ActionButton-df714c16.js} +6 -4
  2. package/{Alert-d69a3f95.js → Alert-28de48e1.js} +13 -8
  3. package/{AssetAction-65eebe9b.js → AssetAction-163f4042.js} +286 -106
  4. package/{AssetPreviewTopBar-b1fe3188.js → AssetPreviewTopBar-5636a6e9.js} +23 -9
  5. package/{Badge-e984e6f5.js → Badge-2e008fe7.js} +21 -10
  6. package/{Button-39607724.js → Button-700afca4.js} +58 -32
  7. package/{Checkbox-ad9c9e54.js → Checkbox-89fb44b0.js} +29 -12
  8. package/{CompactAutocompleteSelect-7d05d707.js → CompactAutocompleteSelect-394a96f2.js} +108 -49
  9. package/{CompactStarRating-d4cfae17.js → CompactStarRating-c02080fd.js} +50 -30
  10. package/{CompactTextInput-f89988be.js → CompactTextInput-1a216516.js} +72 -43
  11. package/{ContextMenu-4eb8fdc5.js → ContextMenu-265b13dc.js} +5 -3
  12. package/{ContextMenuItem-c536b460.js → ContextMenuItem-9008feb7.js} +16 -8
  13. package/{InputGroup-a89a0ea3.js → InputGroup-daac9ea0.js} +5 -3
  14. package/{Instructions-c8502398.js → Instructions-5d777a4d.js} +19 -8
  15. package/{MultiLevelCheckboxSelect-6be69491.js → MultiLevelCheckboxSelect-d8e6ab4c.js} +86 -34
  16. package/{MultiSelect-81e7016c.js → MultiSelect-f9fbcdff.js} +89 -30
  17. package/{Popover-c5e425a7.js → Popover-8e025dcb.js} +8 -6
  18. package/{Radio-55db4781.js → Radio-ecf4226c.js} +11 -6
  19. package/{SectionSeparator-af8dc1ce.js → SectionSeparator-e69cddfd.js} +5 -3
  20. package/{Switch-04ecd8d0.js → Switch-76d7d568.js} +27 -10
  21. package/{Tab-e43241f0.js → Tab-74c2bca2.js} +5 -3
  22. package/{Tabs-cfc08c6b.js → Tabs-41bd6cc1.js} +28 -14
  23. package/{TextArea-6e15b44f.js → TextArea-40baf21d.js} +87 -55
  24. package/{TextInput-9a995449.js → TextInput-c1bb5c8c.js} +49 -26
  25. package/{Tooltip-a68a7e49.js → Tooltip-dbd1bc99.js} +6 -4
  26. package/{VerificationStatusIcon-7b0e23fe.js → VerificationStatusIcon-b43db48d.js} +14 -6
  27. package/data/Alert/index.js +2 -2
  28. package/data/Badge/index.js +2 -2
  29. package/data/Popover/index.js +3 -3
  30. package/data/Tab/index.js +2 -2
  31. package/data/Tabs/index.js +3 -3
  32. package/data/Tooltip/index.js +3 -3
  33. package/data/index.js +9 -9
  34. package/{defaultTheme-cd01e6c2.js → defaultTheme-b6420d7d.js} +1 -10
  35. package/inputs/ActionButton/index.js +2 -2
  36. package/inputs/Button/index.js +5 -5
  37. package/inputs/Checkbox/index.js +2 -2
  38. package/inputs/CompactAutocompleteSelect/index.js +11 -11
  39. package/inputs/CompactStarRating/index.js +10 -10
  40. package/inputs/CompactTextInput/index.js +10 -10
  41. package/inputs/MultiSelect/index.js +3 -3
  42. package/inputs/Radio/index.js +2 -2
  43. package/inputs/Switch/index.js +2 -2
  44. package/inputs/TextArea/index.js +10 -10
  45. package/inputs/TextInput/index.js +2 -2
  46. package/inputs/index.js +25 -25
  47. package/layout/InputGroup/index.js +2 -2
  48. package/layout/SectionSeparator/index.js +2 -2
  49. package/layout/index.js +3 -3
  50. package/package.json +5 -5
  51. package/{react-select-creatable.esm-9745dc34.js → react-select-creatable.esm-a9d74549.js} +1 -1
  52. package/{shift-away-subtle-631cd794.js → shift-away-subtle-e3830923.js} +1 -1
  53. package/widgets/AssetGallery/index.js +29 -29
  54. package/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -2
  55. package/widgets/ContextMenu/ContextMenuItem/index.js +2 -2
  56. package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +5 -3
  57. package/widgets/ContextMenu/index.js +2 -2
  58. package/widgets/Instructions/index.js +13 -13
  59. package/widgets/index.js +29 -29
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var defaultTheme = require('./defaultTheme-cd01e6c2.js');
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 _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
45
- var AssetPreviewTopBar$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n box-sizing: border-box;\n align-items: center;\n border-bottom: ", ";\n color: inherit;\n display: flex;\n font-family: ", ";\n font-weight: 400;\n min-height: 72px;\n padding: 0 24px;\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
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(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n cursor: not-allowed;\n "])));
56
+ return props.disabled && styled.css(["cursor:not-allowed;"]);
55
57
  });
56
- var BackButtonContainer = styled__default["default"].a.attrs(defaultTheme.applyDefaultTheme)(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n font-size: 1.125rem;\n ", ";\n\n ", "\n\n &:hover {\n cursor: pointer;\n }\n\n > svg {\n height: 24px;\n margin-right: 16px;\n width: 24px;\n }\n"])), function (props) {
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(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n pointer-events: none;\n "])));
64
+ return props.disabled && styled.css(["opacity:0.5;pointer-events:none;"]);
60
65
  });
61
- var BackHoverEffect = styled__default["default"].div(_templateObject5 || (_templateObject5 = defaultTheme._taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n\n > svg {\n height: 24px;\n margin-right: 16px;\n width: 24px;\n transition: transform 0.3s ease-in-out;\n }\n\n &:hover > svg {\n transform: translateX(-2px);\n }\n"])));
62
- var LeftText = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_templateObject6 || (_templateObject6 = defaultTheme._taggedTemplateLiteral(["\n font-size: 1.125rem;\n margin-left: 16px;\n\n ", ";\n"])), function (props) {
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)(_templateObject7 || (_templateObject7 = defaultTheme._taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n margin-left: auto;\n\n > span {\n margin-left: 16px;\n }\n"])));
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-cd01e6c2.js');
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 _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
13
- var Badge$1 = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n align-content: center;\n display: ", ";\n font-family: ", ";\n font-size: 1rem;\n font-weight: 500;\n min-height: 24px;\n position: relative;\n width: ", ";\n"])), function (props) {
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)(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n align-self: center;\n height: fit-content;\n margin-right: 8px;\n"])));
21
- var BadgeLabel = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n border-radius: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n height: ", ";\n letter-spacing: 0.32px;\n margin-left: ", ";\n position: ", ";\n right: 0;\n transform: ", ";\n\n ", "\n\n ", "\n\n ", "\n \n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
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(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n width: ", "px;\n "])), props.width) : null;
50
+ return props.width ? styled.css(["width:", "px;"], props.width) : null;
43
51
  }, function (props) {
44
- return props.minWidth ? styled.css(_templateObject5 || (_templateObject5 = defaultTheme._taggedTemplateLiteral(["\n min-width: ", "px;\n "])), props.minWidth) : null;
52
+ return props.minWidth ? styled.css(["min-width:", "px;"], props.minWidth) : null;
45
53
  }, function (props) {
46
- return props.minHeight ? styled.css(_templateObject6 || (_templateObject6 = defaultTheme._taggedTemplateLiteral(["\n min-height: ", "px;\n "])), props.minHeight) : null;
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(_templateObject7 || (_templateObject7 = defaultTheme._taggedTemplateLiteral(["\n padding: ", " ", ";\n "])), verticalPadding, horizontalPadding);
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)(_templateObject8 || (_templateObject8 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-right: ", ";\n svg {\n height: 12px;\n }\n"])), function (props) {
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-cd01e6c2.js');
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-c5e425a7.js');
7
- var ContextMenu = require('./ContextMenu-4eb8fdc5.js');
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 _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;
16
- var Button$1 = styled__default["default"].button.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n position: relative;\n border-radius: 3px;\n font-family: inherit;\n font-size: 0.875rem;\n font-weight: 400;\n padding: 12px 16px;\n cursor: pointer;\n background: ", ";\n border: 2px solid ", ";\n transition: all 250ms, opacity 200ms;\n\n &:hover,\n &.dropdown-is-active {\n background: #296c58;\n border-color: #296c58;\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"])), function (props) {
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(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n background: ", ";\n border-color: ", ";\n\n ", "\n\n &:hover,\n &.dropdown-is-active {\n background: ", ";\n border-color: ", ";\n }\n "])), function (props) {
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(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n background: transparent;\n transition: none;\n\n ", "\n\n ", "\n\n &:hover,\n &.dropdown-is-active {\n background-color: #296c58;\n\n ", "\n\n ", "\n }\n "])), 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')));
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(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n ", "\n\n ", "\n\n &:hover,\n &.dropdown-is-active {\n background: ", ";\n\n ", "\n\n ", "\n }\n "])), 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')));
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(_templateObject5 || (_templateObject5 = defaultTheme._taggedTemplateLiteral(["\n &:hover,\n &.dropdown-is-active {\n ", "\n }\n "])), props.theme.themeProp('border-color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700')));
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(_templateObject6 || (_templateObject6 = defaultTheme._taggedTemplateLiteral(["\n width: 100%;\n "])));
41
+ return props.block && styled.css(["width:100%;"]);
40
42
  }, function (props) {
41
- return props.disabled && styled.css(_templateObject7 || (_templateObject7 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n "])));
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(_templateObject8 || (_templateObject8 = defaultTheme._taggedTemplateLiteral(["\n padding: 1px 16px;\n height: 24px;\n "])));
45
+ return props.size === 'x-small' && styled.css(["padding:1px 16px;height:24px;"]);
44
46
  }, function (props) {
45
- return props.size === 'small' && styled.css(_templateObject9 || (_templateObject9 = defaultTheme._taggedTemplateLiteral(["\n padding: 6px 16px;\n "])));
47
+ return props.size === 'small' && styled.css(["padding:6px 16px;"]);
46
48
  }, function (props) {
47
- return props.size === 'large' && styled.css(_templateObject10 || (_templateObject10 = defaultTheme._taggedTemplateLiteral(["\n padding: 16px 16px;\n "])));
49
+ return props.size === 'large' && styled.css(["padding:16px 16px;"]);
48
50
  }, function (props) {
49
- return props.singleAction && styled.css(_templateObject11 || (_templateObject11 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 34px;\n border-radius: 3px !important;\n transition: all 250ms, opacity 200ms;\n "])));
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)(_templateObject12 || (_templateObject12 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n transform: scale(1);\n opacity: 1;\n transition: all 200ms;\n\n > svg {\n width: 100%;\n max-width: 16px;\n max-height: 16px;\n margin-right: 8px;\n\n ", ";\n\n ", ";\n }\n\n ", "\n\n ", ";\n"])), function (props) {
52
- return props.size === 'small' && styled.css(_templateObject13 || (_templateObject13 = defaultTheme._taggedTemplateLiteral(["\n max-width: 13px;\n max-height: 13px;\n "])));
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(_templateObject14 || (_templateObject14 = defaultTheme._taggedTemplateLiteral(["\n max-width: 11px;\n max-height: 11px;\n "])));
59
+ return props.size === 'x-small' && styled.css(["max-width:11px;max-height:11px;"]);
55
60
  }, function (props) {
56
- return props.$loading && styled.css(_templateObject15 || (_templateObject15 = defaultTheme._taggedTemplateLiteral(["\n transform: scale(0.95);\n opacity: 0;\n "])));
61
+ return props.$loading && styled.css(["transform:scale(0.95);opacity:0;"]);
57
62
  }, function (props) {
58
- return props.singleAction && styled.css(_templateObject16 || (_templateObject16 = defaultTheme._taggedTemplateLiteral(["\n svg {\n width: 100% !important;\n height: 100% !important;\n margin-right: 24px;\n }\n "])));
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)(_templateObject17 || (_templateObject17 = defaultTheme._taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n padding: 4px;\n background: inherit;\n opacity: 0;\n transition: opacity 200ms;\n box-sizing: border-box;\n\n ", "\n"])), function (props) {
61
- return props.$loading && styled.css(_templateObject18 || (_templateObject18 = defaultTheme._taggedTemplateLiteral(["\n opacity: 1;\n "])));
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)(_templateObject19 || (_templateObject19 = defaultTheme._taggedTemplateLiteral(["\n height: 100%;\n color: inherit;\n transform: rotate(-88deg);\n"])));
64
- var LoadingIndicatorSvgCircle = styled__default["default"].circle.attrs(defaultTheme.applyDefaultTheme)(_templateObject20 || (_templateObject20 = defaultTheme._taggedTemplateLiteral(["\n transition: stroke-dashoffset 300ms linear;\n stroke-dasharray: 113;\n"])));
65
- var ButtonWrapper = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)(_templateObject21 || (_templateObject21 = defaultTheme._taggedTemplateLiteral(["\n white-space: nowrap;\n"])));
66
- var MainButtonContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject22 || (_templateObject22 = defaultTheme._taggedTemplateLiteral(["\n display: inline-block;\n button {\n ", ";\n\n ", ";\n }\n"])), function (props) {
67
- return props.dropdownItems && styled.css(_templateObject23 || (_templateObject23 = defaultTheme._taggedTemplateLiteral(["\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n "])));
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(_templateObject24 || (_templateObject24 = defaultTheme._taggedTemplateLiteral(["\n border-right: none;\n "])));
89
+ return props.dropdownItems && props.outlined && styled.css(["border-right:none;"]);
70
90
  });
71
- var MainButtonContainerSingle = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject25 || (_templateObject25 = defaultTheme._taggedTemplateLiteral(["\n display: inline-block;\n ", ";\n\n button {\n ", ";\n }\n"])), function (props) {
72
- return props.singleAction && styled.css(_templateObject26 || (_templateObject26 = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n border-radius: 3px !important;\n transition: all 250ms, opacity 200ms;\n "])));
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(_templateObject27 || (_templateObject27 = defaultTheme._taggedTemplateLiteral(["\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n "])));
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)(_templateObject28 || (_templateObject28 = defaultTheme._taggedTemplateLiteral(["\n display: inline-block;\n\n button {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n\n ", ";\n }\n\n svg {\n color: inherit;\n height: 7px;\n width: 12px;\n\n ", ";\n }\n"])), function (props) {
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-cd01e6c2.js');
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)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"])));
17
- var CheckIcon = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0;\n transform: scale(0.1);\n transition: all 200ms;\n position: absolute;\n width: 12px;\n top: 4px;\n left: 3px;\n color: ", ";\n\n svg {\n width: 100%;\n display: block;\n }\n"])), function (props) {
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)(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0;\n transform: scale(0.1);\n transition: all 200ms;\n position: absolute;\n height: 2px;\n top: 8px;\n left: 4px;\n background: ", ";\n width: 10px;\n"])), function (props) {
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)(_templateObject4 || (_templateObject4 = defaultTheme._taggedTemplateLiteral(["\n display: inline-flex;\n position: relative;\n cursor: pointer;\n user-select: none;\n min-height: ", ";\n text-align: left;\n flex-wrap: wrap;\n flex: 1;\n line-height: ", ";\n margin-right: auto;\n\n & input[type='checkbox'] {\n position: absolute;\n opacity: 0;\n pointer-events: none;\n margin: 0;\n }\n\n &::before {\n content: '';\n border: 2px solid ", ";\n border-radius: 2px;\n transition: all 200ms;\n width: ", ";\n height: ", ";\n box-sizing: border-box;\n ", "\n }\n\n &:has(input[type='checkbox']:checked) {\n &::before {\n background: ", ";\n border-color: ", ";\n }\n }\n\n &:has(input[type='checkbox']:not([data-indeterminate='true']):checked) {\n ", " {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n &:has(input[type='checkbox'][data-indeterminate='true']:checked) {\n ", " {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n ", "\n\n ", "\n"])), checkboxSize, checkboxSize, function (props) {
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(_templateObject5 || (_templateObject5 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.75;\n "])));
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(_templateObject6 || (_templateObject6 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: default;\n pointer-events: none;\n user-select: text;\n "])));
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(_templateObject7 || (_templateObject7 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: not-allowed;\n "])));
45
+ return props.disabled && styled.css(["opacity:0.5;cursor:not-allowed;"]);
35
46
  });
36
- var CheckboxVisualLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject8 || (_templateObject8 = defaultTheme._taggedTemplateLiteral(["\n padding-left: 10px;\n font-weight: 400;\n font-size: 0.875rem;\n flex: 1;\n\n ", ";\n"])), function (props) {
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)(_templateObject9 || (_templateObject9 = defaultTheme._taggedTemplateLiteral(["\n margin: 0.375rem 0 0 0;\n font-size: 0.75rem;\n line-height: 1.333;\n\n ", ";\n\n ", "\n"])), function (props) {
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(_templateObject10 || (_templateObject10 = defaultTheme._taggedTemplateLiteral(["\n content: 'error';\n ", "\n "])), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
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) {