UNPKG

2.3 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright 2016 Google Inc.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 * copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 * THE SOFTWARE.
22 */
23declare const strings: {
24 ARIA_CONTROLS: string;
25 ARIA_DESCRIBEDBY: string;
26 INPUT_SELECTOR: string;
27 LABEL_SELECTOR: string;
28 LEADING_ICON_SELECTOR: string;
29 LINE_RIPPLE_SELECTOR: string;
30 OUTLINE_SELECTOR: string;
31 PREFIX_SELECTOR: string;
32 SUFFIX_SELECTOR: string;
33 TRAILING_ICON_SELECTOR: string;
34};
35declare const cssClasses: {
36 DISABLED: string;
37 FOCUSED: string;
38 HELPER_LINE: string;
39 INVALID: string;
40 LABEL_FLOATING: string;
41 NO_LABEL: string;
42 OUTLINED: string;
43 ROOT: string;
44 TEXTAREA: string;
45 WITH_LEADING_ICON: string;
46 WITH_TRAILING_ICON: string;
47 WITH_INTERNAL_COUNTER: string;
48};
49declare const numbers: {
50 LABEL_SCALE: number;
51};
52/**
53 * Whitelist based off of
54 * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation
55 * under the "Validation-related attributes" section.
56 */
57declare const VALIDATION_ATTR_WHITELIST: string[];
58/**
59 * Label should always float for these types as they show some UI even if value
60 * is empty.
61 */
62declare const ALWAYS_FLOAT_TYPES: string[];
63export { cssClasses, strings, numbers, VALIDATION_ATTR_WHITELIST, ALWAYS_FLOAT_TYPES };