@steroidsjs/bootstrap 3.0.0-beta.6 → 3.0.0-beta.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/content/Accordion/AccordionItemView.d.ts +2 -0
- package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +47 -22
- package/content/Accordion/AccordionItemView.scss +209 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
- package/content/Alert/AlertView.js +3 -2
- package/content/Alert/AlertView.scss +19 -4
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +32 -39
- package/content/Badge/BadgeView.d.ts +3 -0
- package/content/Badge/BadgeView.js +25 -0
- package/content/Badge/BadgeView.scss +135 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +240 -161
- package/content/Calendar/CaptionElement.js +23 -15
- package/content/Calendar/CaptionElement.scss +164 -106
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -107
- package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
- package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
- package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
- package/content/Detail/DetailView.scss +75 -52
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +6 -4
- package/content/DropDown/DropDownView.scss +196 -27
- package/content/Icon/IconView.d.ts +1 -2
- package/content/Icon/IconView.js +2 -2
- package/content/Icon/IconView.scss +1 -23
- package/content/Menu/MenuItemView.d.ts +2 -0
- package/content/Menu/MenuItemView.js +15 -0
- package/content/Menu/MenuItemView.scss +63 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +30 -0
- package/content/Menu/MenuView.scss +43 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -2
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -8
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +199 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +168 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +6 -4
- package/form/CheckboxField/CheckboxFieldView.scss +195 -36
- package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
- package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DateField/DateFieldView.js +7 -6
- package/form/DateField/DateFieldView.scss +7 -74
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +29 -78
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +5 -5
- package/form/DateTimeField/DateTimeFieldView.scss +7 -109
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +9 -7
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +25 -90
- package/form/DropDownField/DropDownFieldView.js +31 -47
- package/form/DropDownField/DropDownFieldView.scss +388 -182
- package/form/DropDownField/utils.d.ts +2 -0
- package/form/DropDownField/utils.js +15 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.js +78 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +218 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +114 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +17 -39
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +58 -18
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +39 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +254 -13
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +34 -4
- package/form/Form/FormView.js +1 -4
- package/form/Form/FormView.scss +1 -14
- package/form/HtmlField/HtmlFieldView.d.ts +1 -2
- package/form/HtmlField/HtmlFieldView.scss +6 -3
- package/form/ImageField/ImageFieldView.js +1 -1
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +30 -13
- package/form/InputField/InputFieldView.scss +265 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +195 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +231 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +226 -0
- package/form/RadioListField/RadioListFieldView.d.ts +1 -2
- package/form/RadioListField/RadioListFieldView.js +20 -16
- package/form/RadioListField/RadioListFieldView.scss +11 -1
- package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
- package/form/SliderField/SliderFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +188 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +144 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/icons/index.d.ts +2 -0
- package/icons/index.js +103 -0
- package/icons/svgs/add.svg +4 -0
- package/icons/svgs/add_square.svg +5 -0
- package/icons/svgs/arrow_down_18x18.svg +4 -0
- package/icons/svgs/arrow_down_24x24.svg +4 -0
- package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
- package/icons/svgs/arrow_left_18x18.svg +4 -0
- package/icons/svgs/arrow_left_24x24.svg +4 -0
- package/icons/svgs/arrow_right_18x18.svg +4 -0
- package/icons/svgs/arrow_right_24x24.svg +4 -0
- package/icons/svgs/arrow_up_18x18.svg +4 -0
- package/icons/svgs/arrow_up_24x24.svg +4 -0
- package/icons/svgs/blank.svg +4 -0
- package/icons/svgs/calendar_check.svg +5 -0
- package/icons/svgs/calendar_range.svg +8 -0
- package/icons/svgs/cancel_ellips.svg +4 -0
- package/icons/svgs/chart.svg +6 -0
- package/icons/svgs/checkmark_12x12.svg +4 -0
- package/icons/svgs/checkmark_8x8.svg +4 -0
- package/icons/svgs/circle_cross_12x12.svg +4 -0
- package/icons/svgs/circle_cross_16x16.svg +4 -0
- package/icons/svgs/circle_cross_18x18.svg +4 -0
- package/icons/svgs/clip.svg +3 -0
- package/icons/svgs/copy.svg +5 -0
- package/icons/svgs/cross_12x12.svg +4 -0
- package/icons/svgs/cross_4x4.svg +3 -0
- package/icons/svgs/cross_8x8.svg +4 -0
- package/icons/svgs/cut.svg +3 -0
- package/icons/svgs/date_range.svg +8 -0
- package/icons/svgs/default_16x16.svg +4 -0
- package/icons/svgs/default_24x24.svg +11 -0
- package/icons/svgs/double_arrow_down.svg +5 -0
- package/icons/svgs/double_arrow_left.svg +5 -0
- package/icons/svgs/double_arrow_right.svg +5 -0
- package/icons/svgs/double_arrow_up.svg +5 -0
- package/icons/svgs/doughnut_chart.svg +5 -0
- package/icons/svgs/edit.svg +4 -0
- package/icons/svgs/error_16x16.svg +5 -0
- package/icons/svgs/error_24x24.svg +12 -0
- package/icons/svgs/expand_down.svg +3 -0
- package/icons/svgs/expand_left.svg +3 -0
- package/icons/svgs/expand_left_double.svg +4 -0
- package/icons/svgs/expand_right.svg +3 -0
- package/icons/svgs/expand_right_double.svg +4 -0
- package/icons/svgs/expand_up.svg +3 -0
- package/icons/svgs/file_dock.svg +6 -0
- package/icons/svgs/filter.svg +3 -0
- package/icons/svgs/fluid.svg +4 -0
- package/icons/svgs/folder.svg +3 -0
- package/icons/svgs/group.svg +8 -0
- package/icons/svgs/home.svg +4 -0
- package/icons/svgs/img_box.svg +5 -0
- package/icons/svgs/import.svg +4 -0
- package/icons/svgs/info_16x16.svg +5 -0
- package/icons/svgs/info_24x24.svg +12 -0
- package/icons/svgs/left_12x12.svg +3 -0
- package/icons/svgs/loading_default.svg +3 -0
- package/icons/svgs/loading_icon_thick.svg +3 -0
- package/icons/svgs/loading_purple.svg +9 -0
- package/icons/svgs/map.svg +7 -0
- package/icons/svgs/menu_dots.svg +5 -0
- package/icons/svgs/menu_left.svg +5 -0
- package/icons/svgs/minis_sq.svg +4 -0
- package/icons/svgs/paste.svg +8 -0
- package/icons/svgs/pie_chart.svg +5 -0
- package/icons/svgs/pin.svg +4 -0
- package/icons/svgs/sad.svg +6 -0
- package/icons/svgs/search.svg +4 -0
- package/icons/svgs/setting_line.svg +3 -0
- package/icons/svgs/share.svg +7 -0
- package/icons/svgs/star.svg +3 -0
- package/icons/svgs/success_16x16.svg +4 -0
- package/icons/svgs/success_24x24.svg +11 -0
- package/icons/svgs/support.svg +3 -0
- package/icons/svgs/trash.svg +6 -0
- package/icons/svgs/upload.svg +4 -0
- package/icons/svgs/user.svg +4 -0
- package/icons/svgs/view.svg +4 -0
- package/icons/svgs/view_hide.svg +5 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/index.d.ts +26 -2
- package/index.js +28 -4
- package/index.scss +16 -3
- package/layout/Header/HeaderView.scss +3 -3
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +67 -22
- package/layout/Notifications/NotificationsItemView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +45 -37
- package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
- package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
- package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
- package/list/Grid/GridView.js +8 -4
- package/list/Grid/GridView.scss +148 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +3 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +51 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
- package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/index.js +7 -0
- package/list/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +32 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +265 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +4 -7
- package/modal/Modal/ModalView.scss +129 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -2
- package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
- package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
- package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
- package/nav/ButtonGroup/ButtonGroupView.js +32 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +83 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.scss +9 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +1 -1
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +1 -1
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +1 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +14 -11
- package/package.json +56 -56
- package/scss/animations/index.scss +1 -0
- package/scss/animations/loading.scss +13 -0
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +80 -24
- package/scss/mixins/customMixins.scss +5 -0
- package/scss/mixins/date.scss +397 -0
- package/scss/mixins/index.scss +4 -1
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/variables/common/colors.scss +119 -69
- package/scss/variables/common/media.scss +2 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +3 -2
- package/scss/variables/normalize.scss +25 -0
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +16 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +16 -0
- package/utils/renderIcon.d.ts +9 -0
- package/utils/renderIcon.js +27 -0
- package/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.scss +0 -88
- package/content/Collapse/CollapseView.d.ts +0 -2
- package/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -254
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@mixin typography-type($typeMap) {
|
|
2
|
+
font-family: map-get($typeMap, font-family);
|
|
3
|
+
font-size: map-get($typeMap, font-size);
|
|
4
|
+
font-weight: map-get($typeMap, font-weight);
|
|
5
|
+
line-height: map-get($typeMap, line-height);
|
|
6
|
+
color: map-get($typeMap, color);
|
|
7
|
+
text-transform: map-get($typeMap, text-transform);
|
|
8
|
+
text-decoration: map-get($typeMap, text-decoration);
|
|
9
|
+
text-align: map-get($typeMap, text-align);
|
|
10
|
+
|
|
11
|
+
@media (max-width: $tablet-width) {
|
|
12
|
+
font-size: map-get($typeMap, tablet-font-size);
|
|
13
|
+
font-weight: map-get($typeMap, tablet-font-weight);
|
|
14
|
+
line-height: map-get($typeMap, tablet-line-height);
|
|
15
|
+
text-transform: map-get($typeMap, tablet-text-transform);
|
|
16
|
+
text-align: map-get($typeMap, tablet-text-align);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (max-width: $mobile-width) {
|
|
20
|
+
font-size: map-get($typeMap, mobile-font-size);
|
|
21
|
+
font-weight: map-get($typeMap, mobile-font-weight);
|
|
22
|
+
line-height: map-get($typeMap, mobile-line-height);
|
|
23
|
+
text-transform: map-get($typeMap, mobile-text-transform);
|
|
24
|
+
text-align: map-get($typeMap, mobile-text-align);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -18,67 +18,116 @@
|
|
|
18
18
|
--warning-dark: #ebd251;
|
|
19
19
|
--warning-light: #fff6c6;
|
|
20
20
|
--graphite: #323232;
|
|
21
|
-
--gray-dark: #
|
|
22
|
-
--gray: #
|
|
23
|
-
--light-gray: #
|
|
21
|
+
--gray-dark: #cbd5db;
|
|
22
|
+
--gray: #dbe2e6;
|
|
23
|
+
--light-gray: #f1f5f7;
|
|
24
24
|
--dark: #6f6b76;
|
|
25
25
|
--light: #9088a1;
|
|
26
|
+
--text-color: #312c3a;
|
|
27
|
+
--background-color: #fff;
|
|
28
|
+
--is-dark: "false";
|
|
29
|
+
--border-color: #dbe2e6;
|
|
30
|
+
--border-color-hover: #e5e9eb;
|
|
31
|
+
--placeholder-color: rgba(0, 0, 0, 0.3);
|
|
32
|
+
--placeholder-disabled-color: rgba(0, 0, 0, 0.3);
|
|
33
|
+
--background-disabled-color: #f1f5f7;
|
|
34
|
+
--element-background-color: #FFFFFF;
|
|
35
|
+
--additional-gray-dark: #6F6B76;
|
|
36
|
+
--additional-gray: #E6E6E6;
|
|
37
|
+
--additional-light-gray: #F8F8F8;
|
|
38
|
+
--additional-light: #9088A1;
|
|
39
|
+
--additional-light-blue: #F9FCFF;
|
|
40
|
+
--scroll-thumb-color: #e5e9eb;
|
|
41
|
+
--scroll-track-color: #f5f8fa;
|
|
42
|
+
}
|
|
26
43
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
html[data-theme="dark"] {
|
|
45
|
+
--primary: #8b57ff;
|
|
46
|
+
--primary-dark: #6648a7;
|
|
47
|
+
--primary-light: #ba9bff;
|
|
48
|
+
--secondary: #9ea8db;
|
|
49
|
+
--secondary-dark: #616a95;
|
|
50
|
+
--secondary-light: #bcc3e9;
|
|
51
|
+
--success: #3cf25a;
|
|
52
|
+
--success-dark: #34cc4d;
|
|
53
|
+
--success-light: #74ff8b;
|
|
54
|
+
--danger: #fc6666;
|
|
55
|
+
--danger-dark: #dc5858;
|
|
56
|
+
--danger-light: #ffa1a1;
|
|
57
|
+
--info: #9ae1f1;
|
|
58
|
+
--info-dark: #77c4d6;
|
|
59
|
+
--info-light: #ccf6ff;
|
|
60
|
+
--warning: #ffe457;
|
|
61
|
+
--warning-dark: #ebd251;
|
|
62
|
+
--warning-light: #fff6c8;
|
|
63
|
+
--graphite: #414141;
|
|
64
|
+
--gray-dark: #4e4f57;
|
|
65
|
+
--gray: #5b5c6b;
|
|
66
|
+
--light-gray: #928b9d;
|
|
67
|
+
--dark: #6b6477;
|
|
68
|
+
--light: #b7afc7;
|
|
69
|
+
--text-color: #ffffff;
|
|
70
|
+
--background-color: #323030;
|
|
71
|
+
--is-dark: "true";
|
|
72
|
+
--border-color: #5B5C6B;
|
|
73
|
+
--border-color-hover: #4e4f57;
|
|
74
|
+
--placeholder-color: rgba(255, 255, 255, 0.3);
|
|
75
|
+
--placeholder-disabled-color: rgba(255, 255, 255, 0.1);
|
|
76
|
+
--background-disabled-color: #5b5c6b;
|
|
77
|
+
--element-background-color: #414141;
|
|
78
|
+
--additional-gray-dark: #6B6477;
|
|
79
|
+
--additional-gray: #595959;
|
|
80
|
+
--additional-light-gray: #4A4B53;
|
|
81
|
+
--additional-light: #B7AFC7;
|
|
82
|
+
--additional-light-blue: #DAEAF6;
|
|
83
|
+
--scroll-thumb-color: #5b5c6b;
|
|
84
|
+
--scroll-track-color: #444147;
|
|
53
85
|
}
|
|
54
86
|
|
|
55
87
|
/*
|
|
56
88
|
* SCSS variables implementation
|
|
57
89
|
*/
|
|
58
|
-
$primary: var(--primary)
|
|
59
|
-
$primary-dark: var(--primary-dark)
|
|
60
|
-
$primary-light: var(--primary-light)
|
|
61
|
-
$secondary: var(--secondary)
|
|
62
|
-
$secondary-dark: var(--secondary-dark)
|
|
63
|
-
$secondary-light: var(--secondary-light)
|
|
64
|
-
$success: var(--success)
|
|
65
|
-
$success-dark: var(--success-dark)
|
|
66
|
-
$success-light: var(--success-light)
|
|
67
|
-
$danger: var(--danger)
|
|
68
|
-
$danger-dark: var(--danger-dark)
|
|
69
|
-
$danger-light: var(--danger-light)
|
|
70
|
-
$info: var(--info)
|
|
71
|
-
$info-dark: var(--info-dark)
|
|
72
|
-
$info-light: var(--info-light)
|
|
73
|
-
$warning: var(--warning)
|
|
74
|
-
$warning-dark: var(--warning-dark)
|
|
75
|
-
$warning-light: var(--warning-light)
|
|
76
|
-
$graphite: var(--graphite)
|
|
77
|
-
$gray-dark: var(--gray-dark)
|
|
78
|
-
$gray: var(--gray)
|
|
79
|
-
$light-gray: var(--light-gray)
|
|
80
|
-
$dark: var(--dark)
|
|
81
|
-
$light: var(--light)
|
|
90
|
+
$primary: var(--primary);
|
|
91
|
+
$primary-dark: var(--primary-dark);
|
|
92
|
+
$primary-light: var(--primary-light);
|
|
93
|
+
$secondary: var(--secondary);
|
|
94
|
+
$secondary-dark: var(--secondary-dark);
|
|
95
|
+
$secondary-light: var(--secondary-light);
|
|
96
|
+
$success: var(--success);
|
|
97
|
+
$success-dark: var(--success-dark);
|
|
98
|
+
$success-light: var(--success-light);
|
|
99
|
+
$danger: var(--danger);
|
|
100
|
+
$danger-dark: var(--danger-dark);
|
|
101
|
+
$danger-light: var(--danger-light);
|
|
102
|
+
$info: var(--info);
|
|
103
|
+
$info-dark: var(--info-dark);
|
|
104
|
+
$info-light: var(--info-light);
|
|
105
|
+
$warning: var(--warning);
|
|
106
|
+
$warning-dark: var(--warning-dark);
|
|
107
|
+
$warning-light: var(--warning-light);
|
|
108
|
+
$graphite: var(--graphite);
|
|
109
|
+
$gray-dark: var(--gray-dark);
|
|
110
|
+
$gray: var(--gray);
|
|
111
|
+
$light-gray: var(--light-gray);
|
|
112
|
+
$dark: var(--dark);
|
|
113
|
+
$light: var(--light);
|
|
114
|
+
$text-color: var(--text-color);
|
|
115
|
+
$text-color-revert: var(--text-color-revert);
|
|
116
|
+
$background-color: var(--background-color);
|
|
117
|
+
$is-dark: var(--is-dark);
|
|
118
|
+
$border-color: var(--border-color);
|
|
119
|
+
$border-color-hover: var(--border-color-hover);
|
|
120
|
+
$placeholder-color: var(--placeholder-color);
|
|
121
|
+
$placeholder-disabled-color: var(--placeholder-disabled-color);
|
|
122
|
+
$background-disabled-color: var(--background-disabled-color);
|
|
123
|
+
$element-background-color: var(--element-background-color);
|
|
124
|
+
$additional-gray-dark: var(--additional-gray-dark);
|
|
125
|
+
$additional-gray: var(--additional-gray);
|
|
126
|
+
$additional-light-gray: var(--additional-light-gray);
|
|
127
|
+
$additional-light: var(--additional-light);
|
|
128
|
+
$additional-light-blue: var(--additional-light-blue);
|
|
129
|
+
$scroll-thumb-color: var(--scroll-thumb-color);
|
|
130
|
+
$scroll-track-color: var(--scroll-track-color);
|
|
82
131
|
|
|
83
132
|
/*
|
|
84
133
|
* Common colors
|
|
@@ -90,16 +139,25 @@ $black-30: rgba(#000, 0.3) !default;
|
|
|
90
139
|
$black-10: rgba(#000, 0.1) !default;
|
|
91
140
|
$black-4: rgba(#000, 0.04) !default;
|
|
92
141
|
$white: #fff !default;
|
|
142
|
+
$white-60: rgba(#ffffff, 0.6) !default;
|
|
143
|
+
$white-30: rgba(#ffffff, 0.3) !default;
|
|
144
|
+
$white-10: rgba(#ffffff, 0.1) !default;
|
|
145
|
+
$white-4: rgba(#ffffff, 0.04) !default;
|
|
93
146
|
|
|
94
|
-
$text-color: #312c3a !default;
|
|
95
147
|
$link-color: #2ba3fb !default;
|
|
148
|
+
$link-color-hover: #00c2ff !default;
|
|
96
149
|
|
|
97
|
-
$gradient-
|
|
98
|
-
$gradient-red: linear-gradient(180deg, #EB0155, #FFFA80);
|
|
150
|
+
$gradient-blue: linear-gradient(180deg, #651fff, #ba9bff) !default;
|
|
99
151
|
|
|
100
152
|
$color-themes: () !default;
|
|
101
153
|
$color-themes: map-merge(
|
|
102
154
|
(
|
|
155
|
+
"basic": (
|
|
156
|
+
"color": $gray,
|
|
157
|
+
"color-dark": $gray-dark,
|
|
158
|
+
"color-light": $light-gray,
|
|
159
|
+
"text-color": $text-color,
|
|
160
|
+
),
|
|
103
161
|
"primary": (
|
|
104
162
|
"color": $primary,
|
|
105
163
|
"color-dark": $primary-dark,
|
|
@@ -128,25 +186,17 @@ $color-themes: map-merge(
|
|
|
128
186
|
"color": $warning,
|
|
129
187
|
"color-dark": $warning-dark,
|
|
130
188
|
"color-light": $warning-light,
|
|
131
|
-
"text-color": $
|
|
189
|
+
"text-color": $text-color,
|
|
132
190
|
),
|
|
133
191
|
"info": (
|
|
134
192
|
"color": $info,
|
|
135
193
|
"color-dark": $info-dark,
|
|
136
194
|
"color-light": $info-light,
|
|
137
|
-
"text-color": $
|
|
138
|
-
),
|
|
139
|
-
"light": (
|
|
140
|
-
"color": $light,
|
|
141
|
-
"color-dark": $dark,
|
|
142
|
-
"color-light": $light,
|
|
143
|
-
"text-color": $dark,
|
|
195
|
+
"text-color": $text-color,
|
|
144
196
|
),
|
|
145
|
-
"
|
|
146
|
-
"color": $
|
|
147
|
-
"color-
|
|
148
|
-
"color-light": $light,
|
|
149
|
-
"text-color": $white,
|
|
197
|
+
"link": (
|
|
198
|
+
"color-dark": $link-color,
|
|
199
|
+
"color-light": $link-color-hover,
|
|
150
200
|
),
|
|
151
201
|
),
|
|
152
202
|
$color-themes
|
|
@@ -4,36 +4,104 @@
|
|
|
4
4
|
|
|
5
5
|
$font-family-nunito: "Nunito", sans-serif;
|
|
6
6
|
|
|
7
|
-
$font-size-xs: 12px;
|
|
8
|
-
$font-size-sm: 14px;
|
|
9
|
-
$font-size-base: 16px;
|
|
10
|
-
$font-size-lg: 18px;
|
|
11
|
-
$font-size-xl: 24px;
|
|
12
|
-
$font-size-2xl: 32px;
|
|
7
|
+
$font-size-xs: 12px !default;
|
|
8
|
+
$font-size-sm: 14px !default;
|
|
9
|
+
$font-size-base: 16px !default;
|
|
10
|
+
$font-size-lg: 18px !default;
|
|
11
|
+
$font-size-xl: 24px !default;
|
|
12
|
+
$font-size-2xl: 32px !default;
|
|
13
13
|
|
|
14
|
-
$line-height-xs:
|
|
15
|
-
$line-height-sm:
|
|
16
|
-
$line-height-base: 22px;
|
|
17
|
-
$line-height-lg:
|
|
18
|
-
$line-height-xl:
|
|
19
|
-
$line-height-2xl:
|
|
14
|
+
$line-height-xs: 16px !default;
|
|
15
|
+
$line-height-sm: 18px !default;
|
|
16
|
+
$line-height-base: 22px !default;
|
|
17
|
+
$line-height-lg: 24px !default;
|
|
18
|
+
$line-height-xl: 32px !default;
|
|
19
|
+
$line-height-2xl: 44px !default;
|
|
20
20
|
|
|
21
|
-
$font-weight-sm: 400;
|
|
22
|
-
$font-weight-md: 500;
|
|
23
|
-
$font-weight-lg: 700;
|
|
21
|
+
$font-weight-sm: 400 !default;
|
|
22
|
+
$font-weight-md: 500 !default;
|
|
23
|
+
$font-weight-lg: 700 !default;
|
|
24
24
|
|
|
25
|
+
$title-types: () !default;
|
|
26
|
+
$title-types: map-merge(
|
|
27
|
+
(
|
|
28
|
+
"h1": (
|
|
29
|
+
"font-size": $font-size-2xl,
|
|
30
|
+
"font-weight": $font-weight-lg,
|
|
31
|
+
"line-height": $line-height-2xl,
|
|
32
|
+
"color": $text-color,
|
|
33
|
+
),
|
|
34
|
+
"h2": (
|
|
35
|
+
"font-size": $font-size-xl,
|
|
36
|
+
"font-weight": $font-weight-lg,
|
|
37
|
+
"line-height": $line-height-xl,
|
|
38
|
+
"color": $text-color,
|
|
39
|
+
),
|
|
40
|
+
"h3": (
|
|
41
|
+
"font-size": $font-size-lg,
|
|
42
|
+
"font-weight": $font-weight-lg,
|
|
43
|
+
"line-height": $line-height-lg,
|
|
44
|
+
"color": $text-color,
|
|
45
|
+
),
|
|
46
|
+
"h4": (
|
|
47
|
+
"font-size": $font-size-base,
|
|
48
|
+
"font-weight": $font-weight-lg,
|
|
49
|
+
"line-height": $line-height-base,
|
|
50
|
+
"color": $text-color,
|
|
51
|
+
),
|
|
52
|
+
"h5": (
|
|
53
|
+
"font-size": $font-size-sm,
|
|
54
|
+
"font-weight": $font-weight-md,
|
|
55
|
+
"line-height": $line-height-sm,
|
|
56
|
+
"color": $text-color,
|
|
57
|
+
),
|
|
58
|
+
"h6": (
|
|
59
|
+
"font-size": $font-size-xs,
|
|
60
|
+
"font-weight": $font-weight-md,
|
|
61
|
+
"line-height": $line-height-xs,
|
|
62
|
+
"color": $text-color,
|
|
63
|
+
),
|
|
64
|
+
"subtitle": (
|
|
65
|
+
"font-size": $font-size-2xl,
|
|
66
|
+
"font-weight": $font-weight-md,
|
|
67
|
+
"line-height": $line-height-2xl,
|
|
68
|
+
"color": $text-color,
|
|
69
|
+
),
|
|
70
|
+
),
|
|
71
|
+
$title-types
|
|
72
|
+
);
|
|
25
73
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
$
|
|
31
|
-
$
|
|
32
|
-
|
|
33
|
-
$
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
$
|
|
74
|
+
$text-types: () !default;
|
|
75
|
+
$text-types: map-merge(
|
|
76
|
+
(
|
|
77
|
+
"body": (
|
|
78
|
+
"font-size": $font-size-base,
|
|
79
|
+
"font-weight": $font-weight-sm,
|
|
80
|
+
"line-height": $line-height-base,
|
|
81
|
+
"color": $text-color,
|
|
82
|
+
),
|
|
83
|
+
"span": (
|
|
84
|
+
"font-size": $font-size-base,
|
|
85
|
+
"font-weight": $font-weight-sm,
|
|
86
|
+
"line-height": $line-height-base,
|
|
87
|
+
"color": $text-color,
|
|
88
|
+
),
|
|
89
|
+
"boldSpan": (
|
|
90
|
+
"font-size": $font-size-base,
|
|
91
|
+
"font-weight": $font-weight-lg,
|
|
92
|
+
"line-height": $line-height-base,
|
|
93
|
+
"color": $text-color,
|
|
94
|
+
),
|
|
95
|
+
),
|
|
96
|
+
$text-types
|
|
97
|
+
);
|
|
38
98
|
|
|
39
|
-
$
|
|
99
|
+
$typography-colors: (
|
|
100
|
+
"text-color": $text-color,
|
|
101
|
+
"primary": $primary,
|
|
102
|
+
"secondary": $secondary,
|
|
103
|
+
"success": $success,
|
|
104
|
+
"danger": $danger,
|
|
105
|
+
"warning": $warning,
|
|
106
|
+
"info": $info,
|
|
107
|
+
) !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$transition-duration: .15s;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
$input-height-sm: 34px;
|
|
2
|
+
$input-height-md: 46px;
|
|
3
|
+
$input-height-lg: 56px;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
//remove after ready all inputs
|
|
1
7
|
//Small
|
|
2
8
|
$input-label-margin-bottom-sm: 4px;
|
|
3
9
|
|
|
@@ -52,15 +58,10 @@ $input-message-margin-top-lg: $input-message-margin-top-sm;
|
|
|
52
58
|
$input-message-icon-size-lg: $input-message-icon-size-sm;
|
|
53
59
|
$input-message-icon-margin-right-lg: $input-message-icon-margin-right-sm;
|
|
54
60
|
|
|
55
|
-
|
|
56
|
-
$input-height-sm: 28px !default;
|
|
57
|
-
$input-height-md: 36px !default;
|
|
58
|
-
$input-height-lg: 46px !default;
|
|
59
|
-
|
|
60
61
|
$input-border: 1px solid $border-default !default;
|
|
61
62
|
$input-border-radius: 4px !default;
|
|
62
63
|
|
|
63
64
|
$input-padding-y: 0 !default;
|
|
64
65
|
$input-padding-x: 8px !default;
|
|
65
66
|
$input-addon-padding: 0.6rem !default;
|
|
66
|
-
$input-text-padding: 0.4rem !default;
|
|
67
|
+
$input-text-padding: 0.4rem !default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
@import 'normalize.scss';
|
|
1
2
|
@import 'common/colors';
|
|
3
|
+
@import 'common/media';
|
|
2
4
|
@import 'common/typography';
|
|
3
|
-
@import 'common/spacing';
|
|
4
5
|
@import 'common/radiuses';
|
|
5
6
|
@import 'common/old-variables';
|
|
7
|
+
@import 'common/variables';
|
|
6
8
|
|
|
7
9
|
@import 'components/button';
|
|
8
10
|
@import 'components/calendar';
|
|
9
|
-
@import 'components/card';
|
|
10
11
|
@import 'components/icon';
|
|
11
12
|
@import 'components/input';
|
|
12
13
|
@import 'components/ratefield';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import-normalize;
|
|
2
|
+
|
|
3
|
+
* {
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
ul, li {
|
|
10
|
+
list-style-type: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
a {
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
color: inherit;
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
button {
|
|
20
|
+
font-family: inherit;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input {
|
|
24
|
+
outline: none;
|
|
25
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
exports.__esModule = true;
|
|
26
|
+
var React = __importStar(require("react"));
|
|
27
|
+
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
28
|
+
var TYPE_MAPPING = {
|
|
29
|
+
body: 'p',
|
|
30
|
+
span: 'span',
|
|
31
|
+
boldSpan: 'span'
|
|
32
|
+
};
|
|
33
|
+
function TextView(props) {
|
|
34
|
+
var bem = (0, hooks_1.useBem)('TextView');
|
|
35
|
+
var tag = props.tag || TYPE_MAPPING[props.type || ''] || 'p';
|
|
36
|
+
return (React.createElement(tag, {
|
|
37
|
+
className: bem(bem.block({
|
|
38
|
+
type: props.type,
|
|
39
|
+
color: props.color
|
|
40
|
+
}), props.className),
|
|
41
|
+
style: props.style
|
|
42
|
+
}, React.createElement(React.Fragment, null,
|
|
43
|
+
props.content,
|
|
44
|
+
props.children)));
|
|
45
|
+
}
|
|
46
|
+
exports["default"] = TextView;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.TextView {
|
|
2
|
+
margin-bottom: 1em;
|
|
3
|
+
font-family: $font-family-nunito;
|
|
4
|
+
|
|
5
|
+
@each $typeName, $typeMap in $text-types {
|
|
6
|
+
&_type_#{$typeName} {
|
|
7
|
+
@include typography-type($typeMap);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@each $colorName, $color in $typography-colors {
|
|
12
|
+
&_color_#{$colorName} {
|
|
13
|
+
color: $color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
exports.__esModule = true;
|
|
26
|
+
var React = __importStar(require("react"));
|
|
27
|
+
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
28
|
+
var TYPE_MAPPING = {
|
|
29
|
+
h1: 'h1',
|
|
30
|
+
h2: 'h2',
|
|
31
|
+
h3: 'h3',
|
|
32
|
+
h4: 'h4',
|
|
33
|
+
h5: 'h5',
|
|
34
|
+
h6: 'h6',
|
|
35
|
+
subtitle: 'h6'
|
|
36
|
+
};
|
|
37
|
+
function TitleView(props) {
|
|
38
|
+
var bem = (0, hooks_1.useBem)('TitleView');
|
|
39
|
+
var tag = props.tag || TYPE_MAPPING[props.type || ''] || 'h2';
|
|
40
|
+
return (React.createElement(tag, {
|
|
41
|
+
className: bem(bem.block({
|
|
42
|
+
type: props.type,
|
|
43
|
+
color: props.color
|
|
44
|
+
}), props.className),
|
|
45
|
+
style: props.style
|
|
46
|
+
}, React.createElement(React.Fragment, null,
|
|
47
|
+
props.content,
|
|
48
|
+
props.children)));
|
|
49
|
+
}
|
|
50
|
+
exports["default"] = TitleView;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.TitleView {
|
|
2
|
+
margin-bottom: 1em;
|
|
3
|
+
font-family: $font-family-nunito;
|
|
4
|
+
|
|
5
|
+
@each $typeName, $typeMap in $title-types {
|
|
6
|
+
&_type_#{$typeName} {
|
|
7
|
+
@include typography-type($typeMap);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@each $colorName, $color in $typography-colors {
|
|
12
|
+
&_color_#{$colorName} {
|
|
13
|
+
color: $color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IIconProps } from '@steroidsjs/core/ui/content/Icon/Icon';
|
|
3
|
+
/**
|
|
4
|
+
* Функция которая проверяет соответствует ли typeof icon === 'string', если да - то вернет компонент Icon
|
|
5
|
+
* с переданным в него iconProps, если нет то вернется span с классом iconProps.className со вложенным {icon}
|
|
6
|
+
* @example renderIcon(props.leadIcon, {className: 'leadIcon', tabIndex: -1})
|
|
7
|
+
*/
|
|
8
|
+
declare const renderIcon: (icon: string | React.ReactElement, iconProps: IIconProps) => JSX.Element;
|
|
9
|
+
export default renderIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
/* eslint-disable valid-typeof */
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon/Icon"));
|
|
20
|
+
/**
|
|
21
|
+
* Функция которая проверяет соответствует ли typeof icon === 'string', если да - то вернет компонент Icon
|
|
22
|
+
* с переданным в него iconProps, если нет то вернется span с классом iconProps.className со вложенным {icon}
|
|
23
|
+
* @example renderIcon(props.leadIcon, {className: 'leadIcon', tabIndex: -1})
|
|
24
|
+
*/
|
|
25
|
+
var renderIcon = function (icon, iconProps) { return typeof icon === 'string'
|
|
26
|
+
? (react_1["default"].createElement(Icon_1["default"], __assign({ name: icon }, iconProps))) : (react_1["default"].createElement("span", { className: iconProps.className }, icon)); };
|
|
27
|
+
exports["default"] = renderIcon;
|