@activecollab/components 1.0.166 → 1.0.167

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
@@ -5514,7 +5514,87 @@
5514
5514
  };
5515
5515
  Tbody.displayName = "Tbody";
5516
5516
 
5517
- var _excluded$S = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue"];
5517
+ var linearAnimation = styled.keyframes(["0%{background-position:left;}100%{background-position:right;}"]);
5518
+ var StyledLinearLoader = styled__default["default"].div.withConfig({
5519
+ displayName: "Styles__StyledLinearLoader",
5520
+ componentId: "sc-x4ge7a-0"
5521
+ })(["width:70%;background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.05) 50%,rgba(255,255,255,0) 60% );background-size:400%;height:16px;border-radius:8px;.neon &{background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.2) 50%,rgba(255,255,255,0) 60% );background-size:500%;}animation-duration:1s;animation-iteration-count:infinite;animation-name:", ";animation-timing-function:linear;animation-direction:reverse;"], linearAnimation);
5522
+
5523
+ var _excluded$S = ["className"];
5524
+ var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5525
+ var className = _ref.className,
5526
+ rest = _objectWithoutProperties(_ref, _excluded$S);
5527
+
5528
+ return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
5529
+ ref: ref,
5530
+ className: classnames__default["default"]("c-loader c-loader--linear", className)
5531
+ }, rest));
5532
+ });
5533
+ LinearLoader.displayName = "LinearLoader";
5534
+
5535
+ var dotAnimation = styled.keyframes(["0%,80%,100%{transform:scale(0);}40%{transform:scale(1);}"]);
5536
+ var StyledDotsLoader = styled__default["default"].span.withConfig({
5537
+ displayName: "Styles__StyledDotsLoader",
5538
+ componentId: "sc-1f35d5h-0"
5539
+ })(["display:inline-block;text-align:center;& > span{display:inline-block;width:18px;height:18px;background-color:#777;border-radius:100%;animation:", " 1.4s infinite ease-in-out both;}span:nth-child(1){animation-delay:-0.32s;}span:nth-child(2){animation-delay:-0.16s;}"], dotAnimation);
5540
+
5541
+ var _excluded$R = ["className"];
5542
+ var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5543
+ var className = _ref.className,
5544
+ rest = _objectWithoutProperties(_ref, _excluded$R);
5545
+
5546
+ return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
5547
+ ref: ref,
5548
+ className: classnames__default["default"]("c-loader c-loader--dots", className)
5549
+ }, rest), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null));
5550
+ });
5551
+ DotsLoader.displayName = "DotsLoader";
5552
+
5553
+ var rotateAnimation = styled.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
5554
+ var StyledSpinnerLoader = styled__default["default"].div.withConfig({
5555
+ displayName: "Styles__StyledSpinnerLoader",
5556
+ componentId: "sc-1ht53g9-0"
5557
+ })(["", " border-radius:100%;flex-shrink:0;", " ", " ", " ", ""], BoxSizingStyle, function (props) {
5558
+ return styled.css(["width:", "px;height:", "px;animation:", " ", "s infinite linear;"], props.$diameter, props.$diameter, rotateAnimation, props.$rotateDurationInSeconds);
5559
+ }, function (props) {
5560
+ return props.$activeColorPercentage === "25%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
5561
+ }, function (props) {
5562
+ return props.$activeColorPercentage === "50%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
5563
+ }, function (props) {
5564
+ return props.$activeColorPercentage === "75%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
5565
+ });
5566
+
5567
+ var _excluded$Q = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
5568
+ var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5569
+ var _ref$radius = _ref.radius,
5570
+ radius = _ref$radius === void 0 ? 10 : _ref$radius,
5571
+ _ref$stroke = _ref.stroke,
5572
+ stroke = _ref$stroke === void 0 ? 2 : _ref$stroke,
5573
+ _ref$activeStrokeColo = _ref.activeStrokeColor,
5574
+ activeStrokeColor = _ref$activeStrokeColo === void 0 ? "var(--color-secondary)" : _ref$activeStrokeColo,
5575
+ _ref$inactiveStrokeCo = _ref.inactiveStrokeColor,
5576
+ inactiveStrokeColor = _ref$inactiveStrokeCo === void 0 ? "var(--color-theme-transparent-300)" : _ref$inactiveStrokeCo,
5577
+ _ref$activeColorPerce = _ref.activeColorPercentage,
5578
+ activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
5579
+ _ref$rotateDurationIn = _ref.rotateDurationInSeconds,
5580
+ rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
5581
+ className = _ref.className,
5582
+ rest = _objectWithoutProperties(_ref, _excluded$Q);
5583
+
5584
+ return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader, _extends({
5585
+ ref: ref,
5586
+ className: className,
5587
+ $diameter: radius * 2,
5588
+ $stroke: stroke,
5589
+ $activeStrokeColor: activeStrokeColor,
5590
+ $inactiveStrokeColor: inactiveStrokeColor,
5591
+ $activeColorPercentage: activeColorPercentage,
5592
+ $rotateDurationInSeconds: rotateDurationInSeconds
5593
+ }, rest));
5594
+ });
5595
+ SpinnerLoader.displayName = "SpinnerLoader";
5596
+
5597
+ var _excluded$P = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
5518
5598
  exports.SortDirection = void 0;
