@steroidsjs/bootstrap 3.0.0-beta.6 → 3.0.0-beta.61
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 +1 -2
- package/content/Accordion/AccordionItemView.d.ts +2 -0
- package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +47 -22
- package/content/Accordion/AccordionItemView.scss +209 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
- package/content/Alert/AlertView.js +3 -2
- package/content/Alert/AlertView.scss +19 -4
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +32 -39
- package/content/Badge/BadgeView.d.ts +3 -0
- package/content/Badge/BadgeView.js +25 -0
- package/content/Badge/BadgeView.scss +135 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +240 -161
- package/content/Calendar/CaptionElement.js +23 -15
- package/content/Calendar/CaptionElement.scss +164 -106
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -107
- package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
- package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
- package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
- package/content/Detail/DetailView.scss +75 -52
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +6 -4
- package/content/DropDown/DropDownView.scss +196 -27
- package/content/Icon/IconView.d.ts +1 -2
- package/content/Icon/IconView.js +2 -2
- package/content/Icon/IconView.scss +1 -23
- package/content/Menu/MenuItemView.d.ts +2 -0
- package/content/Menu/MenuItemView.js +15 -0
- package/content/Menu/MenuItemView.scss +63 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +30 -0
- package/content/Menu/MenuView.scss +43 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -2
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -8
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +199 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +168 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +6 -4
- package/form/CheckboxField/CheckboxFieldView.scss +195 -36
- package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
- package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DateField/DateFieldView.js +7 -6
- package/form/DateField/DateFieldView.scss +7 -74
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +29 -78
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +5 -5
- package/form/DateTimeField/DateTimeFieldView.scss +7 -109
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +9 -7
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +25 -90
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +388 -182
- package/form/DropDownField/utils.d.ts +2 -0
- package/form/DropDownField/utils.js +15 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +218 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +114 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +17 -39
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +58 -18
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +39 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +254 -13
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +34 -4
- package/form/Form/FormView.js +1 -4
- package/form/Form/FormView.scss +1 -14
- package/form/HtmlField/HtmlFieldView.d.ts +1 -2
- package/form/HtmlField/HtmlFieldView.scss +6 -3
- package/form/ImageField/ImageFieldView.js +1 -1
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +30 -13
- package/form/InputField/InputFieldView.scss +265 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +195 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +231 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +226 -0
- package/form/RadioListField/RadioListFieldView.d.ts +1 -2
- package/form/RadioListField/RadioListFieldView.js +20 -16
- package/form/RadioListField/RadioListFieldView.scss +11 -1
- package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
- package/form/SliderField/SliderFieldView.d.ts +1 -2
- package/form/SliderField/SliderFieldView.js +1 -1
- package/form/SliderField/SliderFieldView.scss +336 -299
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +188 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +144 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/icons/index.d.ts +2 -0
- package/icons/index.js +103 -0
- package/icons/svgs/add.svg +4 -0
- package/icons/svgs/add_square.svg +5 -0
- package/icons/svgs/arrow_down_18x18.svg +4 -0
- package/icons/svgs/arrow_down_24x24.svg +4 -0
- package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
- package/icons/svgs/arrow_left_18x18.svg +4 -0
- package/icons/svgs/arrow_left_24x24.svg +4 -0
- package/icons/svgs/arrow_right_18x18.svg +4 -0
- package/icons/svgs/arrow_right_24x24.svg +4 -0
- package/icons/svgs/arrow_up_18x18.svg +4 -0
- package/icons/svgs/arrow_up_24x24.svg +4 -0
- package/icons/svgs/blank.svg +4 -0
- package/icons/svgs/calendar_check.svg +5 -0
- package/icons/svgs/calendar_range.svg +8 -0
- package/icons/svgs/cancel_ellips.svg +4 -0
- package/icons/svgs/chart.svg +6 -0
- package/icons/svgs/checkmark_12x12.svg +4 -0
- package/icons/svgs/checkmark_8x8.svg +4 -0
- package/icons/svgs/circle_cross_12x12.svg +4 -0
- package/icons/svgs/circle_cross_16x16.svg +4 -0
- package/icons/svgs/circle_cross_18x18.svg +4 -0
- package/icons/svgs/clip.svg +3 -0
- package/icons/svgs/copy.svg +5 -0
- package/icons/svgs/cross_12x12.svg +4 -0
- package/icons/svgs/cross_4x4.svg +3 -0
- package/icons/svgs/cross_8x8.svg +4 -0
- package/icons/svgs/cut.svg +3 -0
- package/icons/svgs/date_range.svg +8 -0
- package/icons/svgs/default_16x16.svg +4 -0
- package/icons/svgs/default_24x24.svg +11 -0
- package/icons/svgs/double_arrow_down.svg +5 -0
- package/icons/svgs/double_arrow_left.svg +5 -0
- package/icons/svgs/double_arrow_right.svg +5 -0
- package/icons/svgs/double_arrow_up.svg +5 -0
- package/icons/svgs/doughnut_chart.svg +5 -0
- package/icons/svgs/edit.svg +4 -0
- package/icons/svgs/error_16x16.svg +5 -0
- package/icons/svgs/error_24x24.svg +12 -0
- package/icons/svgs/expand_down.svg +3 -0
- package/icons/svgs/expand_left.svg +3 -0
- package/icons/svgs/expand_left_double.svg +4 -0
- package/icons/svgs/expand_right.svg +3 -0
- package/icons/svgs/expand_right_double.svg +4 -0
- package/icons/svgs/expand_up.svg +3 -0
- package/icons/svgs/file_dock.svg +6 -0
- package/icons/svgs/filter.svg +3 -0
- package/icons/svgs/fluid.svg +4 -0
- package/icons/svgs/folder.svg +3 -0
- package/icons/svgs/group.svg +8 -0
- package/icons/svgs/home.svg +4 -0
- package/icons/svgs/img_box.svg +5 -0
- package/icons/svgs/import.svg +4 -0
- package/icons/svgs/info_16x16.svg +5 -0
- package/icons/svgs/info_24x24.svg +12 -0
- package/icons/svgs/left_12x12.svg +3 -0
- package/icons/svgs/loading_default.svg +3 -0
- package/icons/svgs/loading_icon_thick.svg +3 -0
- package/icons/svgs/loading_purple.svg +9 -0
- package/icons/svgs/map.svg +7 -0
- package/icons/svgs/menu_dots.svg +5 -0
- package/icons/svgs/menu_left.svg +5 -0
- package/icons/svgs/minis_sq.svg +4 -0
- package/icons/svgs/paste.svg +8 -0
- package/icons/svgs/pie_chart.svg +5 -0
- package/icons/svgs/pin.svg +4 -0
- package/icons/svgs/sad.svg +6 -0
- package/icons/svgs/search.svg +4 -0
- package/icons/svgs/setting_line.svg +3 -0
- package/icons/svgs/share.svg +7 -0
- package/icons/svgs/star.svg +3 -0
- package/icons/svgs/success_16x16.svg +4 -0
- package/icons/svgs/success_24x24.svg +11 -0
- package/icons/svgs/support.svg +3 -0
- package/icons/svgs/trash.svg +6 -0
- package/icons/svgs/upload.svg +4 -0
- package/icons/svgs/user.svg +4 -0
- package/icons/svgs/view.svg +4 -0
- package/icons/svgs/view_hide.svg +5 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/index.d.ts +26 -2
- package/index.js +28 -4
- package/index.scss +16 -3
- package/layout/Header/HeaderView.scss +3 -3
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +67 -22
- package/layout/Notifications/NotificationsItemView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +45 -37
- package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
- package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
- package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
- package/list/Grid/GridView.js +8 -4
- package/list/Grid/GridView.scss +148 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +3 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +51 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
- package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/index.js +7 -0
- package/list/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +32 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +265 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +4 -7
- package/modal/Modal/ModalView.scss +128 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -2
- package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
- package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
- package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
- package/nav/ButtonGroup/ButtonGroupView.js +32 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +83 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.scss +9 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +1 -1
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +1 -1
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +1 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +14 -11
- package/package.json +56 -56
- package/scss/animations/index.scss +1 -0
- package/scss/animations/loading.scss +13 -0
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +80 -24
- package/scss/mixins/customMixins.scss +5 -0
- package/scss/mixins/date.scss +397 -0
- package/scss/mixins/index.scss +4 -1
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/variables/common/colors.scss +119 -69
- package/scss/variables/common/media.scss +2 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +3 -2
- package/scss/variables/normalize.scss +25 -0
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +16 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +16 -0
- package/utils/renderIcon.d.ts +9 -0
- package/utils/renderIcon.js +27 -0
- package/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.scss +0 -88
- package/content/Collapse/CollapseView.d.ts +0 -2
- package/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -254
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--date-icon-default-color: #cbd5db;
|
|
3
|
+
--date-icon-close-default-color: #323232;
|
|
4
|
+
--date-icon-disabled-color: rgba(0, 0, 0, 0.1);
|
|
5
|
+
--date-range-separator-color: rgba(0, 0, 0, 0.1);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-theme="dark"] {
|
|
9
|
+
--date-icon-default-color: #5b5c6b;
|
|
10
|
+
--date-icon-close-default-color: #ffffff;
|
|
11
|
+
--date-icon-disabled-color: rgba(255, 255, 255, 0.1);
|
|
12
|
+
--date-range-separator-color: rgba(255, 255, 255, 0.1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
$date-icon-default-color: var(--date-icon-default-color);
|
|
16
|
+
$date-icon-close-default-color: var(--date-icon-close-default-color);
|
|
17
|
+
$date-icon-disabled-color: var(--date-icon-disabled-color);
|
|
18
|
+
$date-range-separator-color: var(--date-range-separator-color);
|
|
19
|
+
|
|
20
|
+
$date-sizes: () !default;
|
|
21
|
+
$date-sizes: map-merge(
|
|
22
|
+
(
|
|
23
|
+
"lg": (
|
|
24
|
+
"padding": 16px 8px,
|
|
25
|
+
"radius": $radius-large,
|
|
26
|
+
"font-size": $font-size-lg,
|
|
27
|
+
"height": 56px,
|
|
28
|
+
"first-input-width": 96px,
|
|
29
|
+
),
|
|
30
|
+
"md": (
|
|
31
|
+
"padding": 11px 8px,
|
|
32
|
+
"radius": $radius-large,
|
|
33
|
+
"font-size": $font-size-base,
|
|
34
|
+
"height": 46px,
|
|
35
|
+
"first-input-width": 86px,
|
|
36
|
+
),
|
|
37
|
+
"sm": (
|
|
38
|
+
"padding": 5px 8px,
|
|
39
|
+
"radius": $radius-small,
|
|
40
|
+
"font-size": $font-size-sm,
|
|
41
|
+
"height": 34px,
|
|
42
|
+
"first-input-width": 76px,
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
$date-sizes
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
@mixin icon-container($root) {
|
|
49
|
+
#{$root}__icon-container {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 50%;
|
|
52
|
+
right: 8px;
|
|
53
|
+
transform: translateY(-50%);
|
|
54
|
+
width: 24px;
|
|
55
|
+
height: 24px;
|
|
56
|
+
|
|
57
|
+
> * {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
flex-flow: row nowrap;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#{$root}__date-icon {
|
|
67
|
+
path,
|
|
68
|
+
circle {
|
|
69
|
+
stroke: $date-icon-default-color;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#{$root}__close-icon {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
path,
|
|
76
|
+
circle {
|
|
77
|
+
stroke: $date-icon-close-default-color;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@mixin date-default-sizes($root) {
|
|
84
|
+
&_size {
|
|
85
|
+
@each $size, $size-map in $date-sizes {
|
|
86
|
+
&_#{$size} {
|
|
87
|
+
#{$root}__input {
|
|
88
|
+
border-radius: map-get($size-map, radius);
|
|
89
|
+
padding: map-get($size-map, padding);
|
|
90
|
+
padding-right: 40px;
|
|
91
|
+
height: map-get($size-map, height);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#{$root}__body::before {
|
|
95
|
+
border-radius: calc(map-get($size-map, radius) + 4px);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
font-size: map-get($size-map, font-size);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@mixin date-default-input() {
|
|
105
|
+
&__input {
|
|
106
|
+
width: 100%;
|
|
107
|
+
font-size: inherit;
|
|
108
|
+
line-height: $line-height-lg;
|
|
109
|
+
background-color: $element-background-color;
|
|
110
|
+
border: 1px solid $border-color;
|
|
111
|
+
color: $text-color;
|
|
112
|
+
transition: border-color 150ms ease-in-out;
|
|
113
|
+
|
|
114
|
+
&:active {
|
|
115
|
+
border-color: $primary;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&::placeholder {
|
|
119
|
+
color: $placeholder-color;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:disabled {
|
|
123
|
+
border: none;
|
|
124
|
+
background-color: $background-disabled-color;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@mixin date-default-body() {
|
|
130
|
+
&__body {
|
|
131
|
+
position: relative;
|
|
132
|
+
|
|
133
|
+
&::before {
|
|
134
|
+
display: block;
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 0;
|
|
137
|
+
left: 0;
|
|
138
|
+
right: 0;
|
|
139
|
+
bottom: 0;
|
|
140
|
+
width: 100%;
|
|
141
|
+
height: 100%;
|
|
142
|
+
content: "";
|
|
143
|
+
border: 4px solid $primary-light;
|
|
144
|
+
transform: translate(-4px, -4px);
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
opacity: 0;
|
|
147
|
+
transition: opacity 150ms ease-in-out;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@mixin date-default-effects($root) {
|
|
153
|
+
&:focus-within:not(:active) {
|
|
154
|
+
#{$root}__body {
|
|
155
|
+
&::before {
|
|
156
|
+
opacity: 1;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
#{$root}__input {
|
|
161
|
+
border-color: transparent;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&_disabled {
|
|
166
|
+
#{$root}__date-icon {
|
|
167
|
+
path,
|
|
168
|
+
circle {
|
|
169
|
+
stroke: $date-icon-disabled-color;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&_is-invalid {
|
|
175
|
+
#{$root}__input {
|
|
176
|
+
border-color: $danger;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@mixin date-range-body($root) {
|
|
182
|
+
&__body {
|
|
183
|
+
position: relative;
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-flow: row nowrap;
|
|
186
|
+
align-items: center;
|
|
187
|
+
background-color: $element-background-color;
|
|
188
|
+
color: $text-color;
|
|
189
|
+
column-gap: 8px;
|
|
190
|
+
|
|
191
|
+
> * {
|
|
192
|
+
&:nth-child(1) {
|
|
193
|
+
width: 91px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&:nth-child(2) {
|
|
197
|
+
width: 100%;
|
|
198
|
+
margin-right: 40px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@mixin date-range-effects($root) {
|
|
205
|
+
&__effect {
|
|
206
|
+
position: absolute;
|
|
207
|
+
display: block;
|
|
208
|
+
width: 100%;
|
|
209
|
+
height: 100%;
|
|
210
|
+
top: 0;
|
|
211
|
+
left: 0;
|
|
212
|
+
right: 0;
|
|
213
|
+
bottom: 0;
|
|
214
|
+
border-radius: inherit;
|
|
215
|
+
pointer-events: none;
|
|
216
|
+
|
|
217
|
+
&::before,
|
|
218
|
+
&::after {
|
|
219
|
+
display: block;
|
|
220
|
+
content: "";
|
|
221
|
+
position: absolute;
|
|
222
|
+
top: 0;
|
|
223
|
+
left: 0;
|
|
224
|
+
right: 0;
|
|
225
|
+
bottom: 0;
|
|
226
|
+
transition: border-color 150ms ease-in-out, opacity 150ms ease-in-out;
|
|
227
|
+
opacity: 1;
|
|
228
|
+
border-radius: inherit;
|
|
229
|
+
border-width: 1px;
|
|
230
|
+
border-style: solid;
|
|
231
|
+
pointer-events: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&::before {
|
|
235
|
+
border-color: $border-color;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&::after {
|
|
239
|
+
width: 100%;
|
|
240
|
+
height: 100%;
|
|
241
|
+
transform: translate(-4px, -4px);
|
|
242
|
+
border: 4px solid $primary-light;
|
|
243
|
+
opacity: 0;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
//Effects
|
|
248
|
+
//Active
|
|
249
|
+
&__input:active ~ &__effect::before {
|
|
250
|
+
border-color: $primary;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
//Focus
|
|
254
|
+
&__body:focus-within:not(:active) &__effect {
|
|
255
|
+
&::before {
|
|
256
|
+
border-color: transparent;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&::after {
|
|
260
|
+
opacity: 1;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&_disabled {
|
|
265
|
+
#{$root}__body {
|
|
266
|
+
background-color: $background-disabled-color;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
#{$root}__effect {
|
|
270
|
+
opacity: 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&_disabled {
|
|
275
|
+
#{$root}__date-icon {
|
|
276
|
+
path,
|
|
277
|
+
circle {
|
|
278
|
+
stroke: $date-icon-disabled-color;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&_is-invalid {
|
|
284
|
+
#{$root}__effect::before {
|
|
285
|
+
border-color: $danger;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
#{$root}__input:active ~ #{$root}__effect::before {
|
|
289
|
+
border-color: $danger;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@mixin date-range-sizes($root) {
|
|
295
|
+
&_size {
|
|
296
|
+
@each $size, $size-map in $date-sizes {
|
|
297
|
+
&_#{$size} {
|
|
298
|
+
#{$root}__body {
|
|
299
|
+
padding: map-get($size-map, padding);
|
|
300
|
+
border-radius: map-get($size-map, radius);
|
|
301
|
+
height: map-get($size-map, height);
|
|
302
|
+
|
|
303
|
+
> * {
|
|
304
|
+
&:nth-child(1) {
|
|
305
|
+
width: map-get($size-map, first-input-width);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
#{$root}__effect::after {
|
|
311
|
+
border-radius: calc(map-get($size-map, radius) + 4px);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
font-size: map-get($size-map, font-size);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@mixin date-range-input() {
|
|
321
|
+
&__input {
|
|
322
|
+
border: none;
|
|
323
|
+
font-size: inherit;
|
|
324
|
+
background-color: inherit;
|
|
325
|
+
color: inherit;
|
|
326
|
+
|
|
327
|
+
&::placeholder {
|
|
328
|
+
color: $placeholder-color;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
@mixin date-time-panel($root) {
|
|
335
|
+
&__panel-container {
|
|
336
|
+
position: relative;
|
|
337
|
+
display: flex;
|
|
338
|
+
flex-flow: row nowrap;
|
|
339
|
+
color: $text-color;
|
|
340
|
+
|
|
341
|
+
#{$root}__separator {
|
|
342
|
+
position: relative;
|
|
343
|
+
margin-left: 4px;
|
|
344
|
+
margin-right: 16px;
|
|
345
|
+
width: 1px;
|
|
346
|
+
height: 338px;
|
|
347
|
+
background-color: $date-range-separator-color;
|
|
348
|
+
transform: translateY(12px);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.TimePanelView__body {
|
|
352
|
+
column-gap: 2px;
|
|
353
|
+
width: 68px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.TimePanelView__header {
|
|
357
|
+
border: none;
|
|
358
|
+
margin-top: 2px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.TimePanelView__column {
|
|
362
|
+
height: 298px;
|
|
363
|
+
row-gap: 2px;
|
|
364
|
+
border: none;
|
|
365
|
+
|
|
366
|
+
&:not(:last-child) {
|
|
367
|
+
border-right: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
overflow: scroll;
|
|
371
|
+
scrollbar-width: none;
|
|
372
|
+
-ms-overflow-style: none;
|
|
373
|
+
|
|
374
|
+
&::-webkit-scrollbar {
|
|
375
|
+
width: 0px;
|
|
376
|
+
height: 0px;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.TimePanelView__cell {
|
|
380
|
+
padding: 0;
|
|
381
|
+
border-radius: $radius-large;
|
|
382
|
+
|
|
383
|
+
&-value {
|
|
384
|
+
padding: 6px 7px;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.TimePanelView__button_ok {
|
|
390
|
+
@include calendar-button();
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.TimePanelView__footer {
|
|
394
|
+
margin-top: 3px;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
package/scss/mixins/index.scss
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@mixin custom-scroll($thumbColor, $backgroundColor) {
|
|
2
|
+
scrollbar-color: $thumbColor $backgroundColor;
|
|
3
|
+
scrollbar-width: thin;
|
|
4
|
+
|
|
5
|
+
&::-webkit-scrollbar {
|
|
6
|
+
width: 4px;
|
|
7
|
+
height: 4px;
|
|
8
|
+
border-radius: 3px;
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&::-webkit-scrollbar-track {
|
|
16
|
+
border-radius: 3px;
|
|
17
|
+
background-color: $backgroundColor;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::-webkit-scrollbar-thumb {
|
|
21
|
+
border-radius: 3px;
|
|
22
|
+
background-color: $thumbColor;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin scrollWrapper($maxHeight, $paddingRight: 0, $thumbColor, $backgroundColor) {
|
|
27
|
+
@include custom-scroll($thumbColor, $backgroundColor);
|
|
28
|
+
padding-right: $paddingRight;
|
|
29
|
+
max-height: $maxHeight;
|
|
30
|
+
overflow: auto;
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@mixin typography-type($typeMap) {
|
|
2
|
+
font-family: map-get($typeMap, font-family);
|
|
3
|
+
font-size: map-get($typeMap, font-size);
|
|
4
|
+
font-weight: map-get($typeMap, font-weight);
|
|
5
|
+
line-height: map-get($typeMap, line-height);
|
|
6
|
+
color: map-get($typeMap, color);
|
|
7
|
+
text-transform: map-get($typeMap, text-transform);
|
|
8
|
+
text-decoration: map-get($typeMap, text-decoration);
|
|
9
|
+
text-align: map-get($typeMap, text-align);
|
|
10
|
+
|
|
11
|
+
@media (max-width: $tablet-width) {
|
|
12
|
+
font-size: map-get($typeMap, tablet-font-size);
|
|
13
|
+
font-weight: map-get($typeMap, tablet-font-weight);
|
|
14
|
+
line-height: map-get($typeMap, tablet-line-height);
|
|
15
|
+
text-transform: map-get($typeMap, tablet-text-transform);
|
|
16
|
+
text-align: map-get($typeMap, tablet-text-align);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (max-width: $mobile-width) {
|
|
20
|
+
font-size: map-get($typeMap, mobile-font-size);
|
|
21
|
+
font-weight: map-get($typeMap, mobile-font-weight);
|
|
22
|
+
line-height: map-get($typeMap, mobile-line-height);
|
|
23
|
+
text-transform: map-get($typeMap, mobile-text-transform);
|
|
24
|
+
text-align: map-get($typeMap, mobile-text-align);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -18,67 +18,116 @@
|
|
|
18
18
|
--warning-dark: #ebd251;
|
|
19
19
|
--warning-light: #fff6c6;
|
|
20
20
|
--graphite: #323232;
|
|
21
|
-
--gray-dark: #
|
|
22
|
-
--gray: #
|
|
23
|
-
--light-gray: #
|
|
21
|
+
--gray-dark: #cbd5db;
|
|
22
|
+
--gray: #dbe2e6;
|
|
23
|
+
--light-gray: #f1f5f7;
|
|
24
24
|
--dark: #6f6b76;
|
|
25
25
|
--light: #9088a1;
|
|
26
|
+
--text-color: #312c3a;
|
|
27
|
+
--background-color: #fff;
|
|
28
|
+
--is-dark: "false";
|
|
29
|
+
--border-color: #dbe2e6;
|
|
30
|
+
--border-color-hover: #e5e9eb;
|
|
31
|
+
--placeholder-color: rgba(0, 0, 0, 0.3);
|
|
32
|
+
--placeholder-disabled-color: rgba(0, 0, 0, 0.3);
|
|
33
|
+
--background-disabled-color: #f1f5f7;
|
|
34
|
+
--element-background-color: #FFFFFF;
|
|
35
|
+
--additional-gray-dark: #6F6B76;
|
|
36
|
+
--additional-gray: #E6E6E6;
|
|
37
|
+
--additional-light-gray: #F8F8F8;
|
|
38
|
+
--additional-light: #9088A1;
|
|
39
|
+
--additional-light-blue: #F9FCFF;
|
|
40
|
+
--scroll-thumb-color: #e5e9eb;
|
|
41
|
+
--scroll-track-color: #f5f8fa;
|
|
42
|
+
}
|
|
26
43
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
html[data-theme="dark"] {
|
|
45
|
+
--primary: #8b57ff;
|
|
46
|
+
--primary-dark: #6648a7;
|
|
47
|
+
--primary-light: #ba9bff;
|
|
48
|
+
--secondary: #9ea8db;
|
|
49
|
+
--secondary-dark: #616a95;
|
|
50
|
+
--secondary-light: #bcc3e9;
|
|
51
|
+
--success: #3cf25a;
|
|
52
|
+
--success-dark: #34cc4d;
|
|
53
|
+
--success-light: #74ff8b;
|
|
54
|
+
--danger: #fc6666;
|
|
55
|
+
--danger-dark: #dc5858;
|
|
56
|
+
--danger-light: #ffa1a1;
|
|
57
|
+
--info: #9ae1f1;
|
|
58
|
+
--info-dark: #77c4d6;
|
|
59
|
+
--info-light: #ccf6ff;
|
|
60
|
+
--warning: #ffe457;
|
|
61
|
+
--warning-dark: #ebd251;
|
|
62
|
+
--warning-light: #fff6c8;
|
|
63
|
+
--graphite: #414141;
|
|
64
|
+
--gray-dark: #4e4f57;
|
|
65
|
+
--gray: #5b5c6b;
|
|
66
|
+
--light-gray: #928b9d;
|
|
67
|
+
--dark: #6b6477;
|
|
68
|
+
--light: #b7afc7;
|
|
69
|
+
--text-color: #ffffff;
|
|
70
|
+
--background-color: #323030;
|
|
71
|
+
--is-dark: "true";
|
|
72
|
+
--border-color: #5B5C6B;
|
|
73
|
+
--border-color-hover: #4e4f57;
|
|
74
|
+
--placeholder-color: rgba(255, 255, 255, 0.3);
|
|
75
|
+
--placeholder-disabled-color: rgba(255, 255, 255, 0.1);
|
|
76
|
+
--background-disabled-color: #5b5c6b;
|
|
77
|
+
--element-background-color: #414141;
|
|
78
|
+
--additional-gray-dark: #6B6477;
|
|
79
|
+
--additional-gray: #595959;
|
|
80
|
+
--additional-light-gray: #4A4B53;
|
|
81
|
+
--additional-light: #B7AFC7;
|
|
82
|
+
--additional-light-blue: #DAEAF6;
|
|
83
|
+
--scroll-thumb-color: #5b5c6b;
|
|
84
|
+
--scroll-track-color: #444147;
|
|
53
85
|
}
|
|
54
86
|
|
|
55
87
|
/*
|
|
56
88
|
* SCSS variables implementation
|
|
57
89
|
*/
|
|
58
|
-
$primary: var(--primary)
|
|
59
|
-
$primary-dark: var(--primary-dark)
|
|
60
|
-
$primary-light: var(--primary-light)
|
|
61
|
-
$secondary: var(--secondary)
|
|
62
|
-
$secondary-dark: var(--secondary-dark)
|
|
63
|
-
$secondary-light: var(--secondary-light)
|
|
64
|
-
$success: var(--success)
|
|
65
|
-
$success-dark: var(--success-dark)
|
|
66
|
-
$success-light: var(--success-light)
|
|
67
|
-
$danger: var(--danger)
|
|
68
|
-
$danger-dark: var(--danger-dark)
|
|
69
|
-
$danger-light: var(--danger-light)
|
|
70
|
-
$info: var(--info)
|
|
71
|
-
$info-dark: var(--info-dark)
|
|
72
|
-
$info-light: var(--info-light)
|
|
73
|
-
$warning: var(--warning)
|
|
74
|
-
$warning-dark: var(--warning-dark)
|
|
75
|
-
$warning-light: var(--warning-light)
|
|
76
|
-
$graphite: var(--graphite)
|
|
77
|
-
$gray-dark: var(--gray-dark)
|
|
78
|
-
$gray: var(--gray)
|
|
79
|
-
$light-gray: var(--light-gray)
|
|
80
|
-
$dark: var(--dark)
|
|
81
|
-
$light: var(--light)
|
|
90
|
+
$primary: var(--primary);
|
|
91
|
+
$primary-dark: var(--primary-dark);
|
|
92
|
+
$primary-light: var(--primary-light);
|
|
93
|
+
$secondary: var(--secondary);
|
|
94
|
+
$secondary-dark: var(--secondary-dark);
|
|
95
|
+
$secondary-light: var(--secondary-light);
|
|
96
|
+
$success: var(--success);
|
|
97
|
+
$success-dark: var(--success-dark);
|
|
98
|
+
$success-light: var(--success-light);
|
|
99
|
+
$danger: var(--danger);
|
|
100
|
+
$danger-dark: var(--danger-dark);
|
|
101
|
+
$danger-light: var(--danger-light);
|
|
102
|
+
$info: var(--info);
|
|
103
|
+
$info-dark: var(--info-dark);
|
|
104
|
+
$info-light: var(--info-light);
|
|
105
|
+
$warning: var(--warning);
|
|
106
|
+
$warning-dark: var(--warning-dark);
|
|
107
|
+
$warning-light: var(--warning-light);
|
|
108
|
+
$graphite: var(--graphite);
|
|
109
|
+
$gray-dark: var(--gray-dark);
|
|
110
|
+
$gray: var(--gray);
|
|
111
|
+
$light-gray: var(--light-gray);
|
|
112
|
+
$dark: var(--dark);
|
|
113
|
+
$light: var(--light);
|
|
114
|
+
$text-color: var(--text-color);
|
|
115
|
+
$text-color-revert: var(--text-color-revert);
|
|
116
|
+
$background-color: var(--background-color);
|
|
117
|
+
$is-dark: var(--is-dark);
|
|
118
|
+
$border-color: var(--border-color);
|
|
119
|
+
$border-color-hover: var(--border-color-hover);
|
|
120
|
+
$placeholder-color: var(--placeholder-color);
|
|
121
|
+
$placeholder-disabled-color: var(--placeholder-disabled-color);
|
|
122
|
+
$background-disabled-color: var(--background-disabled-color);
|
|
123
|
+
$element-background-color: var(--element-background-color);
|
|
124
|
+
$additional-gray-dark: var(--additional-gray-dark);
|
|
125
|
+
$additional-gray: var(--additional-gray);
|
|
126
|
+
$additional-light-gray: var(--additional-light-gray);
|
|
127
|
+
$additional-light: var(--additional-light);
|
|
128
|
+
$additional-light-blue: var(--additional-light-blue);
|
|
129
|
+
$scroll-thumb-color: var(--scroll-thumb-color);
|
|
130
|
+
$scroll-track-color: var(--scroll-track-color);
|
|
82
131
|
|
|
83
132
|
/*
|
|
84
133
|
* Common colors
|
|
@@ -90,16 +139,25 @@ $black-30: rgba(#000, 0.3) !default;
|
|
|
90
139
|
$black-10: rgba(#000, 0.1) !default;
|
|
91
140
|
$black-4: rgba(#000, 0.04) !default;
|
|
92
141
|
$white: #fff !default;
|
|
142
|
+
$white-60: rgba(#ffffff, 0.6) !default;
|
|
143
|
+
$white-30: rgba(#ffffff, 0.3) !default;
|
|
144
|
+
$white-10: rgba(#ffffff, 0.1) !default;
|
|
145
|
+
$white-4: rgba(#ffffff, 0.04) !default;
|
|
93
146
|
|
|
94
|
-
$text-color: #312c3a !default;
|
|
95
147
|
$link-color: #2ba3fb !default;
|
|
148
|
+
$link-color-hover: #00c2ff !default;
|
|
96
149
|
|
|
97
|
-
$gradient-
|
|
98
|
-
$gradient-red: linear-gradient(180deg, #EB0155, #FFFA80);
|
|
150
|
+
$gradient-blue: linear-gradient(180deg, #651fff, #ba9bff) !default;
|
|
99
151
|
|
|
100
152
|
$color-themes: () !default;
|
|
101
153
|
$color-themes: map-merge(
|
|
102
154
|
(
|
|
155
|
+
"basic": (
|
|
156
|
+
"color": $gray,
|
|
157
|
+
"color-dark": $gray-dark,
|
|
158
|
+
"color-light": $light-gray,
|
|
159
|
+
"text-color": $text-color,
|
|
160
|
+
),
|
|
103
161
|
"primary": (
|
|
104
162
|
"color": $primary,
|
|
105
163
|
"color-dark": $primary-dark,
|
|
@@ -128,25 +186,17 @@ $color-themes: map-merge(
|
|
|
128
186
|
"color": $warning,
|
|
129
187
|
"color-dark": $warning-dark,
|
|
130
188
|
"color-light": $warning-light,
|
|
131
|
-
"text-color": $
|
|
189
|
+
"text-color": $text-color,
|
|
132
190
|
),
|
|
133
191
|
"info": (
|
|
134
192
|
"color": $info,
|
|
135
193
|
"color-dark": $info-dark,
|
|
136
194
|
"color-light": $info-light,
|
|
137
|
-
"text-color": $
|
|
138
|
-
),
|
|
139
|
-
"light": (
|
|
140
|
-
"color": $light,
|
|
141
|
-
"color-dark": $dark,
|
|
142
|
-
"color-light": $light,
|
|
143
|
-
"text-color": $dark,
|
|
195
|
+
"text-color": $text-color,
|
|
144
196
|
),
|
|
145
|
-
"
|
|
146
|
-
"color": $
|
|
147
|
-
"color-
|
|
148
|
-
"color-light": $light,
|
|
149
|
-
"text-color": $white,
|
|
197
|
+
"link": (
|
|
198
|
+
"color-dark": $link-color,
|
|
199
|
+
"color-light": $link-color-hover,
|
|
150
200
|
),
|
|
151
201
|
),
|
|
152
202
|
$color-themes
|