@steroidsjs/bootstrap 3.0.0-beta.9 → 3.0.0-beta.90
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 +262 -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 +72 -24
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +43 -48
- package/content/Badge/BadgeView.d.ts +0 -1
- package/content/Badge/BadgeView.js +8 -7
- package/content/Badge/BadgeView.scss +141 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +248 -175
- package/content/Calendar/CaptionElement.js +23 -15
- package/content/Calendar/CaptionElement.scss +167 -106
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -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 +79 -57
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +7 -4
- package/content/DropDown/DropDownView.scss +208 -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 +67 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +33 -0
- package/content/Menu/MenuView.scss +46 -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 +199 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +176 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +6 -4
- package/form/CheckboxField/CheckboxFieldView.scss +198 -37
- 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 +15 -70
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +42 -73
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +6 -6
- package/form/DateTimeField/DateTimeFieldView.scss +13 -107
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +32 -87
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +382 -181
- 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 +220 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +116 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +18 -38
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +75 -24
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +42 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +259 -14
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +45 -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 +267 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +197 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +238 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +228 -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 +118 -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 +338 -299
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +192 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +147 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/form/TimeField/TimeFieldView.js +16 -14
- package/form/TimeField/TimeFieldView.scss +22 -68
- package/form/TimeField/TimePanelView.scss +65 -68
- package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
- package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
- package/form/TimeRangeField/TimeRangeFieldView.scss +81 -0
- package/icons/index.d.ts +2 -0
- package/icons/index.js +110 -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 +5 -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/burger.svg +5 -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/facebook.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/instagram.svg +5 -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/sort.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/telegram.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/vk.svg +3 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/icons/svgs/whatsapp.svg +7 -0
- package/index.d.ts +41 -2
- package/index.js +43 -4
- package/index.scss +91 -68
- package/layout/Header/HeaderView.js +43 -6
- package/layout/Header/HeaderView.scss +138 -23
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +70 -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/CircleProgressBarView.scss +9 -7
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.scss +10 -8
- package/layout/Sidebar/FooterIcons/FooterIcons.d.ts +10 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.js +54 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.scss +36 -0
- package/layout/Sidebar/FooterIcons/index.d.ts +2 -0
- package/layout/Sidebar/FooterIcons/index.js +7 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.d.ts +10 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.js +44 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +52 -0
- package/layout/Sidebar/SidebarLogo/index.d.ts +2 -0
- package/layout/Sidebar/SidebarLogo/index.js +7 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.d.ts +11 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.js +53 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.scss +45 -0
- package/layout/Sidebar/SidebarUser/index.d.ts +2 -0
- package/layout/Sidebar/SidebarUser/index.js +7 -0
- package/layout/Sidebar/SidebarView.d.ts +2 -0
- package/layout/Sidebar/SidebarView.js +26 -0
- package/layout/Sidebar/SidebarView.scss +304 -0
- package/layout/Sidebar/index.d.ts +2 -0
- package/layout/Sidebar/index.js +7 -0
- package/layout/Skeleton/SkeletonView.scss +7 -5
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +46 -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 +5 -1
- package/list/FlexGrid/FlexGridView.d.ts +2 -0
- package/list/FlexGrid/FlexGridView.js +71 -0
- package/list/FlexGrid/FlexGridView.scss +60 -0
- package/list/Grid/GridView.js +10 -4
- package/list/Grid/GridView.scss +153 -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 +88 -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 +28 -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/list/PaginationSize/PaginationSizeView.js +5 -5
- package/list/PaginationSize/PaginationSizeView.scss +0 -8
- package/list/Steps/StepItemView.scss +13 -12
- package/list/Steps/StepsView.scss +3 -1
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +5 -8
- package/modal/Modal/ModalView.scss +140 -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 +84 -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 +35 -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 +21 -2
- package/nav/Nav/NavIconView.scss +33 -6
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavLinkView.js +9 -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 +50 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +63 -54
- package/package.json +8 -6
- 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 +83 -24
- package/scss/mixins/customMixins.scss +6 -0
- package/scss/mixins/date.scss +436 -0
- package/scss/mixins/index.scss +6 -2
- package/scss/mixins/navs.scss +39 -0
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +29 -0
- package/scss/normalize.scss +25 -0
- package/scss/variables/common/colors.scss +199 -83
- package/scss/variables/common/media.scss +3 -0
- package/scss/variables/common/typography.scss +99 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/calendar.scss +8 -6
- package/scss/variables/components/input.scss +10 -7
- package/scss/variables/components/ratefield.scss +3 -1
- package/scss/variables/index.scss +10 -11
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +19 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +19 -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 -259
- 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
|
@@ -1,133 +1,194 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--caption-arrow-background-color: #f1f5f7;
|
|
6
|
+
--caption-arrow-color: #323232;
|
|
7
|
+
--caption-header-month-background-color: #f1f5f7;
|
|
8
|
+
--separator-background-color: rgba(0, 0, 0, 0.1);
|
|
9
|
+
}
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
html[data-theme="dark"] {
|
|
12
|
+
--caption-arrow-background-color: var(--gray);
|
|
13
|
+
--caption-arrow-color: #ffffff;
|
|
14
|
+
--caption-header-month-background-color: #333646;
|
|
15
|
+
--separator-background-color: rgba(255, 255, 255, 0.1);
|
|
16
|
+
}
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
$caption-arrow-background-color: var(--caption-arrow-background-color);
|
|
19
|
+
$caption-arrow-color: var(--caption-arrow-color);
|
|
20
|
+
$caption-header-month-background-color: var(--caption-header-month-background-color);
|
|
21
|
+
$separator-background-color: var(--separator-background-color);
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
.CaptionElement {
|
|
24
|
+
$root: &;
|
|
25
|
+
|
|
26
|
+
height: 24px;
|
|
27
|
+
width: 100%;
|
|
18
28
|
display: flex;
|
|
19
|
-
|
|
20
|
-
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
margin-bottom: 16px;
|
|
31
|
+
|
|
32
|
+
&__container {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
|
|
38
|
+
&-icons {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-flow: row nowrap;
|
|
41
|
+
column-gap: 8px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
21
44
|
|
|
22
|
-
|
|
23
|
-
|
|
45
|
+
&__content-container {
|
|
46
|
+
margin-right: auto;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
24
50
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
}
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
transition: color 0.1s ease-in;
|
|
29
53
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: center;
|
|
54
|
+
font-weight: variables.$font-weight-lg;
|
|
55
|
+
font-size: variables.$font-size-lg;
|
|
56
|
+
line-height: variables.$line-height-lg;
|
|
35
57
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
58
|
+
&:hover,
|
|
59
|
+
&:active,
|
|
60
|
+
&:focus {
|
|
61
|
+
color: variables.$calendar-primary-color;
|
|
62
|
+
}
|
|
40
63
|
}
|
|
41
64
|
|
|
42
|
-
&
|
|
43
|
-
|
|
65
|
+
&__button {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
width: 24px;
|
|
68
|
+
height: 24px;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
|
|
73
|
+
rect {
|
|
74
|
+
fill: $caption-arrow-background-color;
|
|
75
|
+
}
|
|
76
|
+
path {
|
|
77
|
+
stroke: $caption-arrow-color;
|
|
78
|
+
}
|
|
44
79
|
}
|
|
45
80
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__selected-month, &__selected-year {
|
|
52
|
-
font-size: 16px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&__selected-month {
|
|
56
|
-
margin-right: 5px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Panel changing Month/Year
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
&__panel {
|
|
63
|
-
z-index: 10;
|
|
64
|
-
position: absolute;
|
|
65
|
-
top: 45px;
|
|
66
|
-
left: 0;
|
|
67
|
-
right: 0;
|
|
68
|
-
bottom: 50px;
|
|
69
|
-
background-color: $white;
|
|
70
|
-
|
|
71
|
-
display: grid;
|
|
72
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
73
|
-
grid-template-rows: 0fr 1fr;
|
|
74
|
-
gap: 0 0;
|
|
75
|
-
grid-template-areas:
|
|
76
|
-
"HeaderMonths HeaderMonths HeaderYears"
|
|
77
|
-
"Months1stCol Months2ndCol YearsCol";
|
|
78
|
-
|
|
79
|
-
&_full-height {
|
|
80
|
-
bottom: 0;
|
|
81
|
+
&__selected-month,
|
|
82
|
+
&__selected-year {
|
|
83
|
+
font-size: inherit;
|
|
81
84
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&__panel-header {
|
|
85
|
-
padding: 5px;
|
|
86
|
-
|
|
87
|
-
text-align: center;
|
|
88
|
-
border-bottom: 1px solid $border-color;
|
|
89
|
-
background-color: $calendar-primary-light-color;
|
|
90
85
|
|
|
91
|
-
&
|
|
92
|
-
|
|
93
|
-
border-right: 1px solid $border-color;
|
|
86
|
+
&__selected-month {
|
|
87
|
+
margin-right: 5px;
|
|
94
88
|
}
|
|
95
89
|
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
// Panel changing Month/Year
|
|
91
|
+
&__panel {
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
z-index: 10;
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: 45px;
|
|
98
|
+
left: 0;
|
|
99
|
+
right: 0;
|
|
100
|
+
bottom: 50px;
|
|
101
|
+
background-color: variables.$element-background-color;
|
|
102
|
+
margin-bottom: 12px;
|
|
103
|
+
max-height: 294px;
|
|
104
|
+
|
|
105
|
+
display: grid;
|
|
106
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
107
|
+
grid-template-rows: 0fr 1fr;
|
|
108
|
+
gap: 0 0;
|
|
109
|
+
grid-template-areas:
|
|
110
|
+
"HeaderMonths HeaderMonths HeaderYears"
|
|
111
|
+
"Months1stCol Months2ndCol YearsCol";
|
|
112
|
+
|
|
113
|
+
&_full-height {
|
|
114
|
+
bottom: 0;
|
|
115
|
+
}
|
|
98
116
|
}
|
|
99
|
-
}
|
|
100
117
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
118
|
+
&__panel-header {
|
|
119
|
+
padding: 5px;
|
|
120
|
+
|
|
121
|
+
text-align: center;
|
|
122
|
+
background-color: $caption-header-month-background-color;
|
|
123
|
+
font-weight: variables.$font-weight-lg;
|
|
124
|
+
|
|
125
|
+
&_months {
|
|
126
|
+
position: relative;
|
|
127
|
+
grid-area: HeaderMonths;
|
|
128
|
+
border-radius: 8px 0px 0px 8px;
|
|
129
|
+
|
|
130
|
+
//Separator
|
|
131
|
+
&::before {
|
|
132
|
+
display: block;
|
|
133
|
+
content: "";
|
|
134
|
+
position: absolute;
|
|
135
|
+
width: 1px;
|
|
136
|
+
height: 20px;
|
|
137
|
+
top: 50%;
|
|
138
|
+
right: 0;
|
|
139
|
+
background-color: $separator-background-color;
|
|
140
|
+
transform: translateY(-50%);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&_years {
|
|
145
|
+
grid-area: HeaderYears;
|
|
146
|
+
border-radius: 0px 8px 8px 0px;
|
|
147
|
+
}
|
|
106
148
|
}
|
|
107
149
|
|
|
108
|
-
&
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
150
|
+
&__panel-column {
|
|
151
|
+
&-months {
|
|
152
|
+
border-right: 1px solid $separator-background-color;
|
|
112
153
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
overflow: auto;
|
|
117
|
-
}
|
|
154
|
+
&_first {
|
|
155
|
+
grid-area: Months1stCol;
|
|
156
|
+
}
|
|
118
157
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
158
|
+
&_second {
|
|
159
|
+
grid-area: Months2ndCol;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
122
162
|
|
|
123
|
-
|
|
124
|
-
|
|
163
|
+
&-years {
|
|
164
|
+
grid-area: YearsCol;
|
|
165
|
+
@include mixins.scrollWrapper(294px, 0, variables.$scroll-thumb-color, variables.$scroll-track-color);
|
|
166
|
+
}
|
|
125
167
|
}
|
|
126
168
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
169
|
+
&__panel-cell {
|
|
170
|
+
&:first-child{
|
|
171
|
+
margin-top: 10px;
|
|
172
|
+
}
|
|
173
|
+
display: block;
|
|
174
|
+
width: fit-content;
|
|
175
|
+
background-color: variables.$element-background-color;
|
|
176
|
+
padding: 4px 8px;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
transition: background-color 0.1s ease-in;
|
|
179
|
+
margin: 0 auto;
|
|
180
|
+
border-radius: variables.$radius-large;
|
|
181
|
+
|
|
182
|
+
&_selected {
|
|
183
|
+
background-color: variables.$primary-light;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
background-color: variables.$primary-light;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
#{$root}__cell-value {
|
|
191
|
+
text-align: center;
|
|
192
|
+
}
|
|
131
193
|
}
|
|
132
|
-
}
|
|
133
194
|
}
|
package/content/Card/CardView.js
CHANGED
|
@@ -1,27 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
exports.__esModule = true;
|
|
6
17
|
var react_1 = __importDefault(require("react"));
|
|
7
18
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
19
|
+
var form_1 = require("@steroidsjs/core/ui/form");
|
|
20
|
+
var Avatar_1 = __importDefault(require("@steroidsjs/core/ui/content/Avatar/Avatar"));
|
|
21
|
+
var nav_1 = require("@steroidsjs/core/ui/nav");
|
|
22
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
8
23
|
function CardView(props) {
|
|
9
24
|
var bem = (0, hooks_1.useBem)('CardView');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
var hasContent = !!(props.title || props.buttons || props.links || props.description || props.children);
|
|
26
|
+
return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: props.style },
|
|
27
|
+
props.header && (react_1["default"].createElement("div", { className: bem.element('header', {
|
|
28
|
+
withoutCover: !props.cover && hasContent
|
|
29
|
+
}) },
|
|
30
|
+
react_1["default"].createElement("div", { className: bem.element('header-data') },
|
|
31
|
+
props.header.avatar && (react_1["default"].createElement(Avatar_1["default"], __assign({}, props.header.avatar, { className: bem(props.header.avatar.className, bem.element('header-avatar')) }))),
|
|
32
|
+
react_1["default"].createElement("div", { className: bem.element('header-text-content') },
|
|
33
|
+
react_1["default"].createElement("h3", { className: bem.element('header-head') }, props.header.head),
|
|
34
|
+
react_1["default"].createElement("p", { className: bem.element('header-subhead') }, props.header.subhead))),
|
|
35
|
+
props.header.menu && (react_1["default"].createElement("div", { className: bem.element('header-menu'), role: 'button' },
|
|
36
|
+
react_1["default"].createElement(content_1.Menu, __assign({}, props.header.menu)))))),
|
|
17
37
|
props.cover && (react_1["default"].createElement("div", { className: bem.element('cover') },
|
|
18
|
-
react_1["default"].createElement("img", { src: props.cover, alt: 'cover
|
|
19
|
-
react_1["default"].createElement("div", { className: bem.element('content') },
|
|
20
|
-
props.title && (react_1["default"].createElement("
|
|
38
|
+
react_1["default"].createElement("img", { src: props.cover, alt: 'Card cover img' }))),
|
|
39
|
+
hasContent && (react_1["default"].createElement("div", { className: bem.element('content') },
|
|
40
|
+
props.title && (react_1["default"].createElement("h3", { className: bem.element('title') }, props.title)),
|
|
21
41
|
react_1["default"].createElement("div", { className: bem.element('content-inner') },
|
|
22
|
-
react_1["default"].createElement(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
42
|
+
props.description && (react_1["default"].createElement("p", { className: bem.element('description') }, props.description)),
|
|
43
|
+
props.buttons && (react_1["default"].createElement("div", { className: bem.element('buttons') }, props.buttons.map(function (button, buttonIndex) { return (react_1["default"].createElement(form_1.Button, __assign({}, button, { key: buttonIndex }))); }))),
|
|
44
|
+
props.links && (react_1["default"].createElement("div", { className: bem.element('links') }, props.links.map(function (link, linkIndex) { return (react_1["default"].createElement(nav_1.Link, __assign({}, link, { key: linkIndex }))); }))),
|
|
45
|
+
props.children))),
|
|
46
|
+
props.footer && (react_1["default"].createElement("div", { className: bem.element('footer') },
|
|
47
|
+
react_1["default"].createElement("h3", { className: bem.element('footer-head') }, props.footer.head),
|
|
48
|
+
react_1["default"].createElement("p", { className: bem.element('footer-subhead') }, props.footer.subhead)))));
|
|
26
49
|
}
|
|
27
50
|
exports["default"] = CardView;
|
|
@@ -1,154 +1,185 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--card-footer-background-color: var(--additional-light-blue);
|
|
5
|
+
--card-dots-color: #323232;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-theme="dark"] {
|
|
9
|
+
--card-footer-background-color: var(--gray-dark);
|
|
10
|
+
--card-dots-color: #ffffff;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
$card-footer-background-color: var(--card-footer-background-color);
|
|
14
|
+
$card-dots-color: var(--card-dots-color);
|
|
15
|
+
|
|
16
|
+
%headTemplate {
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
font-size: variables.$font-size-lg;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
%subheadTemplate {
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
font-size: variables.$font-size-xs;
|
|
25
|
+
line-height: 16px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
%dotTemplate {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: 4px;
|
|
31
|
+
height: 4px;
|
|
32
|
+
background-color: $card-dots-color;
|
|
33
|
+
border-radius: variables.$radius-circle;
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
.CardView {
|
|
2
37
|
$root: &;
|
|
3
38
|
|
|
4
|
-
background: $white;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
height: fit-content;
|
|
7
|
-
position: relative;
|
|
8
39
|
display: flex;
|
|
9
|
-
flex-
|
|
40
|
+
flex-flow: column;
|
|
10
41
|
overflow: hidden;
|
|
42
|
+
height: fit-content;
|
|
11
43
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
44
|
+
border: 1px solid variables.$element-border-color;
|
|
45
|
+
border-radius: variables.$radius-large;
|
|
46
|
+
color: variables.$text-color;
|
|
47
|
+
background-color: variables.$element-background-color;
|
|
16
48
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
49
|
+
&__header {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-flow: row nowrap;
|
|
52
|
+
justify-content: space-between;
|
|
21
53
|
|
|
22
|
-
|
|
23
|
-
|
|
54
|
+
padding: 18px;
|
|
55
|
+
padding-bottom: 20px;
|
|
24
56
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
57
|
+
&_withoutCover {
|
|
58
|
+
padding-bottom: 3px;
|
|
59
|
+
}
|
|
28
60
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
61
|
+
&-data {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-flow: row nowrap;
|
|
64
|
+
align-items: center;
|
|
65
|
+
column-gap: 8px;
|
|
66
|
+
}
|
|
33
67
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
68
|
+
&-avatar {
|
|
69
|
+
margin-right: 2px;
|
|
37
70
|
}
|
|
38
|
-
}
|
|
39
71
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
72
|
+
&-text-content {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-flow: column nowrap;
|
|
43
75
|
}
|
|
44
|
-
}
|
|
45
76
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
border: 1px solid $border-default;
|
|
77
|
+
&-head {
|
|
78
|
+
@extend %headTemplate;
|
|
49
79
|
}
|
|
50
80
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@include card-border-theme($root, $value)
|
|
54
|
-
}
|
|
81
|
+
&-subhead {
|
|
82
|
+
@extend %subheadTemplate;
|
|
55
83
|
}
|
|
56
84
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
85
|
+
&-menu {
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
|
|
91
|
+
.MenuView__icon {
|
|
92
|
+
width: 24px;
|
|
93
|
+
height: 24px;
|
|
94
|
+
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
align-items: center;
|
|
98
|
+
|
|
99
|
+
rect {
|
|
100
|
+
fill: $card-dots-color;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
svg {
|
|
104
|
+
transform: translateX(5px);
|
|
105
|
+
}
|
|
60
106
|
}
|
|
61
107
|
}
|
|
62
108
|
}
|
|
63
109
|
|
|
64
|
-
&
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
110
|
+
&__cover {
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 227px;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
border-radius: variables.$radius-large;
|
|
68
115
|
|
|
69
|
-
|
|
70
|
-
|
|
116
|
+
img {
|
|
117
|
+
display: block;
|
|
118
|
+
width: 100%;
|
|
119
|
+
height: 100%;
|
|
120
|
+
object-fit: cover;
|
|
71
121
|
}
|
|
72
122
|
}
|
|
73
123
|
|
|
74
|
-
&__content
|
|
75
|
-
|
|
76
|
-
grid-row-gap: 16px;
|
|
124
|
+
&__content {
|
|
125
|
+
padding: 16px;
|
|
77
126
|
}
|
|
78
127
|
|
|
79
|
-
&
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
width: 100%;
|
|
84
|
-
word-break: break-all;
|
|
128
|
+
&__content-inner {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-flow: column nowrap;
|
|
131
|
+
row-gap: 16px;
|
|
85
132
|
}
|
|
86
133
|
|
|
87
|
-
&
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
border-bottom: 1px solid $border-default;
|
|
91
|
-
font-weight: bold;
|
|
92
|
-
font-size: $card-header-font-size;
|
|
93
|
-
line-height: $card-header-line-height;
|
|
94
|
-
word-break: break-all;
|
|
134
|
+
&__title {
|
|
135
|
+
@extend %headTemplate;
|
|
136
|
+
margin-bottom: 8px;
|
|
95
137
|
}
|
|
96
138
|
|
|
97
|
-
&
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
border-top: 1px solid $border-default;
|
|
101
|
-
font-weight: bold;
|
|
102
|
-
font-size: $card-header-font-size;
|
|
103
|
-
line-height: $card-header-line-height;
|
|
104
|
-
word-break: break-all;
|
|
139
|
+
&__description {
|
|
140
|
+
font-size: variables.$font-size-base;
|
|
141
|
+
line-height: 22px;
|
|
105
142
|
}
|
|
106
143
|
|
|
107
|
-
&
|
|
108
|
-
|
|
144
|
+
&__buttons {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-flow: row wrap;
|
|
147
|
+
$columnGap: 8px;
|
|
148
|
+
row-gap: 8px;
|
|
149
|
+
column-gap: $columnGap;
|
|
150
|
+
|
|
151
|
+
button:only-of-type {
|
|
152
|
+
width: 100%;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
button:not(:only-of-type) {
|
|
156
|
+
width: calc(50% - $columnGap / 2);
|
|
157
|
+
}
|
|
109
158
|
}
|
|
110
159
|
|
|
111
|
-
&
|
|
160
|
+
&__links {
|
|
112
161
|
display: flex;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
font-size: $card-title-font-size;
|
|
116
|
-
line-height: $card-title-line-height;
|
|
117
|
-
border-bottom: 8px;
|
|
118
|
-
margin-bottom: 8px;
|
|
119
|
-
}
|
|
162
|
+
flex-flow: row wrap;
|
|
163
|
+
column-gap: 16px;
|
|
120
164
|
|
|
121
|
-
|
|
122
|
-
|
|
165
|
+
a {
|
|
166
|
+
line-height: 18px;
|
|
167
|
+
}
|
|
123
168
|
}
|
|
124
169
|
|
|
125
|
-
|
|
170
|
+
&__footer {
|
|
126
171
|
display: flex;
|
|
127
|
-
flex-
|
|
128
|
-
justify-content: center;
|
|
129
|
-
align-items: center;
|
|
130
|
-
padding: 10px 20px;
|
|
131
|
-
position: static;
|
|
132
|
-
width: 140px;
|
|
133
|
-
height: 28px;
|
|
134
|
-
border: none;
|
|
135
|
-
color: $white;
|
|
136
|
-
background: $primary;
|
|
137
|
-
border-radius: $card-button-border-radius;
|
|
138
|
-
}
|
|
172
|
+
flex-flow: column wrap;
|
|
139
173
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
width: 100%;
|
|
143
|
-
height: 100%;
|
|
144
|
-
object-fit: cover;
|
|
145
|
-
}
|
|
174
|
+
padding: 16px;
|
|
175
|
+
background-color: $card-footer-background-color;
|
|
146
176
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
177
|
+
&-head {
|
|
178
|
+
@extend %headTemplate;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&-subhead {
|
|
182
|
+
@extend %subheadTemplate;
|
|
183
|
+
}
|
|
153
184
|
}
|
|
154
185
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
8
|
+
var renderIcon_1 = __importDefault(require("../../utils/renderIcon"));
|
|
9
|
+
function CopyToClipboardView(props) {
|
|
10
|
+
var bem = (0, useBem_1["default"])('CopyToClipboardView');
|
|
11
|
+
return (react_1["default"].createElement("div", { className: bem(bem.block({
|
|
12
|
+
disabled: props.disabled
|
|
13
|
+
})), onClick: props.onClick },
|
|
14
|
+
props.children,
|
|
15
|
+
props.showCopyIcon && (0, renderIcon_1["default"])(props.icon || 'copy', {
|
|
16
|
+
className: bem.element('icon')
|
|
17
|
+
})));
|
|
18
|
+
}
|
|
19
|
+
exports["default"] = CopyToClipboardView;
|