mtrl 0.0.2 → 0.1.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/package.json +2 -2
- package/src/components/button/styles.scss +198 -161
- package/src/components/checkbox/checkbox.js +4 -3
- package/src/components/checkbox/styles.scss +105 -55
- package/src/components/container/styles.scss +65 -58
- package/src/components/list/styles.scss +240 -11
- package/src/components/menu/features/items-manager.js +5 -1
- package/src/components/menu/styles.scss +37 -30
- package/src/components/navigation/constants.js +19 -54
- package/src/components/navigation/styles.scss +406 -6
- package/src/components/snackbar/styles.scss +46 -17
- package/src/components/switch/styles.scss +104 -40
- package/src/components/switch/switch.js +1 -1
- package/src/components/textfield/styles.scss +351 -5
- package/src/core/build/_ripple.scss +79 -0
- package/src/core/compose/features/disabled.js +27 -7
- package/src/core/compose/features/input.js +9 -1
- package/src/core/compose/features/textinput.js +16 -20
- package/src/core/dom/create.js +0 -1
- package/src/styles/abstract/_mixins.scss +9 -7
- package/src/styles/abstract/_theme.scss +157 -0
- package/src/styles/abstract/_variables.scss +72 -6
- package/src/styles/base/_reset.scss +86 -0
- package/src/styles/base/_typography.scss +155 -0
- package/src/styles/main.scss +104 -57
- package/src/styles/themes/_base-theme.scss +2 -27
- package/src/styles/themes/_baseline.scss +64 -39
- package/src/styles/utilities/_color.scss +154 -0
- package/src/styles/utilities/_flexbox.scss +194 -0
- package/src/styles/utilities/_spacing.scss +139 -0
- package/src/styles/utilities/_typography.scss +178 -0
- package/src/styles/utilities/_visibility.scss +142 -0
- package/test/components/button.test.js +46 -34
- package/test/components/checkbox.test.js +238 -0
- package/test/components/list.test.js +105 -0
- package/test/components/menu.test.js +385 -0
- package/test/components/navigation.test.js +227 -0
- package/test/components/snackbar.test.js +234 -0
- package/test/components/switch.test.js +186 -0
- package/test/components/textfield.test.js +314 -0
- package/test/core/ripple.test.js +21 -120
- package/test/setup.js +152 -239
- package/src/components/list/styles/_list-item.scss +0 -142
- package/src/components/list/styles/_list.scss +0 -89
- package/src/components/list/styles/_variables.scss +0 -13
- package/src/components/navigation/styles/_bar.scss +0 -51
- package/src/components/navigation/styles/_base.scss +0 -129
- package/src/components/navigation/styles/_drawer.scss +0 -169
- package/src/components/navigation/styles/_rail.scss +0 -65
- package/src/components/textfield/styles/base.scss +0 -107
- package/src/components/textfield/styles/filled.scss +0 -58
- package/src/components/textfield/styles/outlined.scss +0 -66
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// src/components/textfield/styles/_outlined.scss
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use '../../../styles/abstract/config' as c;
|
|
4
|
-
|
|
5
|
-
.#{c.$prefix}-textfield {
|
|
6
|
-
&--outlined {
|
|
7
|
-
border: 1px solid var(--mtrl-sys-color-outline);
|
|
8
|
-
border-radius: 4px;
|
|
9
|
-
|
|
10
|
-
.#{c.$prefix}-textfield-input {
|
|
11
|
-
background-color: transparent;
|
|
12
|
-
padding: 13px 16px 14px;
|
|
13
|
-
|
|
14
|
-
// Autofill styles for outlined variant
|
|
15
|
-
&:-webkit-autofill {
|
|
16
|
-
border-radius: 4px 4px 0 0;
|
|
17
|
-
|
|
18
|
-
& ~ .#{c.$prefix}-textfield-label {
|
|
19
|
-
background-color: var(--mtrl-sys-color-surface);
|
|
20
|
-
transform: translateY(-145%) scale(0.75);
|
|
21
|
-
left: 13px;
|
|
22
|
-
padding: 0 4px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:autofill {
|
|
27
|
-
& ~ .#{c.$prefix}-textfield-label {
|
|
28
|
-
background-color: var(--mtrl-sys-color-surface);
|
|
29
|
-
transform: translateY(-145%) scale(0.75);
|
|
30
|
-
left: 13px;
|
|
31
|
-
padding: 0 4px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:not(.#{c.$prefix}-textfield--empty) .#{c.$prefix}-textfield-label,
|
|
37
|
-
&.#{c.$prefix}-textfield--focused .#{c.$prefix}-textfield-label {
|
|
38
|
-
background-color: var(--mtrl-sys-color-surface);
|
|
39
|
-
transform: translateY(-145%) scale(0.75);
|
|
40
|
-
left: 13px;
|
|
41
|
-
padding: 0 4px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.#{c.$prefix}-textfield--focused {
|
|
45
|
-
border: 2px solid var(--mtrl-sys-color-primary);
|
|
46
|
-
.#{c.$prefix}-textfield-label {
|
|
47
|
-
color: var(--mtrl-sys-color-primary);
|
|
48
|
-
border-radius: 2px;
|
|
49
|
-
left: 12px;
|
|
50
|
-
}
|
|
51
|
-
.#{c.$prefix}-textfield-input {
|
|
52
|
-
padding: 12px 15px 13px;
|
|
53
|
-
}
|
|
54
|
-
&:hover {
|
|
55
|
-
border: 2px solid var(--mtrl-sys-color-primary);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&:hover {
|
|
60
|
-
border: 1px solid var(--mtrl-sys-color-primary);
|
|
61
|
-
.#{c.$prefix}-textfield-label {
|
|
62
|
-
color: var(--mtrl-sys-color-primary);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|