Socket
Socket
Sign inDemoInstall

@lion/switch

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/switch - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

9

CHANGELOG.md
# Change Log
## 0.12.1
### Patch Changes
- 0aa4480e: Refactor of some fields to ensure that \_inputNode has the right type. It starts as HTMLElement for LionField, and all HTMLInputElement, HTMLSelectElement and HTMLTextAreaElement logic, are moved to the right places.
- Updated dependencies [d5faa459]
- Updated dependencies [0aa4480e]
- @lion/form-core@0.6.3
## 0.12.0

@@ -4,0 +13,0 @@

4

package.json
{
"name": "@lion/switch",
"version": "0.12.0",
"version": "0.12.1",
"description": "A Switch is used for switching a property or feature on and off",

@@ -37,3 +37,3 @@ "license": "MIT",

"@lion/core": "0.13.0",
"@lion/form-core": "0.6.2"
"@lion/form-core": "0.6.3"
},

@@ -40,0 +40,0 @@ "keywords": [

@@ -32,6 +32,6 @@ import { css, html, ScopedElementsMixin } from '@lion/core';

* Therefore we do a full override and typecast to an intersection type that includes LionSwitchButton
* @returns {HTMLInputElement & LionSwitchButton}
* @returns {LionSwitchButton}
*/
get _inputNode() {
return /** @type {HTMLInputElement & LionSwitchButton} */ (Array.from(this.children).find(
return /** @type {LionSwitchButton} */ (Array.from(this.children).find(
el => el.slot === 'input',

@@ -38,0 +38,0 @@ ));

@@ -14,2 +14,3 @@ declare const LionSwitchButton_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/DisabledWithTabIndexMixinTypes").DisabledWithTabIndexHost> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/DisabledMixinTypes").DisabledHost>;

static get styles(): import("lit-element").CSSResult[];
value: string;
role: string;

@@ -16,0 +17,0 @@ checked: boolean;

@@ -75,2 +75,5 @@ import { html, css, LitElement, DisabledWithTabIndexMixin } from '@lion/core';

super();
// inputNode = this, which always requires a value prop
this.value = '';
this.role = 'switch';

@@ -77,0 +80,0 @@ this.checked = false;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc