@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,35 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
@use "../../scss/variables";
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--background-th: var(--light-gray);
|
|
6
|
+
--background-td-alternating: var(--additional-light-gray);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html[data-theme="dark"] {
|
|
10
|
+
--background-th: var(--additional-gray-dark);
|
|
11
|
+
--background-td-alternating: var(--graphite-dark);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
$background-th: var(--background-th);
|
|
15
|
+
$background-td-alternating: var(--background-td-alternating);
|
|
16
|
+
|
|
1
17
|
.FieldListView {
|
|
18
|
+
table {
|
|
19
|
+
width: 100%;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
border: 1px solid variables.$gray-dark;
|
|
22
|
+
border-collapse: separate;
|
|
23
|
+
border-radius: 10px;
|
|
24
|
+
border-spacing: 0;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
th:not(:last-child),
|
|
29
|
+
td:not(:last-child) {
|
|
30
|
+
border-right: 1px solid variables.$gray-dark;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
tr th {
|
|
34
|
+
border-bottom: 1px solid variables.$gray-dark;
|
|
35
|
+
background-color: $background-th;
|
|
36
|
+
color: variables.$text-color;
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
line-height: 18px;
|
|
39
|
+
}
|
|
2
40
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
border: none;
|
|
41
|
+
tr:not(:last-child) td {
|
|
42
|
+
border-bottom: 1px solid variables.$gray-dark;
|
|
6
43
|
}
|
|
7
|
-
}
|
|
8
44
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
margin-bottom: 0;
|
|
45
|
+
tfoot > tr > td {
|
|
46
|
+
border-top: 1px solid variables.$gray-dark;
|
|
12
47
|
}
|
|
13
48
|
|
|
14
|
-
|
|
15
|
-
|
|
49
|
+
tr td {
|
|
50
|
+
padding: 12px;
|
|
16
51
|
}
|
|
17
|
-
}
|
|
18
52
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
53
|
+
tr th {
|
|
54
|
+
text-align: left;
|
|
55
|
+
padding: 20px 12px;
|
|
56
|
+
}
|
|
22
57
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
58
|
+
tr td .CheckboxFieldView {
|
|
59
|
+
justify-content: center;
|
|
60
|
+
}
|
|
27
61
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
62
|
+
td {
|
|
63
|
+
background: variables.$element-background-color;
|
|
64
|
+
}
|
|
31
65
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
66
|
+
&_hasAlternatingColors {
|
|
67
|
+
tr:nth-child(even) td {
|
|
68
|
+
background-color: $background-td-alternating;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__button-add {
|
|
73
|
+
svg {
|
|
74
|
+
path {
|
|
75
|
+
stroke: variables.$primary;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
> span {
|
|
79
|
+
gap: 4px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.FieldLayoutView {
|
|
84
|
+
margin-bottom: 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -24,9 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
exports.__esModule = true;
|
|
26
26
|
var React = __importStar(require("react"));
|
|
27
|
+
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
27
28
|
function FieldSetView(props) {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
var bem = (0, hooks_1.useBem)('FieldSetView');
|
|
30
|
+
return (React.createElement("fieldset", { className: bem(bem.block(), props.className) },
|
|
31
|
+
React.createElement("legend", { className: bem.element('legend') }, props.label),
|
|
30
32
|
props.children));
|
|
31
33
|
}
|
|
32
34
|
exports["default"] = FieldSetView;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
@use "../../scss/variables";
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--legend-color: #152536;
|
|
6
|
+
--fieldset-border-color: #E6E6E6;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html[data-theme="dark"] {
|
|
10
|
+
--legend-color: #ffffff;
|
|
11
|
+
--fieldset-border-color: #595959;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
$legend-color: var(--legend-color);
|
|
15
|
+
$fieldset-border-color: var(--fieldset-border-color);
|
|
16
|
+
|
|
17
|
+
.FieldSetView{
|
|
18
|
+
border: 1px solid $fieldset-border-color;
|
|
19
|
+
border-radius: 8px;
|
|
20
|
+
|
|
21
|
+
&__legend {
|
|
22
|
+
background-color: variables.$background-color;
|
|
23
|
+
color: $legend-color;
|
|
24
|
+
|
|
25
|
+
padding: 8px;
|
|
26
|
+
margin-left: 16px;
|
|
27
|
+
|
|
28
|
+
line-height: 32px;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
font-size: 24px;
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.FieldLayoutView {
|
|
35
|
+
padding: 0px 24px 24px 24px;
|
|
36
|
+
margin-bottom: 0px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.FieldLayoutView + .FieldLayoutView {
|
|
40
|
+
padding-top: 0px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { IFileFieldItemViewProps } from '@steroidsjs/core/ui/form/FileField/FileField';
|
|
3
|
-
export default function FileFieldItemView(props: IFileFieldItemViewProps
|
|
2
|
+
export default function FileFieldItemView(props: IFileFieldItemViewProps): JSX.Element;
|
|
@@ -28,15 +28,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
exports.__esModule = true;
|
|
29
29
|
var React = __importStar(require("react"));
|
|
30
30
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
31
|
+
var FileField_1 = require("@steroidsjs/core/ui/form/FileField/FileField");
|
|
31
32
|
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
|
|
32
33
|
function FileFieldItemView(props) {
|
|
33
34
|
var bem = (0, hooks_1.useBem)('FileFieldItemView');
|
|
34
|
-
|
|
35
|
+
var isLoading = props.progress && props.progress.percent !== 100;
|
|
36
|
+
var isWall = props.filesLayout === FileField_1.FilesLayout.wall;
|
|
37
|
+
var renderLink = React.useCallback(function () { return (React.createElement("a", { className: bem.element('link'), title: props.title, href: props.error ? '#' : props.item.url, target: 'blank' }, isWall
|
|
38
|
+
? React.createElement(Icon_1["default"], { name: 'view' })
|
|
39
|
+
: props.title)); }, [bem, props.title, props.error, props.item.url, isWall]);
|
|
40
|
+
var renderProgressBar = React.useCallback(function () { return (React.createElement("div", { className: bem.element('progress-track') },
|
|
41
|
+
React.createElement("div", { className: bem.element('progress-bar'), style: { width: "".concat(props.progress.percent, "%") } }))); }, [bem, props.progress]);
|
|
42
|
+
var renderLoadingState = React.useCallback(function () { return (React.createElement("div", { className: bem.element('left') },
|
|
43
|
+
React.createElement("div", { className: bem.element('icon-wrapper', 'loading') },
|
|
44
|
+
React.createElement(Icon_1["default"], { className: bem.element('icon-loading'), name: 'loading_default' })),
|
|
45
|
+
React.createElement("div", { className: bem.element('content') },
|
|
46
|
+
React.createElement("span", { className: bem.element('title', 'loading') }, props.title),
|
|
47
|
+
renderProgressBar(),
|
|
48
|
+
React.createElement("span", { className: bem.element('loading-text') }, __('Uploading...'))))); }, [bem, props.title, renderProgressBar]);
|
|
49
|
+
var renderFileItem = React.useCallback(function () { return (React.createElement("div", { className: bem.element('left') },
|
|
35
50
|
props.image
|
|
36
|
-
? (React.createElement("
|
|
37
|
-
: (React.createElement(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
51
|
+
? (React.createElement("div", { className: bem.element('image'), style: { backgroundImage: "url(".concat(props.image.url, ")") } }))
|
|
52
|
+
: (React.createElement("div", { className: bem.element('icon-wrapper') },
|
|
53
|
+
React.createElement(Icon_1["default"], { className: bem.element('icon'), name: props.imagesOnly ? 'img_box' : 'clip' }))),
|
|
54
|
+
renderLink(),
|
|
55
|
+
React.createElement("span", { className: bem.element('title') }, props.title))); }, [bem, props.image, props.imagesOnly, props.title, renderLink]);
|
|
56
|
+
return (React.createElement("div", { className: bem.block({
|
|
57
|
+
error: !!props.error,
|
|
58
|
+
images: props.imagesOnly,
|
|
59
|
+
isWall: isWall
|
|
60
|
+
}) },
|
|
61
|
+
isLoading
|
|
62
|
+
? renderLoadingState()
|
|
63
|
+
: renderFileItem(),
|
|
64
|
+
props.showRemove && (React.createElement(Icon_1["default"], { name: props.customRemoveIcon || 'trash', className: bem.element('remove', { isLoading: isLoading }), onClick: props.onRemove })),
|
|
65
|
+
React.createElement("div", { className: bem.element('overlay') })));
|
|
41
66
|
}
|
|
42
67
|
exports["default"] = FileFieldItemView;
|
|
@@ -1,33 +1,278 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
@use '../../scss/animations' as anim;
|
|
4
|
+
|
|
5
|
+
$small-image-size: 48px;
|
|
6
|
+
$image-border-radius: 8px;
|
|
7
|
+
|
|
8
|
+
@mixin fullSize {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin textEllipsis {
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
text-overflow: ellipsis;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
1
19
|
.FileFieldItemView {
|
|
2
|
-
|
|
3
|
-
font-size: $font-size-sm;
|
|
20
|
+
$root: &;
|
|
4
21
|
|
|
5
|
-
|
|
6
|
-
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
align-items: center;
|
|
26
|
+
column-gap: 8px;
|
|
27
|
+
padding: 12px 30px 12px 12px;
|
|
28
|
+
width: 100%;
|
|
29
|
+
font-size: variables.$font-size-sm;
|
|
30
|
+
|
|
31
|
+
&_images {
|
|
32
|
+
padding: 8px;
|
|
33
|
+
border: 1px solid variables.$gray;
|
|
34
|
+
border-radius: 12px;
|
|
35
|
+
|
|
36
|
+
#{$root}__icon-wrapper {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
width: $small-image-size;
|
|
41
|
+
height: $small-image-size;
|
|
42
|
+
border-radius: $image-border-radius;
|
|
43
|
+
background-color: variables.$light-gray;
|
|
44
|
+
}
|
|
7
45
|
}
|
|
8
46
|
|
|
9
|
-
&
|
|
10
|
-
|
|
11
|
-
|
|
47
|
+
&__overlay {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&_isWall {
|
|
52
|
+
padding: 5px;
|
|
53
|
+
width: 128px;
|
|
54
|
+
height: 128px;
|
|
55
|
+
border: 1px solid variables.$gray;
|
|
56
|
+
border-radius: 20px;
|
|
57
|
+
|
|
58
|
+
#{$root}__title {
|
|
59
|
+
display: block;
|
|
60
|
+
text-align: center;
|
|
61
|
+
|
|
62
|
+
&_loading {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#{$root}__overlay {
|
|
68
|
+
display: block;
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: 0;
|
|
71
|
+
right: 0;
|
|
72
|
+
left: 0;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
z-index: 3;
|
|
75
|
+
background-color: #000;
|
|
76
|
+
opacity: 0;
|
|
77
|
+
border-radius: 20px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:hover {
|
|
81
|
+
#{$root}__overlay {
|
|
82
|
+
opacity: 0.8;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
#{$root}__link {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&#{$root}_images {
|
|
91
|
+
#{$root}__title {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#{$root}__overlay {
|
|
96
|
+
top: 5px;
|
|
97
|
+
right: 5px;
|
|
98
|
+
left: 5px;
|
|
99
|
+
bottom: 5px;
|
|
100
|
+
border-radius: 16px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
#{$root}__link {
|
|
105
|
+
@include mixins.svg-color(variables.$white);
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 52px;
|
|
108
|
+
left: 70px;
|
|
109
|
+
z-index: 4;
|
|
110
|
+
opacity: 0;
|
|
111
|
+
|
|
112
|
+
circle {
|
|
113
|
+
stroke: variables.$white;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
#{$root}__left {
|
|
118
|
+
@include fullSize;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
#{$root}__image {
|
|
124
|
+
@include fullSize;
|
|
125
|
+
border-radius: 16px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
#{$root}__remove {
|
|
129
|
+
@include mixins.svg-color(variables.$white);
|
|
130
|
+
position: absolute;
|
|
131
|
+
left: 30px;
|
|
132
|
+
z-index: 4;
|
|
133
|
+
|
|
134
|
+
&_isLoading {
|
|
135
|
+
left: 50px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
#{$root}__icon-wrapper_loading {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
#{$root}__loading-text {
|
|
144
|
+
display: block;
|
|
145
|
+
margin-top: 16px;
|
|
146
|
+
text-align: center;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#{$root}__progress-track {
|
|
150
|
+
width: 40px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
#{$root}__content {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
align-items: center;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&#{$root}_error {
|
|
160
|
+
background-color: variables.$light-gray;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&#{$root}_error {
|
|
164
|
+
#{$root}__title {
|
|
165
|
+
display: block;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&__image {
|
|
171
|
+
width: $small-image-size;
|
|
172
|
+
height: $small-image-size;
|
|
173
|
+
background-size: cover;
|
|
174
|
+
background-repeat: no-repeat;
|
|
175
|
+
background-position: center;
|
|
176
|
+
border-radius: $image-border-radius;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&__left {
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
column-gap: 8px;
|
|
12
183
|
width: 100%;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__link {
|
|
187
|
+
@include textEllipsis;
|
|
188
|
+
color: variables.$link-color;
|
|
189
|
+
|
|
190
|
+
&:hover {
|
|
191
|
+
color: variables.$link-color-hover;
|
|
192
|
+
text-decoration: none;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&__title {
|
|
197
|
+
@include textEllipsis;
|
|
198
|
+
display: none;
|
|
199
|
+
|
|
200
|
+
&_loading {
|
|
201
|
+
display: block;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&_error {
|
|
206
|
+
@include mixins.svg-color(variables.$danger);
|
|
207
|
+
|
|
208
|
+
#{$root}__icon {
|
|
209
|
+
circle {
|
|
210
|
+
fill: variables.$danger;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
#{$root}__title {
|
|
215
|
+
color: variables.$danger;
|
|
216
|
+
}
|
|
13
217
|
|
|
14
|
-
|
|
15
|
-
|
|
218
|
+
a,
|
|
219
|
+
a:hover {
|
|
220
|
+
color: variables.$danger;
|
|
221
|
+
cursor: default;
|
|
222
|
+
pointer-events: none;
|
|
16
223
|
}
|
|
17
224
|
}
|
|
18
225
|
|
|
226
|
+
&__icon {
|
|
227
|
+
height: 25px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&:hover &__remove {
|
|
231
|
+
opacity: 1;
|
|
232
|
+
}
|
|
233
|
+
|
|
19
234
|
&__text {
|
|
20
235
|
max-height: 80px;
|
|
21
236
|
overflow: hidden;
|
|
22
237
|
}
|
|
23
238
|
|
|
24
239
|
&__remove {
|
|
25
|
-
|
|
26
|
-
top: 0;
|
|
27
|
-
righT: 0;
|
|
28
|
-
display: none;
|
|
240
|
+
opacity: 0;
|
|
29
241
|
cursor: pointer;
|
|
30
|
-
padding: 10px;
|
|
31
242
|
z-index: 3;
|
|
243
|
+
height: 25px;
|
|
244
|
+
|
|
245
|
+
svg {
|
|
246
|
+
width: 25px;
|
|
247
|
+
height: 25px;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&__icon-loading {
|
|
252
|
+
@include anim.loadingAnimation;
|
|
253
|
+
display: block;
|
|
254
|
+
width: 24px;
|
|
255
|
+
height: 24px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&__loading-text {
|
|
259
|
+
display: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&__content {
|
|
263
|
+
width: 100%;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&__progress-track {
|
|
267
|
+
margin-top: 4px;
|
|
268
|
+
height: 4px;
|
|
269
|
+
background-color: variables.$gray;
|
|
270
|
+
border-radius: 4px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&__progress-bar {
|
|
274
|
+
height: inherit;
|
|
275
|
+
background-color: variables.$primary;
|
|
276
|
+
border-radius: 4px;
|
|
32
277
|
}
|
|
33
278
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { IFileFieldViewProps } from '@steroidsjs/core/ui/form/FileField/FileField';
|
|
3
|
-
export default function FileFieldView(props: IFileFieldViewProps
|
|
2
|
+
export default function FileFieldView(props: IFileFieldViewProps): JSX.Element;
|
|
@@ -39,17 +39,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
exports.__esModule = true;
|
|
40
40
|
var React = __importStar(require("react"));
|
|
41
41
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
42
|
-
var
|
|
42
|
+
var FileField_1 = require("@steroidsjs/core/ui/form/FileField/FileField");
|
|
43
43
|
var Button_1 = __importDefault(require("@steroidsjs/core/ui/form/Button"));
|
|
44
44
|
function FileFieldView(props) {
|
|
45
45
|
var bem = (0, hooks_1.useBem)('FileFieldView');
|
|
46
|
-
var
|
|
46
|
+
var ButtonView = props.buttonView || Button_1["default"];
|
|
47
47
|
var FileItemView = props.itemView;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
React.createElement(
|
|
51
|
-
|
|
52
|
-
React.createElement(Icon_1["default"], { className: bem.element('button-icon'), name: props.imagesOnly ? 'file-image' : 'upload' }),
|
|
53
|
-
React.createElement("span", { className: bem.element('button-label') }, props.buttonProps.label)))));
|
|
48
|
+
var isWall = props.filesLayout === FileField_1.FilesLayout.wall;
|
|
49
|
+
return (React.createElement("div", { className: bem(bem.block({ isWall: isWall }), props.className) },
|
|
50
|
+
React.createElement(ButtonView, __assign({ className: bem.element('button', { isWall: isWall }), icon: isWall ? 'add' : 'import' }, props.buttonProps)),
|
|
51
|
+
React.createElement("div", { className: bem(bem.element('files')) }, props.items.map(function (item) { return (React.createElement(FileItemView, __assign({ key: item.uid, filesLayout: props.filesLayout, imagesOnly: props.imagesOnly, customRemoveIcon: props.customRemoveIcon }, item, props.itemProps))); }))));
|
|
54
52
|
}
|
|
55
53
|
exports["default"] = FileFieldView;
|
|
@@ -1,15 +1,47 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
.FileFieldView {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
$root: &;
|
|
5
|
+
|
|
6
|
+
&__files {
|
|
7
|
+
margin-bottom: 1em;
|
|
8
|
+
display: flex;
|
|
9
|
+
row-gap: 8px;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&_isWall {
|
|
15
|
+
display: flex;
|
|
16
|
+
column-gap: 10px;
|
|
17
|
+
|
|
18
|
+
#{$root}__files {
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
column-gap: 10px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__button {
|
|
25
|
+
margin-bottom: 16px;
|
|
26
|
+
min-width: 200px;
|
|
27
|
+
|
|
28
|
+
&_isWall {
|
|
29
|
+
min-width: auto;
|
|
30
|
+
width: 128px;
|
|
31
|
+
height: 128px;
|
|
32
|
+
border: 1px dashed #6F6B76;
|
|
33
|
+
background-color: variables.$gray;
|
|
34
|
+
border-radius: 20px;
|
|
35
|
+
|
|
36
|
+
.ButtonView__label {
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
row-gap: 10px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ButtonView__icon {
|
|
44
|
+
width: 25px;
|
|
45
|
+
height: 25px;
|
|
46
|
+
}
|
|
15
47
|
}
|
package/form/Form/FormView.js
CHANGED
|
@@ -58,10 +58,7 @@ function FormView(props) {
|
|
|
58
58
|
}, 10);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return (React.createElement("form", { ref: formRef, className: bem(bem.block(
|
|
62
|
-
border: props.isBordered,
|
|
63
|
-
inline: props.layout.layout === 'inline'
|
|
64
|
-
}), props.className, props.layout.layout === 'horizontal' && 'form-horizontal'), onSubmit: props.onSubmit, style: props.style },
|
|
61
|
+
return (React.createElement("form", { ref: formRef, className: bem(bem.block(), props.className), onSubmit: props.onSubmit, style: props.style },
|
|
65
62
|
props.children,
|
|
66
63
|
(props.fields || []).map(function (field, index) { return (React.createElement(Field_1["default"], __assign({ key: index }, ((0, isString_1["default"])(field) ? { attribute: field } : field)))); }),
|
|
67
64
|
props.submitLabel && (React.createElement(Button_1["default"], { type: 'submit', label: props.submitLabel }))));
|
package/form/Form/FormView.scss
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
.FormView {
|
|
2
|
-
&_border {
|
|
3
|
-
padding: 20px;
|
|
4
|
-
border: 1px solid $border-default;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
box-shadow: $shadow-default;
|
|
7
|
-
border-radius: 0.5rem;
|
|
8
|
-
}
|
|
9
|
-
&_inline {
|
|
10
2
|
display: flex;
|
|
11
|
-
|
|
12
|
-
align-items: flex-start;
|
|
13
|
-
}
|
|
14
|
-
.form-control {
|
|
15
|
-
display: flex;
|
|
16
|
-
}
|
|
3
|
+
flex-flow: column nowrap;
|
|
17
4
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { IHtmlFieldViewProps } from '@steroidsjs/core/ui/form/HtmlField/HtmlField';
|
|
3
|
-
export default function HtmlFieldView(props: IHtmlFieldViewProps
|
|
2
|
+
export default function HtmlFieldView(props: IHtmlFieldViewProps): JSX.Element;
|