UNPKG

@jupyter-notebook/web-components

Version:

A component library for building extensions in Jupyter frontends.

47 lines (46 loc) 1.4 kB
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { __decorate } from "tslib"; import { attr } from '@microsoft/fast-element'; import { Combobox as FoundationCombobox, comboboxTemplate as template } from '@microsoft/fast-foundation'; import { comboboxStyles as styles } from './combobox.styles'; /** * Base class for Select * @public */ export class Combobox extends FoundationCombobox { } __decorate([ attr({ attribute: 'minimal', mode: 'boolean' }) ], Combobox.prototype, "minimal", void 0); /** * A function that returns a {@link @microsoft/fast-foundation#Combobox} registration for configuring the component with a DesignSystem. * Implements {@link @microsoft/fast-foundation#comboboxTemplate} * * @public * @remarks * Generates HTML Element: `<jp-combobox>` * */ export const jpCombobox = Combobox.compose({ baseName: 'combobox', baseClass: FoundationCombobox, template, styles, shadowOptions: { delegatesFocus: true }, indicator: /* html */ ` <svg class="select-indicator" part="select-indicator" viewBox="0 0 12 7" xmlns="http://www.w3.org/2000/svg" > <path d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z" /> </svg> ` }); export { styles as comboboxStyles };