@smwb/ui-styles 1.0.0
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/LICENSE +21 -0
- package/README.md +60 -0
- package/less/_prelude.less +6 -0
- package/less/components/accordion/accordion.entry.less +2 -0
- package/less/components/accordion/accordion.less +36 -0
- package/less/components/appBar/appBar.entry.less +2 -0
- package/less/components/appBar/appBar.less +95 -0
- package/less/components/appLayout/appLayout.entry.less +2 -0
- package/less/components/appLayout/appLayout.less +112 -0
- package/less/components/avatar/avatar.entry.less +2 -0
- package/less/components/avatar/avatar.less +74 -0
- package/less/components/badge/badge.entry.less +2 -0
- package/less/components/badge/badge.less +66 -0
- package/less/components/bottomBar/bottomBar.entry.less +2 -0
- package/less/components/bottomBar/bottomBar.less +84 -0
- package/less/components/breadcrumbs/breadcrumbs.entry.less +2 -0
- package/less/components/breadcrumbs/breadcrumbs.less +57 -0
- package/less/components/button/button.entry.less +2 -0
- package/less/components/button/button.less +164 -0
- package/less/components/buttonGroup/buttonGroup.entry.less +2 -0
- package/less/components/buttonGroup/buttonGroup.less +95 -0
- package/less/components/card/card.entry.less +2 -0
- package/less/components/card/card.less +56 -0
- package/less/components/carousel/carousel.entry.less +2 -0
- package/less/components/carousel/carousel.less +75 -0
- package/less/components/chat/chat.entry.less +2 -0
- package/less/components/chat/chat.less +623 -0
- package/less/components/chat/chat.variables.less +9 -0
- package/less/components/checkbox/checkbox.entry.less +2 -0
- package/less/components/checkbox/checkbox.less +109 -0
- package/less/components/chip/chip.entry.less +2 -0
- package/less/components/chip/chip.less +121 -0
- package/less/components/datePicker/dataPicker.entry.less +2 -0
- package/less/components/datePicker/dataPicker.less +235 -0
- package/less/components/divider/divider.entry.less +2 -0
- package/less/components/divider/divider.less +69 -0
- package/less/components/expansionPanel/expansionPanel.entry.less +2 -0
- package/less/components/expansionPanel/expansionPanel.less +136 -0
- package/less/components/fileDrop/fileDrop.entry.less +2 -0
- package/less/components/fileDrop/fileDrop.less +67 -0
- package/less/components/fileInput/fileInput.entry.less +2 -0
- package/less/components/fileInput/fileInput.less +4 -0
- package/less/components/floatingButton/floatingButton.entry.less +2 -0
- package/less/components/floatingButton/floatingButton.less +94 -0
- package/less/components/grid/grid.entry.less +2 -0
- package/less/components/grid/grid.less +174 -0
- package/less/components/icon/icon.entry.less +2 -0
- package/less/components/icon/icon.less +27 -0
- package/less/components/imagesList/imagesList.entry.less +2 -0
- package/less/components/imagesList/imagesList.less +35 -0
- package/less/components/imagesList/imagesListItem/imagesListItem.entry.less +2 -0
- package/less/components/imagesList/imagesListItem/imagesListItem.less +117 -0
- package/less/components/list/list.entry.less +2 -0
- package/less/components/list/list.less +87 -0
- package/less/components/menu/menu.entry.less +2 -0
- package/less/components/menu/menu.less +121 -0
- package/less/components/message/message.entry.less +2 -0
- package/less/components/message/message.less +103 -0
- package/less/components/modal/modal.entry.less +2 -0
- package/less/components/modal/modal.less +215 -0
- package/less/components/page/page.entry.less +2 -0
- package/less/components/page/page.less +39 -0
- package/less/components/pageHeader/pageHeader.entry.less +2 -0
- package/less/components/pageHeader/pageHeader.less +49 -0
- package/less/components/pagination/pagination.entry.less +2 -0
- package/less/components/pagination/pagination.less +103 -0
- package/less/components/progressIndicator/progressIndicator.entry.less +2 -0
- package/less/components/progressIndicator/progressIndicator.less +107 -0
- package/less/components/radioButton/radioButton.entry.less +2 -0
- package/less/components/radioButton/radioButton.less +138 -0
- package/less/components/rating/rating.entry.less +2 -0
- package/less/components/rating/rating.less +65 -0
- package/less/components/ripple/ripple.entry.less +2 -0
- package/less/components/ripple/ripple.less +24 -0
- package/less/components/screenDivider/screenDivider.entry.less +2 -0
- package/less/components/screenDivider/screenDivider.less +56 -0
- package/less/components/selectField/selectField.entry.less +2 -0
- package/less/components/selectField/selectField.less +182 -0
- package/less/components/sheet/sheet.entry.less +2 -0
- package/less/components/sheet/sheet.less +243 -0
- package/less/components/sidebar/sidebar.entry.less +2 -0
- package/less/components/sidebar/sidebar.less +137 -0
- package/less/components/skeleton/skeleton.entry.less +2 -0
- package/less/components/skeleton/skeleton.less +67 -0
- package/less/components/slider/slider.entry.less +2 -0
- package/less/components/slider/slider.less +294 -0
- package/less/components/snackbar/snackbar.entry.less +2 -0
- package/less/components/snackbar/snackbar.less +157 -0
- package/less/components/stack/stack.entry.less +2 -0
- package/less/components/stack/stack.less +10 -0
- package/less/components/stepper/stepper.entry.less +2 -0
- package/less/components/stepper/stepper.less +142 -0
- package/less/components/table/table.entry.less +2 -0
- package/less/components/table/table.less +192 -0
- package/less/components/table/tablePagination/tablePagination.entry.less +2 -0
- package/less/components/table/tablePagination/tablePagination.less +62 -0
- package/less/components/tabs/tab/tab.entry.less +2 -0
- package/less/components/tabs/tab/tab.less +114 -0
- package/less/components/tabs/tabs.entry.less +2 -0
- package/less/components/tabs/tabs.less +44 -0
- package/less/components/textField/textField.entry.less +2 -0
- package/less/components/textField/textField.less +373 -0
- package/less/components/timePicker/timePicker.entry.less +2 -0
- package/less/components/timePicker/timePicker.less +95 -0
- package/less/components/toggle/toggle.entry.less +2 -0
- package/less/components/toggle/toggle.less +110 -0
- package/less/components/tooltip/tooltip.entry.less +2 -0
- package/less/components/tooltip/tooltip.less +36 -0
- package/less/components/treeView/treeView.entry.less +2 -0
- package/less/components/treeView/treeView.less +71 -0
- package/less/components/typography/typography.entry.less +2 -0
- package/less/components/typography/typography.less +86 -0
- package/less/components.less +59 -0
- package/less/connects/rt/table.less +26 -0
- package/less/connects.less +1 -0
- package/less/default/globals/default.variables.less +584 -0
- package/less/foundation/breakpoints.less +80 -0
- package/less/foundation/elevation.less +61 -0
- package/less/foundation/palette.less +310 -0
- package/less/foundation/radius.less +21 -0
- package/less/foundation/sizing.less +35 -0
- package/less/foundation/spacing.less +164 -0
- package/less/foundation/typography.less +25 -0
- package/less/foundation.less +18 -0
- package/less/headless-base.less +2 -0
- package/less/responsive.less +41 -0
- package/less/site/globals/site.variables.less +25 -0
- package/less/templates/adminDashboard/adminDashboard.less +27 -0
- package/less/templates/summer-ui/auth.less +30 -0
- package/less/templates/summer-ui/authCard.less +33 -0
- package/less/templates/summer-ui/authLayout.less +11 -0
- package/less/templates.less +4 -0
- package/less/theme.less +30 -0
- package/less/themes/material/variables.less +370 -0
- package/less/themes/summer/variables.less +380 -0
- package/less/variables.less +260 -0
- package/normalize.css +484 -0
- package/package.json +21 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
.smwb-text-field-checkbox {
|
|
2
|
+
min-width: 0 !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.smwb-checkbox {
|
|
6
|
+
&__icon {
|
|
7
|
+
opacity: 0;
|
|
8
|
+
transition: all 0.1s ease-in-out;
|
|
9
|
+
color: var(--smui-onPrimaryColor);
|
|
10
|
+
}
|
|
11
|
+
&__btn {
|
|
12
|
+
user-select: none;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
width: 18px;
|
|
15
|
+
height: 18px;
|
|
16
|
+
border-radius: @checkboxBorderRadius;
|
|
17
|
+
border: 2px solid var(--smui-checkboxBorderColor);
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
position: relative;
|
|
24
|
+
transition: all 0.2s ease-in-out;
|
|
25
|
+
&::before {
|
|
26
|
+
width: 40px;
|
|
27
|
+
height: 40px;
|
|
28
|
+
border-radius: @circleBorderRadius;
|
|
29
|
+
content: "";
|
|
30
|
+
transform: translate(-50%, -50%) scale(0);
|
|
31
|
+
transition: all 0.2s ease-in-out;
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 50%;
|
|
34
|
+
left: 50%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__wrapper {
|
|
39
|
+
color: var(--smui-primaryTextColor);
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: @checkboxGroupGap;
|
|
43
|
+
&.smwb-indeterminate {
|
|
44
|
+
.smwb-checkbox__btn {
|
|
45
|
+
background-color: var(--smui-checkboxCheckedBg);
|
|
46
|
+
border-color: var(--smui-checkboxCheckedBg);
|
|
47
|
+
.smwb-checkbox__icon {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
&.smwb-disabled {
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
.smwb-checkbox__btn {
|
|
55
|
+
opacity: 0.8;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__input {
|
|
61
|
+
display: none;
|
|
62
|
+
&:hover {
|
|
63
|
+
& ~ .smwb-checkbox__btn::before {
|
|
64
|
+
background-color: var(--smui-onSurfaceHover);
|
|
65
|
+
transform: translate(-50%, -50%) scale(1);
|
|
66
|
+
}
|
|
67
|
+
&:active {
|
|
68
|
+
& ~ .smwb-checkbox__btn::before {
|
|
69
|
+
background-color: var(--smui-onSurfaceActive);
|
|
70
|
+
transform: translate(-50%, -50%) scale(1);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&:checked {
|
|
75
|
+
& ~ .smwb-checkbox__btn {
|
|
76
|
+
background-color: var(--smui-checkboxCheckedBg);
|
|
77
|
+
border-color: var(--smui-checkboxCheckedBg);
|
|
78
|
+
.smwb-checkbox__icon {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&:hover {
|
|
83
|
+
& ~ .smwb-checkbox__btn::before {
|
|
84
|
+
background-color: var(--smui-primaryColorHover);
|
|
85
|
+
transform: translate(-50%, -50%) scale(1);
|
|
86
|
+
}
|
|
87
|
+
&:active {
|
|
88
|
+
& ~ .smwb-checkbox__btn::before {
|
|
89
|
+
background-color: var(--smui-primaryColorActive);
|
|
90
|
+
transform: translate(-50%, -50%) scale(1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
&:disabled {
|
|
95
|
+
& ~ .smwb-checkbox__btn {
|
|
96
|
+
background-color: var(--smui-checkboxDisabledColor);
|
|
97
|
+
border-color: transparent;
|
|
98
|
+
&.smwb-indeterminate {
|
|
99
|
+
background-color: var(--smui-checkboxDisabledColor);
|
|
100
|
+
border-color: transparent;
|
|
101
|
+
}
|
|
102
|
+
.smwb-checkbox__icon {
|
|
103
|
+
color: var(--smui-disabledTextColor);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
.smwb-chip {
|
|
2
|
+
position: relative;
|
|
3
|
+
user-select: none;
|
|
4
|
+
height: 32px;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: @chipGap;
|
|
9
|
+
padding: 0 @chipPaddingX;
|
|
10
|
+
border-radius: @chipsBorderRadius;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
transition: all 0.15s ease-in-out;
|
|
13
|
+
color: var(--smui-primaryTextColor);
|
|
14
|
+
&.smwb-disabled {
|
|
15
|
+
opacity: 0.8;
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
background-color: var(--smui-disabledBgColor);
|
|
18
|
+
border-color: var(--smui-disabledBgColor);
|
|
19
|
+
color: var(--smui-disabledTextColor);
|
|
20
|
+
&.smwb-outlined {
|
|
21
|
+
border: 1px solid var(--smui-disabledBgColor);
|
|
22
|
+
background: none;
|
|
23
|
+
}
|
|
24
|
+
i {
|
|
25
|
+
color: var(--smui-disabledTextColor);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.smwb-filled:not(&.smwb-disabled) {
|
|
29
|
+
background-color: var(--smui-chipsBg);
|
|
30
|
+
box-shadow: @chipsDefaultShadow;
|
|
31
|
+
&:hover {
|
|
32
|
+
background-color: var(--smui-chipsHoverBg);
|
|
33
|
+
}
|
|
34
|
+
&:active {
|
|
35
|
+
background-color: var(--smui-chipsActiveBg);
|
|
36
|
+
box-shadow: 0px 3px 5px -1px rgb(0 0 0 / 16%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 2px 3px 0px rgb(0 0 0 / 12%);
|
|
37
|
+
}
|
|
38
|
+
&.smwb-selected {
|
|
39
|
+
background-color: var(--smui-chipsSelectedBg);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.smwb-outlined:not(&.smwb-disabled) {
|
|
44
|
+
border: 1px solid var(--smui-chipsOutlinedBorder);
|
|
45
|
+
&:hover {
|
|
46
|
+
background-color: var(--smui-chipsHoverBg);
|
|
47
|
+
}
|
|
48
|
+
&:active {
|
|
49
|
+
background-color: var(--smui-chipsActiveBg);
|
|
50
|
+
box-shadow: 0px 3px 5px -1px rgb(0 0 0 / 11%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 2px 3px 0px rgb(0 0 0 / 12%);
|
|
51
|
+
}
|
|
52
|
+
&.smwb-selected {
|
|
53
|
+
background-color: var(--smui-chipsSelectedBg);
|
|
54
|
+
// border: 1px solid transparent;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__delete-icon {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
svg {
|
|
63
|
+
fill: var(--smui-chipsIconColor);
|
|
64
|
+
transition: all 0.15s ease-in-out;
|
|
65
|
+
&:hover {
|
|
66
|
+
fill: var(--smui-chipsIconColorHover);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__icon {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// delete control is a <button> now — strip UA chrome (additive)
|
|
78
|
+
&__delete-icon {
|
|
79
|
+
background: transparent;
|
|
80
|
+
border: 0;
|
|
81
|
+
margin: 0;
|
|
82
|
+
padding: 0;
|
|
83
|
+
font: inherit;
|
|
84
|
+
color: inherit;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&_size-small {
|
|
89
|
+
height: 24px;
|
|
90
|
+
padding: 0 @smui-space-sm;
|
|
91
|
+
font-size: 0.75rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.smui-chip-color(@n; @c; @on) {
|
|
95
|
+
&.smwb-chip_color-@{n} {
|
|
96
|
+
&.smwb-filled {
|
|
97
|
+
background-color: @c;
|
|
98
|
+
color: @on;
|
|
99
|
+
&:hover {
|
|
100
|
+
background-color: @c;
|
|
101
|
+
filter: brightness(0.94);
|
|
102
|
+
}
|
|
103
|
+
&:active {
|
|
104
|
+
background-color: @c;
|
|
105
|
+
filter: brightness(0.88);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
&.smwb-outlined {
|
|
109
|
+
color: @c;
|
|
110
|
+
border: 1px solid @c;
|
|
111
|
+
background: transparent;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.smui-chip-color(primary; var(--smui-primaryColor); var(--smui-onPrimaryColor));
|
|
116
|
+
.smui-chip-color(secondary; var(--smui-secondaryColor); var(--smui-onSecondaryColor));
|
|
117
|
+
.smui-chip-color(error; var(--smui-errorColor); var(--smui-onErrorColor));
|
|
118
|
+
.smui-chip-color(success; var(--smui-successColor); var(--smui-onSuccessColor));
|
|
119
|
+
.smui-chip-color(warning; var(--smui-warningColor); var(--smui-onWarningColor));
|
|
120
|
+
.smui-chip-color(info; var(--smui-infoColor); var(--smui-onInfoColor));
|
|
121
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
.smwb-date-picker {
|
|
2
|
+
border-radius: 4px;
|
|
3
|
+
background-color: var(--smui-surfaceBackground);
|
|
4
|
+
box-shadow+: rgb(0 0 0 / 20%) 0 5px 5px -3px;
|
|
5
|
+
box-shadow+: rgb(0 0 0 / 14%) 0px 8px 10px 1px;
|
|
6
|
+
box-shadow+: rgb(0 0 0 / 12%) 0 3px 14px 2px;
|
|
7
|
+
width: 328px;
|
|
8
|
+
max-height: 428px;
|
|
9
|
+
color: var(--smui-primaryTextColor);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
z-index: 1300;
|
|
12
|
+
|
|
13
|
+
&__inner {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__header {
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
padding: @datePickerHeaderPadding;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__action {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__action-label {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
min-width: 80px;
|
|
34
|
+
user-select: none;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
37
|
+
|
|
38
|
+
> .smwb-icon__wrapper {
|
|
39
|
+
margin-right: -4px;
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transition+: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
42
|
+
transition+: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--disabled {
|
|
46
|
+
color: var(--smui-disabledTextColor);
|
|
47
|
+
cursor: default;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
|
|
50
|
+
> .smwb-icon__wrapper {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
transition+: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
54
|
+
transition+: visibility 0ms cubic-bezier(0.4, 0, 0.2, 1) 200ms;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--active {
|
|
59
|
+
> .smwb-icon__wrapper {
|
|
60
|
+
transform: rotate(180deg);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__action-text {
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
line-height: 19px;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
margin-right: @datePickerLabelGap;
|
|
70
|
+
text-transform: capitalize;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__icon-button {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
position: relative;
|
|
76
|
+
padding: @datePickerPadding;
|
|
77
|
+
user-select: none;
|
|
78
|
+
background-color: transparent;
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
font-size: 24px;
|
|
81
|
+
color: inherit;
|
|
82
|
+
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
83
|
+
|
|
84
|
+
&:hover {
|
|
85
|
+
background-color: var(--smui-onSurfaceHover);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:active:not(&--disabled) {
|
|
89
|
+
background-color: var(--smui-onSurfaceActive);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&--small {
|
|
93
|
+
padding: @datePickerYearPadding;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&--edge-start {
|
|
97
|
+
margin-left: -12px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&--edge-end {
|
|
101
|
+
margin-right: -12px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&--small &--edge-start {
|
|
105
|
+
margin-left: -8px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--small &--edge-end {
|
|
109
|
+
margin-right: -8px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&--disabled {
|
|
113
|
+
color: var(--smui-dataPickerIconDisabledColor);
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
cursor: default;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&__switch {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
transition+: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
122
|
+
|
|
123
|
+
&--hidden {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
visibility: hidden;
|
|
126
|
+
transition+: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
127
|
+
transition+: visibility 0ms cubic-bezier(0.4, 0, 0.2, 1) 200ms;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&__days {
|
|
132
|
+
position: relative;
|
|
133
|
+
padding-bottom: @datePickerPadding;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__week-days {
|
|
137
|
+
display: flex;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
align-items: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&__week-day,
|
|
143
|
+
&__day,
|
|
144
|
+
&__day-hidden {
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 40px;
|
|
149
|
+
height: 40px;
|
|
150
|
+
margin: 0 @datePickerDayMarginX;
|
|
151
|
+
user-select: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&__week-day {
|
|
155
|
+
font-size: 12px;
|
|
156
|
+
line-height: 16px;
|
|
157
|
+
color: var(--smui-dataPickerWeekDayColor);
|
|
158
|
+
text-transform: capitalize;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&__month {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&__week {
|
|
167
|
+
display: flex;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
margin-top: @datePickerHelperMarginTop;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&__day {
|
|
173
|
+
position: relative;
|
|
174
|
+
font-size: 12px;
|
|
175
|
+
line-height: 14px;
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
user-select: none;
|
|
178
|
+
background-color: transparent;
|
|
179
|
+
border-radius: 50%;
|
|
180
|
+
color: inherit;
|
|
181
|
+
transition+: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
182
|
+
transition+: color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
183
|
+
|
|
184
|
+
&:hover:not(&--active) {
|
|
185
|
+
background-color: var(--smui-onSurfaceHover);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:active:not(&--active):not(&--disabled) {
|
|
189
|
+
background-color: var(--smui-onSurfaceActive);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&--current {
|
|
193
|
+
border: 1px solid var(--smui-primaryColor);
|
|
194
|
+
color: var(--smui-primaryColor);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&--outside:not(&--selected),
|
|
198
|
+
&--disabled {
|
|
199
|
+
color: var(--smui-disabledTextColor);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&--active:not(&--disabled) {
|
|
203
|
+
color: var(--smui-onPrimaryColor);
|
|
204
|
+
background-color: var(--smui-primaryColor);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&--disabled {
|
|
208
|
+
cursor: default;
|
|
209
|
+
pointer-events: none;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&__body {
|
|
214
|
+
position: relative;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&__overflow {
|
|
218
|
+
max-height: 309px;
|
|
219
|
+
overflow-y: auto;
|
|
220
|
+
border-top: 1px solid var(--smui-dividerColor);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&__list {
|
|
224
|
+
padding: @datePickerFooterPaddingY 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&__list-item {
|
|
228
|
+
text-transform: capitalize;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.smwb-date-picker__day--in-range:not(.smwb-date-picker__day--active) {
|
|
233
|
+
background-color: var(--smui-onSurfaceHover);
|
|
234
|
+
border-radius: 0;
|
|
235
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.smwb-divider {
|
|
2
|
+
border: 0;
|
|
3
|
+
margin: 0;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
|
|
7
|
+
&_horizontal {
|
|
8
|
+
width: 100%;
|
|
9
|
+
border-bottom: 1px solid var(--smui-dividerColor);
|
|
10
|
+
|
|
11
|
+
&.smwb-divider_inset {
|
|
12
|
+
margin-left: @smui-space-10;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.smwb-divider_middle {
|
|
16
|
+
margin-left: @dividerSpacing;
|
|
17
|
+
margin-right: @dividerSpacing;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&_vertical {
|
|
22
|
+
align-self: stretch;
|
|
23
|
+
height: auto;
|
|
24
|
+
width: 1px;
|
|
25
|
+
border-left: 1px solid var(--smui-dividerColor);
|
|
26
|
+
|
|
27
|
+
&.smwb-divider_middle {
|
|
28
|
+
margin-top: @dividerSpacing;
|
|
29
|
+
margin-bottom: @dividerSpacing;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&_with-text {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
border-bottom: 0;
|
|
37
|
+
color: var(--smui-onSurfaceVariant);
|
|
38
|
+
font-size: 0.875rem;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
|
|
41
|
+
&::before,
|
|
42
|
+
&::after {
|
|
43
|
+
content: "";
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
border-bottom: 1px solid var(--smui-dividerColor);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.smwb-divider__text {
|
|
49
|
+
padding: 0 @dividerTextGap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.smwb-divider_align-left {
|
|
53
|
+
&::before {
|
|
54
|
+
flex: 0 0 5%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.smwb-divider_align-right {
|
|
59
|
+
&::after {
|
|
60
|
+
flex: 0 0 5%;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&_flex-item {
|
|
66
|
+
align-self: stretch;
|
|
67
|
+
height: auto;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
.smwb-expansion-panel {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: @expansionPanelGap;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding: @expansionPanelPadding;
|
|
8
|
+
background-color: var(--smui-surfaceBackground);
|
|
9
|
+
border: 1px solid var(--smui-dividerColor);
|
|
10
|
+
border-radius: @expansionPanelRadius;
|
|
11
|
+
color: var(--smui-onSurfaceColor);
|
|
12
|
+
|
|
13
|
+
&_row {
|
|
14
|
+
grid-column: 1 / -1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__head {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
gap: @expansionPanelGap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__header {
|
|
25
|
+
min-width: 0;
|
|
26
|
+
flex: 1 1 auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__controls {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: @smui-space-xs;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__body {
|
|
37
|
+
min-width: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__placeholder {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
gap: @expansionPanelGap;
|
|
45
|
+
padding: @expansionPanelPadding;
|
|
46
|
+
border: 1px dashed var(--smui-dividerColor);
|
|
47
|
+
border-radius: @expansionPanelRadius;
|
|
48
|
+
color: var(--smui-onSurfaceVariant);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__overlay {
|
|
52
|
+
position: fixed;
|
|
53
|
+
inset: 0;
|
|
54
|
+
z-index: @expansionPanelOverlayZ;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
padding: @smui-space-md;
|
|
58
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__dialog {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
flex: 1 1 auto;
|
|
65
|
+
gap: @expansionPanelGap;
|
|
66
|
+
width: 100%;
|
|
67
|
+
min-height: 0;
|
|
68
|
+
max-width: none;
|
|
69
|
+
max-height: none;
|
|
70
|
+
padding: @expansionPanelPadding;
|
|
71
|
+
background-color: var(--smui-surfaceBackground);
|
|
72
|
+
border-radius: @expansionPanelRadius;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__body_fullscreen {
|
|
77
|
+
flex: 1 1 auto;
|
|
78
|
+
min-height: 0;
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
overflow: auto;
|
|
83
|
+
-webkit-overflow-scrolling: touch;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.smui-media-down(md; {
|
|
88
|
+
.smwb-expansion-panel {
|
|
89
|
+
&__overlay {
|
|
90
|
+
padding: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__dialog {
|
|
94
|
+
flex: 1 1 auto;
|
|
95
|
+
width: 100%;
|
|
96
|
+
min-height: 100%;
|
|
97
|
+
border-radius: 0;
|
|
98
|
+
padding-top: calc(@expansionPanelPadding + env(safe-area-inset-top, 0px));
|
|
99
|
+
padding-right: calc(@expansionPanelPadding + env(safe-area-inset-right, 0px));
|
|
100
|
+
padding-bottom: calc(@expansionPanelPadding + env(safe-area-inset-bottom, 0px));
|
|
101
|
+
padding-left: calc(@expansionPanelPadding + env(safe-area-inset-left, 0px));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__body_fullscreen {
|
|
105
|
+
justify-content: flex-start;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&__head {
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
.smui-media-down(sm; {
|
|
115
|
+
.smwb-expansion-panel {
|
|
116
|
+
padding: @smui-space-md;
|
|
117
|
+
|
|
118
|
+
&__head {
|
|
119
|
+
flex-wrap: wrap;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&__controls {
|
|
124
|
+
flex-wrap: wrap;
|
|
125
|
+
justify-content: flex-end;
|
|
126
|
+
margin-left: auto;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&__placeholder {
|
|
130
|
+
flex-direction: column;
|
|
131
|
+
align-items: stretch;
|
|
132
|
+
padding: @smui-space-md;
|
|
133
|
+
text-align: center;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|