@paubox/ui 0.16.6 → 0.16.7

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 (2) hide show
  1. package/index.esm.js +26 -42
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -1713,7 +1713,7 @@ function _templateObject4$9() {
1713
1713
  };
1714
1714
  return data;
1715
1715
  }
1716
- function _templateObject5$5() {
1716
+ function _templateObject5$4() {
1717
1717
  var data = _tagged_template_literal$t([
1718
1718
  "\n ",
1719
1719
  "\n font-size: ",
@@ -1721,12 +1721,12 @@ function _templateObject5$5() {
1721
1721
  "rem;\n letter-spacing: ",
1722
1722
  "px;\n font-weight: 400;\n"
1723
1723
  ]);
1724
- _templateObject5$5 = function _templateObject() {
1724
+ _templateObject5$4 = function _templateObject() {
1725
1725
  return data;
1726
1726
  };
1727
1727
  return data;
1728
1728
  }
1729
- function _templateObject6$3() {
1729
+ function _templateObject6$2() {
1730
1730
  var data = _tagged_template_literal$t([
1731
1731
  "\n ",
1732
1732
  "\n font-size: ",
@@ -1734,7 +1734,7 @@ function _templateObject6$3() {
1734
1734
  "rem;\n letter-spacing: ",
1735
1735
  "px;\n font-weight: 600;\n"
1736
1736
  ]);
1737
- _templateObject6$3 = function _templateObject() {
1737
+ _templateObject6$2 = function _templateObject() {
1738
1738
  return data;
1739
1739
  };
1740
1740
  return data;
@@ -1992,8 +1992,8 @@ var $headline100Regular = css(_templateObject1$i(), commonStyles, headline100Fon
1992
1992
  var $headline100Semibold = css(_templateObject2$g(), commonStyles, headline100FontSize / BASE_FONT_SIZE, headline100LineHeight / BASE_FONT_SIZE, headline100LetterSpacing);
1993
1993
  var $headline200Regular = css(_templateObject3$c(), commonStyles, headline200FontSize / BASE_FONT_SIZE, headline200LineHeight / BASE_FONT_SIZE, headline200LetterSpacing);
1994
1994
  var $headline200Semibold = css(_templateObject4$9(), commonStyles, headline200FontSize / BASE_FONT_SIZE, headline200LineHeight / BASE_FONT_SIZE, headline200LetterSpacing);
1995
- var $headline300Regular = css(_templateObject5$5(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
1996
- var $headline300Semibold = css(_templateObject6$3(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
1995
+ var $headline300Regular = css(_templateObject5$4(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
1996
+ var $headline300Semibold = css(_templateObject6$2(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
1997
1997
  // PARAGRAPH
1998
1998
  var $paragraph100Regular = css(_templateObject7$1(), commonStyles, paragraph100FontSize / BASE_FONT_SIZE, paragraph100LineHeight / BASE_FONT_SIZE, paragraph100LetterSpacing);
1999
1999
  var $paragraph100Semibold = css(_templateObject8(), commonStyles, paragraph100FontSize / BASE_FONT_SIZE, paragraph100LineHeight / BASE_FONT_SIZE, paragraph100LetterSpacing);
@@ -2153,13 +2153,13 @@ function _templateObject4$8() {
2153
2153
  };
2154
2154
  return data;
2155
2155
  }
2156
- function _templateObject5$4() {
2156
+ function _templateObject5$3() {
2157
2157
  var data = _tagged_template_literal$s([
2158
2158
  "\n background-color: transparent;\n border: none;\n color: ",
2159
2159
  ";\n cursor: pointer;\n padding: 0.25rem;\n font-size: 0.75rem;\n margin-left: ",
2160
2160
  ";\n"
2161
2161
  ]);
2162
- _templateObject5$4 = function _templateObject() {
2162
+ _templateObject5$3 = function _templateObject() {
2163
2163
  return data;
2164
2164
  };
2165
2165
  return data;
@@ -2181,7 +2181,7 @@ var StyledIcon = styled.div(_templateObject3$b(), function(param) {
2181
2181
  return type === 'info' ? primary700 : type === 'error' ? danger700 : type === 'success' ? success700 : warning700;
2182
2182
  });
2183
2183
  var TextWrapper = styled.div(_templateObject4$8());
2184
- var TruncaterButton = styled.button(_templateObject5$4(), primary700, function(param) {
2184
+ var TruncaterButton = styled.button(_templateObject5$3(), primary700, function(param) {
2185
2185
  var isExpanded = param.isExpanded;
2186
2186
  return !isExpanded ? '0' : '0.25rem';
2187
2187
  });
@@ -22753,20 +22753,20 @@ function _templateObject4$7() {
22753
22753
  };
22754
22754
  return data;
22755
22755
  }
22756
- function _templateObject5$3() {
22756
+ function _templateObject5$2() {
22757
22757
  var data = _tagged_template_literal$k([
22758
22758
  "\n display: flex;\n flex-direction: row;\n gap: 0.5rem;\n"
22759
22759
  ]);
22760
- _templateObject5$3 = function _templateObject() {
22760
+ _templateObject5$2 = function _templateObject() {
22761
22761
  return data;
22762
22762
  };
22763
22763
  return data;
22764
22764
  }
22765
- function _templateObject6$2() {
22765
+ function _templateObject6$1() {
22766
22766
  var data = _tagged_template_literal$k([
22767
22767
  "\n width: 100%;\n padding: 1rem;\n padding-top: 0;\n box-sizing: border-box;\n"
22768
22768
  ]);
22769
- _templateObject6$2 = function _templateObject() {
22769
+ _templateObject6$1 = function _templateObject() {
22770
22770
  return data;
22771
22771
  };
22772
22772
  return data;
@@ -22782,8 +22782,8 @@ var FilterGroup = styled.div(_templateObject1$e(), function(param) {
22782
22782
  var CloseButton$1 = styled.button(_templateObject2$c());
22783
22783
  var FilterRowsContainer = styled.div(_templateObject3$9());
22784
22784
  var OrButton = styled.button(_templateObject4$7(), neutral100);
22785
- var ButtonGroup = styled.div(_templateObject5$3());
22786
- var AndButtonContainer = styled.div(_templateObject6$2());
22785
+ var ButtonGroup = styled.div(_templateObject5$2());
22786
+ var AndButtonContainer = styled.div(_templateObject6$1());
22787
22787
  var FilterForm = function(param) {
22788
22788
  var values = param.values, fieldOptions = param.fieldOptions, operatorOptions = param.operatorOptions, onSubmit = param.onSubmit, onClear = param.onClear, onChange = param.onChange, errors = param.errors, touched = param.touched;
22789
22789
  var _useState = _sliced_to_array$c(useState(undefined), 2), isHovered = _useState[0], setIsHovered = _useState[1];
@@ -23425,23 +23425,23 @@ function _templateObject4$6() {
23425
23425
  };
23426
23426
  return data;
23427
23427
  }
23428
- function _templateObject5$2() {
23428
+ function _templateObject5$1() {
23429
23429
  var data = _tagged_template_literal$i([
23430
23430
  "\n position: absolute;\n right: 0rem;\n width: 2rem;\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 0;\n border: none;\n cursor: pointer;\n z-index: 0;\n transition: all 150ms ease-in-out;\n transform: ",
23431
23431
  ";\n"
23432
23432
  ]);
23433
- _templateObject5$2 = function _templateObject() {
23433
+ _templateObject5$1 = function _templateObject() {
23434
23434
  return data;
23435
23435
  };
23436
23436
  return data;
23437
23437
  }
23438
- function _templateObject6$1() {
23438
+ function _templateObject6() {
23439
23439
  var data = _tagged_template_literal$i([
23440
23440
  "\n ",
23441
23441
  "\n color: ",
23442
23442
  "/80;\n"
23443
23443
  ]);
23444
- _templateObject6$1 = function _templateObject() {
23444
+ _templateObject6 = function _templateObject() {
23445
23445
  return data;
23446
23446
  };
23447
23447
  return data;
@@ -23510,11 +23510,11 @@ var MultiSelectChip = function(option) {
23510
23510
  });
23511
23511
  };
23512
23512
  // Style for the Icons
23513
- var IconWrapper$2 = styled.div(_templateObject5$2(), function(param) {
23513
+ var IconWrapper$2 = styled.div(_templateObject5$1(), function(param) {
23514
23514
  var open = param.open;
23515
23515
  return open ? 'rotate(180deg)' : 'rotate(0deg)';
23516
23516
  });
23517
- var PlaceholderOption = styled.option(_templateObject6$1(), $paragraph100Semibold, textSecondary);
23517
+ var PlaceholderOption = styled.option(_templateObject6(), $paragraph100Semibold, textSecondary);
23518
23518
  var SelectedOption = styled.option(_templateObject7(), $paragraph200Regular, textPrimary);
23519
23519
  var MultiSelect = function(_param) {
23520
23520
  var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var placeholder = _param.placeholder, label = _param.label, _param_chips = _param.chips, chips = _param_chips === void 0 ? false : _param_chips, values = _param.values, setValues = _param.setValues, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, props = _object_without_properties$f(_param, [
@@ -24917,25 +24917,6 @@ function _templateObject4$3() {
24917
24917
  };
24918
24918
  return data;
24919
24919
  }
24920
- function _templateObject5$1() {
24921
- var data = _tagged_template_literal$c([
24922
- "\n cursor: not-allowed;\n color: ",
24923
- ";\n "
24924
- ]);
24925
- _templateObject5$1 = function _templateObject() {
24926
- return data;
24927
- };
24928
- return data;
24929
- }
24930
- function _templateObject6() {
24931
- var data = _tagged_template_literal$c([
24932
- "\n cursor: pointer;\n "
24933
- ]);
24934
- _templateObject6 = function _templateObject() {
24935
- return data;
24936
- };
24937
- return data;
24938
- }
24939
24920
  var MenuItemContainer = styled.div(_templateObject$c(), primary100);
24940
24921
  var IconContainer = styled.div(_templateObject1$8());
24941
24922
  var buttonStyles = css(_templateObject2$6(), spacing(1), spacing(2), $paragraph200Regular);
@@ -24960,7 +24941,7 @@ var MenuItem = function(_param) {
24960
24941
  onClick: onClick,
24961
24942
  style: {
24962
24943
  cursor: disabled ? 'not-allowed' : 'pointer',
24963
- color: disabled ? neutral500 : neutral900
24944
+ color: disabled ? "".concat(neutral500) : "".concat(neutral900)
24964
24945
  }
24965
24946
  }, props), {
24966
24947
  children: [
@@ -24969,7 +24950,10 @@ var MenuItem = function(_param) {
24969
24950
  onClick: onClick
24970
24951
  }),
24971
24952
  /*#__PURE__*/ jsxs(Typography, {
24972
- css: disabled ? css(_templateObject5$1(), neutral500) : css(_templateObject6()),
24953
+ style: {
24954
+ cursor: disabled ? 'not-allowed' : 'pointer',
24955
+ color: disabled ? "".concat(neutral500) : "".concat(neutral900)
24956
+ },
24973
24957
  variant: "".concat(size === 'small' ? 'label200Regular' : 'label100Regular'),
24974
24958
  children: [
24975
24959
  icon && /*#__PURE__*/ jsx(IconContainer, {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "0.16.6",
5
+ "version": "0.16.7",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {