@pocketprep/ui-kit 2.0.41 → 2.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@pocketprep/ui-kit.common.js +236 -1
- package/dist/@pocketprep/ui-kit.common.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.js +236 -1
- package/dist/@pocketprep/ui-kit.umd.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.min.js +3 -3
- package/dist/@pocketprep/ui-kit.umd.min.js.map +1 -1
- package/dist/img/empty-state-blob-white.450f9070.svg +3 -0
- package/dist/img/empty-state-blob-yellow.1be81f84.svg +3 -0
- package/dist/img/empty-state-correct-blob.d5efd8d5.svg +3 -0
- package/dist/img/empty-state-incorrect-blob.6575d851.svg +3 -0
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/pocketprep-export.module.scss +1 -0
- package/styles/_colors.scss +1 -0
|
@@ -885,6 +885,58 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
885
885
|
|
|
886
886
|
/***/ }),
|
|
887
887
|
|
|
888
|
+
/***/ 73085:
|
|
889
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
890
|
+
|
|
891
|
+
"use strict";
|
|
892
|
+
// ESM COMPAT FLAG
|
|
893
|
+
__webpack_require__.r(__webpack_exports__);
|
|
894
|
+
|
|
895
|
+
// EXPORTS
|
|
896
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
897
|
+
"__esModule": () => (/* reexport */ EmptyStatevue_type_script_lang_ts_/* __esModule */.X),
|
|
898
|
+
"default": () => (/* binding */ EmptyState)
|
|
899
|
+
});
|
|
900
|
+
|
|
901
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmptyStates/EmptyState.vue?vue&type=template&id=66c310e0&
|
|
902
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"uikit-empty-state"},[_vm._t("imageRow",function(){return [_c('div',{staticClass:"uikit-empty-state__row"},[_vm._t("image",function(){return [_c('img',{staticClass:"uikit-empty-state__blob",attrs:{"src":_vm.blobType}}),_vm._t("icon",function(){return [_c('Icon',{staticClass:"uikit-empty-state__icon",style:({ color: _vm.iconColor }),attrs:{"type":_vm.iconType,"secondary-color":_vm.brandColors.bananaBread}})]})]})],2)]}),_c('div',{staticClass:"uikit-empty-state__title"},[_vm._t("emptyStateTitle",function(){return [_vm._v(" "+_vm._s(_vm.title)+" ")]})],2),_c('div',{staticClass:"uikit-empty-state__message"},[_vm._t("emptyStateMessage",function(){return [_vm._v(" "+_vm._s(_vm.message)+" ")]})],2)],2)}
|
|
903
|
+
var staticRenderFns = []
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
// EXTERNAL MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[0].rules[0].use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmptyStates/EmptyState.vue?vue&type=script&lang=ts&
|
|
907
|
+
var EmptyStatevue_type_script_lang_ts_ = __webpack_require__(23060);
|
|
908
|
+
;// CONCATENATED MODULE: ./src/components/EmptyStates/EmptyState.vue?vue&type=script&lang=ts&
|
|
909
|
+
/* harmony default export */ const EmptyStates_EmptyStatevue_type_script_lang_ts_ = (EmptyStatevue_type_script_lang_ts_/* default */.Z);
|
|
910
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmptyStates/EmptyState.vue?vue&type=style&index=0&lang=scss&
|
|
911
|
+
var EmptyStatevue_type_style_index_0_lang_scss_ = __webpack_require__(47397);
|
|
912
|
+
;// CONCATENATED MODULE: ./src/components/EmptyStates/EmptyState.vue?vue&type=style&index=0&lang=scss&
|
|
913
|
+
|
|
914
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
915
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
916
|
+
;// CONCATENATED MODULE: ./src/components/EmptyStates/EmptyState.vue
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
;
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
/* normalize component */
|
|
924
|
+
|
|
925
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
926
|
+
EmptyStates_EmptyStatevue_type_script_lang_ts_,
|
|
927
|
+
render,
|
|
928
|
+
staticRenderFns,
|
|
929
|
+
false,
|
|
930
|
+
null,
|
|
931
|
+
null,
|
|
932
|
+
null
|
|
933
|
+
|
|
934
|
+
)
|
|
935
|
+
|
|
936
|
+
/* harmony default export */ const EmptyState = (component.exports);
|
|
937
|
+
|
|
938
|
+
/***/ }),
|
|
939
|
+
|
|
888
940
|
/***/ 15950:
|
|
889
941
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
890
942
|
|
|
@@ -14157,6 +14209,30 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".uikit-toggle-switch{background-color:
|
|
|
14157
14209
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
14158
14210
|
|
|
14159
14211
|
|
|
14212
|
+
/***/ }),
|
|
14213
|
+
|
|
14214
|
+
/***/ 12138:
|
|
14215
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
14216
|
+
|
|
14217
|
+
"use strict";
|
|
14218
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14219
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14220
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14221
|
+
/* harmony export */ });
|
|
14222
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8081);
|
|
14223
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
14224
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23645);
|
|
14225
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
14226
|
+
// Imports
|
|
14227
|
+
|
|
14228
|
+
|
|
14229
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
14230
|
+
// Module
|
|
14231
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".uikit-empty-state{text-align:center;padding:0 42px 0 41px;margin-top:33px;max-width:300px}.uikit-empty-state__icon{height:22px;width:22px;position:relative;top:-5px;left:-30px}.uikit-empty-state__row{margin-top:0;margin-right:auto;margin-bottom:10px;margin-left:20px}.uikit-empty-state__title{color:#1f3545;font-size:15px;font-weight:600;line-height:20px;text-align:center;margin-bottom:8px}.uikit-empty-state__message{color:#475967;font-weight:500;font-size:14px;line-height:21px;text-align:center;padding:0 20px}", ""]);
|
|
14232
|
+
// Exports
|
|
14233
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
14234
|
+
|
|
14235
|
+
|
|
14160
14236
|
/***/ }),
|
|
14161
14237
|
|
|
14162
14238
|
/***/ 41907:
|
|
@@ -15129,7 +15205,8 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
15129
15205
|
"field": "#00a87a",
|
|
15130
15206
|
"scifiTakeout": "#00654a",
|
|
15131
15207
|
"orangeSoda": "#ff5e3e",
|
|
15132
|
-
"sunsetPapaya": "#ff7d63"
|
|
15208
|
+
"sunsetPapaya": "#ff7d63",
|
|
15209
|
+
"caramel": "#ce8500"
|
|
15133
15210
|
};
|
|
15134
15211
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
15135
15212
|
|
|
@@ -18073,6 +18150,113 @@ exports.Z = ToggleSwitch;
|
|
|
18073
18150
|
|
|
18074
18151
|
/***/ }),
|
|
18075
18152
|
|
|
18153
|
+
/***/ 23060:
|
|
18154
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18155
|
+
|
|
18156
|
+
"use strict";
|
|
18157
|
+
|
|
18158
|
+
|
|
18159
|
+
var _classCallCheck = (__webpack_require__(55729)["default"]);
|
|
18160
|
+
|
|
18161
|
+
var _createClass = (__webpack_require__(33918)["default"]);
|
|
18162
|
+
|
|
18163
|
+
var _inherits = (__webpack_require__(30338)["default"]);
|
|
18164
|
+
|
|
18165
|
+
var _createSuper = (__webpack_require__(13400)["default"]);
|
|
18166
|
+
|
|
18167
|
+
__webpack_require__(69070);
|
|
18168
|
+
|
|
18169
|
+
Object.defineProperty(exports, "X", ({
|
|
18170
|
+
value: true
|
|
18171
|
+
}));
|
|
18172
|
+
|
|
18173
|
+
var tslib_1 = __webpack_require__(70655);
|
|
18174
|
+
|
|
18175
|
+
var vue_property_decorator_1 = __webpack_require__(70622);
|
|
18176
|
+
|
|
18177
|
+
var pocketprep_export_module_scss_1 = tslib_1.__importDefault(__webpack_require__(83769));
|
|
18178
|
+
|
|
18179
|
+
var Icon_vue_1 = tslib_1.__importDefault(__webpack_require__(65844));
|
|
18180
|
+
|
|
18181
|
+
var EmptyState = /*#__PURE__*/function (_vue_property_decorat) {
|
|
18182
|
+
_inherits(EmptyState, _vue_property_decorat);
|
|
18183
|
+
|
|
18184
|
+
var _super = _createSuper(EmptyState);
|
|
18185
|
+
|
|
18186
|
+
function EmptyState() {
|
|
18187
|
+
var _this;
|
|
18188
|
+
|
|
18189
|
+
_classCallCheck(this, EmptyState);
|
|
18190
|
+
|
|
18191
|
+
_this = _super.apply(this, arguments);
|
|
18192
|
+
_this.brandColors = pocketprep_export_module_scss_1["default"];
|
|
18193
|
+
return _this;
|
|
18194
|
+
}
|
|
18195
|
+
|
|
18196
|
+
_createClass(EmptyState, [{
|
|
18197
|
+
key: "iconType",
|
|
18198
|
+
get: function get() {
|
|
18199
|
+
if (this.state === 'incorrect') {
|
|
18200
|
+
return 'incorrect';
|
|
18201
|
+
} else if (this.state === 'correct') {
|
|
18202
|
+
return 'correct';
|
|
18203
|
+
} else if (this.state === 'flagged') {
|
|
18204
|
+
return 'flagFeedback';
|
|
18205
|
+
} // Default to activity icon
|
|
18206
|
+
|
|
18207
|
+
|
|
18208
|
+
return 'activity';
|
|
18209
|
+
}
|
|
18210
|
+
}, {
|
|
18211
|
+
key: "blobType",
|
|
18212
|
+
get: function get() {
|
|
18213
|
+
if (this.blobColor && this.blobColor === 'white') {
|
|
18214
|
+
return __webpack_require__(23898);
|
|
18215
|
+
}
|
|
18216
|
+
|
|
18217
|
+
if (this.state === 'incorrect') {
|
|
18218
|
+
return __webpack_require__(52453);
|
|
18219
|
+
} else if (this.state === 'correct') {
|
|
18220
|
+
return __webpack_require__(10114);
|
|
18221
|
+
} // Default to white blob (web study / mobile default)
|
|
18222
|
+
|
|
18223
|
+
|
|
18224
|
+
return __webpack_require__(99230);
|
|
18225
|
+
}
|
|
18226
|
+
}, {
|
|
18227
|
+
key: "iconColor",
|
|
18228
|
+
get: function get() {
|
|
18229
|
+
if (this.state === 'incorrect') {
|
|
18230
|
+
return this.brandColors.pepper;
|
|
18231
|
+
} else if (this.state === 'correct') {
|
|
18232
|
+
return this.brandColors.cadaverous;
|
|
18233
|
+
} // Default to caramel
|
|
18234
|
+
|
|
18235
|
+
|
|
18236
|
+
return this.brandColors.caramel;
|
|
18237
|
+
}
|
|
18238
|
+
}]);
|
|
18239
|
+
|
|
18240
|
+
return EmptyState;
|
|
18241
|
+
}(vue_property_decorator_1.Vue);
|
|
18242
|
+
|
|
18243
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "message", void 0);
|
|
18244
|
+
|
|
18245
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "title", void 0);
|
|
18246
|
+
|
|
18247
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "blobColor", void 0);
|
|
18248
|
+
|
|
18249
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "state", void 0);
|
|
18250
|
+
|
|
18251
|
+
EmptyState = tslib_1.__decorate([(0, vue_property_decorator_1.Component)({
|
|
18252
|
+
components: {
|
|
18253
|
+
Icon: Icon_vue_1["default"]
|
|
18254
|
+
}
|
|
18255
|
+
})], EmptyState);
|
|
18256
|
+
exports.Z = EmptyState;
|
|
18257
|
+
|
|
18258
|
+
/***/ }),
|
|
18259
|
+
|
|
18076
18260
|
/***/ 88302:
|
|
18077
18261
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18078
18262
|
|
|
@@ -26099,6 +26283,8 @@ var ToggleSwitch_vue_1 = tslib_1.__importDefault(__webpack_require__(81406));
|
|
|
26099
26283
|
|
|
26100
26284
|
var Slider_vue_1 = tslib_1.__importDefault(__webpack_require__(40659));
|
|
26101
26285
|
|
|
26286
|
+
var EmptyState_vue_1 = tslib_1.__importDefault(__webpack_require__(73085));
|
|
26287
|
+
|
|
26102
26288
|
var Button_vue_1 = tslib_1.__importDefault(__webpack_require__(61350));
|
|
26103
26289
|
|
|
26104
26290
|
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(21323));
|
|
@@ -26203,6 +26389,7 @@ var components = {
|
|
|
26203
26389
|
SegmentControl: SegmentControl_vue_1["default"],
|
|
26204
26390
|
ToggleSwitch: ToggleSwitch_vue_1["default"],
|
|
26205
26391
|
Slider: Slider_vue_1["default"],
|
|
26392
|
+
EmptyState: EmptyState_vue_1["default"],
|
|
26206
26393
|
Select: Select_vue_1["default"],
|
|
26207
26394
|
Radio: Radio_vue_1["default"],
|
|
26208
26395
|
Checkbox: Checkbox_vue_1["default"],
|
|
@@ -28577,6 +28764,22 @@ var update = add("6274a3ae", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
28577
28764
|
|
|
28578
28765
|
/***/ }),
|
|
28579
28766
|
|
|
28767
|
+
/***/ 47397:
|
|
28768
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28769
|
+
|
|
28770
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
28771
|
+
|
|
28772
|
+
// load the styles
|
|
28773
|
+
var content = __webpack_require__(12138);
|
|
28774
|
+
if(content.__esModule) content = content.default;
|
|
28775
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
28776
|
+
if(content.locals) module.exports = content.locals;
|
|
28777
|
+
// add the styles to the DOM
|
|
28778
|
+
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
28779
|
+
var update = add("4804c203", content, true, {"sourceMap":false,"shadowMode":false});
|
|
28780
|
+
|
|
28781
|
+
/***/ }),
|
|
28782
|
+
|
|
28580
28783
|
/***/ 91129:
|
|
28581
28784
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28582
28785
|
|
|
@@ -29433,6 +29636,38 @@ function applyToTag (styleElement, obj) {
|
|
|
29433
29636
|
}
|
|
29434
29637
|
|
|
29435
29638
|
|
|
29639
|
+
/***/ }),
|
|
29640
|
+
|
|
29641
|
+
/***/ 23898:
|
|
29642
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29643
|
+
|
|
29644
|
+
"use strict";
|
|
29645
|
+
module.exports = __webpack_require__.p + "img/empty-state-blob-white.450f9070.svg";
|
|
29646
|
+
|
|
29647
|
+
/***/ }),
|
|
29648
|
+
|
|
29649
|
+
/***/ 99230:
|
|
29650
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29651
|
+
|
|
29652
|
+
"use strict";
|
|
29653
|
+
module.exports = __webpack_require__.p + "img/empty-state-blob-yellow.1be81f84.svg";
|
|
29654
|
+
|
|
29655
|
+
/***/ }),
|
|
29656
|
+
|
|
29657
|
+
/***/ 10114:
|
|
29658
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29659
|
+
|
|
29660
|
+
"use strict";
|
|
29661
|
+
module.exports = __webpack_require__.p + "img/empty-state-correct-blob.d5efd8d5.svg";
|
|
29662
|
+
|
|
29663
|
+
/***/ }),
|
|
29664
|
+
|
|
29665
|
+
/***/ 52453:
|
|
29666
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29667
|
+
|
|
29668
|
+
"use strict";
|
|
29669
|
+
module.exports = __webpack_require__.p + "img/empty-state-incorrect-blob.6575d851.svg";
|
|
29670
|
+
|
|
29436
29671
|
/***/ }),
|
|
29437
29672
|
|
|
29438
29673
|
/***/ 17371:
|