@steroidsjs/bootstrap 3.0.0-beta.9 → 3.0.0-beta.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/content/Accordion/AccordionItemView.d.ts +2 -0
- package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +47 -22
- package/content/Accordion/AccordionItemView.scss +262 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/Accordion/AccordionView.scss +28 -0
- package/content/Alert/AlertView.js +3 -2
- package/content/Alert/AlertView.scss +72 -24
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +43 -48
- package/content/Badge/BadgeView.d.ts +0 -1
- package/content/Badge/BadgeView.js +8 -7
- package/content/Badge/BadgeView.scss +141 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +248 -175
- package/content/Calendar/CaptionElement.js +23 -15
- package/content/Calendar/CaptionElement.scss +167 -106
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -108
- package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
- package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
- package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
- package/content/Detail/DetailView.scss +79 -57
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +7 -4
- package/content/DropDown/DropDownView.scss +208 -27
- package/content/Icon/IconView.d.ts +1 -2
- package/content/Icon/IconView.js +2 -2
- package/content/Icon/IconView.scss +1 -23
- package/content/Menu/MenuItemView.d.ts +2 -0
- package/content/Menu/MenuItemView.js +15 -0
- package/content/Menu/MenuItemView.scss +67 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +33 -0
- package/content/Menu/MenuView.scss +46 -0
- package/content/Slider/SliderView.d.ts +2 -0
- package/content/Slider/SliderView.js +18 -0
- package/content/Slider/SliderView.scss +5 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -3
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -9
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +199 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +176 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +6 -4
- package/form/CheckboxField/CheckboxFieldView.scss +198 -37
- package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
- package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DateField/DateFieldView.js +7 -6
- package/form/DateField/DateFieldView.scss +15 -70
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +42 -73
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +6 -6
- package/form/DateTimeField/DateTimeFieldView.scss +13 -107
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +32 -87
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +382 -181
- package/form/DropDownField/utils.d.ts +2 -0
- package/form/DropDownField/utils.js +15 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +220 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +116 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +18 -38
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +75 -24
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +42 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +259 -14
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +45 -13
- package/form/Form/FormView.js +1 -4
- package/form/Form/FormView.scss +1 -14
- package/form/HtmlField/HtmlFieldView.d.ts +1 -2
- package/form/HtmlField/HtmlFieldView.scss +6 -3
- package/form/ImageField/ImageFieldView.js +15 -3
- package/form/ImageField/ImageFieldView.scss +7 -24
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +33 -14
- package/form/InputField/InputFieldView.scss +267 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +197 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +238 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +228 -0
- package/form/RadioListField/RadioListFieldView.d.ts +1 -2
- package/form/RadioListField/RadioListFieldView.js +20 -16
- package/form/RadioListField/RadioListFieldView.scss +11 -1
- package/form/RateField/RateFieldView.js +17 -10
- package/form/RateField/RateFieldView.scss +118 -40
- package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +18 -9
- package/form/ReCaptchaField/ReCaptchaFieldView.scss +1 -5
- package/form/SliderField/SliderFieldView.d.ts +1 -2
- package/form/SliderField/SliderFieldView.js +1 -1
- package/form/SliderField/SliderFieldView.scss +338 -299
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +192 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +147 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/form/TimeField/TimeFieldView.js +16 -14
- package/form/TimeField/TimeFieldView.scss +22 -68
- package/form/TimeField/TimePanelView.scss +65 -68
- package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
- package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
- package/form/TimeRangeField/TimeRangeFieldView.scss +81 -0
- package/icons/index.d.ts +2 -0
- package/icons/index.js +110 -0
- package/icons/svgs/add.svg +4 -0
- package/icons/svgs/add_square.svg +5 -0
- package/icons/svgs/arrow_down_18x18.svg +4 -0
- package/icons/svgs/arrow_down_24x24.svg +4 -0
- package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
- package/icons/svgs/arrow_left_18x18.svg +4 -0
- package/icons/svgs/arrow_left_24x24.svg +4 -0
- package/icons/svgs/arrow_right_18x18.svg +4 -0
- package/icons/svgs/arrow_right_24x24.svg +5 -0
- package/icons/svgs/arrow_up_18x18.svg +4 -0
- package/icons/svgs/arrow_up_24x24.svg +4 -0
- package/icons/svgs/blank.svg +4 -0
- package/icons/svgs/burger.svg +5 -0
- package/icons/svgs/calendar_check.svg +5 -0
- package/icons/svgs/calendar_range.svg +8 -0
- package/icons/svgs/cancel_ellips.svg +4 -0
- package/icons/svgs/chart.svg +6 -0
- package/icons/svgs/checkmark_12x12.svg +4 -0
- package/icons/svgs/checkmark_8x8.svg +4 -0
- package/icons/svgs/circle_cross_12x12.svg +4 -0
- package/icons/svgs/circle_cross_16x16.svg +4 -0
- package/icons/svgs/circle_cross_18x18.svg +4 -0
- package/icons/svgs/clip.svg +3 -0
- package/icons/svgs/copy.svg +5 -0
- package/icons/svgs/cross_12x12.svg +4 -0
- package/icons/svgs/cross_4x4.svg +3 -0
- package/icons/svgs/cross_8x8.svg +4 -0
- package/icons/svgs/cut.svg +3 -0
- package/icons/svgs/date_range.svg +8 -0
- package/icons/svgs/default_16x16.svg +4 -0
- package/icons/svgs/default_24x24.svg +11 -0
- package/icons/svgs/double_arrow_down.svg +5 -0
- package/icons/svgs/double_arrow_left.svg +5 -0
- package/icons/svgs/double_arrow_right.svg +5 -0
- package/icons/svgs/double_arrow_up.svg +5 -0
- package/icons/svgs/doughnut_chart.svg +5 -0
- package/icons/svgs/edit.svg +4 -0
- package/icons/svgs/error_16x16.svg +5 -0
- package/icons/svgs/error_24x24.svg +12 -0
- package/icons/svgs/expand_down.svg +3 -0
- package/icons/svgs/expand_left.svg +3 -0
- package/icons/svgs/expand_left_double.svg +4 -0
- package/icons/svgs/expand_right.svg +3 -0
- package/icons/svgs/expand_right_double.svg +4 -0
- package/icons/svgs/expand_up.svg +3 -0
- package/icons/svgs/facebook.svg +3 -0
- package/icons/svgs/file_dock.svg +6 -0
- package/icons/svgs/filter.svg +3 -0
- package/icons/svgs/fluid.svg +4 -0
- package/icons/svgs/folder.svg +3 -0
- package/icons/svgs/group.svg +8 -0
- package/icons/svgs/home.svg +4 -0
- package/icons/svgs/img_box.svg +5 -0
- package/icons/svgs/import.svg +4 -0
- package/icons/svgs/info_16x16.svg +5 -0
- package/icons/svgs/info_24x24.svg +12 -0
- package/icons/svgs/instagram.svg +5 -0
- package/icons/svgs/left_12x12.svg +3 -0
- package/icons/svgs/loading_default.svg +3 -0
- package/icons/svgs/loading_icon_thick.svg +3 -0
- package/icons/svgs/loading_purple.svg +9 -0
- package/icons/svgs/map.svg +7 -0
- package/icons/svgs/menu_dots.svg +5 -0
- package/icons/svgs/menu_left.svg +5 -0
- package/icons/svgs/minis_sq.svg +4 -0
- package/icons/svgs/paste.svg +8 -0
- package/icons/svgs/pie_chart.svg +5 -0
- package/icons/svgs/pin.svg +4 -0
- package/icons/svgs/sad.svg +6 -0
- package/icons/svgs/search.svg +4 -0
- package/icons/svgs/setting_line.svg +3 -0
- package/icons/svgs/share.svg +7 -0
- package/icons/svgs/sort.svg +7 -0
- package/icons/svgs/star.svg +3 -0
- package/icons/svgs/success_16x16.svg +4 -0
- package/icons/svgs/success_24x24.svg +11 -0
- package/icons/svgs/support.svg +3 -0
- package/icons/svgs/telegram.svg +3 -0
- package/icons/svgs/trash.svg +6 -0
- package/icons/svgs/upload.svg +4 -0
- package/icons/svgs/user.svg +4 -0
- package/icons/svgs/view.svg +4 -0
- package/icons/svgs/view_hide.svg +5 -0
- package/icons/svgs/vk.svg +3 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/icons/svgs/whatsapp.svg +7 -0
- package/index.d.ts +41 -2
- package/index.js +43 -4
- package/index.scss +91 -68
- package/layout/Header/HeaderView.js +43 -6
- package/layout/Header/HeaderView.scss +138 -23
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +70 -22
- package/layout/Notifications/NotificationsItemView.d.ts +1 -2
- package/layout/Notifications/NotificationsItemView.js +9 -8
- package/layout/Notifications/NotificationsItemView.scss +1 -39
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.scss +3 -0
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/CircleProgressBarView.scss +9 -7
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.scss +10 -8
- package/layout/Sidebar/FooterIcons/FooterIcons.d.ts +10 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.js +54 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.scss +36 -0
- package/layout/Sidebar/FooterIcons/index.d.ts +2 -0
- package/layout/Sidebar/FooterIcons/index.js +7 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.d.ts +10 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.js +44 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +52 -0
- package/layout/Sidebar/SidebarLogo/index.d.ts +2 -0
- package/layout/Sidebar/SidebarLogo/index.js +7 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.d.ts +11 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.js +53 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.scss +45 -0
- package/layout/Sidebar/SidebarUser/index.d.ts +2 -0
- package/layout/Sidebar/SidebarUser/index.js +7 -0
- package/layout/Sidebar/SidebarView.d.ts +2 -0
- package/layout/Sidebar/SidebarView.js +26 -0
- package/layout/Sidebar/SidebarView.scss +304 -0
- package/layout/Sidebar/index.d.ts +2 -0
- package/layout/Sidebar/index.js +7 -0
- package/layout/Skeleton/SkeletonView.scss +7 -5
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +46 -37
- package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
- package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
- package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
- package/list/ControlsColumnView/ControlsColumnView.scss +7 -1
- package/list/Empty/EmptyView.js +1 -1
- package/list/Empty/EmptyView.scss +5 -1
- package/list/FlexGrid/FlexGridView.d.ts +2 -0
- package/list/FlexGrid/FlexGridView.js +71 -0
- package/list/FlexGrid/FlexGridView.scss +60 -0
- package/list/Grid/GridView.js +10 -4
- package/list/Grid/GridView.scss +153 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
- package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/index.js +7 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
- package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
- package/list/Grid/views/DiagramColumnView/index.js +7 -0
- package/list/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +28 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +265 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/list/PaginationSize/PaginationSizeView.js +5 -5
- package/list/PaginationSize/PaginationSizeView.scss +0 -8
- package/list/Steps/StepItemView.scss +13 -12
- package/list/Steps/StepsView.scss +3 -1
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +5 -8
- package/modal/Modal/ModalView.scss +140 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -3
- package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
- package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -2
- package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
- package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
- package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
- package/nav/ButtonGroup/ButtonGroupView.js +33 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +84 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.scss +17 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavBarView.js +9 -4
- package/nav/Nav/NavBarView.scss +35 -1
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavButtonView.js +8 -2
- package/nav/Nav/NavButtonView.scss +6 -5
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +21 -2
- package/nav/Nav/NavIconView.scss +33 -6
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavLinkView.js +9 -2
- package/nav/Nav/NavLinkView.scss +14 -5
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +11 -7
- package/nav/Nav/NavListView.scss +11 -10
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +9 -4
- package/nav/Nav/NavTabsView.scss +50 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +63 -54
- package/package.json +8 -6
- package/scss/animations/index.scss +1 -0
- package/scss/animations/loading.scss +13 -0
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +83 -24
- package/scss/mixins/customMixins.scss +6 -0
- package/scss/mixins/date.scss +436 -0
- package/scss/mixins/index.scss +6 -2
- package/scss/mixins/navs.scss +39 -0
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +29 -0
- package/scss/normalize.scss +25 -0
- package/scss/variables/common/colors.scss +199 -83
- package/scss/variables/common/media.scss +3 -0
- package/scss/variables/common/typography.scss +99 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/calendar.scss +8 -6
- package/scss/variables/components/input.scss +10 -7
- package/scss/variables/components/ratefield.scss +3 -1
- package/scss/variables/index.scss +10 -11
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +19 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +19 -0
- package/utils/renderIcon.d.ts +9 -0
- package/utils/renderIcon.js +27 -0
- package/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.scss +0 -88
- package/content/Collapse/CollapseView.d.ts +0 -2
- package/content/Collapse/CollapseView.scss +0 -15
- package/icons/close.svg +0 -3
- package/icons/default.svg +0 -11
- package/icons/error.svg +0 -12
- package/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -259
- package/icons/info.svg +0 -12
- package/icons/success.svg +0 -4
- package/icons/warning.svg +0 -12
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
//** Themed colors **//
|
|
1
4
|
:root {
|
|
2
5
|
--primary: #651fff;
|
|
3
6
|
--primary-dark: #5218d0;
|
|
@@ -17,89 +20,180 @@
|
|
|
17
20
|
--warning: #ffe457;
|
|
18
21
|
--warning-dark: #ebd251;
|
|
19
22
|
--warning-light: #fff6c6;
|
|
23
|
+
|
|
24
|
+
--graphite-dark: #2b2828;
|
|
20
25
|
--graphite: #323232;
|
|
21
|
-
--
|
|
22
|
-
--gray: #
|
|
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
|
-
|
|
26
|
+
--mouse: #626262;
|
|
27
|
+
--gray-dark: #cbd5db;
|
|
28
|
+
--gray: #dbe2e6;
|
|
29
|
+
--light-gray: #f1f5f7;
|
|
30
|
+
|
|
31
|
+
--additional-gray-dark: #26272f;
|
|
32
|
+
--additional-light-gray: #f8f8f8;
|
|
33
|
+
--additional-light-blue: #f9fcff;
|
|
34
|
+
|
|
35
|
+
--text-color: #312c3a;
|
|
36
|
+
--link-color: #2BA3FB;
|
|
37
|
+
--link-color-hover: #00c2ff;
|
|
38
|
+
|
|
39
|
+
--background-color: #EDF0F1;
|
|
40
|
+
|
|
41
|
+
--element-placeholder-color: rgba(0, 0, 0, 0.3);
|
|
42
|
+
--element-placeholder-color-disabled: rgba(0, 0, 0, 0.1);
|
|
43
|
+
--element-border-color: #dbe2e6;
|
|
44
|
+
--element-border-color-hover: #cbd5db;
|
|
45
|
+
--element-background-color: #FFFFFF;
|
|
46
|
+
--element-background-color-disabled: #f1f5f7;
|
|
47
|
+
--element-field-background-color: #FFFFFF;
|
|
48
|
+
|
|
49
|
+
--scroll-thumb-color: #cbd5db;
|
|
50
|
+
--scroll-track-color: #f1f5f7;
|
|
51
|
+
--icon-color: #323232;
|
|
52
|
+
|
|
53
|
+
--diagram-success: var(--success-light);
|
|
54
|
+
--diagram-warning: var(--warning-light);
|
|
55
|
+
--diagram-danger: var(--danger-light);
|
|
56
|
+
--diagram-secondary: var(--secondary-light);
|
|
57
|
+
--sidebar-label-color: #312C3A;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
html[data-theme="dark"] {
|
|
61
|
+
--primary: #9362ff;
|
|
62
|
+
--primary-dark: #8256e4;
|
|
63
|
+
--primary-light: #b898ff;
|
|
64
|
+
--secondary: #9ea8db;
|
|
65
|
+
--secondary-dark: #727eb7;
|
|
66
|
+
--secondary-light: #bcc3e9;
|
|
67
|
+
--success: #5ecc71;
|
|
68
|
+
--success-dark: #5b9966;
|
|
69
|
+
--success-light: #89e699;
|
|
70
|
+
--danger: #f76e6e;
|
|
71
|
+
--danger-dark: #e95b5b;
|
|
72
|
+
--danger-light: #ffa1a1;
|
|
73
|
+
--info: #9ae1f1;
|
|
74
|
+
--info-dark: #77c4d6;
|
|
75
|
+
--info-light: #ccf6ff;
|
|
76
|
+
--warning: #ffe457;
|
|
77
|
+
--warning-dark: #ebd251;
|
|
78
|
+
--warning-light: #fff6c8;
|
|
79
|
+
|
|
80
|
+
--graphite-dark: #16171b;
|
|
81
|
+
--graphite: #191b1f;
|
|
82
|
+
--mouse: #adacac;
|
|
83
|
+
--gray-dark: #272a37;
|
|
84
|
+
--gray: #333646;
|
|
85
|
+
--light-gray: #4b4e5e;
|
|
86
|
+
|
|
87
|
+
--additional-gray-dark: #26272f;
|
|
88
|
+
--additional-light-gray: #f8f8f8;
|
|
89
|
+
--additional-light-blue: #f9fcff;
|
|
90
|
+
|
|
91
|
+
--text-color: #ffffff;
|
|
92
|
+
--link-color: #2BA3FB;
|
|
93
|
+
--link-color-hover: #00c2ff;
|
|
94
|
+
|
|
95
|
+
--background-color: #101216;
|
|
96
|
+
|
|
97
|
+
--element-placeholder-color: rgba(255, 255, 255, 0.3);
|
|
98
|
+
--element-placeholder-color-disabled: rgba(255, 255, 255, 0.1);
|
|
99
|
+
--element-border-color: #333646;
|
|
100
|
+
--element-border-color-hover: #272a37;
|
|
101
|
+
--element-background-color: #191B1F;
|
|
102
|
+
--element-background-color-disabled: #333646;
|
|
103
|
+
--element-field-background-color: #101216;
|
|
104
|
+
|
|
105
|
+
--scroll-thumb-color: #333646;
|
|
106
|
+
--scroll-track-color: #26272f;
|
|
107
|
+
--icon-color: #FFFFFF;
|
|
108
|
+
|
|
109
|
+
--diagram-success: var(--success-dark);
|
|
110
|
+
--diagram-warning: var(--warning-dark);
|
|
111
|
+
--diagram-danger: var(--danger-dark);
|
|
112
|
+
--diagram-secondary: var(--secondary-dark);
|
|
113
|
+
--sidebar-label-color: #ffffff;
|
|
53
114
|
}
|
|
54
115
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$
|
|
59
|
-
$
|
|
60
|
-
$
|
|
61
|
-
$
|
|
62
|
-
$
|
|
63
|
-
$
|
|
64
|
-
$
|
|
65
|
-
$
|
|
66
|
-
$
|
|
67
|
-
$
|
|
68
|
-
$
|
|
69
|
-
$
|
|
70
|
-
$
|
|
71
|
-
$
|
|
72
|
-
$
|
|
73
|
-
|
|
74
|
-
$
|
|
75
|
-
$
|
|
76
|
-
$
|
|
77
|
-
$gray-dark: var(--gray-dark)
|
|
78
|
-
$gray: var(--gray)
|
|
79
|
-
$light-gray: var(--light-gray)
|
|
80
|
-
|
|
81
|
-
$
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
116
|
+
$primary: var(--primary);
|
|
117
|
+
$primary-dark: var(--primary-dark);
|
|
118
|
+
$primary-light: var(--primary-light);
|
|
119
|
+
$secondary: var(--secondary);
|
|
120
|
+
$secondary-dark: var(--secondary-dark);
|
|
121
|
+
$secondary-light: var(--secondary-light);
|
|
122
|
+
$success: var(--success);
|
|
123
|
+
$success-dark: var(--success-dark);
|
|
124
|
+
$success-light: var(--success-light);
|
|
125
|
+
$danger: var(--danger);
|
|
126
|
+
$danger-dark: var(--danger-dark);
|
|
127
|
+
$danger-light: var(--danger-light);
|
|
128
|
+
$info: var(--info);
|
|
129
|
+
$info-dark: var(--info-dark);
|
|
130
|
+
$info-light: var(--info-light);
|
|
131
|
+
$warning: var(--warning);
|
|
132
|
+
$warning-dark: var(--warning-dark);
|
|
133
|
+
$warning-light: var(--warning-light);
|
|
134
|
+
|
|
135
|
+
$graphite-dark: var(--graphite-dark);
|
|
136
|
+
$graphite: var(--graphite);
|
|
137
|
+
$mouse: var(--mouse);
|
|
138
|
+
$gray-dark: var(--gray-dark);
|
|
139
|
+
$gray: var(--gray);
|
|
140
|
+
$light-gray: var(--light-gray);
|
|
141
|
+
|
|
142
|
+
$additional-gray-dark: var(--additional-gray-dark);
|
|
143
|
+
$additional-light-gray: var(--additional-gray);
|
|
144
|
+
$additional-light-blue: var(--additional-light-blue);
|
|
145
|
+
|
|
146
|
+
$text-color: var(--text-color);
|
|
147
|
+
$link-color: var(--link-color);
|
|
148
|
+
$link-color-hover: var(--link-color-hover);
|
|
149
|
+
|
|
150
|
+
$background-color: var(--background-color);
|
|
151
|
+
|
|
152
|
+
$element-placeholder-color: var(--element-placeholder-color);
|
|
153
|
+
$element-placeholder-color-disabled: var(--element-placeholder-color-disabled);
|
|
154
|
+
$element-border-color: var(--element-border-color);
|
|
155
|
+
$element-border-color-hover: var(--element-border-color-hover);
|
|
156
|
+
$element-background-color: var(--element-background-color);
|
|
157
|
+
$element-background-color-disabled: var(--element-background-color-disabled);
|
|
158
|
+
$element-field-background-color: var(--element-field-background-color);
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
$scroll-thumb-color: var(--scroll-thumb-color);
|
|
162
|
+
$scroll-track-color: var(--scroll-track-color);
|
|
163
|
+
$icon-color: var(--icon-color);
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
$diagram-success: var(--diagram-success);
|
|
167
|
+
$diagram-warning: var(--diagram-warning);
|
|
168
|
+
$diagram-danger: var(--diagram-danger);
|
|
169
|
+
$diagram-secondary: var(--diagram-secondary);
|
|
170
|
+
$sidebar-label-color: var(--sidebar-label-color);
|
|
171
|
+
//** Themed colors **//
|
|
86
172
|
|
|
173
|
+
//! Base colors !//
|
|
87
174
|
$black: rgba(#000, 1) !default;
|
|
88
175
|
$black-60: rgba(#000, 0.6) !default;
|
|
89
176
|
$black-30: rgba(#000, 0.3) !default;
|
|
90
177
|
$black-10: rgba(#000, 0.1) !default;
|
|
91
178
|
$black-4: rgba(#000, 0.04) !default;
|
|
92
179
|
$white: #fff !default;
|
|
93
|
-
|
|
94
|
-
$
|
|
95
|
-
$
|
|
96
|
-
|
|
97
|
-
$gradient-
|
|
98
|
-
$
|
|
180
|
+
$white-60: rgba(#ffffff, 0.6) !default;
|
|
181
|
+
$white-30: rgba(#ffffff, 0.3) !default;
|
|
182
|
+
$white-10: rgba(#ffffff, 0.1) !default;
|
|
183
|
+
$white-4: rgba(#ffffff, 0.04) !default;
|
|
184
|
+
$gradient-blue: linear-gradient(180deg, #651fff, #ba9bff);
|
|
185
|
+
$static-text-color: #312C3A !default;
|
|
186
|
+
//! Base colors !//
|
|
99
187
|
|
|
100
188
|
$color-themes: () !default;
|
|
101
|
-
$color-themes: map
|
|
189
|
+
$color-themes: map.merge(
|
|
102
190
|
(
|
|
191
|
+
"basic": (
|
|
192
|
+
"color": $gray,
|
|
193
|
+
"color-dark": $gray-dark,
|
|
194
|
+
"color-light": $light-gray,
|
|
195
|
+
"text-color": $text-color,
|
|
196
|
+
),
|
|
103
197
|
"primary": (
|
|
104
198
|
"color": $primary,
|
|
105
199
|
"color-dark": $primary-dark,
|
|
@@ -124,30 +218,52 @@ $color-themes: map-merge(
|
|
|
124
218
|
"color-light": $danger-light,
|
|
125
219
|
"text-color": $white,
|
|
126
220
|
),
|
|
221
|
+
"error": (
|
|
222
|
+
"color": $danger,
|
|
223
|
+
"color-dark": $danger-dark,
|
|
224
|
+
"color-light": $danger-light,
|
|
225
|
+
"text-color": $white,
|
|
226
|
+
),
|
|
127
227
|
"warning": (
|
|
128
228
|
"color": $warning,
|
|
129
229
|
"color-dark": $warning-dark,
|
|
130
230
|
"color-light": $warning-light,
|
|
131
|
-
"text-color": $
|
|
231
|
+
"text-color": $text-color,
|
|
132
232
|
),
|
|
133
233
|
"info": (
|
|
134
234
|
"color": $info,
|
|
135
235
|
"color-dark": $info-dark,
|
|
136
236
|
"color-light": $info-light,
|
|
137
|
-
"text-color": $
|
|
237
|
+
"text-color": $text-color,
|
|
138
238
|
),
|
|
139
|
-
"
|
|
140
|
-
"color": $
|
|
141
|
-
"color-
|
|
142
|
-
"color-light": $light,
|
|
143
|
-
"text-color": $dark,
|
|
144
|
-
),
|
|
145
|
-
"dark": (
|
|
146
|
-
"color": $dark,
|
|
147
|
-
"color-dark": $dark,
|
|
148
|
-
"color-light": $light,
|
|
149
|
-
"text-color": $white,
|
|
239
|
+
"link": (
|
|
240
|
+
"color-dark": $link-color,
|
|
241
|
+
"color-light": $link-color-hover,
|
|
150
242
|
),
|
|
151
243
|
),
|
|
152
244
|
$color-themes
|
|
153
245
|
);
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
$diagram-colors: () !default;
|
|
249
|
+
$diagram-colors: map.merge(
|
|
250
|
+
(
|
|
251
|
+
"success": (
|
|
252
|
+
"color": $success,
|
|
253
|
+
"color-themed": $diagram-success,
|
|
254
|
+
),
|
|
255
|
+
"warning": (
|
|
256
|
+
"color": $warning,
|
|
257
|
+
"color-themed": $diagram-warning,
|
|
258
|
+
),
|
|
259
|
+
"danger": (
|
|
260
|
+
"color": $danger,
|
|
261
|
+
"color-themed": $diagram-danger,
|
|
262
|
+
),
|
|
263
|
+
"secondary": (
|
|
264
|
+
"color": $secondary,
|
|
265
|
+
"color-themed": $diagram-secondary,
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
$diagram-colors
|
|
269
|
+
);
|
|
@@ -1,39 +1,110 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "colors";
|
|
3
|
+
|
|
1
4
|
/*
|
|
2
5
|
* Common font variables
|
|
3
6
|
*/
|
|
4
7
|
|
|
5
8
|
$font-family-nunito: "Nunito", sans-serif;
|
|
6
9
|
|
|
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;
|
|
13
|
-
|
|
14
|
-
$line-height-xs: 17px;
|
|
15
|
-
$line-height-sm: 20px;
|
|
16
|
-
$line-height-base: 22px;
|
|
17
|
-
$line-height-lg: 25px;
|
|
18
|
-
$line-height-xl: 34px;
|
|
19
|
-
$line-height-2xl: 45px;
|
|
20
|
-
|
|
21
|
-
$font-weight-sm: 400;
|
|
22
|
-
$font-weight-md: 500;
|
|
23
|
-
$font-weight-lg: 700;
|
|
10
|
+
$font-size-xs: 12px !default;
|
|
11
|
+
$font-size-sm: 14px !default;
|
|
12
|
+
$font-size-base: 16px !default;
|
|
13
|
+
$font-size-lg: 18px !default;
|
|
14
|
+
$font-size-xl: 24px !default;
|
|
15
|
+
$font-size-2xl: 32px !default;
|
|
24
16
|
|
|
17
|
+
$line-height-xs: 16px !default;
|
|
18
|
+
$line-height-sm: 18px !default;
|
|
19
|
+
$line-height-base: 22px !default;
|
|
20
|
+
$line-height-lg: 24px !default;
|
|
21
|
+
$line-height-xl: 32px !default;
|
|
22
|
+
$line-height-2xl: 44px !default;
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
$btn-font-weight-sm: 400;
|
|
31
|
-
$btn-font-weight-lg: 800;
|
|
24
|
+
$font-weight-sm: 400 !default;
|
|
25
|
+
$font-weight-md: 500 !default;
|
|
26
|
+
$font-weight-lg: 700 !default;
|
|
32
27
|
|
|
33
|
-
$
|
|
34
|
-
$
|
|
35
|
-
|
|
28
|
+
$title-types: () !default;
|
|
29
|
+
$title-types: map.merge(
|
|
30
|
+
(
|
|
31
|
+
"h1": (
|
|
32
|
+
"font-size": $font-size-2xl,
|
|
33
|
+
"font-weight": $font-weight-lg,
|
|
34
|
+
"line-height": $line-height-2xl,
|
|
35
|
+
"color": colors.$text-color,
|
|
36
|
+
),
|
|
37
|
+
"h2": (
|
|
38
|
+
"font-size": $font-size-xl,
|
|
39
|
+
"font-weight": $font-weight-lg,
|
|
40
|
+
"line-height": $line-height-xl,
|
|
41
|
+
"color": colors.$text-color,
|
|
42
|
+
),
|
|
43
|
+
"h3": (
|
|
44
|
+
"font-size": $font-size-lg,
|
|
45
|
+
"font-weight": $font-weight-lg,
|
|
46
|
+
"line-height": $line-height-lg,
|
|
47
|
+
"color": colors.$text-color,
|
|
48
|
+
),
|
|
49
|
+
"h4": (
|
|
50
|
+
"font-size": $font-size-base,
|
|
51
|
+
"font-weight": $font-weight-lg,
|
|
52
|
+
"line-height": $line-height-base,
|
|
53
|
+
"color": colors.$text-color,
|
|
54
|
+
),
|
|
55
|
+
"h5": (
|
|
56
|
+
"font-size": $font-size-sm,
|
|
57
|
+
"font-weight": $font-weight-md,
|
|
58
|
+
"line-height": $line-height-sm,
|
|
59
|
+
"color": colors.$text-color,
|
|
60
|
+
),
|
|
61
|
+
"h6": (
|
|
62
|
+
"font-size": $font-size-xs,
|
|
63
|
+
"font-weight": $font-weight-md,
|
|
64
|
+
"line-height": $line-height-xs,
|
|
65
|
+
"color": colors.$text-color,
|
|
66
|
+
),
|
|
67
|
+
"subtitle": (
|
|
68
|
+
"font-size": $font-size-2xl,
|
|
69
|
+
"font-weight": $font-weight-md,
|
|
70
|
+
"line-height": $line-height-2xl,
|
|
71
|
+
"color": colors.$text-color,
|
|
72
|
+
),
|
|
73
|
+
),
|
|
74
|
+
$title-types
|
|
75
|
+
);
|
|
36
76
|
|
|
37
|
-
$
|
|
77
|
+
$text-types: () !default;
|
|
78
|
+
$text-types: map.merge(
|
|
79
|
+
(
|
|
80
|
+
"body": (
|
|
81
|
+
"font-size": $font-size-base,
|
|
82
|
+
"font-weight": $font-weight-sm,
|
|
83
|
+
"line-height": $line-height-base,
|
|
84
|
+
"color": colors.$text-color,
|
|
85
|
+
),
|
|
86
|
+
"span": (
|
|
87
|
+
"font-size": $font-size-base,
|
|
88
|
+
"font-weight": $font-weight-sm,
|
|
89
|
+
"line-height": $line-height-base,
|
|
90
|
+
"color": colors.$text-color,
|
|
91
|
+
),
|
|
92
|
+
"boldSpan": (
|
|
93
|
+
"font-size": $font-size-base,
|
|
94
|
+
"font-weight": $font-weight-lg,
|
|
95
|
+
"line-height": $line-height-base,
|
|
96
|
+
"color": colors.$text-color,
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
$text-types
|
|
100
|
+
);
|
|
38
101
|
|
|
39
|
-
$
|
|
102
|
+
$typography-colors: (
|
|
103
|
+
"text-color": colors.$text-color,
|
|
104
|
+
"primary": colors.$primary,
|
|
105
|
+
"secondary": colors.$secondary,
|
|
106
|
+
"success": colors.$success,
|
|
107
|
+
"danger": colors.$danger,
|
|
108
|
+
"warning": colors.$warning,
|
|
109
|
+
"info": colors.$info,
|
|
110
|
+
) !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$transition-duration: .15s;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$calendar-
|
|
5
|
-
$calendar-
|
|
6
|
-
$calendar-
|
|
1
|
+
@use "../common/colors";
|
|
2
|
+
@use "../common/old-variables";
|
|
3
|
+
|
|
4
|
+
$calendar-primary-color: colors.$primary !default;
|
|
5
|
+
$calendar-primary-light-color: colors.$primary-light !default;
|
|
6
|
+
$calendar-secondary-color: old-variables.$border-default !default;
|
|
7
|
+
$calendar-text-color: old-variables.$heading !default;
|
|
8
|
+
$calendar-selected-text-color: colors.$white !default;
|
|
7
9
|
|
|
8
10
|
$calendar-font-weight: 500 !default;
|
|
9
11
|
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
@use "../common/old-variables";
|
|
2
|
+
|
|
3
|
+
$input-height-sm: 34px;
|
|
4
|
+
$input-height-md: 46px;
|
|
5
|
+
$input-height-lg: 56px;
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
//remove after ready all inputs
|
|
1
9
|
//Small
|
|
2
10
|
$input-label-margin-bottom-sm: 4px;
|
|
3
11
|
|
|
@@ -52,15 +60,10 @@ $input-message-margin-top-lg: $input-message-margin-top-sm;
|
|
|
52
60
|
$input-message-icon-size-lg: $input-message-icon-size-sm;
|
|
53
61
|
$input-message-icon-margin-right-lg: $input-message-icon-margin-right-sm;
|
|
54
62
|
|
|
55
|
-
|
|
56
|
-
$input-height-sm: 28px !default;
|
|
57
|
-
$input-height-md: 36px !default;
|
|
58
|
-
$input-height-lg: 46px !default;
|
|
59
|
-
|
|
60
|
-
$input-border: 1px solid $border-default !default;
|
|
63
|
+
$input-border: 1px solid old-variables.$border-default !default;
|
|
61
64
|
$input-border-radius: 4px !default;
|
|
62
65
|
|
|
63
66
|
$input-padding-y: 0 !default;
|
|
64
67
|
$input-padding-x: 8px !default;
|
|
65
68
|
$input-addon-padding: 0.6rem !default;
|
|
66
|
-
$input-text-padding: 0.4rem !default;
|
|
69
|
+
$input-text-padding: 0.4rem !default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
1
|
+
@forward 'common/colors';
|
|
2
|
+
@forward 'common/media';
|
|
3
|
+
@forward 'common/typography';
|
|
4
|
+
@forward 'common/radiuses';
|
|
5
|
+
@forward 'common/old-variables';
|
|
6
|
+
@forward 'common/variables';
|
|
6
7
|
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@import 'components/input';
|
|
12
|
-
@import 'components/ratefield';
|
|
8
|
+
@forward 'components/button';
|
|
9
|
+
@forward 'components/calendar';
|
|
10
|
+
@forward 'components/icon';
|
|
11
|
+
@forward 'components/input';
|
|
@@ -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,19 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
4
|
+
.TextView {
|
|
5
|
+
margin-bottom: 1em;
|
|
6
|
+
font-family: variables.$font-family-nunito;
|
|
7
|
+
|
|
8
|
+
@each $typeName, $typeMap in variables.$text-types {
|
|
9
|
+
&_type_#{$typeName} {
|
|
10
|
+
@include mixins.typography-type($typeMap);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@each $colorName, $color in variables.$typography-colors {
|
|
15
|
+
&_color_#{$colorName} {
|
|
16
|
+
color: $color;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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;
|