@galaxy-ds/core 1.1.70 → 1.1.72

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/dist/index.js CHANGED
@@ -34256,6 +34256,11 @@ var Icon = function (props) {
34256
34256
  return (React__default["default"].createElement(SvgIcon$1, __assign$1({}, props)));
34257
34257
  };
34258
34258
 
34259
+ function LawconnectIcon(props) {
34260
+ return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", width: props.size + "px", viewBox: "0 0 141 140" },
34261
+ React__default["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.163 119.104a69.739 69.739 0 0049.313 20.426h.133a69.68 69.68 0 0064.35-43.067 69.663 69.663 0 005.281-26.673h-33.528v.042a36.23 36.23 0 01-22.382 33.464 36.236 36.236 0 11-13.853-69.718V.05a69.74 69.74 0 00-49.314 119.054zm119.049-95.585c0 12.962-10.507 23.47-23.469 23.47-12.962 0-23.47-10.508-23.47-23.47S103.782.049 116.744.049s23.469 10.508 23.469 23.47z", fill: "#ecedef" })));
34262
+ }
34263
+
34259
34264
  var useStyles$m = makeStyles({
34260
34265
  root: {
34261
34266
  '&.gds-header': {
@@ -34323,6 +34328,9 @@ var useStyles$m = makeStyles({
34323
34328
  var FormHeader = React__default["default"].forwardRef(function (props, ref) {
34324
34329
  var classes = useStyles$m();
34325
34330
  return (React__default["default"].createElement(Box$2, { className: clsx(classes.root, 'gds-header', props.fixed ? 'gds-header-fixed' : '') },
34331
+ props.hideBranding ? "" :
34332
+ React__default["default"].createElement("div", { className: clsx(classes.root, 'gds-header_accent') },
34333
+ React__default["default"].createElement(LawconnectIcon, { size: "260" })),
34326
34334
  React__default["default"].createElement(Box$2, { className: clsx(classes.root, 'gds-header_detail') },
34327
34335
  React__default["default"].createElement(Grid$2, { item: true, xs: 5, className: clsx("gds-toolbar-title") }, props.platformWeb ? (React__default["default"].createElement(Typography, { color: "default", variant: "body2", upperCase: true }, props.title)) : (React__default["default"].createElement(Typography, { variant: "h4", upperCase: true }, props.title))),
34328
34336
  React__default["default"].createElement(Grid$2, { item: true, xs: 7 },
@@ -46745,6 +46753,13 @@ var useStyles = makeStyles(function (theme) { return ({
46745
46753
  textAlign: 'right',
46746
46754
  whiteSpace: 'nowrap'
46747
46755
  },
46756
+ cost: {
46757
+ maxWidth: 80,
46758
+ minWidth: 80,
46759
+ marginLeft: 12,
46760
+ textAlign: 'right',
46761
+ whiteSpace: 'nowrap'
46762
+ },
46748
46763
  marginTop: {
46749
46764
  marginTop: 4,
46750
46765
  },
@@ -46768,21 +46783,23 @@ var useStyles = makeStyles(function (theme) { return ({
46768
46783
  }); });
46769
46784
  var ActivityLog = function (props) {
46770
46785
  var classes = useStyles();
46771
- var name = props.name, time = props.time, ext = props.ext, iconURL = props.iconURL, onAttach = props.onAttach, onClick = props.onClick, users = props.users, attachment = props.attachment, action = props.action, avatarGroupTooltip = props.avatarGroupTooltip, _a = props.insertIconTooltip, insertIconTooltip = _a === void 0 ? 'Insert' : _a, hover = props.hover, _b = props.tooltip, tooltip = _b === void 0 ? 'Preview' : _b, _c = props.nameRef, nameRef = _c === void 0 ? undefined : _c, defaultProps = __rest(props, ["name", "time", "ext", "iconURL", "onAttach", "onClick", "users", "attachment", "action", "avatarGroupTooltip", "insertIconTooltip", "hover", "tooltip", "nameRef"]);
46786
+ var name = props.name, time = props.time, ext = props.ext, cost = props.cost, iconURL = props.iconURL, onAttach = props.onAttach, onClick = props.onClick, users = props.users, attachment = props.attachment, action = props.action, avatarGroupTooltip = props.avatarGroupTooltip, _a = props.insertIconTooltip, insertIconTooltip = _a === void 0 ? 'Insert' : _a, hover = props.hover, _b = props.tooltip, tooltip = _b === void 0 ? 'Preview' : _b, _c = props.nameRef, nameRef = _c === void 0 ? undefined : _c, defaultProps = __rest(props, ["name", "time", "ext", "cost", "iconURL", "onAttach", "onClick", "users", "attachment", "action", "avatarGroupTooltip", "insertIconTooltip", "hover", "tooltip", "nameRef"]);
46772
46787
  var chipGroup;
46773
46788
  action ? chipGroup = classes.chipGroup : chipGroup = '';
46774
46789
  return (React__default["default"].createElement(MuiListItem, __assign$1({ className: classes.root }, defaultProps),
46775
46790
  React__default["default"].createElement(ListItemIcon$2, { className: clsx(classes.prependIcon, chipGroup, action ? classes.marginTop : '') }, attachment ? (React__default["default"].createElement(Tooltip, { title: insertIconTooltip },
46776
46791
  React__default["default"].createElement(IconButton, { onClick: onAttach },
46777
46792
  React__default["default"].createElement(InsertLinkIcon, null)))) : ('')),
46778
- React__default["default"].createElement(ListItemIcon$2, { className: clsx(classes.docTypeIcon, chipGroup) }, iconURL ? (React__default["default"].createElement("img", { src: iconURL, className: classes.activityIcon })) : (React__default["default"].createElement(AttachmentIcon, { ext: ext }))),
46793
+ (iconURL || ext) ? (React__default["default"].createElement(ListItemIcon$2, { className: clsx(classes.docTypeIcon, chipGroup) }, iconURL ? (React__default["default"].createElement("img", { src: iconURL, className: classes.activityIcon })) : (React__default["default"].createElement(AttachmentIcon, { ext: ext })))) : '',
46779
46794
  React__default["default"].createElement(ListItemText$2, { classes: { root: classes.name, primary: classes.primary }, onClick: onClick, secondaryTypographyProps: { component: 'div' }, secondary: action && (React__default["default"].createElement("div", { className: classes.chips }, action.map(function (tag) { return (React__default["default"].createElement(Chip, { label: tag.label, key: tag.label, variant: tag.variant })); }))) },
46780
46795
  hover ? (React__default["default"].createElement(Tooltip, { title: tooltip },
46781
46796
  React__default["default"].createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: "primary", className: classes.mainName }, name))) : (React__default["default"].createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: "primary", className: classes.mainName }, name)),
46782
46797
  users ? (React__default["default"].createElement("div", { className: clsx(chipGroup) },
46783
46798
  React__default["default"].createElement(AvatarsGroup, { max: 2, size: "small", tooltip: avatarGroupTooltip, tooltipPlacement: "bottom-end" }, users.map(function (person) { return (React__default["default"].createElement(Avatar, { color: "default", size: "small", tooltip: person.name, key: person.initials }, person.initials)); })))) : (''),
46784
46799
  React__default["default"].createElement("div", { className: clsx(classes.time, chipGroup) },
46785
- React__default["default"].createElement(Typography$2, { variant: "body1" }, time)))));
46800
+ React__default["default"].createElement(Typography$2, { variant: "body1" }, time)),
46801
+ cost && (React__default["default"].createElement("div", { className: clsx(classes.cost) },
46802
+ React__default["default"].createElement(Typography$2, { variant: "body1" }, cost))))));
46786
46803
  };
46787
46804
 
46788
46805
  var generateClassName = createGenerateClassName({
@@ -49379,11 +49396,6 @@ function PoweredByLawconnectLogo(props) {
49379
49396
  React__default["default"].createElement("path", { d: "M80.642 24.615c-.459.307-.95.56-1.466.757a6.48 6.48 0 01-2.275.397c-1.547 0-2.74-.5-3.582-1.5-.841-1.002-1.262-2.45-1.263-4.345 0-1.88.421-3.321 1.263-4.322.842-1 2.036-1.5 3.582-1.5a6.48 6.48 0 012.275.397 7.31 7.31 0 011.47.761l1.651-1.65c-.649-.6-1.447-1.065-2.394-1.396a9.193 9.193 0 00-3.045-.498c-1.577 0-2.953.337-4.129 1.012a6.772 6.772 0 00-2.706 2.866c-.629 1.235-.943 2.68-.944 4.334 0 1.654.314 3.102.944 4.344a6.753 6.753 0 002.706 2.875c1.175.676 2.551 1.014 4.129 1.014a9.178 9.178 0 003.047-.501c.946-.33 1.743-.794 2.391-1.392l-1.654-1.653zM127.168 25.247a5.251 5.251 0 01-2.657.706c-.986 0-1.743-.25-2.271-.75-.528-.501-.839-1.267-.933-2.297h7.569v-.796c0-1.729-.443-3.086-1.33-4.072-.887-.986-2.095-1.478-3.624-1.478-1.047 0-1.983.243-2.809.728a4.963 4.963 0 00-1.922 2.047c-.455.88-.683 1.889-.682 3.028 0 1.789.527 3.199 1.582 4.23 1.055 1.031 2.492 1.547 4.31 1.547a7.458 7.458 0 002.354-.387c.768-.254 1.408-.588 1.919-1.002l-1.506-1.505zm-5.011-5.958c.462-.485 1.073-.727 1.831-.727s1.349.239 1.774.716c.425.478.652 1.179.682 2.104h-5.137c.104-.91.387-1.608.85-2.093zM137.147 25.615a4.387 4.387 0 01-1.558.296c-.986 0-1.751-.308-2.297-.922-.546-.614-.819-1.49-.819-2.626 0-1.152.273-2.036.819-2.65.546-.614 1.311-.921 2.297-.921a4.404 4.404 0 011.558.295c.265.1.52.222.765.364l1.521-1.52c-.452-.414-1.048-.744-1.789-.993a7.258 7.258 0 00-2.308-.375c-1.152 0-2.168.243-3.048.728a5.024 5.024 0 00-2.035 2.058c-.478.887-.717 1.907-.717 3.06 0 1.152.228 2.16.683 3.027a4.766 4.766 0 001.967 2.001c.856.47 1.868.705 3.036.706a7.486 7.486 0 002.365-.376c.737-.243 1.345-.575 1.824-.998l-1.514-1.51c-.24.139-.491.258-.75.356zM147.669 25.955a8.173 8.173 0 01-.834.044c-1.38 0-2.07-.743-2.069-2.229v-4.8h2.903v-2.137h-2.903v-3.32h-2.843v3.32h-2.138v2.138h2.138v4.844c0 1.426.371 2.499 1.114 3.218.743.72 1.896 1.08 3.457 1.081.357 0 .749-.02 1.175-.06v-2.1zM27.004.765h3.638c.89 0 1.584.223 2.08.668.496.445.744 1.07.744 1.872 0 .804-.248 1.43-.744 1.879-.497.448-1.19.673-2.08.673h-2.114v3.238h-1.524V.765zm3.45 3.922c1.047 0 1.57-.457 1.57-1.37 0-.465-.129-.809-.389-1.033-.26-.224-.653-.337-1.181-.34h-1.927v2.744l1.927-.001zM35.126 8.826c-.44-.24-.8-.607-1.032-1.052-.245-.458-.367-.99-.367-1.595.001-.604.123-1.134.367-1.59a2.546 2.546 0 011.032-1.045c.444-.244.962-.366 1.553-.366a3.188 3.188 0 011.554.366A2.51 2.51 0 0139.26 4.59c.241.453.361.983.36 1.59 0 .606-.12 1.137-.36 1.594-.229.446-.587.812-1.027 1.052-.445.244-.963.366-1.554.366-.59 0-1.108-.123-1.553-.366zm2.64-1.253c.252-.315.378-.78.378-1.394 0-.607-.126-1.07-.378-1.388-.252-.319-.615-.48-1.087-.482-.472 0-.837.16-1.093.482-.256.32-.384.783-.384 1.386 0 .613.126 1.078.379 1.394.252.315.614.473 1.086.472.481 0 .847-.157 1.099-.472v.002zM48.246 3.317h1.445l-2.27 5.78h-1.29l-1.418-3.722-1.382 3.722h-1.276l-2.28-5.78h1.513l1.478 4.017 1.477-4.017h1.063l1.477 4.04 1.463-4.04zM55.24 6.472h-3.934c.046.535.207.933.482 1.193s.67.39 1.181.39c.636 0 1.253-.216 1.749-.614l.426 1.016a3.105 3.105 0 01-1.011.531 3.87 3.87 0 01-1.22.201c-.945 0-1.691-.268-2.239-.803-.548-.535-.821-1.268-.82-2.198a3.375 3.375 0 01.354-1.571c.223-.443.57-.813.998-1.063a2.821 2.821 0 011.46-.379c.795 0 1.423.256 1.883.768.46.512.691 1.217.692 2.115v.414zm-3.49-1.879c-.24.252-.389.614-.444 1.087h2.67c-.015-.48-.133-.845-.354-1.093-.22-.248-.527-.372-.922-.371-.393 0-.71.125-.95.377zM60.014 4.404l-.863.083c-.976.102-1.465.598-1.465 1.489v3.119H56.21v-5.78h1.406v1.018c.3-.692.919-1.07 1.858-1.134l.449-.035.092 1.24zM65.505 6.472h-3.932c.046.535.206.933.482 1.193.275.26.669.39 1.182.39.636 0 1.253-.216 1.748-.614l.425 1.016a3.1 3.1 0 01-1.006.531c-.394.132-.807.2-1.223.201-.945 0-1.692-.268-2.239-.803-.547-.535-.821-1.268-.822-2.198a3.367 3.367 0 01.355-1.571c.223-.443.57-.813.997-1.063a2.821 2.821 0 011.46-.379c.798 0 1.426.255 1.885.765.458.51.688 1.215.688 2.115v.417zm-3.489-1.879c-.24.252-.388.614-.443 1.087h2.67c-.015-.48-.133-.845-.354-1.093-.22-.248-.528-.372-.921-.371-.394 0-.712.125-.952.377zM71.994.765v8.33h-1.467V8.16c-.17.32-.431.584-.75.757-.342.186-.727.28-1.116.275a2.397 2.397 0 01-1.33-.378 2.511 2.511 0 01-.91-1.069 3.695 3.695 0 01-.324-1.59c0-.598.108-1.122.325-1.57a2.382 2.382 0 012.239-1.407c.385-.008.767.08 1.11.256.314.166.573.42.744.733V.765h1.479zm-1.85 6.794c.256-.323.383-.784.383-1.382 0-.599-.128-1.057-.383-1.377-.257-.318-.617-.478-1.082-.481-.472 0-.84.157-1.1.473-.261.315-.392.767-.39 1.358 0 .596.13 1.06.39 1.394.26.333.622.498 1.086.497.475.001.84-.16 1.097-.482zM80.784 3.541c.394.254.708.615.904 1.04.216.45.325.973.325 1.572.01.547-.1 1.09-.325 1.589-.195.435-.51.806-.908 1.07a2.394 2.394 0 01-1.329.377 2.266 2.266 0 01-1.116-.275 1.842 1.842 0 01-.75-.757v.934H76.13V.765h1.477v3.39c.17-.31.43-.564.745-.726.34-.174.718-.26 1.1-.254.47-.008.932.12 1.331.366zm-.638 4.006c.26-.33.39-.795.39-1.394 0-.59-.128-1.044-.384-1.359-.256-.315-.62-.472-1.092-.472-.473 0-.837.16-1.093.481-.255.321-.383.78-.384 1.376 0 .599.128 1.06.384 1.383.256.323.62.483 1.093.481.464 0 .826-.165 1.086-.496zM86.892 3.329h1.457l-3.474 7.893h-1.488L84.44 8.87 82.03 3.33h1.56l1.63 4.076 1.672-4.076z", fill: "#191919" })));
49380
49397
  }
49381
49398
 
49382
- function LawconnectIcon(props) {
49383
- return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", width: props.size + "px", viewBox: "0 0 141 140" },
49384
- React__default["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.163 119.104a69.739 69.739 0 0049.313 20.426h.133a69.68 69.68 0 0064.35-43.067 69.663 69.663 0 005.281-26.673h-33.528v.042a36.23 36.23 0 01-22.382 33.464 36.236 36.236 0 11-13.853-69.718V.05a69.74 69.74 0 00-49.314 119.054zm119.049-95.585c0 12.962-10.507 23.47-23.469 23.47-12.962 0-23.47-10.508-23.47-23.47S103.782.049 116.744.049s23.469 10.508 23.469 23.47z", fill: "#ecedef" })));
49385
- }
49386
-
49387
49399
  exports.AccessIcon = AccessIcon;
49388
49400
  exports.Accordion = Accordion;
49389
49401
  exports.AccordionDetails = AccordionDetails;