material-inspired-component-library 1.0.3 → 1.1.1
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 +23 -20
- package/components/accordion/README.md +7 -9
- package/components/bottomsheet/README.md +7 -9
- package/components/bottomsheet/index.scss +3 -0
- package/components/button/README.md +7 -9
- package/components/button/index.scss +3 -0
- package/components/card/README.md +3 -3
- package/components/card/index.scss +3 -0
- package/components/checkbox/README.md +7 -9
- package/components/checkbox/index.scss +2 -0
- package/components/dialog/README.md +3 -3
- package/components/dialog/index.scss +3 -0
- package/components/divider/README.md +3 -3
- package/components/iconbutton/README.md +7 -9
- package/components/iconbutton/index.scss +3 -0
- package/components/list/README.md +7 -9
- package/components/list/index.scss +2 -0
- package/components/menu/README.md +8 -10
- package/components/menu/index.scss +3 -0
- package/components/radio/README.md +3 -3
- package/components/radio/index.scss +2 -0
- package/components/select/README.md +9 -11
- package/components/select/index.scss +2 -0
- package/components/sidesheet/README.md +3 -3
- package/components/sidesheet/index.scss +2 -0
- package/components/slider/README.md +7 -9
- package/components/slider/index.scss +13 -8
- package/components/switch/README.md +3 -3
- package/components/switch/index.scss +3 -0
- package/components/textfield/README.md +55 -26
- package/components/textfield/index.scss +100 -55
- package/components/textfield/index.ts +23 -16
- package/dist/bottomsheet.css +1 -1
- package/dist/bottomsheet.js +1 -0
- package/dist/button.css +1 -1
- package/dist/button.js +1 -0
- package/dist/card.css +1 -1
- package/dist/card.js +1 -0
- package/dist/checkbox.css +1 -1
- package/dist/checkbox.js +1 -0
- package/dist/components/bottomsheet/index.d.ts +6 -0
- package/dist/components/button/index.d.ts +6 -0
- package/dist/components/checkbox/index.d.ts +5 -0
- package/dist/components/iconbutton/index.d.ts +6 -0
- package/dist/components/list/index.d.ts +5 -0
- package/dist/components/menu/index.d.ts +16 -0
- package/dist/components/slider/index.d.ts +6 -0
- package/dist/components/textfield/index.d.ts +8 -0
- package/dist/dialog.css +1 -1
- package/dist/dialog.js +1 -0
- package/dist/divider.js +1 -0
- package/dist/iconbutton.css +1 -1
- package/dist/iconbutton.js +1 -0
- package/dist/list.css +1 -1
- package/dist/list.js +1 -0
- package/dist/menu.css +1 -1
- package/dist/menu.js +1 -0
- package/dist/micl.css +1 -1
- package/dist/micl.d.ts +5 -0
- package/dist/micl.js +1 -1
- package/dist/radio.css +1 -1
- package/dist/radio.js +1 -0
- package/dist/select.css +1 -1
- package/dist/select.js +1 -0
- package/dist/sidesheet.css +1 -1
- package/dist/sidesheet.js +1 -0
- package/dist/slider.css +1 -1
- package/dist/slider.js +1 -0
- package/dist/switch.css +1 -1
- package/dist/switch.js +1 -0
- package/dist/textfield.css +1 -1
- package/dist/textfield.js +1 -0
- package/docs/micl.css +1 -1
- package/docs/micl.js +1 -1
- package/docs/slider.html +1 -0
- package/docs/textfield.html +30 -17
- package/{components.ts → micl.ts} +75 -53
- package/package.json +5 -3
- package/tsconfig.json +11 -5
- package/webpack.config.js +7 -4
|
@@ -17,22 +17,18 @@ A basic text field can be either `filled` or `outlined`. To create one, use the
|
|
|
17
17
|
Import the text field styles into your project:
|
|
18
18
|
|
|
19
19
|
```CSS
|
|
20
|
-
@use "material-inspired-component-library/
|
|
20
|
+
@use "material-inspired-component-library/dist/textfield";
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
###
|
|
24
|
-
This component requires
|
|
23
|
+
### JavaScript
|
|
24
|
+
This component requires JavaScript for interactive features like the **character counter**:
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```TypeScript
|
|
29
|
-
import miclTextField from 'material-inspired-component-library/components/textfield';
|
|
30
|
-
|
|
31
|
-
miclTextField.initialize(document.querySelector('.micl-textfield-filled'));
|
|
32
|
-
|
|
33
|
-
document.querySelector('.micl-textfield-outlined').addEventListener('input', miclTextField.input);
|
|
26
|
+
```JavaScript
|
|
27
|
+
import micl from "material-inspired-component-library/dist/micl";
|
|
34
28
|
```
|
|
35
29
|
|
|
30
|
+
This will initialize any Text field component, including those that will be added to the DOM later on.
|
|
31
|
+
|
|
36
32
|
### Demo
|
|
37
33
|
A live example of the [Text field component](https://henkpb.github.io/micl/textfield.html) is available for you to interact with.
|
|
38
34
|
|
|
@@ -41,35 +37,68 @@ The following example shows a text field with every available feature. You can i
|
|
|
41
37
|
|
|
42
38
|
```HTML
|
|
43
39
|
<div class="micl-textfield-filled">
|
|
44
|
-
<span class="micl-textfield__icon-leading material-symbols-outlined"
|
|
40
|
+
<span class="micl-textfield__icon-leading material-symbols-outlined">search</span>
|
|
45
41
|
<label for="mytextfield">Label text</label>
|
|
46
|
-
<span class="micl-textfield__prefix">$</span>
|
|
47
|
-
<input type="text" id="mytextfield" maxlength="20">
|
|
48
|
-
<span class="micl-textfield__suffix">kg</span>
|
|
49
|
-
<span class="micl-textfield__icon-trailing material-symbols-outlined"
|
|
50
|
-
<span class="micl-textfield__supporting-text">Supporting text</span>
|
|
42
|
+
<span class="micl-textfield__prefix" aria-label="US dollars">$</span>
|
|
43
|
+
<input type="text" id="mytextfield" maxlength="20" aria-describedby="mysupport">
|
|
44
|
+
<span class="micl-textfield__suffix" aria-label="kilograms">kg</span>
|
|
45
|
+
<span class="micl-textfield__icon-trailing material-symbols-outlined">cancel</span>
|
|
46
|
+
<span id="mysupport" class="micl-textfield__supporting-text">Supporting text</span>
|
|
51
47
|
<span class="micl-textfield__character-counter"></span>
|
|
52
48
|
</div>
|
|
53
49
|
```
|
|
54
50
|
|
|
55
51
|
The `<input>` element can have the following types: `text`, `date`, `datetime-local`, `email`, `month`, `number`, `password`, `tel`, `time`, `url` and `week`.
|
|
56
52
|
|
|
57
|
-
|
|
53
|
+
Adding the `disabled` boolean attribute to the `<input>` element causes the text field to be displayed in a disabled state.
|
|
58
54
|
|
|
59
|
-
|
|
55
|
+
Adding the `micl-textfield--error` class to the text field displays it in an error state.
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
### Leading Content
|
|
58
|
+
The data-input element can be preceded by various elements:
|
|
59
|
+
|
|
60
|
+
- **Icon**: Use `micl-textfield__icon-leading` with a (Material Symbols) icon.
|
|
61
|
+
|
|
62
|
+
- **Prefix**: A prefix (e.g., "$", "NOK") can be included to provide additional context. You can customize the spacing by overriding CSS variables:
|
|
63
|
+
```HTML
|
|
64
|
+
<span class="micl-textfield__prefix" style="--md-sys-textfield-prefix-space:20px">USD</span>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Trailing Content
|
|
68
|
+
The data-input element may be followed by a trailing text or other element:
|
|
69
|
+
|
|
70
|
+
- **Icon**: Use `micl-textfield__icon-trailing` with a (Material Symbols) icon.
|
|
71
|
+
|
|
72
|
+
- **Suffix**: A suffix (e.g., "kg", "@gmail.com") can be included to provide additional context. You can customize the spacing by overriding CSS variables:
|
|
73
|
+
```HTML
|
|
74
|
+
<span class="micl-textfield__suffix" style="--md-sys-textfield-suffix-space:10em">@gmail.com</span>
|
|
75
|
+
```
|
|
65
76
|
|
|
66
|
-
|
|
77
|
+
### Supporting Content
|
|
78
|
+
Use an element with the `micl-textfield__supporting-text` class to add extra information about the text field. If you want this element only to be visible when the text field is focused, add the `micl-textfield__supporting-text--focus` as well.
|
|
67
79
|
|
|
68
80
|
If the `<input>` element includes the `maxlength` attribute, the **character counter** will display automatically in the element with the `micl-textfield__character-counter` class.
|
|
69
81
|
|
|
70
|
-
|
|
82
|
+
### Multi-line Text Field
|
|
83
|
+
Replace the `<input>` element with the `<textarea>` element to create a multi-line text field:
|
|
71
84
|
|
|
72
|
-
|
|
85
|
+
```HTML
|
|
86
|
+
<div class="micl-textfield-outlined">
|
|
87
|
+
<label for="mytextfield">Label text</label>
|
|
88
|
+
<textarea id="mytextfield"></textarea>
|
|
89
|
+
</div>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Add a value to the `rows` attribute of the `<textarea>` element to create a text field of fixed height:
|
|
93
|
+
|
|
94
|
+
```HTML
|
|
95
|
+
<div class="micl-textfield-outlined">
|
|
96
|
+
<label for="mytextfield">Label text</label>
|
|
97
|
+
<textarea id="mytextfield" rows="4"></textarea>
|
|
98
|
+
</div>
|
|
99
|
+
```
|
|
73
100
|
|
|
74
101
|
## Compatibility
|
|
75
102
|
This component uses relative RGB colors, which might not be supported in your browser. Please check [Browser compatibility](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#browser_compatibility) for details.
|
|
103
|
+
|
|
104
|
+
The multi-line text field variant uses the `field-sizing` CSS property, which might not be supported in your browser. Please check [Browser compatibility](https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing#browser_compatibility) for details.
|
|
@@ -20,10 +20,13 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
|
|
22
22
|
@use '../../styles/motion';
|
|
23
|
+
@use '../../styles/shapes';
|
|
24
|
+
@use '../../styles/statelayer';
|
|
23
25
|
@use '../../styles/typography';
|
|
24
26
|
|
|
25
27
|
.micl-textfield-filled,
|
|
26
28
|
.micl-textfield-outlined {
|
|
29
|
+
--md-sys-textfield-height: 56px;
|
|
27
30
|
--md-sys-textfield-icon-size: 24px;
|
|
28
31
|
--md-sys-textfield-icon-space: 12px;
|
|
29
32
|
--md-sys-textfield-input-space: 16px;
|
|
@@ -40,30 +43,29 @@
|
|
|
40
43
|
|
|
41
44
|
box-sizing: content-box;
|
|
42
45
|
grid-area: textfield;
|
|
46
|
+
align-self: flex-start;
|
|
43
47
|
width: fit-content;
|
|
44
|
-
line-height: 1;
|
|
45
48
|
padding-inline: 4px;
|
|
46
|
-
margin-block-start:
|
|
49
|
+
margin-block-start: calc((var(--md-sys-textfield-height) - var(--md-sys-typescale-body-large-line-height)) / 2);
|
|
47
50
|
margin-inline-start: 12px;
|
|
48
51
|
border-radius: 4px;
|
|
49
52
|
background-color: inherit;
|
|
50
53
|
color: var(--md-sys-color-on-surface-variant);
|
|
51
54
|
z-index: 1;
|
|
52
55
|
transition:
|
|
53
|
-
margin-block-start var(--md-sys-motion-duration-
|
|
54
|
-
margin-inline-start var(--md-sys-motion-duration-
|
|
55
|
-
font-size var(--md-sys-motion-duration-
|
|
56
|
-
letter-spacing var(--md-sys-motion-duration-
|
|
56
|
+
margin-block-start var(--md-sys-motion-duration-medium2) var(--md-sys-motion-duration-short3),
|
|
57
|
+
margin-inline-start var(--md-sys-motion-duration-medium2) var(--md-sys-motion-duration-short3),
|
|
58
|
+
font-size var(--md-sys-motion-duration-medium2),
|
|
59
|
+
letter-spacing var(--md-sys-motion-duration-medium2);
|
|
57
60
|
}
|
|
58
61
|
&> input,
|
|
59
|
-
&> select
|
|
62
|
+
&> select,
|
|
63
|
+
&> textarea {
|
|
60
64
|
@include typography.body-large;
|
|
61
65
|
|
|
62
66
|
box-sizing: border-box;
|
|
63
67
|
grid-area: textfield;
|
|
64
|
-
height: 56px;
|
|
65
68
|
margin: 0;
|
|
66
|
-
padding-block: 0;
|
|
67
69
|
padding-inline: var(--md-sys-textfield-input-space);
|
|
68
70
|
border: none;
|
|
69
71
|
border-block-end: 1px solid var(--md-sys-color-on-surface-variant);
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
caret-color: var(--md-sys-color-primary);
|
|
76
78
|
|
|
77
79
|
&:disabled {
|
|
78
|
-
border-color: rgb(from var(--md-sys-color-on-surface) r g b / 38%);
|
|
80
|
+
border-block-end-color: rgb(from var(--md-sys-color-on-surface) r g b / 38%);
|
|
79
81
|
color: rgb(from var(--md-sys-color-on-surface) r g b / 38%);
|
|
80
82
|
}
|
|
81
83
|
&::placeholder {
|
|
@@ -90,13 +92,32 @@
|
|
|
90
92
|
-moz-appearance: textfield;
|
|
91
93
|
}
|
|
92
94
|
}
|
|
95
|
+
&> input,
|
|
96
|
+
&> select {
|
|
97
|
+
height: var(--md-sys-textfield-height);
|
|
98
|
+
padding-block: 0;
|
|
99
|
+
}
|
|
100
|
+
&> textarea {
|
|
101
|
+
min-height: var(--md-sys-textfield-height);
|
|
102
|
+
padding-block: calc((var(--md-sys-textfield-height) - var(--md-sys-typescale-body-large-line-height)) / 2);
|
|
103
|
+
resize: none;
|
|
104
|
+
|
|
105
|
+
&[rows] {
|
|
106
|
+
padding-block-start: 0;
|
|
107
|
+
border-block-start: 8px solid transparent;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
}
|
|
110
|
+
&:not([rows]) {
|
|
111
|
+
field-sizing: content;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
93
114
|
&> .micl-textfield__prefix,
|
|
94
115
|
&> .micl-textfield__suffix {
|
|
95
116
|
@include typography.body-large;
|
|
96
117
|
|
|
97
118
|
grid-area: textfield;
|
|
98
119
|
align-content: center;
|
|
99
|
-
height:
|
|
120
|
+
height: var(--md-sys-textfield-height);
|
|
100
121
|
color: var(--md-sys-color-on-surface-variant);
|
|
101
122
|
opacity: 0;
|
|
102
123
|
z-index: 1;
|
|
@@ -124,12 +145,14 @@
|
|
|
124
145
|
margin-inline: auto var(--md-sys-textfield-icon-space);
|
|
125
146
|
}
|
|
126
147
|
&:has(> .micl-textfield__prefix) {
|
|
127
|
-
&> input
|
|
148
|
+
&> input,
|
|
149
|
+
&> textarea {
|
|
128
150
|
padding-inline-start: calc(var(--md-sys-textfield-input-space) + var(--md-sys-textfield-prefix-space));
|
|
129
151
|
}
|
|
130
152
|
}
|
|
131
153
|
&:has(> .micl-textfield__suffix) {
|
|
132
|
-
&> input
|
|
154
|
+
&> input,
|
|
155
|
+
&> textarea {
|
|
133
156
|
padding-inline-end: calc(var(--md-sys-textfield-suffix-space) + var(--md-sys-textfield-input-space));
|
|
134
157
|
}
|
|
135
158
|
}
|
|
@@ -138,19 +161,23 @@
|
|
|
138
161
|
margin-inline-start: calc(var(--md-sys-textfield-icon-space) + var(--md-sys-textfield-icon-size) + var(--md-sys-textfield-input-space));
|
|
139
162
|
}
|
|
140
163
|
&> .micl-textfield__prefix,
|
|
141
|
-
&> input
|
|
164
|
+
&> input,
|
|
165
|
+
&> textarea {
|
|
142
166
|
padding-inline-start: calc(var(--md-sys-textfield-icon-space) + var(--md-sys-textfield-icon-size) + var(--md-sys-textfield-input-space));
|
|
143
167
|
}
|
|
144
|
-
&:has(> .micl-textfield__prefix) > input
|
|
168
|
+
&:has(> .micl-textfield__prefix) > input,
|
|
169
|
+
&:has(> .micl-textfield__prefix) > textarea {
|
|
145
170
|
padding-inline-start: calc(var(--md-sys-textfield-input-space) + var(--md-sys-textfield-icon-size) + var(--md-sys-textfield-icon-space) + var(--md-sys-textfield-prefix-space));
|
|
146
171
|
}
|
|
147
172
|
}
|
|
148
173
|
&:has(> .micl-textfield__icon-trailing) {
|
|
149
174
|
&> .micl-textfield__suffix,
|
|
150
|
-
&> input
|
|
175
|
+
&> input,
|
|
176
|
+
&> textarea {
|
|
151
177
|
padding-inline-end: calc(var(--md-sys-textfield-input-space) + var(--md-sys-textfield-icon-size) + var(--md-sys-textfield-icon-space));
|
|
152
178
|
}
|
|
153
|
-
&:has(> .micl-textfield__suffix) > input
|
|
179
|
+
&:has(> .micl-textfield__suffix) > input,
|
|
180
|
+
&:has(> .micl-textfield__suffix) > textarea {
|
|
154
181
|
padding-inline-end: calc(var(--md-sys-textfield-input-space) + var(--md-sys-textfield-icon-size) + var(--md-sys-textfield-prefix-space) + var(--md-sys-textfield-icon-space));
|
|
155
182
|
}
|
|
156
183
|
}
|
|
@@ -162,28 +189,33 @@
|
|
|
162
189
|
padding-block: 4px 0;
|
|
163
190
|
padding-inline: 16px;
|
|
164
191
|
color: var(--md-sys-color-on-surface-variant);
|
|
192
|
+
|
|
193
|
+
&.micl-textfield__supporting-text--focus {
|
|
194
|
+
visibility: hidden;
|
|
195
|
+
}
|
|
165
196
|
}
|
|
166
197
|
&> .micl-textfield__character-counter {
|
|
167
198
|
justify-self: flex-end;
|
|
168
199
|
}
|
|
169
200
|
&:has(> input:active),
|
|
170
201
|
&:has(> select:active),
|
|
202
|
+
&:has(> textarea:active),
|
|
171
203
|
&:has(> input:focus),
|
|
172
204
|
&:has(> select:focus),
|
|
205
|
+
&:has(> textarea:focus),
|
|
173
206
|
&:has(> input:focus-visible),
|
|
174
|
-
&:has(> select:focus-visible)
|
|
207
|
+
&:has(> select:focus-visible),
|
|
208
|
+
&:has(> textarea:focus-visible) {
|
|
175
209
|
&> label {
|
|
176
210
|
color: var(--md-sys-color-primary);
|
|
177
211
|
}
|
|
178
|
-
&> .micl-
|
|
179
|
-
|
|
180
|
-
&> .micl-textfield__supporting-text,
|
|
181
|
-
&> .micl-textfield__character-counter {
|
|
182
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
212
|
+
&> .micl-textfield__supporting-text.micl-textfield__supporting-text--focus {
|
|
213
|
+
visibility: visible;
|
|
183
214
|
}
|
|
184
215
|
}
|
|
185
216
|
&:has(> input:disabled),
|
|
186
|
-
&:has(> select:disabled)
|
|
217
|
+
&:has(> select:disabled),
|
|
218
|
+
&:has(> textarea:disabled) {
|
|
187
219
|
&> label {
|
|
188
220
|
color: rgb(from var(--md-sys-color-on-surface) r g b / 38%);
|
|
189
221
|
}
|
|
@@ -196,12 +228,14 @@
|
|
|
196
228
|
display: none;
|
|
197
229
|
}
|
|
198
230
|
}
|
|
199
|
-
&:has(> input:not([maxlength]))
|
|
231
|
+
&:has(> input:not([maxlength])),
|
|
232
|
+
&:has(> textarea:not([maxlength])) {
|
|
200
233
|
&> .micl-textfield__character-counter {
|
|
201
234
|
display: none;
|
|
202
235
|
}
|
|
203
236
|
}
|
|
204
|
-
&:has(> input[maxlength]:not(:disabled)):has(> .micl-textfield__character-counter)
|
|
237
|
+
&:has(> input[maxlength]:not(:disabled)):has(> .micl-textfield__character-counter),
|
|
238
|
+
&:has(> textarea[maxlength]:not(:disabled)):has(> .micl-textfield__character-counter) {
|
|
205
239
|
&> .micl-textfield__supporting-text {
|
|
206
240
|
padding-inline-end: 64px;
|
|
207
241
|
}
|
|
@@ -214,14 +248,17 @@
|
|
|
214
248
|
}
|
|
215
249
|
&:hover {
|
|
216
250
|
&> input:not(:disabled),
|
|
217
|
-
&> select:not(:disabled)
|
|
218
|
-
|
|
251
|
+
&> select:not(:disabled),
|
|
252
|
+
&> textarea:not(:disabled) {
|
|
253
|
+
border-block-end-color: var(--md-sys-color-on-surface);
|
|
219
254
|
background-color: color-mix(in srgb, var(--md-sys-color-surface-container-highest), var(--md-sys-color-on-surface) var(--md-sys-state-hover-state-layer-opacity));
|
|
220
255
|
}
|
|
221
256
|
}
|
|
222
257
|
&> input,
|
|
223
|
-
&> select
|
|
224
|
-
|
|
258
|
+
&> select,
|
|
259
|
+
&> textarea {
|
|
260
|
+
padding-block-start: 18px;
|
|
261
|
+
padding-block-end: 2px;
|
|
225
262
|
background-color: var(--md-sys-color-surface-container-highest);
|
|
226
263
|
border-end-start-radius: 0;
|
|
227
264
|
border-end-end-radius: 0;
|
|
@@ -233,14 +270,17 @@
|
|
|
233
270
|
&:not(:disabled):focus,
|
|
234
271
|
&:not(:disabled):focus-visible,
|
|
235
272
|
&:not(:disabled):active {
|
|
236
|
-
padding-block-
|
|
237
|
-
border-width: 3px;
|
|
238
|
-
border-color: var(--md-sys-color-primary);
|
|
273
|
+
padding-block-end: 0px;
|
|
274
|
+
border-block-end-width: 3px;
|
|
275
|
+
border-block-end-color: var(--md-sys-color-primary);
|
|
239
276
|
}
|
|
240
277
|
}
|
|
241
278
|
&> select {
|
|
242
279
|
line-height: 28px;
|
|
243
280
|
}
|
|
281
|
+
&> textarea {
|
|
282
|
+
padding-block-start: 24px;
|
|
283
|
+
}
|
|
244
284
|
&:has(
|
|
245
285
|
> input:focus,
|
|
246
286
|
> input[value]:not([value='']):not([data-miclinitialized]),
|
|
@@ -252,12 +292,15 @@
|
|
|
252
292
|
> input[type=week],
|
|
253
293
|
> select:focus,
|
|
254
294
|
> select[value]:not([value='']):not([data-miclinitialized]),
|
|
255
|
-
> select[data-miclvalue]
|
|
295
|
+
> select[data-miclvalue],
|
|
296
|
+
> textarea:focus,
|
|
297
|
+
> textarea:not(:empty):not([data-miclinitialized]),
|
|
298
|
+
> textarea[data-miclvalue]
|
|
256
299
|
) {
|
|
257
300
|
&> label {
|
|
258
301
|
@include typography.body-small;
|
|
259
302
|
|
|
260
|
-
margin-block-start:
|
|
303
|
+
margin-block-start: 8px;
|
|
261
304
|
margin-inline-start: 12px;
|
|
262
305
|
}
|
|
263
306
|
&:has(> .micl-textfield__icon-leading) > label {
|
|
@@ -279,13 +322,15 @@
|
|
|
279
322
|
color: var(--md-sys-color-on-surface);
|
|
280
323
|
}
|
|
281
324
|
&> input:not(:disabled),
|
|
282
|
-
&> select:not(:disabled)
|
|
325
|
+
&> select:not(:disabled),
|
|
326
|
+
&> textarea:not(:disabled) {
|
|
283
327
|
outline-color: var(--md-sys-color-on-surface);
|
|
284
328
|
color: var(--md-sys-color-on-surface);
|
|
285
329
|
}
|
|
286
330
|
}
|
|
287
331
|
&> input,
|
|
288
|
-
&> select
|
|
332
|
+
&> select,
|
|
333
|
+
&> textarea {
|
|
289
334
|
border: none;
|
|
290
335
|
outline: 1px solid var(--md-sys-color-outline);
|
|
291
336
|
|
|
@@ -300,7 +345,7 @@
|
|
|
300
345
|
}
|
|
301
346
|
}
|
|
302
347
|
&> select {
|
|
303
|
-
line-height:
|
|
348
|
+
line-height: var(--md-sys-textfield-height);
|
|
304
349
|
}
|
|
305
350
|
&:has(
|
|
306
351
|
> input:focus,
|
|
@@ -313,12 +358,15 @@
|
|
|
313
358
|
> input[type=week],
|
|
314
359
|
> select:focus,
|
|
315
360
|
> select[value]:not([value='']):not([data-miclinitialized]),
|
|
316
|
-
> select[data-miclvalue]
|
|
361
|
+
> select[data-miclvalue],
|
|
362
|
+
> textarea:focus,
|
|
363
|
+
> textarea:not(:empty):not([data-miclinitialized]),
|
|
364
|
+
> textarea[data-miclvalue]
|
|
317
365
|
) {
|
|
318
366
|
&> label {
|
|
319
367
|
@include typography.body-small;
|
|
320
368
|
|
|
321
|
-
margin-block-start: -
|
|
369
|
+
margin-block-start: calc(-2px - var(--md-sys-typescale-body-small-line-height) / 2);
|
|
322
370
|
margin-inline-start: 12px;
|
|
323
371
|
}
|
|
324
372
|
&> .micl-textfield__prefix,
|
|
@@ -336,18 +384,17 @@
|
|
|
336
384
|
&> .micl-textfield__character-counter {
|
|
337
385
|
color: var(--md-sys-color-error);
|
|
338
386
|
}
|
|
339
|
-
&> input
|
|
340
|
-
|
|
387
|
+
&> input,
|
|
388
|
+
&> textarea {
|
|
389
|
+
border-block-end-color: var(--md-sys-color-error);
|
|
341
390
|
outline-color: var(--md-sys-color-error);
|
|
342
|
-
color: var(--md-sys-color-on-surface);
|
|
343
391
|
caret-color: var(--md-sys-color-error);
|
|
344
392
|
|
|
345
393
|
&:active,
|
|
346
394
|
&:focus,
|
|
347
395
|
&:focus-visible {
|
|
348
|
-
border-color: var(--md-sys-color-error);
|
|
396
|
+
border-block-end-color: var(--md-sys-color-error);
|
|
349
397
|
outline-color: var(--md-sys-color-error);
|
|
350
|
-
color: var(--md-sys-color-on-surface);
|
|
351
398
|
}
|
|
352
399
|
}
|
|
353
400
|
&:hover {
|
|
@@ -355,22 +402,20 @@
|
|
|
355
402
|
&> .micl-textfield__icon-trailing {
|
|
356
403
|
color: var(--md-sys-color-on-error-container);
|
|
357
404
|
}
|
|
358
|
-
&> input
|
|
359
|
-
|
|
405
|
+
&> input,
|
|
406
|
+
&> textarea {
|
|
407
|
+
border-block-end-color: var(--md-sys-color-on-error-container);
|
|
360
408
|
outline-color: var(--md-sys-color-on-error-container);
|
|
361
409
|
}
|
|
362
|
-
&> .micl-textfield__supporting-text,
|
|
363
|
-
&> .micl-textfield__character-counter {
|
|
364
|
-
color: var(--md-sys-color-error);
|
|
365
|
-
}
|
|
366
410
|
}
|
|
367
411
|
&:has(> input:active),
|
|
368
412
|
&:has(> input:focus),
|
|
369
|
-
&:has(> input:focus-visible)
|
|
413
|
+
&:has(> input:focus-visible),
|
|
414
|
+
&:has(> textarea:active),
|
|
415
|
+
&:has(> textarea:focus),
|
|
416
|
+
&:has(> textarea:focus-visible) {
|
|
370
417
|
&> label,
|
|
371
|
-
&> .micl-textfield__icon-trailing
|
|
372
|
-
&> .micl-textfield__supporting-text,
|
|
373
|
-
&> .micl-textfield__character-counter {
|
|
418
|
+
&> .micl-textfield__icon-trailing {
|
|
374
419
|
color: var(--md-sys-color-error);
|
|
375
420
|
}
|
|
376
421
|
}
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
|
|
22
22
|
export const textfieldSelector = '.micl-textfield-outlined > input,.micl-textfield-filled > input';
|
|
23
23
|
export const selectSelector = '.micl-textfield-outlined > select,.micl-textfield-filled > select';
|
|
24
|
+
export const textareaSelector = '.micl-textfield-outlined > textarea,.micl-textfield-filled > textarea';
|
|
24
25
|
|
|
25
26
|
export default (() =>
|
|
26
27
|
{
|
|
27
|
-
const counterSelector = '.micl-
|
|
28
|
+
const counterSelector = '.micl-textfield__character-counter';
|
|
28
29
|
|
|
29
30
|
return {
|
|
30
|
-
initialize: (element: HTMLInputElement | HTMLSelectElement): void =>
|
|
31
|
+
initialize: (element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement): void =>
|
|
31
32
|
{
|
|
32
33
|
if (element.dataset.miclinitialized) {
|
|
33
34
|
return;
|
|
@@ -39,21 +40,25 @@ export default (() =>
|
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
if (
|
|
42
|
-
(element instanceof
|
|
43
|
-
|
|
43
|
+
(element instanceof HTMLSelectElement)
|
|
44
|
+
|| !element.maxLength
|
|
44
45
|
) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const counter = element.parentElement?.querySelector(counterSelector);
|
|
50
|
+
if (counter) {
|
|
51
|
+
counter.textContent = `${element.value.length}/${element.maxLength}`;
|
|
49
52
|
}
|
|
50
53
|
},
|
|
51
54
|
|
|
52
55
|
input: (event: Event): void =>
|
|
53
56
|
{
|
|
54
57
|
if (
|
|
55
|
-
!(event.target as Element).matches(`${textfieldSelector},${selectSelector}`)
|
|
56
|
-
|| !((event.target instanceof HTMLInputElement)
|
|
58
|
+
!(event.target as Element).matches(`${textfieldSelector},${selectSelector},${textareaSelector}`)
|
|
59
|
+
|| !((event.target instanceof HTMLInputElement)
|
|
60
|
+
|| (event.target instanceof HTMLSelectElement)
|
|
61
|
+
|| (event.target instanceof HTMLTextAreaElement))
|
|
57
62
|
|| !event.target.dataset.miclinitialized
|
|
58
63
|
|| event.target.disabled
|
|
59
64
|
) {
|
|
@@ -68,13 +73,15 @@ export default (() =>
|
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
if (
|
|
71
|
-
(event.target instanceof
|
|
72
|
-
|
|
76
|
+
(event.target instanceof HTMLSelectElement)
|
|
77
|
+
|| !event.target.maxLength
|
|
73
78
|
) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const counter = event.target.parentElement?.querySelector(counterSelector);
|
|
83
|
+
if (counter) {
|
|
84
|
+
counter.textContent = `${event.target.value.length}/${event.target.maxLength}`;
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
};
|
package/dist/bottomsheet.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--md-sys-motion-duration-short1: 50ms;--md-sys-motion-duration-short2: 100ms;--md-sys-motion-duration-short3: 150ms;--md-sys-motion-duration-short4: 200ms;--md-sys-motion-duration-medium1: 250ms;--md-sys-motion-duration-medium2: 300ms;--md-sys-motion-duration-medium3: 350ms;--md-sys-motion-duration-medium4: 400ms;--md-sys-motion-duration-long1: 450ms;--md-sys-motion-duration-long2: 500ms;--md-sys-motion-duration-long3: 550ms;--md-sys-motion-duration-long4: 600ms;--md-sys-motion-duration-extra-long1: 700ms;--md-sys-motion-duration-extra-long2: 800ms;--md-sys-motion-duration-extra-long3: 900ms;--md-sys-motion-duration-extra-long4: 1000ms}dialog.micl-bottomsheet{--md-sys-bottomsheet-height: max-content;--md-sys-bottomsheet-margin: 56px;--md-sys-bottomsheet-padding: 24px;--md-sys-bottomsheet-handle-width: 32px;--md-sys-bottomsheet-handle-height: 4px;box-sizing:border-box;position:fixed;top:auto;bottom:0;height:0;max-height:50vh;width:100%;min-width:100%;margin:72px 0 0 0;padding:0;border:none;border-radius:var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0 0;background-color:var(--md-sys-color-surface-container-low);box-shadow:var(--md-sys-elevation-level1);opacity:0;overflow-y:hidden;interpolate-size:allow-keywords}dialog.micl-bottomsheet:not(.micl-bottomsheet--resizing){transition:display var(--md-sys-motion-duration-medium1) allow-discrete,overlay var(--md-sys-motion-duration-medium1) allow-discrete,height var(--md-sys-motion-duration-medium1) linear(0, 0.00003 0.08%, 0.00014 0.17%, 0.00029 0.25%, 0.00054 0.34%, 0.00083 0.42%, 0.00121 0.51%, 0.00162 0.59%, 0.00215 0.68%, 0.00267 0.76%, 0.00334 0.85%, 0.00398 0.93%, 0.00478 1.02%, 0.00554 1.1%, 0.00646, 0.00745, 0.00851 1.37%, 0.00951 1.45%, 0.01069, 0.01194, 0.01325, 0.01463, 0.01607, 0.01757, 0.01914, 0.02076, 0.02245, 0.02419 2.35%, 0.0262 2.45%, 0.02807, 0.03, 0.03198 2.72%, 0.03425 2.82%, 0.03636 2.91%, 0.03876 3.01%, 0.04098 3.1%, 0.0435 3.2%, 0.04583 3.29%, 0.04848 3.39%, 0.05369, 0.05913 3.77%, 0.06508, 0.07127, 0.07769, 0.08432 4.57%, 0.09152 4.78%, 0.09859 4.98%, 0.10622, 0.11406, 0.12211 5.611%, 0.13076, 0.13961 6.051%, 0.14658, 0.15367, 0.16087 6.561%, 0.16862, 0.17647, 0.18444, 0.19252 7.281%, 0.20115, 0.20989, 0.21874, 0.22769 8.041%, 0.23721 8.241%, 0.25702 8.651%, 0.2777 9.071%, 0.29569 9.431%, 0.31491 9.811%, 0.33537 10.211%, 0.35705 10.631%, 0.37681 11.011%, 0.3993 11.441%, 0.4818 13.011%, 0.51583 13.661%, 0.55063 14.331%, 0.58146 14.931%, 0.59926 15.282%, 0.61591 15.612%, 0.6319, 0.64775 16.252%, 0.66295 16.562%, 0.6775, 0.69189, 0.70612 17.462%, 0.72204 17.802%, 0.73726, 0.75226 18.462%, 0.76658, 0.78067 19.102%, 0.7941 19.412%, 0.80773 19.732%, 0.8207, 0.83343, 0.84592, 0.85818, 0.87018, 0.88193 21.592%, 0.89307, 0.90396, 0.91462, 0.92503 22.792%, 0.93486 23.082%, 0.94479 23.382%, 0.95416 23.672%, 0.9636 23.972%, 0.97249 24.262%, 0.98144 24.562%, 0.98986, 0.99805 25.143%, 1.00219, 1.00627 25.443%, 1.01003 25.583%, 1.01399, 1.01789, 1.02172 26.033%, 1.02525 26.173%, 1.02897, 1.03262, 1.03622, 1.03975, 1.04322, 1.04663, 1.04999, 1.05328, 1.05651, 1.05968, 1.06279, 1.06584, 1.06883, 1.07176, 1.07463, 1.07745, 1.0802, 1.0829, 1.08554, 1.08813, 1.09065, 1.09312 29.473%, 1.09569 29.633%, 1.09804, 1.10034, 1.10258 30.083%, 1.10491 30.243%, 1.10704 30.393%, 1.10925 30.553%, 1.11127 30.703%, 1.11336 30.863%, 1.11526 31.013%, 1.11724, 1.11915, 1.12101 31.493%, 1.12269 31.643%, 1.12443, 1.12612, 1.12775 32.123%, 1.12893, 1.13008, 1.1312 32.483%, 1.13238 32.613%, 1.13343, 1.13446, 1.13545 32.973%, 1.1365 33.103%, 1.13743 33.223%, 1.1384 33.353%, 1.13927 33.473%, 1.14018 33.603%, 1.14099 33.723%, 1.14183, 1.14264, 1.14342 34.113%, 1.14411 34.233%, 1.14482, 1.1455, 1.14615, 1.14677, 1.14736, 1.14791, 1.14844, 1.14893, 1.14939, 1.14983, 1.15023, 1.15061, 1.15095, 1.15127 36.054%, 1.15158 36.194%, 1.15184 36.324%, 1.15209 36.464%, 1.15229 36.594%, 1.15248 36.734%, 1.15263 36.864%, 1.15276, 1.15286, 1.15293 37.284%, 1.15296 37.414%, 1.15298, 1.15296, 1.15292, 1.15285, 1.15275, 1.15263 38.254%, 1.15246 38.404%, 1.15228 38.544%, 1.15206 38.694%, 1.15183 38.834%, 1.15155, 1.15125, 1.15092, 1.15056, 1.15017, 1.14976, 1.14932, 1.14886 40.034%, 1.14834 40.194%, 1.14783 40.344%, 1.14725 40.504%, 1.14669 40.654%, 1.14607 40.814%, 1.14513 41.044%, 1.14409, 1.143 41.524%, 1.14181, 1.14057, 1.13927 42.274%, 1.13787, 1.13642, 1.13492 43.054%, 1.13331, 1.13166 43.594%, 1.12989, 1.12808 44.154%, 1.12615 44.444%, 1.12412, 1.12203 45.045%, 1.1202, 1.11833 45.565%, 1.11636, 1.11437 46.105%, 1.11228 46.385%, 1.11008 46.675%, 1.10531 47.295%, 1.10085 47.865%, 1.09578 48.505%, 1.09057 49.155%, 1.07579 50.995%, 1.07124 51.565%, 1.06713 52.085%, 1.06251 52.675%, 1.05826 53.225%, 1.05423 53.755%, 1.05041 54.265%, 1.0482, 1.04601, 1.04385 55.166%, 1.04178, 1.03974 55.746%, 1.0378, 1.03588, 1.03399, 1.03213 56.866%, 1.03036 57.136%, 1.02855 57.416%, 1.02683, 1.02514, 1.02348, 1.02185, 1.02024 58.766%, 1.01844, 1.01667, 1.01494, 1.01325, 1.0116 60.316%, 1.01004 60.616%, 1.00847 60.926%, 1.00699 61.226%, 1.0055 61.536%, 1.00409, 1.00273, 1.0014, 1.00011 62.736%, 0.99882 63.046%, 0.9976 63.346%, 0.99639 63.656%, 0.99525 63.956%, 0.99412 64.266%, 0.99306 64.566%, 0.992, 0.99098, 0.99001, 0.98907, 0.98817, 0.98731, 0.98648, 0.98569 67.047%, 0.98492, 0.98418, 0.98349, 0.98283, 0.98221 68.647%, 0.98173 68.907%, 0.98126 69.177%, 0.98083 69.437%, 0.98041, 0.98001, 0.97963, 0.97929 70.517%, 0.97895 70.797%, 0.97865 71.067%, 0.97836, 0.97809, 0.97785, 0.97763 72.187%, 0.97743 72.477%, 0.97725 72.757%, 0.9771, 0.97696, 0.97685 73.627%, 0.97676, 0.97668, 0.97663, 0.97661 74.827%, 0.9766, 0.97661, 0.97664 75.758%, 0.9767 76.078%, 0.97687 76.718%, 0.97713 77.378%, 0.97748 78.058%, 0.97779 78.578%, 0.97815 79.108%, 0.97855 79.648%, 0.97901 80.208%, 0.97953 80.788%, 0.9801 81.388%, 0.98072 82.008%, 0.98141 82.668%, 0.98262 83.758%, 0.98406 84.988%, 0.98549 86.169%, 0.98928 89.259%, 0.99036 90.159%, 0.99134 90.989%, 0.99235 91.869%, 0.99328 92.699%, 0.99415 93.509%, 0.99496 94.289%, 0.9957 95.03%, 0.99639 95.76%, 0.99705 96.48%, 0.99767, 0.99825 97.9%, 0.9988, 0.99931, 0.9998),opacity var(--md-sys-motion-duration-medium1) cubic-bezier(0.3, 0, 0.8, 0.15)}dialog.micl-bottomsheet.micl-bottomsheet--resizing .micl-bottomsheet__headline{cursor:grabbing}dialog.micl-bottomsheet .micl-bottomsheet__headline{box-sizing:border-box;display:flex;align-items:center;width:100%;height:var(--md-sys-target-size);justify-content:center;cursor:grab}dialog.micl-bottomsheet .micl-bottomsheet__headline .micl-bottomsheet__draghandle{box-sizing:content-box;width:var(--md-sys-bottomsheet-handle-width);height:var(--md-sys-bottomsheet-handle-height);padding:16px calc((var(--md-sys-target-size) - var(--md-sys-bottomsheet-handle-width))/2);border:none;border-radius:var(--md-sys-shape-corner-small);background-color:var(--md-sys-color-on-surface-variant);background-clip:content-box;cursor:pointer}dialog.micl-bottomsheet .micl-bottomsheet__headline .micl-bottomsheet__draghandle:focus-visible{outline:var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);outline-offset:var(--md-sys-state-focus-indicator-outer-offset)}dialog.micl-bottomsheet .micl-bottomsheet__content{padding:0 var(--md-sys-bottomsheet-padding) var(--md-sys-bottomsheet-padding) var(--md-sys-bottomsheet-padding)}dialog.micl-bottomsheet::backdrop{background-color:rgba(0,0,0,0);transition:display var(--md-sys-motion-duration-long2) linear allow-discrete,overlay var(--md-sys-motion-duration-long2) linear allow-discrete,background-color var(--md-sys-motion-duration-long2) linear}dialog.micl-bottomsheet:popover-open,dialog.micl-bottomsheet[open]{height:var(--md-sys-bottomsheet-height);opacity:1}dialog.micl-bottomsheet:popover-open:not(.micl-bottomsheet--resizing),dialog.micl-bottomsheet[open]:not(.micl-bottomsheet--resizing){transition:display var(--md-sys-motion-duration-long2) linear allow-discrete,overlay var(--md-sys-motion-duration-long2) linear allow-discrete,height var(--md-sys-motion-duration-long2) linear(0, 0.00003 0.08%, 0.00014 0.17%, 0.00029 0.25%, 0.00054 0.34%, 0.00083 0.42%, 0.00121 0.51%, 0.00162 0.59%, 0.00215 0.68%, 0.00267 0.76%, 0.00334 0.85%, 0.00398 0.93%, 0.00478 1.02%, 0.00554 1.1%, 0.00646, 0.00745, 0.00851 1.37%, 0.00951 1.45%, 0.01069, 0.01194, 0.01325, 0.01463, 0.01607, 0.01757, 0.01914, 0.02076, 0.02245, 0.02419 2.35%, 0.0262 2.45%, 0.02807, 0.03, 0.03198 2.72%, 0.03425 2.82%, 0.03636 2.91%, 0.03876 3.01%, 0.04098 3.1%, 0.0435 3.2%, 0.04583 3.29%, 0.04848 3.39%, 0.05369, 0.05913 3.77%, 0.06508, 0.07127, 0.07769, 0.08432 4.57%, 0.09152 4.78%, 0.09859 4.98%, 0.10622, 0.11406, 0.12211 5.611%, 0.13076, 0.13961 6.051%, 0.14658, 0.15367, 0.16087 6.561%, 0.16862, 0.17647, 0.18444, 0.19252 7.281%, 0.20115, 0.20989, 0.21874, 0.22769 8.041%, 0.23721 8.241%, 0.25702 8.651%, 0.2777 9.071%, 0.29569 9.431%, 0.31491 9.811%, 0.33537 10.211%, 0.35705 10.631%, 0.37681 11.011%, 0.3993 11.441%, 0.4818 13.011%, 0.51583 13.661%, 0.55063 14.331%, 0.58146 14.931%, 0.59926 15.282%, 0.61591 15.612%, 0.6319, 0.64775 16.252%, 0.66295 16.562%, 0.6775, 0.69189, 0.70612 17.462%, 0.72204 17.802%, 0.73726, 0.75226 18.462%, 0.76658, 0.78067 19.102%, 0.7941 19.412%, 0.80773 19.732%, 0.8207, 0.83343, 0.84592, 0.85818, 0.87018, 0.88193 21.592%, 0.89307, 0.90396, 0.91462, 0.92503 22.792%, 0.93486 23.082%, 0.94479 23.382%, 0.95416 23.672%, 0.9636 23.972%, 0.97249 24.262%, 0.98144 24.562%, 0.98986, 0.99805 25.143%, 1.00219, 1.00627 25.443%, 1.01003 25.583%, 1.01399, 1.01789, 1.02172 26.033%, 1.02525 26.173%, 1.02897, 1.03262, 1.03622, 1.03975, 1.04322, 1.04663, 1.04999, 1.05328, 1.05651, 1.05968, 1.06279, 1.06584, 1.06883, 1.07176, 1.07463, 1.07745, 1.0802, 1.0829, 1.08554, 1.08813, 1.09065, 1.09312 29.473%, 1.09569 29.633%, 1.09804, 1.10034, 1.10258 30.083%, 1.10491 30.243%, 1.10704 30.393%, 1.10925 30.553%, 1.11127 30.703%, 1.11336 30.863%, 1.11526 31.013%, 1.11724, 1.11915, 1.12101 31.493%, 1.12269 31.643%, 1.12443, 1.12612, 1.12775 32.123%, 1.12893, 1.13008, 1.1312 32.483%, 1.13238 32.613%, 1.13343, 1.13446, 1.13545 32.973%, 1.1365 33.103%, 1.13743 33.223%, 1.1384 33.353%, 1.13927 33.473%, 1.14018 33.603%, 1.14099 33.723%, 1.14183, 1.14264, 1.14342 34.113%, 1.14411 34.233%, 1.14482, 1.1455, 1.14615, 1.14677, 1.14736, 1.14791, 1.14844, 1.14893, 1.14939, 1.14983, 1.15023, 1.15061, 1.15095, 1.15127 36.054%, 1.15158 36.194%, 1.15184 36.324%, 1.15209 36.464%, 1.15229 36.594%, 1.15248 36.734%, 1.15263 36.864%, 1.15276, 1.15286, 1.15293 37.284%, 1.15296 37.414%, 1.15298, 1.15296, 1.15292, 1.15285, 1.15275, 1.15263 38.254%, 1.15246 38.404%, 1.15228 38.544%, 1.15206 38.694%, 1.15183 38.834%, 1.15155, 1.15125, 1.15092, 1.15056, 1.15017, 1.14976, 1.14932, 1.14886 40.034%, 1.14834 40.194%, 1.14783 40.344%, 1.14725 40.504%, 1.14669 40.654%, 1.14607 40.814%, 1.14513 41.044%, 1.14409, 1.143 41.524%, 1.14181, 1.14057, 1.13927 42.274%, 1.13787, 1.13642, 1.13492 43.054%, 1.13331, 1.13166 43.594%, 1.12989, 1.12808 44.154%, 1.12615 44.444%, 1.12412, 1.12203 45.045%, 1.1202, 1.11833 45.565%, 1.11636, 1.11437 46.105%, 1.11228 46.385%, 1.11008 46.675%, 1.10531 47.295%, 1.10085 47.865%, 1.09578 48.505%, 1.09057 49.155%, 1.07579 50.995%, 1.07124 51.565%, 1.06713 52.085%, 1.06251 52.675%, 1.05826 53.225%, 1.05423 53.755%, 1.05041 54.265%, 1.0482, 1.04601, 1.04385 55.166%, 1.04178, 1.03974 55.746%, 1.0378, 1.03588, 1.03399, 1.03213 56.866%, 1.03036 57.136%, 1.02855 57.416%, 1.02683, 1.02514, 1.02348, 1.02185, 1.02024 58.766%, 1.01844, 1.01667, 1.01494, 1.01325, 1.0116 60.316%, 1.01004 60.616%, 1.00847 60.926%, 1.00699 61.226%, 1.0055 61.536%, 1.00409, 1.00273, 1.0014, 1.00011 62.736%, 0.99882 63.046%, 0.9976 63.346%, 0.99639 63.656%, 0.99525 63.956%, 0.99412 64.266%, 0.99306 64.566%, 0.992, 0.99098, 0.99001, 0.98907, 0.98817, 0.98731, 0.98648, 0.98569 67.047%, 0.98492, 0.98418, 0.98349, 0.98283, 0.98221 68.647%, 0.98173 68.907%, 0.98126 69.177%, 0.98083 69.437%, 0.98041, 0.98001, 0.97963, 0.97929 70.517%, 0.97895 70.797%, 0.97865 71.067%, 0.97836, 0.97809, 0.97785, 0.97763 72.187%, 0.97743 72.477%, 0.97725 72.757%, 0.9771, 0.97696, 0.97685 73.627%, 0.97676, 0.97668, 0.97663, 0.97661 74.827%, 0.9766, 0.97661, 0.97664 75.758%, 0.9767 76.078%, 0.97687 76.718%, 0.97713 77.378%, 0.97748 78.058%, 0.97779 78.578%, 0.97815 79.108%, 0.97855 79.648%, 0.97901 80.208%, 0.97953 80.788%, 0.9801 81.388%, 0.98072 82.008%, 0.98141 82.668%, 0.98262 83.758%, 0.98406 84.988%, 0.98549 86.169%, 0.98928 89.259%, 0.99036 90.159%, 0.99134 90.989%, 0.99235 91.869%, 0.99328 92.699%, 0.99415 93.509%, 0.99496 94.289%, 0.9957 95.03%, 0.99639 95.76%, 0.99705 96.48%, 0.99767, 0.99825 97.9%, 0.9988, 0.99931, 0.9998),opacity var(--md-sys-motion-duration-long2) cubic-bezier(0.05, 0.7, 0.1, 1)}@starting-style{dialog.micl-bottomsheet:popover-open,dialog.micl-bottomsheet[open]{height:0;opacity:0}}@starting-style{dialog.micl-bottomsheet:popover-open::backdrop,dialog.micl-bottomsheet[open]::backdrop{background-color:rgba(0,0,0,0)}}dialog.micl-bottomsheet[open]::backdrop{background-color:rgba(0,0,0,.2)}@media(min-width: 641px){dialog.micl-bottomsheet{width:min(100vw - 2*var(--md-sys-bottomsheet-margin),640px);max-width:640px;min-width:min(100vw - 2*var(--md-sys-bottomsheet-margin),640px);inset-inline-start:calc((100vw - min(100vw - 2*var(--md-sys-bottomsheet-margin),640px))/2 - var(--md-sys-bottomsheet-margin));margin:var(--md-sys-bottomsheet-margin);margin-bottom:0}}
|
|
1
|
+
:root{--md-sys-elevation-level0: rgba(0, 0, 0, 0.2) 0px 0px 0px 0px, rgba(0, 0, 0, 0.14) 0px 0px 0px 0px, rgba(0, 0, 0, 0.12) 0px 0px 0px 0px;--md-sys-elevation-level1: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;--md-sys-elevation-level2: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;--md-sys-elevation-level3: rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;--md-sys-elevation-level4: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;--md-sys-elevation-level5: rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 12px 17px 2px, rgba(0, 0, 0, 0.12) 0px 5px 22px 4px}:root{--md-sys-motion-duration-short1: 50ms;--md-sys-motion-duration-short2: 100ms;--md-sys-motion-duration-short3: 150ms;--md-sys-motion-duration-short4: 200ms;--md-sys-motion-duration-medium1: 250ms;--md-sys-motion-duration-medium2: 300ms;--md-sys-motion-duration-medium3: 350ms;--md-sys-motion-duration-medium4: 400ms;--md-sys-motion-duration-long1: 450ms;--md-sys-motion-duration-long2: 500ms;--md-sys-motion-duration-long3: 550ms;--md-sys-motion-duration-long4: 600ms;--md-sys-motion-duration-extra-long1: 700ms;--md-sys-motion-duration-extra-long2: 800ms;--md-sys-motion-duration-extra-long3: 900ms;--md-sys-motion-duration-extra-long4: 1000ms}:root{--md-sys-target-size: 48px;--md-sys-shape-corner-none: 0px;--md-sys-shape-corner-extra-small: 4px;--md-sys-shape-corner-small: 8px;--md-sys-shape-corner-medium: 12px;--md-sys-shape-corner-large: 16px;--md-sys-shape-corner-large-increased: 20px;--md-sys-shape-corner-extra-large: 28px;--md-sys-shape-corner-extra-large-increased: 32px;--md-sys-shape-corner-extra-extra-large: 48px;--md-sys-shape-corner-full: 50%}:root{--md-sys-state-layer-size: 40px;--md-sys-state-hover-state-layer-opacity: 8%;--md-sys-state-focus-state-layer-opacity: 10%;--md-sys-state-pressed-state-layer-opacity: 10%;--md-sys-state-dragged-state-layer-opacity: 16%;--md-sys-state-focus-indicator-outer-offset: 2px;--md-sys-state-focus-indicator-thickness: 3px}dialog.micl-bottomsheet{--md-sys-bottomsheet-height: max-content;--md-sys-bottomsheet-margin: 56px;--md-sys-bottomsheet-padding: 24px;--md-sys-bottomsheet-handle-width: 32px;--md-sys-bottomsheet-handle-height: 4px;box-sizing:border-box;position:fixed;top:auto;bottom:0;height:0;max-height:50vh;width:100%;min-width:100%;margin:72px 0 0 0;padding:0;border:none;border-radius:var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0 0;background-color:var(--md-sys-color-surface-container-low);box-shadow:var(--md-sys-elevation-level1);opacity:0;overflow-y:hidden;interpolate-size:allow-keywords}dialog.micl-bottomsheet:not(.micl-bottomsheet--resizing){transition:display var(--md-sys-motion-duration-medium1) allow-discrete,overlay var(--md-sys-motion-duration-medium1) allow-discrete,height var(--md-sys-motion-duration-medium1) linear(0, 0.00003 0.08%, 0.00014 0.17%, 0.00029 0.25%, 0.00054 0.34%, 0.00083 0.42%, 0.00121 0.51%, 0.00162 0.59%, 0.00215 0.68%, 0.00267 0.76%, 0.00334 0.85%, 0.00398 0.93%, 0.00478 1.02%, 0.00554 1.1%, 0.00646, 0.00745, 0.00851 1.37%, 0.00951 1.45%, 0.01069, 0.01194, 0.01325, 0.01463, 0.01607, 0.01757, 0.01914, 0.02076, 0.02245, 0.02419 2.35%, 0.0262 2.45%, 0.02807, 0.03, 0.03198 2.72%, 0.03425 2.82%, 0.03636 2.91%, 0.03876 3.01%, 0.04098 3.1%, 0.0435 3.2%, 0.04583 3.29%, 0.04848 3.39%, 0.05369, 0.05913 3.77%, 0.06508, 0.07127, 0.07769, 0.08432 4.57%, 0.09152 4.78%, 0.09859 4.98%, 0.10622, 0.11406, 0.12211 5.611%, 0.13076, 0.13961 6.051%, 0.14658, 0.15367, 0.16087 6.561%, 0.16862, 0.17647, 0.18444, 0.19252 7.281%, 0.20115, 0.20989, 0.21874, 0.22769 8.041%, 0.23721 8.241%, 0.25702 8.651%, 0.2777 9.071%, 0.29569 9.431%, 0.31491 9.811%, 0.33537 10.211%, 0.35705 10.631%, 0.37681 11.011%, 0.3993 11.441%, 0.4818 13.011%, 0.51583 13.661%, 0.55063 14.331%, 0.58146 14.931%, 0.59926 15.282%, 0.61591 15.612%, 0.6319, 0.64775 16.252%, 0.66295 16.562%, 0.6775, 0.69189, 0.70612 17.462%, 0.72204 17.802%, 0.73726, 0.75226 18.462%, 0.76658, 0.78067 19.102%, 0.7941 19.412%, 0.80773 19.732%, 0.8207, 0.83343, 0.84592, 0.85818, 0.87018, 0.88193 21.592%, 0.89307, 0.90396, 0.91462, 0.92503 22.792%, 0.93486 23.082%, 0.94479 23.382%, 0.95416 23.672%, 0.9636 23.972%, 0.97249 24.262%, 0.98144 24.562%, 0.98986, 0.99805 25.143%, 1.00219, 1.00627 25.443%, 1.01003 25.583%, 1.01399, 1.01789, 1.02172 26.033%, 1.02525 26.173%, 1.02897, 1.03262, 1.03622, 1.03975, 1.04322, 1.04663, 1.04999, 1.05328, 1.05651, 1.05968, 1.06279, 1.06584, 1.06883, 1.07176, 1.07463, 1.07745, 1.0802, 1.0829, 1.08554, 1.08813, 1.09065, 1.09312 29.473%, 1.09569 29.633%, 1.09804, 1.10034, 1.10258 30.083%, 1.10491 30.243%, 1.10704 30.393%, 1.10925 30.553%, 1.11127 30.703%, 1.11336 30.863%, 1.11526 31.013%, 1.11724, 1.11915, 1.12101 31.493%, 1.12269 31.643%, 1.12443, 1.12612, 1.12775 32.123%, 1.12893, 1.13008, 1.1312 32.483%, 1.13238 32.613%, 1.13343, 1.13446, 1.13545 32.973%, 1.1365 33.103%, 1.13743 33.223%, 1.1384 33.353%, 1.13927 33.473%, 1.14018 33.603%, 1.14099 33.723%, 1.14183, 1.14264, 1.14342 34.113%, 1.14411 34.233%, 1.14482, 1.1455, 1.14615, 1.14677, 1.14736, 1.14791, 1.14844, 1.14893, 1.14939, 1.14983, 1.15023, 1.15061, 1.15095, 1.15127 36.054%, 1.15158 36.194%, 1.15184 36.324%, 1.15209 36.464%, 1.15229 36.594%, 1.15248 36.734%, 1.15263 36.864%, 1.15276, 1.15286, 1.15293 37.284%, 1.15296 37.414%, 1.15298, 1.15296, 1.15292, 1.15285, 1.15275, 1.15263 38.254%, 1.15246 38.404%, 1.15228 38.544%, 1.15206 38.694%, 1.15183 38.834%, 1.15155, 1.15125, 1.15092, 1.15056, 1.15017, 1.14976, 1.14932, 1.14886 40.034%, 1.14834 40.194%, 1.14783 40.344%, 1.14725 40.504%, 1.14669 40.654%, 1.14607 40.814%, 1.14513 41.044%, 1.14409, 1.143 41.524%, 1.14181, 1.14057, 1.13927 42.274%, 1.13787, 1.13642, 1.13492 43.054%, 1.13331, 1.13166 43.594%, 1.12989, 1.12808 44.154%, 1.12615 44.444%, 1.12412, 1.12203 45.045%, 1.1202, 1.11833 45.565%, 1.11636, 1.11437 46.105%, 1.11228 46.385%, 1.11008 46.675%, 1.10531 47.295%, 1.10085 47.865%, 1.09578 48.505%, 1.09057 49.155%, 1.07579 50.995%, 1.07124 51.565%, 1.06713 52.085%, 1.06251 52.675%, 1.05826 53.225%, 1.05423 53.755%, 1.05041 54.265%, 1.0482, 1.04601, 1.04385 55.166%, 1.04178, 1.03974 55.746%, 1.0378, 1.03588, 1.03399, 1.03213 56.866%, 1.03036 57.136%, 1.02855 57.416%, 1.02683, 1.02514, 1.02348, 1.02185, 1.02024 58.766%, 1.01844, 1.01667, 1.01494, 1.01325, 1.0116 60.316%, 1.01004 60.616%, 1.00847 60.926%, 1.00699 61.226%, 1.0055 61.536%, 1.00409, 1.00273, 1.0014, 1.00011 62.736%, 0.99882 63.046%, 0.9976 63.346%, 0.99639 63.656%, 0.99525 63.956%, 0.99412 64.266%, 0.99306 64.566%, 0.992, 0.99098, 0.99001, 0.98907, 0.98817, 0.98731, 0.98648, 0.98569 67.047%, 0.98492, 0.98418, 0.98349, 0.98283, 0.98221 68.647%, 0.98173 68.907%, 0.98126 69.177%, 0.98083 69.437%, 0.98041, 0.98001, 0.97963, 0.97929 70.517%, 0.97895 70.797%, 0.97865 71.067%, 0.97836, 0.97809, 0.97785, 0.97763 72.187%, 0.97743 72.477%, 0.97725 72.757%, 0.9771, 0.97696, 0.97685 73.627%, 0.97676, 0.97668, 0.97663, 0.97661 74.827%, 0.9766, 0.97661, 0.97664 75.758%, 0.9767 76.078%, 0.97687 76.718%, 0.97713 77.378%, 0.97748 78.058%, 0.97779 78.578%, 0.97815 79.108%, 0.97855 79.648%, 0.97901 80.208%, 0.97953 80.788%, 0.9801 81.388%, 0.98072 82.008%, 0.98141 82.668%, 0.98262 83.758%, 0.98406 84.988%, 0.98549 86.169%, 0.98928 89.259%, 0.99036 90.159%, 0.99134 90.989%, 0.99235 91.869%, 0.99328 92.699%, 0.99415 93.509%, 0.99496 94.289%, 0.9957 95.03%, 0.99639 95.76%, 0.99705 96.48%, 0.99767, 0.99825 97.9%, 0.9988, 0.99931, 0.9998),opacity var(--md-sys-motion-duration-medium1) cubic-bezier(0.3, 0, 0.8, 0.15)}dialog.micl-bottomsheet.micl-bottomsheet--resizing .micl-bottomsheet__headline{cursor:grabbing}dialog.micl-bottomsheet .micl-bottomsheet__headline{box-sizing:border-box;display:flex;align-items:center;width:100%;height:var(--md-sys-target-size);justify-content:center;cursor:grab}dialog.micl-bottomsheet .micl-bottomsheet__headline .micl-bottomsheet__draghandle{box-sizing:content-box;width:var(--md-sys-bottomsheet-handle-width);height:var(--md-sys-bottomsheet-handle-height);padding:16px calc((var(--md-sys-target-size) - var(--md-sys-bottomsheet-handle-width))/2);border:none;border-radius:var(--md-sys-shape-corner-small);background-color:var(--md-sys-color-on-surface-variant);background-clip:content-box;cursor:pointer}dialog.micl-bottomsheet .micl-bottomsheet__headline .micl-bottomsheet__draghandle:focus-visible{outline:var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);outline-offset:var(--md-sys-state-focus-indicator-outer-offset)}dialog.micl-bottomsheet .micl-bottomsheet__content{padding:0 var(--md-sys-bottomsheet-padding) var(--md-sys-bottomsheet-padding) var(--md-sys-bottomsheet-padding)}dialog.micl-bottomsheet::backdrop{background-color:rgba(0,0,0,0);transition:display var(--md-sys-motion-duration-long2) linear allow-discrete,overlay var(--md-sys-motion-duration-long2) linear allow-discrete,background-color var(--md-sys-motion-duration-long2) linear}dialog.micl-bottomsheet:popover-open,dialog.micl-bottomsheet[open]{height:var(--md-sys-bottomsheet-height);opacity:1}dialog.micl-bottomsheet:popover-open:not(.micl-bottomsheet--resizing),dialog.micl-bottomsheet[open]:not(.micl-bottomsheet--resizing){transition:display var(--md-sys-motion-duration-long2) linear allow-discrete,overlay var(--md-sys-motion-duration-long2) linear allow-discrete,height var(--md-sys-motion-duration-long2) linear(0, 0.00003 0.08%, 0.00014 0.17%, 0.00029 0.25%, 0.00054 0.34%, 0.00083 0.42%, 0.00121 0.51%, 0.00162 0.59%, 0.00215 0.68%, 0.00267 0.76%, 0.00334 0.85%, 0.00398 0.93%, 0.00478 1.02%, 0.00554 1.1%, 0.00646, 0.00745, 0.00851 1.37%, 0.00951 1.45%, 0.01069, 0.01194, 0.01325, 0.01463, 0.01607, 0.01757, 0.01914, 0.02076, 0.02245, 0.02419 2.35%, 0.0262 2.45%, 0.02807, 0.03, 0.03198 2.72%, 0.03425 2.82%, 0.03636 2.91%, 0.03876 3.01%, 0.04098 3.1%, 0.0435 3.2%, 0.04583 3.29%, 0.04848 3.39%, 0.05369, 0.05913 3.77%, 0.06508, 0.07127, 0.07769, 0.08432 4.57%, 0.09152 4.78%, 0.09859 4.98%, 0.10622, 0.11406, 0.12211 5.611%, 0.13076, 0.13961 6.051%, 0.14658, 0.15367, 0.16087 6.561%, 0.16862, 0.17647, 0.18444, 0.19252 7.281%, 0.20115, 0.20989, 0.21874, 0.22769 8.041%, 0.23721 8.241%, 0.25702 8.651%, 0.2777 9.071%, 0.29569 9.431%, 0.31491 9.811%, 0.33537 10.211%, 0.35705 10.631%, 0.37681 11.011%, 0.3993 11.441%, 0.4818 13.011%, 0.51583 13.661%, 0.55063 14.331%, 0.58146 14.931%, 0.59926 15.282%, 0.61591 15.612%, 0.6319, 0.64775 16.252%, 0.66295 16.562%, 0.6775, 0.69189, 0.70612 17.462%, 0.72204 17.802%, 0.73726, 0.75226 18.462%, 0.76658, 0.78067 19.102%, 0.7941 19.412%, 0.80773 19.732%, 0.8207, 0.83343, 0.84592, 0.85818, 0.87018, 0.88193 21.592%, 0.89307, 0.90396, 0.91462, 0.92503 22.792%, 0.93486 23.082%, 0.94479 23.382%, 0.95416 23.672%, 0.9636 23.972%, 0.97249 24.262%, 0.98144 24.562%, 0.98986, 0.99805 25.143%, 1.00219, 1.00627 25.443%, 1.01003 25.583%, 1.01399, 1.01789, 1.02172 26.033%, 1.02525 26.173%, 1.02897, 1.03262, 1.03622, 1.03975, 1.04322, 1.04663, 1.04999, 1.05328, 1.05651, 1.05968, 1.06279, 1.06584, 1.06883, 1.07176, 1.07463, 1.07745, 1.0802, 1.0829, 1.08554, 1.08813, 1.09065, 1.09312 29.473%, 1.09569 29.633%, 1.09804, 1.10034, 1.10258 30.083%, 1.10491 30.243%, 1.10704 30.393%, 1.10925 30.553%, 1.11127 30.703%, 1.11336 30.863%, 1.11526 31.013%, 1.11724, 1.11915, 1.12101 31.493%, 1.12269 31.643%, 1.12443, 1.12612, 1.12775 32.123%, 1.12893, 1.13008, 1.1312 32.483%, 1.13238 32.613%, 1.13343, 1.13446, 1.13545 32.973%, 1.1365 33.103%, 1.13743 33.223%, 1.1384 33.353%, 1.13927 33.473%, 1.14018 33.603%, 1.14099 33.723%, 1.14183, 1.14264, 1.14342 34.113%, 1.14411 34.233%, 1.14482, 1.1455, 1.14615, 1.14677, 1.14736, 1.14791, 1.14844, 1.14893, 1.14939, 1.14983, 1.15023, 1.15061, 1.15095, 1.15127 36.054%, 1.15158 36.194%, 1.15184 36.324%, 1.15209 36.464%, 1.15229 36.594%, 1.15248 36.734%, 1.15263 36.864%, 1.15276, 1.15286, 1.15293 37.284%, 1.15296 37.414%, 1.15298, 1.15296, 1.15292, 1.15285, 1.15275, 1.15263 38.254%, 1.15246 38.404%, 1.15228 38.544%, 1.15206 38.694%, 1.15183 38.834%, 1.15155, 1.15125, 1.15092, 1.15056, 1.15017, 1.14976, 1.14932, 1.14886 40.034%, 1.14834 40.194%, 1.14783 40.344%, 1.14725 40.504%, 1.14669 40.654%, 1.14607 40.814%, 1.14513 41.044%, 1.14409, 1.143 41.524%, 1.14181, 1.14057, 1.13927 42.274%, 1.13787, 1.13642, 1.13492 43.054%, 1.13331, 1.13166 43.594%, 1.12989, 1.12808 44.154%, 1.12615 44.444%, 1.12412, 1.12203 45.045%, 1.1202, 1.11833 45.565%, 1.11636, 1.11437 46.105%, 1.11228 46.385%, 1.11008 46.675%, 1.10531 47.295%, 1.10085 47.865%, 1.09578 48.505%, 1.09057 49.155%, 1.07579 50.995%, 1.07124 51.565%, 1.06713 52.085%, 1.06251 52.675%, 1.05826 53.225%, 1.05423 53.755%, 1.05041 54.265%, 1.0482, 1.04601, 1.04385 55.166%, 1.04178, 1.03974 55.746%, 1.0378, 1.03588, 1.03399, 1.03213 56.866%, 1.03036 57.136%, 1.02855 57.416%, 1.02683, 1.02514, 1.02348, 1.02185, 1.02024 58.766%, 1.01844, 1.01667, 1.01494, 1.01325, 1.0116 60.316%, 1.01004 60.616%, 1.00847 60.926%, 1.00699 61.226%, 1.0055 61.536%, 1.00409, 1.00273, 1.0014, 1.00011 62.736%, 0.99882 63.046%, 0.9976 63.346%, 0.99639 63.656%, 0.99525 63.956%, 0.99412 64.266%, 0.99306 64.566%, 0.992, 0.99098, 0.99001, 0.98907, 0.98817, 0.98731, 0.98648, 0.98569 67.047%, 0.98492, 0.98418, 0.98349, 0.98283, 0.98221 68.647%, 0.98173 68.907%, 0.98126 69.177%, 0.98083 69.437%, 0.98041, 0.98001, 0.97963, 0.97929 70.517%, 0.97895 70.797%, 0.97865 71.067%, 0.97836, 0.97809, 0.97785, 0.97763 72.187%, 0.97743 72.477%, 0.97725 72.757%, 0.9771, 0.97696, 0.97685 73.627%, 0.97676, 0.97668, 0.97663, 0.97661 74.827%, 0.9766, 0.97661, 0.97664 75.758%, 0.9767 76.078%, 0.97687 76.718%, 0.97713 77.378%, 0.97748 78.058%, 0.97779 78.578%, 0.97815 79.108%, 0.97855 79.648%, 0.97901 80.208%, 0.97953 80.788%, 0.9801 81.388%, 0.98072 82.008%, 0.98141 82.668%, 0.98262 83.758%, 0.98406 84.988%, 0.98549 86.169%, 0.98928 89.259%, 0.99036 90.159%, 0.99134 90.989%, 0.99235 91.869%, 0.99328 92.699%, 0.99415 93.509%, 0.99496 94.289%, 0.9957 95.03%, 0.99639 95.76%, 0.99705 96.48%, 0.99767, 0.99825 97.9%, 0.9988, 0.99931, 0.9998),opacity var(--md-sys-motion-duration-long2) cubic-bezier(0.05, 0.7, 0.1, 1)}@starting-style{dialog.micl-bottomsheet:popover-open,dialog.micl-bottomsheet[open]{height:0;opacity:0}}@starting-style{dialog.micl-bottomsheet:popover-open::backdrop,dialog.micl-bottomsheet[open]::backdrop{background-color:rgba(0,0,0,0)}}dialog.micl-bottomsheet[open]::backdrop{background-color:rgba(0,0,0,.2)}@media(min-width: 641px){dialog.micl-bottomsheet{width:min(100vw - 2*var(--md-sys-bottomsheet-margin),640px);max-width:640px;min-width:min(100vw - 2*var(--md-sys-bottomsheet-margin),640px);inset-inline-start:calc((100vw - min(100vw - 2*var(--md-sys-bottomsheet-margin),640px))/2 - var(--md-sys-bottomsheet-margin));margin:var(--md-sys-bottomsheet-margin);margin-bottom:0}}
|
package/dist/bottomsheet.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.micl=o():e.micl=o()}(self,()=>(()=>{"use strict";var e={};return(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),e})());
|