5519
5599
 
5520
5600
  (function (SortDirection) {
@@ -5549,7 +5629,8 @@
5549
5629
 
5550
5630
  var DataTable = function DataTable(_ref) {
5551
5631
  var header = _ref.header,
5552
- rows = _ref.rows,
5632
+ _ref$rows = _ref.rows,
5633
+ rows = _ref$rows === void 0 ? [] : _ref$rows,
5553
5634
  className = _ref.className,
5554
5635
  sortBy = _ref.sortBy,
5555
5636
  _ref$sortDirection = _ref.sortDirection,
@@ -5564,7 +5645,10 @@
5564
5645
  } : _ref$groupHead,
5565
5646
  isCollapsible = _ref.isCollapsible,
5566
5647
  emptyValue = _ref.emptyValue,
5567
- args = _objectWithoutProperties(_ref, _excluded$S);
5648
+ loading = _ref.loading,
5649
+ _ref$loadingRows = _ref.loadingRows,
5650
+ loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
5651
+ args = _objectWithoutProperties(_ref, _excluded$P);
5568
5652
 
5569
5653
  var _useState = React.useState(sortDirection),
5570
5654
  _useState2 = _slicedToArray(_useState, 2),
@@ -5771,6 +5855,25 @@
5771
5855
  return newState;
5772
5856
  });
5773
5857
  }, []);
5858
+ var renderPlaceholders = React.useMemo(function () {
5859
+ var placeholders = Array(loadingRows).fill({}).map(function (_, index) {
5860
+ return /*#__PURE__*/React__default["default"].createElement("tr", {
5861
+ key: index,
5862
+ className: "c-table__row",
5863
+ onMouseOver: cellMouseOver,
5864
+ onMouseLeave: cellMouseOut
5865
+ }, header.map(function (col, colIndex) {
5866
+ return /*#__PURE__*/React__default["default"].createElement("td", {
5867
+ key: colIndex,
5868
+ className: classnames__default["default"]("c-table__cell c-data-table__item", {
5869
+ hovered: hovered === col.key
5870
+ }),
5871
+ "data-key": col.key
5872
+ }, /*#__PURE__*/React__default["default"].createElement(LinearLoader, null));
5873
+ }));
5874
+ });
5875
+ return /*#__PURE__*/React__default["default"].createElement(Tbody, null, placeholders);
5876
+ }, [cellMouseOut, cellMouseOver, header, hovered, loadingRows]);
5774
5877
  var renderRows = React.useMemo(function () {
5775
5878
  if (data && data instanceof Array && data.length > 0 || _typeof(data) === "object" && Object.keys(data).length > 0) {
5776
5879
  if (groupBy) {
@@ -5898,7 +6001,7 @@
5898
6001
  "c-table__icon--desc": columnDirection === exports.SortDirection.Desc && h.key === active
5899
6002
  })
5900
6003
  })));
5901
- }))), renderRows);
6004
+ }))), loading ? renderPlaceholders : renderRows);
5902
6005
  };
5903
6006
  DataTable.displayName = "DataTable";
5904
6007
 
@@ -5985,7 +6088,7 @@
5985
6088
  });
5986
6089
  StyledPaper.displayName = "StyledPaper";
5987
6090
 
5988
- var _excluded$R = ["children", "className", "type", "hover", "useOptimizedShadow"];
6091
+ var _excluded$O = ["children", "className", "type", "hover", "useOptimizedShadow"];
5989
6092
 
