mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
We are changing the names of these files to reduce similarity with CSS modules and avoid clashing with tooling built around that. If you're importing `*/internal/styles.css.js`, swap to `*/internal/styles.js`. PiperOrigin-RevId: 611265000
36 lines
972 B
TypeScript
36 lines
972 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import '../field/outlined-field.js';
|
|
|
|
import {CSSResultOrNative} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
import {literal} from 'lit/static-html.js';
|
|
|
|
import {styles as outlinedStyles} from './internal/outlined-styles.js';
|
|
import {OutlinedTextField} from './internal/outlined-text-field.js';
|
|
import {styles as sharedStyles} from './internal/shared-styles.js';
|
|
|
|
export {type TextFieldType} from './internal/text-field.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-outlined-text-field': MdOutlinedTextField;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* TODO(b/228525797): Add docs
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-outlined-text-field')
|
|
export class MdOutlinedTextField extends OutlinedTextField {
|
|
static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];
|
|
|
|
protected override readonly fieldTag = literal`md-outlined-field`;
|
|
}
|