@superdispatch/ui-lab 0.23.4 → 0.24.0

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.
@@ -22,14 +22,14 @@ var Dropzone = _interopDefault(require('react-dropzone'));
22
22
  var reactAnchorme = require('react-anchorme');
23
23
  var lodash = require('lodash');
24
24
 
25
- function colorMixin(textColor, backgroundColor, buttonHoverColor) {
26
- return styled.css(["color:", ";background-color:", ";& .MuiAlert-icon{color:", ";}& .MuiAlert-action{& .MuiIconButton-root{&:hover,&:active{color:", ";}}}"], textColor, backgroundColor, textColor, buttonHoverColor);
25
+ function colorMixin(textColor, iconColor, backgroundColor, buttonHoverColor) {
26
+ return styled.css(["color:", ";border-color:", ";background-color:", ";& .MuiAlert-icon{color:", ";}& .MuiAlert-action{color:", ";& .MuiIconButton-root{&:hover,&:active{color:", ";}}}"], textColor, textColor, backgroundColor, iconColor, iconColor, buttonHoverColor);
27
27
  }
28
28
 
29
29
  var StyledAlert = /*#__PURE__*/styled__default(lab.Alert).withConfig({
30
30
  displayName: "Alert__StyledAlert",
31
31
  componentId: "SD__sc-1j6qebb-0"
32
- })(["&.MuiAlert-outlinedSuccess{", ";}&.MuiAlert-outlinedInfo{", ";}&.MuiAlert-outlinedWarning{", ";}&.MuiAlert-outlinedError{", ";}& .MuiAlert-icon{opacity:1;padding:8px 0;font-size:24px;}& .MuiAlert-action{display:block;padding-top:5px;margin-right:-3px;& .MuiIconButton-root{& .MuiSvgIcon-root{font-size:24px;}}}"], /*#__PURE__*/colorMixin(ui.Color.Green500, ui.Color.Green50, ui.Color.Green400), /*#__PURE__*/colorMixin(ui.Color.Blue500, ui.Color.Blue50, ui.Color.Blue400), /*#__PURE__*/colorMixin(ui.Color.Yellow500, ui.Color.Yellow50, ui.Color.Yellow400), /*#__PURE__*/colorMixin(ui.Color.Red500, ui.Color.Red50, ui.Color.Red400));
32
+ })(["&.MuiAlert-outlinedSuccess{", ";}&.MuiAlert-outlinedInfo{", ";}&.MuiAlert-outlinedWarning{", ";}&.MuiAlert-outlinedError{", ";}& .MuiAlert-icon{opacity:1;padding:8px 0;font-size:24px;}& .MuiAlert-action{display:block;padding-top:5px;margin-right:-3px;& .MuiIconButton-root{& .MuiSvgIcon-root{font-size:24px;}}}"], /*#__PURE__*/colorMixin(ui.Color.Green500, ui.Color.Green300, ui.Color.Green50, ui.Color.Green400), /*#__PURE__*/colorMixin(ui.Color.Blue500, ui.Color.Blue300, ui.Color.Blue50, ui.Color.Blue400), /*#__PURE__*/colorMixin(ui.Color.Yellow500, ui.Color.Yellow300, ui.Color.Yellow50, ui.Color.Yellow400), /*#__PURE__*/colorMixin(ui.Color.Red500, ui.Color.Red300, ui.Color.Red50, ui.Color.Red400));
33
33
 
34
34
  function toMaterialSeverity(severity) {
35
35
  return severity === 'info' ? 'info' : severity === 'caution' ? 'warning' : severity === 'critical' ? 'error' : 'success';
@@ -38,7 +38,8 @@ function toMaterialSeverity(severity) {
38
38
  var iconMapping = {
39
39
  success: /*#__PURE__*/jsxRuntime.jsx(icons.CheckCircle, {}),
40
40
  info: /*#__PURE__*/jsxRuntime.jsx(icons.Info, {}),
41
- error: /*#__PURE__*/jsxRuntime.jsx(icons.Error, {})
41
+ error: /*#__PURE__*/jsxRuntime.jsx(icons.Error, {}),
42
+ warning: /*#__PURE__*/jsxRuntime.jsx(icons.Warning, {})
42
43
  };
43
44
  var Alert = /*#__PURE__*/react.forwardRef((_ref, ref) => {
44
45
  var {
@@ -684,7 +685,7 @@ var _excluded$4 = ["variant", "as", "align", "color", "display", "noWrap", "wrap
684
685
  var normalizeTextColor = /*#__PURE__*/createRuleNormalizer({
685
686
  inherit: 'inherit',
686
687
  primary: ui.Color.Dark500,
687
- secondary: ui.Color.Dark200,
688
+ secondary: ui.Color.Dark300,
688
689
  white: ui.Color.White,
689
690
  blue: ui.Color.Blue300,
690
691
  green: ui.Color.Green300,
@@ -863,6 +864,33 @@ var DescriptionItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
863
864
  });
864
865
  if (process.env.NODE_ENV !== "production") DescriptionItem.displayName = "DescriptionItem";
865
866
 
867
+ var DottedLine = /*#__PURE__*/styled__default.div.withConfig({
868
+ displayName: "DescriptionLineItem__DottedLine",
869
+ componentId: "SD__sc-1ixx5h8-0"
870
+ })(["border-bottom:1px dotted ", ";margin:0px 8px;height:7px;"], ui.Color.Silver400);
871
+ var DescriptionLineItem = /*#__PURE__*/react.forwardRef((_ref, ref) => {
872
+ var {
873
+ title,
874
+ children
875
+ } = _ref;
876
+ return /*#__PURE__*/jsxRuntime.jsxs(ui.Columns, {
877
+ ref: ref,
878
+ align: "center",
879
+ children: [/*#__PURE__*/jsxRuntime.jsx(ui.Column, {
880
+ width: "content",
881
+ children: title
882
+ }), /*#__PURE__*/jsxRuntime.jsx(ui.Column, {
883
+ width: "fluid",
884
+ children: /*#__PURE__*/jsxRuntime.jsx(DottedLine, {})
885
+ }), /*#__PURE__*/jsxRuntime.jsx(ui.Column, {
886
+ width: "content",
887
+ children: children
888
+ })]
889
+ });
890
+ });
891
+ if (process.env.NODE_ENV !== "production") DescriptionLineItem.displayName = "DescriptionLineItem";
892
+ DescriptionLineItem.displayName = 'DescriptionLineItem';
893
+
866
894
  var _excluded$5 = ["disabled", "children", "hintText", "startIcon", "fallback", "accept", "maxSize", "maxFiles", "onDropRejected", "onDropAccepted"];
867
895
  function toBytes(input, unit) {
868
896
  if (unit === 'gb') return input * (1 << 30);
@@ -2197,6 +2225,8 @@ exports.Chat = Chat;
2197
2225
  exports.ChatMessage = ChatMessage;
2198
2226
  exports.Container = Container;
2199
2227
  exports.DescriptionItem = DescriptionItem;
2228
+ exports.DescriptionLineItem = DescriptionLineItem;
2229
+ exports.DottedLine = DottedLine;
2200
2230
  exports.FileDropZone = FileDropZone;
2201
2231
  exports.FileListItem = FileListItem;
2202
2232
  exports.LinkedText = LinkedText;