@activecollab/components 2.0.137 → 2.0.139

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.
Files changed (27) hide show
  1. package/dist/cjs/components/ComboBox/ComboBox.js +17 -7
  2. package/dist/cjs/components/ComboBox/ComboBox.js.map +1 -1
  3. package/dist/cjs/components/ComboBox/Styles.js +2 -2
  4. package/dist/cjs/components/ComboBox/Styles.js.map +1 -1
  5. package/dist/cjs/components/Icons/collection/SortSmall.js +47 -0
  6. package/dist/cjs/components/Icons/collection/SortSmall.js.map +1 -0
  7. package/dist/cjs/components/Icons/collection/index.js +7 -0
  8. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  9. package/dist/esm/components/ComboBox/ComboBox.d.ts.map +1 -1
  10. package/dist/esm/components/ComboBox/ComboBox.js +16 -6
  11. package/dist/esm/components/ComboBox/ComboBox.js.map +1 -1
  12. package/dist/esm/components/ComboBox/Styles.d.ts.map +1 -1
  13. package/dist/esm/components/ComboBox/Styles.js +2 -2
  14. package/dist/esm/components/ComboBox/Styles.js.map +1 -1
  15. package/dist/esm/components/Icons/collection/SortSmall.d.ts +23 -0
  16. package/dist/esm/components/Icons/collection/SortSmall.d.ts.map +1 -0
  17. package/dist/esm/components/Icons/collection/SortSmall.js +39 -0
  18. package/dist/esm/components/Icons/collection/SortSmall.js.map +1 -0
  19. package/dist/esm/components/Icons/collection/index.d.ts +1 -0
  20. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  21. package/dist/esm/components/Icons/collection/index.js +1 -0
  22. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  23. package/dist/index.js +58 -9
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.min.js +1 -1
  26. package/dist/index.min.js.map +1 -1
  27. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7275,6 +7275,44 @@
7275
7275
  SortListIcon.displayName = "SortListIcon";
7276
7276
  var SortListIcon$1 = SortListIcon;
7277
7277
 
