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

@maggioli-design-system/mds-icon

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-icon - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

dist/mds-icon/p-312e11d4.entry.js

2

dist/cjs/loader.cjs.js

@@ -8,3 +8,3 @@ 'use strict';

/*
Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
*/

@@ -11,0 +11,0 @@ const patchEsm = () => {

@@ -7,23 +7,2 @@ 'use strict';

/**
* Work around Safari 14 IndexedDB open bug.
*
* Safari has a horrible bug where IDB requests can hang while the browser is starting up. https://bugs.webkit.org/show_bug.cgi?id=226547
* The only solution is to keep nudging it until it's awake.
*/
function idbReady() {
var isSafari = !navigator.userAgentData &&
/Safari\//.test(navigator.userAgent) &&
!/Chrom(e|ium)\//.test(navigator.userAgent);
// No point putting other browsers or older versions of Safari through this mess.
if (!isSafari || !indexedDB.databases)
return Promise.resolve();
var intervalId;
return new Promise(function (resolve) {
var tryIdb = function () { return indexedDB.databases().finally(resolve); };
intervalId = setInterval(tryIdb, 100);
tryIdb();
}).finally(function () { return clearInterval(intervalId); });
}
function promisifyRequest(request) {

@@ -44,11 +23,9 @@ return new Promise(function (resolve, reject) {

function createStore(dbName, storeName) {
var dbp = idbReady().then(function () {
var request = indexedDB.open(dbName);
var request = indexedDB.open(dbName);
request.onupgradeneeded = function () {
return request.result.createObjectStore(storeName);
};
request.onupgradeneeded = function () {
return request.result.createObjectStore(storeName);
};
return promisifyRequest(request);
});
var dbp = promisifyRequest(request);
return function (txMode, callback) {

@@ -55,0 +32,0 @@ return dbp.then(function (db) {

@@ -6,3 +6,3 @@ 'use strict';

/*
Stencil Client Patch Browser v2.16.1 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
*/

@@ -9,0 +9,0 @@ const patchBrowser = () => {

@@ -7,3 +7,3 @@ {

"name": "@stencil/core",
"version": "2.16.1",
"version": "2.17.0",
"typescriptVersion": "4.5.4"

@@ -10,0 +10,0 @@ },

@@ -18,2 +18,8 @@ const typographyDictionary = [

];
const typographyVariationsDictionary = [
'title',
'info',
'read',
'mono',
];
const typographyMonoDictionary = [

@@ -23,3 +29,3 @@ 'code',

];
const typographyPrimaryDictionary = [
const typographyTitleDictionary = [
'action',

@@ -33,3 +39,3 @@ 'h1',

];
const typographySecondaryDictionary = [
const typographyInfoDictionary = [
'caption',

@@ -42,2 +48,7 @@ 'detail',

];
const typographyReadDictionary = [
'caption',
'detail',
'paragraph',
];
const typographySmallerDictionary = [

@@ -52,2 +63,2 @@ 'option',

];
export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
export { typographyDictionary, typographyVariationsDictionary, typographyMonoDictionary, typographyTitleDictionary, typographyInfoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
/* MdsIcon custom elements */
export { MdsIcon as MdsIcon } from '../types/components/mds-icon/mds-icon';
import type { Components, JSX } from "../types/components";
/**

@@ -23,5 +22,2 @@ * Used to manually set the base path where assets can be found.

export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
export type { Components, JSX };
export * from '../types/components';
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
export { MdsIcon, defineCustomElement as defineCustomElementMdsIcon } from './mds-icon.js';
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
/**
* Work around Safari 14 IndexedDB open bug.
*
* Safari has a horrible bug where IDB requests can hang while the browser is starting up. https://bugs.webkit.org/show_bug.cgi?id=226547
* The only solution is to keep nudging it until it's awake.
*/
function idbReady() {
var isSafari = !navigator.userAgentData &&
/Safari\//.test(navigator.userAgent) &&
!/Chrom(e|ium)\//.test(navigator.userAgent);
// No point putting other browsers or older versions of Safari through this mess.
if (!isSafari || !indexedDB.databases)
return Promise.resolve();
var intervalId;
return new Promise(function (resolve) {
var tryIdb = function () { return indexedDB.databases().finally(resolve); };
intervalId = setInterval(tryIdb, 100);
tryIdb();
}).finally(function () { return clearInterval(intervalId); });
}
function promisifyRequest(request) {

@@ -39,11 +18,9 @@ return new Promise(function (resolve, reject) {

function createStore(dbName, storeName) {
var dbp = idbReady().then(function () {
var request = indexedDB.open(dbName);
var request = indexedDB.open(dbName);
request.onupgradeneeded = function () {
return request.result.createObjectStore(storeName);
};
request.onupgradeneeded = function () {
return request.result.createObjectStore(storeName);
};
return promisifyRequest(request);
});
var dbp = promisifyRequest(request);
return function (txMode, callback) {

@@ -50,0 +27,0 @@ return dbp.then(function (db) {

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

var __awaiter=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n["throw"](e))}catch(e){a(e)}}function c(e){e.done?r(e.value):o(e.value).then(i,s)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(i){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;o=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){r.label=i[1];break}if(i[0]===6&&r.label<a[1]){r.label=a[1];a=i;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(i);break}if(a[2])r.ops.pop();r.trys.pop();continue}i=t.call(e,r)}catch(e){i=[6,e];o=0}finally{n=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,g as getElement,H as Host}from"./index-ad9adcc2.js";function idbReady(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise((function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100);r()})).finally((function(){return clearInterval(t)}))}function promisifyRequest(e){return new Promise((function(t,r){e.oncomplete=e.onsuccess=function(){return t(e.result)};e.onabort=e.onerror=function(){return r(e.error)}}))}function createStore(e,t){var r=idbReady().then((function(){var r=indexedDB.open(e);r.onupgradeneeded=function(){return r.result.createObjectStore(t)};return promisifyRequest(r)}));return function(e,n){return r.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}var defaultGetStoreFunc;function defaultGetStore(){if(!defaultGetStoreFunc){defaultGetStoreFunc=createStore("keyval-store","keyval")}return defaultGetStoreFunc}function get(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:defaultGetStore();return t("readonly",(function(t){return promisifyRequest(t.get(e))}))}function set(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:defaultGetStore();return r("readwrite",(function(r){r.put(t,e);return promisifyRequest(r.transaction)}))}function del(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:defaultGetStore();return t("readwrite",(function(t){t.delete(e);return promisifyRequest(t.transaction)}))}var MdsIconSet=function(){function e(e,t,r){this.name=e;this.path=t;this._resolveIconName=r}e.prototype.resolveIconName=function(e){console.log("resolveIconName - iconName: ".concat(e," | name: ").concat(this.name," | path: ").concat(this.path));return this._resolveIconName(e,this.name,this.path)};Object.defineProperty(e.prototype,"resolver",{get:function(){return this._resolveIconName},enumerable:false,configurable:true});return e}();var IconsSetController=function(){function e(){var e=this;this._iconsSets=new Map;this.cacheExp=60*60*1e3*24;this.memoryCache={};this.isCacheAvailable=function(t){return __awaiter(e,void 0,void 0,(function(){var e,r,n;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,get("loader_".concat(t))];case 1:e=o.sent();if(!e){return[2,false]}r=JSON.parse(e);if(Date.now()<r.expiry){return[2,r.data]}del("loader_".concat(t));return[2,false];case 2:n=o.sent();console.error("isCacheAvailable error",n);return[2,false];case 3:return[2]}}))}))};this.setCache=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,set("loader_".concat(t),JSON.stringify({data:r,expiry:Date.now()+this.cacheExp}))];case 1:n.sent();return[3,3];case 2:e=n.sent();console.error("setCache error",e);return[3,3];case 3:return[2]}}))}))}}e.prototype.addIconSet=function(e,t,r){var n=r;var o=this._iconsSets.get(e);if(!n&&o&&typeof o.resolver==="function"){n=o.resolver}else if(n&&typeof n!=="function"){console.error("MdsIconSvg: the third input of addIconSet should be a function that parses and returns the icons's filename.");return false}else if(!n){console.error("MdsIconSvg: the set ".concat(e," needs a resolve function for the icon names."));return false}this._iconsSets.set(e,new MdsIconSet(e,t,n));return true};e.prototype.getIconSet=function(e){if(!e)return{set:null};return{set:this._iconsSets.get(e.split("/")[0])}};e.prototype.setSvgPath=function(e){this._svgPath=e};e.prototype.getSvgPath=function(){return this._svgPath};e.prototype.fetchSvg=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,o,a;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,4,,5]);return[4,this.isCacheAvailable(e)];case 1:t=i.sent();if(this.memoryCache[e]||t){return[2,this.memoryCache[e]||t]}return[4,fetch(e)];case 2:r=i.sent();if(!r.ok){throw Error("Request for '".concat(e,"' returned ").concat(r.status," (").concat(r.statusText,")"))}return[4,r.text()];case 3:n=i.sent();o=n.toLowerCase().trim();if(!(o.startsWith("<svg")||o.startsWith("<?xml"))){throw Error("Resource '".concat(e,"' returned an invalid SVG file"))}this.setCache(e,n);this.memoryCache[e]=n;return[2,n];case 4:a=i.sent();console.error("fetchSvg error",a);return[2,""];case 5:return[2]}}))}))};return e}();var IconsSetService=new IconsSetController;var mdsIconCss=".static{position:static}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.fill-label-blue-05{fill:rgb(var(--label-blue-05))}.fill-label-green-06{fill:rgb(var(--label-green-06))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:-ms-inline-flexbox;display:inline-flex;aspect-ratio:1 / 1;width:1.5rem;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}svg{aspect-ratio:1 / 1;height:100%;width:100%}";var MdsIcon=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){this.updateIconHref()};e.setSvgPathStatic=function(e){IconsSetService.setSvgPath(e)};e.prototype.setSvgPath=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){IconsSetService.setSvgPath(e);this.updateIconHref();return[2]}))}))};e.prototype.updateIconHref=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:if(!this.name)return[2,Promise.resolve()];e=IconsSetService.getSvgPath()||window.sessionStorage.getItem(MdsIcon._svgPathKey);this._iconHref=e&&!this.name.startsWith("http")?window.location.origin.concat(e.concat(this.name).concat(".svg")):this.name;return[4,IconsSetService.fetchSvg(this._iconHref)];case 1:t=r.sent();if(t!=="")this.hostElement.shadowRoot.innerHTML=t;return[2]}}))}))};e.prototype.render=function(){return h(Host,null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateIconHref"]}},enumerable:false,configurable:true});return e}();MdsIcon._svgPathKey="mdsIconSvgPath";MdsIcon.style=mdsIconCss;export{MdsIcon as mds_icon};
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n["throw"](e))}catch(e){a(e)}}function c(e){e.done?r(e.value):o(e.value).then(s,i)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(a=s[0]&2?o["return"]:s[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;if(o=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];o=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,g as getElement,H as Host}from"./index-ad9adcc2.js";function promisifyRequest(e){return new Promise((function(t,r){e.oncomplete=e.onsuccess=function(){return t(e.result)};e.onabort=e.onerror=function(){return r(e.error)}}))}function createStore(e,t){var r=indexedDB.open(e);r.onupgradeneeded=function(){return r.result.createObjectStore(t)};var n=promisifyRequest(r);return function(e,r){return n.then((function(n){return r(n.transaction(t,e).objectStore(t))}))}}var defaultGetStoreFunc;function defaultGetStore(){if(!defaultGetStoreFunc){defaultGetStoreFunc=createStore("keyval-store","keyval")}return defaultGetStoreFunc}function get(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:defaultGetStore();return t("readonly",(function(t){return promisifyRequest(t.get(e))}))}function set(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:defaultGetStore();return r("readwrite",(function(r){r.put(t,e);return promisifyRequest(r.transaction)}))}function del(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:defaultGetStore();return t("readwrite",(function(t){t.delete(e);return promisifyRequest(t.transaction)}))}var MdsIconSet=function(){function e(e,t,r){this.name=e;this.path=t;this._resolveIconName=r}e.prototype.resolveIconName=function(e){console.log("resolveIconName - iconName: ".concat(e," | name: ").concat(this.name," | path: ").concat(this.path));return this._resolveIconName(e,this.name,this.path)};Object.defineProperty(e.prototype,"resolver",{get:function(){return this._resolveIconName},enumerable:false,configurable:true});return e}();var IconsSetController=function(){function e(){var e=this;this._iconsSets=new Map;this.cacheExp=60*60*1e3*24;this.memoryCache={};this.isCacheAvailable=function(t){return __awaiter(e,void 0,void 0,(function(){var e,r,n;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,get("loader_".concat(t))];case 1:e=o.sent();if(!e){return[2,false]}r=JSON.parse(e);if(Date.now()<r.expiry){return[2,r.data]}del("loader_".concat(t));return[2,false];case 2:n=o.sent();console.error("isCacheAvailable error",n);return[2,false];case 3:return[2]}}))}))};this.setCache=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,set("loader_".concat(t),JSON.stringify({data:r,expiry:Date.now()+this.cacheExp}))];case 1:n.sent();return[3,3];case 2:e=n.sent();console.error("setCache error",e);return[3,3];case 3:return[2]}}))}))}}e.prototype.addIconSet=function(e,t,r){var n=r;var o=this._iconsSets.get(e);if(!n&&o&&typeof o.resolver==="function"){n=o.resolver}else if(n&&typeof n!=="function"){console.error("MdsIconSvg: the third input of addIconSet should be a function that parses and returns the icons's filename.");return false}else if(!n){console.error("MdsIconSvg: the set ".concat(e," needs a resolve function for the icon names."));return false}this._iconsSets.set(e,new MdsIconSet(e,t,n));return true};e.prototype.getIconSet=function(e){if(!e)return{set:null};return{set:this._iconsSets.get(e.split("/")[0])}};e.prototype.setSvgPath=function(e){this._svgPath=e};e.prototype.getSvgPath=function(){return this._svgPath};e.prototype.fetchSvg=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,o,a;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,4,,5]);return[4,this.isCacheAvailable(e)];case 1:t=s.sent();if(this.memoryCache[e]||t){return[2,this.memoryCache[e]||t]}return[4,fetch(e)];case 2:r=s.sent();if(!r.ok){throw Error("Request for '".concat(e,"' returned ").concat(r.status," (").concat(r.statusText,")"))}return[4,r.text()];case 3:n=s.sent();o=n.toLowerCase().trim();if(!(o.startsWith("<svg")||o.startsWith("<?xml"))){throw Error("Resource '".concat(e,"' returned an invalid SVG file"))}this.setCache(e,n);this.memoryCache[e]=n;return[2,n];case 4:a=s.sent();console.error("fetchSvg error",a);return[2,""];case 5:return[2]}}))}))};return e}();var IconsSetService=new IconsSetController;var mdsIconCss=".static{position:static}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.fill-label-blue-05{fill:rgb(var(--label-blue-05))}.fill-label-green-06{fill:rgb(var(--label-green-06))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:-ms-inline-flexbox;display:inline-flex;aspect-ratio:1 / 1;width:1.5rem;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}svg{aspect-ratio:1 / 1;height:100%;width:100%}";var MdsIcon=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){this.updateIconHref()};e.setSvgPathStatic=function(e){IconsSetService.setSvgPath(e)};e.prototype.setSvgPath=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){IconsSetService.setSvgPath(e);this.updateIconHref();return[2]}))}))};e.prototype.updateIconHref=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:if(!this.name)return[2,Promise.resolve()];e=IconsSetService.getSvgPath()||window.sessionStorage.getItem(MdsIcon._svgPathKey);this._iconHref=e&&!this.name.startsWith("http")?window.location.origin.concat(e.concat(this.name).concat(".svg")):this.name;return[4,IconsSetService.fetchSvg(this._iconHref)];case 1:t=r.sent();if(t!=="")this.hostElement.shadowRoot.innerHTML=t;return[2]}}))}))};e.prototype.render=function(){return h(Host,null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateIconHref"]}},enumerable:false,configurable:true});return e}();MdsIcon._svgPathKey="mdsIconSvgPath";MdsIcon.style=mdsIconCss;export{MdsIcon as mds_icon};
import { p as promiseResolve, b as bootstrapLazy } from './index-ad9adcc2.js';
/*
Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
*/

@@ -6,0 +6,0 @@ const patchEsm = () => {

import { r as registerInstance, h, g as getElement, H as Host } from './index-ad9adcc2.js';
/**
* Work around Safari 14 IndexedDB open bug.
*
* Safari has a horrible bug where IDB requests can hang while the browser is starting up. https://bugs.webkit.org/show_bug.cgi?id=226547
* The only solution is to keep nudging it until it's awake.
*/
function idbReady() {
var isSafari = !navigator.userAgentData &&
/Safari\//.test(navigator.userAgent) &&
!/Chrom(e|ium)\//.test(navigator.userAgent);
// No point putting other browsers or older versions of Safari through this mess.
if (!isSafari || !indexedDB.databases)
return Promise.resolve();
var intervalId;
return new Promise(function (resolve) {
var tryIdb = function () { return indexedDB.databases().finally(resolve); };
intervalId = setInterval(tryIdb, 100);
tryIdb();
}).finally(function () { return clearInterval(intervalId); });
}
function promisifyRequest(request) {

@@ -39,11 +18,9 @@ return new Promise(function (resolve, reject) {

function createStore(dbName, storeName) {
var dbp = idbReady().then(function () {
var request = indexedDB.open(dbName);
var request = indexedDB.open(dbName);
request.onupgradeneeded = function () {
return request.result.createObjectStore(storeName);
};
request.onupgradeneeded = function () {
return request.result.createObjectStore(storeName);
};
return promisifyRequest(request);
});
var dbp = promisifyRequest(request);
return function (txMode, callback) {

@@ -50,0 +27,0 @@ return dbp.then(function (db) {

import { p as promiseResolve, b as bootstrapLazy } from './index-ad9adcc2.js';
/*
Stencil Client Patch Browser v2.16.1 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
*/

@@ -6,0 +6,0 @@ const patchBrowser = () => {

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

import{p as e,b as n}from"./p-f3276f1b.js";(()=>{const n=import.meta.url,o={};return""!==n&&(o.resourcesUrl=new URL(".",n).href),e(o)})().then((e=>n([["p-453e4497",[[1,"mds-icon",{name:[513],_iconHref:[32],setSvgPath:[64]}]]]],e)));
import{p as e,b as n}from"./p-f3276f1b.js";(()=>{const n=import.meta.url,o={};return""!==n&&(o.resourcesUrl=new URL(".",n).href),e(o)})().then((e=>n([["p-312e11d4",[[1,"mds-icon",{name:[513],_iconHref:[32],setSvgPath:[64]}]]]],e)));
{
"timestamp": "2022-06-22T13:14:29",
"timestamp": "2022-06-27T08:29:49",
"compiler": {

@@ -78,7 +78,7 @@ "name": "node",

"./dist/mds-icon/mds-icon.js",
"./dist/mds-icon/p-453e4497.entry.js",
"./dist/mds-icon/p-312e11d4.entry.js",
"./dist/mds-icon/p-50ea2036.system.js",
"./dist/mds-icon/p-aacafbd8.system.js",
"./dist/mds-icon/p-c161adbc.system.js",
"./dist/mds-icon/p-ea5cc092.system.entry.js",
"./dist/mds-icon/p-f06ca2e9.system.js",
"./dist/mds-icon/p-ddc83a54.system.entry.js",
"./dist/mds-icon/p-f3276f1b.js",

@@ -88,7 +88,7 @@ "./www/build/index.esm.js",

"./www/build/mds-icon.js",
"./www/build/p-453e4497.entry.js",
"./www/build/p-312e11d4.entry.js",
"./www/build/p-50ea2036.system.js",
"./www/build/p-aacafbd8.system.js",
"./www/build/p-c161adbc.system.js",
"./www/build/p-ea5cc092.system.entry.js",
"./www/build/p-f06ca2e9.system.js",
"./www/build/p-ddc83a54.system.entry.js",
"./www/build/p-f3276f1b.js"

@@ -127,8 +127,8 @@ ]

],
"bundleId": "p-453e4497",
"fileName": "p-453e4497.entry.js",
"bundleId": "p-312e11d4",
"fileName": "p-312e11d4.entry.js",
"imports": [
"p-f3276f1b.js"
],
"originalByteSize": 9419
"originalByteSize": 8492
}

@@ -147,3 +147,3 @@ ],

],
"originalByteSize": 9423
"originalByteSize": 8496
}

@@ -162,3 +162,3 @@ ],

],
"originalByteSize": 9423
"originalByteSize": 8496
}

@@ -172,8 +172,8 @@ ],

],
"bundleId": "p-ea5cc092.system",
"fileName": "p-ea5cc092.system.entry.js",
"bundleId": "p-ddc83a54.system",
"fileName": "p-ddc83a54.system.entry.js",
"imports": [
"p-c161adbc.system.js"
],
"originalByteSize": 12672
"originalByteSize": 10077
}

@@ -192,3 +192,3 @@ ],

],
"originalByteSize": 9476
"originalByteSize": 8549
}

