ui-kit-ck-consultant 0.5.146 → 0.5.150
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/css/style.css +3 -0
- package/dist/index.css +7 -1
- package/dist/index.js +139 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +139 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -43,7 +43,7 @@ function _setPrototypeOf(o, p) {
|
|
43
43
|
return _setPrototypeOf(o, p);
|
44
44
|
}
|
45
45
|
|
46
|
-
var style = {"modal":"_Tr9L0","modal_container":"_2YluD","large":"_22C7A","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5"};
|
46
|
+
var style = {"modal":"_Tr9L0","modal_container":"_2YluD","large":"_22C7A","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5","full_modal_body_no_padding":"_Pf5Uh"};
|
47
47
|
|
48
48
|
var Modal = /*#__PURE__*/function (_React$Component) {
|
49
49
|
_inheritsLoose(Modal, _React$Component);
|
@@ -140,10 +140,10 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
140
140
|
onClick: this.props.onClose
|
141
141
|
}, this.props.iconClose ? this.props.iconClose : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
142
142
|
icon: faTimes
|
143
|
-
})), /*#__PURE__*/React.createElement("div", {
|
143
|
+
})), this.props.title ? /*#__PURE__*/React.createElement("div", {
|
144
144
|
className: style.full_modal_header
|
145
|
-
}, /*#__PURE__*/React.createElement("h2", null, this.props.title)), /*#__PURE__*/React.createElement("div", {
|
146
|
-
className: style.full_modal_body
|
145
|
+
}, /*#__PURE__*/React.createElement("h2", null, this.props.title)) : null, /*#__PURE__*/React.createElement("div", {
|
146
|
+
className: this.props.noPadding ? style.full_modal_body_no_padding : style.full_modal_body
|
147
147
|
}, this.props.children)));
|
148
148
|
};
|
149
149
|
|
@@ -382,7 +382,7 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
|
|
382
382
|
}, "*") : '') : '', this.props.ignore !== true ? /*#__PURE__*/React.createElement("select", {
|
383
383
|
className: style$5.form_select,
|
384
384
|
onChange: this.props.onChange,
|
385
|
-
value: this.props.value,
|
385
|
+
value: this.props.value ? this.props.value : "DEFAULT",
|
386
386
|
name: this.props.name,
|
387
387
|
required: this.props.required,
|
388
388
|
disabled: this.props.disabled,
|
@@ -399,7 +399,7 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
|
|
399
399
|
}) : '') : /*#__PURE__*/React.createElement("select", {
|
400
400
|
className: style$5.form_select,
|
401
401
|
onChange: this.props.onChange,
|
402
|
-
value: this.props.value,
|
402
|
+
value: this.props.value ? this.props.value : "DEFAULT",
|
403
403
|
name: this.props.name,
|
404
404
|
required: this.props.required,
|
405
405
|
disabled: this.props.disabled
|
@@ -3702,5 +3702,137 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
3702
3702
|
return Switch;
|
3703
3703
|
}(React.Component);
|
3704
3704
|
|
3705
|
-
|
3705
|
+
var Gauge = /*#__PURE__*/function (_React$Component) {
|
3706
|
+
_inheritsLoose(Gauge, _React$Component);
|
3707
|
+
|
3708
|
+
function Gauge(props) {
|
3709
|
+
var _this;
|
3710
|
+
|
3711
|
+
_this = _React$Component.call(this, props) || this;
|
3712
|
+
_this.state = {
|
3713
|
+
position: 0
|
3714
|
+
};
|
3715
|
+
return _this;
|
3716
|
+
}
|
3717
|
+
|
3718
|
+
var _proto = Gauge.prototype;
|
3719
|
+
|
3720
|
+
_proto.componentDidMount = function componentDidMount() {
|
3721
|
+
if (this.props.position) {
|
3722
|
+
this.setState({
|
3723
|
+
position: this.props.position
|
3724
|
+
});
|
3725
|
+
}
|
3726
|
+
};
|
3727
|
+
|
3728
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3729
|
+
if (prevProps.position !== this.props.position && this.props.position !== this.state.position) {
|
3730
|
+
this.setState({
|
3731
|
+
position: this.props.position
|
3732
|
+
});
|
3733
|
+
}
|
3734
|
+
};
|
3735
|
+
|
3736
|
+
_proto.render = function render() {
|
3737
|
+
var _this2 = this;
|
3738
|
+
|
3739
|
+
return /*#__PURE__*/React.createElement("div", {
|
3740
|
+
className: this.props.className
|
3741
|
+
}, /*#__PURE__*/React.createElement("span", {
|
3742
|
+
style: {
|
3743
|
+
display: 'inline-block',
|
3744
|
+
fontSize: '14px',
|
3745
|
+
fontWeight: 'bold',
|
3746
|
+
color: 'var(--black)',
|
3747
|
+
marginBottom: '16px'
|
3748
|
+
}
|
3749
|
+
}, this.props.title), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
3750
|
+
style: {
|
3751
|
+
position: 'relative',
|
3752
|
+
width: '100%',
|
3753
|
+
height: '22px',
|
3754
|
+
backgroundImage: this.props.colors.length === 3 ? "linear-gradient(to right, " + this.props.colors[0] + " 0%, " + this.props.colors[1] + " 50%, " + this.props.colors[2] + " 100%)" : "linear-gradient(to right, " + this.props.colors[0] + ", " + this.props.colors[1] + ")",
|
3755
|
+
borderRadius: '8px'
|
3756
|
+
},
|
3757
|
+
onClick: function onClick(e) {
|
3758
|
+
var currentTargetRect = e.currentTarget.getBoundingClientRect();
|
3759
|
+
var width = currentTargetRect.width;
|
3760
|
+
var positionX = e.pageX - currentTargetRect.left;
|
3761
|
+
|
3762
|
+
_this2.setState({
|
3763
|
+
position: positionX * 100 / width
|
3764
|
+
}, function () {
|
3765
|
+
return _this2.props.onChange ? _this2.props.onChange(_this2.state.position) : null;
|
3766
|
+
});
|
3767
|
+
}
|
3768
|
+
}, this.props.min ? /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("span", {
|
3769
|
+
style: {
|
3770
|
+
position: 'absolute',
|
3771
|
+
left: this.props.min + '%',
|
3772
|
+
transform: 'translateX(-50%)',
|
3773
|
+
textAlign: 'center',
|
3774
|
+
top: '-18px',
|
3775
|
+
fontSize: '10px'
|
3776
|
+
}
|
3777
|
+
}, "MIN"), /*#__PURE__*/React.createElement("div", {
|
3778
|
+
style: {
|
3779
|
+
position: 'absolute',
|
3780
|
+
width: '4px',
|
3781
|
+
height: '28px',
|
3782
|
+
borderRadius: '4px',
|
3783
|
+
top: '-3px',
|
3784
|
+
backgroundColor: 'black',
|
3785
|
+
left: this.props.min + '%',
|
3786
|
+
transform: 'translateX(-50%)'
|
3787
|
+
}
|
3788
|
+
})) : null, this.props.max ? /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("span", {
|
3789
|
+
style: {
|
3790
|
+
position: 'absolute',
|
3791
|
+
left: this.props.max + '%',
|
3792
|
+
transform: 'translateX(-50%)',
|
3793
|
+
textAlign: 'center',
|
3794
|
+
top: '-18px',
|
3795
|
+
fontSize: '10px'
|
3796
|
+
}
|
3797
|
+
}, "MAX"), /*#__PURE__*/React.createElement("div", {
|
3798
|
+
style: {
|
3799
|
+
position: 'absolute',
|
3800
|
+
width: '4px',
|
3801
|
+
height: '28px',
|
3802
|
+
borderRadius: '4px',
|
3803
|
+
top: '-3px',
|
3804
|
+
backgroundColor: 'black',
|
3805
|
+
left: this.props.max + '%',
|
3806
|
+
transform: 'translateX(-50%)'
|
3807
|
+
}
|
3808
|
+
})) : null, /*#__PURE__*/React.createElement("span", {
|
3809
|
+
style: {
|
3810
|
+
position: 'absolute',
|
3811
|
+
left: this.state.position + '%',
|
3812
|
+
transform: 'translateX(-50%)',
|
3813
|
+
textAlign: 'center',
|
3814
|
+
top: '-16px',
|
3815
|
+
fontSize: '10px',
|
3816
|
+
fontWeight: 'bold'
|
3817
|
+
}
|
3818
|
+
}, parseInt(this.state.position), "%"), /*#__PURE__*/React.createElement("div", {
|
3819
|
+
className: "cursor-pointer",
|
3820
|
+
style: {
|
3821
|
+
position: 'absolute',
|
3822
|
+
bottom: '-6px',
|
3823
|
+
width: 0,
|
3824
|
+
height: 0,
|
3825
|
+
borderLeft: '10px solid transparent',
|
3826
|
+
borderRight: '10px solid transparent',
|
3827
|
+
borderBottom: '18px solid black',
|
3828
|
+
transform: 'translateX(-50%)',
|
3829
|
+
left: this.state.position + '%'
|
3830
|
+
}
|
3831
|
+
}))));
|
3832
|
+
};
|
3833
|
+
|
3834
|
+
return Gauge;
|
3835
|
+
}(React.Component);
|
3836
|
+
|
3837
|
+
export { Alert, AlertContainer, AlertElement, BarChart, Button, ButtonIcon, Card, CardColor, CardStatistics, CardTabs, Chips, Cookie, DoughnutChart, Dropdown, Dropzone, DropzoneMultiple, Error404, FloatActionButton, FloatActionButtonItem, Footer, FormCheckbox, FormInput, FormRadio, FormRange, FormSelect, FormTextarea, FullModal, Gauge, Header, HorizontalBarChart, Icon, ListingHorizontal, ListingVertical, Loader, Modal, Nav, Pagination, PaginationClass, PieChart, ProgressBar, RadarChart, Sidebar, Signature, Slider, Status, Switch, Table, Tabs, TabsBody, TabsCustom, TabsCustomArrowCustom as TabsCustomArrow, TabsCustomArrowBody, TabsCustomArrowHeader, TabsCustomArrowItem, TabsCustomArrowMenu, TabsCustomBody, TabsCustomHeader, TabsCustomItem, TabsCustomMenu, TabsHeader, TabsItem, TabsMenu, Tbody, Td, Th, Thead, Tr };
|
3706
3838
|
//# sourceMappingURL=index.modern.js.map
|