5990
6093
  /**
5991
6094
  * This is a component description and should sit directly above your component
@@ -5999,7 +6102,7 @@
5999
6102
  hover = _ref$hover === void 0 ? false : _ref$hover,
6000
6103
  _ref$useOptimizedShad = _ref.useOptimizedShadow,
6001
6104
  useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
6002
- rest = _objectWithoutProperties(_ref, _excluded$R);
6105
+ rest = _objectWithoutProperties(_ref, _excluded$O);
6003
6106
 
6004
6107
  return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
6005
6108
  className: classnames__default["default"](className, {
@@ -6053,7 +6156,7 @@
6053
6156
  });
6054
6157
  StyledCard.displayName = "StyledCard";
6055
6158
 
6056
- var _excluded$Q = ["children", "className", "hoverable", "paperType"];
6159
+ var _excluded$N = ["children", "className", "hoverable", "paperType"];
6057
6160
  var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6058
6161
  var children = _ref.children,
6059
6162
  className = _ref.className,
@@ -6061,7 +6164,7 @@
6061
6164
  hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
6062
6165
  _ref$paperType = _ref.paperType,
6063
6166
  paperType = _ref$paperType === void 0 ? "paper-2" : _ref$paperType,
6064
- rest = _objectWithoutProperties(_ref, _excluded$Q);
6167
+ rest = _objectWithoutProperties(_ref, _excluded$N);
6065
6168
 
6066
6169
  return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
6067
6170
  type: paperType,
@@ -6143,12 +6246,12 @@
6143
6246
  });
6144
6247
  EntityCard$1.displayName = "EntityCard";
6145
6248
 
6146
- var _excluded$P = ["weight", "children"];
6249
+ var _excluded$M = ["weight", "children"];
6147
6250
  var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6148
6251
  var _ref$weight = _ref.weight,
6149
6252
  weight = _ref$weight === void 0 ? "light" : _ref$weight,
6150
6253
  children = _ref.children,
6151
- props = _objectWithoutProperties(_ref, _excluded$P);
6254
+ props = _objectWithoutProperties(_ref, _excluded$M);
6152
6255
 
6153
6256
  return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
6154
6257
  weight: weight,
@@ -6158,12 +6261,12 @@
6158
6261
  });
6159
6262
  Title1.displayName = "Title1";
6160
6263
 
6161
- var _excluded$O = ["weight", "children"];
6264
+ var _excluded$L = ["weight", "children"];
6162
6265
  var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6163
6266
  var _ref$weight = _ref.weight,
6164
6267
  weight = _ref$weight === void 0 ? "light" : _ref$weight,
6165
6268
  children = _ref.children,
6166
- props = _objectWithoutProperties(_ref, _excluded$O);
6269
+ props = _objectWithoutProperties(_ref, _excluded$L);
6167
6270
 
6168
6271
  return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
6169
6272
  weight: weight,
@@ -6173,10 +6276,10 @@
6173
6276
  });
6174
6277
  Title2.displayName = "Title2";
6175
6278
 
6176
- var _excluded$N = ["children"];
6279
+ var _excluded$K = ["children"];
6177
6280
  var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6178
6281
  var children = _ref.children,
6179
- props = _objectWithoutProperties(_ref, _excluded$N);
6282
+ props = _objectWithoutProperties(_ref, _excluded$K);
6180
6283
 
6181
6284
  return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
6182
6285
  weight: "bold",
@@ -6186,10 +6289,10 @@
6186
6289
  });
6187
6290
  Header2.displayName = "Header2";
6188
6291
 
6189
- var _excluded$M = ["children"];
6292
+ var _excluded$J = ["children"];
6190
6293
  var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6191
6294
  var children = _ref.children,
6192
- props = _objectWithoutProperties(_ref, _excluded$M);
6295
+ props = _objectWithoutProperties(_ref, _excluded$J);
6193
6296
 
6194
6297
  return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
6195
6298
  weight: "bold",
@@ -6199,12 +6302,12 @@
6199
6302
  });
6200
6303
  Header3.displayName = "Header3";
6201
6304
 
6202
- var _excluded$L = ["weight", "children"];
6305
+ var _excluded$I = ["weight", "children"];
6203
6306
  var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6204
6307
  var _ref$weight = _ref.weight,
6205
6308
  weight = _ref$weight === void 0 ? "regular" : _ref$weight,
6206
6309
  children = _ref.children,
6207
- props = _objectWithoutProperties(_ref, _excluded$L);
6310
+ props = _objectWithoutProperties(_ref, _excluded$I);
6208
6311
 
6209
6312
  return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
6210
6313
  variant: "Body 1",
@@ -6214,12 +6317,12 @@
6214
6317
  });
6215
6318
  Body1.displayName = "Body1";
6216
6319
 
6217
- var _excluded$K = ["weight", "children"];
6320
+ var _excluded$H = ["weight", "children"];
6218
6321
  var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6219
6322
  var _ref$weight = _ref.weight,
6220
6323
  weight = _ref$weight === void 0 ? "regular" : _ref$weight,
6221
6324
  children = _ref.children,
6222
- props = _objectWithoutProperties(_ref, _excluded$K);
6325
+ props = _objectWithoutProperties(_ref, _excluded$H);
6223
6326
 
6224
6327
  return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
6225
6328
  variant: "Caption 1",
@@ -6229,12 +6332,12 @@
6229
6332
  });
6230
6333
  Caption1.displayName = "Caption1";
6231
6334
 
6232
- var _excluded$J = ["weight", "children"];
6335
+ var _excluded$G = ["weight", "children"];
6233
6336
  var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6234
6337
  var _ref$weight = _ref.weight,
6235
6338
  weight = _ref$weight === void 0 ? "regular" : _ref$weight,
6236
6339
  children = _ref.children,
6237
- props = _objectWithoutProperties(_ref, _excluded$J);
6340
+ props = _objectWithoutProperties(_ref, _excluded$G);
6238
6341
 
6239
6342
  return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
6240
6343
  variant: "Caption 2",
@@ -6353,7 +6456,7 @@
6353
6456
  "borderRadius": "9999px"
6354
6457
  });
6355
6458
 
6356
- var _excluded$I = ["url", "alt", "size", "className"];
6459
+ var _excluded$F = ["url", "alt", "size", "className"];
6357
6460
  var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6358
6461
  var url = _ref.url,
6359
6462
  _ref$alt = _ref.alt,
@@ -6361,7 +6464,7 @@
6361
6464
  _ref$size = _ref.size,
6362
6465
  size = _ref$size === void 0 ? 24 : _ref$size,
6363
6466
  className = _ref.className,
6364
- rest = _objectWithoutProperties(_ref, _excluded$I);
6467
+ rest = _objectWithoutProperties(_ref, _excluded$F);
6365
6468
 
6366
6469
  return /*#__PURE__*/React__default["default"].createElement(StyledAvatar, _extends({}, rest, {
6367
6470
  ref: ref,
@@ -6383,13 +6486,13 @@
6383
6486
  return props.$color && styled.css(["background-color:", ";"], props.$color);
6384
6487
  });
6385
6488
 
6386
- var _excluded$H = ["color", "size", "className"];
6489
+ var _excluded$E = ["color", "size", "className"];
6387
6490
  var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6388
6491
  var color = _ref.color,
6389
6492
  _ref$size = _ref.size,
6390
6493
  size = _ref$size === void 0 ? 8 : _ref$size,
6391
6494
  className = _ref.className,
6392
- rest = _objectWithoutProperties(_ref, _excluded$H);
6495
+ rest = _objectWithoutProperties(_ref, _excluded$E);
6393
6496
 
6394
6497
  return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
6395
6498
  className: classnames__default["default"]("c-dot", className),
@@ -6427,7 +6530,7 @@
6427
6530
  });
