@steroidsjs/bootstrap 3.0.0-beta.6 → 3.0.0-beta.61
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 +35 -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 +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 +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/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/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 +128 -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
|
@@ -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;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
.CollapseItemView {
|
|
2
|
-
display: grid;
|
|
3
|
-
align-items: center;
|
|
4
|
-
|
|
5
|
-
background-color: #fff;
|
|
6
|
-
border-bottom: 1px solid rgba(#000, .1);
|
|
7
|
-
box-shadow: 0 0 3px 0 rgba(34, 60, 80, 0.2);
|
|
8
|
-
min-height: 48px;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: fit-content;
|
|
11
|
-
|
|
12
|
-
&_disable {
|
|
13
|
-
opacity: .4;
|
|
14
|
-
background-color: #d7d7d7;
|
|
15
|
-
color: rgba(#212529, .7);
|
|
16
|
-
|
|
17
|
-
.IconView {
|
|
18
|
-
svg {
|
|
19
|
-
fill-opacity: .6;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&_borderless {
|
|
25
|
-
border-bottom: unset;
|
|
26
|
-
box-shadow: unset;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&_active {
|
|
30
|
-
margin-bottom: 16px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
p {
|
|
34
|
-
margin: 0;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
&__icon {
|
|
38
|
-
transform: rotate(0deg);
|
|
39
|
-
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
40
|
-
|
|
41
|
-
&_active {
|
|
42
|
-
transform: rotate(180deg);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&_disable_cursor {
|
|
46
|
-
cursor: auto;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__header-container {
|
|
51
|
-
display: flex;
|
|
52
|
-
&_revert {
|
|
53
|
-
flex-direction: row-reverse;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__title-container {
|
|
58
|
-
width: 100%;
|
|
59
|
-
padding: 0 16px;
|
|
60
|
-
align-self: center;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&__icon-wrapper {
|
|
64
|
-
width: 48px;
|
|
65
|
-
height: 48px;
|
|
66
|
-
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
|
|
71
|
-
&_not_visible {
|
|
72
|
-
width: 0;
|
|
73
|
-
opacity: 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__content {
|
|
78
|
-
transition: all 200ms ease;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
max-height: 0;
|
|
81
|
-
padding: 0 16px;
|
|
82
|
-
|
|
83
|
-
&_visible {
|
|
84
|
-
max-height: 1024px;
|
|
85
|
-
padding: 0 16px 8px 16px
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
package/icons/fontawesome.d.ts
DELETED