Socket
Socket
Sign inDemoInstall

@spectrum-web-components/base

Package Overview
Dependencies
3
Maintainers
5
Versions
161
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.3 to 0.4.0

10

CHANGELOG.md

@@ -6,2 +6,12 @@ # Change Log

# [0.4.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/base@0.3.3...@spectrum-web-components/base@0.4.0) (2021-03-04)
### Bug Fixes
- support a wider number of sizes ([ee44978](https://github.com/adobe/spectrum-web-components/commit/ee4497830da0d3bc63d4414ad5548291a39588c7))
### Features
- use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
## [0.3.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/base@0.3.2...@spectrum-web-components/base@0.3.3) (2021-02-11)

@@ -8,0 +18,0 @@

6

package.json

@@ -21,3 +21,3 @@ {

],
"version": "0.3.3",
"version": "0.4.0",
"description": "",

@@ -30,3 +30,3 @@ "main": "./src/index.js",

".": "./src/index.js",
"./src/": "./src/",
"./src/*": "./src/*",
"./custom-elements.json": "./custom-elements.json",

@@ -53,3 +53,3 @@ "./package.json": "./package.json"

},
"gitHead": "975a9d6bf075d367fbc77c9b5cec4eabce66f6c0"
"gitHead": "aec24bb12d82dea387faa1e6d36dfc7620d230f7"
}

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

import { UpdatingElement } from './index.js';
import { UpdatingElement } from 'lit-element';
declare type Constructor<T = Record<string, unknown>> = {

@@ -6,3 +6,3 @@ new (...args: any[]): T;

};
declare type ElementSize = 's' | 'm' | 'l' | 'xl';
export declare type ElementSize = 's' | 'm' | 'l' | 'xl' | 'xxl';
export interface SizedElementInterface {

@@ -12,5 +12,5 @@ size: ElementSize;

export declare function SizedMixin<T extends Constructor<UpdatingElement>>(constructor: T, { validSizes, noDefaultSize, }?: {
validSizes?: Partial<ElementSize>[];
validSizes?: ElementSize[];
noDefaultSize?: boolean;
}): T & Constructor<SizedElementInterface>;
export {};

@@ -13,3 +13,3 @@ import { __decorate } from "tslib";

*/
import { property } from './index.js';
import { property } from 'lit-element';
export function SizedMixin(constructor, { validSizes = ['s', 'm', 'l', 'xl'], noDefaultSize, } = {}) {

@@ -16,0 +16,0 @@ class SizedElement extends constructor {

@@ -12,3 +12,3 @@ /*

*/
import { UpdatingElement, property, PropertyValues } from './index.js';
import { UpdatingElement, property, PropertyValues } from 'lit-element';

@@ -21,3 +21,3 @@ type Constructor<T = Record<string, unknown>> = {

type ElementSize = 's' | 'm' | 'l' | 'xl';
export type ElementSize = 's' | 'm' | 'l' | 'xl' | 'xxl';

@@ -34,3 +34,3 @@ export interface SizedElementInterface {

}: {
validSizes?: Partial<ElementSize>[];
validSizes?: ElementSize[];
noDefaultSize?: boolean;

@@ -37,0 +37,0 @@ } = {}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc