@terraware/web-components 1.0.6 → 1.0.9
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/components/ErrorBox/ErrorBox.d.ts +11 -0
- package/components/ErrorBox/ErrorBox.d.ts.map +1 -0
- package/components/ErrorBox/ErrorBox.js +50 -0
- package/components/ErrorBox/styles.scss +63 -0
- package/components/Icon/icons/index.d.ts.map +1 -1
- package/components/Icon/icons/index.js +55 -55
- package/components/Message/Message.d.ts +16 -0
- package/components/Message/Message.d.ts.map +1 -0
- package/components/Message/Message.js +86 -0
- package/components/Message/styles.scss +190 -0
- package/components/Navbar/Navbar.js +2 -2
- package/components/{Icon/icons/assets → svg}/BlobbyGrayIconUploadToTheCloud.d.ts +0 -0
- package/components/svg/BlobbyGrayIconUploadToTheCloud.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyGrayIconUploadToTheCloud.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconHappy.d.ts +0 -0
- package/components/svg/BlobbyIconHappy.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconHappy.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconHeartMonitor.d.ts +0 -0
- package/components/svg/BlobbyIconHeartMonitor.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconHeartMonitor.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconLeaf.d.ts +0 -0
- package/components/svg/BlobbyIconLeaf.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconLeaf.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconLibrary.d.ts +0 -0
- package/components/svg/BlobbyIconLibrary.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconLibrary.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconOrganization.d.ts +0 -0
- package/components/svg/BlobbyIconOrganization.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconOrganization.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconPeople.d.ts +0 -0
- package/components/svg/BlobbyIconPeople.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconPeople.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconSeedBank.d.ts +0 -0
- package/components/svg/BlobbyIconSeedBank.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconSeedBank.js +0 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconWrench.d.ts +0 -0
- package/components/svg/BlobbyIconWrench.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/BlobbyIconWrench.js +0 -0
- package/components/{Icon/icons/assets → svg}/Bug.d.ts +0 -0
- package/components/svg/Bug.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Bug.js +0 -0
- package/components/{Icon/icons/assets → svg}/Calendar.d.ts +0 -0
- package/components/svg/Calendar.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Calendar.js +0 -0
- package/components/{Icon/icons/assets → svg}/CaretDown.d.ts +0 -0
- package/components/svg/CaretDown.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/CaretDown.js +0 -0
- package/components/{Icon/icons/assets → svg}/CaretLeft.d.ts +0 -0
- package/components/svg/CaretLeft.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/CaretLeft.js +0 -0
- package/components/{Icon/icons/assets → svg}/CaretUp.d.ts +0 -0
- package/components/svg/CaretUp.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/CaretUp.js +0 -0
- package/components/{Icon/icons/assets → svg}/ChevronDown.d.ts +0 -0
- package/components/svg/ChevronDown.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/ChevronDown.js +0 -0
- package/components/{Icon/icons/assets → svg}/ChevronUp.d.ts +0 -0
- package/components/svg/ChevronUp.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/ChevronUp.js +0 -0
- package/components/{Icon/icons/assets → svg}/Close.d.ts +0 -0
- package/components/svg/Close.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Close.js +0 -0
- package/components/{Icon/icons/assets → svg}/Critical.d.ts +0 -0
- package/components/svg/Critical.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Critical.js +0 -0
- package/components/{Icon/icons/assets → svg}/Edit.d.ts +0 -0
- package/components/svg/Edit.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Edit.js +0 -0
- package/components/{Icon/icons/assets → svg}/Error.d.ts +0 -0
- package/components/svg/Error.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Error.js +0 -0
- package/components/{Icon/icons/assets → svg}/Export.d.ts +0 -0
- package/components/svg/Export.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Export.js +0 -0
- package/components/{Icon/icons/assets → svg}/Filter.d.ts +0 -0
- package/components/svg/Filter.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Filter.js +0 -0
- package/components/{Icon/icons/assets → svg}/Folder.d.ts +0 -0
- package/components/svg/Folder.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Folder.js +0 -0
- package/components/{Icon/icons/assets → svg}/Help.d.ts +0 -0
- package/components/svg/Help.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Help.js +0 -0
- package/components/{Icon/icons/assets → svg}/Home.d.ts +0 -0
- package/components/svg/Home.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Home.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconCancel.d.ts +0 -0
- package/components/svg/IconCancel.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconCancel.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconChargingBattery.d.ts +0 -0
- package/components/svg/IconChargingBattery.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconChargingBattery.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconCheckmark.d.ts +0 -0
- package/components/svg/IconCheckmark.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconCheckmark.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconDashboard.d.ts +0 -0
- package/components/svg/IconDashboard.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconDashboard.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconHeartMonitor.d.ts +0 -0
- package/components/svg/IconHeartMonitor.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconHeartMonitor.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconMail.d.ts +0 -0
- package/components/svg/IconMail.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconMail.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconManager.d.ts +0 -0
- package/components/svg/IconManager.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconManager.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconMenu.d.ts +0 -0
- package/components/svg/IconMenu.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconMenu.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconOrg.d.ts +0 -0
- package/components/svg/IconOrg.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconOrg.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconSeedBank.d.ts +0 -0
- package/components/svg/IconSeedBank.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconSeedBank.js +0 -0
- package/components/{Icon/icons/assets → svg}/IconWifi.d.ts +0 -0
- package/components/svg/IconWifi.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/IconWifi.js +0 -0
- package/components/{Icon/icons/assets → svg}/Info.d.ts +0 -0
- package/components/svg/Info.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Info.js +0 -0
- package/components/{Icon/icons/assets → svg}/Key.d.ts +0 -0
- package/components/svg/Key.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Key.js +0 -0
- package/components/{Icon/icons/assets → svg}/Leaf.d.ts +0 -0
- package/components/svg/Leaf.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Leaf.js +0 -0
- package/components/{Icon/icons/assets → svg}/Lock.d.ts +0 -0
- package/components/svg/Lock.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Lock.js +0 -0
- package/components/svg/Logo.d.ts +8 -0
- package/components/svg/Logo.d.ts.map +1 -0
- package/components/svg/Logo.js +55 -0
- package/components/{Icon/icons/assets → svg}/MenuVertical.d.ts +0 -0
- package/components/svg/MenuVertical.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/MenuVertical.js +0 -0
- package/components/{Icon/icons/assets → svg}/Notification.d.ts +0 -0
- package/components/svg/Notification.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Notification.js +0 -0
- package/components/{Icon/icons/assets → svg}/Person.d.ts +0 -0
- package/components/svg/Person.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Person.js +0 -0
- package/components/{Icon/icons/assets → svg}/Plus.d.ts +0 -0
- package/components/svg/Plus.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Plus.js +0 -0
- package/components/{Icon/icons/assets → svg}/RestorationSite.d.ts +0 -0
- package/components/svg/RestorationSite.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/RestorationSite.js +0 -0
- package/components/{Icon/icons/assets → svg}/Search.d.ts +0 -0
- package/components/svg/Search.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Search.js +0 -0
- package/components/{Icon/icons/assets → svg}/Seeds.d.ts +0 -0
- package/components/svg/Seeds.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Seeds.js +0 -0
- package/components/{Icon/icons/assets → svg}/Site.d.ts +0 -0
- package/components/svg/Site.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Site.js +0 -0
- package/components/{Icon/icons/assets → svg}/Sparkles.d.ts +0 -0
- package/components/svg/Sparkles.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Sparkles.js +0 -0
- package/components/{Icon/icons/assets → svg}/Species.d.ts +0 -0
- package/components/svg/Species.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Species.js +0 -0
- package/components/{Icon/icons/assets → svg}/Species2.d.ts +0 -0
- package/components/svg/Species2.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Species2.js +0 -0
- package/components/{Icon/icons/assets → svg}/Spinner.d.ts +0 -0
- package/components/svg/Spinner.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Spinner.js +0 -0
- package/components/{Icon/icons/assets → svg}/Success.d.ts +0 -0
- package/components/svg/Success.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Success.js +0 -0
- package/components/{Icon/icons/assets → svg}/Touchscreen.d.ts +0 -0
- package/components/svg/Touchscreen.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Touchscreen.js +0 -0
- package/components/{Icon/icons/assets → svg}/UploadCloud.d.ts +0 -0
- package/components/svg/UploadCloud.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/UploadCloud.js +0 -0
- package/components/{Icon/icons/assets → svg}/Warning.d.ts +0 -0
- package/components/svg/Warning.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/Warning.js +0 -0
- package/components/{Icon/icons/assets → svg}/index.d.ts +1 -0
- package/components/svg/index.d.ts.map +1 -0
- package/components/{Icon/icons/assets → svg}/index.js +8 -0
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +21 -0
- package/license-report.html +1 -1
- package/package.json +2 -2
- package/stories/Autocomplete.stories.d.ts.map +1 -1
- package/stories/Button.stories.d.ts.map +1 -1
- package/stories/Checkbox.stories.d.ts.map +1 -1
- package/stories/DatePicker.stories.d.ts.map +1 -1
- package/stories/DialogBox.stories.d.ts.map +1 -1
- package/stories/Divisor.stories.d.ts.map +1 -1
- package/stories/Dropdown.stories.d.ts.map +1 -1
- package/stories/ErrorBox.stories.d.ts +9 -0
- package/stories/ErrorBox.stories.d.ts.map +1 -0
- package/stories/Icon.stories.d.ts.map +1 -1
- package/stories/Message.stories.d.ts +10 -0
- package/stories/Message.stories.d.ts.map +1 -0
- package/stories/Navbar.stories.d.ts.map +1 -1
- package/stories/Note.stories.d.ts.map +1 -1
- package/stories/RadioButton.stories.d.ts.map +1 -1
- package/stories/Select.stories.d.ts.map +1 -1
- package/stories/Table.stories.d.ts.map +1 -1
- package/stories/TextfieldNew.stories.d.ts.map +1 -1
- package/style-dictionary-dist/message_variables.scss +247 -0
- package/components/Icon/icons/assets/BlobbyGrayIconUploadToTheCloud.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconHappy.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconHeartMonitor.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconLeaf.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconLibrary.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconOrganization.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconPeople.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconSeedBank.d.ts.map +0 -1
- package/components/Icon/icons/assets/BlobbyIconWrench.d.ts.map +0 -1
- package/components/Icon/icons/assets/Bug.d.ts.map +0 -1
- package/components/Icon/icons/assets/Calendar.d.ts.map +0 -1
- package/components/Icon/icons/assets/CaretDown.d.ts.map +0 -1
- package/components/Icon/icons/assets/CaretLeft.d.ts.map +0 -1
- package/components/Icon/icons/assets/CaretUp.d.ts.map +0 -1
- package/components/Icon/icons/assets/ChevronDown.d.ts.map +0 -1
- package/components/Icon/icons/assets/ChevronUp.d.ts.map +0 -1
- package/components/Icon/icons/assets/Close.d.ts.map +0 -1
- package/components/Icon/icons/assets/Critical.d.ts.map +0 -1
- package/components/Icon/icons/assets/Edit.d.ts.map +0 -1
- package/components/Icon/icons/assets/Error.d.ts.map +0 -1
- package/components/Icon/icons/assets/Export.d.ts.map +0 -1
- package/components/Icon/icons/assets/Filter.d.ts.map +0 -1
- package/components/Icon/icons/assets/Folder.d.ts.map +0 -1
- package/components/Icon/icons/assets/Help.d.ts.map +0 -1
- package/components/Icon/icons/assets/Home.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconCancel.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconChargingBattery.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconCheckmark.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconDashboard.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconHeartMonitor.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconMail.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconManager.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconMenu.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconOrg.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconSeedBank.d.ts.map +0 -1
- package/components/Icon/icons/assets/IconWifi.d.ts.map +0 -1
- package/components/Icon/icons/assets/Info.d.ts.map +0 -1
- package/components/Icon/icons/assets/Key.d.ts.map +0 -1
- package/components/Icon/icons/assets/Leaf.d.ts.map +0 -1
- package/components/Icon/icons/assets/Lock.d.ts.map +0 -1
- package/components/Icon/icons/assets/MenuVertical.d.ts.map +0 -1
- package/components/Icon/icons/assets/Notification.d.ts.map +0 -1
- package/components/Icon/icons/assets/Person.d.ts.map +0 -1
- package/components/Icon/icons/assets/Plus.d.ts.map +0 -1
- package/components/Icon/icons/assets/RestorationSite.d.ts.map +0 -1
- package/components/Icon/icons/assets/Search.d.ts.map +0 -1
- package/components/Icon/icons/assets/Seeds.d.ts.map +0 -1
- package/components/Icon/icons/assets/Site.d.ts.map +0 -1
- package/components/Icon/icons/assets/Sparkles.d.ts.map +0 -1
- package/components/Icon/icons/assets/Species.d.ts.map +0 -1
- package/components/Icon/icons/assets/Species2.d.ts.map +0 -1
- package/components/Icon/icons/assets/Spinner.d.ts.map +0 -1
- package/components/Icon/icons/assets/Success.d.ts.map +0 -1
- package/components/Icon/icons/assets/Touchscreen.d.ts.map +0 -1
- package/components/Icon/icons/assets/UploadCloud.d.ts.map +0 -1
- package/components/Icon/icons/assets/Warning.d.ts.map +0 -1
- package/components/Icon/icons/assets/index.d.ts.map +0 -1
- package/components/Navbar/logo.svg +0 -25
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './styles.scss';
|
|
3
|
+
export interface Props {
|
|
4
|
+
text: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
buttonText?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function ErrorBox(props: Props): JSX.Element;
|
|
11
|
+
//# sourceMappingURL=ErrorBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorBox.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBox/ErrorBox.tsx"],"names":[],"mappings":";AAIA,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAoB1D"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = ErrorBox;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
13
|
+
|
|
14
|
+
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
15
|
+
|
|
16
|
+
var _useDeviceInfo2 = _interopRequireDefault(require("../../utils/useDeviceInfo"));
|
|
17
|
+
|
|
18
|
+
require("./styles.scss");
|
|
19
|
+
|
|
20
|
+
function ErrorBox(props) {
|
|
21
|
+
var text = props.text,
|
|
22
|
+
onClick = props.onClick,
|
|
23
|
+
buttonText = props.buttonText,
|
|
24
|
+
title = props.title,
|
|
25
|
+
className = props.className;
|
|
26
|
+
|
|
27
|
+
var _useDeviceInfo = (0, _useDeviceInfo2.default)(),
|
|
28
|
+
isMobile = _useDeviceInfo.isMobile;
|
|
29
|
+
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
31
|
+
className: "error-box ".concat(className, " ").concat(isMobile ? 'mobile' : '')
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
+
className: "error-box--container"
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
35
|
+
name: "error",
|
|
36
|
+
className: "error-icon",
|
|
37
|
+
size: "large"
|
|
38
|
+
}), /*#__PURE__*/_react.default.createElement("div", null, title && /*#__PURE__*/_react.default.createElement("h1", {
|
|
39
|
+
className: "error-title"
|
|
40
|
+
}, title), /*#__PURE__*/_react.default.createElement("p", {
|
|
41
|
+
className: "error-text"
|
|
42
|
+
}, text))), buttonText && onClick && /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
className: "button-container"
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
45
|
+
label: buttonText,
|
|
46
|
+
priority: "secondary",
|
|
47
|
+
type: "passive",
|
|
48
|
+
onClick: onClick
|
|
49
|
+
})));
|
|
50
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@import '../../style-dictionary-dist/textfield_variables.scss';
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'Inter';
|
|
5
|
+
src: local('Inter'), url(../../fonts/Inter.ttf) format('truetype');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.error-box {
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 60%;
|
|
11
|
+
margin-top: $tw-spc-base-xx-small;
|
|
12
|
+
background: $tw-clr-base-red-050;
|
|
13
|
+
padding: 16px;
|
|
14
|
+
margin: 0 auto;
|
|
15
|
+
border: 1px solid $tw-clr-icon-fill-critical;
|
|
16
|
+
border-radius: 8px;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
|
|
19
|
+
&--container {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: flex-start;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.mobile {
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.error-text {
|
|
30
|
+
font-family: $tw-fnt-frm-fld-error-text-font-family;
|
|
31
|
+
font-size: $tw-fnt-base-font-size-body-02;
|
|
32
|
+
font-weight: $tw-fnt-frm-fld-error-text-font-weight;
|
|
33
|
+
line-height: $tw-fnt-frm-fld-error-text-line-height;
|
|
34
|
+
color: $tw-clr-text-fill;
|
|
35
|
+
display: block;
|
|
36
|
+
width: 100%;
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
margin-top: 0;
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.error-title {
|
|
43
|
+
font-family: $tw-fnt-frm-fld-error-text-font-family;
|
|
44
|
+
font-size: $tw-fnt-base-font-size-body-02;
|
|
45
|
+
font-weight: $tw-fnt-base-headline-01-semi-bold-font-weight;
|
|
46
|
+
line-height: $tw-fnt-frm-fld-error-text-line-height;
|
|
47
|
+
color: $tw-clr-text-fill;
|
|
48
|
+
display: block;
|
|
49
|
+
width: 100%;
|
|
50
|
+
max-width: 100%;
|
|
51
|
+
margin-top: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.button-container {
|
|
55
|
+
width: 100%;
|
|
56
|
+
text-align: right;
|
|
57
|
+
margin-top: 16px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.error-icon {
|
|
61
|
+
fill: $tw-clr-frm-fld-error-text;
|
|
62
|
+
margin-right: $tw-spc-base-x-small;
|
|
63
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/icons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/icons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4D1B,oBAAY,QAAQ,GAChB,gCAAgC,GAChC,oBAAoB,GACpB,iBAAiB,GACjB,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,KAAK,GACL,UAAU,GACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,aAAa,GACb,WAAW,GACX,OAAO,GACP,UAAU,GACV,WAAW,GACX,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,cAAc,GACd,iBAAiB,GACjB,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,MAAM,GACN,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,aAAa,GACb,OAAO,GACP,UAAU,GACV,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,GACT,aAAa,GACb,aAAa,GACb,SAAS,GACT,MAAM,CAAC;AAEX,aAAK,YAAY,GAAG,KAAK,CAAC,iBAAiB,CACzC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CACF,CAAC;AACF,QAAA,MAAM,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,CAyDzC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -7,115 +7,115 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _BlobbyGrayIconUploadToTheCloud = _interopRequireDefault(require("
|
|
10
|
+
var _BlobbyGrayIconUploadToTheCloud = _interopRequireDefault(require("../../svg/BlobbyGrayIconUploadToTheCloud"));
|
|
11
11
|
|
|
12
|
-
var _BlobbyIconHappy = _interopRequireDefault(require("
|
|
12
|
+
var _BlobbyIconHappy = _interopRequireDefault(require("../../svg/BlobbyIconHappy"));
|
|
13
13
|
|
|
14
|
-
var _BlobbyIconLeaf = _interopRequireDefault(require("
|
|
14
|
+
var _BlobbyIconLeaf = _interopRequireDefault(require("../../svg/BlobbyIconLeaf"));
|
|
15
15
|
|
|
16
|
-
var _BlobbyIconLibrary = _interopRequireDefault(require("
|
|
16
|
+
var _BlobbyIconLibrary = _interopRequireDefault(require("../../svg/BlobbyIconLibrary"));
|
|
17
17
|
|
|
18
|
-
var _BlobbyIconSeedBank = _interopRequireDefault(require("
|
|
18
|
+
var _BlobbyIconSeedBank = _interopRequireDefault(require("../../svg/BlobbyIconSeedBank"));
|
|
19
19
|
|
|
20
|
-
var _BlobbyIconWrench = _interopRequireDefault(require("
|
|
20
|
+
var _BlobbyIconWrench = _interopRequireDefault(require("../../svg/BlobbyIconWrench"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _Bug = _interopRequireDefault(require("../../svg/Bug"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _Calendar = _interopRequireDefault(require("../../svg/Calendar"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _IconCancel = _interopRequireDefault(require("../../svg/IconCancel"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _CaretDown = _interopRequireDefault(require("../../svg/CaretDown"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _CaretLeft = _interopRequireDefault(require("../../svg/CaretLeft"));
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _CaretUp = _interopRequireDefault(require("../../svg/CaretUp"));
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _IconChargingBattery = _interopRequireDefault(require("../../svg/IconChargingBattery"));
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _IconCheckmark = _interopRequireDefault(require("../../svg/IconCheckmark"));
|
|
37
37
|
|
|
38
|
-
var _ChevronDown = _interopRequireDefault(require("
|
|
38
|
+
var _ChevronDown = _interopRequireDefault(require("../../svg/ChevronDown"));
|
|
39
39
|
|
|
40
|
-
var _ChevronUp = _interopRequireDefault(require("
|
|
40
|
+
var _ChevronUp = _interopRequireDefault(require("../../svg/ChevronUp"));
|
|
41
41
|
|
|
42
|
-
var _Close = _interopRequireDefault(require("
|
|
42
|
+
var _Close = _interopRequireDefault(require("../../svg/Close"));
|
|
43
43
|
|
|
44
|
-
var _Critical = _interopRequireDefault(require("
|
|
44
|
+
var _Critical = _interopRequireDefault(require("../../svg/Critical"));
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _IconDashboard = _interopRequireDefault(require("../../svg/IconDashboard"));
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _Edit = _interopRequireDefault(require("../../svg/Edit"));
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _Error = _interopRequireDefault(require("../../svg/Error"));
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _Export = _interopRequireDefault(require("../../svg/Export"));
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _Filter = _interopRequireDefault(require("../../svg/Filter"));
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _Folder = _interopRequireDefault(require("../../svg/Folder"));
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _Help = _interopRequireDefault(require("../../svg/Help"));
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _Home = _interopRequireDefault(require("../../svg/Home"));
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _IconMenu = _interopRequireDefault(require("../../svg/IconMenu"));
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _Info = _interopRequireDefault(require("../../svg/Info"));
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _Key = _interopRequireDefault(require("../../svg/Key"));
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _Leaf = _interopRequireDefault(require("../../svg/Leaf"));
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _Lock = _interopRequireDefault(require("../../svg/Lock"));
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _MenuVertical = _interopRequireDefault(require("../../svg/MenuVertical"));
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _BlobbyIconHeartMonitor = _interopRequireDefault(require("../../svg/BlobbyIconHeartMonitor"));
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _IconHeartMonitor = _interopRequireDefault(require("../../svg/IconHeartMonitor"));
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _IconMail = _interopRequireDefault(require("../../svg/IconMail"));
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _Notification = _interopRequireDefault(require("../../svg/Notification"));
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _BlobbyIconOrganization = _interopRequireDefault(require("../../svg/BlobbyIconOrganization"));
|
|
83
83
|
|
|
84
|
-
var
|
|
84
|
+
var _IconOrg = _interopRequireDefault(require("../../svg/IconOrg"));
|
|
85
85
|
|
|
86
|
-
var
|
|
86
|
+
var _BlobbyIconPeople = _interopRequireDefault(require("../../svg/BlobbyIconPeople"));
|
|
87
87
|
|
|
88
|
-
var
|
|
88
|
+
var _IconManager = _interopRequireDefault(require("../../svg/IconManager"));
|
|
89
89
|
|
|
90
|
-
var
|
|
90
|
+
var _Person = _interopRequireDefault(require("../../svg/Person"));
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _Plus = _interopRequireDefault(require("../../svg/Plus"));
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _RestorationSite = _interopRequireDefault(require("../../svg/RestorationSite"));
|
|
95
95
|
|
|
96
|
-
var
|
|
96
|
+
var _Search = _interopRequireDefault(require("../../svg/Search"));
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _IconSeedBank = _interopRequireDefault(require("../../svg/IconSeedBank"));
|
|
99
99
|
|
|
100
|
-
var
|
|
100
|
+
var _Seeds = _interopRequireDefault(require("../../svg/Seeds"));
|
|
101
101
|
|
|
102
|
-
var
|
|
102
|
+
var _Sparkles = _interopRequireDefault(require("../../svg/Sparkles"));
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _Species = _interopRequireDefault(require("../../svg/Species"));
|
|
105
105
|
|
|
106
|
-
var
|
|
106
|
+
var _Species2 = _interopRequireDefault(require("../../svg/Species2"));
|
|
107
107
|
|
|
108
|
-
var
|
|
108
|
+
var _Spinner = _interopRequireDefault(require("../../svg/Spinner"));
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _Success = _interopRequireDefault(require("../../svg/Success"));
|
|
111
111
|
|
|
112
|
-
var
|
|
112
|
+
var _Touchscreen = _interopRequireDefault(require("../../svg/Touchscreen"));
|
|
113
113
|
|
|
114
|
-
var
|
|
114
|
+
var _UploadCloud = _interopRequireDefault(require("../../svg/UploadCloud"));
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _Warning = _interopRequireDefault(require("../../svg/Warning"));
|
|
117
117
|
|
|
118
|
-
var
|
|
118
|
+
var _IconWifi = _interopRequireDefault(require("../../svg/IconWifi"));
|
|
119
119
|
|
|
120
120
|
var icons = {
|
|
121
121
|
blobbyGrayIconUploadToTheCloud: _BlobbyGrayIconUploadToTheCloud.default,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './styles.scss';
|
|
3
|
+
export interface Props {
|
|
4
|
+
type: 'page' | 'toast';
|
|
5
|
+
priority: 'info' | 'critical' | 'warning' | 'success';
|
|
6
|
+
title?: string | string[];
|
|
7
|
+
body: string | string[];
|
|
8
|
+
actionText?: string;
|
|
9
|
+
actionHandler?: () => void;
|
|
10
|
+
pageButtons?: JSX.Element[];
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
open: boolean;
|
|
14
|
+
}
|
|
15
|
+
export default function Message(props: Props): JSX.Element | null;
|
|
16
|
+
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.tsx"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC;AAKvB,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IACtD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAyDhE"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = Message;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
require("./styles.scss");
|
|
15
|
+
|
|
16
|
+
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
17
|
+
|
|
18
|
+
var _material = require("@mui/material");
|
|
19
|
+
|
|
20
|
+
var _utils = require("../../utils");
|
|
21
|
+
|
|
22
|
+
function Message(props) {
|
|
23
|
+
var type = props.type,
|
|
24
|
+
priority = props.priority,
|
|
25
|
+
title = props.title,
|
|
26
|
+
body = props.body,
|
|
27
|
+
actionText = props.actionText,
|
|
28
|
+
actionHandler = props.actionHandler,
|
|
29
|
+
pageButtons = props.pageButtons,
|
|
30
|
+
showCloseButton = props.showCloseButton,
|
|
31
|
+
onClose = props.onClose,
|
|
32
|
+
open = props.open;
|
|
33
|
+
|
|
34
|
+
var _useDeviceInfo = (0, _utils.useDeviceInfo)(),
|
|
35
|
+
isMobile = _useDeviceInfo.isMobile;
|
|
36
|
+
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(_material.Snackbar, {
|
|
38
|
+
anchorOrigin: {
|
|
39
|
+
vertical: isMobile ? 'bottom' : 'top',
|
|
40
|
+
horizontal: 'center'
|
|
41
|
+
},
|
|
42
|
+
open: open,
|
|
43
|
+
onClose: onClose,
|
|
44
|
+
autoHideDuration: 5000,
|
|
45
|
+
sx: {
|
|
46
|
+
width: '100%'
|
|
47
|
+
}
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
className: "tw-message tw-message--".concat(type, " tw-message--").concat(priority)
|
|
50
|
+
}, type === 'toast' && /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
+
className: "tw-message--left-side"
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
53
|
+
name: priority,
|
|
54
|
+
className: "left-side--icon"
|
|
55
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
+
className: "tw-message--container"
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
+
className: "tw-message--main-content"
|
|
59
|
+
}, type === 'page' && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
60
|
+
name: priority,
|
|
61
|
+
className: "main-content--icon"
|
|
62
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
className: "tw-message--main-body"
|
|
64
|
+
}, title && /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
+
className: "tw-message--title-container"
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement("h1", null, title)), /*#__PURE__*/_react.default.createElement("h2", null, body), type === 'page' && pageButtons && pageButtons.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
67
|
+
className: "tw-message--actions-container"
|
|
68
|
+
}, pageButtons === null || pageButtons === void 0 ? void 0 : pageButtons.map(function (pageButton, index) {
|
|
69
|
+
var pageButtonWithKey = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, pageButton), {}, {
|
|
70
|
+
key: "page-button-".concat(index),
|
|
71
|
+
props: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, pageButton.props), {}, {
|
|
72
|
+
size: pageButton.props.size || 'medium'
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
return pageButtonWithKey;
|
|
76
|
+
})) : null)), type === 'toast' && actionText ? /*#__PURE__*/_react.default.createElement("button", {
|
|
77
|
+
onClick: actionHandler,
|
|
78
|
+
className: "tw-message--action-text"
|
|
79
|
+
}, actionText) : showCloseButton ? /*#__PURE__*/_react.default.createElement("button", {
|
|
80
|
+
onClick: onClose,
|
|
81
|
+
className: "icon-container"
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
83
|
+
name: "close",
|
|
84
|
+
className: "page-message--close-icon"
|
|
85
|
+
})) : null)));
|
|
86
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
@import '../../style-dictionary-dist/message_variables.scss';
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'Inter';
|
|
5
|
+
src: local('Inter'), url(../../fonts/Inter.ttf) format('truetype');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
.tw-message {
|
|
10
|
+
&.tw-message--page {
|
|
11
|
+
width: 584px;
|
|
12
|
+
&.tw-message--container {
|
|
13
|
+
margin: $tw-spc-base-small 0;
|
|
14
|
+
}
|
|
15
|
+
&.tw-message--title-container {
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
border-radius: $tw-sz-base-x-small;
|
|
21
|
+
display: flex;
|
|
22
|
+
|
|
23
|
+
width: 480px;
|
|
24
|
+
&--container {
|
|
25
|
+
margin: $tw-spc-base-small;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
&--title-container {
|
|
31
|
+
h1 {
|
|
32
|
+
font-family: $tw-fnt-mssg-title-font-family;
|
|
33
|
+
font-size: $tw-fnt-mssg-title-font-size;
|
|
34
|
+
font-weight: $tw-fnt-mssg-title-font-weight;
|
|
35
|
+
line-height: $tw-fnt-mssg-title-line-height;
|
|
36
|
+
color: $tw-clr-text-fill;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin: 0 0 $tw-spc-base-x-small 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--main-content {
|
|
43
|
+
display: flex;
|
|
44
|
+
width: 100%;
|
|
45
|
+
|
|
46
|
+
h2 {
|
|
47
|
+
font-family: $tw-fnt-mssg-body-font-family;
|
|
48
|
+
font-size: $tw-fnt-mssg-body-font-size;
|
|
49
|
+
font-weight: $tw-fnt-mssg-body-font-weight;
|
|
50
|
+
line-height: $tw-fnt-mssg-body-line-height;
|
|
51
|
+
color: $tw-clr-text-fill;
|
|
52
|
+
padding: 0;
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.main-content--icon {
|
|
57
|
+
width: $tw-sz-base-medium;
|
|
58
|
+
height: $tw-sz-base-medium;
|
|
59
|
+
margin-right: $tw-spc-base-small;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&--main-body {
|
|
64
|
+
width: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--actions-container {
|
|
70
|
+
align-self: end;
|
|
71
|
+
|
|
72
|
+
button:first-child {
|
|
73
|
+
margin-right: $tw-spc-base-x-small;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&--action-text {
|
|
78
|
+
font-family: $tw-fnt-mssg-body-font-family;
|
|
79
|
+
font-size: $tw-fnt-mssg-body-font-size;
|
|
80
|
+
font-weight: $tw-fnt-mssg-body-font-weight;
|
|
81
|
+
line-height: $tw-fnt-mssg-body-line-height;
|
|
82
|
+
color: $tw-clr-text-fill-productive;
|
|
83
|
+
margin-left: $tw-spc-base-x-small;
|
|
84
|
+
background: none;
|
|
85
|
+
border: 0;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
height: fit-content;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&--left-side {
|
|
91
|
+
padding: $tw-spc-base-small $tw-spc-base-small 0 $tw-spc-base-small;
|
|
92
|
+
.left-side--icon {
|
|
93
|
+
fill: $tw-clr-icon-fill-text-inv;
|
|
94
|
+
width: $tw-sz-base-medium;
|
|
95
|
+
height: $tw-sz-base-medium;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.toast-message--close-icon {
|
|
100
|
+
margin-left: $tw-spc-base-x-small;
|
|
101
|
+
fill: $tw-clr-icon-fill-passive;
|
|
102
|
+
width: $tw-sz-base-medium;
|
|
103
|
+
height: $tw-sz-base-medium;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.page-message--close-icon {
|
|
107
|
+
margin-left: $tw-spc-base-x-small;
|
|
108
|
+
fill: $tw-clr-icon-fill-passive;
|
|
109
|
+
width: $tw-sz-base-medium;
|
|
110
|
+
height: $tw-sz-base-medium;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.icon-container {
|
|
114
|
+
background: none;
|
|
115
|
+
border: 0;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
height: fit-content;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&--info {
|
|
121
|
+
&.tw-message--page {
|
|
122
|
+
border: 1px solid $tw-clr-base-semantic-passive;
|
|
123
|
+
background-color: $tw-clr-base-semantic-passive-bg;
|
|
124
|
+
.main-content--icon {
|
|
125
|
+
fill:$tw-clr-base-semantic-passive;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
border: 1px solid $tw-clr-icon-fill-passive;
|
|
129
|
+
&.tw-message--toast {
|
|
130
|
+
box-shadow: 0 2px $tw-clr-icon-fill-passive;
|
|
131
|
+
}
|
|
132
|
+
.tw-message--left-side {
|
|
133
|
+
background-color: $tw-clr-icon-fill-passive;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&--critical {
|
|
138
|
+
&.tw-message--page {
|
|
139
|
+
border: 1px solid $tw-clr-base-semantic-critical;
|
|
140
|
+
background-color: $tw-clr-base-semantic-critical-bg;
|
|
141
|
+
|
|
142
|
+
.main-content--icon {
|
|
143
|
+
fill: $tw-clr-base-semantic-critical
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
border: 1px solid $tw-clr-icon-fill-critical;
|
|
147
|
+
&.tw-message--toast {
|
|
148
|
+
box-shadow: 0 2px $tw-clr-icon-fill-critical;
|
|
149
|
+
}
|
|
150
|
+
.tw-message--left-side {
|
|
151
|
+
background-color: $tw-clr-icon-fill-critical;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&--warning {
|
|
156
|
+
&.tw-message--page {
|
|
157
|
+
border: 1px solid $tw-clr-base-semantic-warning;
|
|
158
|
+
background-color: $tw-clr-base-semantic-warning-bg;
|
|
159
|
+
|
|
160
|
+
.main-content--icon {
|
|
161
|
+
fill: $tw-clr-base-semantic-warning;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
border: 1px solid $tw-clr-icon-fill-warning;
|
|
165
|
+
&.tw-message--toast {
|
|
166
|
+
box-shadow: 0 2px $tw-clr-icon-fill-warning;
|
|
167
|
+
}
|
|
168
|
+
.tw-message--left-side {
|
|
169
|
+
background-color: $tw-clr-icon-fill-warning;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&--success {
|
|
174
|
+
&.tw-message--page {
|
|
175
|
+
border: 1px solid $tw-clr-base-semantic-success;
|
|
176
|
+
background-color: $tw-clr-base-semantic-success-bg;
|
|
177
|
+
|
|
178
|
+
.main-content--icon {
|
|
179
|
+
fill: $tw-clr-base-semantic-success;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
border: 1px solid $tw-clr-icon-fill-success;
|
|
183
|
+
&.tw-message--toast {
|
|
184
|
+
box-shadow: 0 2px $tw-clr-icon-fill-success;
|
|
185
|
+
}
|
|
186
|
+
.tw-message--left-side {
|
|
187
|
+
background-color: $tw-clr-icon-fill-success;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -9,7 +9,7 @@ exports.default = Navbar;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _svg = require("../svg");
|
|
13
13
|
|
|
14
14
|
require("./styles.scss");
|
|
15
15
|
|
|
@@ -50,7 +50,7 @@ function Navbar(props) {
|
|
|
50
50
|
className: "navbar"
|
|
51
51
|
}, isDesktop ? /*#__PURE__*/_react.default.createElement("div", {
|
|
52
52
|
className: "logo"
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_svg.Logo, null)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
54
54
|
className: classes.navBarTop
|
|
55
55
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
56
56
|
onClick: function onClick() {
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlobbyGrayIconUploadToTheCloud.d.ts","sourceRoot":"","sources":["../../../src/components/svg/BlobbyGrayIconUploadToTheCloud.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,iCAAiC,iCAAkC,SAAS,aAAa,CAAC,GAAG,SAAS,gBAc3G,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlobbyIconHappy.d.ts","sourceRoot":"","sources":["../../../src/components/svg/BlobbyIconHappy.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,kBAAkB,iCAAkC,SAAS,aAAa,CAAC,GAAG,SAAS,gBAgG5F,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlobbyIconHeartMonitor.d.ts","sourceRoot":"","sources":["../../../src/components/svg/BlobbyIconHeartMonitor.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,yBAAyB,iCAAkC,SAAS,aAAa,CAAC,GAAG,SAAS,gBAgGnG,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
File without changes
|
|
File without changes
|