elements

Web component library for developing Visual Studio Code extensions

MIT License

Stars
131
Committers
6

Bot releases are hidden (Show)

elements - v0.13.1

Published by bendera over 1 year ago

elements - v0.13.0

Published by bendera over 1 year ago

Added

Sometimes VSCode theme variables are renamed or removed by the VSCode authors. When this happens the appearance
of the components will change unpredictably. To prevent this, every component got a fallback style.
The components will look "good" even if no theme variables are available.

Changed

  • Button and ContextMenu styles were updated to follow VSCode changes.
  • Customizable header background color and tinted row background color instead of the hard-coded ones in Table.

Full Changelog: https://github.com/bendera/vscode-webview-elements/compare/v0.12.0...v0.13.0

elements - v0.12.0

Published by bendera over 1 year ago

Changed

  • Textarea: The default display is inline-block, the default size is 320 x 40. It is automatically resized when rows or cols attributes are set.
  • Textarea: Follow the source control input box styles of VSCode more closely:
    • Change the cursor to hand when it is above the scrollbar.
    • Add an unobtrusive drop shadow when the text is scrolled.
    • Add active state to the scrollbar.
  • Textarea: Fixed the ugly resize handler when the scrollbar is visible.
  • Textfield: Customize the file input button styles.

Full Changelog: https://github.com/bendera/vscode-webview-elements/compare/v0.11.0...v0.12.0

elements - v0.11.0

Published by bendera over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bendera/vscode-webview-elements/compare/v0.10.3...v0.11.0

elements - v0.10.3

Published by bendera over 1 year ago

Fixed

  • Textfield and Textarea values were not collected in the FormContainer form data.
  • The value of the value property was not appropriately synchronized with the value of the inner form widget in Textfield and Textarea.
  • Fix top-margin of Textfield and Textarea in FormGroup when its variant is "settings-group".
elements - v0.10.2

Published by bendera over 1 year ago

Changed

  • Allow file type in Textfield
elements - v0.10.1

Published by bendera over 1 year ago

Fixed

  • Fixed whitespace in Label when the asterisk symbol is visible
elements - v0.10.0

Published by bendera over 1 year ago

Added

  • Label Added required attribute

Changed

  • SingleSelect, MultiSelect Minor CSS changes to better mimic VSCode styles
elements - v0.9.0

Published by bendera over 1 year ago

Changed

  • Adapted latest VSCode design changes on the ContextMenu and the InputBox.
elements - v0.8.1

Published by bendera almost 2 years ago

Fixed

  • Text inputs could not be edited in tab panels.
elements - v0.8.0

Published by bendera almost 2 years ago

The project is still alive!!

Although not all the components are finished yet, much effort has been made to accessibility. The following components are fully accessible and can be controlled by a keyboard: Button, Tabs, Textinput, Textarea, Radio, Checkbox, Icon (in the action-icon mode).

Breaking changes

  • Attribute names have been standardized. From now every attribute name uses the kebab-case format.
  • selectedIndex attribute was renamed to selected-index in the Tabs component.
  • iconAfter attribute was renamed to icon-after in the Button component.
  • selectedIndexes attribute is removed from the MultiSelect component. It still accessible as a property.
  • scrollPos attribute was renamed to scroll-pos in the Scrollable component.
  • scrollMax attribute was renamed to scroll-max in the Scrollable component.
  • selectedIndex attribute was renamed to selected-index in the SingleSelect component.
  • resetOnDblClick attribute was renamed to reset-on-dbl-click in the SplitLayout component.
  • columnLabel attribute was renamed to column-label in the TableCell component.
  • The Tabs component markup has been changed. See the documentation page for examples.

Deprecated

  • Inputbox has been deprecated. Use the Textarea or Textfield instead.

Added

  • Added Textfield and Textarea components.

Changed

  • Lit upgraded to 2.4.x.
  • Added keyboard navigation to ContextMenu.
  • Adapted the latest VSCode button styles (rounded corner).
  • Added aria-checked attribute to the radio buttons.
  • Icon component accessibility improvements.
  • Tabs component is fully accessible.
  • Radio and Checkbox are accessible.
  • TabHeader and TabPanel were added to interoperate with Tabs.
  • addons slot has been added to the Tabs toolbar.
  • content-before and content-after slots have been added to the tab headers.
  • Label automatically sets the label for radios, checkboxes, and text inputs.

Fixed

  • Fixed the active state bug in the ContextMenu
  • Fixed the Select height
elements - v0.7.1

Published by bendera almost 2 years ago

Fix #32

elements - v0.7.0

Published by bendera over 2 years ago

elements - v0.6.3

Published by bendera about 3 years ago

Fixed

  • The label didn't connect to the input widget in the shadow DOM.

Added

  • Added @attr jsdoc tag to the "name" attribute to prevent the "unknown attribute" warnings in the supported IDEs.
elements - v0.6.2

Published by bendera about 3 years ago

Fixed

  • Tree: focused list item outline offset
elements - v0.6.1

Published by bendera about 3 years ago

Fix: Updated icon colors as in VSCode

elements - v0.6.0

Published by bendera about 3 years ago

  • Icon:
    • added proper theme variables
    • added action icon pressed style
    • added focus border style
  • Collapsible:
    • keyboard support
    • icon visibility mimics the VSCode behavior: it is visible when the panel is open
  • Table: added responsive mode
  • SplitLayout: added hover color
elements - v0.5.2

Published by bendera about 3 years ago

Fixed

Inputbox: Type definition fine-tuning

elements - v0.5.1

Published by bendera about 3 years ago

  • Flexible table columns
  • Small documentation changes in the Inputbox which provides better code completion
elements - v0.5.0

Published by bendera over 3 years ago

Added

  • Added Table component
  • Added action-icon mode to the Icon

Changed

  • Floating scrollbar in the Scrollable component