@xelto.npm/xc2-lib 0.1.2 → 0.1.4
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.cjs.js +11 -15
- package/dist/index.esm.js +11 -15
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -71,15 +71,6 @@ function _objectSpread2(target) {
|
|
|
71
71
|
}
|
|
72
72
|
return target;
|
|
73
73
|
}
|
|
74
|
-
function _typeof$I(obj) {
|
|
75
|
-
"@babel/helpers - typeof";
|
|
76
|
-
|
|
77
|
-
return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
78
|
-
return typeof obj;
|
|
79
|
-
} : function (obj) {
|
|
80
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
81
|
-
}, _typeof$I(obj);
|
|
82
|
-
}
|
|
83
74
|
function _defineProperty$C(obj, key, value) {
|
|
84
75
|
key = _toPropertyKey(key);
|
|
85
76
|
if (key in obj) {
|
|
@@ -73949,8 +73940,9 @@ var StyledSearchBarWrapper = styled$1(Box$1, {
|
|
|
73949
73940
|
})(function (_ref) {
|
|
73950
73941
|
var fluid = _ref.fluid;
|
|
73951
73942
|
return {
|
|
73943
|
+
maxWidth: fluid ? '100%' : '300px',
|
|
73944
|
+
width: '100%',
|
|
73952
73945
|
boxSizing: 'border-box',
|
|
73953
|
-
width: fluid ? '100%' : 'fit-content',
|
|
73954
73946
|
backgroundColor: '#E7EAF3',
|
|
73955
73947
|
position: 'relative',
|
|
73956
73948
|
display: 'flex',
|
|
@@ -74118,7 +74110,7 @@ var SearchBarComponent = function SearchBarComponent(_ref3) {
|
|
|
74118
74110
|
type: "text",
|
|
74119
74111
|
placeholder: placeholder,
|
|
74120
74112
|
"aria-label": "Search",
|
|
74121
|
-
|
|
74113
|
+
tyle: {
|
|
74122
74114
|
margin: 0,
|
|
74123
74115
|
padding: 0,
|
|
74124
74116
|
border: 'none'
|
|
@@ -74126,7 +74118,7 @@ var SearchBarComponent = function SearchBarComponent(_ref3) {
|
|
|
74126
74118
|
}));
|
|
74127
74119
|
};
|
|
74128
74120
|
SearchBarComponent.propTypes = {
|
|
74129
|
-
fluid: propTypesExports.
|
|
74121
|
+
fluid: propTypesExports.bool,
|
|
74130
74122
|
placeholder: propTypesExports.string,
|
|
74131
74123
|
searchText: propTypesExports.string,
|
|
74132
74124
|
onChange: propTypesExports.func,
|
|
@@ -74185,6 +74177,10 @@ var TableToolbar = function TableToolbar(_ref2) {
|
|
|
74185
74177
|
components = _ref2.components,
|
|
74186
74178
|
className = _ref2.className,
|
|
74187
74179
|
onSearch = _ref2.onSearch;
|
|
74180
|
+
var _useState = React.useState(''),
|
|
74181
|
+
_useState2 = _slicedToArray$a(_useState, 2),
|
|
74182
|
+
textSearch = _useState2[0],
|
|
74183
|
+
setSearchText = _useState2[1];
|
|
74188
74184
|
return /*#__PURE__*/React.createElement(StyledTableToolbar, {
|
|
74189
74185
|
className: className
|
|
74190
74186
|
}, selected.length > 0 ? /*#__PURE__*/React.createElement(StyledTableToolbarItem, null, selected.length + " " + labelRowsSelected, showRemoveRowsIcon ? /*#__PURE__*/React.createElement(IconButtonComponent, {
|
|
@@ -74201,8 +74197,10 @@ var TableToolbar = function TableToolbar(_ref2) {
|
|
|
74201
74197
|
}) : null) : null, components && /*#__PURE__*/React.createElement(StyledTableToolbarItem, {
|
|
74202
74198
|
className: "toolbar-components"
|
|
74203
74199
|
}, components), /*#__PURE__*/React.createElement(SearchBarComponent, {
|
|
74200
|
+
fluid: false,
|
|
74204
74201
|
onChange: onSearch,
|
|
74205
|
-
|
|
74202
|
+
searchText: textSearch,
|
|
74203
|
+
onChangeSearchText: setSearchText,
|
|
74206
74204
|
placeholder: labelSearchBar,
|
|
74207
74205
|
style: {
|
|
74208
74206
|
marginRight: 0,
|
|
@@ -97900,9 +97898,7 @@ var CustomStepper = function CustomStepper(_ref4) {
|
|
|
97900
97898
|
label = _ref4.label,
|
|
97901
97899
|
withIcon = _ref4.withIcon,
|
|
97902
97900
|
currentStep = _ref4.currentStep;
|
|
97903
|
-
console.log(currentStep + _typeof$I(currentStep));
|
|
97904
97901
|
var currentStepIndex = steps.indexOf(currentStep);
|
|
97905
|
-
console.log('currentStepIndex ' + currentStepIndex);
|
|
97906
97902
|
var totalSteps = steps.length;
|
|
97907
97903
|
var allStepsCompleted = currentStepIndex + 1 === totalSteps;
|
|
97908
97904
|
return /*#__PURE__*/React.createElement(StyledStepperContainer, null, /*#__PURE__*/React.createElement(Box$1, {
|
package/dist/index.esm.js
CHANGED
|
@@ -51,15 +51,6 @@ function _objectSpread2(target) {
|
|
|
51
51
|
}
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
|
-
function _typeof$I(obj) {
|
|
55
|
-
"@babel/helpers - typeof";
|
|
56
|
-
|
|
57
|
-
return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
58
|
-
return typeof obj;
|
|
59
|
-
} : function (obj) {
|
|
60
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
61
|
-
}, _typeof$I(obj);
|
|
62
|
-
}
|
|
63
54
|
function _defineProperty$C(obj, key, value) {
|
|
64
55
|
key = _toPropertyKey(key);
|
|
65
56
|
if (key in obj) {
|
|
@@ -73929,8 +73920,9 @@ var StyledSearchBarWrapper = styled$1(Box$1, {
|
|
|
73929
73920
|
})(function (_ref) {
|
|
73930
73921
|
var fluid = _ref.fluid;
|
|
73931
73922
|
return {
|
|
73923
|
+
maxWidth: fluid ? '100%' : '300px',
|
|
73924
|
+
width: '100%',
|
|
73932
73925
|
boxSizing: 'border-box',
|
|
73933
|
-
width: fluid ? '100%' : 'fit-content',
|
|
73934
73926
|
backgroundColor: '#E7EAF3',
|
|
73935
73927
|
position: 'relative',
|
|
73936
73928
|
display: 'flex',
|
|
@@ -74098,7 +74090,7 @@ var SearchBarComponent = function SearchBarComponent(_ref3) {
|
|
|
74098
74090
|
type: "text",
|
|
74099
74091
|
placeholder: placeholder,
|
|
74100
74092
|
"aria-label": "Search",
|
|
74101
|
-
|
|
74093
|
+
tyle: {
|
|
74102
74094
|
margin: 0,
|
|
74103
74095
|
padding: 0,
|
|
74104
74096
|
border: 'none'
|
|
@@ -74106,7 +74098,7 @@ var SearchBarComponent = function SearchBarComponent(_ref3) {
|
|
|
74106
74098
|
}));
|
|
74107
74099
|
};
|
|
74108
74100
|
SearchBarComponent.propTypes = {
|
|
74109
|
-
fluid: propTypesExports.
|
|
74101
|
+
fluid: propTypesExports.bool,
|
|
74110
74102
|
placeholder: propTypesExports.string,
|
|
74111
74103
|
searchText: propTypesExports.string,
|
|
74112
74104
|
onChange: propTypesExports.func,
|
|
@@ -74165,6 +74157,10 @@ var TableToolbar = function TableToolbar(_ref2) {
|
|
|
74165
74157
|
components = _ref2.components,
|
|
74166
74158
|
className = _ref2.className,
|
|
74167
74159
|
onSearch = _ref2.onSearch;
|
|
74160
|
+
var _useState = useState(''),
|
|
74161
|
+
_useState2 = _slicedToArray$a(_useState, 2),
|
|
74162
|
+
textSearch = _useState2[0],
|
|
74163
|
+
setSearchText = _useState2[1];
|
|
74168
74164
|
return /*#__PURE__*/React__default.createElement(StyledTableToolbar, {
|
|
74169
74165
|
className: className
|
|
74170
74166
|
}, selected.length > 0 ? /*#__PURE__*/React__default.createElement(StyledTableToolbarItem, null, selected.length + " " + labelRowsSelected, showRemoveRowsIcon ? /*#__PURE__*/React__default.createElement(IconButtonComponent, {
|
|
@@ -74181,8 +74177,10 @@ var TableToolbar = function TableToolbar(_ref2) {
|
|
|
74181
74177
|
}) : null) : null, components && /*#__PURE__*/React__default.createElement(StyledTableToolbarItem, {
|
|
74182
74178
|
className: "toolbar-components"
|
|
74183
74179
|
}, components), /*#__PURE__*/React__default.createElement(SearchBarComponent, {
|
|
74180
|
+
fluid: false,
|
|
74184
74181
|
onChange: onSearch,
|
|
74185
|
-
|
|
74182
|
+
searchText: textSearch,
|
|
74183
|
+
onChangeSearchText: setSearchText,
|
|
74186
74184
|
placeholder: labelSearchBar,
|
|
74187
74185
|
style: {
|
|
74188
74186
|
marginRight: 0,
|
|
@@ -97880,9 +97878,7 @@ var CustomStepper = function CustomStepper(_ref4) {
|
|
|
97880
97878
|
label = _ref4.label,
|
|
97881
97879
|
withIcon = _ref4.withIcon,
|
|
97882
97880
|
currentStep = _ref4.currentStep;
|
|
97883
|
-
console.log(currentStep + _typeof$I(currentStep));
|
|
97884
97881
|
var currentStepIndex = steps.indexOf(currentStep);
|
|
97885
|
-
console.log('currentStepIndex ' + currentStepIndex);
|
|
97886
97882
|
var totalSteps = steps.length;
|
|
97887
97883
|
var allStepsCompleted = currentStepIndex + 1 === totalSteps;
|
|
97888
97884
|
return /*#__PURE__*/React__default.createElement(StyledStepperContainer, null, /*#__PURE__*/React__default.createElement(Box$1, {
|