Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spectrum-web-components/button-group

Package Overview
Dependencies
Maintainers
5
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/button-group - npm Package Compare versions

Comparing version 0.1.1-alpha.6 to 0.1.1-alpha.38

sp-button-group.d.ts

2

custom-elements.json

@@ -1,1 +0,1 @@

{"version":"experimental","tags":[{"name":"sp-button-group","path":"./src/button-group.ts","attributes":[{"name":"vertical","type":"boolean","default":"false"}],"properties":[{"name":"vertical","attribute":"vertical","type":"boolean","default":"false"}]},{"name":"sp-button-group","path":"./src/index.ts","attributes":[{"name":"vertical","type":"boolean","default":"false"}],"properties":[{"name":"vertical","attribute":"vertical","type":"boolean","default":"false"}],"cssProperties":[{"name":"--spectrum-buttongroup-button-gap-x","default":"var(--spectrum-global-dimension-static-size-200)","type":""},{"name":"--spectrum-actionbuttongroup-text-button-gap-x","default":"var(--spectrum-global-dimension-size-100)","type":""},{"name":"--spectrum-toolgroup-text-button-gap-x","default":"var(--spectrum-global-dimension-size-100)","type":""},{"name":"--spectrum-buttongroup-button-gap-y","default":"var(--spectrum-global-dimension-static-size-200)","type":""},{"name":"--spectrum-actionbuttongroup-text-button-gap-y","default":"var(--spectrum-global-dimension-size-100)","type":""},{"name":"--spectrum-toolgroup-text-button-gap-y","default":"var(--spectrum-global-dimension-size-100)","type":""}]}]}
{"version":"experimental","tags":[{"name":"sp-button-group","path":"./src/ButtonGroup.d.ts","properties":[{"name":"vertical","type":"boolean"}]},{"name":"sp-button-group","path":"./src/ButtonGroup.ts","attributes":[{"name":"vertical","type":"boolean","default":"false"}],"properties":[{"name":"vertical","attribute":"vertical","type":"boolean","default":"false"}]}]}

@@ -21,12 +21,25 @@ {

],
"version": "0.1.1-alpha.6+07ae41d1",
"version": "0.1.1-alpha.38+3926abb2",
"description": "",
"main": "lib/index.js",
"module": "lib/index.js",
"main": "src/index.js",
"module": "src/index.js",
"type": "module",
"exports": {
"./src/": "./src/",
"./custom-elements.json": "./custom-elements.json",
"./package.json": "./package.json",
"./sp-button-group": "./sp-button-group.js",
"./sp-button-group.js": "./sp-button-group.js"
},
"files": [
"custom-elements.json",
"/lib/",
"*.d.ts",
"*.js",
"*.js.map",
"/src/"
],
"sideEffects": [
"./sp-button-group.js",
"./sp-button-group.ts"
],
"scripts": {

@@ -37,14 +50,12 @@ "test": "karma start --coverage"

"license": "Apache-2.0",
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"devDependencies": {
"@spectrum-css/buttongroup": "^2.0.0",
"@spectrum-web-components/button": "^0.7.1-alpha.6+07ae41d1"
"@spectrum-web-components/button": "^0.7.1-alpha.38+3926abb2"
},
"dependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0",
"tslib": "^2.0.0"
},
"gitHead": "07ae41d1915488ddd523d0a83731664d2136dc40"
"gitHead": "3926abb2769a9bab28762bf3b3e1fab7c5f03589"
}

@@ -5,3 +5,3 @@ ## Description

### Installation
### Usage

@@ -12,9 +12,17 @@ [![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/button-group?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/button-group)

```
npm install @spectrum-web-components/button-group
yarn add @spectrum-web-components/button-group
```
# or
Import the side effectful registration of `<sp-button-group>` via:
yarn add @spectrum-web-components/button-group
```
import '@spectrum-web-components/button-group/sp-button-group.js';
```
When looking to leverage the `ButtonGroup` base class as a type and/or for extension purposes, do so via:
```
import { ButtonGroup } from '@spectrum-web-components/button-group';
```
## Horizontal

@@ -53,9 +61,9 @@

<sp-button-group>
<sp-action-button quiet>
<sp-action-button quiet label="Zoom in">
<sp-icon slot="icon" size="xs" name="ui:Magnifier"></sp-icon>
</sp-action-button>
<sp-action-button quiet>
<sp-action-button quiet label="Zoom in">
<sp-icon slot="icon" size="xs" name="ui:Magnifier"></sp-icon>
</sp-action-button>
<sp-action-button quiet>
<sp-action-button quiet label="Zoom in">
<sp-icon slot="icon" size="xs" name="ui:Magnifier"></sp-icon>

@@ -100,9 +108,9 @@ </sp-action-button>

<sp-button-group vertical>
<sp-action-button quiet>
<sp-action-button quiet label="Zoom in">
<sp-icon slot="icon" size="xs" name="ui:Magnifier"></sp-icon>
</sp-action-button>
<sp-action-button quiet>
<sp-action-button quiet label="Zoom in">
<sp-icon slot="icon" size="xs" name="ui:Magnifier"></sp-icon>
</sp-action-button>
<sp-action-button quiet>
<sp-action-button quiet label="Zoom in">
<sp-icon slot="icon" size="xs" name="ui:Magnifier"></sp-icon>

@@ -109,0 +117,0 @@ </sp-action-button>

@@ -13,15 +13,2 @@ /*

export * from './button-group.js';
import { ButtonGroup } from './button-group.js';
/* istanbul ignore else */
if (!customElements.get('sp-button-group')) {
customElements.define('sp-button-group', ButtonGroup);
}
declare global {
interface HTMLElementTagNameMap {
'sp-button-group': ButtonGroup;
}
}
export * from './ButtonGroup.js';
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