@steroidsjs/bootstrap 2.1.0-beta.2 → 2.1.0-beta.7
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/README.md +7 -0
- package/content/Alert/AlertView.d.ts +3 -0
- package/content/Alert/AlertView.js +33 -0
- package/content/Alert/AlertView.scss +120 -0
- package/content/Avatar/AvatarGroupView.d.ts +0 -1
- package/content/Avatar/AvatarGroupView.js +20 -21
- package/content/Avatar/AvatarGroupView.scss +5 -1
- package/content/Avatar/AvatarView.d.ts +0 -1
- package/content/Avatar/AvatarView.js +14 -47
- package/content/Avatar/AvatarView.scss +93 -34
- package/content/Calendar/CalendarView.d.ts +0 -1
- package/content/Calendar/CalendarView.js +0 -1
- package/content/Calendar/CalendarView.scss +24 -24
- package/content/Calendar/CaptionElement.d.ts +0 -1
- package/content/Calendar/CaptionElement.js +2 -3
- package/content/Calendar/CaptionElement.scss +22 -17
- package/content/Card/CardView.d.ts +0 -1
- package/content/Card/CardView.js +15 -12
- package/content/Card/CardView.scss +138 -26
- package/content/Collapse/CollapseItemView.d.ts +3 -0
- package/content/Collapse/CollapseItemView.js +60 -0
- package/content/Collapse/CollapseItemView.scss +88 -0
- package/content/Collapse/CollapseView.d.ts +3 -0
- package/content/Collapse/CollapseView.js +28 -0
- package/content/Collapse/CollapseView.scss +15 -0
- package/content/Detail/DetailView.d.ts +3 -0
- package/content/Detail/DetailView.js +37 -0
- package/content/Detail/DetailView.scss +66 -0
- package/content/DropDown/DropDownView.scss +1 -2
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.js +1 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +31 -20
- package/form/Button/ButtonView.js +15 -11
- package/form/Button/ButtonView.scss +63 -2
- package/form/CheckboxField/CheckboxFieldView.js +1 -1
- package/form/CheckboxField/CheckboxFieldView.scss +40 -6
- package/form/CheckboxListField/CheckboxListFieldView.js +4 -5
- package/form/CheckboxListField/CheckboxListFieldView.scss +45 -1
- package/form/DateField/DateFieldView.d.ts +0 -1
- package/form/DateField/DateFieldView.js +1 -1
- package/form/DateField/DateFieldView.scss +8 -9
- package/form/DateRangeField/DateRangeFieldView.d.ts +0 -1
- package/form/DateRangeField/DateRangeFieldView.js +0 -1
- package/form/DateRangeField/DateRangeFieldView.scss +8 -9
- package/form/DateTimeField/DateTimeFieldView.js +4 -1
- package/form/DateTimeField/DateTimeFieldView.scss +11 -11
- package/form/DateTimeRangeField/DateTimeRangeFieldView.d.ts +0 -1
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +0 -1
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +10 -10
- package/form/DropDownField/DropDownFieldView.js +1 -1
- package/form/DropDownField/DropDownFieldView.scss +28 -18
- package/form/FileField/FileFieldView.js +1 -1
- package/form/Form/FormView.js +4 -1
- package/form/Form/FormView.scss +16 -2
- package/form/HtmlField/HtmlFieldView.d.ts +4 -0
- package/form/HtmlField/HtmlFieldView.js +37 -0
- package/form/ImageField/ImageFieldModalView.d.ts +4 -0
- package/form/ImageField/ImageFieldModalView.js +55 -0
- package/form/ImageField/ImageFieldModalView.scss +7 -0
- package/form/ImageField/ImageFieldView.d.ts +3 -0
- package/form/ImageField/ImageFieldView.js +43 -0
- package/form/ImageField/ImageFieldView.scss +108 -0
- package/form/InputField/InputFieldView.js +8 -3
- package/form/InputField/InputFieldView.scss +77 -14
- package/form/NumberField/NumberFieldView.js +2 -2
- package/form/NumberField/NumberFieldView.scss +30 -12
- package/form/PasswordField/PasswordFieldView.scss +5 -5
- package/form/RateField/RateFieldView.d.ts +0 -1
- package/form/RateField/RateFieldView.js +0 -1
- package/form/RateField/RateFieldView.scss +5 -5
- package/form/SliderField/SliderFieldView.js +29 -9
- package/form/SliderField/SliderFieldView.scss +39 -20
- package/form/TextField/TextFieldView.scss +3 -2
- package/form/TimeField/TimeFieldView.d.ts +0 -1
- package/form/TimeField/TimeFieldView.js +0 -1
- package/form/TimeField/TimeFieldView.scss +8 -9
- package/form/TimeField/TimePanelView.d.ts +0 -1
- package/form/TimeField/TimePanelView.js +0 -1
- package/form/TimeField/TimePanelView.scss +11 -11
- package/icon/Icon/IconView.d.ts +0 -1
- package/icon/Icon/IconView.js +0 -1
- package/icon/Icon/IconView.scss +6 -6
- package/icon/fontawesome.js +5 -1
- package/index.d.ts +33 -0
- package/index.js +217 -67
- package/index.scss +22 -2
- package/layout/ProgressBar/CircleProgressBarView.d.ts +4 -0
- package/layout/ProgressBar/CircleProgressBarView.js +40 -0
- package/layout/ProgressBar/CircleProgressBarView.scss +150 -0
- package/layout/ProgressBar/LineProgressBarView.d.ts +4 -0
- package/layout/ProgressBar/LineProgressBarView.js +31 -0
- package/layout/ProgressBar/LineProgressBarView.scss +115 -0
- package/layout/Skeleton/SkeletonView.d.ts +3 -0
- package/layout/Skeleton/SkeletonView.js +31 -0
- package/layout/Skeleton/SkeletonView.scss +71 -0
- package/list/List/ListView.js +3 -0
- package/list/Steps/StepItemView.d.ts +3 -0
- package/list/Steps/StepItemView.js +41 -0
- package/list/Steps/StepItemView.scss +144 -0
- package/list/Steps/StepsView.d.ts +3 -0
- package/list/Steps/StepsView.js +28 -0
- package/list/Steps/StepsView.scss +16 -0
- package/modal/Modal/ModalView.js +13 -14
- package/modal/Modal/ModalView.scss +34 -30
- package/nav/Breadcrubms/BreadcrumbsView.js +4 -4
- package/nav/Breadcrubms/BreadcrumbsView.scss +14 -0
- package/nav/Controls/ControlsView.scss +1 -1
- package/nav/Nav/NavButtonView.js +1 -1
- package/nav/Nav/NavIconView.js +1 -1
- package/package.json +4 -3
- package/scss/mixins/button.scss +33 -0
- package/scss/mixins/card.scss +26 -0
- package/scss/mixins/index.scss +2 -0
- package/scss/variables/colors.scss +74 -0
- package/scss/variables/components/alert.scss +9 -0
- package/scss/variables/components/avatar.scss +17 -0
- package/scss/variables/components/button.scss +14 -0
- package/scss/variables/components/calendar.scss +15 -0
- package/scss/variables/components/card.scss +20 -0
- package/scss/variables/components/icon.scss +3 -0
- package/scss/variables/components/input.scss +11 -0
- package/scss/variables/components/ratefield.scss +2 -0
- package/scss/variables/index.scss +9 -0
- package/list/Accordion/AccordionView.scss +0 -10
- package/list/Detail/DetailView.scss +0 -5
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
.NumberFieldView {
|
|
2
2
|
display: flex;
|
|
3
|
+
overflow: hidden;
|
|
3
4
|
flex-flow: row nowrap;
|
|
4
5
|
align-items: stretch;
|
|
5
6
|
padding: 0;
|
|
7
|
+
border: $input-border;
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
border-color: $border-hover;
|
|
11
|
+
}
|
|
12
|
+
&:active {
|
|
13
|
+
border-color: $border-action;
|
|
14
|
+
box-shadow: 0 0 0 4px $border-typing;
|
|
15
|
+
}
|
|
6
16
|
|
|
7
17
|
&_disabled {
|
|
8
18
|
color: rgba(0, 0, 0, .25);
|
|
9
|
-
background-color:
|
|
19
|
+
background-color: $back-disabled;
|
|
20
|
+
border: unset;
|
|
10
21
|
cursor: not-allowed;
|
|
11
22
|
|
|
23
|
+
&:active, &:hover {
|
|
24
|
+
border: unset;
|
|
25
|
+
box-shadow: unset;
|
|
26
|
+
}
|
|
27
|
+
|
|
12
28
|
input {
|
|
13
29
|
cursor: inherit;
|
|
14
30
|
}
|
|
@@ -32,13 +48,16 @@
|
|
|
32
48
|
border: none;
|
|
33
49
|
outline: none;
|
|
34
50
|
background-color: transparent;
|
|
51
|
+
color: $heading;
|
|
35
52
|
|
|
53
|
+
width: inherit;
|
|
36
54
|
padding: $input-padding-y $input-padding-x;
|
|
37
55
|
}
|
|
38
56
|
|
|
39
57
|
&__arrows-container{
|
|
40
58
|
display: flex;
|
|
41
59
|
flex-flow: column;
|
|
60
|
+
grid-gap: 2px;
|
|
42
61
|
font-size: .6em;
|
|
43
62
|
|
|
44
63
|
opacity: 0;
|
|
@@ -59,13 +78,17 @@
|
|
|
59
78
|
align-items: center;
|
|
60
79
|
justify-content: center;
|
|
61
80
|
|
|
62
|
-
&:nth-child(1){
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
81
|
+
&:nth-child(1), &:nth-child(2) {
|
|
82
|
+
background-color: $grey-lighter;
|
|
83
|
+
&:active, &:hover {
|
|
84
|
+
background-color: $border-default;
|
|
85
|
+
fill: $white;
|
|
86
|
+
svg {
|
|
87
|
+
fill: $white;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
68
90
|
}
|
|
91
|
+
|
|
69
92
|
&_disabled{
|
|
70
93
|
cursor: not-allowed;
|
|
71
94
|
}
|
|
@@ -74,11 +97,6 @@
|
|
|
74
97
|
transition: fill .1s;
|
|
75
98
|
}
|
|
76
99
|
|
|
77
|
-
&:hover{
|
|
78
|
-
svg{
|
|
79
|
-
fill: #4a90e2;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
100
|
}
|
|
83
101
|
}
|
|
84
102
|
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
&:focus-within{
|
|
11
11
|
outline: 0;
|
|
12
|
-
border-color: $
|
|
13
|
-
box-shadow: 0 0 0 0.2rem
|
|
12
|
+
border-color: $border-action;
|
|
13
|
+
box-shadow: 0 0 0 0.2rem $border-typing;
|
|
14
14
|
}
|
|
15
15
|
&.is-invalid:focus-within{
|
|
16
|
-
border-color: $
|
|
17
|
-
box-shadow: 0 0 0 0.2rem
|
|
16
|
+
border-color: $border-error;
|
|
17
|
+
box-shadow: 0 0 0 0.2rem $back-error;
|
|
18
18
|
}
|
|
19
19
|
&_disabled {
|
|
20
20
|
color: rgba(0, 0, 0, .25);
|
|
21
|
-
background-color:
|
|
21
|
+
background-color: $back-disabled;
|
|
22
22
|
cursor: not-allowed;
|
|
23
23
|
input {
|
|
24
24
|
cursor: inherit;
|
|
@@ -25,7 +25,6 @@ exports.__esModule = true;
|
|
|
25
25
|
var React = __importStar(require("react"));
|
|
26
26
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
27
27
|
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/icon/Icon"));
|
|
28
|
-
require("./RateFieldView.scss");
|
|
29
28
|
function RateFieldView(props) {
|
|
30
29
|
var bem = hooks_1.useBem('RateFieldView');
|
|
31
30
|
return (React.createElement("div", { className: bem(bem.block(), props.className) }, props.items.map(function (item, index) { return (React.createElement("div", { key: index, className: bem.element('rate-item', {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
#{$root}__rate-icon {
|
|
24
24
|
path {
|
|
25
|
-
fill:
|
|
25
|
+
fill: $icon-color;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
|
|
32
32
|
&__rate-value-first, &__rate-value-second {
|
|
33
33
|
display: inline-block;
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
34
|
+
width: $icon-size;
|
|
35
|
+
height: $icon-size;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&__rate-value-second {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
|
|
45
45
|
&__rate-icon {
|
|
46
46
|
&.IconView svg {
|
|
47
|
-
width:
|
|
47
|
+
width: $icon-size;
|
|
48
48
|
|
|
49
49
|
path {
|
|
50
|
-
fill:
|
|
50
|
+
fill: $back-disabled;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -29,19 +29,39 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
29
29
|
__setModuleDefault(result, mod);
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
-
};
|
|
35
32
|
exports.__esModule = true;
|
|
36
33
|
var React = __importStar(require("react"));
|
|
37
|
-
var rc_slider_1 = __importDefault(require("rc-slider"));
|
|
38
34
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
35
|
+
var rc_slider_1 = __importStar(require("rc-slider"));
|
|
36
|
+
var createRangeWithTooltip = rc_slider_1["default"].createSliderWithTooltip;
|
|
37
|
+
var createSliderWithTooltip = rc_slider_1["default"].createSliderWithTooltip;
|
|
38
|
+
var RangeComponent = createRangeWithTooltip(rc_slider_1.Range);
|
|
39
|
+
var SliderComponent = createSliderWithTooltip(rc_slider_1["default"]);
|
|
39
40
|
function SliderFieldView(props) {
|
|
40
41
|
var bem = hooks_1.useBem('SliderFieldView');
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
var handle = function (prevProps) {
|
|
43
|
+
var value = prevProps.value;
|
|
44
|
+
return (React.createElement(rc_slider_1.SliderTooltip, { prefixCls: 'rc-slider-tooltip', placement: 'top', overlay: "" + value },
|
|
45
|
+
React.createElement(rc_slider_1.Handle, { value: value })));
|
|
46
|
+
};
|
|
47
|
+
var commonProps = {
|
|
48
|
+
slider: props.slider,
|
|
49
|
+
className: props.className,
|
|
50
|
+
min: props.min,
|
|
51
|
+
max: props.max,
|
|
52
|
+
step: props.step,
|
|
53
|
+
marks: props.marks,
|
|
54
|
+
onChange: props.onChange,
|
|
55
|
+
onAfterChange: props.onAfterChange,
|
|
56
|
+
defaultValue: props.defaultValue
|
|
57
|
+
? props.defaultValue
|
|
58
|
+
: (props.isRange ? props.rangeDefaultValue : props.sliderDefaultValue),
|
|
59
|
+
disabled: props.disabled,
|
|
60
|
+
tipFormatter: function (value) { return "" + (value + props.valuePostfix); },
|
|
61
|
+
handle: handle
|
|
62
|
+
};
|
|
63
|
+
var RangeField = (React.createElement(RangeComponent, __assign({}, commonProps, { draggableTrack: true, areaDisabled: true, pushable: true })));
|
|
64
|
+
var SliderField = (React.createElement(SliderComponent, __assign({}, commonProps)));
|
|
65
|
+
return (React.createElement("div", { className: bem(bem.block(), props.className) }, props.isRange ? RangeField : SliderField));
|
|
46
66
|
}
|
|
47
67
|
exports["default"] = SliderFieldView;
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
.SliderFieldView {
|
|
2
|
+
$root: &;
|
|
3
|
+
|
|
4
|
+
&_hidden {
|
|
5
|
+
display: unset;
|
|
6
|
+
}
|
|
2
7
|
|
|
3
8
|
.rc-slider {
|
|
4
9
|
position: relative;
|
|
5
10
|
height: 6px;
|
|
6
11
|
width: 100%;
|
|
7
12
|
border-radius: 6px;
|
|
8
|
-
background-color:
|
|
13
|
+
background-color: $primary-light;
|
|
9
14
|
box-sizing: border-box;
|
|
10
15
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
11
16
|
}
|
|
17
|
+
.rc-slider-rail {
|
|
18
|
+
background-color: $primary;
|
|
19
|
+
}
|
|
20
|
+
|
|
12
21
|
.rc-slider * {
|
|
13
22
|
box-sizing: border-box;
|
|
14
23
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -18,27 +27,29 @@
|
|
|
18
27
|
left: 0;
|
|
19
28
|
height: 6px;
|
|
20
29
|
border-radius: 6px;
|
|
21
|
-
background-color: $primary;
|
|
30
|
+
background-color: rgba($primary, .7);
|
|
22
31
|
z-index: 1;
|
|
23
32
|
}
|
|
24
33
|
.rc-slider-handle {
|
|
25
34
|
position: absolute;
|
|
26
|
-
margin-left:
|
|
35
|
+
margin-left: 0;
|
|
27
36
|
margin-top: -8px;
|
|
28
37
|
width: 20px;
|
|
29
38
|
height: 20px;
|
|
30
39
|
cursor: pointer;
|
|
31
40
|
border-radius: 50%;
|
|
32
|
-
|
|
33
|
-
|
|
41
|
+
background-color: $primary;
|
|
42
|
+
box-shadow: $primary-dark 0 0 5px;
|
|
34
43
|
z-index: 2;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
transition: box-shadow 300ms;
|
|
45
|
+
outline: none;
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
box-shadow: 0 0 0 10px rgba($primary-light, .3);
|
|
49
|
+
}
|
|
50
|
+
&:active {
|
|
51
|
+
box-shadow: 0 0 0 15px rgba($primary, .3);
|
|
52
|
+
}
|
|
42
53
|
}
|
|
43
54
|
.rc-slider-mark {
|
|
44
55
|
position: absolute;
|
|
@@ -89,6 +100,11 @@
|
|
|
89
100
|
}
|
|
90
101
|
.rc-slider-disabled {
|
|
91
102
|
background-color: #e9e9e9;
|
|
103
|
+
|
|
104
|
+
.rc-slider-handle, .rc-slider-dot {
|
|
105
|
+
box-shadow: 0 0 4px $border-default;
|
|
106
|
+
background-color: #ccc;
|
|
107
|
+
}
|
|
92
108
|
}
|
|
93
109
|
.rc-slider-disabled .rc-slider-track {
|
|
94
110
|
background-color: #ccc;
|
|
@@ -238,7 +254,10 @@
|
|
|
238
254
|
transform: scale(0, 0);
|
|
239
255
|
}
|
|
240
256
|
}
|
|
241
|
-
.rc-tooltip {
|
|
257
|
+
.rc-slider-tooltip {
|
|
258
|
+
display: inline-block;
|
|
259
|
+
}
|
|
260
|
+
.rc-slider-tooltip {
|
|
242
261
|
position: absolute;
|
|
243
262
|
left: -9999px;
|
|
244
263
|
top: -9999px;
|
|
@@ -247,17 +266,17 @@
|
|
|
247
266
|
box-sizing: border-box;
|
|
248
267
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
249
268
|
}
|
|
250
|
-
.rc-tooltip * {
|
|
269
|
+
.rc-slider-tooltip * {
|
|
251
270
|
box-sizing: border-box;
|
|
252
271
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
253
272
|
}
|
|
254
|
-
.rc-tooltip-hidden {
|
|
273
|
+
.rc-slider-tooltip-hidden {
|
|
255
274
|
display: none;
|
|
256
275
|
}
|
|
257
|
-
.rc-tooltip-placement-top {
|
|
276
|
+
.rc-slider-tooltip-placement-top {
|
|
258
277
|
padding: 4px 0 8px 0;
|
|
259
278
|
}
|
|
260
|
-
.rc-tooltip-inner {
|
|
279
|
+
.rc-slider-tooltip-inner {
|
|
261
280
|
padding: 6px 2px;
|
|
262
281
|
min-width: 24px;
|
|
263
282
|
height: 24px;
|
|
@@ -270,18 +289,18 @@
|
|
|
270
289
|
border-radius: 6px;
|
|
271
290
|
box-shadow: 0 0 4px #d9d9d9;
|
|
272
291
|
}
|
|
273
|
-
.rc-tooltip-arrow {
|
|
292
|
+
.rc-slider-tooltip-arrow {
|
|
274
293
|
position: absolute;
|
|
275
294
|
width: 0;
|
|
276
295
|
height: 0;
|
|
277
296
|
border-color: transparent;
|
|
278
297
|
border-style: solid;
|
|
279
298
|
}
|
|
280
|
-
.rc-tooltip-placement-top .rc-tooltip-arrow {
|
|
299
|
+
.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {
|
|
281
300
|
bottom: 4px;
|
|
282
301
|
left: 50%;
|
|
283
302
|
margin-left: -4px;
|
|
284
303
|
border-width: 4px 4px 0;
|
|
285
304
|
border-top-color: #6c6c6c;
|
|
286
305
|
}
|
|
287
|
-
}
|
|
306
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
3
3
|
import { ITimeFieldViewProps } from '@steroidsjs/core/ui/form/TimeField/TimeField';
|
|
4
|
-
import './TimeFieldView.scss';
|
|
5
4
|
export default function TimeFieldView(props: ITimeFieldViewProps & IBemHocOutput): JSX.Element;
|
|
@@ -39,7 +39,6 @@ var hooks_1 = require("@steroidsjs/core/hooks");
|
|
|
39
39
|
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/icon/Icon"));
|
|
40
40
|
var DropDown_1 = __importDefault(require("@steroidsjs/core/ui/content/DropDown"));
|
|
41
41
|
var TimePanelView_1 = __importDefault(require("./TimePanelView"));
|
|
42
|
-
require("./TimeFieldView.scss");
|
|
43
42
|
function TimeFieldView(props) {
|
|
44
43
|
var bem = hooks_1.useBem('TimeFieldView');
|
|
45
44
|
var renderContent = react_1.useCallback(function () { return (React.createElement(TimePanelView_1["default"], __assign({}, props.timePanelViewProps))); }, [props.timePanelViewProps]);
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
padding: 0 8px;
|
|
6
6
|
position: relative;
|
|
7
7
|
|
|
8
|
-
background-color:
|
|
9
|
-
border: 1px solid
|
|
8
|
+
background-color: $white;
|
|
9
|
+
border: 1px solid $border-default;
|
|
10
10
|
border-radius: 4px;
|
|
11
11
|
|
|
12
12
|
&:focus-within{
|
|
13
13
|
outline: 0;
|
|
14
|
-
border-color:
|
|
15
|
-
box-shadow: 0 0 0 1px
|
|
14
|
+
border-color: $border-action;
|
|
15
|
+
box-shadow: 0 0 0 1px $border-typing;
|
|
16
16
|
}
|
|
17
17
|
*:focus {
|
|
18
18
|
outline: none;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
&_disabled {
|
|
22
22
|
color: rgba(0, 0, 0, .25);
|
|
23
|
-
background-color:
|
|
23
|
+
background-color: $back-disabled;
|
|
24
24
|
cursor: not-allowed;
|
|
25
25
|
input {
|
|
26
26
|
cursor: inherit;
|
|
@@ -61,21 +61,20 @@
|
|
|
61
61
|
display: flex;
|
|
62
62
|
|
|
63
63
|
path {
|
|
64
|
-
fill:
|
|
64
|
+
fill: $border-default;
|
|
65
65
|
transition: fill .1s ease-in;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&_close{
|
|
69
69
|
position: absolute;
|
|
70
|
-
background-color:
|
|
70
|
+
background-color: $white;
|
|
71
71
|
|
|
72
72
|
opacity: 0;
|
|
73
73
|
transition: opacity .2s ease-in;
|
|
74
74
|
|
|
75
75
|
&:hover {
|
|
76
76
|
path {
|
|
77
|
-
fill:
|
|
78
|
-
|
|
77
|
+
fill: $border-default;
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ITimePanelViewProps } from '@steroidsjs/core/ui/form/TimeField/TimeField';
|
|
3
|
-
import './TimePanelView.scss';
|
|
4
3
|
declare function TimePanelView(props: ITimePanelViewProps): JSX.Element;
|
|
5
4
|
declare namespace TimePanelView {
|
|
6
5
|
var defaultProps: {
|
|
@@ -25,7 +25,6 @@ exports.__esModule = true;
|
|
|
25
25
|
var React = __importStar(require("react"));
|
|
26
26
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
27
27
|
var padStart_1 = __importDefault(require("lodash-es/padStart"));
|
|
28
|
-
require("./TimePanelView.scss");
|
|
29
28
|
var getHours = function () {
|
|
30
29
|
var result = [];
|
|
31
30
|
for (var i = 0; i < 24; i += 1) {
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
11
11
|
|
|
12
|
-
border-left: 1px solid
|
|
13
|
-
border-bottom: 1px solid
|
|
12
|
+
border-left: 1px solid $border-default;
|
|
13
|
+
border-bottom: 1px solid $border-default;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&__body {
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-flow: row nowrap;
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: $input-border-radius;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&__column {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
padding: 0;
|
|
27
27
|
margin: 0;
|
|
28
28
|
|
|
29
|
-
border-bottom: 1px solid
|
|
29
|
+
border-bottom: 1px solid $border-default;
|
|
30
30
|
&:not(:last-child) {
|
|
31
|
-
border-right: 1px solid
|
|
31
|
+
border-right: 1px solid $border-default;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
|
|
39
39
|
&_selected {
|
|
40
|
-
background-color:
|
|
40
|
+
background-color: $primary-light;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
transition: background-color .1s ease-in;
|
|
44
44
|
&:hover {
|
|
45
|
-
background-color:
|
|
45
|
+
background-color: $back-disabled;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -61,23 +61,23 @@
|
|
|
61
61
|
border: none;
|
|
62
62
|
|
|
63
63
|
&_now {
|
|
64
|
-
color:
|
|
64
|
+
color: $primary;
|
|
65
65
|
background-color: unset;
|
|
66
66
|
|
|
67
67
|
transition: color .1s ease-in;
|
|
68
68
|
&:hover {
|
|
69
|
-
color:
|
|
69
|
+
color: $primary-dark;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&_ok {
|
|
74
74
|
color: #fff;
|
|
75
75
|
border-radius: 4px;
|
|
76
|
-
background-color:
|
|
76
|
+
background-color: $primary;
|
|
77
77
|
|
|
78
78
|
transition: background-color .1s ease-in;
|
|
79
79
|
&:hover {
|
|
80
|
-
background-color:
|
|
80
|
+
background-color: $primary-dark;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
package/icon/Icon/IconView.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import './IconView.scss';
|
|
3
2
|
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
4
3
|
import { IIconViewProps } from '@steroidsjs/core/ui/icon/Icon/Icon';
|
|
5
4
|
export default function IconView(props: IIconViewProps & IBemHocOutput): JSX.Element;
|
package/icon/Icon/IconView.js
CHANGED
|
@@ -20,7 +20,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
20
|
};
|
|
21
21
|
exports.__esModule = true;
|
|
22
22
|
var React = __importStar(require("react"));
|
|
23
|
-
require("./IconView.scss");
|
|
24
23
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
25
24
|
function IconView(props) {
|
|
26
25
|
var bem = hooks_1.useBem('IconView');
|
package/icon/Icon/IconView.scss
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
.IconView {
|
|
2
2
|
svg {
|
|
3
|
-
width:
|
|
3
|
+
width: $icon-size;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
&_size_sm svg {
|
|
7
|
-
width:
|
|
7
|
+
width: $icon-size-sm;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&_size_lg svg {
|
|
11
|
-
width:
|
|
11
|
+
width: $icon-size-lg;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
img.IconView {
|
|
16
|
-
width:
|
|
16
|
+
width: $icon-size;
|
|
17
17
|
|
|
18
18
|
&_size_sm {
|
|
19
|
-
width:
|
|
19
|
+
width: $icon-size-sm;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&_size_lg {
|
|
23
|
-
width:
|
|
23
|
+
width: $icon-size-lg;
|
|
24
24
|
}
|
|
25
25
|
}
|
package/icon/fontawesome.js
CHANGED
|
@@ -238,7 +238,11 @@ exports["default"] = (function () {
|
|
|
238
238
|
reject: 'times-circle',
|
|
239
239
|
back: 'arrow-left',
|
|
240
240
|
securityEye: 'eye',
|
|
241
|
-
securityEyeSlash: 'eye-slash'
|
|
241
|
+
securityEyeSlash: 'eye-slash',
|
|
242
|
+
success: 'check-circle',
|
|
243
|
+
info: 'info-circle',
|
|
244
|
+
warning: 'exclamation-circle',
|
|
245
|
+
error: 'times-circle'
|
|
242
246
|
};
|
|
243
247
|
Object.keys(coreIconsMap).forEach(function (name) {
|
|
244
248
|
icons[name] = icons[coreIconsMap[name]];
|
package/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ declare const _default: {
|
|
|
5
5
|
'content.DropDownView': {
|
|
6
6
|
lazy: () => any;
|
|
7
7
|
};
|
|
8
|
+
'content.AlertView': {
|
|
9
|
+
lazy: () => any;
|
|
10
|
+
};
|
|
8
11
|
'content.AvatarView': {
|
|
9
12
|
lazy: () => any;
|
|
10
13
|
};
|
|
@@ -14,6 +17,9 @@ declare const _default: {
|
|
|
14
17
|
'content.CalendarView': {
|
|
15
18
|
lazy: () => any;
|
|
16
19
|
};
|
|
20
|
+
'content.DetailView': {
|
|
21
|
+
lazy: () => any;
|
|
22
|
+
};
|
|
17
23
|
'form.AutoCompleteFieldView': {
|
|
18
24
|
lazy: () => any;
|
|
19
25
|
};
|
|
@@ -23,6 +29,12 @@ declare const _default: {
|
|
|
23
29
|
'content.CardView': {
|
|
24
30
|
lazy: () => any;
|
|
25
31
|
};
|
|
32
|
+
'content.CollapseView': {
|
|
33
|
+
lazy: () => any;
|
|
34
|
+
};
|
|
35
|
+
'content.CollapseItemView': {
|
|
36
|
+
lazy: () => any;
|
|
37
|
+
};
|
|
26
38
|
'form.CheckboxFieldView': {
|
|
27
39
|
lazy: () => any;
|
|
28
40
|
};
|
|
@@ -68,6 +80,12 @@ declare const _default: {
|
|
|
68
80
|
'form.HtmlFieldView': {
|
|
69
81
|
lazy: () => any;
|
|
70
82
|
};
|
|
83
|
+
'form.ImageFieldView': {
|
|
84
|
+
lazy: () => any;
|
|
85
|
+
};
|
|
86
|
+
'form.ImageFieldModalView': {
|
|
87
|
+
lazy: () => any;
|
|
88
|
+
};
|
|
71
89
|
'form.InputFieldView': {
|
|
72
90
|
lazy: () => any;
|
|
73
91
|
};
|
|
@@ -119,6 +137,15 @@ declare const _default: {
|
|
|
119
137
|
'layout.NotificationsItemView': {
|
|
120
138
|
lazy: () => any;
|
|
121
139
|
};
|
|
140
|
+
'layout.LineProgressBarView': {
|
|
141
|
+
lazy: () => any;
|
|
142
|
+
};
|
|
143
|
+
'layout.CircleProgressBarView': {
|
|
144
|
+
lazy: () => any;
|
|
145
|
+
};
|
|
146
|
+
'layout.SkeletonView': {
|
|
147
|
+
lazy: () => any;
|
|
148
|
+
};
|
|
122
149
|
'layout.TooltipView': {
|
|
123
150
|
lazy: () => any;
|
|
124
151
|
};
|
|
@@ -149,6 +176,12 @@ declare const _default: {
|
|
|
149
176
|
'list.PaginationSizeView': {
|
|
150
177
|
lazy: () => any;
|
|
151
178
|
};
|
|
179
|
+
'list.StepsView': {
|
|
180
|
+
lazy: () => any;
|
|
181
|
+
};
|
|
182
|
+
'list.StepItemView': {
|
|
183
|
+
lazy: () => any;
|
|
184
|
+
};
|
|
152
185
|
'modal.ModalView': {
|
|
153
186
|
lazy: () => any;
|
|
154
187
|
};
|