7278
+ /**
7279
+ * @component SortSmallIcon
7280
+ * @description
7281
+ *
7282
+ * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
7283
+ * The Icon component is
7284
+ * customizable, allowing for variations in size, color, and style to fit the needs of the application.
7285
+ *
7286
+ *
7287
+ * @example
7288
+ * return (
7289
+ * <SortSmallIcon className="mr-2" />
7290
+ * )
7291
+ *
7292
+ * @see
7293
+ * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
7294
+ * @see
7295
+ * https://design.activecollab.com/docs/foundations/icons
7296
+ */
7297
+ var SortSmallIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
7298
+ return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
7299
+ width: 10,
7300
+ height: 10,
7301
+ viewBox: "0 0 10 10",
7302
+ xmlns: "http://www.w3.org/2000/svg",
7303
+ "data-testid": "SortSmallIcon",
7304
+ fill: "var(--color-theme-600)",
7305
+ focusable: false,
7306
+ ref: svgRef
7307
+ }, props), /*#__PURE__*/React__default["default"].createElement("path", {
7308
+ fillRule: "evenodd",
7309
+ clipRule: "evenodd",
7310
+ d: "M10 1v2H0V1h10zM7 4v2H0V4h7zM4 7v2H0V7h4z"
7311
+ }));
7312
+ });
7313
+ SortSmallIcon.displayName = "SortSmallIcon";
7314
+ var SortSmallIcon$1 = SortSmallIcon;
7315
+
7278
7316
  /**
7279
7317
  * @component StarOutlineIcon
7280
7318
  * @description
@@ -17043,7 +17081,7 @@
17043
17081
  var StyledChipWrapper = styled__default["default"].div.withConfig({
17044
17082
  displayName: "Styles__StyledChipWrapper",
17045
17083
  componentId: "sc-5qvkpb-4"
17046
- })(["", ";", ";", ";overflow:", ";", " ", ""], {
17084
+ })(["", ";", ";", ";", " ", " ", ""], {
17047
17085
  "display": "flex"
17048
17086
  }, {
17049
17087
  "gap": "0.25rem"
@@ -17051,7 +17089,7 @@
17051
17089
  "flex": "1 1 0%"
17052
17090
  }, function (_ref2) {
17053
17091
  var $open = _ref2.$open;
17054
- return $open ? "auto" : "hidden";
17092
+ return !$open && styled.css(["overflow:hidden;"]);
17055
17093
  }, function (_ref3) {
17056
17094
  var $autoSize = _ref3.$autoSize;
17057
17095
  return $autoSize === "auto" && styled.css(["", ";", ";"], {
@@ -17197,6 +17235,12 @@
17197
17235
  Chip.displayName = "Chip";
17198
17236
 
17199
17237
  var _excluded$k = ["options", "selected", "loading", "loadingText", "onChange", "placeholder", "handleEmptyAction", "disabled", "size", "invalid", "type", "renderChip", "forceCloseMenu", "renderOption", "limitChips", "hiddenNumberText", "inPortal", "inputWrapperClassName", "scrollWrapper", "onClose", "onClear", "onDeselect", "defaultValue"];
17238
+ var sizeMap = {
17239
+ small: 18,
17240
+ regular: 24,
17241
+ big: 30,
17242
+ biggest: 40
17243
+ };
17200
17244
  var ComboBox = function ComboBox(_ref) {
17201
17245
  var _comboBoxRef$current2, _comboBoxRef$current3;
17202
17246
  var _ref$options = _ref.options,
@@ -17502,12 +17546,12 @@
17502
17546
  (_elementRef$current = elementRef.current) === null || _elementRef$current === void 0 || _elementRef$current.click();
17503
17547
  },
17504
17548
  $_css3: autoSize === "auto" ? "auto" : undefined,
17505
- $_css4: autoSize === "auto" && scrollWrapper ? "scroll" : undefined,
17506
- $_css5: autoSize === "auto" && scrollWrapper ? "80px" : undefined
17507
- }, /*#__PURE__*/React__default["default"].createElement(StyledChipWrapper, {
17549
+ $_css4: autoSize === "auto" && scrollWrapper ? "scroll" : undefined
17550
+ }, /*#__PURE__*/React__default["default"].createElement(_StyledStyledChipWrapper, {
17508
17551
  $autoSize: autoSize,
17509
17552
  $open: open,
17510
- ref: chipWrapper
17553
+ ref: chipWrapper,
17554
+ $_css5: autoSize === "auto" && scrollWrapper ? sizeMap[size] * 3 + 8 + "px" : undefined
17511
17555
  }, startAdornment, /*#__PURE__*/React__default["default"].createElement(StyledInput$2, {
17512
17556
  className: "c-combo-box-input",
17513
17557
  onBlur: handleBlur,
@@ -17613,16 +17657,20 @@
17613
17657
  var _StyledStyledInputWrapper = styled__default["default"](StyledInputWrapper).withConfig({
17614
17658
  displayName: "ComboBox___StyledStyledInputWrapper",
17615
17659
  componentId: "sc-uvsz9l-2"
17616
- })(["display:flex;justify-content:space-between;flex:1;height:", ";overflow-y:", ";max-height:", ";"], function (p) {
17660
+ })(["display:flex;justify-content:space-between;flex:1;height:", ";overflow-y:", ";"], function (p) {
17617
17661
  return p.$_css3;
17618
17662
  }, function (p) {
17619
17663
  return p.$_css4;
17620
- }, function (p) {
17664
+ });
17665
+ var _StyledStyledChipWrapper = styled__default["default"](StyledChipWrapper).withConfig({
17666
+ displayName: "ComboBox___StyledStyledChipWrapper",
17667
+ componentId: "sc-uvsz9l-3"
17668
+ })(["max-height:", ";"], function (p) {
17621
17669
  return p.$_css5;
17622
17670
  });
17623
17671
  var _StyledTrigger = styled__default["default"](Trigger).withConfig({
17624
17672
  displayName: "ComboBox___StyledTrigger",
17625
- componentId: "sc-uvsz9l-3"
17673
+ componentId: "sc-uvsz9l-4"
17626
17674
  })(["display:flex;justify-content:center;"]);
17627
17675
 
17628
17676
  var StyledText = styled__default["default"](Body2).withConfig({
@@ -20261,6 +20309,7 @@
20261
20309
  exports.SortGeneralIcon = SortGeneralIcon$1;
20262
20310
  exports.SortIcon = SortIcon$1;
20263
20311
  exports.SortListIcon = SortListIcon$1;
20312
+ exports.SortSmallIcon = SortSmallIcon$1;
20264
20313
  exports.SpinnerLoader = SpinnerLoader;
20265
20314
  exports.StarIcon = StarIcon$1;
20266
20315
  exports.StarOutlineIcon = StarOutlineIcon$1;