react-crud-mobile 1.0.873 → 1.0.875
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/react-crud-mobile.cjs.development.js +18 -14
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +18 -14
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +4 -1
- package/src/elements/core/UISlider.tsx +14 -11
|
@@ -650,16 +650,18 @@ function UISlider(props) {
|
|
|
650
650
|
var step = scope.getPart('step', 1);
|
|
651
651
|
var min = scope.getPart('min', 0);
|
|
652
652
|
var max = scope.getPart('min', 100);
|
|
653
|
-
return /*#__PURE__*/jsxRuntime.
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
653
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
654
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Slider, {
|
|
655
|
+
minimumValue: min,
|
|
656
|
+
maximumValue: max,
|
|
657
|
+
step: step,
|
|
658
|
+
minimumTrackTintColor: "#1EB1FC",
|
|
659
|
+
maximumTrackTintColor: "#d3d3d3",
|
|
660
|
+
thumbTintColor: "#1EB1FC",
|
|
661
|
+
value: value,
|
|
662
|
+
style: scope.getStyle('element'),
|
|
663
|
+
onValueChange: onChange // Alterna o estado
|
|
664
|
+
}), "xxx"]
|
|
663
665
|
});
|
|
664
666
|
}
|
|
665
667
|
|
|
@@ -1736,7 +1738,7 @@ function UIElement(props) {
|
|
|
1736
1738
|
}
|
|
1737
1739
|
var Inner = function Inner() {
|
|
1738
1740
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1739
|
-
children: [scope.is('type', 'button') && /*#__PURE__*/jsxRuntime.jsxs(UIButton, _extends({}, defaultsUI, {
|
|
1741
|
+
children: [scope.getPart('render', null, /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {})), scope.is('type', 'button') && /*#__PURE__*/jsxRuntime.jsxs(UIButton, _extends({}, defaultsUI, {
|
|
1740
1742
|
onClick: onClick,
|
|
1741
1743
|
variant: scope.attr('variant', 'outlined'),
|
|
1742
1744
|
children: [original.icon && /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {}), original.label && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
@@ -1768,9 +1770,11 @@ function UIElement(props) {
|
|
|
1768
1770
|
checked: isChecked()
|
|
1769
1771
|
}, defaultsInput, {
|
|
1770
1772
|
onChange: onCheck
|
|
1771
|
-
})), scope.is('slider') && /*#__PURE__*/jsxRuntime.jsx(
|
|
1772
|
-
|
|
1773
|
-
|
|
1773
|
+
})), scope.is('slider') && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1774
|
+
children: /*#__PURE__*/jsxRuntime.jsx(UISlider, _extends({}, defaultsInput, {
|
|
1775
|
+
onChange: onCheck
|
|
1776
|
+
}))
|
|
1777
|
+
}), scope.is('type', 'select') && /*#__PURE__*/jsxRuntime.jsx(UISelect, _extends({}, defaultsInput, defaultsUI, {
|
|
1774
1778
|
value: scope.getSelectedValue()
|
|
1775
1779
|
})), scope.is('type', 'toggle') && /*#__PURE__*/jsxRuntime.jsx(UIToggle, _extends({}, defaultsInput, defaultsUI, {
|
|
1776
1780
|
value: scope.getSelectedValue()
|