@kongponents/kcard
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -90,280 +90,2 @@ module.exports = | ||
/***/ "05aa": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
exports = module.exports = __webpack_require__("443a")(false); | ||
// imports | ||
// module | ||
exports.push([module.i, ".kong-card[data-v-2c678ffa]{padding:1rem 1rem;padding:var(--KCardPaddingY,1rem) var(--KCardPaddingX,1rem);margin-bottom:1rvar --KCardMarginY,1rem 1rem;margin-bottom:1rvar --KCardMarginY,1rem var(--KCardMarginX,1rem)}.kong-card.noBoard[data-v-2c678ffa]{border:none}.kong-card.border[data-v-2c678ffa]{border-radius:3px;border:1px solid rgba(0,0,0,.1);border:1px solid var(--KCardBorder,var(--tblack-10,rgba(0,0,0,.1)));box-shadow:none}.kong-card.borderTop[data-v-2c678ffa]{border-top:1px solid rgba(0,0,0,.08)}.kong-card.hover[data-v-2c678ffa]:hover{box-shadow:0 4px 8px rgba(0,0,0,.1);box-shadow:0 4px 8px var(--tblack-10,rgba(0,0,0,.1))}.kong-card .k-card-header[data-v-2c678ffa]{display:flex;align-items:center;margin-bottom:1rem}.kong-card .k-card-title h4[data-v-2c678ffa]{margin:0;font-size:18px;font-size:var(--KCardTitleFontSize,var(--type-lg,18px));font-weight:500;color:rgba(0,0,0,.85);color:var(--KCardTitleColor,var(--tblack-85,rgba(0,0,0,.85)))}.kong-card .k-card-actions[data-v-2c678ffa]{margin-left:auto}", ""]); | ||
// exports | ||
/***/ }), | ||
/***/ "0ed3": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/vue-style-loader/lib/listToStyles.js | ||
/** | ||
* Translates the list format produced by css-loader into something | ||
* easier to manipulate. | ||
*/ | ||
function listToStyles (parentId, list) { | ||
var styles = [] | ||
var newStyles = {} | ||
for (var i = 0; i < list.length; i++) { | ||
var item = list[i] | ||
var id = item[0] | ||
var css = item[1] | ||
var media = item[2] | ||
var sourceMap = item[3] | ||
var part = { | ||
id: parentId + ':' + i, | ||
css: css, | ||
media: media, | ||
sourceMap: sourceMap | ||
} | ||
if (!newStyles[id]) { | ||
styles.push(newStyles[id] = { id: id, parts: [part] }) | ||
} else { | ||
newStyles[id].parts.push(part) | ||
} | ||
} | ||
return styles | ||
} | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/vue-style-loader/lib/addStylesClient.js | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; }); | ||
/* | ||
MIT License http://www.opensource.org/licenses/mit-license.php | ||
Author Tobias Koppers @sokra | ||
Modified by Evan You @yyx990803 | ||
*/ | ||
var hasDocument = typeof document !== 'undefined' | ||
if (typeof DEBUG !== 'undefined' && DEBUG) { | ||
if (!hasDocument) { | ||
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." | ||
) } | ||
} | ||
/* | ||
type StyleObject = { | ||
id: number; | ||
parts: Array<StyleObjectPart> | ||
} | ||
type StyleObjectPart = { | ||
css: string; | ||
media: string; | ||
sourceMap: ?string | ||
} | ||
*/ | ||
var stylesInDom = {/* | ||
[id: number]: { | ||
id: number, | ||
refs: number, | ||
parts: Array<(obj?: StyleObjectPart) => void> | ||
} | ||
*/} | ||
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0]) | ||
var singletonElement = null | ||
var singletonCounter = 0 | ||
var isProduction = false | ||
var noop = function () {} | ||
var options = null | ||
var ssrIdKey = 'data-vue-ssr-id' | ||
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style> | ||
// tags it will allow on a page | ||
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase()) | ||
function addStylesClient (parentId, list, _isProduction, _options) { | ||
isProduction = _isProduction | ||
options = _options || {} | ||
var styles = listToStyles(parentId, list) | ||
addStylesToDom(styles) | ||
return function update (newList) { | ||
var mayRemove = [] | ||
for (var i = 0; i < styles.length; i++) { | ||
var item = styles[i] | ||
var domStyle = stylesInDom[item.id] | ||
domStyle.refs-- | ||
mayRemove.push(domStyle) | ||
} | ||
if (newList) { | ||
styles = listToStyles(parentId, newList) | ||
addStylesToDom(styles) | ||
} else { | ||
styles = [] | ||
} | ||
for (var i = 0; i < mayRemove.length; i++) { | ||
var domStyle = mayRemove[i] | ||
if (domStyle.refs === 0) { | ||
for (var j = 0; j < domStyle.parts.length; j++) { | ||
domStyle.parts[j]() | ||
} | ||
delete stylesInDom[domStyle.id] | ||
} | ||
} | ||
} | ||
} | ||
function addStylesToDom (styles /* Array<StyleObject> */) { | ||
for (var i = 0; i < styles.length; i++) { | ||
var item = styles[i] | ||
var domStyle = stylesInDom[item.id] | ||
if (domStyle) { | ||
domStyle.refs++ | ||
for (var j = 0; j < domStyle.parts.length; j++) { | ||
domStyle.parts[j](item.parts[j]) | ||
} | ||
for (; j < item.parts.length; j++) { | ||
domStyle.parts.push(addStyle(item.parts[j])) | ||
} | ||
if (domStyle.parts.length > item.parts.length) { | ||
domStyle.parts.length = item.parts.length | ||
} | ||
} else { | ||
var parts = [] | ||
for (var j = 0; j < item.parts.length; j++) { | ||
parts.push(addStyle(item.parts[j])) | ||
} | ||
stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts } | ||
} | ||
} | ||
} | ||
function createStyleElement () { | ||
var styleElement = document.createElement('style') | ||
styleElement.type = 'text/css' | ||
head.appendChild(styleElement) | ||
return styleElement | ||
} | ||
function addStyle (obj /* StyleObjectPart */) { | ||
var update, remove | ||
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]') | ||
if (styleElement) { | ||
if (isProduction) { | ||
// has SSR styles and in production mode. | ||
// simply do nothing. | ||
return noop | ||
} else { | ||
// has SSR styles but in dev mode. | ||
// for some reason Chrome can't handle source map in server-rendered | ||
// style tags - source maps in <style> only works if the style tag is | ||
// created and inserted dynamically. So we remove the server rendered | ||
// styles and inject new ones. | ||
styleElement.parentNode.removeChild(styleElement) | ||
} | ||
} | ||
if (isOldIE) { | ||
// use singleton mode for IE9. | ||
var styleIndex = singletonCounter++ | ||
styleElement = singletonElement || (singletonElement = createStyleElement()) | ||
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false) | ||
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true) | ||
} else { | ||
// use multi-style-tag mode in all other cases | ||
styleElement = createStyleElement() | ||
update = applyToTag.bind(null, styleElement) | ||
remove = function () { | ||
styleElement.parentNode.removeChild(styleElement) | ||
} | ||
} | ||
update(obj) | ||
return function updateStyle (newObj /* StyleObjectPart */) { | ||
if (newObj) { | ||
if (newObj.css === obj.css && | ||
newObj.media === obj.media && | ||
newObj.sourceMap === obj.sourceMap) { | ||
return | ||
} | ||
update(obj = newObj) | ||
} else { | ||
remove() | ||
} | ||
} | ||
} | ||
var replaceText = (function () { | ||
var textStore = [] | ||
return function (index, replacement) { | ||
textStore[index] = replacement | ||
return textStore.filter(Boolean).join('\n') | ||
} | ||
})() | ||
function applyToSingletonTag (styleElement, index, remove, obj) { | ||
var css = remove ? '' : obj.css | ||
if (styleElement.styleSheet) { | ||
styleElement.styleSheet.cssText = replaceText(index, css) | ||
} else { | ||
var cssNode = document.createTextNode(css) | ||
var childNodes = styleElement.childNodes | ||
if (childNodes[index]) styleElement.removeChild(childNodes[index]) | ||
if (childNodes.length) { | ||
styleElement.insertBefore(cssNode, childNodes[index]) | ||
} else { | ||
styleElement.appendChild(cssNode) | ||
} | ||
} | ||
} | ||
function applyToTag (styleElement, obj) { | ||
var css = obj.css | ||
var media = obj.media | ||
var sourceMap = obj.sourceMap | ||
if (media) { | ||
styleElement.setAttribute('media', media) | ||
} | ||
if (options.ssrId) { | ||
styleElement.setAttribute(ssrIdKey, obj.id) | ||
} | ||
if (sourceMap) { | ||
// https://developer.chrome.com/devtools/docs/javascript-debugging | ||
// this makes source maps inside style tags work properly in Chrome | ||
css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */' | ||
// http://stackoverflow.com/a/26603875 | ||
css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */' | ||
} | ||
if (styleElement.styleSheet) { | ||
styleElement.styleSheet.cssText = css | ||
} else { | ||
while (styleElement.firstChild) { | ||
styleElement.removeChild(styleElement.firstChild) | ||
} | ||
styleElement.appendChild(document.createTextNode(css)) | ||
} | ||
} | ||
/***/ }), | ||
/***/ "1c25": | ||
@@ -375,3 +97,3 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// This file is imported into lib/wc client bundles. | ||
@@ -393,3 +115,3 @@ | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3928de52-vue-loader-template"}!/home/runner/work/kongponents/kongponents/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/home/runner/work/kongponents/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/runner/work/kongponents/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=template&id=2c678ffa&scoped=true& | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"66dbeb93-vue-loader-template"}!/Users/tong/Documents/repos/kongponents/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/tong/Documents/repos/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/tong/Documents/repos/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=template&id=2c678ffa&scoped=true& | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kong-card",class:[_vm.borderVariant, {'hover': _vm.hasHover }]},[(_vm.title || _vm.$scopedSlots.title || _vm.$scopedSlots.actions || _vm.$slots.title)?_c('div',{staticClass:"k-card-header"},[_c('div',{staticClass:"k-card-title"},[_c('h4',[_vm._t("title",[_vm._v(_vm._s(_vm.title))])],2)]),_c('div',{staticClass:"k-card-actions"},[_vm._t("actions")],2)]):_vm._e(),_c('div',{staticClass:"k-card-body"},[_vm._t("body",[_vm._v(_vm._s(_vm.body))])],2)])} | ||
@@ -401,3 +123,3 @@ var staticRenderFns = [] | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/runner/work/kongponents/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/tong/Documents/repos/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=script&lang=js& | ||
// | ||
@@ -470,3 +192,3 @@ // | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
@@ -587,3 +309,3 @@ | ||
/* harmony default export */ var KCard = (component.exports); | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
@@ -597,17 +319,2 @@ | ||
/***/ "1c56": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
// load the styles | ||
var content = __webpack_require__("05aa"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
if(content.locals) module.exports = content.locals; | ||
// add the styles to the DOM | ||
var add = __webpack_require__("0ed3").default | ||
var update = add("2639eccc", content, true, {"sourceMap":false,"shadowMode":false}); | ||
/***/ }), | ||
/***/ "337e": | ||
@@ -617,6 +324,6 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"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_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_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1c56"); | ||
/* 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_KCard_vue_vue_type_style_index_0_id_2c678ffa_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_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e874"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_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_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_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
@@ -668,83 +375,7 @@ /***/ }), | ||
/***/ "443a": | ||
/***/ (function(module, exports) { | ||
/***/ "e874": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/* | ||
MIT License http://www.opensource.org/licenses/mit-license.php | ||
Author Tobias Koppers @sokra | ||
*/ | ||
// css base code, injected by the css-loader | ||
module.exports = function(useSourceMap) { | ||
var list = []; | ||
// extracted by mini-css-extract-plugin | ||
// return the list of modules as css string | ||
list.toString = function toString() { | ||
return this.map(function (item) { | ||
var content = cssWithMappingToString(item, useSourceMap); | ||
if(item[2]) { | ||
return "@media " + item[2] + "{" + content + "}"; | ||
} else { | ||
return content; | ||
} | ||
}).join(""); | ||
}; | ||
// import a list of modules into the list | ||
list.i = function(modules, mediaQuery) { | ||
if(typeof modules === "string") | ||
modules = [[null, modules, ""]]; | ||
var alreadyImportedModules = {}; | ||
for(var i = 0; i < this.length; i++) { | ||
var id = this[i][0]; | ||
if(typeof id === "number") | ||
alreadyImportedModules[id] = true; | ||
} | ||
for(i = 0; i < modules.length; i++) { | ||
var item = modules[i]; | ||
// skip already imported module | ||
// this implementation is not 100% perfect for weird media query combinations | ||
// when a module is imported multiple times with different media queries. | ||
// I hope this will never occur (Hey this way we have smaller bundles) | ||
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { | ||
if(mediaQuery && !item[2]) { | ||
item[2] = mediaQuery; | ||
} else if(mediaQuery) { | ||
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; | ||
} | ||
list.push(item); | ||
} | ||
} | ||
}; | ||
return list; | ||
}; | ||
function cssWithMappingToString(item, useSourceMap) { | ||
var content = item[1] || ''; | ||
var cssMapping = item[3]; | ||
if (!cssMapping) { | ||
return content; | ||
} | ||
if (useSourceMap && typeof btoa === 'function') { | ||
var sourceMapping = toComment(cssMapping); | ||
var sourceURLs = cssMapping.sources.map(function (source) { | ||
return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' | ||
}); | ||
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); | ||
} | ||
return [content].join('\n'); | ||
} | ||
// Adapted from convert-source-map (MIT) | ||
function toComment(sourceMap) { | ||
// eslint-disable-next-line no-undef | ||
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); | ||
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; | ||
return '/*# ' + data + ' */'; | ||
} | ||
/***/ }) | ||
@@ -751,0 +382,0 @@ |
@@ -99,280 +99,2 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/***/ "05aa": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
exports = module.exports = __webpack_require__("443a")(false); | ||
// imports | ||
// module | ||
exports.push([module.i, ".kong-card[data-v-2c678ffa]{padding:1rem 1rem;padding:var(--KCardPaddingY,1rem) var(--KCardPaddingX,1rem);margin-bottom:1rvar --KCardMarginY,1rem 1rem;margin-bottom:1rvar --KCardMarginY,1rem var(--KCardMarginX,1rem)}.kong-card.noBoard[data-v-2c678ffa]{border:none}.kong-card.border[data-v-2c678ffa]{border-radius:3px;border:1px solid rgba(0,0,0,.1);border:1px solid var(--KCardBorder,var(--tblack-10,rgba(0,0,0,.1)));box-shadow:none}.kong-card.borderTop[data-v-2c678ffa]{border-top:1px solid rgba(0,0,0,.08)}.kong-card.hover[data-v-2c678ffa]:hover{box-shadow:0 4px 8px rgba(0,0,0,.1);box-shadow:0 4px 8px var(--tblack-10,rgba(0,0,0,.1))}.kong-card .k-card-header[data-v-2c678ffa]{display:flex;align-items:center;margin-bottom:1rem}.kong-card .k-card-title h4[data-v-2c678ffa]{margin:0;font-size:18px;font-size:var(--KCardTitleFontSize,var(--type-lg,18px));font-weight:500;color:rgba(0,0,0,.85);color:var(--KCardTitleColor,var(--tblack-85,rgba(0,0,0,.85)))}.kong-card .k-card-actions[data-v-2c678ffa]{margin-left:auto}", ""]); | ||
// exports | ||
/***/ }), | ||
/***/ "0ed3": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/vue-style-loader/lib/listToStyles.js | ||
/** | ||
* Translates the list format produced by css-loader into something | ||
* easier to manipulate. | ||
*/ | ||
function listToStyles (parentId, list) { | ||
var styles = [] | ||
var newStyles = {} | ||
for (var i = 0; i < list.length; i++) { | ||
var item = list[i] | ||
var id = item[0] | ||
var css = item[1] | ||
var media = item[2] | ||
var sourceMap = item[3] | ||
var part = { | ||
id: parentId + ':' + i, | ||
css: css, | ||
media: media, | ||
sourceMap: sourceMap | ||
} | ||
if (!newStyles[id]) { | ||
styles.push(newStyles[id] = { id: id, parts: [part] }) | ||
} else { | ||
newStyles[id].parts.push(part) | ||
} | ||
} | ||
return styles | ||
} | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/vue-style-loader/lib/addStylesClient.js | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; }); | ||
/* | ||
MIT License http://www.opensource.org/licenses/mit-license.php | ||
Author Tobias Koppers @sokra | ||
Modified by Evan You @yyx990803 | ||
*/ | ||
var hasDocument = typeof document !== 'undefined' | ||
if (typeof DEBUG !== 'undefined' && DEBUG) { | ||
if (!hasDocument) { | ||
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." | ||
) } | ||
} | ||
/* | ||
type StyleObject = { | ||
id: number; | ||
parts: Array<StyleObjectPart> | ||
} | ||
type StyleObjectPart = { | ||
css: string; | ||
media: string; | ||
sourceMap: ?string | ||
} | ||
*/ | ||
var stylesInDom = {/* | ||
[id: number]: { | ||
id: number, | ||
refs: number, | ||
parts: Array<(obj?: StyleObjectPart) => void> | ||
} | ||
*/} | ||
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0]) | ||
var singletonElement = null | ||
var singletonCounter = 0 | ||
var isProduction = false | ||
var noop = function () {} | ||
var options = null | ||
var ssrIdKey = 'data-vue-ssr-id' | ||
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style> | ||
// tags it will allow on a page | ||
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase()) | ||
function addStylesClient (parentId, list, _isProduction, _options) { | ||
isProduction = _isProduction | ||
options = _options || {} | ||
var styles = listToStyles(parentId, list) | ||
addStylesToDom(styles) | ||
return function update (newList) { | ||
var mayRemove = [] | ||
for (var i = 0; i < styles.length; i++) { | ||
var item = styles[i] | ||
var domStyle = stylesInDom[item.id] | ||
domStyle.refs-- | ||
mayRemove.push(domStyle) | ||
} | ||
if (newList) { | ||
styles = listToStyles(parentId, newList) | ||
addStylesToDom(styles) | ||
} else { | ||
styles = [] | ||
} | ||
for (var i = 0; i < mayRemove.length; i++) { | ||
var domStyle = mayRemove[i] | ||
if (domStyle.refs === 0) { | ||
for (var j = 0; j < domStyle.parts.length; j++) { | ||
domStyle.parts[j]() | ||
} | ||
delete stylesInDom[domStyle.id] | ||
} | ||
} | ||
} | ||
} | ||
function addStylesToDom (styles /* Array<StyleObject> */) { | ||
for (var i = 0; i < styles.length; i++) { | ||
var item = styles[i] | ||
var domStyle = stylesInDom[item.id] | ||
if (domStyle) { | ||
domStyle.refs++ | ||
for (var j = 0; j < domStyle.parts.length; j++) { | ||
domStyle.parts[j](item.parts[j]) | ||
} | ||
for (; j < item.parts.length; j++) { | ||
domStyle.parts.push(addStyle(item.parts[j])) | ||
} | ||
if (domStyle.parts.length > item.parts.length) { | ||
domStyle.parts.length = item.parts.length | ||
} | ||
} else { | ||
var parts = [] | ||
for (var j = 0; j < item.parts.length; j++) { | ||
parts.push(addStyle(item.parts[j])) | ||
} | ||
stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts } | ||
} | ||
} | ||
} | ||
function createStyleElement () { | ||
var styleElement = document.createElement('style') | ||
styleElement.type = 'text/css' | ||
head.appendChild(styleElement) | ||
return styleElement | ||
} | ||
function addStyle (obj /* StyleObjectPart */) { | ||
var update, remove | ||
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]') | ||
if (styleElement) { | ||
if (isProduction) { | ||
// has SSR styles and in production mode. | ||
// simply do nothing. | ||
return noop | ||
} else { | ||
// has SSR styles but in dev mode. | ||
// for some reason Chrome can't handle source map in server-rendered | ||
// style tags - source maps in <style> only works if the style tag is | ||
// created and inserted dynamically. So we remove the server rendered | ||
// styles and inject new ones. | ||
styleElement.parentNode.removeChild(styleElement) | ||
} | ||
} | ||
if (isOldIE) { | ||
// use singleton mode for IE9. | ||
var styleIndex = singletonCounter++ | ||
styleElement = singletonElement || (singletonElement = createStyleElement()) | ||
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false) | ||
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true) | ||
} else { | ||
// use multi-style-tag mode in all other cases | ||
styleElement = createStyleElement() | ||
update = applyToTag.bind(null, styleElement) | ||
remove = function () { | ||
styleElement.parentNode.removeChild(styleElement) | ||
} | ||
} | ||
update(obj) | ||
return function updateStyle (newObj /* StyleObjectPart */) { | ||
if (newObj) { | ||
if (newObj.css === obj.css && | ||
newObj.media === obj.media && | ||
newObj.sourceMap === obj.sourceMap) { | ||
return | ||
} | ||
update(obj = newObj) | ||
} else { | ||
remove() | ||
} | ||
} | ||
} | ||
var replaceText = (function () { | ||
var textStore = [] | ||
return function (index, replacement) { | ||
textStore[index] = replacement | ||
return textStore.filter(Boolean).join('\n') | ||
} | ||
})() | ||
function applyToSingletonTag (styleElement, index, remove, obj) { | ||
var css = remove ? '' : obj.css | ||
if (styleElement.styleSheet) { | ||
styleElement.styleSheet.cssText = replaceText(index, css) | ||
} else { | ||
var cssNode = document.createTextNode(css) | ||
var childNodes = styleElement.childNodes | ||
if (childNodes[index]) styleElement.removeChild(childNodes[index]) | ||
if (childNodes.length) { | ||
styleElement.insertBefore(cssNode, childNodes[index]) | ||
} else { | ||
styleElement.appendChild(cssNode) | ||
} | ||
} | ||
} | ||
function applyToTag (styleElement, obj) { | ||
var css = obj.css | ||
var media = obj.media | ||
var sourceMap = obj.sourceMap | ||
if (media) { | ||
styleElement.setAttribute('media', media) | ||
} | ||
if (options.ssrId) { | ||
styleElement.setAttribute(ssrIdKey, obj.id) | ||
} | ||
if (sourceMap) { | ||
// https://developer.chrome.com/devtools/docs/javascript-debugging | ||
// this makes source maps inside style tags work properly in Chrome | ||
css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */' | ||
// http://stackoverflow.com/a/26603875 | ||
css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */' | ||
} | ||
if (styleElement.styleSheet) { | ||
styleElement.styleSheet.cssText = css | ||
} else { | ||
while (styleElement.firstChild) { | ||
styleElement.removeChild(styleElement.firstChild) | ||
} | ||
styleElement.appendChild(document.createTextNode(css)) | ||
} | ||
} | ||
/***/ }), | ||
/***/ "1c25": | ||
@@ -384,3 +106,3 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// This file is imported into lib/wc client bundles. | ||
@@ -402,3 +124,3 @@ | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3928de52-vue-loader-template"}!/home/runner/work/kongponents/kongponents/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/home/runner/work/kongponents/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/runner/work/kongponents/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=template&id=2c678ffa&scoped=true& | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"66dbeb93-vue-loader-template"}!/Users/tong/Documents/repos/kongponents/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/tong/Documents/repos/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/tong/Documents/repos/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=template&id=2c678ffa&scoped=true& | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kong-card",class:[_vm.borderVariant, {'hover': _vm.hasHover }]},[(_vm.title || _vm.$scopedSlots.title || _vm.$scopedSlots.actions || _vm.$slots.title)?_c('div',{staticClass:"k-card-header"},[_c('div',{staticClass:"k-card-title"},[_c('h4',[_vm._t("title",[_vm._v(_vm._s(_vm.title))])],2)]),_c('div',{staticClass:"k-card-actions"},[_vm._t("actions")],2)]):_vm._e(),_c('div',{staticClass:"k-card-body"},[_vm._t("body",[_vm._v(_vm._s(_vm.body))])],2)])} | ||
@@ -410,3 +132,3 @@ var staticRenderFns = [] | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/runner/work/kongponents/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/tong/Documents/repos/kongponents/node_modules/vue-loader/lib??vue-loader-options!./KCard.vue?vue&type=script&lang=js& | ||
// | ||
@@ -479,3 +201,3 @@ // | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
@@ -596,3 +318,3 @@ | ||
/* harmony default export */ var KCard = (component.exports); | ||
// CONCATENATED MODULE: /home/runner/work/kongponents/kongponents/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
// CONCATENATED MODULE: /Users/tong/Documents/repos/kongponents/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
@@ -606,17 +328,2 @@ | ||
/***/ "1c56": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
// load the styles | ||
var content = __webpack_require__("05aa"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
if(content.locals) module.exports = content.locals; | ||
// add the styles to the DOM | ||
var add = __webpack_require__("0ed3").default | ||
var update = add("2639eccc", content, true, {"sourceMap":false,"shadowMode":false}); | ||
/***/ }), | ||
/***/ "337e": | ||
@@ -626,6 +333,6 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"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_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_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1c56"); | ||
/* 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_KCard_vue_vue_type_style_index_0_id_2c678ffa_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_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e874"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_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_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_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_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_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KCard_vue_vue_type_style_index_0_id_2c678ffa_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
@@ -677,83 +384,7 @@ /***/ }), | ||
/***/ "443a": | ||
/***/ (function(module, exports) { | ||
/***/ "e874": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/* | ||
MIT License http://www.opensource.org/licenses/mit-license.php | ||
Author Tobias Koppers @sokra | ||
*/ | ||
// css base code, injected by the css-loader | ||
module.exports = function(useSourceMap) { | ||
var list = []; | ||
// extracted by mini-css-extract-plugin | ||
// return the list of modules as css string | ||
list.toString = function toString() { | ||
return this.map(function (item) { | ||
var content = cssWithMappingToString(item, useSourceMap); | ||
if(item[2]) { | ||
return "@media " + item[2] + "{" + content + "}"; | ||
} else { | ||
return content; | ||
} | ||
}).join(""); | ||
}; | ||
// import a list of modules into the list | ||
list.i = function(modules, mediaQuery) { | ||
if(typeof modules === "string") | ||
modules = [[null, modules, ""]]; | ||
var alreadyImportedModules = {}; | ||
for(var i = 0; i < this.length; i++) { | ||
var id = this[i][0]; | ||
if(typeof id === "number") | ||
alreadyImportedModules[id] = true; | ||
} | ||
for(i = 0; i < modules.length; i++) { | ||
var item = modules[i]; | ||
// skip already imported module | ||
// this implementation is not 100% perfect for weird media query combinations | ||
// when a module is imported multiple times with different media queries. | ||
// I hope this will never occur (Hey this way we have smaller bundles) | ||
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { | ||
if(mediaQuery && !item[2]) { | ||
item[2] = mediaQuery; | ||
} else if(mediaQuery) { | ||
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; | ||
} | ||
list.push(item); | ||
} | ||
} | ||
}; | ||
return list; | ||
}; | ||
function cssWithMappingToString(item, useSourceMap) { | ||
var content = item[1] || ''; | ||
var cssMapping = item[3]; | ||
if (!cssMapping) { | ||
return content; | ||
} | ||
if (useSourceMap && typeof btoa === 'function') { | ||
var sourceMapping = toComment(cssMapping); | ||
var sourceURLs = cssMapping.sources.map(function (source) { | ||
return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' | ||
}); | ||
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); | ||
} | ||
return [content].join('\n'); | ||
} | ||
// Adapted from convert-source-map (MIT) | ||
function toComment(sourceMap) { | ||
// eslint-disable-next-line no-undef | ||
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); | ||
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; | ||
return '/*# ' + data + ' */'; | ||
} | ||
/***/ }) | ||
@@ -760,0 +391,0 @@ |
@@ -1,2 +0,2 @@ | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["KCard"]=t():e["KCard"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="1c25")}({"05aa":function(e,t,r){t=e.exports=r("443a")(!1),t.push([e.i,".kong-card[data-v-2c678ffa]{padding:1rem 1rem;padding:var(--KCardPaddingY,1rem) var(--KCardPaddingX,1rem);margin-bottom:1rvar --KCardMarginY,1rem 1rem;margin-bottom:1rvar --KCardMarginY,1rem var(--KCardMarginX,1rem)}.kong-card.noBoard[data-v-2c678ffa]{border:none}.kong-card.border[data-v-2c678ffa]{border-radius:3px;border:1px solid rgba(0,0,0,.1);border:1px solid var(--KCardBorder,var(--tblack-10,rgba(0,0,0,.1)));box-shadow:none}.kong-card.borderTop[data-v-2c678ffa]{border-top:1px solid rgba(0,0,0,.08)}.kong-card.hover[data-v-2c678ffa]:hover{box-shadow:0 4px 8px rgba(0,0,0,.1);box-shadow:0 4px 8px var(--tblack-10,rgba(0,0,0,.1))}.kong-card .k-card-header[data-v-2c678ffa]{display:flex;align-items:center;margin-bottom:1rem}.kong-card .k-card-title h4[data-v-2c678ffa]{margin:0;font-size:18px;font-size:var(--KCardTitleFontSize,var(--type-lg,18px));font-weight:500;color:rgba(0,0,0,.85);color:var(--KCardTitleColor,var(--tblack-85,rgba(0,0,0,.85)))}.kong-card .k-card-actions[data-v-2c678ffa]{margin-left:auto}",""])},"0ed3":function(e,t,r){"use strict";function n(e,t){for(var r=[],n={},a=0;a<t.length;a++){var o=t[a],i=o[0],s=o[1],d=o[2],c=o[3],u={id:e+":"+a,css:s,media:d,sourceMap:c};n[i]?n[i].parts.push(u):r.push(n[i]={id:i,parts:[u]})}return r}r.r(t),r.d(t,"default",(function(){return v}));var a="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!a)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 o={},i=a&&(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 v(e,t,r,a){c=r,f=a||{};var i=n(e,t);return g(i),function(t){for(var r=[],a=0;a<i.length;a++){var s=i[a],d=o[s.id];d.refs--,r.push(d)}t?(i=n(e,t),g(i)):i=[];for(a=0;a<r.length;a++){d=r[a];if(0===d.refs){for(var c=0;c<d.parts.length;c++)d.parts[c]();delete o[d.id]}}}}function g(e){for(var t=0;t<e.length;t++){var r=e[t],n=o[r.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](r.parts[a]);for(;a<r.parts.length;a++)n.parts.push(m(r.parts[a]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var i=[];for(a=0;a<r.parts.length;a++)i.push(m(r.parts[a]));o[r.id]={id:r.id,refs:1,parts:i}}}}function h(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function m(e){var t,r,n=document.querySelector("style["+l+'~="'+e.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n)}if(p){var a=d++;n=s||(s=h()),t=y.bind(null,n,a,!1),r=y.bind(null,n,a,!0)}else n=h(),t=C.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var b=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function y(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function C(e,t){var r=t.css,n=t.media,a=t.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(l,t.id),a&&(r+="\n/*# sourceURL="+a.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},"1c25":function(e,t,r){"use strict";var n;(r.r(t),"undefined"!==typeof window)&&(r("4141"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"kong-card",class:[e.borderVariant,{hover:e.hasHover}]},[e.title||e.$scopedSlots.title||e.$scopedSlots.actions||e.$slots.title?r("div",{staticClass:"k-card-header"},[r("div",{staticClass:"k-card-title"},[r("h4",[e._t("title",[e._v(e._s(e.title))])],2)]),r("div",{staticClass:"k-card-actions"},[e._t("actions")],2)]):e._e(),r("div",{staticClass:"k-card-body"},[e._t("body",[e._v(e._s(e.body))])],2)])},o=[],i={name:"KCard",props:{title:{type:String,default:""},body:{type:String,default:""},borderVariant:{type:String,default:"border"},hasHover:{type:Boolean,default:!1}}},s=i;r("337e");function d(e,t,r,n,a,o,i,s){var d,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=d):a&&(d=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),d)if(c.functional){c._injectStyles=d;var u=c.render;c.render=function(e,t){return d.call(t),u(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:c}}var c=d(s,a,o,!1,null,"2c678ffa",null),u=c.exports;t["default"]=u},"1c56":function(e,t,r){var n=r("05aa");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("0ed3").default;a("2639eccc",n,!0,{sourceMap:!1,shadowMode:!1})},"337e":function(e,t,r){"use strict";var n=r("1c56"),a=r.n(n);a.a},4141:function(e,t){(function(e){var t="currentScript",r=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in r)if(r[e].src==t||"interactive"==r[e].readyState)return r[e];return null}}})})(document)},"443a":function(e,t){function r(e,t){var r=e[1]||"",a=e[3];if(!a)return r;if(t&&"function"===typeof btoa){var o=n(a),i=a.sources.map((function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"}));return[r].concat(i).concat([o]).join("\n")}return[r].join("\n")}function n(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+r+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=r(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,r){"string"===typeof e&&(e=[[null,e,""]]);for(var n={},a=0;a<this.length;a++){var o=this[a][0];"number"===typeof o&&(n[o]=!0)}for(a=0;a<e.length;a++){var i=e[a];"number"===typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),t.push(i))}},t}}})["default"]})); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["KCard"]=t():e["KCard"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="1c25")}({"1c25":function(e,t,r){"use strict";var n;(r.r(t),"undefined"!==typeof window)&&(r("4141"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"kong-card",class:[e.borderVariant,{hover:e.hasHover}]},[e.title||e.$scopedSlots.title||e.$scopedSlots.actions||e.$slots.title?r("div",{staticClass:"k-card-header"},[r("div",{staticClass:"k-card-title"},[r("h4",[e._t("title",[e._v(e._s(e.title))])],2)]),r("div",{staticClass:"k-card-actions"},[e._t("actions")],2)]):e._e(),r("div",{staticClass:"k-card-body"},[e._t("body",[e._v(e._s(e.body))])],2)])},i=[],a={name:"KCard",props:{title:{type:String,default:""},body:{type:String,default:""},borderVariant:{type:String,default:"border"},hasHover:{type:Boolean,default:!1}}},s=a;r("337e");function c(e,t,r,n,o,i,a,s){var c,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=r,d._compiled=!0),n&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(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(a)},d._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var u=d.render;d.render=function(e,t){return c.call(t),u(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:d}}var d=c(s,o,i,!1,null,"2c678ffa",null),u=d.exports;t["default"]=u},"337e":function(e,t,r){"use strict";var n=r("e874"),o=r.n(n);o.a},4141:function(e,t){(function(e){var t="currentScript",r=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in r)if(r[e].src==t||"interactive"==r[e].readyState)return r[e];return null}}})})(document)},e874:function(e,t,r){}})["default"]})); | ||
//# sourceMappingURL=KCard.umd.min.js.map |
{ | ||
"name": "@kongponents/kcard", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Card component", | ||
@@ -22,3 +22,3 @@ "main": "dist/KCard.umd.min.js", | ||
"homepage": "https://github.com/Kong/kongponents#readme", | ||
"gitHead": "ef4ecf46d2104f6db045e84d2b3e347c2ac03c44" | ||
"gitHead": "33adba35716632c56e61fc90fafefee4072da636" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13
0
98705
681