@steroidsjs/bootstrap 3.0.0-beta.9 → 3.0.0-beta.90
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,102 +1,210 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--number-field-arrow-color: #414141;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
8
|
+
--number-field-arrow-color: #ffffff;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$number-field-arrow-color: var(--number-field-arrow-color);
|
|
12
|
+
|
|
1
13
|
.NumberFieldView {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&_disabled {
|
|
18
|
-
color: rgba(0, 0, 0, .25);
|
|
19
|
-
background-color: $back-disabled;
|
|
20
|
-
border: unset;
|
|
21
|
-
cursor: not-allowed;
|
|
22
|
-
|
|
23
|
-
&:active, &:hover {
|
|
24
|
-
border: unset;
|
|
25
|
-
box-shadow: unset;
|
|
14
|
+
$root: &;
|
|
15
|
+
display: flex;
|
|
16
|
+
position: relative;
|
|
17
|
+
padding: 0;
|
|
18
|
+
|
|
19
|
+
font-family: variables.$font-family-nunito;
|
|
20
|
+
|
|
21
|
+
// Hide default arrows
|
|
22
|
+
/* Chrome, Safari, Edge, Opera */
|
|
23
|
+
input::-webkit-outer-spin-button,
|
|
24
|
+
input::-webkit-inner-spin-button {
|
|
25
|
+
-webkit-appearance: none;
|
|
26
|
+
margin: 0;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
/* Firefox */
|
|
30
|
+
input[type="number"] {
|
|
31
|
+
-moz-appearance: textfield;
|
|
30
32
|
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Hide default arrows
|
|
34
|
-
/* Chrome, Safari, Edge, Opera */
|
|
35
|
-
input::-webkit-outer-spin-button,
|
|
36
|
-
input::-webkit-inner-spin-button {
|
|
37
|
-
-webkit-appearance: none;
|
|
38
|
-
margin: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Firefox */
|
|
42
|
-
input[type=number] {
|
|
43
|
-
-moz-appearance: textfield;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&__input {
|
|
47
|
-
flex-grow: 1;
|
|
48
|
-
border: none;
|
|
49
|
-
outline: none;
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
color: $heading;
|
|
52
|
-
|
|
53
|
-
width: inherit;
|
|
54
|
-
padding: $input-padding-y $input-padding-x;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__arrows-container{
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-flow: column;
|
|
60
|
-
grid-gap: 2px;
|
|
61
|
-
font-size: .6em;
|
|
62
|
-
|
|
63
|
-
opacity: 0;
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
transition: opacity .15s;
|
|
66
|
-
}
|
|
67
|
-
&:hover &__arrows-container{
|
|
68
|
-
opacity: 1;
|
|
69
|
-
pointer-events: all;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&__arrow{
|
|
73
|
-
padding: $input-padding-y $input-padding-x;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
height: 50%;
|
|
76
33
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
34
|
+
&__arrows-container {
|
|
35
|
+
position: absolute;
|
|
36
|
+
z-index: 2;
|
|
37
|
+
right: 0;
|
|
38
|
+
top: 0;
|
|
39
|
+
height: 100%;
|
|
40
|
+
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
align-items: center;
|
|
45
|
+
|
|
46
|
+
transition: opacity 150ms ease-in-out;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__arrow {
|
|
52
|
+
width: 30px;
|
|
53
|
+
height: 16px;
|
|
54
|
+
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
outline: none;
|
|
59
|
+
border: none;
|
|
60
|
+
background: transparent;
|
|
61
|
+
|
|
62
|
+
span > svg > path {
|
|
63
|
+
stroke: $number-field-arrow-color;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&_disabled {
|
|
67
|
+
span {
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
}
|
|
70
|
+
span > svg > path {
|
|
71
|
+
stroke: variables.$element-background-color-disabled;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:last-child {
|
|
76
|
+
transform: rotate(180deg);
|
|
88
77
|
}
|
|
89
|
-
}
|
|
90
78
|
}
|
|
91
79
|
|
|
92
|
-
&
|
|
93
|
-
|
|
80
|
+
&_size {
|
|
81
|
+
&_lg {
|
|
82
|
+
#{$root} {
|
|
83
|
+
&__input {
|
|
84
|
+
height: 56px;
|
|
85
|
+
border-radius: variables.$radius-large;
|
|
86
|
+
font-size: variables.$font-size-lg;
|
|
87
|
+
|
|
88
|
+
&-effects {
|
|
89
|
+
border-radius: variables.$radius-large;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__arrow {
|
|
94
|
+
transform: translateX(-3px) translateY(6px);
|
|
95
|
+
|
|
96
|
+
&:last-child {
|
|
97
|
+
transform: translateX(-3px) translateY(-8px) rotate(180deg);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&_md {
|
|
104
|
+
#{$root} {
|
|
105
|
+
&__input {
|
|
106
|
+
height: 46px;
|
|
107
|
+
border-radius: variables.$radius-large;
|
|
108
|
+
font-size: variables.$font-size-base;
|
|
109
|
+
|
|
110
|
+
&-effects {
|
|
111
|
+
border-radius: variables.$radius-large;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__arrow {
|
|
116
|
+
transform: translateX(-3px) translateY(4px) scale(0.8);
|
|
117
|
+
|
|
118
|
+
&:last-child {
|
|
119
|
+
transform: translateX(-3px) translateY(-4px) rotate(180deg) scale(0.8);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&_sm {
|
|
126
|
+
#{$root} {
|
|
127
|
+
&__input {
|
|
128
|
+
height: 34px;
|
|
129
|
+
font-size: variables.$font-size-sm;
|
|
130
|
+
|
|
131
|
+
&-effects {
|
|
132
|
+
border-radius: variables.$radius-small;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__arrow {
|
|
137
|
+
transform: translateX(1px) translateY(2px) scale(0.8);
|
|
138
|
+
|
|
139
|
+
&:last-child {
|
|
140
|
+
transform: translateX(1px) translateY(-3px) rotate(180deg) scale(0.8);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&__input {
|
|
148
|
+
width: 100%;
|
|
149
|
+
outline: none;
|
|
150
|
+
border: 1px solid variables.$element-border-color;
|
|
151
|
+
border-radius: variables.$radius-small;
|
|
152
|
+
padding: 5px 22px 5px 8px;
|
|
153
|
+
line-height: 24px;
|
|
154
|
+
z-index: 1;
|
|
155
|
+
font-weight: variables.$font-weight-sm;
|
|
156
|
+
color: variables.$text-color;
|
|
157
|
+
|
|
158
|
+
background-color: variables.$element-field-background-color;
|
|
159
|
+
|
|
160
|
+
&::placeholder {
|
|
161
|
+
color: variables.$element-placeholder-color;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&:disabled {
|
|
165
|
+
background-color: variables.$element-background-color-disabled;
|
|
166
|
+
color: variables.$element-placeholder-color-disabled;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&:hover:not(:disabled):not(:focus) {
|
|
170
|
+
border-color: variables.$element-border-color-hover;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&:active:not(:disabled) {
|
|
174
|
+
border: 1px solid variables.$primary;
|
|
175
|
+
}
|
|
94
176
|
}
|
|
95
177
|
|
|
96
|
-
|
|
97
|
-
|
|
178
|
+
&:focus-within #{$root}__arrows-container {
|
|
179
|
+
opacity: 1;
|
|
180
|
+
pointer-events: all;
|
|
98
181
|
}
|
|
99
182
|
|
|
100
|
-
|
|
101
|
-
|
|
183
|
+
&__input-effects {
|
|
184
|
+
position: absolute;
|
|
185
|
+
display: block;
|
|
186
|
+
z-index: 5;
|
|
187
|
+
top: 0;
|
|
188
|
+
left: 0;
|
|
189
|
+
|
|
190
|
+
width: 100%;
|
|
191
|
+
height: 100%;
|
|
192
|
+
background-color: transparent;
|
|
193
|
+
border: 4px solid variables.$primary-light;
|
|
194
|
+
opacity: 0;
|
|
195
|
+
pointer-events: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&__input:focus ~ &__input-effects {
|
|
199
|
+
opacity: 1;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&__input:active ~ &__input-effects {
|
|
203
|
+
opacity: 0;
|
|
204
|
+
}
|
|
102
205
|
|
|
206
|
+
&_filled #{$root}__arrows-container {
|
|
207
|
+
opacity: 1;
|
|
208
|
+
pointer-events: all;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { IPasswordFieldViewProps } from '@steroidsjs/core/ui/form/PasswordField/PasswordField';
|
|
3
|
-
export default function PasswordFieldView(props: IPasswordFieldViewProps
|
|
2
|
+
export default function PasswordFieldView(props: IPasswordFieldViewProps): JSX.Element;
|
|
@@ -42,15 +42,17 @@ var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
|
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
43
|
function PasswordFieldView(props) {
|
|
44
44
|
var bem = (0, hooks_1.useBem)('PasswordFieldView');
|
|
45
|
-
return (React.createElement("div", { className: bem(bem.block(
|
|
46
|
-
|
|
45
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
46
|
+
size: props.size,
|
|
47
|
+
filled: !!props.input.value,
|
|
48
|
+
disabled: props.inputProps.disabled
|
|
49
|
+
}), props.className) },
|
|
50
|
+
React.createElement("div", { className: bem.element('container', {
|
|
47
51
|
disabled: props.inputProps.disabled
|
|
48
|
-
})
|
|
49
|
-
React.createElement("input", __assign({ className: bem
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
React.createElement(Icon_1["default"], { name: props.inputProps.type === 'password' ? 'securityEye' : 'securityEyeSlash' })))),
|
|
54
|
-
props.security && (React.createElement("div", { className: bem.element('security-bar', props.securityLevel) }))));
|
|
52
|
+
}) },
|
|
53
|
+
React.createElement("input", __assign({ className: bem.element('input') }, props.inputProps, { id: props.id })),
|
|
54
|
+
props.showSecurityIcon && (React.createElement("span", { className: bem(bem.element('icon-eye')), onMouseDown: props.onShowPassword, onMouseUp: props.onHidePassword },
|
|
55
|
+
React.createElement(Icon_1["default"], { name: props.inputProps.type === 'password' ? 'view_hide' : 'view' })))),
|
|
56
|
+
props.showSecurityBar && (React.createElement("div", { className: bem.element('security-bar', props.securityLevel) }))));
|
|
55
57
|
}
|
|
56
58
|
exports["default"] = PasswordFieldView;
|
|
@@ -1,76 +1,251 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--security-bar-background: #eef1f2;
|
|
5
|
+
--eye-default-color: #eef1f2;
|
|
6
|
+
--eye-filled-color: #323232;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html[data-theme="dark"] {
|
|
10
|
+
--security-bar-background: #5b5c6b;
|
|
11
|
+
--eye-default-color: #5b5c6b;
|
|
12
|
+
--eye-filled-color: #ffffff;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
$security-bar-background: var(--security-bar-background);
|
|
16
|
+
$eye-default-color: var(--eye-default-color);
|
|
17
|
+
$eye-filled-color: var(--eye-filled-color);
|
|
18
|
+
|
|
1
19
|
.PasswordFieldView {
|
|
20
|
+
$root: &;
|
|
21
|
+
|
|
22
|
+
position: relative;
|
|
23
|
+
line-height: 24px;
|
|
24
|
+
font-weight: variables.$font-weight-sm;
|
|
25
|
+
|
|
26
|
+
&__container {
|
|
27
|
+
position: relative;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 34px;
|
|
2
30
|
|
|
31
|
+
&::before {
|
|
32
|
+
position: absolute;
|
|
33
|
+
content: "";
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
3
36
|
|
|
4
|
-
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-flow: row nowrap;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
padding: 0;
|
|
37
|
+
transform: translate(-4px, -4px);
|
|
9
38
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
39
|
+
border-radius: 16px;
|
|
40
|
+
|
|
41
|
+
border: 4px solid variables.$primary-light;
|
|
42
|
+
transition: opacity 150ms ease-in-out;
|
|
43
|
+
opacity: 0;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus-within:not(&_disabled):not(:active)::before {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}
|
|
14
50
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
51
|
+
|
|
52
|
+
&__input {
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
border-radius: variables.$radius-small;
|
|
56
|
+
border: 1px solid variables.$element-border-color;
|
|
57
|
+
outline: none;
|
|
58
|
+
padding-left: 8px;
|
|
59
|
+
padding-right: 42px;
|
|
60
|
+
|
|
61
|
+
background-color: variables.$element-field-background-color;
|
|
62
|
+
color: variables.$text-color;
|
|
63
|
+
|
|
64
|
+
&::placeholder {
|
|
65
|
+
color: variables.$element-placeholder-color;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
border: 1px solid variables.$element-border-color-hover;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:not(:disabled):active {
|
|
73
|
+
border: 1px solid variables.$primary;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:not(:disabled):focus {
|
|
77
|
+
border-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:disabled {
|
|
81
|
+
border: none;
|
|
82
|
+
background-color: variables.$element-background-color-disabled;
|
|
83
|
+
}
|
|
18
84
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
85
|
+
|
|
86
|
+
&_size {
|
|
87
|
+
&_lg {
|
|
88
|
+
#{$root}__container {
|
|
89
|
+
height: 56px;
|
|
90
|
+
|
|
91
|
+
&::before {
|
|
92
|
+
border-radius: 16px;
|
|
93
|
+
transform: translateX(-2%) translateY(-6.5%);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
#{$root}__input {
|
|
98
|
+
border-radius: variables.$radius-large;
|
|
99
|
+
font-size: variables.$font-size-lg;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&_md {
|
|
104
|
+
#{$root}__container {
|
|
105
|
+
height: 46px;
|
|
106
|
+
|
|
107
|
+
&::before {
|
|
108
|
+
border-radius: 16px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#{$root}__input {
|
|
113
|
+
border-radius: variables.$radius-large;
|
|
114
|
+
font-size: variables.$font-size-base;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&_sm {
|
|
119
|
+
#{$root}__container {
|
|
120
|
+
height: variables.$input-height-sm;
|
|
121
|
+
|
|
122
|
+
&::before {
|
|
123
|
+
border-radius: 12px;
|
|
124
|
+
transform: translateX(-2%) translateY(-9.5%);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
#{$root}__input {
|
|
129
|
+
border-radius: variables.$radius-small;
|
|
130
|
+
font-size: variables.$font-size-sm;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
26
133
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
134
|
+
|
|
135
|
+
&__security-bar {
|
|
136
|
+
position: relative;
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 4px;
|
|
139
|
+
border-radius: 4px;
|
|
140
|
+
margin-top: 8px;
|
|
141
|
+
|
|
142
|
+
background-color: $security-bar-background;
|
|
143
|
+
|
|
144
|
+
&::before {
|
|
145
|
+
content: "";
|
|
146
|
+
position: absolute;
|
|
147
|
+
width: 0%;
|
|
148
|
+
height: 4px;
|
|
149
|
+
border-radius: 4px;
|
|
150
|
+
transition: width 1s ease-in-out;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&_danger::before {
|
|
154
|
+
width: 33%;
|
|
155
|
+
background-color: variables.$danger;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&_warning::before {
|
|
159
|
+
width: 66%;
|
|
160
|
+
background-color: variables.$warning;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&_success::before {
|
|
164
|
+
width: 100%;
|
|
165
|
+
background-color: variables.$success;
|
|
166
|
+
}
|
|
48
167
|
}
|
|
49
168
|
|
|
50
|
-
&
|
|
51
|
-
|
|
52
|
-
|
|
169
|
+
&__icon-eye {
|
|
170
|
+
outline: none;
|
|
171
|
+
border: none;
|
|
172
|
+
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
position: absolute;
|
|
175
|
+
right: 8px;
|
|
176
|
+
top: 50%;
|
|
177
|
+
transform: translateY(-50%);
|
|
53
178
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
179
|
+
|
|
180
|
+
&__icon-eye {
|
|
181
|
+
width: 24px;
|
|
182
|
+
height: 24px;
|
|
183
|
+
|
|
184
|
+
svg {
|
|
185
|
+
path {
|
|
186
|
+
fill: $eye-default-color;
|
|
187
|
+
|
|
188
|
+
&:last-child {
|
|
189
|
+
stroke: $eye-default-color;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&:active {
|
|
195
|
+
svg {
|
|
196
|
+
path {
|
|
197
|
+
fill: inherit;
|
|
198
|
+
stroke: $eye-default-color;
|
|
199
|
+
}
|
|
200
|
+
circle {
|
|
201
|
+
stroke: $eye-default-color;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
66
205
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
206
|
+
|
|
207
|
+
&_filled {
|
|
208
|
+
#{$root}__icon-eye {
|
|
209
|
+
svg {
|
|
210
|
+
path {
|
|
211
|
+
fill: $eye-filled-color;
|
|
212
|
+
|
|
213
|
+
&:last-child {
|
|
214
|
+
stroke: $eye-filled-color;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&:active {
|
|
220
|
+
svg {
|
|
221
|
+
path {
|
|
222
|
+
fill: inherit;
|
|
223
|
+
stroke: $eye-filled-color;
|
|
224
|
+
}
|
|
225
|
+
circle {
|
|
226
|
+
stroke: $eye-filled-color;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
70
231
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
232
|
+
|
|
233
|
+
&_disabled {
|
|
234
|
+
#{$root}__input {
|
|
235
|
+
cursor: not-allowed;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
#{$root}__icon-eye {
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
#{$root}__security-bar {
|
|
243
|
+
opacity: 0;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
|
|
246
|
+
&::before {
|
|
247
|
+
opacity: 0;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
74
250
|
}
|
|
75
|
-
|
|
76
|
-
}
|
|
251
|
+
}
|