@@ -195,0 +195,0 @@ ]

declare const typographyDictionary: string[];
declare const typographyVariationsDictionary: string[];
declare const typographyMonoDictionary: string[];
declare const typographyPrimaryDictionary: string[];
declare const typographySecondaryDictionary: string[];
declare const typographyTitleDictionary: string[];
declare const typographyInfoDictionary: string[];
declare const typographyReadDictionary: string[];
declare const typographySmallerDictionary: string[];
declare const typographyTooltipDictionary: string[];
export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
export { typographyDictionary, typographyVariationsDictionary, typographyMonoDictionary, typographyTitleDictionary, typographyInfoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
export declare type TypographyType = 'action' | 'caption' | 'code' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph' | 'tip';
export declare type TypographyPrimaryType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
export declare type TypographySecondaryType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
export declare type TypographyVariants = 'title' | 'info' | 'read' | 'mono';
export declare type TypographyTitleType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
export declare type TypographyInfoType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
export declare type TypographyReadType = 'caption' | 'detail' | 'paragraph';
export declare type TypographySmallerType = 'tip' | 'option';
export declare type TypographyMonoType = 'code' | 'hack';
export declare type TypographyTooltipType = 'caption' | 'detail' | 'tip';
{
"name": "@maggioli-design-system/mds-icon",
"version": "2.0.3",
"version": "2.0.4",
"description": "mds-icon is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",

@@ -25,4 +25,4 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@stencil/core": "^2.16.1",
"idb-keyval": "6.1.0"
"@stencil/core": "^2.17.0",
"idb-keyval": "6.2.0"
},

@@ -29,0 +29,0 @@ "license": "MIT",

@@ -19,2 +19,9 @@ const typographyDictionary = [

const typographyVariationsDictionary = [
'title',
'info',
'read',
'mono',
]
const typographyMonoDictionary = [

@@ -25,3 +32,3 @@ 'code',

const typographyPrimaryDictionary = [
const typographyTitleDictionary = [
'action',

@@ -36,3 +43,3 @@ 'h1',

const typographySecondaryDictionary = [
const typographyInfoDictionary = [
'caption',

@@ -46,2 +53,8 @@ 'detail',

const typographyReadDictionary = [
'caption',
'detail',
'paragraph',
]
const typographySmallerDictionary = [

@@ -60,7 +73,9 @@ 'option',

typographyDictionary,
typographyVariationsDictionary,
typographyMonoDictionary,
typographyPrimaryDictionary,
typographySecondaryDictionary,
typographyTitleDictionary,
typographyInfoDictionary,
typographyReadDictionary,
typographySmallerDictionary,
typographyTooltipDictionary,
}

@@ -18,3 +18,9 @@ export type TypographyType =

export type TypographyPrimaryType =
export type TypographyVariants =
| 'title'
| 'info'
| 'read'
| 'mono'
export type TypographyTitleType =
| 'action'

@@ -28,3 +34,3 @@ | 'h1'

export type TypographySecondaryType =
export type TypographyInfoType =
| 'caption'

@@ -37,2 +43,7 @@ | 'detail'

export type TypographyReadType =
| 'caption'
| 'detail'
| 'paragraph'
export type TypographySmallerType =

@@ -39,0 +50,0 @@ | 'tip'

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

import{p as e,b as n}from"./p-f3276f1b.js";(()=>{const n=import.meta.url,o={};return""!==n&&(o.resourcesUrl=new URL(".",n).href),e(o)})().then((e=>n([["p-453e4497",[[1,"mds-icon",{name:[513],_iconHref:[32],setSvgPath:[64]}]]]],e)));
import{p as e,b as n}from"./p-f3276f1b.js";(()=>{const n=import.meta.url,o={};return""!==n&&(o.resourcesUrl=new URL(".",n).href),e(o)})().then((e=>n([["p-312e11d4",[[1,"mds-icon",{name:[513],_iconHref:[32],setSvgPath:[64]}]]]],e)));

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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