@steroidsjs/bootstrap 3.0.0-beta.12 → 3.0.0-beta.120
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 +4 -3
- package/content/Alert/AlertView.scss +75 -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 +135 -6
- package/content/Calendar/CalendarView.js +6 -3
- package/content/Calendar/CalendarView.scss +270 -175
- package/content/Calendar/CaptionElement.js +26 -15
- package/content/Calendar/CaptionElement.scss +168 -106
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.d.ts +13 -0
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.js +43 -0
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.scss +107 -0
- package/content/CalendarSystem/AsideCalendars/index.d.ts +2 -0
- package/content/CalendarSystem/AsideCalendars/index.js +7 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.d.ts +9 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.js +40 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.scss +41 -0
- package/content/CalendarSystem/AsideHeader/index.d.ts +2 -0
- package/content/CalendarSystem/AsideHeader/index.js +7 -0
- package/content/CalendarSystem/CalendarSystemEventGroupModalView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemEventGroupModalView.js +25 -0
- package/content/CalendarSystem/CalendarSystemEventGroupModalView.scss +53 -0
- package/content/CalendarSystem/CalendarSystemModalView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemModalView.js +38 -0
- package/content/CalendarSystem/CalendarSystemModalView.scss +84 -0
- package/content/CalendarSystem/CalendarSystemView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemView.js +28 -0
- package/content/CalendarSystem/CalendarSystemView.scss +50 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.d.ts +10 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.js +26 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.scss +57 -0
- package/content/CalendarSystem/ContentHeader/index.d.ts +2 -0
- package/content/CalendarSystem/ContentHeader/index.js +7 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.d.ts +14 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.js +39 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.scss +41 -0
- package/content/CalendarSystem/MonthGrid/index.d.ts +2 -0
- package/content/CalendarSystem/MonthGrid/index.js +7 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.d.ts +11 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.js +73 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.scss +126 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/index.d.ts +2 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/index.js +7 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.d.ts +14 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.js +25 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.scss +154 -0
- package/content/CalendarSystem/WeekGrid/index.d.ts +2 -0
- package/content/CalendarSystem/WeekGrid/index.js +7 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.d.ts +12 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.js +79 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.scss +108 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/index.d.ts +2 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/index.js +7 -0
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -108
- package/content/Chart/ChartView.d.ts +2 -0
- package/content/Chart/ChartView.js +57 -0
- package/content/Chart/ChartView.scss +39 -0
- package/content/Chat/ChatView.d.ts +2 -0
- package/content/Chat/ChatView.js +62 -0
- package/content/Chat/ChatView.scss +59 -0
- package/content/Chat/index.d.ts +2 -0
- package/content/Chat/index.js +7 -0
- package/content/Chat/views/BubbleMessage/BubbleMessageView.d.ts +16 -0
- package/content/Chat/views/BubbleMessage/BubbleMessageView.js +57 -0
- package/content/Chat/views/BubbleMessage/BubbleMessageView.scss +157 -0
- package/content/Chat/views/BubbleMessage/index.d.ts +2 -0
- package/content/Chat/views/BubbleMessage/index.js +7 -0
- package/content/Chat/views/BubblesDateGroup/BubblesDateGroup.d.ts +12 -0
- package/content/Chat/views/BubblesDateGroup/BubblesDateGroup.js +48 -0
- package/content/Chat/views/BubblesDateGroup/BubblesDateGroup.scss +78 -0
- package/content/Chat/views/BubblesDateGroup/index.d.ts +2 -0
- package/content/Chat/views/BubblesDateGroup/index.js +7 -0
- package/content/Chat/views/ChatInput/ChatInputView.d.ts +7 -0
- package/content/Chat/views/ChatInput/ChatInputView.js +41 -0
- package/content/Chat/views/ChatInput/ChatInputView.scss +36 -0
- package/content/Chat/views/ChatInput/index.d.ts +2 -0
- package/content/Chat/views/ChatInput/index.js +7 -0
- package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
- package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
- package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
- package/content/Dashboard/DashboardItemView.d.ts +2 -0
- package/content/Dashboard/DashboardItemView.js +18 -0
- package/content/Dashboard/DashboardItemView.scss +47 -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 +18 -2
- package/content/Icon/IconView.scss +1 -23
- package/content/Kanban/KanbanView.d.ts +2 -0
- package/content/Kanban/KanbanView.js +29 -0
- package/content/Kanban/KanbanView.scss +12 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.d.ts +2 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.js +36 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.scss +75 -0
- package/content/Kanban/views/KanbanColumn/index.d.ts +2 -0
- package/content/Kanban/views/KanbanColumn/index.js +7 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.js +57 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.scss +210 -0
- package/content/Kanban/views/KanbanModal/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/CreateOrEditTaskModalContentView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/CreateOrEditTaskModalContentView.js +95 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/Label.d.ts +6 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/Label.js +11 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.d.ts +8 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.js +49 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.scss +30 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/TaskDetailsModalContentView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/TaskDetailsModalContentView.js +53 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/index.js +7 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.d.ts +5 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.js +66 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.scss +110 -0
- package/content/Kanban/views/KanbanTask/index.d.ts +2 -0
- package/content/Kanban/views/KanbanTask/index.js +7 -0
- package/content/Kanban/views/TaskTags/TaskTags.d.ts +9 -0
- package/content/Kanban/views/TaskTags/TaskTags.js +14 -0
- package/content/Kanban/views/TaskTags/TaskTags.scss +7 -0
- package/content/Kanban/views/TaskTags/index.d.ts +2 -0
- package/content/Kanban/views/TaskTags/index.js +7 -0
- 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 +3 -0
- package/content/Slider/SliderView.js +21 -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 +201 -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 +9 -4
- package/form/CheckboxField/CheckboxFieldView.scss +225 -37
- package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
- package/form/CheckboxListField/CheckboxListFieldView.js +19 -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 +41 -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 +381 -179
- 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 +77 -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 +46 -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 +7 -1
- package/form/ImageField/ImageFieldModalView.js +3 -1
- 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 +277 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -24
- package/form/NumberField/NumberFieldView.scss +197 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +14 -9
- package/form/PasswordField/PasswordFieldView.scss +253 -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 +18 -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 +4 -2
- 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 +113 -0
- package/icons/svgs/add.svg +4 -0
- package/icons/svgs/add_16x16.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/done-all.svg +4 -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/send.svg +3 -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 +5 -0
- package/icons/svgs/view_hide.svg +5 -0
- package/icons/svgs/vk.svg +3 -0
- package/icons/svgs/warning_16x16.svg +7 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/icons/svgs/whatsapp.svg +7 -0
- package/index.d.ts +65 -2
- package/index.js +67 -4
- package/index.scss +100 -69
- package/layout/Header/HeaderView.js +43 -6
- package/layout/Header/HeaderView.scss +137 -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 +56 -84
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.scss +4 -1
- 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 +5 -5
- 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 +152 -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/Grid/views/TreeColumnView/TreeColumnView.d.ts +2 -0
- package/list/Grid/views/TreeColumnView/TreeColumnView.js +41 -0
- package/list/Grid/views/TreeColumnView/TreeColumnView.scss +46 -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 +277 -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.js +1 -1
- package/nav/Controls/ControlsView.scss +18 -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 +99 -24
- package/scss/mixins/customMixins.scss +6 -0
- package/scss/mixins/date.scss +436 -0
- package/scss/mixins/index.scss +7 -2
- package/scss/mixins/navs.scss +39 -0
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/tooltip.scss +23 -0
- package/scss/mixins/typography.scss +29 -0
- package/scss/normalize.scss +25 -0
- package/scss/variables/common/colors.scss +202 -83
- package/scss/variables/common/media.scss +3 -0
- package/scss/variables/common/typography.scss +112 -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/getFormattedExpandLabel.d.ts +1 -0
- package/utils/getFormattedExpandLabel.js +5 -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/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -259
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -1,154 +1,185 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--card-footer-background-color: var(--additional-light-blue);
|
|
5
|
+
--card-dots-color: #323232;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-theme="dark"] {
|
|
9
|
+
--card-footer-background-color: var(--gray-dark);
|
|
10
|
+
--card-dots-color: #ffffff;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
$card-footer-background-color: var(--card-footer-background-color);
|
|
14
|
+
$card-dots-color: var(--card-dots-color);
|
|
15
|
+
|
|
16
|
+
%headTemplate {
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
font-size: variables.$font-size-lg;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
%subheadTemplate {
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
font-size: variables.$font-size-xs;
|
|
25
|
+
line-height: 16px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
%dotTemplate {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: 4px;
|
|
31
|
+
height: 4px;
|
|
32
|
+
background-color: $card-dots-color;
|
|
33
|
+
border-radius: variables.$radius-circle;
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
.CardView {
|
|
2
37
|
$root: &;
|
|
3
38
|
|
|
4
|
-
background: $white;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
height: fit-content;
|
|
7
|
-
position: relative;
|
|
8
39
|
display: flex;
|
|
9
|
-
flex-
|
|
40
|
+
flex-flow: column;
|
|
10
41
|
overflow: hidden;
|
|
42
|
+
height: fit-content;
|
|
11
43
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
44
|
+
border: 1px solid variables.$element-border-color;
|
|
45
|
+
border-radius: variables.$radius-large;
|
|
46
|
+
color: variables.$text-color;
|
|
47
|
+
background-color: variables.$element-background-color;
|
|
16
48
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
49
|
+
&__header {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-flow: row nowrap;
|
|
52
|
+
justify-content: space-between;
|
|
21
53
|
|
|
22
|
-
|
|
23
|
-
|
|
54
|
+
padding: 18px;
|
|
55
|
+
padding-bottom: 20px;
|
|
24
56
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
57
|
+
&_withoutCover {
|
|
58
|
+
padding-bottom: 3px;
|
|
59
|
+
}
|
|
28
60
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
61
|
+
&-data {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-flow: row nowrap;
|
|
64
|
+
align-items: center;
|
|
65
|
+
column-gap: 8px;
|
|
66
|
+
}
|
|
33
67
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
68
|
+
&-avatar {
|
|
69
|
+
margin-right: 2px;
|
|
37
70
|
}
|
|
38
|
-
}
|
|
39
71
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
72
|
+
&-text-content {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-flow: column nowrap;
|
|
43
75
|
}
|
|
44
|
-
}
|
|
45
76
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
border: 1px solid $border-default;
|
|
77
|
+
&-head {
|
|
78
|
+
@extend %headTemplate;
|
|
49
79
|
}
|
|
50
80
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@include card-border-theme($root, $value)
|
|
54
|
-
}
|
|
81
|
+
&-subhead {
|
|
82
|
+
@extend %subheadTemplate;
|
|
55
83
|
}
|
|
56
84
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
85
|
+
&-menu {
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
|
|
91
|
+
.MenuView__icon {
|
|
92
|
+
width: 24px;
|
|
93
|
+
height: 24px;
|
|
94
|
+
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
align-items: center;
|
|
98
|
+
|
|
99
|
+
rect {
|
|
100
|
+
fill: $card-dots-color;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
svg {
|
|
104
|
+
transform: translateX(5px);
|
|
105
|
+
}
|
|
60
106
|
}
|
|
61
107
|
}
|
|
62
108
|
}
|
|
63
109
|
|
|
64
|
-
&
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
110
|
+
&__cover {
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 227px;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
border-radius: variables.$radius-large;
|
|
68
115
|
|
|
69
|
-
|
|
70
|
-
|
|
116
|
+
img {
|
|
117
|
+
display: block;
|
|
118
|
+
width: 100%;
|
|
119
|
+
height: 100%;
|
|
120
|
+
object-fit: cover;
|
|
71
121
|
}
|
|
72
122
|
}
|
|
73
123
|
|
|
74
|
-
&__content
|
|
75
|
-
|
|
76
|
-
grid-row-gap: 16px;
|
|
124
|
+
&__content {
|
|
125
|
+
padding: 16px;
|
|
77
126
|
}
|
|
78
127
|
|
|
79
|
-
&
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
width: 100%;
|
|
84
|
-
word-break: break-all;
|
|
128
|
+
&__content-inner {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-flow: column nowrap;
|
|
131
|
+
row-gap: 16px;
|
|
85
132
|
}
|
|
86
133
|
|
|
87
|
-
&
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
border-bottom: 1px solid $border-default;
|
|
91
|
-
font-weight: bold;
|
|
92
|
-
font-size: $card-header-font-size;
|
|
93
|
-
line-height: $card-header-line-height;
|
|
94
|
-
word-break: break-all;
|
|
134
|
+
&__title {
|
|
135
|
+
@extend %headTemplate;
|
|
136
|
+
margin-bottom: 8px;
|
|
95
137
|
}
|
|
96
138
|
|
|
97
|
-
&
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
border-top: 1px solid $border-default;
|
|
101
|
-
font-weight: bold;
|
|
102
|
-
font-size: $card-header-font-size;
|
|
103
|
-
line-height: $card-header-line-height;
|
|
104
|
-
word-break: break-all;
|
|
139
|
+
&__description {
|
|
140
|
+
font-size: variables.$font-size-base;
|
|
141
|
+
line-height: 22px;
|
|
105
142
|
}
|
|
106
143
|
|
|
107
|
-
&
|
|
108
|
-
|
|
144
|
+
&__buttons {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-flow: row wrap;
|
|
147
|
+
$columnGap: 8px;
|
|
148
|
+
row-gap: 8px;
|
|
149
|
+
column-gap: $columnGap;
|
|
150
|
+
|
|
151
|
+
button:only-of-type {
|
|
152
|
+
width: 100%;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
button:not(:only-of-type) {
|
|
156
|
+
width: calc(50% - $columnGap / 2);
|
|
157
|
+
}
|
|
109
158
|
}
|
|
110
159
|
|
|
111
|
-
&
|
|
160
|
+
&__links {
|
|
112
161
|
display: flex;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
font-size: $card-title-font-size;
|
|
116
|
-
line-height: $card-title-line-height;
|
|
117
|
-
border-bottom: 8px;
|
|
118
|
-
margin-bottom: 8px;
|
|
119
|
-
}
|
|
162
|
+
flex-flow: row wrap;
|
|
163
|
+
column-gap: 16px;
|
|
120
164
|
|
|
121
|
-
|
|
122
|
-
|
|
165
|
+
a {
|
|
166
|
+
line-height: 18px;
|
|
167
|
+
}
|
|
123
168
|
}
|
|
124
169
|
|
|
125
|
-
|
|
170
|
+
&__footer {
|
|
126
171
|
display: flex;
|
|
127
|
-
flex-
|
|
128
|
-
justify-content: center;
|
|
129
|
-
align-items: center;
|
|
130
|
-
padding: 10px 20px;
|
|
131
|
-
position: static;
|
|
132
|
-
width: 140px;
|
|
133
|
-
height: 28px;
|
|
134
|
-
border: none;
|
|
135
|
-
color: $white;
|
|
136
|
-
background: $primary;
|
|
137
|
-
border-radius: $card-button-border-radius;
|
|
138
|
-
}
|
|
172
|
+
flex-flow: column wrap;
|
|
139
173
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
width: 100%;
|
|
143
|
-
height: 100%;
|
|
144
|
-
object-fit: cover;
|
|
145
|
-
}
|
|
174
|
+
padding: 16px;
|
|
175
|
+
background-color: $card-footer-background-color;
|
|
146
176
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
177
|
+
&-head {
|
|
178
|
+
@extend %headTemplate;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&-subhead {
|
|
182
|
+
@extend %subheadTemplate;
|
|
183
|
+
}
|
|
153
184
|
}
|
|
154
185
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
19
|
+
var typography_1 = require("@steroidsjs/core/ui/typography");
|
|
20
|
+
var form_1 = require("@steroidsjs/core/ui/form");
|
|
21
|
+
var nav_1 = require("@steroidsjs/core/ui/nav");
|
|
22
|
+
var DEFAULT_AXIS_PARAMS = {
|
|
23
|
+
tickSize: 5,
|
|
24
|
+
tickPadding: 5,
|
|
25
|
+
tickRotation: 0,
|
|
26
|
+
legend: '',
|
|
27
|
+
legendPosition: 'middle'
|
|
28
|
+
};
|
|
29
|
+
var DEFAULT_LINE_CHART_CONFIG = {
|
|
30
|
+
yScale: {
|
|
31
|
+
type: 'linear',
|
|
32
|
+
min: 'auto',
|
|
33
|
+
max: 'auto',
|
|
34
|
+
stacked: true,
|
|
35
|
+
reverse: false
|
|
36
|
+
},
|
|
37
|
+
xScale: { type: 'point' },
|
|
38
|
+
axisBottom: __assign(__assign({}, DEFAULT_AXIS_PARAMS), { legendOffset: 36 }),
|
|
39
|
+
axisLeft: __assign(__assign({}, DEFAULT_AXIS_PARAMS), { legendOffset: -40 }),
|
|
40
|
+
pointSize: 8,
|
|
41
|
+
useMesh: true
|
|
42
|
+
};
|
|
43
|
+
function ChartView(props) {
|
|
44
|
+
var bem = (0, hooks_1.useBem)('ChartView');
|
|
45
|
+
var ChartComponent = props.chartComponent;
|
|
46
|
+
var defaultChartConfig = (props.useDefaultLineChartConfig && DEFAULT_LINE_CHART_CONFIG) || {};
|
|
47
|
+
var customChartHeightVariable = { '--chart-custom-height': "".concat(props.chartHeight, "px") };
|
|
48
|
+
return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: __assign(__assign(__assign({}, props.style), { height: "".concat(props.wrapperHeight, "px") }), customChartHeightVariable) },
|
|
49
|
+
props.title && (react_1["default"].createElement(typography_1.Title, { type: "h3", content: props.title, className: bem.element('title') })),
|
|
50
|
+
react_1["default"].createElement("div", { className: bem.element('controls') },
|
|
51
|
+
props.checkboxes && (react_1["default"].createElement(form_1.CheckboxListField, __assign({}, props.checkboxes))),
|
|
52
|
+
props.buttonGroup && (react_1["default"].createElement(nav_1.ButtonGroup, __assign({}, props.buttonGroup)))),
|
|
53
|
+
react_1["default"].createElement(ChartComponent, __assign({ style: {
|
|
54
|
+
height: "".concat(props.chartHeight, "px !important")
|
|
55
|
+
}, data: props.data }, defaultChartConfig, props.config))));
|
|
56
|
+
}
|
|
57
|
+
exports["default"] = ChartView;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--chart-grid-color:rgb(221, 221, 221);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--chart-grid-color: rgba(255, 255, 255, 0.10);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$chart-grid-color: var(--chart-grid-color);
|
|
12
|
+
|
|
13
|
+
.ChartView {
|
|
14
|
+
height: auto;
|
|
15
|
+
&__title {
|
|
16
|
+
font-size: variables.$font-size-lg;
|
|
17
|
+
font-weight: variables.$font-weight-lg;
|
|
18
|
+
line-height: variables.$line-height-lg;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__controls {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-flow: row nowrap;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__controls + div {
|
|
28
|
+
height: var(--chart-custom-height) !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
text {
|
|
32
|
+
font-family: variables.$font-family-nunito !important;
|
|
33
|
+
fill: variables.$text-color !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
line {
|
|
37
|
+
stroke: $chart-grid-color !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
exports.__esModule = true;
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
31
|
+
var ChatInput_1 = __importDefault(require("./views/ChatInput"));
|
|
32
|
+
var BubblesDateGroup_1 = __importDefault(require("./views/BubblesDateGroup"));
|
|
33
|
+
function ChatView(props) {
|
|
34
|
+
var bem = (0, useBem_1["default"])('ChatView');
|
|
35
|
+
var wrapperRef = (0, react_1.useRef)(null);
|
|
36
|
+
var contentRef = (0, react_1.useRef)(null);
|
|
37
|
+
var prevContentHeightRef = (0, react_1.useRef)(null);
|
|
38
|
+
(0, react_1.useEffect)(function () {
|
|
39
|
+
var wrapperHeight = wrapperRef.current.clientHeight;
|
|
40
|
+
var contentHeight = contentRef.current.clientHeight;
|
|
41
|
+
var wrapperScrollTop = wrapperRef.current.scrollTop;
|
|
42
|
+
if (!prevContentHeightRef.current || wrapperScrollTop === prevContentHeightRef.current - wrapperHeight) {
|
|
43
|
+
wrapperRef.current.scrollTo({
|
|
44
|
+
top: contentHeight - wrapperHeight,
|
|
45
|
+
left: 0,
|
|
46
|
+
behavior: prevContentHeightRef.current ? 'smooth' : 'auto'
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
prevContentHeightRef.current = contentHeight;
|
|
50
|
+
}, [props.groupedMessagesByDates]);
|
|
51
|
+
var renderChatScreen = (0, react_1.useCallback)(function () { return (react_1["default"].createElement("div", { className: bem.element('screen') },
|
|
52
|
+
react_1["default"].createElement("div", { className: bem.element('wrapper'), ref: wrapperRef },
|
|
53
|
+
react_1["default"].createElement("div", { className: bem.element('content'), ref: contentRef }, Object.entries(props.groupedMessagesByDates)
|
|
54
|
+
.map(function (_a) {
|
|
55
|
+
var date = _a[0], groupedMessages = _a[1];
|
|
56
|
+
return (react_1["default"].createElement(BubblesDateGroup_1["default"], { key: date, date: date, groupedMessages: groupedMessages, currentUser: props.currentUser }));
|
|
57
|
+
}))))); }, [bem, props.groupedMessagesByDates, props.currentUser]);
|
|
58
|
+
return (react_1["default"].createElement("div", { className: bem.block() },
|
|
59
|
+
renderChatScreen(),
|
|
60
|
+
react_1["default"].createElement(ChatInput_1["default"], { chatId: props.chatId, onSendMessage: props.onSendMessage })));
|
|
61
|
+
}
|
|
62
|
+
exports["default"] = ChatView;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
@use "../../scss/mixins";
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--chat-background-color: #fff;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-theme="dark"] {
|
|
9
|
+
--chat-background-color: #101216;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
$chat-background-color: var(--chat-background-color);
|
|
13
|
+
$sidebar-scroll-thumb-color: var(--sidebar-scroll-thumb-color);
|
|
14
|
+
$sidebar-scroll-track-color: var(--sidebar-scroll-track-color);
|
|
15
|
+
|
|
16
|
+
.ChatView {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
|
|
20
|
+
padding: 0 16px;
|
|
21
|
+
background-color: $chat-background-color;
|
|
22
|
+
|
|
23
|
+
&__screen {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
align-items: center;
|
|
28
|
+
margin-bottom: 10px;
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__wrapper {
|
|
33
|
+
position: relative;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
margin-right: -8px;
|
|
37
|
+
overflow-y: scroll;
|
|
38
|
+
|
|
39
|
+
@include mixins.scrollWrapper(#{700px}, 8px, $sidebar-scroll-thumb-color, $sidebar-scroll-track-color);
|
|
40
|
+
|
|
41
|
+
&::-webkit-scrollbar {
|
|
42
|
+
width: 4px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&::-webkit-scrollbar-track {
|
|
46
|
+
margin-bottom: 16px;
|
|
47
|
+
margin-top: 16px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:first-child {
|
|
51
|
+
margin-top: 15px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__content {
|
|
56
|
+
position: relative;
|
|
57
|
+
transition: all 6s;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
var ChatView_1 = __importDefault(require("./ChatView"));
|
|
7
|
+
exports["default"] = ChatView_1["default"];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IChatUser } from '@steroidsjs/core/ui/content/Chat/Chat';
|
|
3
|
+
import './BubbleMessageView.scss';
|
|
4
|
+
interface IBubbleMessageProps {
|
|
5
|
+
user: IChatUser;
|
|
6
|
+
text: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
timeAgo: string;
|
|
9
|
+
isCurrentUser: boolean;
|
|
10
|
+
isFirstMessage?: boolean;
|
|
11
|
+
isLastMessage?: boolean;
|
|
12
|
+
isTodayMessage?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare function BubbleMessageView(props: IBubbleMessageProps): JSX.Element;
|
|
15
|
+
declare const _default: React.MemoExoticComponent<typeof BubbleMessageView>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
exports.__esModule = true;
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var react_use_1 = require("react-use");
|
|
31
|
+
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
32
|
+
var Avatar_1 = require("@steroidsjs/core/ui/content/Avatar");
|
|
33
|
+
var typography_1 = require("@steroidsjs/core/ui/typography");
|
|
34
|
+
var Title_1 = __importDefault(require("@steroidsjs/core/ui/typography/Title"));
|
|
35
|
+
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
|
|
36
|
+
var timeTemplatesAndUnits_1 = require("@steroidsjs/core/ui/content/Chat/constants/timeTemplatesAndUnits");
|
|
37
|
+
var utils_1 = require("@steroidsjs/core/ui/content/Chat/utils");
|
|
38
|
+
require("./BubbleMessageView.scss");
|
|
39
|
+
function BubbleMessageView(props) {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
var bem = (0, useBem_1["default"])('BubbleMessageView');
|
|
42
|
+
var _c = (0, react_1.useState)(props.timeAgo), timeAgo = _c[0], setTimeAgo = _c[1];
|
|
43
|
+
(0, react_use_1.useInterval)(function () { return setTimeAgo((0, utils_1.calculateMessageTimeAgo)(props.timestamp)); }, props.isTodayMessage ? timeTemplatesAndUnits_1.SECONDS_IN_MINUTE_VALUE : null);
|
|
44
|
+
return (react_1["default"].createElement("div", { className: bem.block({
|
|
45
|
+
'another-user': !props.isCurrentUser,
|
|
46
|
+
'last-message': !!props.isLastMessage
|
|
47
|
+
}) },
|
|
48
|
+
react_1["default"].createElement("div", { className: bem.element('user-message') },
|
|
49
|
+
!props.isCurrentUser && props.isFirstMessage && (react_1["default"].createElement(Title_1["default"], { className: bem.element('username'), type: 'h4', tag: 'h4', content: "".concat(props.user.firstName, " ").concat(props.user.lastName) })),
|
|
50
|
+
react_1["default"].createElement(typography_1.Text, { className: bem.element('text'), type: "body", content: props.text }),
|
|
51
|
+
react_1["default"].createElement("div", { className: bem.element('indicators') },
|
|
52
|
+
react_1["default"].createElement(typography_1.Text, { className: bem.element('time'), type: "body3", content: timeAgo }),
|
|
53
|
+
props.isCurrentUser && (react_1["default"].createElement(Icon_1["default"], { className: bem.element('check'), name: "done-all" })))),
|
|
54
|
+
props.user && (react_1["default"].createElement("div", { className: bem.element('avatar') },
|
|
55
|
+
react_1["default"].createElement(Avatar_1.Avatar, { src: (_a = props.user.avatar) === null || _a === void 0 ? void 0 : _a.src, title: "".concat(props.user.firstName, " ").concat(props.user.lastName), status: (_b = props.user.avatar) === null || _b === void 0 ? void 0 : _b.status, size: 'sm' })))));
|
|
56
|
+
}
|
|
57
|
+
exports["default"] = (0, react_1.memo)(BubbleMessageView);
|