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

@ax-design/elevation

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ax-design/elevation - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

build/main.js

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

(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.AxElevation={}))})(this,function(a){'use strict';class b extends HTMLElement{constructor(){super(),this.root=this.attachShadow({mode:"open"}),this.root.innerHTML=`
(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a="undefined"==typeof globalThis?a||self:globalThis,b(a.AxElevation={}))})(this,function(a){'use strict';/// <reference path="./cssExtendedProps.d.ts" />
/// <reference path="./cssTypedOM.d.ts" />
class b extends HTMLElement{constructor(){super(),this.root=this.attachShadow({mode:"open"}),this.root.innerHTML=`
<div>

@@ -6,3 +8,3 @@ <slot></slot>

<style>
div { display: block; position: absolute; width: 100%; height: 100%; box-shadow: 0 calc(0.400 * var(--elevation-depth, 0) * 1px) calc(0.900 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.13441 - 0.00063 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))), 0 calc(0.075 * var(--elevation-depth, 0) * 1px) calc(0.225 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.10997 - 0.00051 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))); }
div { display: block; position: relative; width: 100%; height: 100%; box-shadow: 0 calc(0.400 * var(--elevation-depth, 0) * 1px) calc(0.900 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.13441 - 0.00063 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))), 0 calc(0.075 * var(--elevation-depth, 0) * 1px) calc(0.225 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.10997 - 0.00051 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))); }
:host { display: inline-block; position: relative; }

@@ -9,0 +11,0 @@ :host([block]) { display: block; }

@@ -10,3 +10,3 @@ export class AxElevation extends HTMLElement {

<style>
div { display: block; position: absolute; width: 100%; height: 100%; box-shadow: 0 calc(0.400 * var(--elevation-depth, 0) * 1px) calc(0.900 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.13441 - 0.00063 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))), 0 calc(0.075 * var(--elevation-depth, 0) * 1px) calc(0.225 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.10997 - 0.00051 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))); }
div { display: block; position: relative; width: 100%; height: 100%; box-shadow: 0 calc(0.400 * var(--elevation-depth, 0) * 1px) calc(0.900 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.13441 - 0.00063 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))), 0 calc(0.075 * var(--elevation-depth, 0) * 1px) calc(0.225 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.10997 - 0.00051 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))); }
:host { display: inline-block; position: relative; }

@@ -13,0 +13,0 @@ :host([block]) { display: block; }

import { AxElevation } from './CustomElements.js';
/// <reference path="./cssExtendedProps.d.ts" />
/// <reference path="./cssTypedOM.d.ts" />
export function register() {

@@ -3,0 +5,0 @@ customElements.define(AxElevation.ElementName, AxElevation);

{
"name": "@ax-design/elevation",
"version": "0.0.1",
"version": "0.0.2",
"description": "Web component that implement elevation texture of Axiom Design System.",

@@ -13,7 +13,7 @@ "main": "build/main.js",

"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"rollup": "^1.11.3",
"rollup-plugin-babel-minify": "^8.0.0",
"rollup-plugin-typescript2": "^0.21.0",
"typescript": "^3.4.5"
"rimraf": "^3.0.2",
"rollup": "^2.62.0",
"rollup-plugin-babel-minify": "^10.0.0",
"rollup-plugin-typescript2": "^0.31.1",
"typescript": "^4.5.4"
},

@@ -20,0 +20,0 @@ "scripts": {

@@ -6,3 +6,3 @@ <h1 align="center">

<p align="center">
Web component that implements elevation texture of Axiom Design System.
Web component that implements Elevation shadow effect of Axiom Design System.
</p>

@@ -9,0 +9,0 @@

@@ -0,0 +0,0 @@ import typescript from 'rollup-plugin-typescript2';

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

type RegisterPaintType = (name: string, paintCtor: any) => void;
interface Window {
CSS: CSS;
registerPaint: RegisterPaintType;

@@ -12,6 +11,6 @@ }

interface CSS {
px(value: number): CSSUnitValue;
registerProperty(rule: CSSPropertyRule): void;
paintWorklet: PaintWorklet;
declare namespace CSS {
function px(value: number): CSSUnitValue;
function registerProperty(rule: CSSPropertyRule): void;
var paintWorklet: PaintWorklet;
}

@@ -18,0 +17,0 @@

@@ -11,3 +11,3 @@ export class AxElevation extends HTMLElement {

<style>
div { display: block; position: absolute; width: 100%; height: 100%; box-shadow: 0 calc(0.400 * var(--elevation-depth, 0) * 1px) calc(0.900 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.13441 - 0.00063 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))), 0 calc(0.075 * var(--elevation-depth, 0) * 1px) calc(0.225 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.10997 - 0.00051 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))); }
div { display: block; position: relative; width: 100%; height: 100%; box-shadow: 0 calc(0.400 * var(--elevation-depth, 0) * 1px) calc(0.900 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.13441 - 0.00063 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))), 0 calc(0.075 * var(--elevation-depth, 0) * 1px) calc(0.225 * var(--elevation-depth, 0) * 1px) 0 rgba(0, 0, 0, calc(0.10997 - 0.00051 * var(--elevation-depth, 0) + 0.00003 * var(--elevation-depth, 0) * var(--elevation-depth, 0))); }
:host { display: inline-block; position: relative; }

@@ -14,0 +14,0 @@ :host([block]) { display: block; }

import { AxElevation } from './CustomElements.js';
/// <reference path="./cssExtendedProps.d.ts" />
/// <reference path="./cssTypedOM.d.ts" />
export function register() {

@@ -15,2 +18,2 @@ customElements.define(AxElevation.ElementName, AxElevation);

}
}
}

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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