@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
package/nav/Nav/NavLinkView.js
CHANGED
|
@@ -42,8 +42,14 @@ var Button_1 = __importDefault(require("@steroidsjs/core/ui/form/Button"));
|
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function NavLinkView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavLinkView');
|
|
45
|
-
return (React.createElement("div", { className: bem(bem.block(
|
|
46
|
-
|
|
45
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
46
|
+
size: props.size
|
|
47
|
+
}), props.className) },
|
|
48
|
+
React.createElement("ul", { className: bem.element('list') }, props.items.map(function (item, index) { return (React.createElement("li", { key: item.id || index, className: bem(bem.element('list-item', {
|
|
49
|
+
active: item.isActive,
|
|
50
|
+
disabled: item.disabled
|
|
51
|
+
}), props.navClassName) },
|
|
52
|
+
React.createElement(Button_1["default"], __assign({ link: true, onClick: function () { return props.onClick(item, index); } }, item)))); })),
|
|
47
53
|
React.createElement("div", { className: bem.element('content') }, props.children)));
|
|
48
54
|
}
|
|
49
55
|
exports["default"] = NavLinkView;
|
package/nav/Nav/NavLinkView.scss
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
.NavLinkView {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
&__list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-flow: row nowrap;
|
|
5
|
+
column-gap: 24px;
|
|
6
|
+
|
|
7
|
+
&-item {
|
|
8
|
+
&_disabled {
|
|
9
|
+
cursor: not-allowed;
|
|
10
|
+
.ButtonView {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
5
15
|
}
|
|
6
|
-
|
|
7
|
-
}
|
|
16
|
+
}
|
package/nav/Nav/NavListView.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
|
|
3
|
-
export default function NavListView(props: INavViewProps
|
|
2
|
+
export default function NavListView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavListView.js
CHANGED
|
@@ -42,16 +42,20 @@ var Link_1 = __importDefault(require("@steroidsjs/core/ui/nav/Link"));
|
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function NavListView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavListView');
|
|
45
|
-
var renderItems = function (items) {
|
|
45
|
+
var renderItems = function (items, parentItemProps) {
|
|
46
|
+
if (parentItemProps === void 0) { parentItemProps = null; }
|
|
46
47
|
if (!items || items.length === 0) {
|
|
47
48
|
return null;
|
|
48
49
|
}
|
|
49
|
-
return items.map(function (item, index) { return (React.createElement("li", { key: index, className: bem(
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
return items.map(function (item, index) { return (React.createElement("li", { key: item.id || index, className: bem(bem.element('list-item', {
|
|
51
|
+
active: item.isActive,
|
|
52
|
+
disabled: item.disabled
|
|
53
|
+
}), props.navClassName) },
|
|
54
|
+
React.createElement(Link_1["default"], __assign({ onClick: function () { return props.onClick(item, index); } }, item, { disabled: (parentItemProps === null || parentItemProps === void 0 ? void 0 : parentItemProps.disabled) || item.disabled })),
|
|
55
|
+
item.items && item.items.length > 0 && (React.createElement("ul", { className: bem.element('sub-list') }, renderItems(item.items, item))))); });
|
|
52
56
|
};
|
|
53
|
-
return (React.createElement("
|
|
54
|
-
renderItems(props.items),
|
|
55
|
-
props.children));
|
|
57
|
+
return (React.createElement("div", { className: bem(bem.block(), props.className) },
|
|
58
|
+
React.createElement("ul", { className: bem.element('list') }, renderItems(props.items)),
|
|
59
|
+
React.createElement("div", { className: bem.element('content') }, props.children)));
|
|
56
60
|
}
|
|
57
61
|
exports["default"] = NavListView;
|
package/nav/Nav/NavListView.scss
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
.NavListView {
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
&__list{
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: column nowrap;
|
|
6
|
+
}
|
|
3
7
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
margin-left: 15px;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
8
|
+
&__sub-list {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-flow: column;
|
|
11
|
+
padding: 5px;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/nav/Nav/NavTabsView.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
|
|
3
|
-
export default function NavTabsView(props: INavViewProps
|
|
2
|
+
export default function NavTabsView(props: INavViewProps): JSX.Element;
|
package/nav/Nav/NavTabsView.js
CHANGED
|
@@ -42,9 +42,14 @@ var Button_1 = __importDefault(require("@steroidsjs/core/ui/form/Button"));
|
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function NavTabsView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('NavTabsView');
|
|
45
|
-
return (React.createElement("div", { className: bem(bem.block(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
props.
|
|
45
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
46
|
+
size: props.size
|
|
47
|
+
}), props.className) },
|
|
48
|
+
React.createElement("ul", { className: bem.element('list') }, props.items.map(function (item, index) { return (React.createElement("li", { key: item.id || index, className: bem(bem.element('list-item', {
|
|
49
|
+
active: item.isActive,
|
|
50
|
+
disabled: item.disabled
|
|
51
|
+
}), props.navClassName) },
|
|
52
|
+
React.createElement(Button_1["default"], __assign({ size: props.size, link: !item.isActive, onClick: function () { return props.onClick(item, index); } }, item)))); })),
|
|
53
|
+
React.createElement("div", { className: bem.element('content') }, props.children)));
|
|
49
54
|
}
|
|
50
55
|
exports["default"] = NavTabsView;
|
package/nav/Nav/NavTabsView.scss
CHANGED
|
@@ -1,2 +1,48 @@
|
|
|
1
1
|
.NavTabsView {
|
|
2
|
-
|
|
2
|
+
$root: &;
|
|
3
|
+
|
|
4
|
+
color: $text-color;
|
|
5
|
+
|
|
6
|
+
&__list {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
flex-flow: row nowrap;
|
|
9
|
+
align-items: center;
|
|
10
|
+
|
|
11
|
+
border-bottom: 1px solid $element-border-color;
|
|
12
|
+
|
|
13
|
+
&-item {
|
|
14
|
+
.ButtonView__text {
|
|
15
|
+
color: $element-placeholder-color;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&_active {
|
|
19
|
+
.ButtonView__text {
|
|
20
|
+
color: $white;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ButtonView {
|
|
24
|
+
&_size {
|
|
25
|
+
&_sm {
|
|
26
|
+
border-radius: $radius-small $radius-small 0 0;
|
|
27
|
+
}
|
|
28
|
+
&_md {
|
|
29
|
+
border-radius: $radius-large $radius-large 0 0;
|
|
30
|
+
}
|
|
31
|
+
&_lg {
|
|
32
|
+
border-radius: $radius-large $radius-large 0 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&_disabled {
|
|
39
|
+
cursor: not-allowed;
|
|
40
|
+
.ButtonView {
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include navs-sizes($root);
|
|
48
|
+
}
|
package/nav/Tree/TreeView.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { ITreeViewProps } from '@steroidsjs/core/ui/nav/Tree/Tree';
|
|
3
|
-
export default function TreeView(props: ITreeViewProps
|
|
2
|
+
export default function TreeView(props: ITreeViewProps): JSX.Element;
|
package/nav/Tree/TreeView.scss
CHANGED
|
@@ -1,62 +1,69 @@
|
|
|
1
1
|
.TreeView {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
padding: 0;
|
|
5
|
-
|
|
6
|
-
&__item {
|
|
2
|
+
list-style: none;
|
|
3
|
+
margin: 0;
|
|
7
4
|
padding: 0;
|
|
8
|
-
cursor: pointer;
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
&__item {
|
|
7
|
+
padding: 0;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
|
|
10
|
+
> .ButtonView {
|
|
11
|
+
margin: 2px 0;
|
|
12
|
+
}
|
|
12
13
|
}
|
|
13
|
-
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
&__item-label {
|
|
16
|
+
position: relative;
|
|
17
|
+
padding: 5px 10px;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
background-color: $background-color;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
.ButtonView__link {
|
|
24
|
+
.ButtonView__text {
|
|
25
|
+
color: $text-color;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// &:hover {
|
|
30
|
+
// color: $list-group-action-hover-color;
|
|
31
|
+
// background-color: $list-group-hover-bg;
|
|
32
|
+
// }
|
|
27
33
|
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
&,
|
|
35
|
+
&:hover {
|
|
36
|
+
text-decoration: none !important;
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
&__item_selected &__item-label {
|
|
40
|
+
background-color: $secondary;
|
|
41
|
+
&,
|
|
42
|
+
&::before {
|
|
43
|
+
color: $text-color;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
&__item-label::before {
|
|
47
|
+
display: inline-block;
|
|
48
|
+
content: "";
|
|
49
|
+
transform: rotate(0);
|
|
50
|
+
width: 21px;
|
|
51
|
+
height: 20px;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
font-weight: bold;
|
|
54
|
+
margin-left: 10px;
|
|
55
|
+
color: $text-color;
|
|
56
|
+
position: relative;
|
|
57
|
+
top: 1px;
|
|
58
|
+
left: 3px;
|
|
59
|
+
}
|
|
60
|
+
&__item_has-items &__item-label::before {
|
|
61
|
+
content: ">";
|
|
36
62
|
}
|
|
37
|
-
}
|
|
38
|
-
&__item-label::before {
|
|
39
|
-
display: inline-block;
|
|
40
|
-
content: '';
|
|
41
|
-
transform: rotate(0);
|
|
42
|
-
width: 21px;
|
|
43
|
-
height: 20px;
|
|
44
|
-
font-size: 12px;
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
font-family: $font-family-monospace;
|
|
47
|
-
margin-left: 10px;
|
|
48
|
-
color: $list-group-action-color;
|
|
49
|
-
position: relative;
|
|
50
|
-
top: 3px;
|
|
51
|
-
left: 3px;
|
|
52
|
-
}
|
|
53
|
-
&__item_has-items &__item-label::before {
|
|
54
|
-
content: '>';
|
|
55
|
-
}
|
|
56
63
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
&__item_opened &__item-label::before {
|
|
65
|
+
top: 7px;
|
|
66
|
+
left: -4px;
|
|
67
|
+
transform: rotate(90deg);
|
|
68
|
+
}
|
|
62
69
|
}
|
package/package.json
CHANGED
|
@@ -1,58 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
2
|
+
"name": "@steroidsjs/bootstrap",
|
|
3
|
+
"version": "3.0.0-beta.81",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/steroids/react-bootstrap"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint -c ./.eslintrc --ext .js,.jsx,.ts,.tsx ./src --quiet",
|
|
13
|
+
"build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" \"src/icons/svgs/*.svg\" dist"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/steroids/react-bootstrap",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/steroids/react-bootstrap/issues"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@ckeditor/ckeditor5-react": "^3.0.2",
|
|
22
|
+
"@splidejs/react-splide": "^0.7.12",
|
|
23
|
+
"@steroidsjs/ckeditor5": "^27.0.2-rc.2",
|
|
24
|
+
"date-fns": "^2.29.3",
|
|
25
|
+
"lodash": "^4.17.20",
|
|
26
|
+
"lodash-es": "^4.17.20",
|
|
27
|
+
"normalize.css": "^8.0.1",
|
|
28
|
+
"rc-slider": "^9.7.4",
|
|
29
|
+
"react": "^18.2.0",
|
|
30
|
+
"react-collapse": "^5.0.1",
|
|
31
|
+
"react-day-picker": "^7.4.10",
|
|
32
|
+
"react-dom": "^18.2.0",
|
|
33
|
+
"react-google-recaptcha": "^3.1.0",
|
|
34
|
+
"react-image-crop": "^9.0.2",
|
|
35
|
+
"react-modal": "^3.11.2",
|
|
36
|
+
"react-transition-group": "^2.9.0",
|
|
37
|
+
"react-use": "^17.4.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.59",
|
|
41
|
+
"@steroidsjs/eslint-config": "^2.1.4",
|
|
42
|
+
"@types/enzyme": "^3.10.8",
|
|
43
|
+
"@types/googlemaps": "^3.43.3",
|
|
44
|
+
"@types/jest": "^26.0.22",
|
|
45
|
+
"@types/markdown-to-jsx": "^6.11.3",
|
|
46
|
+
"@types/node": "^14.14.37",
|
|
47
|
+
"@types/overlayscrollbars": "^1.12.0",
|
|
48
|
+
"@types/reach__router": "^1.3.7",
|
|
49
|
+
"@types/react": "^18.0.27",
|
|
50
|
+
"@types/react-color": "^3.0.4",
|
|
51
|
+
"@types/react-syntax-highlighter": "^13.5.0",
|
|
52
|
+
"@types/webpack-env": "^1.16.0",
|
|
53
|
+
"copyfiles": "^2.4.1",
|
|
54
|
+
"eslint": "^8.34.0",
|
|
55
|
+
"typescript": "^4.9.5"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.52"
|
|
59
|
+
}
|
|
58
60
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "loading";
|
package/scss/fonts.scss
ADDED
package/scss/mixins/button.scss
CHANGED
|
@@ -1,33 +1,89 @@
|
|
|
1
|
-
@mixin
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@mixin svg-color($color) {
|
|
2
|
+
svg {
|
|
3
|
+
path {
|
|
4
|
+
stroke: $color;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin button-theme($colorMap, $colorName, $root) {
|
|
10
|
+
background-color: map-get($colorMap, color);
|
|
11
|
+
color: map-get($colorMap, text-color);
|
|
4
12
|
|
|
5
13
|
&:hover {
|
|
6
|
-
|
|
14
|
+
background-color: map-get($colorMap, color-dark);
|
|
7
15
|
}
|
|
8
|
-
&:focus,
|
|
9
|
-
|
|
16
|
+
&:focus,
|
|
17
|
+
&:focus-visible {
|
|
18
|
+
box-shadow: 0 0 0 4px map-get($colorMap, color-light), 0 0 0 4px map-get($colorMap, color-light);
|
|
10
19
|
}
|
|
11
20
|
&:active {
|
|
12
|
-
|
|
21
|
+
background-color: map-get($colorMap, color-light);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:disabled {
|
|
25
|
+
background-color: map-get($colorMap, color);
|
|
26
|
+
color: map-get($colorMap, text-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#{$root}__loader {
|
|
30
|
+
svg {
|
|
31
|
+
path {
|
|
32
|
+
stroke: map-get($colorMap, color-light);
|
|
33
|
+
|
|
34
|
+
@if ($colorName == 'basic' ) {
|
|
35
|
+
stroke: map-get($colorMap, color-dark);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#{$root}__link {
|
|
42
|
+
color: map-get($colorMap, color-dark);
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
color: map-get($colorMap, color-light);
|
|
46
|
+
}
|
|
13
47
|
}
|
|
14
48
|
}
|
|
15
49
|
|
|
16
|
-
@mixin button-outline-theme($
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
color
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
50
|
+
@mixin button-outline-theme($colorMap, $colorName, $root) {
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
color: map-get($colorMap, color);
|
|
53
|
+
stroke: map-get($colorMap, color);
|
|
54
|
+
border: 1px solid map-get($colorMap, color);
|
|
55
|
+
|
|
56
|
+
@include svg-color(map-get($colorMap, text-color));
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
@include svg-color(map-get($colorMap, color-dark));
|
|
60
|
+
color: map-get($colorMap, color-dark);
|
|
61
|
+
border-color: map-get($colorMap, color-dark);
|
|
62
|
+
}
|
|
63
|
+
&:focus {
|
|
64
|
+
box-shadow: 0 0 0 4px map-get($colorMap, color-light), 0 0 0 4px map-get($colorMap, color-light);
|
|
65
|
+
border: 1px solid transparent;
|
|
66
|
+
}
|
|
67
|
+
&:active {
|
|
68
|
+
@include svg-color(map-get($colorMap, color-light));
|
|
69
|
+
color: map-get($colorMap, color-light);
|
|
70
|
+
border-color: map-get($colorMap, color-light);
|
|
71
|
+
stroke: map-get($colorMap, color-light);
|
|
72
|
+
box-shadow: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:disabled {
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
@include svg-color(map-get($colorMap, color));
|
|
78
|
+
color: map-get($colorMap, color);
|
|
79
|
+
border: 1px solid map-get($colorMap, color);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@if ($colorName == "basic") {
|
|
83
|
+
color: $text-color;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#{$root}__loader {
|
|
87
|
+
@include svg-color(map-get($colorMap, color));
|
|
88
|
+
}
|
|
33
89
|
}
|