@activecollab/components 2.0.219 → 2.0.220

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
@@ -9673,20 +9673,25 @@
9673
9673
  var StyledDiv$1 = styled__default["default"].div.withConfig({
9674
9674
  displayName: "Styles__StyledDiv",
9675
9675
  componentId: "sc-1v8h7mt-4"
9676
- })(["", " ", " ", " height:32px;transition:all 0.3s ease;background-color:transparent;border:solid 1px var(--color-theme-700);color:var(--color-theme-700);margin-right:-1px;display:block;@media (max-width:768px){display:none;}svg{fill:currentColor;}&::-moz-focus-inner{border:0;}&:focus{outline:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}&:hover{border-color:var(--color-primary);color:var(--color-primary);text-decoration:none;}&:active{border-color:var(--color-primary);color:var(--color-primary);background-color:var(--color-primary-200);}"], function (props) {
9676
+ })(["", " ", " ", " ", " height:32px;transition:all 0.3s ease;background-color:transparent;", " color:var(--color-theme-700);margin-right:-1px;display:block;", " svg{fill:currentColor;}&::-moz-focus-inner{border:0;}&:focus{outline:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}&:hover{", " color:var(--color-primary);text-decoration:none;}&:active{", " color:var(--color-primary);}"], function (props) {
9677
9677
  return props.$isTargetable && styled.css(["", ""], {
9678
9678
  "pointerEvents": "none"
9679
9679
  });
9680
9680
  }, function (props) {
9681
9681
  return props.$isRounded && styled.css(["border-radius:var(--ac-br-rounded);"]);
9682
+ }, function (props) {
9683
+ return props.$mode !== "flat" ? {
9684
+ "borderWidth": "1px",
9685
+ "borderStyle": "solid"
9686
+ } : {
9687
+ "borderWidth": "0px"
9688
+ };
9682
9689
  }, {
9683
9690
  "position": "relative",
9684
9691
  "margin": "0px",
9685
9692
  "display": "inline-block",
9686
9693
  "cursor": "pointer",
9687
9694
  "userSelect": "none",
9688
- "borderWidth": "1px",
9689
- "borderStyle": "solid",
9690
9695
  "padding": "0px",
9691
9696
  "textAlign": "center",
9692
9697
  "verticalAlign": "middle",
@@ -9696,6 +9701,14 @@
9696
9701
  "textDecorationLine": "none",
9697
9702
  "WebkitFontSmoothing": "antialiased",
9698
9703
  "MozOsxFontSmoothing": "grayscale"
9704
+ }, function (props) {
9705
+ return props.$mode !== "flat" && styled.css(["border:1px solid var(--color-theme-700);"]);
9706
+ }, function (props) {
9707
+ return !props.$alwaysShowDate && styled.css(["@media (max-width:768px){display:none;}"]);
9708
+ }, function (props) {
9709
+ return props.$mode !== "flat" && styled.css(["border-color:var(--color-primary);"]);
9710
+ }, function (props) {
9711
+ return props.$mode !== "flat" && styled.css(["border-color:var(--color-primary);background-color:var(--color-primary-200);"]);
9699
9712
  });
9700
9713
  var StyledControl = styled__default["default"](IconButton).withConfig({
9701
9714
  displayName: "Styles__StyledControl",
@@ -11178,7 +11191,11 @@
11178
11191
  enableYearPicker = _ref.enableYearPicker,
11179
11192
  _ref$position = _ref.position,
11180
11193
  position = _ref$position === void 0 ? "bottom" : _ref$position,
11181
- popperClassName = _ref.popperClassName;
11194
+ popperClassName = _ref.popperClassName,
11195
+ _ref$mode = _ref.mode,
11196
+ mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
11197
+ _ref$alwaysShowDate = _ref.alwaysShowDate,
11198
+ alwaysShowDate = _ref$alwaysShowDate === void 0 ? false : _ref$alwaysShowDate;
11182
11199
  var _useState = React.useState(moment__default["default"].utc(from)),
11183
11200
  _useState2 = _slicedToArray(_useState, 2),
11184
11201
  fromDate = _useState2[0],
@@ -11370,12 +11387,14 @@
11370
11387
  className: classNames__default["default"]("c-date-stepper", className)
11371
11388
  }, renderLeftRightButtons ? /*#__PURE__*/React__default["default"].createElement(StyledControl, {
11372
11389
  type: "button",
11373
- variant: "secondary",
11390
+ variant: mode === "flat" ? "text gray" : "secondary",
11374
11391
  onClick: onLeftClickHandler,
11375
11392
  disabled: isBeforeMinDate
11376
11393
  }, /*#__PURE__*/React__default["default"].createElement(ArrowLeftIcon$1, null)) : null, /*#__PURE__*/React__default["default"].createElement(StyledDiv$1, {
11377
11394
  $isTargetable: step === "yearly" || !withDatePicker,
11378
11395
  $isRounded: step === "range",
11396
+ $mode: mode,
11397
+ $alwaysShowDate: alwaysShowDate,
11379
11398
  style: dateStepperWidth(fromDate, toDate, step)
11380
11399
  }, withDatePicker && step !== "yearly" ? /*#__PURE__*/React__default["default"].createElement(DatePicker, {
11381
11400
  month: defaultMonth,
@@ -11400,7 +11419,7 @@
11400
11419
  required: true
11401
11420
  }) : /*#__PURE__*/React__default["default"].createElement(StyledSpan$1, null, getDateFormatted)), renderLeftRightButtons ? /*#__PURE__*/React__default["default"].createElement(StyledControl, {
11402
11421
  type: "button",
11403
- variant: "secondary",
11422
+ variant: mode === "flat" ? "text gray" : "secondary",
11404
11423
  onClick: onRightClickHandler,
11405
11424
  disabled: isAfterMaxDate
11406
11425
  }, /*#__PURE__*/React__default["default"].createElement(ArrowRightIcon$1, null)) : null);