@ntbjs/react-components 2.0.0-rc.26 → 2.0.0-rc.28
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/build/{ActionButton-03dc5f67.js → ActionButton-4db754c3.js} +17 -24
- package/build/{Alert-8a511bdc.js → Alert-e6847a22.js} +29 -36
- package/build/{AssetAction-d081e4b7.js → AssetGallery-f67393d4.js} +588 -622
- package/build/{Badge-aa4cd9c1.js → Badge-d93586a9.js} +35 -42
- package/build/{Button-2e26f5da.js → Button-179a2fe4.js} +83 -90
- package/build/{Checkbox-0b8faf49.js → Checkbox-4a5fd716.js} +45 -52
- package/build/{CompactAutocompleteSelect-797778cb.js → CompactAutocompleteSelect-52c49513.js} +116 -125
- package/build/{CompactStarRating-da21b53f.js → CompactStarRating-9af2f427.js} +76 -101
- package/build/{CompactTextInput-d56aec71.js → CompactTextInput-42ca5d42.js} +104 -129
- package/build/InputGroup-1294d190.js +23 -0
- package/build/{MultiLevelCheckboxSelect-d229cf98.js → MultiLevelCheckboxSelect-d8044c88.js} +139 -167
- package/build/{MultiSelect-d7920eb1.js → MultiSelect-9f497e62.js} +81 -90
- package/build/{Popover-c4be47ea.js → Popover-20050b91.js} +35 -44
- package/build/{Radio-150fb2c9.js → Radio-73ca3ae2.js} +28 -35
- package/build/SectionSeparator-f47760a2.js +31 -0
- package/build/{Switch-d2d6e9ec.js → Switch-ecf3122b.js} +35 -42
- package/build/Tab-04d435c3.js +32 -0
- package/build/{Tabs-b06c0e24.js → Tabs-74d1ea8a.js} +37 -44
- package/build/{TextArea-26d3c8a1.js → TextArea-1e5b9201.js} +105 -113
- package/build/{TextInput-3a567daa.js → TextInput-fab35842.js} +78 -86
- package/build/Tooltip-c1d1199e.js +65 -0
- package/build/{VerificationStatusIcon-9876b68f.js → VerificationStatusIcon-49cb1c1b.js} +19 -44
- package/build/{_rollupPluginBabelHelpers-4b342fad.js → _rollupPluginBabelHelpers-c245b26a.js} +1 -3
- package/build/arrow-forward-ad12c5f3.js +15 -0
- package/build/close-a5d37608.js +15 -0
- package/build/data/Alert/index.js +6 -12
- package/build/data/Badge/index.js +5 -11
- package/build/data/Popover/index.js +10 -16
- package/build/data/Tab/index.js +5 -11
- package/build/data/Tabs/index.js +7 -13
- package/build/data/Tooltip/index.js +7 -13
- package/build/data/index.js +16 -30
- package/build/{defaultTheme-d9a7342e.js → defaultTheme-1bcc2541.js} +3 -7
- package/build/edit-note-283a0e15.js +15 -0
- package/build/expand-more-c5523c46.js +15 -0
- package/build/inputs/ActionButton/index.js +6 -12
- package/build/inputs/Button/index.js +13 -19
- package/build/inputs/Checkbox/index.js +6 -12
- package/build/inputs/CompactAutocompleteSelect/index.js +23 -29
- package/build/inputs/CompactStarRating/index.js +17 -23
- package/build/inputs/CompactTextInput/index.js +19 -25
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +26 -0
- package/build/inputs/MultiSelect/index.js +10 -16
- package/build/inputs/Radio/index.js +7 -13
- package/build/inputs/Switch/index.js +6 -12
- package/build/inputs/TextArea/index.js +20 -26
- package/build/inputs/TextInput/index.js +9 -15
- package/build/inputs/index.js +40 -60
- package/build/layout/InputGroup/index.js +5 -11
- package/build/layout/SectionSeparator/index.js +5 -11
- package/build/layout/index.js +6 -15
- package/build/{shift-away-subtle-158617af.js → shift-away-subtle-0dd94a03.js} +3 -5
- package/build/ssr/index.js +1 -12
- package/build/styles/utils/colors.scss +4 -4
- package/build/warning-circle-24f3efcd.js +15 -0
- package/build/widgets/AssetGallery/AssetGallery.js +45 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +127 -0
- package/build/widgets/ContextMenu/ContextMenu.js +26 -0
- package/build/{ContextMenuItem-3967010d.js → widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js} +23 -48
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +37 -0
- package/build/{InfoCard-d0fdf377.js → widgets/InfoCard/InfoCard.js} +27 -34
- package/build/widgets/Instructions/Instructions.js +255 -0
- package/build/{ProgressBar-2d26c1fb.js → widgets/ProgressBar/ProgressBar.js} +39 -46
- package/build/widgets/index.js +50 -65
- package/package.json +3 -3
- package/styles/utils/colors.scss +4 -4
- package/build/AssetPreviewTopBar-623cfa18.js +0 -152
- package/build/ContextMenu-82f9d728.js +0 -33
- package/build/InputGroup-8d4a4644.js +0 -30
- package/build/Instructions-af191987.js +0 -274
- package/build/SectionSeparator-e06c7660.js +0 -38
- package/build/Tab-ccbca1f2.js +0 -39
- package/build/Tooltip-d5882b82.js +0 -73
- package/build/arrow-forward-d7c77ae3.js +0 -37
- package/build/close-1751121a.js +0 -37
- package/build/edit-note-cefe2215.js +0 -37
- package/build/expand-more-d74e2bd2.js +0 -37
- package/build/widgets/AssetGallery/index.js +0 -55
- package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -12
- package/build/widgets/ContextMenu/ContextMenuItem/index.js +0 -11
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -44
- package/build/widgets/ContextMenu/index.js +0 -11
- package/build/widgets/InfoCard/index.js +0 -12
- package/build/widgets/Instructions/index.js +0 -33
- package/build/widgets/ProgressBar/index.js +0 -12
package/build/inputs/index.js
CHANGED
|
@@ -1,60 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
require('@restart/hooks/useMergedRefs');
|
|
42
|
-
require('../InputGroup-8d4a4644.js');
|
|
43
|
-
require('../SectionSeparator-e06c7660.js');
|
|
44
|
-
require('@restart/hooks/useUpdateEffect');
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
exports.ActionButton = ActionButton.ActionButton;
|
|
49
|
-
exports.Button = Button.Button;
|
|
50
|
-
exports.Checkbox = Checkbox.Checkbox;
|
|
51
|
-
exports.CompactAutocompleteSelect = CompactAutocompleteSelect.CompactAutocompleteSelect;
|
|
52
|
-
exports.CompactStarRating = CompactStarRating.CompactStarRating;
|
|
53
|
-
exports.CompactTextInput = CompactTextInput.CompactTextInput;
|
|
54
|
-
exports.MultiSelect = MultiSelect.MultiSelect;
|
|
55
|
-
exports.Radio = Radio.Radio;
|
|
56
|
-
exports.TextArea = TextArea.TextArea;
|
|
57
|
-
exports.TextInput = TextInput.TextInput;
|
|
58
|
-
exports.Switch = Switch.Switch;
|
|
59
|
-
exports.MultiLevelCheckbox = MultiLevelCheckboxSelect.MultiLevelCheckbox;
|
|
60
|
-
exports.MultiLevelCheckboxSelect = MultiLevelCheckboxSelect.MultiLevelCheckboxSelect;
|
|
1
|
+
export { A as ActionButton } from '../ActionButton-4db754c3.js';
|
|
2
|
+
export { B as Button } from '../Button-179a2fe4.js';
|
|
3
|
+
export { C as Checkbox } from '../Checkbox-4a5fd716.js';
|
|
4
|
+
export { C as CompactAutocompleteSelect } from '../CompactAutocompleteSelect-52c49513.js';
|
|
5
|
+
export { C as CompactStarRating } from '../CompactStarRating-9af2f427.js';
|
|
6
|
+
export { C as CompactTextInput } from '../CompactTextInput-42ca5d42.js';
|
|
7
|
+
export { M as MultiSelect } from '../MultiSelect-9f497e62.js';
|
|
8
|
+
export { R as Radio } from '../Radio-73ca3ae2.js';
|
|
9
|
+
export { T as TextArea } from '../TextArea-1e5b9201.js';
|
|
10
|
+
export { T as TextInput } from '../TextInput-fab35842.js';
|
|
11
|
+
export { S as Switch } from '../Switch-ecf3122b.js';
|
|
12
|
+
export { M as MultiLevelCheckbox, a as MultiLevelCheckboxSelect } from '../MultiLevelCheckboxSelect-d8044c88.js';
|
|
13
|
+
import '../_rollupPluginBabelHelpers-c245b26a.js';
|
|
14
|
+
import 'react';
|
|
15
|
+
import '../defaultTheme-1bcc2541.js';
|
|
16
|
+
import 'styled-components';
|
|
17
|
+
import 'polished';
|
|
18
|
+
import '../Popover-20050b91.js';
|
|
19
|
+
import 'lodash';
|
|
20
|
+
import '@tippyjs/react';
|
|
21
|
+
import '../shift-away-subtle-0dd94a03.js';
|
|
22
|
+
import 'popper-max-size-modifier';
|
|
23
|
+
import '../widgets/ContextMenu/ContextMenu.js';
|
|
24
|
+
import '../expand-more-c5523c46.js';
|
|
25
|
+
import 'nanoid';
|
|
26
|
+
import '../Alert-e6847a22.js';
|
|
27
|
+
import '../Badge-d93586a9.js';
|
|
28
|
+
import '../Tab-04d435c3.js';
|
|
29
|
+
import '../Tabs-74d1ea8a.js';
|
|
30
|
+
import '../Tooltip-c1d1199e.js';
|
|
31
|
+
import '../VerificationStatusIcon-49cb1c1b.js';
|
|
32
|
+
import 'react-select';
|
|
33
|
+
import 'react-select-async-paginate';
|
|
34
|
+
import 'react-select/creatable';
|
|
35
|
+
import '../close-a5d37608.js';
|
|
36
|
+
import '../edit-note-283a0e15.js';
|
|
37
|
+
import '@restart/hooks/useMergedRefs';
|
|
38
|
+
import '../InputGroup-1294d190.js';
|
|
39
|
+
import '../SectionSeparator-f47760a2.js';
|
|
40
|
+
import '@restart/hooks/useUpdateEffect';
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
require('../../defaultTheme-d9a7342e.js');
|
|
7
|
-
require('styled-components');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
module.exports = InputGroup.InputGroup;
|
|
1
|
+
export { I as default } from '../../InputGroup-1294d190.js';
|
|
2
|
+
import '../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../defaultTheme-1bcc2541.js';
|
|
5
|
+
import 'styled-components';
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
require('../../defaultTheme-d9a7342e.js');
|
|
7
|
-
require('styled-components');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
module.exports = SectionSeparator.SectionSeparator;
|
|
1
|
+
export { S as default } from '../../SectionSeparator-f47760a2.js';
|
|
2
|
+
import '../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../defaultTheme-1bcc2541.js';
|
|
5
|
+
import 'styled-components';
|
package/build/layout/index.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
require('../_rollupPluginBabelHelpers-4b342fad.js');
|
|
8
|
-
require('react');
|
|
9
|
-
require('../defaultTheme-d9a7342e.js');
|
|
10
|
-
require('styled-components');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.InputGroup = InputGroup.InputGroup;
|
|
15
|
-
exports.SectionSeparator = SectionSeparator.SectionSeparator;
|
|
1
|
+
export { I as InputGroup } from '../InputGroup-1294d190.js';
|
|
2
|
+
export { S as SectionSeparator } from '../SectionSeparator-f47760a2.js';
|
|
3
|
+
import '../_rollupPluginBabelHelpers-c245b26a.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../defaultTheme-1bcc2541.js';
|
|
6
|
+
import 'styled-components';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var defaultTheme = require('./defaultTheme-d9a7342e.js');
|
|
1
|
+
import { s as styleInject } from './defaultTheme-1bcc2541.js';
|
|
4
2
|
|
|
5
3
|
var css_248z$1 = ".tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:\"\";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}";
|
|
6
|
-
|
|
4
|
+
styleInject(css_248z$1);
|
|
7
5
|
|
|
8
6
|
var css_248z = ".tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translateX(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translateX(-5px)}";
|
|
9
|
-
|
|
7
|
+
styleInject(css_248z);
|
package/build/ssr/index.js
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, 'ServerStyleSheet', {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return styled.ServerStyleSheet; }
|
|
12
|
-
});
|
|
1
|
+
export { ServerStyleSheet } from 'styled-components';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../config';
|
|
2
2
|
|
|
3
3
|
@function color($name) {
|
|
4
|
-
@if map-has-key(
|
|
5
|
-
@return map-get(
|
|
4
|
+
@if map-has-key(config.$colors, $name) {
|
|
5
|
+
@return map-get(config.$colors, $name);
|
|
6
6
|
} @else {
|
|
7
7
|
@error "No color with the name `#{$name}`. was found.";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:export {
|
|
12
|
-
@each $name, $color in
|
|
12
|
+
@each $name, $color in config.$colors {
|
|
13
13
|
#{$name}: $color;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
var _path;
|
|
4
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
|
+
function SvgWarningCircle(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
viewBox: "0 0 24 24"
|
|
9
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M10.8 15.6h2.4V18h-2.4zm0-9.6h2.4v7.2h-2.4zm1.188-6A12 12 0 1024 12 11.994 11.994 0 0011.988 0zM12 21.6a9.6 9.6 0 119.6-9.6 9.597 9.597 0 01-9.6 9.6z"
|
|
12
|
+
})));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { SvgWarningCircle as S };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import '../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
2
|
+
import 'lodash';
|
|
3
|
+
import '../../defaultTheme-1bcc2541.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
export { A as default } from '../../AssetGallery-f67393d4.js';
|
|
6
|
+
import 'styled-components';
|
|
7
|
+
import '@restart/hooks/useMergedRefs';
|
|
8
|
+
import 'resize-observer-polyfill';
|
|
9
|
+
import '../../MultiLevelCheckboxSelect-d8044c88.js';
|
|
10
|
+
import '../../Alert-e6847a22.js';
|
|
11
|
+
import '../../Badge-d93586a9.js';
|
|
12
|
+
import '../../Popover-20050b91.js';
|
|
13
|
+
import 'polished';
|
|
14
|
+
import '@tippyjs/react';
|
|
15
|
+
import '../../shift-away-subtle-0dd94a03.js';
|
|
16
|
+
import 'popper-max-size-modifier';
|
|
17
|
+
import '../../Tab-04d435c3.js';
|
|
18
|
+
import '../../Tabs-74d1ea8a.js';
|
|
19
|
+
import '../../Tooltip-c1d1199e.js';
|
|
20
|
+
import '../../VerificationStatusIcon-49cb1c1b.js';
|
|
21
|
+
import '../../Checkbox-4a5fd716.js';
|
|
22
|
+
import 'nanoid';
|
|
23
|
+
import '../../TextInput-fab35842.js';
|
|
24
|
+
import '../../edit-note-283a0e15.js';
|
|
25
|
+
import '../../InputGroup-1294d190.js';
|
|
26
|
+
import '../../SectionSeparator-f47760a2.js';
|
|
27
|
+
import '../../close-a5d37608.js';
|
|
28
|
+
import '@restart/hooks/useUpdateEffect';
|
|
29
|
+
import '../../warning-circle-24f3efcd.js';
|
|
30
|
+
import '@floating-ui/react';
|
|
31
|
+
import '../../ActionButton-4db754c3.js';
|
|
32
|
+
import '../../Button-179a2fe4.js';
|
|
33
|
+
import '../ContextMenu/ContextMenu.js';
|
|
34
|
+
import '../../expand-more-c5523c46.js';
|
|
35
|
+
import '../../CompactAutocompleteSelect-52c49513.js';
|
|
36
|
+
import 'react-select';
|
|
37
|
+
import 'react-select-async-paginate';
|
|
38
|
+
import 'react-select/creatable';
|
|
39
|
+
import '../../CompactStarRating-9af2f427.js';
|
|
40
|
+
import '../../CompactTextInput-42ca5d42.js';
|
|
41
|
+
import '../../MultiSelect-9f497e62.js';
|
|
42
|
+
import '../../Radio-73ca3ae2.js';
|
|
43
|
+
import '../../TextArea-1e5b9201.js';
|
|
44
|
+
import '../../Switch-ecf3122b.js';
|
|
45
|
+
import '../ContextMenu/ContextMenuItem/ContextMenuItem.js';
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { _ as _extends$1 } from '../../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { a as applyDefaultTheme, P as PropTypes } from '../../../defaultTheme-1bcc2541.js';
|
|
5
|
+
import styled, { css } from 'styled-components';
|
|
6
|
+
import { S as SvgClose } from '../../../close-a5d37608.js';
|
|
7
|
+
|
|
8
|
+
var _path;
|
|
9
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
10
|
+
function SvgArrowBack(props) {
|
|
11
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
viewBox: "0 0 32 32"
|
|
14
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
15
|
+
fill: "currentColor",
|
|
16
|
+
d: "M16 32L0 16 16 0l2.1 2.1L5.7 14.5H32v3H5.7l12.4 12.4L16 32z"
|
|
17
|
+
})));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const AssetPreviewTopBar$1 = styled.div.attrs(applyDefaultTheme)`
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
align-items: center;
|
|
23
|
+
border-bottom: ${props => props.border ? `1px solid` : `none`};
|
|
24
|
+
color: inherit;
|
|
25
|
+
display: flex;
|
|
26
|
+
font-family: ${props => props.theme.primaryFontFamily};
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
min-height: 72px;
|
|
29
|
+
padding: 0 24px;
|
|
30
|
+
width: 100%;
|
|
31
|
+
|
|
32
|
+
${props => props.theme.themeProp('border-color', props.theme.getColor('gray-800'), props.theme.getColor('gray-200'))}
|
|
33
|
+
|
|
34
|
+
${props => props.shadow && props.theme.themeProp('box-shadow', '0 -2px 12px #505050', '0 -3px 12px #b0b6b9')}
|
|
35
|
+
|
|
36
|
+
${props => props.disabled && css`
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
`}
|
|
39
|
+
`;
|
|
40
|
+
const BackButtonContainer = styled.a.attrs(applyDefaultTheme)`
|
|
41
|
+
align-items: center;
|
|
42
|
+
display: flex;
|
|
43
|
+
font-size: 1.125rem;
|
|
44
|
+
${props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'))};
|
|
45
|
+
|
|
46
|
+
${props => props.disabled && css`
|
|
47
|
+
opacity: 0.5;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
`}
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
> svg {
|
|
56
|
+
height: 24px;
|
|
57
|
+
margin-right: 16px;
|
|
58
|
+
width: 24px;
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
const BackHoverEffect = styled.div`
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
|
|
65
|
+
> svg {
|
|
66
|
+
height: 24px;
|
|
67
|
+
margin-right: 16px;
|
|
68
|
+
width: 24px;
|
|
69
|
+
transition: transform 0.3s ease-in-out;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:hover > svg {
|
|
73
|
+
transform: translateX(-2px);
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
const LeftText = styled.span.attrs(applyDefaultTheme)`
|
|
77
|
+
font-size: 1.125rem;
|
|
78
|
+
margin-left: 16px;
|
|
79
|
+
|
|
80
|
+
${props => props.theme.themeProp('color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400'))};
|
|
81
|
+
`;
|
|
82
|
+
const ButtonsContainer = styled.div.attrs(applyDefaultTheme)`
|
|
83
|
+
align-items: center;
|
|
84
|
+
display: flex;
|
|
85
|
+
margin-left: auto;
|
|
86
|
+
|
|
87
|
+
> span {
|
|
88
|
+
margin-left: 16px;
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
const AssetPreviewTopBar = React__default.forwardRef(function AssetPreviewTopBar({
|
|
93
|
+
onBackButtonClick,
|
|
94
|
+
backButtonText,
|
|
95
|
+
backButtonAsClose,
|
|
96
|
+
leftText,
|
|
97
|
+
buttons,
|
|
98
|
+
shadow,
|
|
99
|
+
border,
|
|
100
|
+
disabled,
|
|
101
|
+
...props
|
|
102
|
+
}, forwardedRef) {
|
|
103
|
+
return React__default.createElement(AssetPreviewTopBar$1, _extends$1({
|
|
104
|
+
ref: forwardedRef,
|
|
105
|
+
shadow: shadow,
|
|
106
|
+
border: border,
|
|
107
|
+
disabled: disabled
|
|
108
|
+
}, props), React__default.createElement(BackButtonContainer, {
|
|
109
|
+
onClick: onBackButtonClick,
|
|
110
|
+
disabled: disabled
|
|
111
|
+
}, backButtonAsClose ? React__default.createElement(React__default.Fragment, null, React__default.createElement(SvgClose, null), backButtonText) : React__default.createElement(BackHoverEffect, null, React__default.createElement(SvgArrowBack, null), backButtonText)), leftText && React__default.createElement(LeftText, null, leftText), Array.isArray(buttons) && React__default.createElement(ButtonsContainer, null, buttons.map((button, index) => React__default.createElement("span", {
|
|
112
|
+
key: 'topBarButton-' + index
|
|
113
|
+
}, button))));
|
|
114
|
+
});
|
|
115
|
+
AssetPreviewTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
116
|
+
onBackButtonClick: PropTypes.func.isRequired,
|
|
117
|
+
backButtonText: PropTypes.string.isRequired,
|
|
118
|
+
disabled: PropTypes.bool,
|
|
119
|
+
backButtonAsClose: PropTypes.bool,
|
|
120
|
+
leftText: PropTypes.string,
|
|
121
|
+
shadow: PropTypes.bool,
|
|
122
|
+
border: PropTypes.bool,
|
|
123
|
+
buttons: PropTypes.arrayOf(PropTypes.node)
|
|
124
|
+
} : {};
|
|
125
|
+
AssetPreviewTopBar.defaultProps = {};
|
|
126
|
+
|
|
127
|
+
export { AssetPreviewTopBar as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { _ as _extends } from '../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { a as applyDefaultTheme, P as PropTypes } from '../../defaultTheme-1bcc2541.js';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
|
|
6
|
+
const ContextMenu$1 = styled.div.attrs(applyDefaultTheme)`
|
|
7
|
+
font-family: ${props => props.theme.primaryFontFamily};
|
|
8
|
+
padding: 3px 0;
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
const ContextMenu = React__default.forwardRef(function ContextMenu({
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}, forwardedRef) {
|
|
15
|
+
return React__default.createElement(ContextMenu$1, _extends({
|
|
16
|
+
ref: forwardedRef
|
|
17
|
+
}, props, {
|
|
18
|
+
role: "menu"
|
|
19
|
+
}), children);
|
|
20
|
+
});
|
|
21
|
+
ContextMenu.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
22
|
+
children: PropTypes.any
|
|
23
|
+
} : {};
|
|
24
|
+
ContextMenu.defaultProps = {};
|
|
25
|
+
|
|
26
|
+
export { ContextMenu as default };
|
package/build/{ContextMenuItem-3967010d.js → widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js}
RENAMED
|
@@ -1,47 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n["default"] = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
30
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
1
|
+
import { _ as _extends$1 } from '../../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { a as applyDefaultTheme, P as PropTypes } from '../../../defaultTheme-1bcc2541.js';
|
|
5
|
+
import styled, { css } from 'styled-components';
|
|
31
6
|
|
|
32
7
|
var _path;
|
|
33
8
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
34
9
|
function SvgTriangleRight(props) {
|
|
35
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
36
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
37
12
|
viewBox: "0 0 10 20"
|
|
38
|
-
}, props), _path || (_path = /*#__PURE__*/
|
|
13
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
39
14
|
fill: "currentColor",
|
|
40
15
|
d: "M0 20V0l10 10L0 20z"
|
|
41
16
|
})));
|
|
42
17
|
}
|
|
43
18
|
|
|
44
|
-
const ContextMenuItem$1 =
|
|
19
|
+
const ContextMenuItem$1 = styled.span.attrs(applyDefaultTheme)`
|
|
45
20
|
align-items: center;
|
|
46
21
|
cursor: pointer;
|
|
47
22
|
display: flex;
|
|
@@ -56,7 +31,7 @@ const ContextMenuItem$1 = styled__default["default"].span.attrs(defaultTheme.app
|
|
|
56
31
|
|
|
57
32
|
${props => props.theme.themeProp('background-color', props.theme.getColor('gray-700'), '#FEFEFE')}
|
|
58
33
|
|
|
59
|
-
${props => !props.icon &&
|
|
34
|
+
${props => !props.icon && css`
|
|
60
35
|
padding-left: 28px;
|
|
61
36
|
`}
|
|
62
37
|
|
|
@@ -76,19 +51,19 @@ const ContextMenuItem$1 = styled__default["default"].span.attrs(defaultTheme.app
|
|
|
76
51
|
${props => props.theme.themeProp('background-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-200'))}
|
|
77
52
|
}
|
|
78
53
|
|
|
79
|
-
${props => props.hoverColors && props.hoverColors[0] && props.hoverColors[1] &&
|
|
54
|
+
${props => props.hoverColors && props.hoverColors[0] && props.hoverColors[1] && css`
|
|
80
55
|
&&:hover {
|
|
81
56
|
${props => props.theme.themeProp('color', props.hoverColors[0], props.hoverColors[1])}
|
|
82
57
|
}
|
|
83
58
|
`}
|
|
84
59
|
|
|
85
|
-
${props => props.hoverBackgroundColors && props.hoverBackgroundColors[0] && props.hoverBackgroundColors[1] &&
|
|
60
|
+
${props => props.hoverBackgroundColors && props.hoverBackgroundColors[0] && props.hoverBackgroundColors[1] && css`
|
|
86
61
|
&&:hover {
|
|
87
62
|
${props => props.theme.themeProp('background-color', props.hoverBackgroundColors[0], props.hoverBackgroundColors[1])}
|
|
88
63
|
}
|
|
89
64
|
`}
|
|
90
65
|
`;
|
|
91
|
-
const IconContainer =
|
|
66
|
+
const IconContainer = styled.span.attrs(applyDefaultTheme)`
|
|
92
67
|
align-items: center;
|
|
93
68
|
display: flex;
|
|
94
69
|
height: fit-content;
|
|
@@ -99,7 +74,7 @@ const IconContainer = styled__default["default"].span.attrs(defaultTheme.applyDe
|
|
|
99
74
|
height: 12px;
|
|
100
75
|
}
|
|
101
76
|
`;
|
|
102
|
-
const SublevelIconContainer =
|
|
77
|
+
const SublevelIconContainer = styled.span.attrs(applyDefaultTheme)`
|
|
103
78
|
align-items: center;
|
|
104
79
|
display: flex;
|
|
105
80
|
height: fit-content;
|
|
@@ -113,7 +88,7 @@ const SublevelIconContainer = styled__default["default"].span.attrs(defaultTheme
|
|
|
113
88
|
}
|
|
114
89
|
`;
|
|
115
90
|
|
|
116
|
-
const ContextMenuItem = React__default
|
|
91
|
+
const ContextMenuItem = React__default.forwardRef(function ContextMenuItem({
|
|
117
92
|
title,
|
|
118
93
|
icon,
|
|
119
94
|
onClickEffect,
|
|
@@ -122,7 +97,7 @@ const ContextMenuItem = React__default["default"].forwardRef(function ContextMen
|
|
|
122
97
|
hoverBackgroundColors,
|
|
123
98
|
...props
|
|
124
99
|
}, forwardedRef) {
|
|
125
|
-
return React__default
|
|
100
|
+
return React__default.createElement(ContextMenuItem$1, _extends$1({
|
|
126
101
|
ref: forwardedRef,
|
|
127
102
|
icon: icon,
|
|
128
103
|
onClick: onClickEffect,
|
|
@@ -132,15 +107,15 @@ const ContextMenuItem = React__default["default"].forwardRef(function ContextMen
|
|
|
132
107
|
className: opensSublevel ? 'context-menu-item opens-sublevel' : 'context-menu-item'
|
|
133
108
|
}, props, {
|
|
134
109
|
role: "menuitem"
|
|
135
|
-
}), icon && React__default
|
|
110
|
+
}), icon && React__default.createElement(IconContainer, null, icon), React__default.createElement("span", null, title), opensSublevel && React__default.createElement(SublevelIconContainer, null, React__default.createElement(SvgTriangleRight, null)));
|
|
136
111
|
});
|
|
137
112
|
ContextMenuItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
138
|
-
title:
|
|
139
|
-
icon:
|
|
140
|
-
onClickEffect:
|
|
141
|
-
opensSublevel:
|
|
142
|
-
hoverColors:
|
|
143
|
-
hoverBackgroundColors:
|
|
113
|
+
title: PropTypes.string.isRequired,
|
|
114
|
+
icon: PropTypes.element,
|
|
115
|
+
onClickEffect: PropTypes.func,
|
|
116
|
+
opensSublevel: PropTypes.bool,
|
|
117
|
+
hoverColors: PropTypes.arrayOf(PropTypes.string),
|
|
118
|
+
hoverBackgroundColors: PropTypes.arrayOf(PropTypes.string)
|
|
144
119
|
} : {};
|
|
145
120
|
ContextMenuItem.defaultProps = {
|
|
146
121
|
icon: undefined,
|
|
@@ -149,4 +124,4 @@ ContextMenuItem.defaultProps = {
|
|
|
149
124
|
opensSublevel: false
|
|
150
125
|
};
|
|
151
126
|
|
|
152
|
-
|
|
127
|
+
export { ContextMenuItem as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { _ as _extends } from '../../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { a as applyDefaultTheme, P as PropTypes } from '../../../defaultTheme-1bcc2541.js';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
|
|
6
|
+
const ContextMenuItemsGroup$1 = styled.div.attrs(applyDefaultTheme)`
|
|
7
|
+
:not(:last-child) {
|
|
8
|
+
border-bottom: 1px solid;
|
|
9
|
+
|
|
10
|
+
${props => props.theme.themeProp('border-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-200'))}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> * {
|
|
14
|
+
border-bottom: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
> *:not(:last-child) {
|
|
18
|
+
height: 32px;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const ContextMenuItemsGroup = React__default.forwardRef(function ContextMenuItemsGroup({
|
|
23
|
+
children,
|
|
24
|
+
...props
|
|
25
|
+
}, forwardedRef) {
|
|
26
|
+
return React__default.createElement(ContextMenuItemsGroup$1, _extends({
|
|
27
|
+
ref: forwardedRef
|
|
28
|
+
}, props, {
|
|
29
|
+
role: "group"
|
|
30
|
+
}), children);
|
|
31
|
+
});
|
|
32
|
+
ContextMenuItemsGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
33
|
+
children: PropTypes.arrayOf(PropTypes.node)
|
|
34
|
+
} : {};
|
|
35
|
+
ContextMenuItemsGroup.defaultProps = {};
|
|
36
|
+
|
|
37
|
+
export { ContextMenuItemsGroup as default };
|