@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,12 +1,12 @@
|
|
|
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 styled = require('styled-components');
|
|
7
7
|
var close = require('./close-1751121a.js');
|
|
8
8
|
var Select = require('react-select');
|
|
9
|
-
var reactSelectCreatable_esm = require('./react-select-creatable.esm-
|
|
9
|
+
var reactSelectCreatable_esm = require('./react-select-creatable.esm-a9d74549.js');
|
|
10
10
|
var reactSelectAsyncPaginate = require('react-select-async-paginate');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -15,32 +15,61 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
15
15
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
16
16
|
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select);
|
|
17
17
|
|
|
18
|
-
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;
|
|
19
18
|
var AsyncCreatableSelectPaginate = reactSelectAsyncPaginate.withAsyncPaginate(reactSelectCreatable_esm.CreatableSelect$1);
|
|
20
19
|
var showMoreHeight = 114;
|
|
21
|
-
var sharedStyle = styled.css(
|
|
20
|
+
var sharedStyle = styled.css(["font-family:", ";font-size:12px;font-weight:400;position:relative;"], function (props) {
|
|
22
21
|
return props.theme.primaryFontFamily;
|
|
23
22
|
});
|
|
24
|
-
var Label = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme)
|
|
23
|
+
var Label = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
24
|
+
displayName: "MultiSelectstyled__Label",
|
|
25
|
+
componentId: "sc-1vcnhdt-0"
|
|
26
|
+
})(["", ";flex-basis:33.33%;font-size:0.875rem;line-height:1rem;cursor:pointer;height:19px;display:flex;align-items:center;"], function (props) {
|
|
25
27
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'));
|
|
26
28
|
});
|
|
27
|
-
var MultiSelect$1 = styled__default["default"](Select__default["default"]).attrs(defaultTheme.applyDefaultTheme)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
|
|
29
|
+
var MultiSelect$1 = styled__default["default"](Select__default["default"]).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
30
|
+
displayName: "MultiSelectstyled__MultiSelect",
|
|
31
|
+
componentId: "sc-1vcnhdt-1"
|
|
32
|
+
})(["", ""], sharedStyle);
|
|
33
|
+
var CreatableMultiSelect = styled__default["default"](reactSelectCreatable_esm.CreatableSelect$1).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
34
|
+
displayName: "MultiSelectstyled__CreatableMultiSelect",
|
|
35
|
+
componentId: "sc-1vcnhdt-2"
|
|
36
|
+
})(["", ""], sharedStyle);
|
|
37
|
+
var AsyncCreatableMultiSelect = styled__default["default"](AsyncCreatableSelectPaginate).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
38
|
+
displayName: "MultiSelectstyled__AsyncCreatableMultiSelect",
|
|
39
|
+
componentId: "sc-1vcnhdt-3"
|
|
40
|
+
})(["", ""], sharedStyle);
|
|
41
|
+
var AsyncMultiSelect = styled__default["default"](reactSelectAsyncPaginate.AsyncPaginate).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
42
|
+
displayName: "MultiSelectstyled__AsyncMultiSelect",
|
|
43
|
+
componentId: "sc-1vcnhdt-4"
|
|
44
|
+
})(["", ""], sharedStyle);
|
|
45
|
+
var MultiSelectWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
46
|
+
displayName: "MultiSelectstyled__MultiSelectWrapper",
|
|
47
|
+
componentId: "sc-1vcnhdt-5"
|
|
48
|
+
})(["position:relative;"]);
|
|
49
|
+
var Control = styled__default["default"](Select.components.Control).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
50
|
+
displayName: "MultiSelectstyled__Control",
|
|
51
|
+
componentId: "sc-1vcnhdt-6"
|
|
52
|
+
})(["&&{align-items:flex-start;background:transparent;border:none;box-shadow:none;}:hover{cursor:", ";}"], function (props) {
|
|
33
53
|
return !props.isDisabled && props.focused || props.readOnly ? 'default' : 'pointer';
|
|
34
54
|
});
|
|
35
|
-
var ValueContainer = styled__default["default"](Select.components.ValueContainer)
|
|
55
|
+
var ValueContainer = styled__default["default"](Select.components.ValueContainer).withConfig({
|
|
56
|
+
displayName: "MultiSelectstyled__ValueContainer",
|
|
57
|
+
componentId: "sc-1vcnhdt-7"
|
|
58
|
+
})(["&&{align-items:flex-start;gap:8px;padding:0;max-height:", " !important;", "}"], function (props) {
|
|
36
59
|
return props.showMore ? props.error || props.warning ? '100%' : showMoreHeight + 16 + 'px' : '100%';
|
|
37
60
|
}, function (props) {
|
|
38
|
-
return (props.error || props.warning) && styled.css(
|
|
61
|
+
return (props.error || props.warning) && styled.css(["border:1px solid;border-radius:3px;padding:4px;border-color:", ";"], function (props) {
|
|
39
62
|
return props.error ? props.theme.getColor('red-500') : props.warning ? props.theme.getColor('orange-500') : 'inherit';
|
|
40
63
|
});
|
|
41
64
|
});
|
|
42
|
-
var MultiValueWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
43
|
-
|
|
65
|
+
var MultiValueWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
66
|
+
displayName: "MultiSelectstyled__MultiValueWrapper",
|
|
67
|
+
componentId: "sc-1vcnhdt-8"
|
|
68
|
+
})(["&&{border-radius:3px;margin:0;}"]);
|
|
69
|
+
var MultiValue = styled__default["default"](Select.components.MultiValue).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
70
|
+
displayName: "MultiSelectstyled__MultiValue",
|
|
71
|
+
componentId: "sc-1vcnhdt-9"
|
|
72
|
+
})(["&&{border-radius:3px;margin:0;", " ", " > div{align-items:center;display:flex;font-size:12px;min-height:26px;:first-of-type{padding:", ";}:last-child:not(:only-child){padding:0 8px 0 5px;height:100%;width:fit-content;}:last-child:not(:only-child):hover{background-color:", ";border-bottom-left-radius:0;border-top-left-radius:0;cursor:pointer;}svg{stroke:white;stroke-width:2px;width:8px;}:hover{cursor:pointer;}}"], function (props) {
|
|
44
73
|
return props.theme.themeProp('background-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-800'));
|
|
45
74
|
}, function (props) {
|
|
46
75
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-100'));
|
|
@@ -49,45 +78,75 @@ var MultiValue = styled__default["default"](Select.components.MultiValue).attrs(
|
|
|
49
78
|
}, function (props) {
|
|
50
79
|
return props.theme.getColor('red-500');
|
|
51
80
|
});
|
|
52
|
-
var MultiValueRemove = styled__default["default"](Select.components.MultiValueRemove).attrs(defaultTheme.applyDefaultTheme)
|
|
53
|
-
|
|
81
|
+
var MultiValueRemove = styled__default["default"](Select.components.MultiValueRemove).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
82
|
+
displayName: "MultiSelectstyled__MultiValueRemove",
|
|
83
|
+
componentId: "sc-1vcnhdt-10"
|
|
84
|
+
})([""]);
|
|
85
|
+
var Input = styled__default["default"](Select.components.Input).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
86
|
+
displayName: "MultiSelectstyled__Input",
|
|
87
|
+
componentId: "sc-1vcnhdt-11"
|
|
88
|
+
})(["align-self:center;font-size:", ";min-width:150px;", " ", "}"], function (props) {
|
|
54
89
|
return props.$focused ? '14px' : '12px';
|
|
55
90
|
}, function (props) {
|
|
56
91
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'));
|
|
57
92
|
}, function (props) {
|
|
58
|
-
return !props.$focused && styled.css(
|
|
93
|
+
return !props.$focused && styled.css(["", " :before{height:100%;white-space:nowrap;width:fit-content;content:'", "';}"], function (props) {
|
|
59
94
|
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
60
95
|
}, function (props) {
|
|
61
96
|
return props.edittext;
|
|
62
97
|
});
|
|
63
98
|
});
|
|
64
|
-
var DropdownMenu = styled__default["default"](Select.components.Menu).attrs(defaultTheme.applyDefaultTheme)
|
|
99
|
+
var DropdownMenu = styled__default["default"](Select.components.Menu).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
100
|
+
displayName: "MultiSelectstyled__DropdownMenu",
|
|
101
|
+
componentId: "sc-1vcnhdt-12"
|
|
102
|
+
})(["font-size:14px;", " ", ""], function (props) {
|
|
65
103
|
return props.theme.themeProp('background-color', props.theme.getColor('gray-600'), props.theme.getColor('white'));
|
|
66
104
|
}, function (props) {
|
|
67
105
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'));
|
|
68
106
|
});
|
|
69
|
-
var sharedOptionStyle = styled.css(
|
|
70
|
-
return props.isFocused && styled.css(
|
|
107
|
+
var sharedOptionStyle = styled.css(["", " ", " ", " :hover{cursor:pointer;}"], function (props) {
|
|
108
|
+
return props.isFocused && styled.css(["", ""], props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200')));
|
|
71
109
|
}, function (props) {
|
|
72
|
-
return props.isSelected && styled.css(
|
|
110
|
+
return props.isSelected && styled.css(["", " ", ""], props.theme.themeProp('background-color', 'transparent', 'transparent'), props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')));
|
|
73
111
|
}, function (props) {
|
|
74
|
-
return props.isFocused && props.isSelected && styled.css(
|
|
112
|
+
return props.isFocused && props.isSelected && styled.css(["", ""], props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200')));
|
|
75
113
|
});
|
|
76
|
-
var Option = styled__default["default"](Select.components.Option).attrs(defaultTheme.applyDefaultTheme)
|
|
77
|
-
|
|
78
|
-
|
|
114
|
+
var Option = styled__default["default"](Select.components.Option).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
115
|
+
displayName: "MultiSelectstyled__Option",
|
|
116
|
+
componentId: "sc-1vcnhdt-13"
|
|
117
|
+
})(["", ""], sharedOptionStyle);
|
|
118
|
+
var SelectedOption$1 = styled__default["default"](Select.components.Option).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
119
|
+
displayName: "MultiSelectstyled__SelectedOption",
|
|
120
|
+
componentId: "sc-1vcnhdt-14"
|
|
121
|
+
})(["", " display:flex !important;justify-content:space-between;"], sharedOptionStyle);
|
|
122
|
+
var DropdownOptionDeleteIcon = styled__default["default"](close.SvgClose).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
123
|
+
displayName: "MultiSelectstyled__DropdownOptionDeleteIcon",
|
|
124
|
+
componentId: "sc-1vcnhdt-15"
|
|
125
|
+
})(["stroke-width:1px;width:8px;", ""], function (props) {
|
|
79
126
|
return props.theme.themeProp('stroke', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'));
|
|
80
127
|
});
|
|
81
|
-
var ShowMoreWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
128
|
+
var ShowMoreWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
129
|
+
displayName: "MultiSelectstyled__ShowMoreWrapper",
|
|
130
|
+
componentId: "sc-1vcnhdt-16"
|
|
131
|
+
})(["align-items:end;display:flex;flex-direction:column;height:100%;left:0;position:absolute;max-height:", "px;top:0;width:100%;", " :hover{cursor:pointer;text-decoration:underline;}"], showMoreHeight + 16, function (props) {
|
|
82
132
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('emerald-500'));
|
|
83
133
|
});
|
|
84
|
-
var ShowMoreOverlay = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
134
|
+
var ShowMoreOverlay = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
135
|
+
displayName: "MultiSelectstyled__ShowMoreOverlay",
|
|
136
|
+
componentId: "sc-1vcnhdt-17"
|
|
137
|
+
})(["align-items:end;display:block;height:100%;max-height:", "px;left:0;top:0;width:100%;", ""], showMoreHeight, function (props) {
|
|
85
138
|
return props.theme.themeProp('background', 'transparent linear-gradient(180deg, #12121200 0%, #12121230 40%, #12121279 70%, #121212 95%, #121212 100%) 0% 0% no-repeat padding-box', 'transparent linear-gradient(180deg, #fefefe00 0%, #fefefe30 40%, #fefefe79 70%, #fefefe 95%, #fefefe 100%) 0% 0% no-repeat padding-box');
|
|
86
139
|
});
|
|
87
|
-
var ShowMoreText = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
140
|
+
var ShowMoreText = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
141
|
+
displayName: "MultiSelectstyled__ShowMoreText",
|
|
142
|
+
componentId: "sc-1vcnhdt-18"
|
|
143
|
+
})(["font-size:0.875rem;width:100%;", ""], function (props) {
|
|
88
144
|
return props.theme.themeProp('background-color', '#121212', '#fefefe');
|
|
89
145
|
});
|
|
90
|
-
var ErrorMessage = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
146
|
+
var ErrorMessage = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
147
|
+
displayName: "MultiSelectstyled__ErrorMessage",
|
|
148
|
+
componentId: "sc-1vcnhdt-19"
|
|
149
|
+
})(["color:", ";font-size:0.75rem;margin-top:8px;padding:0 12px;"], function (props) {
|
|
91
150
|
return props.error ? props.theme.getColor('red-500') : props.warning ? props.theme.getColor('orange-500') : 'inherit';
|
|
92
151
|
});
|
|
93
152
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-b6420d7d.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var styled = require('styled-components');
|
|
7
7
|
var polished = require('polished');
|
|
8
8
|
var TippyTooltip = require('@tippyjs/react');
|
|
9
|
-
require('./shift-away-subtle-
|
|
9
|
+
require('./shift-away-subtle-e3830923.js');
|
|
10
10
|
var maxSize = require('popper-max-size-modifier');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -16,8 +16,10 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
|
16
16
|
var TippyTooltip__default = /*#__PURE__*/_interopDefaultLegacy(TippyTooltip);
|
|
17
17
|
var maxSize__default = /*#__PURE__*/_interopDefaultLegacy(maxSize);
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
var Popover$1 = styled__default["default"](TippyTooltip__default["default"]).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
20
|
+
displayName: "Popoverstyled__Popover",
|
|
21
|
+
componentId: "sc-1as2yf3-0"
|
|
22
|
+
})(["font-family:", ";font-size:1rem;font-weight:400;color:inherit;border-radius:0;line-height:inherit;max-height:inherit;", " ", " ", " ", " ", " .tippy-content{padding:0;max-height:inherit;> div{max-height:inherit;}}.tippy-arrow{", "}&& > .tippy-arrow::before{position:absolute;border-color:transparent;border-style:solid;}& > .tippy-arrow::after{content:'';position:absolute;border-color:transparent;border-style:solid;}&[data-placement^='top']{& > .tippy-arrow:before{bottom:-16px;left:-5px;border-width:15px 13px 0;", "}& > .tippy-arrow:after{bottom:-15px;left:-5px;border-width:15px 13px 0;border-top-color:initial;transform-origin:center top;}}&[data-placement^='right']{& > .tippy-arrow:before{bottom:-5px;left:-16px;border-width:13px 15px 13px 0;", "}& > .tippy-arrow:after{bottom:-5px;left:-15px;border-width:13px 15px 13px 0;border-right-color:initial;transform-origin:center top;}}&[data-placement^='bottom']{& > .tippy-arrow:before{top:-16px;left:-5px;border-width:0 13px 15px 13px;", "}& > .tippy-arrow:after{top:-14.5px;left:-5px;border-width:0 13px 15px 13px;border-bottom-color:initial;transform-origin:center top;}}&[data-placement^='left']{& > .tippy-arrow::before{bottom:-5px;right:-16px;border-width:13px 0 13px 15px;", "}& > .tippy-arrow::after{bottom:-5px;right:-15px;border-width:13px 0 13px 15px;border-left-color:initial;transform-origin:center top;}}"], function (props) {
|
|
21
23
|
return props.theme.primaryFontFamily;
|
|
22
24
|
}, function (props) {
|
|
23
25
|
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white'));
|
|
@@ -26,13 +28,13 @@ var Popover$1 = styled__default["default"](TippyTooltip__default["default"]).att
|
|
|
26
28
|
}, function (props) {
|
|
27
29
|
return props.theme.themeProp('border', "1px solid ".concat(props.theme.getColor('gray-800')), "1px solid ".concat(props.theme.getColor('gray-300')));
|
|
28
30
|
}, function (props) {
|
|
29
|
-
return props.contextMenu && styled.css(
|
|
31
|
+
return props.contextMenu && styled.css(["border-radius:4px;", " ", ""], function (props) {
|
|
30
32
|
return props.theme.themeProp('border', 'none', 'none');
|
|
31
33
|
}, function (props) {
|
|
32
34
|
return props.theme.themeProp('box-shadow', "none", "0 1px 6px ".concat(polished.rgba(props.theme.getColor('gray-900'), 0.3)));
|
|
33
35
|
});
|
|
34
36
|
}, function (props) {
|
|
35
|
-
return props.contextMenuSublevel && styled.css(
|
|
37
|
+
return props.contextMenuSublevel && styled.css(["&[data-placement^='right-start'],&[data-placement^='left-start']{margin-top:-4px;}&[data-placement^='left']{margin-right:-6px;}&[data-placement^='right']{margin-left:-6px;}"]);
|
|
36
38
|
}, function (props) {
|
|
37
39
|
return props.theme.themeProp('color', props.theme.getColor('gray-700'), props.theme.getColor('white'), 1);
|
|
38
40
|
}, 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 nanoid = require('nanoid');
|
|
6
6
|
var polished = require('polished');
|
|
@@ -11,21 +11,26 @@ 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;
|
|
15
14
|
var radioSize = '18px';
|
|
16
|
-
var RadioLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
15
|
+
var RadioLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
16
|
+
displayName: "Radiostyled__RadioLabel",
|
|
17
|
+
componentId: "sc-3w4fhh-0"
|
|
18
|
+
})(["padding-left:", ";font-weight:400;font-size:0.875rem;", ";"], polished.math("".concat(radioSize, " + 10px")), function (props) {
|
|
17
19
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
|
|
18
20
|
});
|
|
19
|
-
var Radio$1 = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme)
|
|
21
|
+
var Radio$1 = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
22
|
+
displayName: "Radiostyled__Radio",
|
|
23
|
+
componentId: "sc-3w4fhh-1"
|
|
24
|
+
})(["display:block;position:relative;cursor:pointer;line-height:", ";user-select:none;&::before{content:'';position:absolute;border:2px solid ", ";width:", ";height:", ";top:0;border-radius:50%;transition:all 200ms;box-sizing:border-box;}&::after{content:'';position:absolute;width:8px;height:8px;top:5px;left:5px;border-radius:50%;transform:scale(0);transition:all 200ms;}&:has(input:checked){::before{border-color:", ";}::after{background:", ";transform:scale(1);}", "{opacity:1;}}&{input[type='radio']{position:absolute;opacity:0;pointer-events:none;}}", " ", ""], radioSize, function (props) {
|
|
20
25
|
return props.theme.getColor('gray-300');
|
|
21
26
|
}, radioSize, radioSize, function (props) {
|
|
22
27
|
return props.theme.getColor('emerald-500');
|
|
23
28
|
}, function (props) {
|
|
24
29
|
return props.theme.getColor('emerald-500');
|
|
25
30
|
}, RadioLabel, function (props) {
|
|
26
|
-
return props.readOnly && styled.css(
|
|
31
|
+
return props.readOnly && styled.css(["opacity:0.5;pointer-events:none;user-select:text;"]);
|
|
27
32
|
}, function (props) {
|
|
28
|
-
return props.disabled && styled.css(
|
|
33
|
+
return props.disabled && styled.css(["opacity:0.5;cursor:not-allowed;user-select:text;"]);
|
|
29
34
|
});
|
|
30
35
|
|
|
31
36
|
var _excluded = ["name", "value", "checked", "defaultChecked", "disabled", "readOnly", "label", "className", "style", "onChange", "onBlur"];
|
|
@@ -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,8 +9,10 @@ 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 SectionSeparator$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
13
|
+
displayName: "SectionSeparatorstyled__SectionSeparator",
|
|
14
|
+
componentId: "sc-b3b1hp-0"
|
|
15
|
+
})(["height:", ";width:", ";", ""], function (props) {
|
|
14
16
|
return props.vertical ? '100%' : '1px';
|
|
15
17
|
}, function (props) {
|
|
16
18
|
return props.vertical ? '1px' : '100%';
|
|
@@ -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 polished = require('polished');
|
|
@@ -11,34 +11,51 @@ 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;
|
|
15
14
|
var switchButtonSize = '16px';
|
|
16
|
-
var Switch$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
17
|
-
|
|
15
|
+
var Switch$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
16
|
+
displayName: "Switchstyled__Switch",
|
|
17
|
+
componentId: "sc-1ijpqlg-0"
|
|
18
|
+
})(["*{box-sizing:border-box;}display:flex;flex-direction:column;", " ", ""], function (props) {
|
|
19
|
+
return props.readOnly && styled.css(["opacity:0.5;> *{pointer-events:none;user-select:text;}"]);
|
|
18
20
|
}, function (props) {
|
|
19
|
-
return props.disabled && styled.css(
|
|
21
|
+
return props.disabled && styled.css(["opacity:0.5;cursor:not-allowed;*{pointer-events:none;user-select:text;}"]);
|
|
20
22
|
});
|
|
21
|
-
var SwitchIndicator = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
23
|
+
var SwitchIndicator = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
24
|
+
displayName: "Switchstyled__SwitchIndicator",
|
|
25
|
+
componentId: "sc-1ijpqlg-1"
|
|
26
|
+
})(["display:inline-block;position:relative;", " height:", ";width:32px;border-radius:20px;border:1px solid;", " transition:background 200ms;"], function (props) {
|
|
22
27
|
return props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('gray-200'));
|
|
23
28
|
}, polished.math("".concat(switchButtonSize, " + 2px")), function (props) {
|
|
24
29
|
return props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-300'));
|
|
25
30
|
});
|
|
26
|
-
var SwitchIndicatorButton = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
31
|
+
var SwitchIndicatorButton = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
32
|
+
displayName: "Switchstyled__SwitchIndicatorButton",
|
|
33
|
+
componentId: "sc-1ijpqlg-2"
|
|
34
|
+
})(["position:absolute;", " height:", ";width:", ";border-radius:50%;box-shadow:", " 0 0px 2px 0px;transition:left 200ms;"], function (props) {
|
|
27
35
|
return props.theme.themeProp('background', props.theme.getColor('gray-200'), props.theme.getColor('white'));
|
|
28
36
|
}, switchButtonSize, switchButtonSize, function (props) {
|
|
29
37
|
return props.theme.getColor('gray-500');
|
|
30
38
|
});
|
|
31
|
-
var SwitchIndicatorLabelText = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
39
|
+
var SwitchIndicatorLabelText = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
40
|
+
displayName: "Switchstyled__SwitchIndicatorLabelText",
|
|
41
|
+
componentId: "sc-1ijpqlg-3"
|
|
42
|
+
})(["padding-left:10px;font-weight:400;font-size:0.875rem;line-height:18px;", ";"], function (props) {
|
|
32
43
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
|
|
33
44
|
});
|
|
34
|
-
var SwitchLabel = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme)
|
|
45
|
+
var SwitchLabel = styled__default["default"].label.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
46
|
+
displayName: "Switchstyled__SwitchLabel",
|
|
47
|
+
componentId: "sc-1ijpqlg-4"
|
|
48
|
+
})(["display:inline-flex;margin-right:auto;cursor:pointer;input[type='checkbox']{position:absolute;opacity:0;}&:has(input[type='checkbox']:not(:checked)){", "{left:0;}}&:has(input[type='checkbox']:checked){", "{left:calc(100% - ", ");}", "{background:", ";", "}}&:has(input[type='checkbox']:focus-visible){", "{", "}}"], SwitchIndicatorButton, SwitchIndicatorButton, switchButtonSize, SwitchIndicator, function (props) {
|
|
35
49
|
return props.theme.getColor('emerald-500');
|
|
36
50
|
}, function (props) {
|
|
37
51
|
return props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-300'), 1);
|
|
38
52
|
}, SwitchIndicatorButton, function (props) {
|
|
39
53
|
return props.theme.themeProp('outline', "8px solid ".concat(polished.rgba(props.theme.getColor('emerald-500'), 0.5)), "8px solid ".concat(polished.rgba(props.theme.getColor('emerald-500'), 0.3)), 1);
|
|
40
54
|
});
|
|
41
|
-
var Description = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
55
|
+
var Description = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
56
|
+
displayName: "Switchstyled__Description",
|
|
57
|
+
componentId: "sc-1ijpqlg-5"
|
|
58
|
+
})(["margin:", " 0 0 0;font-size:0.75rem;line-height:1.333;", ";"], function (props) {
|
|
42
59
|
return props.spaciousDescription ? '16px' : '6px';
|
|
43
60
|
}, function (props) {
|
|
44
61
|
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
@@ -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,8 +9,10 @@ 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 Tab$1 = styled__default["default"].p.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
13
|
+
displayName: "Tabstyled__Tab",
|
|
14
|
+
componentId: "sc-hxlbpx-0"
|
|
15
|
+
})(["font-family:", ";font-size:1rem;font-weight:500;border-bottom:1px solid;min-height:35px;"], function (props) {
|
|
14
16
|
return props.theme.primaryFontFamily;
|
|
15
17
|
});
|
|
16
18
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-b6420d7d.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var Tab = require('./Tab-
|
|
6
|
+
var Tab = require('./Tab-74c2bca2.js');
|
|
7
7
|
var styled = require('styled-components');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -11,19 +11,27 @@ 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
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
var Tabs$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
15
|
+
displayName: "Tabsstyled__Tabs",
|
|
16
|
+
componentId: "sc-1tow7gi-0"
|
|
17
|
+
})(["display:block;position:relative;", ";"], function (props) {
|
|
18
|
+
return props.backgroundColor && styled.css(["background-color:", ";"], props.backgroundColor);
|
|
17
19
|
});
|
|
18
|
-
var TabHeaders = styled__default["default"].ul.attrs(defaultTheme.applyDefaultTheme)
|
|
19
|
-
|
|
20
|
+
var TabHeaders = styled__default["default"].ul.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
21
|
+
displayName: "Tabsstyled__TabHeaders",
|
|
22
|
+
componentId: "sc-1tow7gi-1"
|
|
23
|
+
})(["display:flex;overflow-x:auto;overflow-y:hidden;white-space:nowrap;gap:24px;margin:0;", ";", ";"], function (props) {
|
|
24
|
+
return !props.customPadding && styled.css(["padding:0;"]);
|
|
20
25
|
}, function (props) {
|
|
21
|
-
return props.customPadding && styled.css(
|
|
26
|
+
return props.customPadding && styled.css(["padding:0 ", ";"], props.customPadding);
|
|
22
27
|
});
|
|
23
|
-
var TabHeader = styled__default["default"].li.attrs(defaultTheme.applyDefaultTheme)
|
|
28
|
+
var TabHeader = styled__default["default"].li.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
29
|
+
displayName: "Tabsstyled__TabHeader",
|
|
30
|
+
componentId: "sc-1tow7gi-2"
|
|
31
|
+
})(["font-family:", ";text-transform:uppercase;font-weight:600;font-size:0.875rem;display:flex;padding-bottom:8px;letter-spacing:0.6px;cursor:pointer;border-bottom:1px solid;border-color:transparent;margin-bottom:1px;", ";&&:hover:not(:focus){", ";}"], function (props) {
|
|
24
32
|
return props.theme.secondaryFontFamily;
|
|
25
33
|
}, function (props) {
|
|
26
|
-
return props.active && styled.css(
|
|
34
|
+
return props.active && styled.css(["", ""], function (props) {
|
|
27
35
|
return props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-700'));
|
|
28
36
|
});
|
|
29
37
|
}, function (props) {
|
|
@@ -41,13 +49,19 @@ var TabHeader = styled__default["default"].li.attrs(defaultTheme.applyDefaultThe
|
|
|
41
49
|
}
|
|
42
50
|
});
|
|
43
51
|
});
|
|
44
|
-
var TabContent = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
45
|
-
|
|
52
|
+
var TabContent = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
53
|
+
displayName: "Tabsstyled__TabContent",
|
|
54
|
+
componentId: "sc-1tow7gi-3"
|
|
55
|
+
})(["display:block;"]);
|
|
56
|
+
var TabHeaderBorder = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
57
|
+
displayName: "Tabsstyled__TabHeaderBorder",
|
|
58
|
+
componentId: "sc-1tow7gi-4"
|
|
59
|
+
})(["border-top:1px solid;", ";", ";", ";"], function (props) {
|
|
46
60
|
return props.theme.themeProp('border-color', props.theme.getColor('gray-600'), '#F0F2F5');
|
|
47
61
|
}, function (props) {
|
|
48
|
-
return !props.customPadding && styled.css(
|
|
62
|
+
return !props.customPadding && styled.css(["margin:-2px 0;"]);
|
|
49
63
|
}, function (props) {
|
|
50
|
-
return props.customPadding && styled.css(
|
|
64
|
+
return props.customPadding && styled.css(["margin:-2px ", ";"], props.customPadding);
|
|
51
65
|
});
|
|
52
66
|
|
|
53
67
|
var _excluded = ["children", "defaultMinHeight", "customPadding"];
|