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

@kongponents/kbadge

Package Overview
Dependencies
Maintainers
4
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kongponents/kbadge - npm Package Compare versions

Comparing version 0.1.6 to 0.1.8

8

CHANGELOG.md

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

## [0.1.8](https://github.com/Kong/kongponents/compare/@kongponents/kbadge@0.1.6...@kongponents/kbadge@0.1.8) (2020-01-16)
**Note:** Version bump only for package @kongponents/kbadge
## [0.1.6](https://github.com/Kong/kongponents/compare/@kongponents/kbadge@0.1.5...@kongponents/kbadge@0.1.6) (2019-11-12)

@@ -8,0 +16,0 @@

16

dist/KBadge.common.js

@@ -687,3 +687,3 @@ module.exports =

/***/ "6734":
/***/ "be51":
/***/ (function(module, exports, __webpack_require__) {

@@ -694,3 +694,3 @@

// load the styles
var content = __webpack_require__("7328");
var content = __webpack_require__("cd47");
if(typeof content === 'string') content = [[module.i, content, '']];

@@ -700,7 +700,7 @@ if(content.locals) module.exports = content.locals;

var add = __webpack_require__("0ed3").default
var update = add("28357ac8", content, true, {"sourceMap":false,"shadowMode":false});
var update = add("1024f006", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "7328":
/***/ "cd47":
/***/ (function(module, exports, __webpack_require__) {

@@ -713,3 +713,3 @@

// module
exports.push([module.i, ".k-badge[data-v-2a96a953]{display:inline-flex;justify-content:center;font-weight:500;font-size:var(--KBadgeFontSize,var(--type-sm,14px));height:27px;align-items:center;width:var(--KBadgeWidth,71px);padding:var(--KBadgePaddingY,2px) var(--KBadgePaddingX,4px);font-family:var(--font-family-sans,\"Roboto\");border-radius:var(--KBadgeBorderRadius,3px)}.k-badge.kbadge-success[data-v-2a96a953]{color:var(--KBadgeSuccessColor,var(--green-dark,#318153));border-color:var(--KBadgeSuccessBorder,var(--green-lighter,#e9f7ef));background-color:var(--KBadgeSuccessBackground,var(--green-lighter,#e9f7ef))}.k-badge.kbadge-danger[data-v-2a96a953]{color:var(--KBadgeDangerColor,var(--red-dark,#b30000));border-color:var(--KBadgeDangerBorder,var(--red-lighter,#ffe6e6));background-color:var(--KBadgeDangerBackground,var(--red-lighter,#ffe6e6))}.k-badge.kbadge-warning[data-v-2a96a953]{color:var(--KBadgeWarningColor,var(--yellow-darker,#806000));border-color:var(--KBadgeWarningBorder,var(--yellow-lighter,#fff7e6));background-color:var(--KBadgeWarningBackground,var(--yellow-lighter,#fff7e6))}", ""]);
exports.push([module.i, ".k-badge[data-v-2a96a953]{display:inline-flex;justify-content:center;font-weight:500;font-size:14px;font-size:var(--KBadgeFontSize,var(--type-sm,14px));height:27px;align-items:center;width:71px;width:var(--KBadgeWidth,71px);padding:2px 4px;padding:var(--KBadgePaddingY,2px) var(--KBadgePaddingX,4px);font-family:Roboto;font-family:var(--font-family-sans,\"Roboto\");border-radius:3px;border-radius:var(--KBadgeBorderRadius,3px)}.k-badge.kbadge-success[data-v-2a96a953]{color:#318153;color:var(--KBadgeSuccessColor,var(--green-dark,#318153));border-color:#e9f7ef;border-color:var(--KBadgeSuccessBorder,var(--green-lighter,#e9f7ef));background-color:#e9f7ef;background-color:var(--KBadgeSuccessBackground,var(--green-lighter,#e9f7ef))}.k-badge.kbadge-danger[data-v-2a96a953]{color:#b30000;color:var(--KBadgeDangerColor,var(--red-dark,#b30000));border-color:#ffe6e6;border-color:var(--KBadgeDangerBorder,var(--red-lighter,#ffe6e6));background-color:#ffe6e6;background-color:var(--KBadgeDangerBackground,var(--red-lighter,#ffe6e6))}.k-badge.kbadge-warning[data-v-2a96a953]{color:#806000;color:var(--KBadgeWarningColor,var(--yellow-darker,#806000));border-color:#fff7e6;border-color:var(--KBadgeWarningBorder,var(--yellow-lighter,#fff7e6));background-color:#fff7e6;background-color:var(--KBadgeWarningBackground,var(--yellow-lighter,#fff7e6))}", ""]);

@@ -725,6 +725,6 @@ // exports

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6734");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("be51");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);

@@ -731,0 +731,0 @@ /***/ })

@@ -696,3 +696,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/***/ "6734":
/***/ "be51":
/***/ (function(module, exports, __webpack_require__) {

@@ -703,3 +703,3 @@

// load the styles
var content = __webpack_require__("7328");
var content = __webpack_require__("cd47");
if(typeof content === 'string') content = [[module.i, content, '']];

@@ -709,7 +709,7 @@ if(content.locals) module.exports = content.locals;

var add = __webpack_require__("0ed3").default
var update = add("28357ac8", content, true, {"sourceMap":false,"shadowMode":false});
var update = add("1024f006", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "7328":
/***/ "cd47":
/***/ (function(module, exports, __webpack_require__) {

@@ -722,3 +722,3 @@

// module
exports.push([module.i, ".k-badge[data-v-2a96a953]{display:inline-flex;justify-content:center;font-weight:500;font-size:var(--KBadgeFontSize,var(--type-sm,14px));height:27px;align-items:center;width:var(--KBadgeWidth,71px);padding:var(--KBadgePaddingY,2px) var(--KBadgePaddingX,4px);font-family:var(--font-family-sans,\"Roboto\");border-radius:var(--KBadgeBorderRadius,3px)}.k-badge.kbadge-success[data-v-2a96a953]{color:var(--KBadgeSuccessColor,var(--green-dark,#318153));border-color:var(--KBadgeSuccessBorder,var(--green-lighter,#e9f7ef));background-color:var(--KBadgeSuccessBackground,var(--green-lighter,#e9f7ef))}.k-badge.kbadge-danger[data-v-2a96a953]{color:var(--KBadgeDangerColor,var(--red-dark,#b30000));border-color:var(--KBadgeDangerBorder,var(--red-lighter,#ffe6e6));background-color:var(--KBadgeDangerBackground,var(--red-lighter,#ffe6e6))}.k-badge.kbadge-warning[data-v-2a96a953]{color:var(--KBadgeWarningColor,var(--yellow-darker,#806000));border-color:var(--KBadgeWarningBorder,var(--yellow-lighter,#fff7e6));background-color:var(--KBadgeWarningBackground,var(--yellow-lighter,#fff7e6))}", ""]);
exports.push([module.i, ".k-badge[data-v-2a96a953]{display:inline-flex;justify-content:center;font-weight:500;font-size:14px;font-size:var(--KBadgeFontSize,var(--type-sm,14px));height:27px;align-items:center;width:71px;width:var(--KBadgeWidth,71px);padding:2px 4px;padding:var(--KBadgePaddingY,2px) var(--KBadgePaddingX,4px);font-family:Roboto;font-family:var(--font-family-sans,\"Roboto\");border-radius:3px;border-radius:var(--KBadgeBorderRadius,3px)}.k-badge.kbadge-success[data-v-2a96a953]{color:#318153;color:var(--KBadgeSuccessColor,var(--green-dark,#318153));border-color:#e9f7ef;border-color:var(--KBadgeSuccessBorder,var(--green-lighter,#e9f7ef));background-color:#e9f7ef;background-color:var(--KBadgeSuccessBackground,var(--green-lighter,#e9f7ef))}.k-badge.kbadge-danger[data-v-2a96a953]{color:#b30000;color:var(--KBadgeDangerColor,var(--red-dark,#b30000));border-color:#ffe6e6;border-color:var(--KBadgeDangerBorder,var(--red-lighter,#ffe6e6));background-color:#ffe6e6;background-color:var(--KBadgeDangerBackground,var(--red-lighter,#ffe6e6))}.k-badge.kbadge-warning[data-v-2a96a953]{color:#806000;color:var(--KBadgeWarningColor,var(--yellow-darker,#806000));border-color:#fff7e6;border-color:var(--KBadgeWarningBorder,var(--yellow-lighter,#fff7e6));background-color:#fff7e6;background-color:var(--KBadgeWarningBackground,var(--yellow-lighter,#fff7e6))}", ""]);

@@ -734,6 +734,6 @@ // exports

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6734");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("be51");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KBadge_vue_vue_type_style_index_0_id_2a96a953_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);

@@ -740,0 +740,0 @@ /***/ })

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

(function(e,r){"object"===typeof exports&&"object"===typeof module?module.exports=r():"function"===typeof define&&define.amd?define([],r):"object"===typeof exports?exports["KBadge"]=r():e["KBadge"]=r()})("undefined"!==typeof self?self:this,(function(){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s="1c25")}({"0ed3":function(e,r,t){"use strict";function n(e,r){for(var t=[],n={},o=0;o<r.length;o++){var a=r[o],i=a[0],s=a[1],d=a[2],c=a[3],u={id:e+":"+o,css:s,media:d,sourceMap:c};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}t.r(r),t.d(r,"default",(function(){return g}));var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,d=0,c=!1,u=function(){},f=null,l="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(e,r,t,o){c=t,f=o||{};var i=n(e,r);return v(i),function(r){for(var t=[],o=0;o<i.length;o++){var s=i[o],d=a[s.id];d.refs--,t.push(d)}r?(i=n(e,r),v(i)):i=[];for(o=0;o<t.length;o++){d=t[o];if(0===d.refs){for(var c=0;c<d.parts.length;c++)d.parts[c]();delete a[d.id]}}}}function v(e){for(var r=0;r<e.length;r++){var t=e[r],n=a[t.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](t.parts[o]);for(;o<t.parts.length;o++)n.parts.push(y(t.parts[o]));n.parts.length>t.parts.length&&(n.parts.length=t.parts.length)}else{var i=[];for(o=0;o<t.parts.length;o++)i.push(y(t.parts[o]));a[t.id]={id:t.id,refs:1,parts:i}}}}function h(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function y(e){var r,t,n=document.querySelector("style["+l+'~="'+e.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n)}if(p){var o=d++;n=s||(s=h()),r=m.bind(null,n,o,!1),t=m.bind(null,n,o,!0)}else n=h(),r=x.bind(null,n),t=function(){n.parentNode.removeChild(n)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else t()}}var b=function(){var e=[];return function(r,t){return e[r]=t,e.filter(Boolean).join("\n")}}();function m(e,r,t,n){var o=t?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(r,o);else{var a=document.createTextNode(o),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(a,i[r]):e.appendChild(a)}}function x(e,r){var t=r.css,n=r.media,o=r.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(l,r.id),o&&(t+="\n/*# sourceURL="+o.sources[0]+" */",t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=t;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},"1c25":function(e,r,t){"use strict";var n;(t.r(r),"undefined"!==typeof window)&&(t("4141"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(t.p=n[1]));var o=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"k-badge",class:["custom"!==e.appearance&&"kbadge-"+e.appearance],style:e.color&&e.backgroundColor&&{backgroundColor:e.backgroundColor,color:e.color}},[e._t("default")],2)},a=[];const i={success:"success",danger:"danger",warning:"warning"};var s={props:{appearance:{type:String,required:!1,validator:function(e){return-1!==Object.keys({...i,custom:""}).indexOf(e)},default:"custom"},color:{type:String,required:!1,default:""},backgroundColor:{type:String,required:!1,default:""}}},d=s;t("dac3");function c(e,r,t,n,o,a,i,s){var d,c="function"===typeof e?e.options:e;if(r&&(c.render=r,c.staticRenderFns=t,c._compiled=!0),n&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),i?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=d):o&&(d=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),d)if(c.functional){c._injectStyles=d;var u=c.render;c.render=function(e,r){return d.call(r),u(e,r)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:c}}var u=c(d,o,a,!1,null,"2a96a953",null),f=u.exports;t.d(r,"appearances",(function(){return i}));r["default"]=f},4141:function(e,r){(function(e){var r="currentScript",t=e.getElementsByTagName("script");r in e||Object.defineProperty(e,r,{get:function(){try{throw new Error}catch(n){var e,r=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in t)if(t[e].src==r||"interactive"==t[e].readyState)return t[e];return null}}})})(document)},"443a":function(e,r){function t(e,r){var t=e[1]||"",o=e[3];if(!o)return t;if(r&&"function"===typeof btoa){var a=n(o),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[t].concat(i).concat([a]).join("\n")}return[t].join("\n")}function n(e){var r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,"+r;return"/*# "+t+" */"}e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var n=t(r,e);return r[2]?"@media "+r[2]+"{"+n+"}":n})).join("")},r.i=function(e,t){"string"===typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var a=this[o][0];"number"===typeof a&&(n[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"===typeof i[0]&&n[i[0]]||(t&&!i[2]?i[2]=t:t&&(i[2]="("+i[2]+") and ("+t+")"),r.push(i))}},r}},6734:function(e,r,t){var n=t("7328");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=t("0ed3").default;o("28357ac8",n,!0,{sourceMap:!1,shadowMode:!1})},7328:function(e,r,t){r=e.exports=t("443a")(!1),r.push([e.i,'.k-badge[data-v-2a96a953]{display:inline-flex;justify-content:center;font-weight:500;font-size:var(--KBadgeFontSize,var(--type-sm,14px));height:27px;align-items:center;width:var(--KBadgeWidth,71px);padding:var(--KBadgePaddingY,2px) var(--KBadgePaddingX,4px);font-family:var(--font-family-sans,"Roboto");border-radius:var(--KBadgeBorderRadius,3px)}.k-badge.kbadge-success[data-v-2a96a953]{color:var(--KBadgeSuccessColor,var(--green-dark,#318153));border-color:var(--KBadgeSuccessBorder,var(--green-lighter,#e9f7ef));background-color:var(--KBadgeSuccessBackground,var(--green-lighter,#e9f7ef))}.k-badge.kbadge-danger[data-v-2a96a953]{color:var(--KBadgeDangerColor,var(--red-dark,#b30000));border-color:var(--KBadgeDangerBorder,var(--red-lighter,#ffe6e6));background-color:var(--KBadgeDangerBackground,var(--red-lighter,#ffe6e6))}.k-badge.kbadge-warning[data-v-2a96a953]{color:var(--KBadgeWarningColor,var(--yellow-darker,#806000));border-color:var(--KBadgeWarningBorder,var(--yellow-lighter,#fff7e6));background-color:var(--KBadgeWarningBackground,var(--yellow-lighter,#fff7e6))}',""])},dac3:function(e,r,t){"use strict";var n=t("6734"),o=t.n(n);o.a}})["default"]}));
(function(e,r){"object"===typeof exports&&"object"===typeof module?module.exports=r():"function"===typeof define&&define.amd?define([],r):"object"===typeof exports?exports["KBadge"]=r():e["KBadge"]=r()})("undefined"!==typeof self?self:this,(function(){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s="1c25")}({"0ed3":function(e,r,t){"use strict";function n(e,r){for(var t=[],n={},o=0;o<r.length;o++){var a=r[o],i=a[0],d=a[1],c=a[2],s=a[3],u={id:e+":"+o,css:d,media:c,sourceMap:s};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}t.r(r),t.d(r,"default",(function(){return g}));var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),d=null,c=0,s=!1,u=function(){},f=null,l="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(e,r,t,o){s=t,f=o||{};var i=n(e,r);return v(i),function(r){for(var t=[],o=0;o<i.length;o++){var d=i[o],c=a[d.id];c.refs--,t.push(c)}r?(i=n(e,r),v(i)):i=[];for(o=0;o<t.length;o++){c=t[o];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete a[c.id]}}}}function v(e){for(var r=0;r<e.length;r++){var t=e[r],n=a[t.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](t.parts[o]);for(;o<t.parts.length;o++)n.parts.push(b(t.parts[o]));n.parts.length>t.parts.length&&(n.parts.length=t.parts.length)}else{var i=[];for(o=0;o<t.parts.length;o++)i.push(b(t.parts[o]));a[t.id]={id:t.id,refs:1,parts:i}}}}function h(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function b(e){var r,t,n=document.querySelector("style["+l+'~="'+e.id+'"]');if(n){if(s)return u;n.parentNode.removeChild(n)}if(p){var o=c++;n=d||(d=h()),r=m.bind(null,n,o,!1),t=m.bind(null,n,o,!0)}else n=h(),r=x.bind(null,n),t=function(){n.parentNode.removeChild(n)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else t()}}var y=function(){var e=[];return function(r,t){return e[r]=t,e.filter(Boolean).join("\n")}}();function m(e,r,t,n){var o=t?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(r,o);else{var a=document.createTextNode(o),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(a,i[r]):e.appendChild(a)}}function x(e,r){var t=r.css,n=r.media,o=r.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(l,r.id),o&&(t+="\n/*# sourceURL="+o.sources[0]+" */",t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=t;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},"1c25":function(e,r,t){"use strict";var n;(t.r(r),"undefined"!==typeof window)&&(t("4141"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(t.p=n[1]));var o=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"k-badge",class:["custom"!==e.appearance&&"kbadge-"+e.appearance],style:e.color&&e.backgroundColor&&{backgroundColor:e.backgroundColor,color:e.color}},[e._t("default")],2)},a=[];const i={success:"success",danger:"danger",warning:"warning"};var d={props:{appearance:{type:String,required:!1,validator:function(e){return-1!==Object.keys({...i,custom:""}).indexOf(e)},default:"custom"},color:{type:String,required:!1,default:""},backgroundColor:{type:String,required:!1,default:""}}},c=d;t("dac3");function s(e,r,t,n,o,a,i,d){var c,s="function"===typeof e?e.options:e;if(r&&(s.render=r,s.staticRenderFns=t,s._compiled=!0),n&&(s.functional=!0),a&&(s._scopeId="data-v-"+a),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=c):o&&(c=d?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var u=s.render;s.render=function(e,r){return c.call(r),u(e,r)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:s}}var u=s(c,o,a,!1,null,"2a96a953",null),f=u.exports;t.d(r,"appearances",(function(){return i}));r["default"]=f},4141:function(e,r){(function(e){var r="currentScript",t=e.getElementsByTagName("script");r in e||Object.defineProperty(e,r,{get:function(){try{throw new Error}catch(n){var e,r=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in t)if(t[e].src==r||"interactive"==t[e].readyState)return t[e];return null}}})})(document)},"443a":function(e,r){function t(e,r){var t=e[1]||"",o=e[3];if(!o)return t;if(r&&"function"===typeof btoa){var a=n(o),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[t].concat(i).concat([a]).join("\n")}return[t].join("\n")}function n(e){var r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,"+r;return"/*# "+t+" */"}e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var n=t(r,e);return r[2]?"@media "+r[2]+"{"+n+"}":n})).join("")},r.i=function(e,t){"string"===typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var a=this[o][0];"number"===typeof a&&(n[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"===typeof i[0]&&n[i[0]]||(t&&!i[2]?i[2]=t:t&&(i[2]="("+i[2]+") and ("+t+")"),r.push(i))}},r}},be51:function(e,r,t){var n=t("cd47");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=t("0ed3").default;o("1024f006",n,!0,{sourceMap:!1,shadowMode:!1})},cd47:function(e,r,t){r=e.exports=t("443a")(!1),r.push([e.i,'.k-badge[data-v-2a96a953]{display:inline-flex;justify-content:center;font-weight:500;font-size:14px;font-size:var(--KBadgeFontSize,var(--type-sm,14px));height:27px;align-items:center;width:71px;width:var(--KBadgeWidth,71px);padding:2px 4px;padding:var(--KBadgePaddingY,2px) var(--KBadgePaddingX,4px);font-family:Roboto;font-family:var(--font-family-sans,"Roboto");border-radius:3px;border-radius:var(--KBadgeBorderRadius,3px)}.k-badge.kbadge-success[data-v-2a96a953]{color:#318153;color:var(--KBadgeSuccessColor,var(--green-dark,#318153));border-color:#e9f7ef;border-color:var(--KBadgeSuccessBorder,var(--green-lighter,#e9f7ef));background-color:#e9f7ef;background-color:var(--KBadgeSuccessBackground,var(--green-lighter,#e9f7ef))}.k-badge.kbadge-danger[data-v-2a96a953]{color:#b30000;color:var(--KBadgeDangerColor,var(--red-dark,#b30000));border-color:#ffe6e6;border-color:var(--KBadgeDangerBorder,var(--red-lighter,#ffe6e6));background-color:#ffe6e6;background-color:var(--KBadgeDangerBackground,var(--red-lighter,#ffe6e6))}.k-badge.kbadge-warning[data-v-2a96a953]{color:#806000;color:var(--KBadgeWarningColor,var(--yellow-darker,#806000));border-color:#fff7e6;border-color:var(--KBadgeWarningBorder,var(--yellow-lighter,#fff7e6));background-color:#fff7e6;background-color:var(--KBadgeWarningBackground,var(--yellow-lighter,#fff7e6))}',""])},dac3:function(e,r,t){"use strict";var n=t("be51"),o=t.n(n);o.a}})["default"]}));
//# sourceMappingURL=KBadge.umd.min.js.map
{
"name": "@kongponents/kbadge",
"version": "0.1.6",
"version": "0.1.8",
"description": "Badges, pills, or whatever you wanna call them.",

@@ -22,3 +22,3 @@ "main": "dist/KBadge.umd.min.js",

"homepage": "https://github.com/Kong/kongponents#readme",
"gitHead": "2dc564b82b9f3796c88e78aa38595bbb30a216e8"
"gitHead": "ef4ecf46d2104f6db045e84d2b3e347c2ac03c44"
}

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