@banyan_cloud/roots 1.0.128 → 1.0.130
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 +44 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +44 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +44 -16
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -47840,6 +47840,7 @@ var TableRow = /*#__PURE__*/React.forwardRef(function BaseTable(props, ref) {
|
|
|
47840
47840
|
customCells = props.customCells,
|
|
47841
47841
|
className = props.className,
|
|
47842
47842
|
setActiveId = props.setActiveId,
|
|
47843
|
+
onRowClick = props.onRowClick,
|
|
47843
47844
|
Expandable = props.expandable,
|
|
47844
47845
|
onSort = props.onSort,
|
|
47845
47846
|
rowHeight = props.rowHeight;
|
|
@@ -47897,9 +47898,15 @@ var TableRow = /*#__PURE__*/React.forwardRef(function BaseTable(props, ref) {
|
|
|
47897
47898
|
ref: ref,
|
|
47898
47899
|
tabIndex: -1,
|
|
47899
47900
|
"data-elem": "table-row",
|
|
47901
|
+
onClick: function onClick() {
|
|
47902
|
+
return onRowClick(datum, setActiveId);
|
|
47903
|
+
},
|
|
47900
47904
|
className: classes(className, modules_f6618a87.root, modules_f6618a87["".concat(type, "-row")], modules_f6618a87["row-height-".concat(rowHeight)]),
|
|
47901
47905
|
children: tableCells
|
|
47902
47906
|
}), Expandable && expanded && /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
47907
|
+
onClick: function onClick() {
|
|
47908
|
+
return onRowClick(datum, setActiveId);
|
|
47909
|
+
},
|
|
47903
47910
|
children: /*#__PURE__*/jsxRuntime.jsx(Expandable, {
|
|
47904
47911
|
datum: datum,
|
|
47905
47912
|
index: _index
|
|
@@ -47927,7 +47934,8 @@ TableRow.propTypes = {
|
|
|
47927
47934
|
setActiveId: propTypes$1.exports.func,
|
|
47928
47935
|
expandable: propTypes$1.exports.func,
|
|
47929
47936
|
onSort: propTypes$1.exports.func,
|
|
47930
|
-
rowHeight: propTypes$1.exports.oneOf(['md', 'lg'])
|
|
47937
|
+
rowHeight: propTypes$1.exports.oneOf(['md', 'lg']),
|
|
47938
|
+
onRowClick: propTypes$1.exports.func
|
|
47931
47939
|
};
|
|
47932
47940
|
TableRow.defaultProps = {
|
|
47933
47941
|
className: '',
|
|
@@ -47941,7 +47949,8 @@ TableRow.defaultProps = {
|
|
|
47941
47949
|
setActiveId: function setActiveId() {},
|
|
47942
47950
|
expandable: null,
|
|
47943
47951
|
onSort: function onSort() {},
|
|
47944
|
-
rowHeight: 'md'
|
|
47952
|
+
rowHeight: 'md',
|
|
47953
|
+
onRowClick: function onRowClick() {}
|
|
47945
47954
|
};
|
|
47946
47955
|
|
|
47947
47956
|
var css$v = ".TableBody_module_root__77e2990d {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}";
|
|
@@ -47955,7 +47964,8 @@ var TableBody = function TableBody(props) {
|
|
|
47955
47964
|
customCells = props.customCells,
|
|
47956
47965
|
className = props.className,
|
|
47957
47966
|
expandable = props.expandable,
|
|
47958
|
-
rowHeight = props.rowHeight
|
|
47967
|
+
rowHeight = props.rowHeight,
|
|
47968
|
+
onRowClick = props.onRowClick;
|
|
47959
47969
|
var listRef = React.useRef([]);
|
|
47960
47970
|
return /*#__PURE__*/jsxRuntime.jsx("tbody", {
|
|
47961
47971
|
"data-elem": "table-body",
|
|
@@ -47990,7 +48000,8 @@ var TableBody = function TableBody(props) {
|
|
|
47990
48000
|
_index: _index,
|
|
47991
48001
|
setActiveId: setActiveId,
|
|
47992
48002
|
expandable: expandable,
|
|
47993
|
-
rowHeight: rowHeight
|
|
48003
|
+
rowHeight: rowHeight,
|
|
48004
|
+
onRowClick: onRowClick
|
|
47994
48005
|
}, key);
|
|
47995
48006
|
})
|
|
47996
48007
|
});
|
|
@@ -48012,7 +48023,8 @@ TableBody.propTypes = {
|
|
|
48012
48023
|
body: propTypes$1.exports.object
|
|
48013
48024
|
}),
|
|
48014
48025
|
expandable: propTypes$1.exports.func,
|
|
48015
|
-
rowHeight: propTypes$1.exports.oneOf(['md', 'lg'])
|
|
48026
|
+
rowHeight: propTypes$1.exports.oneOf(['md', 'lg']),
|
|
48027
|
+
onRowClick: propTypes$1.exports.func
|
|
48016
48028
|
};
|
|
48017
48029
|
TableBody.defaultProps = {
|
|
48018
48030
|
className: '',
|
|
@@ -48023,7 +48035,8 @@ TableBody.defaultProps = {
|
|
|
48023
48035
|
body: null
|
|
48024
48036
|
},
|
|
48025
48037
|
expandable: null,
|
|
48026
|
-
rowHeight: 'md'
|
|
48038
|
+
rowHeight: 'md',
|
|
48039
|
+
onRowClick: function onRowClick() {}
|
|
48027
48040
|
};
|
|
48028
48041
|
|
|
48029
48042
|
var css$u = ".TableHeader_module_root__daf69a14 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}";
|
|
@@ -48036,7 +48049,8 @@ var TableHeader = function TableHeader(props) {
|
|
|
48036
48049
|
customCells = props.customCells,
|
|
48037
48050
|
expandable = props.expandable,
|
|
48038
48051
|
onSort = props.onSort,
|
|
48039
|
-
rowHeight = props.rowHeight
|
|
48052
|
+
rowHeight = props.rowHeight,
|
|
48053
|
+
onRowClick = props.onRowClick;
|
|
48040
48054
|
return /*#__PURE__*/jsxRuntime.jsx("thead", {
|
|
48041
48055
|
"data-elem": "table-header",
|
|
48042
48056
|
className: modules_3be98c28.root,
|
|
@@ -48046,7 +48060,8 @@ var TableHeader = function TableHeader(props) {
|
|
|
48046
48060
|
customCells: customCells,
|
|
48047
48061
|
expandable: expandable,
|
|
48048
48062
|
onSort: onSort,
|
|
48049
|
-
rowHeight: rowHeight
|
|
48063
|
+
rowHeight: rowHeight,
|
|
48064
|
+
onRowClick: onRowClick
|
|
48050
48065
|
})
|
|
48051
48066
|
});
|
|
48052
48067
|
};
|
|
@@ -48066,7 +48081,8 @@ TableHeader.propTypes = {
|
|
|
48066
48081
|
}),
|
|
48067
48082
|
expandable: propTypes$1.exports.func,
|
|
48068
48083
|
onSort: propTypes$1.exports.func,
|
|
48069
|
-
rowHeight: propTypes$1.exports.oneOf(['md', 'lg'])
|
|
48084
|
+
rowHeight: propTypes$1.exports.oneOf(['md', 'lg']),
|
|
48085
|
+
onRowClick: propTypes$1.exports.func
|
|
48070
48086
|
};
|
|
48071
48087
|
TableHeader.defaultProps = {
|
|
48072
48088
|
headerData: [],
|
|
@@ -48076,7 +48092,8 @@ TableHeader.defaultProps = {
|
|
|
48076
48092
|
},
|
|
48077
48093
|
expandable: null,
|
|
48078
48094
|
onSort: function onSort() {},
|
|
48079
|
-
rowHeight: 'md'
|
|
48095
|
+
rowHeight: 'md',
|
|
48096
|
+
onRowClick: function onRowClick() {}
|
|
48080
48097
|
};
|
|
48081
48098
|
|
|
48082
48099
|
var css$t = ".BaseTable_module_root__7a8d241c {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n background: var(--white);\n overflow: auto;\n}";
|
|
@@ -48159,6 +48176,7 @@ var BaseTable = /*#__PURE__*/React.forwardRef(function BaseTable(props, ref) {
|
|
|
48159
48176
|
tableData = props.tableData,
|
|
48160
48177
|
className = props.className,
|
|
48161
48178
|
loading = props.loading,
|
|
48179
|
+
onRowClick = props.onRowClick,
|
|
48162
48180
|
expandable = props.expandable,
|
|
48163
48181
|
onSort = props.onSort,
|
|
48164
48182
|
rowHeight = props.rowHeight,
|
|
@@ -48180,14 +48198,16 @@ var BaseTable = /*#__PURE__*/React.forwardRef(function BaseTable(props, ref) {
|
|
|
48180
48198
|
customCells: customCells,
|
|
48181
48199
|
expandable: expandable,
|
|
48182
48200
|
onSort: onSort,
|
|
48183
|
-
rowHeight: rowHeight
|
|
48201
|
+
rowHeight: rowHeight,
|
|
48202
|
+
onRowClick: onRowClick
|
|
48184
48203
|
}), /*#__PURE__*/jsxRuntime.jsx(TableBody, {
|
|
48185
48204
|
ref: ref,
|
|
48186
48205
|
headerData: transformedHeaderData,
|
|
48187
48206
|
customCells: customCells,
|
|
48188
48207
|
tableData: tableData,
|
|
48189
48208
|
expandable: expandable,
|
|
48190
|
-
rowHeight: rowHeight
|
|
48209
|
+
rowHeight: rowHeight,
|
|
48210
|
+
onRowClick: onRowClick
|
|
48191
48211
|
})]
|
|
48192
48212
|
});
|
|
48193
48213
|
});
|
|
@@ -48211,6 +48231,7 @@ BaseTable.propTypes = {
|
|
|
48211
48231
|
expandable: propTypes$1.exports.func,
|
|
48212
48232
|
onSort: propTypes$1.exports.func,
|
|
48213
48233
|
rowHeight: propTypes$1.exports.oneOf(['md', 'lg']),
|
|
48234
|
+
onRowClick: propTypes$1.exports.func,
|
|
48214
48235
|
theme: propTypes$1.exports.oneOf(['light', 'dark'])
|
|
48215
48236
|
};
|
|
48216
48237
|
BaseTable.defaultProps = {
|
|
@@ -48225,7 +48246,8 @@ BaseTable.defaultProps = {
|
|
|
48225
48246
|
expandable: null,
|
|
48226
48247
|
onSort: function onSort() {},
|
|
48227
48248
|
rowHeight: 'md',
|
|
48228
|
-
theme: 'light'
|
|
48249
|
+
theme: 'light',
|
|
48250
|
+
onRowClick: function onRowClick() {}
|
|
48229
48251
|
};
|
|
48230
48252
|
|
|
48231
48253
|
var css$q = ".Tooltip_module_tooltip__04fbc763 {\n text-align: center;\n border-radius: 0.25rem;\n min-width: auto;\n max-width: 12rem;\n padding: 0.375rem;\n font-size: 0.875rem;\n font-family: sans-serif;\n line-height: 1;\n}\n.Tooltip_module_tooltip__04fbc763.Tooltip_module_light__04fbc763 {\n color: var(--black);\n background: var(--grey7);\n border-color: var(--black);\n}\n.Tooltip_module_tooltip__04fbc763.Tooltip_module_light__04fbc763 .Tooltip_module_arrow__04fbc763 {\n background: var(--grey7);\n}\n.Tooltip_module_tooltip__04fbc763.Tooltip_module_dark__04fbc763 {\n color: var(--white);\n background: var(--black);\n border-color: var(--white);\n}\n.Tooltip_module_tooltip__04fbc763.Tooltip_module_dark__04fbc763 .Tooltip_module_arrow__04fbc763 {\n background: var(--black);\n}\n.Tooltip_module_tooltip__04fbc763 .Tooltip_module_arrow__04fbc763 {\n position: absolute;\n width: 1rem;\n height: 1rem;\n z-index: -1;\n pointer-events: none;\n transform: rotate(45deg);\n}";
|
|
@@ -49237,7 +49259,8 @@ var Table = function Table(props) {
|
|
|
49237
49259
|
disabledFilterOptions = props.disabledFilterOptions,
|
|
49238
49260
|
onSort = props.onSort,
|
|
49239
49261
|
rowHeight = props.rowHeight,
|
|
49240
|
-
theme = props.theme
|
|
49262
|
+
theme = props.theme,
|
|
49263
|
+
onRowClick = props.onRowClick;
|
|
49241
49264
|
var ref = React.useRef(null);
|
|
49242
49265
|
var paginationRef = React.useRef(null);
|
|
49243
49266
|
var _useState = React.useState(false),
|
|
@@ -49338,6 +49361,7 @@ var Table = function Table(props) {
|
|
|
49338
49361
|
className: modules_2e8406c7.table,
|
|
49339
49362
|
onSort: onSort,
|
|
49340
49363
|
rowHeight: rowHeight,
|
|
49364
|
+
onRowClick: onRowClick,
|
|
49341
49365
|
loading: loading
|
|
49342
49366
|
}), paginationData != null && /*#__PURE__*/jsxRuntime.jsx(Pagination, _objectSpread2(_objectSpread2({
|
|
49343
49367
|
className: classes(modules_2e8406c7.pagination, floating ? modules_2e8406c7.floating : ''),
|
|
@@ -49381,6 +49405,7 @@ Table.propTypes = {
|
|
|
49381
49405
|
}),
|
|
49382
49406
|
onSort: propTypes$1.exports.func,
|
|
49383
49407
|
rowHeight: propTypes$1.exports.oneOf(['md', 'lg']),
|
|
49408
|
+
onRowClick: propTypes$1.exports.func,
|
|
49384
49409
|
theme: propTypes$1.exports.oneOf(['light', 'dark'])
|
|
49385
49410
|
};
|
|
49386
49411
|
Table.defaultProps = {
|
|
@@ -49408,7 +49433,8 @@ Table.defaultProps = {
|
|
|
49408
49433
|
},
|
|
49409
49434
|
onSort: function onSort() {},
|
|
49410
49435
|
rowHeight: 'md',
|
|
49411
|
-
theme: 'light'
|
|
49436
|
+
theme: 'light',
|
|
49437
|
+
onRowClick: function onRowClick() {}
|
|
49412
49438
|
};
|
|
49413
49439
|
|
|
49414
49440
|
var css$i = ".Tabs_module_root__18f64bf7 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Tabs_module_root__18f64bf7.Tabs_module_lightTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 {\n border-color: var(--grey4);\n}\n.Tabs_module_root__18f64bf7.Tabs_module_lightTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component1] > .Tabs_module_icon__18f64bf7,\n.Tabs_module_root__18f64bf7.Tabs_module_lightTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component3] > .Tabs_module_icon__18f64bf7 {\n fill: var(--black);\n}\n.Tabs_module_root__18f64bf7.Tabs_module_lightTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component2] {\n color: var(--black);\n}\n.Tabs_module_root__18f64bf7.Tabs_module_lightTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7:hover {\n background: var(--info-bg);\n}\n.Tabs_module_root__18f64bf7.Tabs_module_darkTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 {\n border-color: var(--grey);\n}\n.Tabs_module_root__18f64bf7.Tabs_module_darkTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component1] > .Tabs_module_icon__18f64bf7,\n.Tabs_module_root__18f64bf7.Tabs_module_darkTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component3] > .Tabs_module_icon__18f64bf7 {\n fill: var(--white);\n}\n.Tabs_module_root__18f64bf7.Tabs_module_darkTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component2] {\n color: var(--white);\n}\n.Tabs_module_root__18f64bf7.Tabs_module_darkTheme__18f64bf7 > button.Tabs_module_tab__18f64bf7:hover {\n background: var(--dark-grey);\n}\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7 {\n padding: 0.75rem;\n gap: 0.75rem;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n}\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component1] > .Tabs_module_icon__18f64bf7,\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7 > [data-elem=component3] > .Tabs_module_icon__18f64bf7 {\n width: 1.5rem;\n height: 1.5rem;\n}\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7.Tabs_module_active__18f64bf7 {\n border-bottom-width: 2px;\n border-color: var(--highlight);\n}\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7.Tabs_module_active__18f64bf7 > [data-elem=component1] > .Tabs_module_icon__18f64bf7,\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7.Tabs_module_active__18f64bf7 > [data-elem=component3] > .Tabs_module_icon__18f64bf7 {\n fill: var(--highlight);\n}\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7.Tabs_module_active__18f64bf7 > [data-elem=component2] {\n color: var(--highlight);\n}\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7:hover > [data-elem=component1] > .Tabs_module_icon__18f64bf7,\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7:hover > [data-elem=component3] > .Tabs_module_icon__18f64bf7 {\n fill: var(--highlight);\n}\n.Tabs_module_root__18f64bf7 > button.Tabs_module_tab__18f64bf7:hover > [data-elem=component2] {\n color: var(--highlight);\n}";
|
|
@@ -49430,7 +49456,8 @@ var Tabs = function Tabs(props) {
|
|
|
49430
49456
|
var id = tab.id,
|
|
49431
49457
|
title = tab.title,
|
|
49432
49458
|
LeftIcon = tab.leftIcon,
|
|
49433
|
-
RightIcon = tab.rightIcon
|
|
49459
|
+
RightIcon = tab.rightIcon,
|
|
49460
|
+
disabled = tab.disabled;
|
|
49434
49461
|
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
49435
49462
|
size: "auto",
|
|
49436
49463
|
color: "default",
|
|
@@ -49439,6 +49466,7 @@ var Tabs = function Tabs(props) {
|
|
|
49439
49466
|
onClick: function onClick() {
|
|
49440
49467
|
onTabClick(id);
|
|
49441
49468
|
},
|
|
49469
|
+
disabled: disabled,
|
|
49442
49470
|
title: title,
|
|
49443
49471
|
className: classes(modules_78ab5066.tab, selectedTab === id ? modules_78ab5066.active : ''),
|
|
49444
49472
|
leftComponent: LeftIcon && function () {
|