@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,107 @@
|
|
|
1
|
+
.smwb-indicator_circular {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 48px;
|
|
5
|
+
height: 48px;
|
|
6
|
+
&.smwb-indeterminate {
|
|
7
|
+
div {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
display: block;
|
|
10
|
+
position: absolute;
|
|
11
|
+
width: 48px;
|
|
12
|
+
height: 48px;
|
|
13
|
+
margin: @progressDotMargin;
|
|
14
|
+
border: 4px solid var(--smui-primaryColor);
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
animation: cirleLoad 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
17
|
+
border-color: var(--smui-primaryColor) transparent transparent transparent;
|
|
18
|
+
}
|
|
19
|
+
div:nth-child(1) {
|
|
20
|
+
animation-delay: -0.45s;
|
|
21
|
+
}
|
|
22
|
+
div:nth-child(2) {
|
|
23
|
+
animation-delay: -0.3s;
|
|
24
|
+
}
|
|
25
|
+
div:nth-child(3) {
|
|
26
|
+
animation-delay: -0.15s;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.smwb-indicator_circular {
|
|
30
|
+
&__svg {
|
|
31
|
+
width: 48px;
|
|
32
|
+
height: 48px;
|
|
33
|
+
}
|
|
34
|
+
&__circle {
|
|
35
|
+
fill: none;
|
|
36
|
+
stroke: var(--smui-primaryColor);
|
|
37
|
+
stroke-width: 4px;
|
|
38
|
+
transform-origin: center;
|
|
39
|
+
transform: rotate(-90deg);
|
|
40
|
+
transition: stroke-dashoffset 0.1s ease-in-out;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@keyframes cirleLoad {
|
|
46
|
+
0% {
|
|
47
|
+
transform: rotate(0deg);
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
transform: rotate(360deg);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.smwb-indicator_linear {
|
|
55
|
+
height: 4px;
|
|
56
|
+
position: relative;
|
|
57
|
+
width: 240px;
|
|
58
|
+
background-color: var(--smui-indicatorTrackBg);
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
&__thumb {
|
|
61
|
+
position: absolute;
|
|
62
|
+
height: 4px;
|
|
63
|
+
background-color: var(--smui-primaryColor);
|
|
64
|
+
top: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
z-index: 1;
|
|
67
|
+
}
|
|
68
|
+
&.smwb-indeterminate {
|
|
69
|
+
.smwb-indicator_linear__thumb {
|
|
70
|
+
animation: linearLoad 1.2s ease-in-out infinite;
|
|
71
|
+
width: 50%;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&.smwb-determinate {
|
|
75
|
+
.smwb-indicator_linear__thumb {
|
|
76
|
+
transition: all 0.1s linear;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@keyframes linearLoad {
|
|
82
|
+
0% {
|
|
83
|
+
left: -70%;
|
|
84
|
+
}
|
|
85
|
+
100% {
|
|
86
|
+
left: 100%;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.smwb-indicator_color-primary { color: var(--smui-primaryColor); }
|
|
91
|
+
.smwb-indicator_color-secondary { color: var(--smui-secondaryColor); }
|
|
92
|
+
.smwb-indicator_color-error { color: var(--smui-errorColor); }
|
|
93
|
+
.smwb-indicator_color-success { color: var(--smui-successColor); }
|
|
94
|
+
.smwb-indicator_color-warning { color: var(--smui-warningColor); }
|
|
95
|
+
.smwb-indicator_color-info { color: var(--smui-infoColor); }
|
|
96
|
+
.smwb-indicator_color-secondary .smwb-indicator_circular__circle,
|
|
97
|
+
.smwb-indicator_color-error .smwb-indicator_circular__circle,
|
|
98
|
+
.smwb-indicator_color-success .smwb-indicator_circular__circle,
|
|
99
|
+
.smwb-indicator_color-warning .smwb-indicator_circular__circle,
|
|
100
|
+
.smwb-indicator_color-info .smwb-indicator_circular__circle { stroke: currentColor; }
|
|
101
|
+
.smwb-indicator_color-secondary .smwb-indicator_linear__thumb,
|
|
102
|
+
.smwb-indicator_color-error .smwb-indicator_linear__thumb,
|
|
103
|
+
.smwb-indicator_color-success .smwb-indicator_linear__thumb,
|
|
104
|
+
.smwb-indicator_color-warning .smwb-indicator_linear__thumb,
|
|
105
|
+
.smwb-indicator_color-info .smwb-indicator_linear__thumb { background-color: currentColor; }
|
|
106
|
+
.smwb-indicator_size-small.smwb-indicator_circular { width: 28px; height: 28px; }
|
|
107
|
+
.smwb-indicator_size-large.smwb-indicator_circular { width: 64px; height: 64px; }
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
.smwb-radio {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
gap: @radioGroupGap;
|
|
4
|
+
align-items: center;
|
|
5
|
+
&__group {
|
|
6
|
+
display: flex;
|
|
7
|
+
gap: @radioRowGap;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__wrapper {
|
|
12
|
+
flex-shrink: 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__bg {
|
|
19
|
+
width: 40px;
|
|
20
|
+
height: 40px;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 50%;
|
|
23
|
+
left: 50%;
|
|
24
|
+
transform: translate(-50%, -50%) scale(0);
|
|
25
|
+
border-radius: @circleBorderRadius;
|
|
26
|
+
transition: all 0.2s ease-in-out;
|
|
27
|
+
&.smwb-disabled {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__input {
|
|
33
|
+
display: none;
|
|
34
|
+
&:active {
|
|
35
|
+
& ~ .radio__btn:hover ~ .smwb-radio__bg {
|
|
36
|
+
transform: translate(-50%, -50%) scale(1);
|
|
37
|
+
background-color: var(--smui-onSurfaceActive);
|
|
38
|
+
}
|
|
39
|
+
& ~ .smwb-radio__bg {
|
|
40
|
+
background-color: var(--smui-onSurfaceActive);
|
|
41
|
+
transform: translate(-50%, -50%) scale(1);
|
|
42
|
+
}
|
|
43
|
+
&:checked {
|
|
44
|
+
~ .smwb-radio__bg {
|
|
45
|
+
transform: translate(-50%, -50%) scale(1);
|
|
46
|
+
background-color: var(--smui-primaryColorActive);
|
|
47
|
+
}
|
|
48
|
+
&:active ~ .radio__btn:hover ~ .smwb-radio__bg {
|
|
49
|
+
transform: translate(-50%, -50%) scale(1);
|
|
50
|
+
background-color: var(--smui-primaryColorActive);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&:checked {
|
|
55
|
+
& ~ .smwb-radio__btn {
|
|
56
|
+
border: 2px solid var(--smui-primaryColor);
|
|
57
|
+
&::after {
|
|
58
|
+
transform: translate(-50%, -50%) scale(1);
|
|
59
|
+
}
|
|
60
|
+
&::before {
|
|
61
|
+
animation: ping 0.6s cubic-bezier(0, 0, 0.2, 1) alternate;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&:disabled ~ .smwb-radio__btn {
|
|
65
|
+
border: 2px solid var(--smui-disabledTextColor);
|
|
66
|
+
&::after {
|
|
67
|
+
background-color: var(--smui-disabledTextColor);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
& ~ .smwb-radio__btn {
|
|
72
|
+
&:hover ~ .smwb-radio__bg {
|
|
73
|
+
transform: translate(-50%, -50%) scale(1);
|
|
74
|
+
background-color: var(--smui-onSurfaceHover);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&:checked:hover ~ .smwb-radio__btn {
|
|
78
|
+
&:hover ~ .smwb-radio__bg {
|
|
79
|
+
transform: translate(-50%, -50%) scale(1);
|
|
80
|
+
background-color: var(--smui-primaryColorHover);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__btn {
|
|
86
|
+
z-index: 2;
|
|
87
|
+
height: 20px;
|
|
88
|
+
width: 20px;
|
|
89
|
+
border-radius: @circleBorderRadius;
|
|
90
|
+
border: 2px solid var(--smui-checkboxBorderColor);
|
|
91
|
+
position: relative;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
&.smwb-disabled {
|
|
94
|
+
border-color: var(--smui-disabledTextColor);
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
&::before {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
&::before {
|
|
101
|
+
content: "";
|
|
102
|
+
width: 40px;
|
|
103
|
+
height: 40px;
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 50%;
|
|
106
|
+
left: 50%;
|
|
107
|
+
transform: translate(-50%, -50%) scale(0);
|
|
108
|
+
border-radius: @circleBorderRadius;
|
|
109
|
+
background-color: @radioRippleColor;
|
|
110
|
+
transition: all 0.2s ease-in-out;
|
|
111
|
+
}
|
|
112
|
+
&::after {
|
|
113
|
+
content: "";
|
|
114
|
+
width: 10px;
|
|
115
|
+
height: 10px;
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 50%;
|
|
118
|
+
left: 50%;
|
|
119
|
+
transform: translate(-50%, -50%) scale(0);
|
|
120
|
+
border-radius: @circleBorderRadius;
|
|
121
|
+
background-color: var(--smui-primaryColor);
|
|
122
|
+
transition: all 0.2s ease-in-out;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__label {
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
color: var(--smui-primaryTextColor);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@keyframes ping {
|
|
133
|
+
75%,
|
|
134
|
+
100% {
|
|
135
|
+
transform: translate(-50%, -50%) scale(1.5);
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.smwb-rating {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: @ratingGap;
|
|
5
|
+
color: var(--smui-primaryColor);
|
|
6
|
+
|
|
7
|
+
&_disabled {
|
|
8
|
+
opacity: 0.38;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__item {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__icon {
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset: 0;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
|
|
26
|
+
&_empty {
|
|
27
|
+
color: var(--smui-outlineColor);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&_filled {
|
|
31
|
+
color: var(--smui-primaryColor);
|
|
32
|
+
width: 0;
|
|
33
|
+
transition: width 0.1s ease-in-out;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.smwb-rating_color-secondary .smwb-rating__icon_filled {
|
|
39
|
+
color: var(--smui-secondaryColor);
|
|
40
|
+
}
|
|
41
|
+
.smwb-rating_color-error .smwb-rating__icon_filled {
|
|
42
|
+
color: var(--smui-errorColor);
|
|
43
|
+
}
|
|
44
|
+
.smwb-rating_color-success .smwb-rating__icon_filled {
|
|
45
|
+
color: var(--smui-successColor);
|
|
46
|
+
}
|
|
47
|
+
.smwb-rating_color-warning .smwb-rating__icon_filled {
|
|
48
|
+
color: var(--smui-warningColor);
|
|
49
|
+
}
|
|
50
|
+
.smwb-rating_color-info .smwb-rating__icon_filled {
|
|
51
|
+
color: var(--smui-infoColor);
|
|
52
|
+
}
|
|
53
|
+
.smwb-rating_error .smwb-rating__icon_empty {
|
|
54
|
+
color: var(--smui-errorColor);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.smwb-rating__helper {
|
|
58
|
+
display: block;
|
|
59
|
+
margin-top: 4px;
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
color: var(--smui-onSurfaceVariant);
|
|
62
|
+
}
|
|
63
|
+
.smwb-rating__helper_error {
|
|
64
|
+
color: var(--smui-errorColor);
|
|
65
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.smwb-ripple {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: 0;
|
|
4
|
+
border-radius: inherit;
|
|
5
|
+
pointer-events: none;
|
|
6
|
+
z-index: 0;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
&__child {
|
|
10
|
+
position: absolute;
|
|
11
|
+
border-radius: 50%;
|
|
12
|
+
transform: scale(0);
|
|
13
|
+
animation: rippleKeyframes 600ms linear;
|
|
14
|
+
background-color: currentColor;
|
|
15
|
+
opacity: 0.35;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes rippleKeyframes {
|
|
20
|
+
to {
|
|
21
|
+
transform: scale(4);
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.smwb-screen-divider {
|
|
2
|
+
&__wrapper {
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
&.smwb-vertical {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
.smwb-screen-divider__resizer {
|
|
10
|
+
border-top: thin solid var(--smui-primaryColor);
|
|
11
|
+
border-bottom: thin solid var(--smui-primaryColor);
|
|
12
|
+
border-left: none;
|
|
13
|
+
margin: 0 @screenDividerLabelMargin;
|
|
14
|
+
min-width: 100%;
|
|
15
|
+
max-height: 0.7rem;
|
|
16
|
+
min-height: 0.7rem;
|
|
17
|
+
cursor: n-resize;
|
|
18
|
+
writing-mode: vertical-rl;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&__resizer {
|
|
23
|
+
border-left: thin solid var(--smui-primaryColor);
|
|
24
|
+
border-right: thin solid var(--smui-primaryColor);
|
|
25
|
+
background: var(--smui-primaryContainer);
|
|
26
|
+
margin: @screenDividerLabelMargin 0;
|
|
27
|
+
max-width: 0.7rem;
|
|
28
|
+
min-width: 0.7rem;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
min-height: 100%;
|
|
31
|
+
cursor: e-resize;
|
|
32
|
+
z-index: 2;
|
|
33
|
+
user-select: none;
|
|
34
|
+
// Pointer-drag resize must own the touch gesture (no page scroll).
|
|
35
|
+
touch-action: none;
|
|
36
|
+
overflow-wrap: break-word;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
line-height: 10px;
|
|
41
|
+
&::after {
|
|
42
|
+
content: "......";
|
|
43
|
+
text-align: center;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
&__first {
|
|
47
|
+
min-height: 5px;
|
|
48
|
+
min-width: 5px;
|
|
49
|
+
flex-shrink: 1;
|
|
50
|
+
}
|
|
51
|
+
&__second {
|
|
52
|
+
min-height: 5px;
|
|
53
|
+
min-width: 5px;
|
|
54
|
+
flex-shrink: 1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
.smwb-select-field {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: auto;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
|
|
10
|
+
&:not(&--inline) {
|
|
11
|
+
padding: @selectFieldPadding;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:not(&--inline)&--filled {
|
|
15
|
+
padding: @selectFieldFilledPadding;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__option {
|
|
19
|
+
&__inner {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: @selectFieldChipsGap;
|
|
23
|
+
}
|
|
24
|
+
&__helper-text {
|
|
25
|
+
font-size: 70%;
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
opacity: 0.7;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__search-wrapper {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex-grow: 1;
|
|
36
|
+
overflow-y: hidden;
|
|
37
|
+
overflow-x: auto;
|
|
38
|
+
min-height: 24px;
|
|
39
|
+
-ms-overflow-style: none;
|
|
40
|
+
|
|
41
|
+
&::-webkit-scrollbar {
|
|
42
|
+
width: 0;
|
|
43
|
+
height: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__actions {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
column-gap: @selectFieldValueGap;
|
|
51
|
+
margin-right: -7px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__values {
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
font: inherit;
|
|
57
|
+
color: inherit;
|
|
58
|
+
user-select: none;
|
|
59
|
+
|
|
60
|
+
& > *:not(:first-child) {
|
|
61
|
+
margin-left: @selectFieldChipMarginLeft;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& + span {
|
|
65
|
+
margin-left: @selectFieldChipMarginLeft;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__search {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
flex: 1 1 auto;
|
|
72
|
+
position: relative;
|
|
73
|
+
height: 23px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__search-text {
|
|
77
|
+
font: inherit;
|
|
78
|
+
visibility: hidden;
|
|
79
|
+
white-space: pre;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__search-input {
|
|
83
|
+
position: absolute;
|
|
84
|
+
left: 0;
|
|
85
|
+
right: 0;
|
|
86
|
+
height: 100%;
|
|
87
|
+
min-width: 4px;
|
|
88
|
+
letter-spacing: inherit;
|
|
89
|
+
font: inherit;
|
|
90
|
+
color: inherit;
|
|
91
|
+
background-color: transparent;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&__icon {
|
|
95
|
+
flex-shrink: 0;
|
|
96
|
+
display: inline-block;
|
|
97
|
+
width: 1em;
|
|
98
|
+
height: 1em;
|
|
99
|
+
fill: currentcolor;
|
|
100
|
+
user-select: none;
|
|
101
|
+
font-size: 1.5rem;
|
|
102
|
+
vertical-align: top;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
transition: all 0.2s ease-in-out;
|
|
105
|
+
|
|
106
|
+
&--opened {
|
|
107
|
+
transform: rotate(180deg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&--focused {
|
|
111
|
+
color: var(--smui-primaryColor);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&--error {
|
|
115
|
+
color: var(--smui-errorColor);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&--close {
|
|
119
|
+
font-size: 1rem;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:not(&--inline)&--filled &__icon--arrow {
|
|
124
|
+
margin-top: -12px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&__empty-items {
|
|
128
|
+
padding: @selectFieldMenuItemPadding;
|
|
129
|
+
text-align: center;
|
|
130
|
+
font-style: italic;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&__menu {
|
|
135
|
+
&-search {
|
|
136
|
+
}
|
|
137
|
+
&-loading {
|
|
138
|
+
display: flex;
|
|
139
|
+
width: 100%;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
align-items: center;
|
|
142
|
+
padding: @selectFieldCreatePaddingY 0;
|
|
143
|
+
}
|
|
144
|
+
&__loader {
|
|
145
|
+
width: 36px !important;
|
|
146
|
+
height: 36px !important;
|
|
147
|
+
div {
|
|
148
|
+
width: 36px !important;
|
|
149
|
+
height: 36px !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&__menu-search-input {
|
|
155
|
+
padding: @selectFieldSearchPadding;
|
|
156
|
+
color: var(--smui-selectFieldSearchMenuColor);
|
|
157
|
+
background-color: transparent;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&--search {
|
|
161
|
+
cursor: text;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&--disabled {
|
|
165
|
+
cursor: default;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.smwb-select-field__group-label {
|
|
170
|
+
padding: 6px 16px;
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
font-weight: 600;
|
|
173
|
+
text-transform: uppercase;
|
|
174
|
+
letter-spacing: 0.04em;
|
|
175
|
+
color: var(--smui-onSurfaceVariant);
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.smwb-select-field__create-option {
|
|
180
|
+
font-style: italic;
|
|
181
|
+
color: var(--smui-primaryColor);
|
|
182
|
+
}
|