6428
6531
  StyledTagText.displayName = "StyledTagText";
6429
6532
 
6430
- var _excluded$G = ["name", "color", "showText", "showDot", "className"];
6533
+ var _excluded$D = ["name", "color", "showText", "showDot", "className"];
6431
6534
  var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6432
6535
  var name = _ref.name,
6433
6536
  color = _ref.color,
@@ -6436,7 +6539,7 @@
6436
6539
  _ref$showDot = _ref.showDot,
6437
6540
  showDot = _ref$showDot === void 0 ? true : _ref$showDot,
6438
6541
  className = _ref.className,
6439
- rest = _objectWithoutProperties(_ref, _excluded$G);
6542
+ rest = _objectWithoutProperties(_ref, _excluded$D);
6440
6543
 
6441
6544
  return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
6442
6545
  className: classnames__default["default"]("c-tag", className),
@@ -6450,86 +6553,6 @@
6450
6553
  });
6451
6554
  Tag.displayName = "Tag";
6452
6555
 
6453
- var linearAnimation = styled.keyframes(["0%{background-position:left;}100%{background-position:right;}"]);
6454
- var StyledLinearLoader = styled__default["default"].div.withConfig({
6455
- displayName: "Styles__StyledLinearLoader",
6456
- componentId: "sc-x4ge7a-0"
6457
- })(["width:70%;background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.05) 50%,rgba(255,255,255,0) 60% );background-size:400%;height:16px;border-radius:8px;.neon &{background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.2) 50%,rgba(255,255,255,0) 60% );background-size:500%;}animation-duration:1s;animation-iteration-count:infinite;animation-name:", ";animation-timing-function:linear;animation-direction:reverse;"], linearAnimation);
6458
-
6459
- var _excluded$F = ["className"];
6460
- var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6461
- var className = _ref.className,
6462
- rest = _objectWithoutProperties(_ref, _excluded$F);
6463
-
6464
- return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
6465
- ref: ref,
6466
- className: classnames__default["default"]("c-loader c-loader--linear", className)
6467
- }, rest));
6468
- });
6469
- LinearLoader.displayName = "LinearLoader";
6470
-
6471
- var dotAnimation = styled.keyframes(["0%,80%,100%{transform:scale(0);}40%{transform:scale(1);}"]);
6472
- var StyledDotsLoader = styled__default["default"].span.withConfig({
6473
- displayName: "Styles__StyledDotsLoader",
6474
- componentId: "sc-1f35d5h-0"
6475
- })(["display:inline-block;text-align:center;& > span{display:inline-block;width:18px;height:18px;background-color:#777;border-radius:100%;animation:", " 1.4s infinite ease-in-out both;}span:nth-child(1){animation-delay:-0.32s;}span:nth-child(2){animation-delay:-0.16s;}"], dotAnimation);
6476
-
6477
- var _excluded$E = ["className"];
6478
- var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6479
- var className = _ref.className,
6480
- rest = _objectWithoutProperties(_ref, _excluded$E);
6481
-
6482
- return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
6483
- ref: ref,
6484
- className: classnames__default["default"]("c-loader c-loader--dots", className)
6485
- }, rest), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null));
6486
- });
6487
- DotsLoader.displayName = "DotsLoader";
6488
-
6489
- var rotateAnimation = styled.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
6490
- var StyledSpinnerLoader = styled__default["default"].div.withConfig({
6491
- displayName: "Styles__StyledSpinnerLoader",
6492
- componentId: "sc-1ht53g9-0"
6493
- })(["", " border-radius:100%;flex-shrink:0;", " ", " ", " ", ""], BoxSizingStyle, function (props) {
6494
- return styled.css(["width:", "px;height:", "px;animation:", " ", "s infinite linear;"], props.$diameter, props.$diameter, rotateAnimation, props.$rotateDurationInSeconds);
6495
- }, function (props) {
6496
- return props.$activeColorPercentage === "25%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
6497
- }, function (props) {
6498
- return props.$activeColorPercentage === "50%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
6499
- }, function (props) {
6500
- return props.$activeColorPercentage === "75%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
6501
- });
6502
-
6503
- var _excluded$D = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
6504
- var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6505
- var _ref$radius = _ref.radius,
6506
- radius = _ref$radius === void 0 ? 10 : _ref$radius,
6507
- _ref$stroke = _ref.stroke,
6508
- stroke = _ref$stroke === void 0 ? 2 : _ref$stroke,
6509
- _ref$activeStrokeColo = _ref.activeStrokeColor,
6510
- activeStrokeColor = _ref$activeStrokeColo === void 0 ? "var(--color-secondary)" : _ref$activeStrokeColo,
6511
- _ref$inactiveStrokeCo = _ref.inactiveStrokeColor,
6512
- inactiveStrokeColor = _ref$inactiveStrokeCo === void 0 ? "var(--color-theme-transparent-300)" : _ref$inactiveStrokeCo,
6513
- _ref$activeColorPerce = _ref.activeColorPercentage,
6514
- activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
6515
- _ref$rotateDurationIn = _ref.rotateDurationInSeconds,
6516
- rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
6517
- className = _ref.className,
6518
- rest = _objectWithoutProperties(_ref, _excluded$D);
6519
-
6520
- return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader, _extends({
6521
- ref: ref,
6522
- className: className,
6523
- $diameter: radius * 2,
6524
- $stroke: stroke,
6525
- $activeStrokeColor: activeStrokeColor,
6526
- $inactiveStrokeColor: inactiveStrokeColor,
6527
- $activeColorPercentage: activeColorPercentage,
6528
- $rotateDurationInSeconds: rotateDurationInSeconds
6529
- }, rest));
6530
- });
6531
- SpinnerLoader.displayName = "SpinnerLoader";
6532
-
6533
6556
  var StyledHiglightedText = styled__default["default"].span.withConfig({
6534
6557
  displayName: "useHighlightText__StyledHiglightedText",
6535
6558
  componentId: "sc-13agf6o-0"