@ntbjs/react-components 2.0.0-rc.11 → 2.0.0-rc.13
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/cjs/components/data/Alert/Alert.js +8 -10
- package/cjs/components/data/Alert/Alert.styled.js +17 -10
- package/cjs/components/data/Badge/Badge.js +13 -13
- package/cjs/components/data/Badge/Badge.styled.js +37 -26
- package/cjs/components/data/Popover/Popover.js +4 -2
- package/cjs/components/data/Tab/Tab.styled.js +6 -1
- package/cjs/components/data/Tabs/Tabs.js +22 -12
- package/cjs/components/data/Tabs/Tabs.styled.js +29 -16
- package/cjs/components/data/Tooltip/Tooltip.js +3 -1
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/cjs/components/inputs/ActionButton/ActionButton.js +5 -3
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/cjs/components/inputs/Button/Button.js +45 -38
- package/cjs/components/inputs/Button/Button.styled.js +84 -38
- package/cjs/components/inputs/Checkbox/Checkbox.js +1 -1
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +2 -2
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +5 -48
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +27 -31
- package/cjs/components/inputs/Radio/Radio.styled.js +9 -2
- package/cjs/components/inputs/Switch/Switch.js +1 -1
- package/cjs/components/inputs/Switch/Switch.styled.js +22 -7
- package/cjs/components/inputs/TextArea/TextArea.js +10 -20
- package/cjs/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/cjs/components/inputs/TextInput/TextInput.js +21 -22
- package/cjs/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/cjs/components/widgets/AssetAction/AssetAction.js +1 -1
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/cjs/components/widgets/InfoCard/InfoCard.js +17 -9
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +43 -22
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +78 -22
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/cjs/components/widgets/widgets/index.js +0 -2
- package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/cjs/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +54 -12
- package/cjs/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +10 -7
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +1 -1
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/cjs/node_modules/react/cjs/react.development.js +125 -82
- package/cjs/node_modules/react/cjs/react.production.js +88 -92
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +5 -5
- package/cjs/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +23 -17
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +47 -47
- package/cjs/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +3 -3
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/{use-isomorphic-layout-effect.browser.esm.js → use-isomorphic-layout-effect.esm.js} +4 -1
- package/cjs/styles/utils/colors-export.js +41 -0
- package/cjs/utils/defaultTheme.js +28 -5
- package/esm/components/data/Alert/Alert.js +8 -10
- package/esm/components/data/Alert/Alert.styled.js +17 -10
- package/esm/components/data/Badge/Badge.js +13 -13
- package/esm/components/data/Badge/Badge.styled.js +37 -26
- package/esm/components/data/Popover/Popover.js +4 -2
- package/esm/components/data/Tab/Tab.styled.js +6 -1
- package/esm/components/data/Tabs/Tabs.js +23 -13
- package/esm/components/data/Tabs/Tabs.styled.js +29 -16
- package/esm/components/data/Tooltip/Tooltip.js +3 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/esm/components/inputs/ActionButton/ActionButton.js +5 -3
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/esm/components/inputs/Button/Button.js +45 -38
- package/esm/components/inputs/Button/Button.styled.js +84 -38
- package/esm/components/inputs/Checkbox/Checkbox.js +1 -1
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +4 -4
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/esm/components/inputs/MultiSelect/MultiSelect.js +6 -49
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +28 -28
- package/esm/components/inputs/Radio/Radio.styled.js +9 -2
- package/esm/components/inputs/Switch/Switch.js +1 -1
- package/esm/components/inputs/Switch/Switch.styled.js +22 -7
- package/esm/components/inputs/TextArea/TextArea.js +10 -20
- package/esm/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/esm/components/inputs/TextInput/TextInput.js +21 -22
- package/esm/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/esm/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/esm/components/widgets/AssetAction/AssetAction.js +1 -1
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/esm/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/esm/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +10 -2
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/esm/components/widgets/ProgressBar/ProgressBar.js +31 -10
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +77 -23
- package/esm/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/esm/components/widgets/widgets/index.js +0 -1
- package/esm/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/esm/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +47 -5
- package/esm/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +3 -3
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/esm/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +4 -4
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/esm/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/esm/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/esm/node_modules/react/cjs/react.development.js +125 -82
- package/esm/node_modules/react/cjs/react.production.js +88 -92
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +3 -3
- package/esm/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +12 -6
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +2 -2
- package/esm/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +1 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +9 -0
- package/esm/styles/utils/colors-export.js +37 -0
- package/esm/utils/defaultTheme.js +28 -5
- package/package.json +16 -22
- package/styles/utils/colors-export.js +35 -0
- package/cjs/components/widgets/Instructions/Instructions.js +0 -217
- package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
- package/cjs/styles/utils/colors.scss.js +0 -11
- package/esm/components/widgets/Instructions/Instructions.js +0 -213
- package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
- package/esm/styles/utils/colors.scss.js +0 -7
- package/styles/config.scss +0 -37
- /package/styles/utils/{colors.scss → .colors.scss} +0 -0
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
-
var lodash = require('lodash');
|
|
7
|
-
var index$2 = require('../../../node_modules/prop-types/index.js');
|
|
8
|
-
var index = require('../../../node_modules/react/index.js');
|
|
9
|
-
var warningCircle = require('../../../icons/warning-circle.svg.js');
|
|
10
|
-
var CompactAutocompleteSelect = require('../../inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js');
|
|
11
|
-
var TextArea = require('../../inputs/TextArea/TextArea.js');
|
|
12
|
-
var Instructions_styled = require('./Instructions.styled.js');
|
|
13
|
-
var index$1 = require('../../../_virtual/index.js');
|
|
14
|
-
|
|
15
|
-
const _excluded = ["clickToAdd", "customAddMessage", "selectedOption", "loadOptions", "readOnly", "disabled", "hidden", "name", "lightBackground", "autoSelect", "subscribeCurrentValue", "onChange", "onFocus", "onBlur", "onUpdateCallback", "availableOptions", "loadingMessageFunc", "placeholder", "type", "selectType", "edit", "rows", "showMore", "showMoreText", "showLessText", "isExpanded", "loadingIcon", "successIcon", "padding"];
|
|
16
|
-
const Instructions = index["default"].forwardRef(function Instructions(_ref, forwardedRef) {
|
|
17
|
-
let {
|
|
18
|
-
clickToAdd,
|
|
19
|
-
customAddMessage,
|
|
20
|
-
selectedOption,
|
|
21
|
-
loadOptions,
|
|
22
|
-
readOnly,
|
|
23
|
-
disabled,
|
|
24
|
-
hidden,
|
|
25
|
-
name,
|
|
26
|
-
lightBackground,
|
|
27
|
-
autoSelect,
|
|
28
|
-
subscribeCurrentValue: subscribeCurrentValueProp,
|
|
29
|
-
onChange: onChangeProp,
|
|
30
|
-
onFocus: onFocusProp,
|
|
31
|
-
onBlur: onBlurProp,
|
|
32
|
-
onUpdateCallback,
|
|
33
|
-
availableOptions,
|
|
34
|
-
loadingMessageFunc,
|
|
35
|
-
placeholder,
|
|
36
|
-
type,
|
|
37
|
-
selectType,
|
|
38
|
-
edit,
|
|
39
|
-
rows,
|
|
40
|
-
showMore,
|
|
41
|
-
showMoreText,
|
|
42
|
-
showLessText,
|
|
43
|
-
isExpanded,
|
|
44
|
-
loadingIcon,
|
|
45
|
-
successIcon,
|
|
46
|
-
padding
|
|
47
|
-
} = _ref,
|
|
48
|
-
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
49
|
-
const [isHovered, setIsHovered] = index$1.react.exports.useState(false);
|
|
50
|
-
const [selected, setSelected] = index$1.react.exports.useState({});
|
|
51
|
-
const [addInstructions, setAddInstructions] = index$1.react.exports.useState(clickToAdd);
|
|
52
|
-
const [customMessage, setCustomMessage] = index$1.react.exports.useState(customAddMessage);
|
|
53
|
-
const [background, setBackground] = index$1.react.exports.useState(lightBackground);
|
|
54
|
-
const [initialHover, setInitialHover] = index$1.react.exports.useState(true);
|
|
55
|
-
const [currentValue, setCurrentValue] = index$1.react.exports.useState();
|
|
56
|
-
index$1.react.exports.useEffect(() => {
|
|
57
|
-
if (lodash.isFunction(subscribeCurrentValueProp)) {
|
|
58
|
-
subscribeCurrentValueProp(currentValue);
|
|
59
|
-
}
|
|
60
|
-
}, [currentValue]);
|
|
61
|
-
index$1.react.exports.useEffect(() => {
|
|
62
|
-
handleChange(selected);
|
|
63
|
-
}, [selected]);
|
|
64
|
-
index$1.react.exports.useEffect(() => {
|
|
65
|
-
if (selectedOption) {
|
|
66
|
-
setCurrentValue(selectedOption.value);
|
|
67
|
-
}
|
|
68
|
-
}, [selectedOption]);
|
|
69
|
-
index$1.react.exports.useEffect(() => {
|
|
70
|
-
if (addInstructions) {
|
|
71
|
-
setCurrentValue(customMessage);
|
|
72
|
-
setInitialHover(true);
|
|
73
|
-
}
|
|
74
|
-
}, [addInstructions, handleOnFocus]);
|
|
75
|
-
const onChange = index$1.react.exports.useCallback(event => {
|
|
76
|
-
setCurrentValue(event.target.value);
|
|
77
|
-
if (lodash.isFunction(onChangeProp)) {
|
|
78
|
-
onChangeProp(event);
|
|
79
|
-
}
|
|
80
|
-
}, [onChangeProp]);
|
|
81
|
-
const onFocus = index$1.react.exports.useCallback(event => {
|
|
82
|
-
if (autoSelect) {
|
|
83
|
-
event.target.select();
|
|
84
|
-
}
|
|
85
|
-
if (lodash.isFunction(onFocusProp)) {
|
|
86
|
-
onFocusProp(event);
|
|
87
|
-
}
|
|
88
|
-
if (event.target.value === customMessage) {
|
|
89
|
-
setCurrentValue('');
|
|
90
|
-
}
|
|
91
|
-
}, [autoSelect, readOnly, onFocusProp]);
|
|
92
|
-
const onBlur = index$1.react.exports.useCallback(event => {
|
|
93
|
-
if (lodash.isFunction(onBlurProp)) {
|
|
94
|
-
onBlurProp(event);
|
|
95
|
-
}
|
|
96
|
-
}, [onBlurProp]);
|
|
97
|
-
const handleMouseOver = () => {
|
|
98
|
-
setIsHovered(true);
|
|
99
|
-
};
|
|
100
|
-
const handleMouseLeave = () => {
|
|
101
|
-
setIsHovered(false);
|
|
102
|
-
};
|
|
103
|
-
const handleOnFocus = () => {
|
|
104
|
-
if (customMessage === currentValue) {
|
|
105
|
-
setCurrentValue('');
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
const handleChange = selected => {
|
|
109
|
-
if (selected === null) {
|
|
110
|
-
setSelected({});
|
|
111
|
-
setAddInstructions(true);
|
|
112
|
-
setBackground(true);
|
|
113
|
-
setInitialHover(true);
|
|
114
|
-
setCustomMessage(customAddMessage);
|
|
115
|
-
} else {
|
|
116
|
-
setSelected(selected);
|
|
117
|
-
setCurrentValue(selected.value);
|
|
118
|
-
setAddInstructions(false);
|
|
119
|
-
setBackground(false);
|
|
120
|
-
setInitialHover(false);
|
|
121
|
-
onUpdateCallback(selected);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
const sharedSelectProps = {
|
|
125
|
-
options: loadOptions ? undefined : availableOptions,
|
|
126
|
-
loadOptions: loadOptions,
|
|
127
|
-
loadingMessage: loadingMessageFunc,
|
|
128
|
-
placeholder: placeholder
|
|
129
|
-
};
|
|
130
|
-
if (hidden) return null;
|
|
131
|
-
return index["default"].createElement(Instructions_styled.Instructions, _rollupPluginBabelHelpers["extends"]({
|
|
132
|
-
ref: forwardedRef,
|
|
133
|
-
initialHover: initialHover,
|
|
134
|
-
onMouseDown: handleMouseOver,
|
|
135
|
-
onMouseLeave: handleMouseLeave
|
|
136
|
-
}, props), !readOnly && !disabled && index["default"].createElement(Instructions_styled.TopBarContainer, {
|
|
137
|
-
initialHover: initialHover,
|
|
138
|
-
className: isHovered && !readOnly && !disabled && 'slide-in'
|
|
139
|
-
}, index["default"].createElement(Instructions_styled.SelectContainer, null, index["default"].createElement(CompactAutocompleteSelect["default"], _rollupPluginBabelHelpers["extends"]({
|
|
140
|
-
type: selectType,
|
|
141
|
-
value: selectedOption,
|
|
142
|
-
creatable: false,
|
|
143
|
-
onChange: handleChange
|
|
144
|
-
}, sharedSelectProps)))), index["default"].createElement(Instructions_styled.InstructionsArea, {
|
|
145
|
-
type: type
|
|
146
|
-
}, index["default"].createElement(TextArea["default"], {
|
|
147
|
-
noBorder: true,
|
|
148
|
-
instructionsTextArea: true,
|
|
149
|
-
type: type,
|
|
150
|
-
lightBackground: background,
|
|
151
|
-
readOnly: readOnly,
|
|
152
|
-
disabled: disabled,
|
|
153
|
-
name: name,
|
|
154
|
-
isExpanded: isExpanded,
|
|
155
|
-
edit: edit,
|
|
156
|
-
value: currentValue === null ? '' : currentValue,
|
|
157
|
-
onFocus: onFocus,
|
|
158
|
-
onChange: onChange,
|
|
159
|
-
onBlur: onBlur,
|
|
160
|
-
rows: rows,
|
|
161
|
-
showMore: showMore,
|
|
162
|
-
showMoreText: showMoreText,
|
|
163
|
-
showLessText: showLessText,
|
|
164
|
-
icon: index["default"].createElement(warningCircle.ReactComponent, null),
|
|
165
|
-
loadingIcon: loadingIcon,
|
|
166
|
-
successIcon: successIcon,
|
|
167
|
-
padding: padding
|
|
168
|
-
})));
|
|
169
|
-
});
|
|
170
|
-
Instructions.defaultProps = {
|
|
171
|
-
clickToAdd: false,
|
|
172
|
-
lightBackground: false,
|
|
173
|
-
autoSelect: true,
|
|
174
|
-
hidden: false,
|
|
175
|
-
edit: false,
|
|
176
|
-
disabled: false,
|
|
177
|
-
readOnly: false,
|
|
178
|
-
type: '',
|
|
179
|
-
selectType: '',
|
|
180
|
-
padding: 'medium',
|
|
181
|
-
onUpdateCallback: () => {}
|
|
182
|
-
};
|
|
183
|
-
Instructions.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
184
|
-
name: index$2["default"].string,
|
|
185
|
-
placeholder: index$2["default"].string,
|
|
186
|
-
rows: index$2["default"].oneOfType([index$2["default"].number, index$2["default"].string]),
|
|
187
|
-
selectedOption: index$2["default"].any,
|
|
188
|
-
loadOptions: index$2["default"].func,
|
|
189
|
-
loadingMessageFunc: index$2["default"].func,
|
|
190
|
-
clickToAdd: index$2["default"].bool,
|
|
191
|
-
customAddMessage: index$2["default"].string,
|
|
192
|
-
autoSelect: index$2["default"].bool,
|
|
193
|
-
readOnly: index$2["default"].bool,
|
|
194
|
-
disabled: index$2["default"].bool,
|
|
195
|
-
hidden: index$2["default"].bool,
|
|
196
|
-
showMore: index$2["default"].bool,
|
|
197
|
-
showMoreText: index$2["default"].string,
|
|
198
|
-
showLessText: index$2["default"].string,
|
|
199
|
-
availableOptions: index$2["default"].arrayOf(index$2["default"].object),
|
|
200
|
-
lightBackground: index$2["default"].bool,
|
|
201
|
-
edit: index$2["default"].bool,
|
|
202
|
-
options: index$2["default"].array,
|
|
203
|
-
subscribeCurrentValue: index$2["default"].func,
|
|
204
|
-
onChange: index$2["default"].func,
|
|
205
|
-
onFocus: index$2["default"].func,
|
|
206
|
-
onBlur: index$2["default"].func,
|
|
207
|
-
onUpdateCallback: index$2["default"].func,
|
|
208
|
-
type: index$2["default"].oneOf(['', 'error', 'error-border', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
209
|
-
selectType: index$2["default"].oneOf(['', 'error', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
210
|
-
isExpanded: index$2["default"].func,
|
|
211
|
-
loadingIcon: index$2["default"].element,
|
|
212
|
-
successIcon: index$2["default"].element,
|
|
213
|
-
padding: index$2["default"].oneOf(['', 'small', 'medium', 'large'])
|
|
214
|
-
} : {};
|
|
215
|
-
var Instructions$1 = Instructions;
|
|
216
|
-
|
|
217
|
-
exports["default"] = Instructions$1;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var defaultTheme = require('../../../utils/defaultTheme.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
-
|
|
12
|
-
let _ = t => t,
|
|
13
|
-
_t,
|
|
14
|
-
_t2,
|
|
15
|
-
_t3,
|
|
16
|
-
_t4;
|
|
17
|
-
const Instructions = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t || (_t = _`
|
|
18
|
-
display: flex;
|
|
19
|
-
position: relative;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
${0};
|
|
22
|
-
`), props => props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')));
|
|
23
|
-
const TopBarContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t2 || (_t2 = _`
|
|
24
|
-
position: absolute;
|
|
25
|
-
display: flex;
|
|
26
|
-
width: 100%;
|
|
27
|
-
margin-top: 0;
|
|
28
|
-
transition: margin-top 120ms;
|
|
29
|
-
&&.slide-in {
|
|
30
|
-
margin-top: -24px;
|
|
31
|
-
}
|
|
32
|
-
${0};
|
|
33
|
-
|
|
34
|
-
${0};
|
|
35
|
-
`), props => props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')), props => props.initialHover && props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')));
|
|
36
|
-
const SelectContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t3 || (_t3 = _`
|
|
37
|
-
width: 100%;
|
|
38
|
-
margin: 0 2px;
|
|
39
|
-
`));
|
|
40
|
-
const InstructionsArea = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t4 || (_t4 = _`
|
|
41
|
-
margin: 2px 2px -2px 2px;
|
|
42
|
-
`));
|
|
43
|
-
|
|
44
|
-
exports.Instructions = Instructions;
|
|
45
|
-
exports.InstructionsArea = InstructionsArea;
|
|
46
|
-
exports.SelectContainer = SelectContainer;
|
|
47
|
-
exports.TopBarContainer = TopBarContainer;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styleInject_es = require('../../node_modules/style-inject/dist/style-inject.es.js');
|
|
6
|
-
|
|
7
|
-
var css_248z = "/**\n * Colors\n */";
|
|
8
|
-
var importedColors = {"orange-600":"#634e01","orange-500":"#ff9900","orange-400":"#ffcb7e","emerald-600":"#296c58","emerald-500":"#30826a","emerald-400":"#64b49d","emerald-300":"#bfe0d5","emerald-200":"#f3f9f7","gray-900":"#141313","gray-800":"#272727","gray-700":"#323232","gray-600":"#505050","gray-500":"#767676","gray-400":"#b0b6b9","gray-300":"#d9dce0","gray-200":"#eff1f4","gray-100":"#f7f8f9","cercise-500":"#5f1031","cercise-400":"#854962","cercise-300":"#d099b0","cercise-200":"#fecaca","cercise-100":"#f9f3f5","red-600":"#7f1b1b","red-500":"#d83000","red-200":"#fbeae6","brown-500":"#634e01","signal-yellow-500":"#f4e21e","signal-yellow-400":"#fff36c","signal-green-500":"#00bd98","signal-green-400":"#a3ffe0","black":"#202435","white":"#ffffff"};
|
|
9
|
-
styleInject_es["default"](css_248z);
|
|
10
|
-
|
|
11
|
-
exports["default"] = importedColors;
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { isFunction } from 'lodash';
|
|
3
|
-
import PropTypes from '../../../node_modules/prop-types/index.js';
|
|
4
|
-
import React from '../../../node_modules/react/index.js';
|
|
5
|
-
import { ReactComponent as SvgWarningCircle } from '../../../icons/warning-circle.svg.js';
|
|
6
|
-
import AutocompleteSelect from '../../inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js';
|
|
7
|
-
import TextArea from '../../inputs/TextArea/TextArea.js';
|
|
8
|
-
import { Instructions as Instructions$2, TopBarContainer, SelectContainer, InstructionsArea } from './Instructions.styled.js';
|
|
9
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
10
|
-
|
|
11
|
-
const _excluded = ["clickToAdd", "customAddMessage", "selectedOption", "loadOptions", "readOnly", "disabled", "hidden", "name", "lightBackground", "autoSelect", "subscribeCurrentValue", "onChange", "onFocus", "onBlur", "onUpdateCallback", "availableOptions", "loadingMessageFunc", "placeholder", "type", "selectType", "edit", "rows", "showMore", "showMoreText", "showLessText", "isExpanded", "loadingIcon", "successIcon", "padding"];
|
|
12
|
-
const Instructions = React.forwardRef(function Instructions(_ref, forwardedRef) {
|
|
13
|
-
let {
|
|
14
|
-
clickToAdd,
|
|
15
|
-
customAddMessage,
|
|
16
|
-
selectedOption,
|
|
17
|
-
loadOptions,
|
|
18
|
-
readOnly,
|
|
19
|
-
disabled,
|
|
20
|
-
hidden,
|
|
21
|
-
name,
|
|
22
|
-
lightBackground,
|
|
23
|
-
autoSelect,
|
|
24
|
-
subscribeCurrentValue: subscribeCurrentValueProp,
|
|
25
|
-
onChange: onChangeProp,
|
|
26
|
-
onFocus: onFocusProp,
|
|
27
|
-
onBlur: onBlurProp,
|
|
28
|
-
onUpdateCallback,
|
|
29
|
-
availableOptions,
|
|
30
|
-
loadingMessageFunc,
|
|
31
|
-
placeholder,
|
|
32
|
-
type,
|
|
33
|
-
selectType,
|
|
34
|
-
edit,
|
|
35
|
-
rows,
|
|
36
|
-
showMore,
|
|
37
|
-
showMoreText,
|
|
38
|
-
showLessText,
|
|
39
|
-
isExpanded,
|
|
40
|
-
loadingIcon,
|
|
41
|
-
successIcon,
|
|
42
|
-
padding
|
|
43
|
-
} = _ref,
|
|
44
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
-
const [isHovered, setIsHovered] = react.exports.useState(false);
|
|
46
|
-
const [selected, setSelected] = react.exports.useState({});
|
|
47
|
-
const [addInstructions, setAddInstructions] = react.exports.useState(clickToAdd);
|
|
48
|
-
const [customMessage, setCustomMessage] = react.exports.useState(customAddMessage);
|
|
49
|
-
const [background, setBackground] = react.exports.useState(lightBackground);
|
|
50
|
-
const [initialHover, setInitialHover] = react.exports.useState(true);
|
|
51
|
-
const [currentValue, setCurrentValue] = react.exports.useState();
|
|
52
|
-
react.exports.useEffect(() => {
|
|
53
|
-
if (isFunction(subscribeCurrentValueProp)) {
|
|
54
|
-
subscribeCurrentValueProp(currentValue);
|
|
55
|
-
}
|
|
56
|
-
}, [currentValue]);
|
|
57
|
-
react.exports.useEffect(() => {
|
|
58
|
-
handleChange(selected);
|
|
59
|
-
}, [selected]);
|
|
60
|
-
react.exports.useEffect(() => {
|
|
61
|
-
if (selectedOption) {
|
|
62
|
-
setCurrentValue(selectedOption.value);
|
|
63
|
-
}
|
|
64
|
-
}, [selectedOption]);
|
|
65
|
-
react.exports.useEffect(() => {
|
|
66
|
-
if (addInstructions) {
|
|
67
|
-
setCurrentValue(customMessage);
|
|
68
|
-
setInitialHover(true);
|
|
69
|
-
}
|
|
70
|
-
}, [addInstructions, handleOnFocus]);
|
|
71
|
-
const onChange = react.exports.useCallback(event => {
|
|
72
|
-
setCurrentValue(event.target.value);
|
|
73
|
-
if (isFunction(onChangeProp)) {
|
|
74
|
-
onChangeProp(event);
|
|
75
|
-
}
|
|
76
|
-
}, [onChangeProp]);
|
|
77
|
-
const onFocus = react.exports.useCallback(event => {
|
|
78
|
-
if (autoSelect) {
|
|
79
|
-
event.target.select();
|
|
80
|
-
}
|
|
81
|
-
if (isFunction(onFocusProp)) {
|
|
82
|
-
onFocusProp(event);
|
|
83
|
-
}
|
|
84
|
-
if (event.target.value === customMessage) {
|
|
85
|
-
setCurrentValue('');
|
|
86
|
-
}
|
|
87
|
-
}, [autoSelect, readOnly, onFocusProp]);
|
|
88
|
-
const onBlur = react.exports.useCallback(event => {
|
|
89
|
-
if (isFunction(onBlurProp)) {
|
|
90
|
-
onBlurProp(event);
|
|
91
|
-
}
|
|
92
|
-
}, [onBlurProp]);
|
|
93
|
-
const handleMouseOver = () => {
|
|
94
|
-
setIsHovered(true);
|
|
95
|
-
};
|
|
96
|
-
const handleMouseLeave = () => {
|
|
97
|
-
setIsHovered(false);
|
|
98
|
-
};
|
|
99
|
-
const handleOnFocus = () => {
|
|
100
|
-
if (customMessage === currentValue) {
|
|
101
|
-
setCurrentValue('');
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const handleChange = selected => {
|
|
105
|
-
if (selected === null) {
|
|
106
|
-
setSelected({});
|
|
107
|
-
setAddInstructions(true);
|
|
108
|
-
setBackground(true);
|
|
109
|
-
setInitialHover(true);
|
|
110
|
-
setCustomMessage(customAddMessage);
|
|
111
|
-
} else {
|
|
112
|
-
setSelected(selected);
|
|
113
|
-
setCurrentValue(selected.value);
|
|
114
|
-
setAddInstructions(false);
|
|
115
|
-
setBackground(false);
|
|
116
|
-
setInitialHover(false);
|
|
117
|
-
onUpdateCallback(selected);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const sharedSelectProps = {
|
|
121
|
-
options: loadOptions ? undefined : availableOptions,
|
|
122
|
-
loadOptions: loadOptions,
|
|
123
|
-
loadingMessage: loadingMessageFunc,
|
|
124
|
-
placeholder: placeholder
|
|
125
|
-
};
|
|
126
|
-
if (hidden) return null;
|
|
127
|
-
return React.createElement(Instructions$2, _extends({
|
|
128
|
-
ref: forwardedRef,
|
|
129
|
-
initialHover: initialHover,
|
|
130
|
-
onMouseDown: handleMouseOver,
|
|
131
|
-
onMouseLeave: handleMouseLeave
|
|
132
|
-
}, props), !readOnly && !disabled && React.createElement(TopBarContainer, {
|
|
133
|
-
initialHover: initialHover,
|
|
134
|
-
className: isHovered && !readOnly && !disabled && 'slide-in'
|
|
135
|
-
}, React.createElement(SelectContainer, null, React.createElement(AutocompleteSelect, _extends({
|
|
136
|
-
type: selectType,
|
|
137
|
-
value: selectedOption,
|
|
138
|
-
creatable: false,
|
|
139
|
-
onChange: handleChange
|
|
140
|
-
}, sharedSelectProps)))), React.createElement(InstructionsArea, {
|
|
141
|
-
type: type
|
|
142
|
-
}, React.createElement(TextArea, {
|
|
143
|
-
noBorder: true,
|
|
144
|
-
instructionsTextArea: true,
|
|
145
|
-
type: type,
|
|
146
|
-
lightBackground: background,
|
|
147
|
-
readOnly: readOnly,
|
|
148
|
-
disabled: disabled,
|
|
149
|
-
name: name,
|
|
150
|
-
isExpanded: isExpanded,
|
|
151
|
-
edit: edit,
|
|
152
|
-
value: currentValue === null ? '' : currentValue,
|
|
153
|
-
onFocus: onFocus,
|
|
154
|
-
onChange: onChange,
|
|
155
|
-
onBlur: onBlur,
|
|
156
|
-
rows: rows,
|
|
157
|
-
showMore: showMore,
|
|
158
|
-
showMoreText: showMoreText,
|
|
159
|
-
showLessText: showLessText,
|
|
160
|
-
icon: React.createElement(SvgWarningCircle, null),
|
|
161
|
-
loadingIcon: loadingIcon,
|
|
162
|
-
successIcon: successIcon,
|
|
163
|
-
padding: padding
|
|
164
|
-
})));
|
|
165
|
-
});
|
|
166
|
-
Instructions.defaultProps = {
|
|
167
|
-
clickToAdd: false,
|
|
168
|
-
lightBackground: false,
|
|
169
|
-
autoSelect: true,
|
|
170
|
-
hidden: false,
|
|
171
|
-
edit: false,
|
|
172
|
-
disabled: false,
|
|
173
|
-
readOnly: false,
|
|
174
|
-
type: '',
|
|
175
|
-
selectType: '',
|
|
176
|
-
padding: 'medium',
|
|
177
|
-
onUpdateCallback: () => {}
|
|
178
|
-
};
|
|
179
|
-
Instructions.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
180
|
-
name: PropTypes.string,
|
|
181
|
-
placeholder: PropTypes.string,
|
|
182
|
-
rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
183
|
-
selectedOption: PropTypes.any,
|
|
184
|
-
loadOptions: PropTypes.func,
|
|
185
|
-
loadingMessageFunc: PropTypes.func,
|
|
186
|
-
clickToAdd: PropTypes.bool,
|
|
187
|
-
customAddMessage: PropTypes.string,
|
|
188
|
-
autoSelect: PropTypes.bool,
|
|
189
|
-
readOnly: PropTypes.bool,
|
|
190
|
-
disabled: PropTypes.bool,
|
|
191
|
-
hidden: PropTypes.bool,
|
|
192
|
-
showMore: PropTypes.bool,
|
|
193
|
-
showMoreText: PropTypes.string,
|
|
194
|
-
showLessText: PropTypes.string,
|
|
195
|
-
availableOptions: PropTypes.arrayOf(PropTypes.object),
|
|
196
|
-
lightBackground: PropTypes.bool,
|
|
197
|
-
edit: PropTypes.bool,
|
|
198
|
-
options: PropTypes.array,
|
|
199
|
-
subscribeCurrentValue: PropTypes.func,
|
|
200
|
-
onChange: PropTypes.func,
|
|
201
|
-
onFocus: PropTypes.func,
|
|
202
|
-
onBlur: PropTypes.func,
|
|
203
|
-
onUpdateCallback: PropTypes.func,
|
|
204
|
-
type: PropTypes.oneOf(['', 'error', 'error-border', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
205
|
-
selectType: PropTypes.oneOf(['', 'error', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
206
|
-
isExpanded: PropTypes.func,
|
|
207
|
-
loadingIcon: PropTypes.element,
|
|
208
|
-
successIcon: PropTypes.element,
|
|
209
|
-
padding: PropTypes.oneOf(['', 'small', 'medium', 'large'])
|
|
210
|
-
} : {};
|
|
211
|
-
var Instructions$1 = Instructions;
|
|
212
|
-
|
|
213
|
-
export { Instructions$1 as default };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { applyDefaultTheme } from '../../../utils/defaultTheme.js';
|
|
3
|
-
|
|
4
|
-
let _ = t => t,
|
|
5
|
-
_t,
|
|
6
|
-
_t2,
|
|
7
|
-
_t3,
|
|
8
|
-
_t4;
|
|
9
|
-
const Instructions = styled.div.attrs(applyDefaultTheme)(_t || (_t = _`
|
|
10
|
-
display: flex;
|
|
11
|
-
position: relative;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
${0};
|
|
14
|
-
`), props => props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')));
|
|
15
|
-
const TopBarContainer = styled.div.attrs(applyDefaultTheme)(_t2 || (_t2 = _`
|
|
16
|
-
position: absolute;
|
|
17
|
-
display: flex;
|
|
18
|
-
width: 100%;
|
|
19
|
-
margin-top: 0;
|
|
20
|
-
transition: margin-top 120ms;
|
|
21
|
-
&&.slide-in {
|
|
22
|
-
margin-top: -24px;
|
|
23
|
-
}
|
|
24
|
-
${0};
|
|
25
|
-
|
|
26
|
-
${0};
|
|
27
|
-
`), props => props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')), props => props.initialHover && props.theme.themeProp('background', '#634E01', props.theme.getColor('signal-yellow-400')));
|
|
28
|
-
const SelectContainer = styled.div.attrs(applyDefaultTheme)(_t3 || (_t3 = _`
|
|
29
|
-
width: 100%;
|
|
30
|
-
margin: 0 2px;
|
|
31
|
-
`));
|
|
32
|
-
const InstructionsArea = styled.div.attrs(applyDefaultTheme)(_t4 || (_t4 = _`
|
|
33
|
-
margin: 2px 2px -2px 2px;
|
|
34
|
-
`));
|
|
35
|
-
|
|
36
|
-
export { Instructions, InstructionsArea, SelectContainer, TopBarContainer };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../Instructions.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import styleInject from '../../node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = "/**\n * Colors\n */";
|
|
4
|
-
var importedColors = {"orange-600":"#634e01","orange-500":"#ff9900","orange-400":"#ffcb7e","emerald-600":"#296c58","emerald-500":"#30826a","emerald-400":"#64b49d","emerald-300":"#bfe0d5","emerald-200":"#f3f9f7","gray-900":"#141313","gray-800":"#272727","gray-700":"#323232","gray-600":"#505050","gray-500":"#767676","gray-400":"#b0b6b9","gray-300":"#d9dce0","gray-200":"#eff1f4","gray-100":"#f7f8f9","cercise-500":"#5f1031","cercise-400":"#854962","cercise-300":"#d099b0","cercise-200":"#fecaca","cercise-100":"#f9f3f5","red-600":"#7f1b1b","red-500":"#d83000","red-200":"#fbeae6","brown-500":"#634e01","signal-yellow-500":"#f4e21e","signal-yellow-400":"#fff36c","signal-green-500":"#00bd98","signal-green-400":"#a3ffe0","black":"#202435","white":"#ffffff"};
|
|
5
|
-
styleInject(css_248z);
|
|
6
|
-
|
|
7
|
-
export { importedColors as default };
|
package/styles/config.scss
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colors
|
|
3
|
-
*/
|
|
4
|
-
$colors: (
|
|
5
|
-
'orange-600': #634e01,
|
|
6
|
-
'orange-500': #ff9900,
|
|
7
|
-
'orange-400': #ffcb7e,
|
|
8
|
-
'emerald-600': #296c58,
|
|
9
|
-
'emerald-500': #30826a,
|
|
10
|
-
'emerald-400': #64b49d,
|
|
11
|
-
'emerald-300': #bfe0d5,
|
|
12
|
-
'emerald-200': #f3f9f7,
|
|
13
|
-
'gray-900': #141313,
|
|
14
|
-
'gray-800': #272727,
|
|
15
|
-
'gray-700': #323232,
|
|
16
|
-
'gray-600': #505050,
|
|
17
|
-
'gray-500': #767676,
|
|
18
|
-
'gray-400': #b0b6b9,
|
|
19
|
-
'gray-300': #d9dce0,
|
|
20
|
-
'gray-200': #eff1f4,
|
|
21
|
-
'gray-100': #f7f8f9,
|
|
22
|
-
'cercise-500': #5f1031,
|
|
23
|
-
'cercise-400': #854962,
|
|
24
|
-
'cercise-300': #d099b0,
|
|
25
|
-
'cercise-200': #fecaca,
|
|
26
|
-
'cercise-100': #f9f3f5,
|
|
27
|
-
'red-600': #7f1b1b,
|
|
28
|
-
'red-500': #d83000,
|
|
29
|
-
'red-200': #fbeae6,
|
|
30
|
-
'brown-500': #634e01,
|
|
31
|
-
'signal-yellow-500': #f4e21e,
|
|
32
|
-
'signal-yellow-400': #fff36c,
|
|
33
|
-
'signal-green-500': #00bd98,
|
|
34
|
-
'signal-green-400': #a3ffe0,
|
|
35
|
-
'black': #202435,
|
|
36
|
-
'white': #ffffff
|
|
37
|
-
);
|
|
File without changes
|