@steroidsjs/bootstrap 3.0.0-beta.8 → 3.0.0-beta.81
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 +252 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/Accordion/AccordionView.scss +28 -0
- package/content/Alert/AlertView.js +3 -2
- package/content/Alert/AlertView.scss +65 -20
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +32 -39
- package/content/Badge/BadgeView.d.ts +2 -0
- package/content/Badge/BadgeView.js +24 -0
- package/content/Badge/BadgeView.scss +139 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +244 -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 +137 -108
- 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 +72 -52
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +7 -4
- package/content/DropDown/DropDownView.scss +206 -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/content/Slider/SliderView.d.ts +2 -0
- package/content/Slider/SliderView.js +18 -0
- package/content/Slider/SliderView.scss +5 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -3
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -9
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +196 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +174 -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 +12 -71
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +32 -77
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +6 -6
- package/form/DateTimeField/DateTimeFieldView.scss +10 -107
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +28 -88
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +381 -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 +72 -24
- 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 +43 -13
- 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 +15 -3
- package/form/ImageField/ImageFieldView.scss +7 -24
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +33 -14
- 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 +236 -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/RateField/RateFieldView.js +17 -10
- package/form/RateField/RateFieldView.scss +115 -40
- package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +18 -9
- package/form/ReCaptchaField/ReCaptchaFieldView.scss +1 -5
- 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/form/TimeField/TimeFieldView.js +16 -14
- package/form/TimeField/TimeFieldView.scss +19 -68
- package/form/TimeField/TimePanelView.scss +62 -68
- package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
- package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
- package/form/TimeRangeField/TimeRangeFieldView.scss +77 -0
- 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 +38 -2
- package/index.js +40 -4
- package/index.scss +24 -3
- package/layout/Header/HeaderView.js +1 -1
- package/layout/Header/HeaderView.scss +10 -5
- 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/NotificationsItemView.js +9 -8
- package/layout/Notifications/NotificationsItemView.scss +1 -39
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.scss +3 -0
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.scss +1 -1
- 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/ControlsColumnView/ControlsColumnView.scss +7 -1
- package/list/Empty/EmptyView.js +1 -1
- package/list/Empty/EmptyView.scss +4 -1
- package/list/FlexGrid/FlexGridView.d.ts +2 -0
- package/list/FlexGrid/FlexGridView.js +71 -0
- package/list/FlexGrid/FlexGridView.scss +57 -0
- package/list/Grid/GridView.js +10 -4
- package/list/Grid/GridView.scss +151 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +86 -0
- package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/index.js +7 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
- package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
- package/list/Grid/views/DiagramColumnView/index.js +7 -0
- package/list/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +26 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +263 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/list/PaginationSize/PaginationSizeView.js +5 -5
- package/list/PaginationSize/PaginationSizeView.scss +0 -8
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +5 -8
- package/modal/Modal/ModalView.scss +138 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -3
- package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
- package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -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 +33 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +81 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.scss +17 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavBarView.js +9 -4
- package/nav/Nav/NavBarView.scss +32 -1
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavButtonView.js +8 -2
- package/nav/Nav/NavButtonView.scss +6 -5
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +7 -2
- package/nav/Nav/NavIconView.scss +25 -6
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavLinkView.js +8 -2
- package/nav/Nav/NavLinkView.scss +14 -5
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +11 -7
- package/nav/Nav/NavListView.scss +11 -10
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +9 -4
- package/nav/Nav/NavTabsView.scss +47 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +58 -51
- package/package.json +58 -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 +422 -0
- package/scss/mixins/index.scss +5 -1
- package/scss/mixins/navs.scss +39 -0
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/normalize.scss +25 -0
- package/scss/variables/common/colors.scss +189 -82
- package/scss/variables/common/media.scss +3 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/calendar.scss +0 -1
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +2 -2
- 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/content/Collapse/CollapseView.scss +0 -15
- package/icons/close.svg +0 -3
- package/icons/default.svg +0 -11
- package/icons/error.svg +0 -12
- package/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -254
- package/icons/info.svg +0 -12
- package/icons/success.svg +0 -4
- package/icons/warning.svg +0 -12
- 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,422 @@
|
|
|
1
|
+
@import "../variables/index";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--date-icon-default-color: #cbd5db;
|
|
5
|
+
--date-icon-close-default-color: #323232;
|
|
6
|
+
--date-icon-disabled-color: rgba(0, 0, 0, 0.1);
|
|
7
|
+
--date-range-separator-color: rgba(0, 0, 0, 0.1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
html[data-theme="dark"] {
|
|
11
|
+
--date-icon-default-color: #333646;
|
|
12
|
+
--date-icon-close-default-color: #ffffff;
|
|
13
|
+
--date-icon-disabled-color: rgba(255, 255, 255, 0.1);
|
|
14
|
+
--date-range-separator-color: rgba(255, 255, 255, 0.1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
$date-icon-default-color: var(--date-icon-default-color);
|
|
18
|
+
$date-icon-close-default-color: var(--date-icon-close-default-color);
|
|
19
|
+
$date-icon-disabled-color: var(--date-icon-disabled-color);
|
|
20
|
+
$date-range-separator-color: var(--date-range-separator-color);
|
|
21
|
+
|
|
22
|
+
$date-sizes: () !default;
|
|
23
|
+
$date-sizes: map-merge(
|
|
24
|
+
(
|
|
25
|
+
"lg": (
|
|
26
|
+
"padding": 16px 8px,
|
|
27
|
+
"radius": $radius-large,
|
|
28
|
+
"font-size": $font-size-lg,
|
|
29
|
+
"height": 56px,
|
|
30
|
+
"first-input-width": 96px,
|
|
31
|
+
),
|
|
32
|
+
"md": (
|
|
33
|
+
"padding": 11px 8px,
|
|
34
|
+
"radius": $radius-large,
|
|
35
|
+
"font-size": $font-size-base,
|
|
36
|
+
"height": 46px,
|
|
37
|
+
"first-input-width": 86px,
|
|
38
|
+
),
|
|
39
|
+
"sm": (
|
|
40
|
+
"padding": 5px 8px,
|
|
41
|
+
"radius": $radius-small,
|
|
42
|
+
"font-size": $font-size-sm,
|
|
43
|
+
"height": 34px,
|
|
44
|
+
"first-input-width": 76px,
|
|
45
|
+
),
|
|
46
|
+
),
|
|
47
|
+
$date-sizes
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
@mixin icon-container($root) {
|
|
51
|
+
#{$root}__icon-container {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 50%;
|
|
54
|
+
right: 8px;
|
|
55
|
+
transform: translateY(-50%);
|
|
56
|
+
width: 24px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
|
|
59
|
+
> * {
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
flex-flow: row nowrap;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#{$root}__date-icon {
|
|
69
|
+
path,
|
|
70
|
+
circle {
|
|
71
|
+
stroke: $date-icon-default-color;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#{$root}__close-icon {
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
path,
|
|
78
|
+
circle {
|
|
79
|
+
stroke: $date-icon-close-default-color;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin date-default-sizes($root) {
|
|
86
|
+
&_size {
|
|
87
|
+
@each $size, $size-map in $date-sizes {
|
|
88
|
+
&_#{$size} {
|
|
89
|
+
#{$root}__input {
|
|
90
|
+
border-radius: map-get($size-map, radius);
|
|
91
|
+
padding: map-get($size-map, padding);
|
|
92
|
+
padding-right: 40px;
|
|
93
|
+
height: map-get($size-map, height);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#{$root}__body::before {
|
|
97
|
+
border-radius: calc(map-get($size-map, radius) + 4px);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
font-size: map-get($size-map, font-size);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@mixin date-default-input() {
|
|
107
|
+
&__input {
|
|
108
|
+
width: 100%;
|
|
109
|
+
font-size: inherit;
|
|
110
|
+
line-height: $line-height-lg;
|
|
111
|
+
background-color: $element-field-background-color;
|
|
112
|
+
border: 1px solid $element-border-color;
|
|
113
|
+
color: $text-color;
|
|
114
|
+
transition: border-color 150ms ease-in-out;
|
|
115
|
+
|
|
116
|
+
&:active {
|
|
117
|
+
border-color: $primary;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&::placeholder {
|
|
121
|
+
color: $element-placeholder-color;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:disabled {
|
|
125
|
+
border: none;
|
|
126
|
+
background-color: $element-background-color-disabled;
|
|
127
|
+
|
|
128
|
+
&::placeholder {
|
|
129
|
+
color: $element-placeholder-color-disabled;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@mixin date-default-body() {
|
|
136
|
+
&__body {
|
|
137
|
+
position: relative;
|
|
138
|
+
|
|
139
|
+
&::before {
|
|
140
|
+
display: block;
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: 0;
|
|
143
|
+
left: 0;
|
|
144
|
+
right: 0;
|
|
145
|
+
bottom: 0;
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: 100%;
|
|
148
|
+
content: "";
|
|
149
|
+
border: 4px solid $primary-light;
|
|
150
|
+
transform: translate(-4px, -4px);
|
|
151
|
+
pointer-events: none;
|
|
152
|
+
opacity: 0;
|
|
153
|
+
transition: opacity 150ms ease-in-out;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@mixin date-default-effects($root) {
|
|
159
|
+
&:focus-within:not(:active) {
|
|
160
|
+
#{$root}__body {
|
|
161
|
+
&::before {
|
|
162
|
+
opacity: 1;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
#{$root}__input {
|
|
167
|
+
border-color: transparent;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&_disabled {
|
|
172
|
+
#{$root}__icon-container {
|
|
173
|
+
#{$root}__date-icon {
|
|
174
|
+
path,
|
|
175
|
+
circle {
|
|
176
|
+
stroke: $date-icon-disabled-color;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&_is-invalid {
|
|
183
|
+
#{$root}__input {
|
|
184
|
+
border-color: $danger;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@mixin date-range-body($root) {
|
|
190
|
+
&__body {
|
|
191
|
+
position: relative;
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-flow: row nowrap;
|
|
194
|
+
align-items: center;
|
|
195
|
+
background-color: $element-field-background-color;
|
|
196
|
+
color: $text-color;
|
|
197
|
+
column-gap: 8px;
|
|
198
|
+
|
|
199
|
+
> * {
|
|
200
|
+
&:nth-child(1) {
|
|
201
|
+
width: 91px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&:nth-child(2) {
|
|
205
|
+
width: 100%;
|
|
206
|
+
margin-right: 40px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@mixin date-range-effects($root) {
|
|
213
|
+
&__effect {
|
|
214
|
+
position: absolute;
|
|
215
|
+
display: block;
|
|
216
|
+
width: 100%;
|
|
217
|
+
height: 100%;
|
|
218
|
+
top: 0;
|
|
219
|
+
left: 0;
|
|
220
|
+
right: 0;
|
|
221
|
+
bottom: 0;
|
|
222
|
+
border-radius: inherit;
|
|
223
|
+
pointer-events: none;
|
|
224
|
+
|
|
225
|
+
&::before,
|
|
226
|
+
&::after {
|
|
227
|
+
display: block;
|
|
228
|
+
content: "";
|
|
229
|
+
position: absolute;
|
|
230
|
+
top: 0;
|
|
231
|
+
left: 0;
|
|
232
|
+
right: 0;
|
|
233
|
+
bottom: 0;
|
|
234
|
+
transition: border-color 150ms ease-in-out, opacity 150ms ease-in-out;
|
|
235
|
+
opacity: 1;
|
|
236
|
+
border-radius: inherit;
|
|
237
|
+
border-width: 1px;
|
|
238
|
+
border-style: solid;
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&::before {
|
|
243
|
+
border-color: $element-border-color;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&::after {
|
|
247
|
+
width: 100%;
|
|
248
|
+
height: 100%;
|
|
249
|
+
transform: translate(-4px, -4px);
|
|
250
|
+
border: 4px solid $primary-light;
|
|
251
|
+
opacity: 0;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
//Effects
|
|
256
|
+
//Active
|
|
257
|
+
&__input:active ~ &__effect::before {
|
|
258
|
+
border-color: $primary;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
//Focus
|
|
262
|
+
&__body:focus-within:not(:active) &__effect {
|
|
263
|
+
&::before {
|
|
264
|
+
border-color: transparent;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&::after {
|
|
268
|
+
opacity: 1;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&_disabled {
|
|
273
|
+
#{$root}__body {
|
|
274
|
+
background-color: $element-background-color-disabled;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
#{$root}__input {
|
|
278
|
+
&::placeholder {
|
|
279
|
+
color: $element-placeholder-color-disabled;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
#{$root}__effect {
|
|
284
|
+
opacity: 0;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&_disabled {
|
|
289
|
+
#{$root}__icon-container {
|
|
290
|
+
#{$root}__date-icon {
|
|
291
|
+
path,
|
|
292
|
+
circle {
|
|
293
|
+
stroke: $date-icon-disabled-color;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&_is-invalid {
|
|
300
|
+
#{$root}__effect::before {
|
|
301
|
+
border-color: $danger;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
#{$root}__input:active ~ #{$root}__effect::before {
|
|
305
|
+
border-color: $danger;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@mixin date-range-sizes($root) {
|
|
311
|
+
&_size {
|
|
312
|
+
@each $size, $size-map in $date-sizes {
|
|
313
|
+
&_#{$size} {
|
|
314
|
+
#{$root}__body {
|
|
315
|
+
padding: map-get($size-map, padding);
|
|
316
|
+
border-radius: map-get($size-map, radius);
|
|
317
|
+
height: map-get($size-map, height);
|
|
318
|
+
|
|
319
|
+
> * {
|
|
320
|
+
&:nth-child(1) {
|
|
321
|
+
width: map-get($size-map, first-input-width);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
#{$root}__effect::after {
|
|
327
|
+
border-radius: calc(map-get($size-map, radius) + 4px);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
font-size: map-get($size-map, font-size);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@mixin date-range-input() {
|
|
337
|
+
&__input {
|
|
338
|
+
border: none;
|
|
339
|
+
font-size: inherit;
|
|
340
|
+
background-color: inherit;
|
|
341
|
+
color: inherit;
|
|
342
|
+
|
|
343
|
+
&::placeholder {
|
|
344
|
+
color: $element-placeholder-color;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@mixin date-time-panel($root) {
|
|
350
|
+
&__panel-container {
|
|
351
|
+
position: relative;
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-flow: row nowrap;
|
|
354
|
+
color: $text-color;
|
|
355
|
+
|
|
356
|
+
#{$root}__separator {
|
|
357
|
+
position: relative;
|
|
358
|
+
margin-left: 4px;
|
|
359
|
+
margin-right: 16px;
|
|
360
|
+
width: 1px;
|
|
361
|
+
height: 338px;
|
|
362
|
+
background-color: $date-range-separator-color;
|
|
363
|
+
transform: translateY(12px);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.TimePanelView__body {
|
|
367
|
+
column-gap: 2px;
|
|
368
|
+
width: 68px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.TimePanelView__header {
|
|
372
|
+
border: none;
|
|
373
|
+
margin-top: 2px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.TimePanelView__column {
|
|
377
|
+
height: 298px;
|
|
378
|
+
row-gap: 2px;
|
|
379
|
+
border: none;
|
|
380
|
+
|
|
381
|
+
&:not(:last-child) {
|
|
382
|
+
border-right: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
overflow: scroll;
|
|
386
|
+
scrollbar-width: none;
|
|
387
|
+
-ms-overflow-style: none;
|
|
388
|
+
|
|
389
|
+
&::-webkit-scrollbar {
|
|
390
|
+
width: 0px;
|
|
391
|
+
height: 0px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.TimePanelView__cell {
|
|
395
|
+
padding: 0;
|
|
396
|
+
border-radius: $radius-large;
|
|
397
|
+
|
|
398
|
+
&-value {
|
|
399
|
+
padding: 6px 7px;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.TimePanelView__button_now {
|
|
405
|
+
@include calendar-button();
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.TimePanelView__button_ok {
|
|
409
|
+
@include calendar-button();
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.TimePanelView__footer {
|
|
413
|
+
margin-top: 3px;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@mixin calendar-border () {
|
|
419
|
+
.CalendarView {
|
|
420
|
+
border: none;
|
|
421
|
+
}
|
|
422
|
+
}
|
package/scss/mixins/index.scss
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@mixin navs-sizes($root) {
|
|
2
|
+
&_size {
|
|
3
|
+
&_lg {
|
|
4
|
+
.ButtonView__link {
|
|
5
|
+
padding: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#{$root}__list-item_active {
|
|
9
|
+
.ButtonView {
|
|
10
|
+
padding: 16px;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&_md {
|
|
16
|
+
.ButtonView__link {
|
|
17
|
+
padding: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#{$root}__list-item_active {
|
|
21
|
+
.ButtonView {
|
|
22
|
+
padding: 12px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&_sm {
|
|
28
|
+
.ButtonView__link {
|
|
29
|
+
padding: 8px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#{$root}__list-item_active {
|
|
33
|
+
.ButtonView {
|
|
34
|
+
padding: 8px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import-normalize;
|
|
2
|
+
|
|
3
|
+
* {
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
ul, li {
|
|
10
|
+
list-style-type: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
a {
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
color: inherit;
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
button {
|
|
20
|
+
font-family: inherit;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input {
|
|
24
|
+
outline: none;
|
|
25
|
+
}
|