@vaadin/button
Advanced tools
| { | ||
| "schemaVersion": "1.0.0", | ||
| "readme": "", | ||
| "modules": [ | ||
| { | ||
| "kind": "javascript-module", | ||
| "path": "vaadin-button.js", | ||
| "declarations": [], | ||
| "exports": [ | ||
| { | ||
| "kind": "js", | ||
| "name": "*", | ||
| "declaration": { | ||
| "name": "*", | ||
| "module": "src/vaadin-button.js" | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "kind": "javascript-module", | ||
| "path": "src/vaadin-button-mixin.js", | ||
| "declarations": [ | ||
| { | ||
| "kind": "mixin", | ||
| "description": "A mixin providing common button functionality.", | ||
| "name": "ButtonMixin", | ||
| "members": [], | ||
| "mixins": [ | ||
| { | ||
| "name": "ActiveMixin", | ||
| "package": "@vaadin/a11y-base/src/active-mixin.js" | ||
| }, | ||
| { | ||
| "name": "TabindexMixin", | ||
| "package": "@vaadin/a11y-base/src/tabindex-mixin.js" | ||
| }, | ||
| { | ||
| "name": "FocusMixin", | ||
| "package": "@vaadin/a11y-base/src/focus-mixin.js" | ||
| } | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "name": "superClass" | ||
| } | ||
| ], | ||
| "attributes": [ | ||
| { | ||
| "name": "tabindex", | ||
| "type": { | ||
| "text": "number" | ||
| }, | ||
| "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.", | ||
| "fieldName": "tabindex", | ||
| "inheritedFrom": { | ||
| "name": "TabindexMixin", | ||
| "package": "@vaadin/a11y-base/src/tabindex-mixin.js" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "exports": [ | ||
| { | ||
| "kind": "js", | ||
| "name": "ButtonMixin", | ||
| "declaration": { | ||
| "name": "ButtonMixin", | ||
| "module": "src/vaadin-button-mixin.js" | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "kind": "javascript-module", | ||
| "path": "src/vaadin-button.js", | ||
| "declarations": [ | ||
| { | ||
| "kind": "class", | ||
| "description": "`<vaadin-button>` is an accessible and customizable button that allows users to perform actions.\n\n```html\n<vaadin-button>Press me</vaadin-button>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------|-------------\n`label` | The label (text) inside the button.\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|-------------\n`active` | Set when the button is pressed down, either with mouse, touch or the keyboard\n`disabled` | Set when the button is disabled\n`focus-ring` | Set when the button is focused using the keyboard\n`focused` | Set when the button is focused\n`has-tooltip` | Set when the button has a slotted tooltip\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------|\n| `--vaadin-button-background` |\n| `--vaadin-button-border-color` |\n| `--vaadin-button-border-radius` |\n| `--vaadin-button-border-width` |\n| `--vaadin-button-font-size` |\n| `--vaadin-button-font-weight` |\n| `--vaadin-button-gap` |\n| `--vaadin-button-height` |\n| `--vaadin-button-line-height` |\n| `--vaadin-button-margin` |\n| `--vaadin-button-padding` |\n| `--vaadin-button-text-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.", | ||
| "name": "Button", | ||
| "members": [ | ||
| { | ||
| "kind": "field", | ||
| "name": "disabled", | ||
| "privacy": "public", | ||
| "type": { | ||
| "text": "boolean" | ||
| }, | ||
| "description": "When disabled, the button is rendered as \"dimmed\" and prevents all\nuser interactions (mouse and keyboard).\n\nSince disabled buttons are not focusable and cannot react to hover\nevents by default, it can cause accessibility issues by making them\nentirely invisible to assistive technologies, and prevents the use\nof Tooltips to explain why the action is not available. This can be\naddressed by enabling the feature flag `accessibleDisabledButtons`,\nwhich makes disabled buttons focusable and hoverable, while still\npreventing them from being triggered:\n\n```js\n// Set before any button is attached to the DOM.\nwindow.Vaadin.featureFlags.accessibleDisabledButtons = true\n```", | ||
| "attribute": "disabled" | ||
| } | ||
| ], | ||
| "attributes": [ | ||
| { | ||
| "name": "disabled", | ||
| "type": { | ||
| "text": "boolean" | ||
| }, | ||
| "description": "When disabled, the button is rendered as \"dimmed\" and prevents all\nuser interactions (mouse and keyboard).\n\nSince disabled buttons are not focusable and cannot react to hover\nevents by default, it can cause accessibility issues by making them\nentirely invisible to assistive technologies, and prevents the use\nof Tooltips to explain why the action is not available. This can be\naddressed by enabling the feature flag `accessibleDisabledButtons`,\nwhich makes disabled buttons focusable and hoverable, while still\npreventing them from being triggered:\n\n```js\n// Set before any button is attached to the DOM.\nwindow.Vaadin.featureFlags.accessibleDisabledButtons = true\n```", | ||
| "fieldName": "disabled" | ||
| }, | ||
| { | ||
| "name": "tabindex", | ||
| "type": { | ||
| "text": "number" | ||
| }, | ||
| "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.", | ||
| "fieldName": "tabindex", | ||
| "inheritedFrom": { | ||
| "name": "TabindexMixin", | ||
| "package": "@vaadin/a11y-base/src/tabindex-mixin.js" | ||
| } | ||
| } | ||
| ], | ||
| "mixins": [ | ||
| { | ||
| "name": "ButtonMixin", | ||
| "module": "src/vaadin-button-mixin.js" | ||
| }, | ||
| { | ||
| "name": "ElementMixin", | ||
| "package": "@vaadin/component-base/src/element-mixin.js" | ||
| }, | ||
| { | ||
| "name": "ThemableMixin", | ||
| "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js" | ||
| }, | ||
| { | ||
| "name": "PolylitMixin", | ||
| "package": "@vaadin/component-base/src/polylit-mixin.js" | ||
| }, | ||
| { | ||
| "name": "LumoInjectionMixin", | ||
| "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js" | ||
| } | ||
| ], | ||
| "superclass": { | ||
| "name": "LitElement", | ||
| "package": "lit" | ||
| }, | ||
| "tagName": "vaadin-button", | ||
| "customElement": true, | ||
| "events": [] | ||
| } | ||
| ], | ||
| "exports": [ | ||
| { | ||
| "kind": "js", | ||
| "name": "Button", | ||
| "declaration": { | ||
| "name": "Button", | ||
| "module": "src/vaadin-button.js" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
+13
-11
| { | ||
| "name": "@vaadin/button", | ||
| "version": "25.1.0-alpha6", | ||
| "version": "25.1.0-alpha7", | ||
| "publishConfig": { | ||
@@ -26,2 +26,3 @@ "access": "public" | ||
| "vaadin-*.js", | ||
| "custom-elements.json", | ||
| "web-types.json", | ||
@@ -38,17 +39,18 @@ "web-types.lit.json" | ||
| "@open-wc/dedupe-mixin": "^1.3.0", | ||
| "@vaadin/a11y-base": "25.1.0-alpha6", | ||
| "@vaadin/component-base": "25.1.0-alpha6", | ||
| "@vaadin/vaadin-themable-mixin": "25.1.0-alpha6", | ||
| "@vaadin/a11y-base": "25.1.0-alpha7", | ||
| "@vaadin/component-base": "25.1.0-alpha7", | ||
| "@vaadin/vaadin-themable-mixin": "25.1.0-alpha7", | ||
| "lit": "^3.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@vaadin/aura": "25.1.0-alpha6", | ||
| "@vaadin/chai-plugins": "25.1.0-alpha6", | ||
| "@vaadin/icon": "25.1.0-alpha6", | ||
| "@vaadin/icons": "25.1.0-alpha6", | ||
| "@vaadin/test-runner-commands": "25.1.0-alpha6", | ||
| "@vaadin/aura": "25.1.0-alpha7", | ||
| "@vaadin/chai-plugins": "25.1.0-alpha7", | ||
| "@vaadin/icon": "25.1.0-alpha7", | ||
| "@vaadin/icons": "25.1.0-alpha7", | ||
| "@vaadin/test-runner-commands": "25.1.0-alpha7", | ||
| "@vaadin/testing-helpers": "^2.0.0", | ||
| "@vaadin/vaadin-lumo-styles": "25.1.0-alpha6", | ||
| "@vaadin/vaadin-lumo-styles": "25.1.0-alpha7", | ||
| "sinon": "^21.0.0" | ||
| }, | ||
| "customElements": "custom-elements.json", | ||
| "web-types": [ | ||
@@ -58,3 +60,3 @@ "web-types.json", | ||
| ], | ||
| "gitHead": "da6f4194492cbd77d18c6c1cd8d4d9f072e9ce8d" | ||
| "gitHead": "98c586125f769c8fefd307536965293668fda81d" | ||
| } |
@@ -62,3 +62,3 @@ /** | ||
| * | ||
| * @customElement | ||
| * @customElement vaadin-button | ||
| * @extends HTMLElement | ||
@@ -65,0 +65,0 @@ * @mixes ButtonMixin |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/web-types", | ||
| "name": "@vaadin/button", | ||
| "version": "25.1.0-alpha6", | ||
| "version": "25.1.0-alpha7", | ||
| "description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "contributions": { |
| { | ||
| "$schema": "https://json.schemastore.org/web-types", | ||
| "name": "@vaadin/button", | ||
| "version": "25.1.0-alpha6", | ||
| "version": "25.1.0-alpha7", | ||
| "description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "framework": "lit", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
43851
20.34%14
7.69%702
31.71%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed