@banyan_cloud/roots 1.0.18 → 1.0.19

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/cjs/index.js CHANGED
@@ -35635,9 +35635,14 @@ var css_248z$i = ".Stepper-module_root__cvNJm {\n display: flex;\n flex-direct
35635
35635
  var styles$h = {"root":"Stepper-module_root__cvNJm","step":"Stepper-module_step__M5Y-s","title":"Stepper-module_title__V9fw3","left":"Stepper-module_left__BSaSz","icon":"Stepper-module_icon__HwVpw","error-icon":"Stepper-module_error-icon__TnLh-","completion-icon":"Stepper-module_completion-icon__Ahge-","progress":"Stepper-module_progress__hBk0m","right":"Stepper-module_right__eFhp-","description":"Stepper-module_description__DOJeD","active":"Stepper-module_active__38cZS","completed":"Stepper-module_completed__2KWB-","error":"Stepper-module_error__-Ti-0"};
35636
35636
  styleInject(css_248z$i);
35637
35637
 
35638
- var css_248z$h = "";
35638
+ var css_248z$h = ":root {\n --white: #ffffff;\n --black: #000000;\n --dark-grey: #333333;\n --dark-grey-o-85: rgba(51, 51, 51, 0.85);\n --grey: #737373;\n --grey1: #888888;\n --grey2: #a6a6a6;\n --grey3: #bbbbbb;\n --grey4: #c4c4c4;\n --grey5: #dddddd;\n --grey6: #e8e8e8;\n --grey7: #eeeeee;\n --grey8: #f2f2f2;\n --grey9: #eff0f0;\n --grey10: #f7f7f7;\n --highlight: #0f62fe;\n --dark-blue: #001833;\n --background: #d0e2ff;\n --banyan-blue: #00037c;\n --banyan-orange: #ff892a;\n --banyan-pink: #ff1597;\n --banyan-gradient: linear-gradient(\n \t84.71deg,\n \tvar(--banyan-pink) 0.48%,\n \tvar(--banyan-orange) 99.57%\n );\n --error: #da1e28;\n --error-bg: #fff1f1;\n --error-outline: rgba(218, 30, 40, 0.08);\n --success: #24a148;\n --success-bg: #defbe6;\n --success-outline: rgba(36, 161, 72, 0.08);\n --warning: #f1c21b;\n --warning-bg: #fff8e1;\n --warning-outline: rgba(203, 160, 6, 0.08);\n --info: #0043ce;\n --info-bg: #edf5ff;\n --info-outline: #2864db98;\n}\n:export {\n white: --white;\n black: --black;\n dark-grey: --dark-grey;\n dark-grey-o-85: --dark-grey-o-85;\n grey: --grey;\n grey1: --grey1;\n grey2: --grey2;\n grey3: --grey3;\n grey4: --grey4;\n grey5: --grey5;\n grey6: --grey6;\n grey7: --grey7;\n grey8: --grey8;\n grey9: --grey9;\n grey10: --grey10;\n highlight: --highlight;\n dark-blue: --dark-blue;\n background: --background;\n banyan-blue: --banyan-blue;\n banyan-orange: --banyan-orange;\n banyan-pink: --banyan-pink;\n banyan-gradient: --banyan-gradient;\n error: --error;\n error-bg: --error-bg;\n error-outline: --error-outline;\n success: --success;\n success-bg: --success-bg;\n success-outline: --success-outline;\n warning: --warning;\n warning-bg: --warning-bg;\n warning-outline: --warning-outline;\n info: --info;\n info-bg: --info-bg;\n info-outline: --info-outline;\n}";
35639
35639
  styleInject(css_248z$h);
35640
35640
 
35641
+ var COLORS = Object.keys(css_248z$h).reduce(function (acc, curr) {
35642
+ acc[curr] = getCSSVariableValue(css_248z$h[curr]);
35643
+ return acc;
35644
+ }, {});
35645
+
35641
35646
  var Step = function Step(props) {
35642
35647
  var title = props.title,
35643
35648
  description = props.description,
@@ -35665,7 +35670,7 @@ var Step = function Step(props) {
35665
35670
  children: [display, active === true && completion > 0 && completion < 1 && /*#__PURE__*/jsxRuntime.jsx("div", {
35666
35671
  className: styles$h.progress,
35667
35672
  style: {
35668
- backgroundImage: "conic-gradient(".concat(css_248z$h.highlight, ", ").concat(completion * 100, "%, transparent 0%)")
35673
+ backgroundImage: "conic-gradient(".concat(COLORS.highlight, ", ").concat(completion * 100, "%, transparent 0%)")
35669
35674
  }
35670
35675
  })]
35671
35676
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -36066,49 +36071,56 @@ var styles$b = {"root":"TableChips-module_root__bKfBs","back":"TableChips-module
36066
36071
  styleInject(css_248z$b);
36067
36072
 
36068
36073
  var TableChips = function TableChips(props) {
36074
+ var _chips$filter;
36069
36075
  var showBack = props.showBack,
36070
36076
  onBack = props.onBack,
36071
36077
  chips = props.chips,
36072
36078
  className = props.className,
36073
36079
  style = props.style;
36074
- return /*#__PURE__*/jsxRuntime.jsx(BaseCell, {
36075
- flexible: true,
36076
- className: classes(className, styles$b.root),
36077
- attrs: {
36078
- style: style
36079
- },
36080
- component1: showBack && /*#__PURE__*/jsxRuntime.jsx(Button, {
36081
- size: "auto",
36082
- radius: "round",
36083
- className: styles$b.back,
36084
- leftComponent: function leftComponent() {
36085
- return /*#__PURE__*/jsxRuntime.jsx(Arrow$1, {
36086
- className: styles$b.icon,
36087
- position: "left"
36088
- });
36080
+ var chipsDOM = chips === null || chips === void 0 ? void 0 : (_chips$filter = chips.filter(function (chip) {
36081
+ return (chip === null || chip === void 0 ? void 0 : chip.value) != null;
36082
+ })) === null || _chips$filter === void 0 ? void 0 : _chips$filter.map(function (chip) {
36083
+ return /*#__PURE__*/jsxRuntime.jsx(Chip, {
36084
+ variant: "input",
36085
+ color: "default",
36086
+ disabled: chip.disabled,
36087
+ className: styles$b.chip,
36088
+ title: "".concat(chip.label, " : ").concat(chip.value),
36089
+ leftComponent: function leftComponent(iconProps) {
36090
+ var Icon = chip.icon;
36091
+ if ( /*#__PURE__*/React.isValidElement( /*#__PURE__*/jsxRuntime.jsx(Icon, {}))) {
36092
+ return /*#__PURE__*/jsxRuntime.jsx(Icon, _objectSpread2(_objectSpread2({}, iconProps), {}, {
36093
+ className: styles$b['chip-icon']
36094
+ }));
36095
+ }
36096
+ return null;
36089
36097
  },
36090
- onClick: onBack
36091
- }),
36092
- component2: chips.map(function (chip) {
36093
- return /*#__PURE__*/jsxRuntime.jsx(Chip, {
36094
- variant: "input",
36095
- color: "default",
36096
- disabled: chip.disabled,
36097
- className: styles$b.chip,
36098
- title: "".concat(chip.label, " : ").concat(chip.value),
36099
- leftComponent: function leftComponent(iconProps) {
36100
- var Icon = chip.icon;
36101
- if ( /*#__PURE__*/React.isValidElement( /*#__PURE__*/jsxRuntime.jsx(Icon, {}))) {
36102
- return /*#__PURE__*/jsxRuntime.jsx(Icon, _objectSpread2(_objectSpread2({}, iconProps), {}, {
36103
- className: styles$b['chip-icon']
36104
- }));
36105
- }
36106
- return null;
36107
- },
36108
- rightComponent: chip.rightComponent
36109
- }, chip.key);
36110
- })
36098
+ rightComponent: chip.rightComponent
36099
+ }, chip.key);
36111
36100
  });
36101
+ if ((chipsDOM === null || chipsDOM === void 0 ? void 0 : chipsDOM.length) > 0 || showBack) {
36102
+ return /*#__PURE__*/jsxRuntime.jsx(BaseCell, {
36103
+ flexible: true,
36104
+ className: classes(className, styles$b.root),
36105
+ attrs: {
36106
+ style: style
36107
+ },
36108
+ component1: showBack && /*#__PURE__*/jsxRuntime.jsx(Button, {
36109
+ size: "auto",
36110
+ radius: "round",
36111
+ className: styles$b.back,
36112
+ leftComponent: function leftComponent() {
36113
+ return /*#__PURE__*/jsxRuntime.jsx(Arrow$1, {
36114
+ className: styles$b.icon,
36115
+ position: "left"
36116
+ });
36117
+ },
36118
+ onClick: onBack
36119
+ }),
36120
+ component2: (chipsDOM === null || chipsDOM === void 0 ? void 0 : chipsDOM.length) > 0 ? chipsDOM : null
36121
+ });
36122
+ }
36123
+ return null;
36112
36124
  };
36113
36125
  TableChips.propTypes = {
36114
36126
  className: propTypes$1.exports.string,
@@ -84338,6 +84350,7 @@ exports.BaseWidget = BaseWidget;
84338
84350
  exports.BreadCrumbs = BreadCrumbs;
84339
84351
  exports.BreadcrumbSeperatorIcon = BreadcrumbSeperator;
84340
84352
  exports.Button = Button;
84353
+ exports.COLORS = COLORS;
84341
84354
  exports.CalenderIcon = Calender$1;
84342
84355
  exports.CaretIcon = Caret;
84343
84356
  exports.Checkbox = Checkbox;