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

@o-rango/o-alert

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@o-rango/o-alert - npm Package Compare versions

Comparing version 0.0.1-unstable.0 to 0.1.0

dist/esm/es5/vjanjbur.js

9

CHANGELOG.md

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

<a name="0.0.1-beta.0"></a>
## [0.0.1-beta.0](https://github.com/ionic-team/stencil-component-starter/compare/@o-rango/o-alert@0.0.1-unstable.0...@o-rango/o-alert@0.0.1-beta.0) (2018-08-02)
**Note:** Version bump only for package @o-rango/o-alert
<a name="0.0.1-unstable.0"></a>

@@ -8,0 +17,0 @@ ## [0.0.1-unstable.0](https://github.com/ionic-team/stencil-component-starter/compare/@o-rango/o-alert@0.0.1-beta.5...@o-rango/o-alert@0.0.1-unstable.0) (2018-08-01)

10

dist/collection/collection-manifest.json

@@ -22,2 +22,7 @@ {

{
"name": "id",
"type": "String",
"attr": "id"
},
{
"name": "line",

@@ -28,7 +33,2 @@ "type": "Boolean",

{
"name": "name",
"type": "String",
"attr": "name"
},
{
"name": "type",

@@ -35,0 +35,0 @@ "type": "String",

@@ -8,6 +8,6 @@ export class OAlertComponent {

render() {
const types = ['info', 'success', 'error', 'warning', 'default'];
const types = ['info', 'success', 'error', 'default', 'warning'];
const cssClassName = types.includes(this.type) && this.line ? `o-alert-line-${this.type}`
: `o-alert-${this.type}`;
const typeClasses = Object.assign({ 'o-alert': true, 'o-alert-text-light': types.slice(0, 3).includes(this.type) && !this.line, 'o-alert-text-dark': types.slice(3, 5).includes(this.type) || this.line }, { [cssClassName]: true });
const typeClasses = Object.assign({ 'o-alert': true, 'o-alert-text-light': types.slice(0, 4).includes(this.type) && !this.line, 'o-alert-text-dark': types.slice(4, 5).includes(this.type) || this.line }, { [cssClassName]: true });
const alignClasses = {

@@ -18,3 +18,3 @@ 'wrap': true,

};
return (h("div", { id: this.name, class: typeClasses, role: "alert" },
return (h("div", { id: this.id, class: typeClasses, role: "alert" },
h("slot", { name: "start" }),

@@ -32,2 +32,6 @@ h("span", { class: alignClasses },

},
"id": {
"type": String,
"attr": "id"
},
"line": {

@@ -37,6 +41,2 @@ "type": Boolean,

},
"name": {
"type": String,
"attr": "name"
},
"type": {

@@ -43,0 +43,0 @@ "type": String,

// OAlert: Host Data, ES Module/ES5 Target
export var OAlertComponent = ["o-alert",function(o){return(o.scoped?import("./oowmbvbd.sc.js"):import("./oowmbvbd.js")).then(function(m){return m.OAlert})},1,[["align",1,0,1,2],["line",1,0,1,3],["name",1,0,1,2],["type",1,0,1,2]],1];
export var OAlertComponent = ["o-alert",function(o){return(o.scoped?import("./vjanjbur.sc.js"):import("./vjanjbur.js")).then(function(m){return m.OAlert})},1,[["align",1,0,1,2],["id",1,0,1,2],["line",1,0,1,3],["type",1,0,1,2]],1];
/*!
* Built with http://stenciljs.com
* 2018-07-01T21:56:15
* 2018-07-02T23:37:16
*/
!function(e,t,r,n,o,s,i,c,a,l,u,p,d,m){for((u=e.OAlert=e.OAlert||{}).components=a,(d=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((p=t.createElement("style")).innerHTML=d.join()+"{visibility:hidden}.hydrated{visibility:inherit}",p.setAttribute("data-styles",""),t.head.insertBefore(p,t.head.firstChild)),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("OAlert"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var n=e["s-apps"],o=0,s=0;s<n.length;s++)if(e[n[s]].componentOnReady){if(e[n[s]].componentOnReady(t,r))return;o++}if(o<n.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,l),o=o||u.resourcesUrl,p=(d=t.querySelectorAll("script")).length-1;p>=0&&!(m=d[p]).src&&!m.hasAttribute("data-resources-url");p--);d=m.getAttribute("data-resources-url"),!o&&d&&(o=d),!o&&m.src&&(o=(d=m.src.split("/").slice(0,-1)).join("/")+(d.length?"/":"")+"o-alert/"),p=t.createElement("script"),function(e,t,r,n){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,p)?p.src=o+"o-alert.g7twxkgo.js":(p.src=o+"o-alert.mvmpjca2.js",p.setAttribute("type","module"),p.setAttribute("crossorigin",!0)),p.setAttribute("data-resources-url",o),p.setAttribute("data-namespace","o-alert"),t.head.appendChild(p)}(window,document,0,0,0,0,0,0,[["o-alert","oowmbvbd",1,[["align",1,0,1,2],["line",1,0,1,3],["name",1,0,1,2],["type",1,0,1,2]],1]],HTMLElement.prototype);
!function(e,t,r,n,o,i,s,c,a,l,u,p,d,f){for((u=e.OAlert=e.OAlert||{}).components=a,(d=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((p=t.createElement("style")).innerHTML=d.join()+"{visibility:hidden}.hydrated{visibility:inherit}",p.setAttribute("data-styles",""),t.head.insertBefore(p,t.head.firstChild)),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("OAlert"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var n=e["s-apps"],o=0,i=0;i<n.length;i++)if(e[n[i]].componentOnReady){if(e[n[i]].componentOnReady(t,r))return;o++}if(o<n.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,l),o=o||u.resourcesUrl,p=(d=t.querySelectorAll("script")).length-1;p>=0&&!(f=d[p]).src&&!f.hasAttribute("data-resources-url");p--);d=f.getAttribute("data-resources-url"),!o&&d&&(o=d),!o&&f.src&&(o=(d=f.src.split("/").slice(0,-1)).join("/")+(d.length?"/":"")+"o-alert/"),p=t.createElement("script"),function(e,t,r,n){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,p)?p.src=o+"o-alert.g7twxkgo.js":(p.src=o+"o-alert.mvmpjca2.js",p.setAttribute("type","module"),p.setAttribute("crossorigin",!0)),p.setAttribute("data-resources-url",o),p.setAttribute("data-namespace","o-alert"),t.head.appendChild(p)}(window,document,0,0,0,0,0,0,[["o-alert","vjanjbur",1,[["align",1,0,1,2],["id",1,0,1,2],["line",1,0,1,3],["type",1,0,1,2]],1]],HTMLElement.prototype);

@@ -35,4 +35,4 @@ import './stencil.core';

'align': string;
'id': string;
'line': boolean;
'name': string;
'type': string;

@@ -62,4 +62,4 @@ }

'align'?: string;
'id'?: string;
'line'?: boolean;
'name'?: string;
'type'?: string;

@@ -66,0 +66,0 @@ }

@@ -6,3 +6,3 @@ import '../../stencil.core';

export declare class OAlertComponent {
name?: string;
id?: string;
align: string;

@@ -9,0 +9,0 @@ type: string;

{
"name": "@o-rango/o-alert",
"version": "0.0.1-unstable.0",
"version": "0.1.0",
"description": "@o-rango/o-alert",

@@ -51,3 +51,3 @@ "module": "dist/esm/index.js",

},
"gitHead": "533bd0fd84d0107fe39f5d20da09be7f0d49a776"
"gitHead": "2936be651042bb20b998bc8bf40418799b604317"
}
# @o-rango/o-alert
Provides feedback messages for user actions with alert messages.
[![npm version](https://badge.fury.io/js/%40o-rango%2Fo-alert.svg)](https://badge.fury.io/js/%40o-rango%2Fo-alert)
[![Edit o-alert codesandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/n7m2y31n44)

@@ -69,3 +69,2 @@

```css

@@ -72,0 +71,0 @@ /* Generic Colors variables*/

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