@jupyter/web-components
Version:
A component library for building extensions in Jupyter frontends.
29 lines (28 loc) • 991 B
JavaScript
// Copyright (c) Jupyter Development Team.
// Copyright (c) Microsoft Corporation.
// Distributed under the terms of the Modified BSD License.
import { DateField } from './date-field.js';
import { dateFieldStyles as styles } from './date-field.styles.js';
import { dateFieldTemplate as template } from './date-field.template.js';
export * from './date-field.js';
export * from './date-field.template.js';
/**
* A function that returns a {@link @jupyter/web-components#DateField} registration for configuring the component with a DesignSystem.
* Implements {@link @jupyter/web-components#dateFieldTemplate}
*
*
* @public
* @remarks
* Generates HTML Element: `<jp-date-field>`
*
* {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}
*/
export const jpDateField = DateField.compose({
baseName: 'date-field',
styles,
template,
shadowOptions: {
delegatesFocus: true
}
});
export { styles as dateFieldStyles };