@majoo-ui/react 1.57.0 → 1.57.2
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/index.esm.js +41 -5
- package/index.umd.js +41 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -12244,9 +12244,20 @@ function InputResourceList({
|
|
|
12244
12244
|
}, {
|
|
12245
12245
|
children: [jsx(InputCheckbox, {
|
|
12246
12246
|
label: jsxs(Flex$1, Object.assign({
|
|
12247
|
-
gap: 3
|
|
12247
|
+
gap: 3,
|
|
12248
|
+
align: "center"
|
|
12248
12249
|
}, {
|
|
12249
12250
|
children: [jsx(Paragraph, Object.assign({
|
|
12251
|
+
css: {
|
|
12252
|
+
overflowX: 'hidden',
|
|
12253
|
+
textOverflow: 'ellipsis',
|
|
12254
|
+
'@sm': {
|
|
12255
|
+
maxWidth: resource.variants ? 150 : 200
|
|
12256
|
+
},
|
|
12257
|
+
'@md': {
|
|
12258
|
+
maxWidth: 'unset'
|
|
12259
|
+
}
|
|
12260
|
+
},
|
|
12250
12261
|
paragraph: "longContentRegular"
|
|
12251
12262
|
}, {
|
|
12252
12263
|
children: resource.label
|
|
@@ -17581,9 +17592,9 @@ function InputDateRangePicker(props) {
|
|
|
17581
17592
|
const getInputPickerValue = (type, date, isTimePicker) => {
|
|
17582
17593
|
if (!date) return '';
|
|
17583
17594
|
if (type === SINGLE_PICKER) {
|
|
17584
|
-
return `${moment(date).format(isTimePicker ? '
|
|
17595
|
+
return `${moment(date).format(isTimePicker ? 'DD MMMM YYYY, HH:mm' : 'DD MMMM YYYY')}`;
|
|
17585
17596
|
} else {
|
|
17586
|
-
return `${moment(date[0]).format('
|
|
17597
|
+
return `${moment(date[0]).format('DD MMM YYYY')} - ${moment(date[1]).format('DD MMM YYYY')}`;
|
|
17587
17598
|
}
|
|
17588
17599
|
};
|
|
17589
17600
|
function InputDatePicker({
|
|
@@ -18807,7 +18818,20 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
18807
18818
|
}
|
|
18808
18819
|
}
|
|
18809
18820
|
}, {
|
|
18810
|
-
children:
|
|
18821
|
+
children: jsx(Paragraph, Object.assign({
|
|
18822
|
+
css: {
|
|
18823
|
+
overflowX: 'hidden',
|
|
18824
|
+
textOverflow: 'ellipsis',
|
|
18825
|
+
'@sm': {
|
|
18826
|
+
maxWidth: 250
|
|
18827
|
+
},
|
|
18828
|
+
'@md': {
|
|
18829
|
+
maxWidth: 'unset'
|
|
18830
|
+
}
|
|
18831
|
+
}
|
|
18832
|
+
}, {
|
|
18833
|
+
children: renderCell()
|
|
18834
|
+
}), void 0)
|
|
18811
18835
|
}), void 0), jsx(Box, Object.assign({
|
|
18812
18836
|
onClick: () => {
|
|
18813
18837
|
if (!Object.keys(state.expanded).includes(row.id)) {
|
|
@@ -18849,7 +18873,19 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
18849
18873
|
color: "secondary"
|
|
18850
18874
|
}, {
|
|
18851
18875
|
children: typeof cell.column.Header === 'string' ? (_a = cell.column.Header) === null || _a === void 0 ? void 0 : _a.toUpperCase() : cell.render('Header')
|
|
18852
|
-
}), void 0),
|
|
18876
|
+
}), void 0), jsx(Paragraph, Object.assign({
|
|
18877
|
+
css: {
|
|
18878
|
+
overflowWrap: 'break-word',
|
|
18879
|
+
'@sm': {
|
|
18880
|
+
maxWidth: 200
|
|
18881
|
+
},
|
|
18882
|
+
'@md': {
|
|
18883
|
+
maxWidth: 'unset'
|
|
18884
|
+
}
|
|
18885
|
+
}
|
|
18886
|
+
}, {
|
|
18887
|
+
children: cell.render('Cell')
|
|
18888
|
+
}), void 0)]
|
|
18853
18889
|
}), `${cell.column.id}-${row.id}`);
|
|
18854
18890
|
})
|
|
18855
18891
|
}), void 0), actionCells && actionCells.length > 0 && jsx(Flex$1, Object.assign({
|
package/index.umd.js
CHANGED
|
@@ -12397,9 +12397,20 @@
|
|
|
12397
12397
|
}, {
|
|
12398
12398
|
children: [jsxRuntime.jsx(InputCheckbox, {
|
|
12399
12399
|
label: jsxRuntime.jsxs(Flex$1, __assign({
|
|
12400
|
-
gap: 3
|
|
12400
|
+
gap: 3,
|
|
12401
|
+
align: "center"
|
|
12401
12402
|
}, {
|
|
12402
12403
|
children: [jsxRuntime.jsx(Paragraph, __assign({
|
|
12404
|
+
css: {
|
|
12405
|
+
overflowX: 'hidden',
|
|
12406
|
+
textOverflow: 'ellipsis',
|
|
12407
|
+
'@sm': {
|
|
12408
|
+
maxWidth: resource.variants ? 150 : 200
|
|
12409
|
+
},
|
|
12410
|
+
'@md': {
|
|
12411
|
+
maxWidth: 'unset'
|
|
12412
|
+
}
|
|
12413
|
+
},
|
|
12403
12414
|
paragraph: "longContentRegular"
|
|
12404
12415
|
}, {
|
|
12405
12416
|
children: resource.label
|
|
@@ -17838,9 +17849,9 @@
|
|
|
17838
17849
|
var getInputPickerValue = function getInputPickerValue(type, date, isTimePicker) {
|
|
17839
17850
|
if (!date) return '';
|
|
17840
17851
|
if (type === SINGLE_PICKER) {
|
|
17841
|
-
return "".concat(moment__default["default"](date).format(isTimePicker ? '
|
|
17852
|
+
return "".concat(moment__default["default"](date).format(isTimePicker ? 'DD MMMM YYYY, HH:mm' : 'DD MMMM YYYY'));
|
|
17842
17853
|
} else {
|
|
17843
|
-
return "".concat(moment__default["default"](date[0]).format('
|
|
17854
|
+
return "".concat(moment__default["default"](date[0]).format('DD MMM YYYY'), " - ").concat(moment__default["default"](date[1]).format('DD MMM YYYY'));
|
|
17844
17855
|
}
|
|
17845
17856
|
};
|
|
17846
17857
|
function InputDatePicker(_a) {
|
|
@@ -19101,7 +19112,20 @@
|
|
|
19101
19112
|
}
|
|
19102
19113
|
}
|
|
19103
19114
|
}, {
|
|
19104
|
-
children:
|
|
19115
|
+
children: jsxRuntime.jsx(Paragraph, __assign({
|
|
19116
|
+
css: {
|
|
19117
|
+
overflowX: 'hidden',
|
|
19118
|
+
textOverflow: 'ellipsis',
|
|
19119
|
+
'@sm': {
|
|
19120
|
+
maxWidth: 250
|
|
19121
|
+
},
|
|
19122
|
+
'@md': {
|
|
19123
|
+
maxWidth: 'unset'
|
|
19124
|
+
}
|
|
19125
|
+
}
|
|
19126
|
+
}, {
|
|
19127
|
+
children: renderCell()
|
|
19128
|
+
}), void 0)
|
|
19105
19129
|
}), void 0), jsxRuntime.jsx(Box, __assign({
|
|
19106
19130
|
onClick: function () {
|
|
19107
19131
|
if (!Object.keys(state.expanded).includes(row.id)) {
|
|
@@ -19145,7 +19169,19 @@
|
|
|
19145
19169
|
color: "secondary"
|
|
19146
19170
|
}, {
|
|
19147
19171
|
children: typeof cell.column.Header === 'string' ? (_a = cell.column.Header) === null || _a === void 0 ? void 0 : _a.toUpperCase() : cell.render('Header')
|
|
19148
|
-
}), void 0),
|
|
19172
|
+
}), void 0), jsxRuntime.jsx(Paragraph, __assign({
|
|
19173
|
+
css: {
|
|
19174
|
+
overflowWrap: 'break-word',
|
|
19175
|
+
'@sm': {
|
|
19176
|
+
maxWidth: 200
|
|
19177
|
+
},
|
|
19178
|
+
'@md': {
|
|
19179
|
+
maxWidth: 'unset'
|
|
19180
|
+
}
|
|
19181
|
+
}
|
|
19182
|
+
}, {
|
|
19183
|
+
children: cell.render('Cell')
|
|
19184
|
+
}), void 0)]
|
|
19149
19185
|
}), "".concat(cell.column.id, "-").concat(row.id));
|
|
19150
19186
|
})
|
|
19151
19187
|
}), void 0), actionCells && actionCells.length > 0 && jsxRuntime.jsx(Flex$1, __assign({
|