@pocketprep/ui-kit 2.0.41 → 2.0.42
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
|
@@ -875,6 +875,58 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
875
875
|
|
|
876
876
|
/***/ }),
|
|
877
877
|
|
|
878
|
+
/***/ 72495:
|
|
879
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
880
|
+
|
|
881
|
+
"use strict";
|
|
882
|
+
// ESM COMPAT FLAG
|
|
883
|
+
__webpack_require__.r(__webpack_exports__);
|
|
884
|
+
|
|
885
|
+
// EXPORTS
|
|
886
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
887
|
+
"__esModule": () => (/* reexport */ EmptyStatevue_type_script_lang_ts_/* __esModule */.X),
|
|
888
|
+
"default": () => (/* binding */ EmptyState)
|
|
889
|
+
});
|
|
890
|
+
|
|
891
|
+
;// 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=63f4134a&
|
|
892
|
+
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)}
|
|
893
|
+
var staticRenderFns = []
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
// EXTERNAL MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[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&
|
|
897
|
+
var EmptyStatevue_type_script_lang_ts_ = __webpack_require__(60315);
|
|
898
|
+
;// CONCATENATED MODULE: ./src/components/EmptyStates/EmptyState.vue?vue&type=script&lang=ts&
|
|
899
|
+
/* harmony default export */ const EmptyStates_EmptyStatevue_type_script_lang_ts_ = (EmptyStatevue_type_script_lang_ts_/* default */.Z);
|
|
900
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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&
|
|
901
|
+
var EmptyStatevue_type_style_index_0_lang_scss_ = __webpack_require__(55792);
|
|
902
|
+
;// CONCATENATED MODULE: ./src/components/EmptyStates/EmptyState.vue?vue&type=style&index=0&lang=scss&
|
|
903
|
+
|
|
904
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
905
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
906
|
+
;// CONCATENATED MODULE: ./src/components/EmptyStates/EmptyState.vue
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
;
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
/* normalize component */
|
|
914
|
+
|
|
915
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
916
|
+
EmptyStates_EmptyStatevue_type_script_lang_ts_,
|
|
917
|
+
render,
|
|
918
|
+
staticRenderFns,
|
|
919
|
+
false,
|
|
920
|
+
null,
|
|
921
|
+
null,
|
|
922
|
+
null
|
|
923
|
+
|
|
924
|
+
)
|
|
925
|
+
|
|
926
|
+
/* harmony default export */ const EmptyState = (component.exports);
|
|
927
|
+
|
|
928
|
+
/***/ }),
|
|
929
|
+
|
|
878
930
|
/***/ 52509:
|
|
879
931
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
880
932
|
|
|
@@ -14147,6 +14199,30 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".uikit-toggle-switch{background-color:
|
|
|
14147
14199
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
14148
14200
|
|
|
14149
14201
|
|
|
14202
|
+
/***/ }),
|
|
14203
|
+
|
|
14204
|
+
/***/ 34470:
|
|
14205
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
14206
|
+
|
|
14207
|
+
"use strict";
|
|
14208
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14209
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14210
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14211
|
+
/* harmony export */ });
|
|
14212
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8081);
|
|
14213
|
+
/* 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__);
|
|
14214
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23645);
|
|
14215
|
+
/* 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__);
|
|
14216
|
+
// Imports
|
|
14217
|
+
|
|
14218
|
+
|
|
14219
|
+
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()));
|
|
14220
|
+
// Module
|
|
14221
|
+
___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:14px;font-weight:600;line-height:19px;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}", ""]);
|
|
14222
|
+
// Exports
|
|
14223
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
14224
|
+
|
|
14225
|
+
|
|
14150
14226
|
/***/ }),
|
|
14151
14227
|
|
|
14152
14228
|
/***/ 96792:
|
|
@@ -15119,7 +15195,8 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
15119
15195
|
"field": "#00a87a",
|
|
15120
15196
|
"scifiTakeout": "#00654a",
|
|
15121
15197
|
"orangeSoda": "#ff5e3e",
|
|
15122
|
-
"sunsetPapaya": "#ff7d63"
|
|
15198
|
+
"sunsetPapaya": "#ff7d63",
|
|
15199
|
+
"caramel": "#ce8500"
|
|
15123
15200
|
};
|
|
15124
15201
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
15125
15202
|
|
|
@@ -18063,6 +18140,113 @@ exports.Z = ToggleSwitch;
|
|
|
18063
18140
|
|
|
18064
18141
|
/***/ }),
|
|
18065
18142
|
|
|
18143
|
+
/***/ 60315:
|
|
18144
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18145
|
+
|
|
18146
|
+
"use strict";
|
|
18147
|
+
|
|
18148
|
+
|
|
18149
|
+
var _classCallCheck = (__webpack_require__(20172)["default"]);
|
|
18150
|
+
|
|
18151
|
+
var _createClass = (__webpack_require__(20378)["default"]);
|
|
18152
|
+
|
|
18153
|
+
var _inherits = (__webpack_require__(95967)["default"]);
|
|
18154
|
+
|
|
18155
|
+
var _createSuper = (__webpack_require__(13706)["default"]);
|
|
18156
|
+
|
|
18157
|
+
__webpack_require__(69070);
|
|
18158
|
+
|
|
18159
|
+
Object.defineProperty(exports, "X", ({
|
|
18160
|
+
value: true
|
|
18161
|
+
}));
|
|
18162
|
+
|
|
18163
|
+
var tslib_1 = __webpack_require__(70655);
|
|
18164
|
+
|
|
18165
|
+
var vue_property_decorator_1 = __webpack_require__(26489);
|
|
18166
|
+
|
|
18167
|
+
var pocketprep_export_module_scss_1 = tslib_1.__importDefault(__webpack_require__(46733));
|
|
18168
|
+
|
|
18169
|
+
var Icon_vue_1 = tslib_1.__importDefault(__webpack_require__(7924));
|
|
18170
|
+
|
|
18171
|
+
var EmptyState = /*#__PURE__*/function (_vue_property_decorat) {
|
|
18172
|
+
_inherits(EmptyState, _vue_property_decorat);
|
|
18173
|
+
|
|
18174
|
+
var _super = _createSuper(EmptyState);
|
|
18175
|
+
|
|
18176
|
+
function EmptyState() {
|
|
18177
|
+
var _this;
|
|
18178
|
+
|
|
18179
|
+
_classCallCheck(this, EmptyState);
|
|
18180
|
+
|
|
18181
|
+
_this = _super.apply(this, arguments);
|
|
18182
|
+
_this.brandColors = pocketprep_export_module_scss_1["default"];
|
|
18183
|
+
return _this;
|
|
18184
|
+
}
|
|
18185
|
+
|
|
18186
|
+
_createClass(EmptyState, [{
|
|
18187
|
+
key: "iconType",
|
|
18188
|
+
get: function get() {
|
|
18189
|
+
if (this.state === 'incorrect') {
|
|
18190
|
+
return 'incorrect';
|
|
18191
|
+
} else if (this.state === 'correct') {
|
|
18192
|
+
return 'correct';
|
|
18193
|
+
} else if (this.state === 'flagged') {
|
|
18194
|
+
return 'flagFeedback';
|
|
18195
|
+
} // Default to activity icon
|
|
18196
|
+
|
|
18197
|
+
|
|
18198
|
+
return 'activity';
|
|
18199
|
+
}
|
|
18200
|
+
}, {
|
|
18201
|
+
key: "blobType",
|
|
18202
|
+
get: function get() {
|
|
18203
|
+
if (this.blobColor && this.blobColor === 'white') {
|
|
18204
|
+
return __webpack_require__(23898);
|
|
18205
|
+
}
|
|
18206
|
+
|
|
18207
|
+
if (this.state === 'incorrect') {
|
|
18208
|
+
return __webpack_require__(52453);
|
|
18209
|
+
} else if (this.state === 'correct') {
|
|
18210
|
+
return __webpack_require__(10114);
|
|
18211
|
+
} // Default to white blob (web study / mobile default)
|
|
18212
|
+
|
|
18213
|
+
|
|
18214
|
+
return __webpack_require__(99230);
|
|
18215
|
+
}
|
|
18216
|
+
}, {
|
|
18217
|
+
key: "iconColor",
|
|
18218
|
+
get: function get() {
|
|
18219
|
+
if (this.state === 'incorrect') {
|
|
18220
|
+
return this.brandColors.pepper;
|
|
18221
|
+
} else if (this.state === 'correct') {
|
|
18222
|
+
return this.brandColors.cadaverous;
|
|
18223
|
+
} // Default to caramel
|
|
18224
|
+
|
|
18225
|
+
|
|
18226
|
+
return this.brandColors.caramel;
|
|
18227
|
+
}
|
|
18228
|
+
}]);
|
|
18229
|
+
|
|
18230
|
+
return EmptyState;
|
|
18231
|
+
}(vue_property_decorator_1.Vue);
|
|
18232
|
+
|
|
18233
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "message", void 0);
|
|
18234
|
+
|
|
18235
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "title", void 0);
|
|
18236
|
+
|
|
18237
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "blobColor", void 0);
|
|
18238
|
+
|
|
18239
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Prop)()], EmptyState.prototype, "state", void 0);
|
|
18240
|
+
|
|
18241
|
+
EmptyState = tslib_1.__decorate([(0, vue_property_decorator_1.Component)({
|
|
18242
|
+
components: {
|
|
18243
|
+
Icon: Icon_vue_1["default"]
|
|
18244
|
+
}
|
|
18245
|
+
})], EmptyState);
|
|
18246
|
+
exports.Z = EmptyState;
|
|
18247
|
+
|
|
18248
|
+
/***/ }),
|
|
18249
|
+
|
|
18066
18250
|
/***/ 72733:
|
|
18067
18251
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18068
18252
|
|
|
@@ -26089,6 +26273,8 @@ var ToggleSwitch_vue_1 = tslib_1.__importDefault(__webpack_require__(86021));
|
|
|
26089
26273
|
|
|
26090
26274
|
var Slider_vue_1 = tslib_1.__importDefault(__webpack_require__(47507));
|
|
26091
26275
|
|
|
26276
|
+
var EmptyState_vue_1 = tslib_1.__importDefault(__webpack_require__(72495));
|
|
26277
|
+
|
|
26092
26278
|
var Button_vue_1 = tslib_1.__importDefault(__webpack_require__(58861));
|
|
26093
26279
|
|
|
26094
26280
|
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(62121));
|
|
@@ -26193,6 +26379,7 @@ var components = {
|
|
|
26193
26379
|
SegmentControl: SegmentControl_vue_1["default"],
|
|
26194
26380
|
ToggleSwitch: ToggleSwitch_vue_1["default"],
|
|
26195
26381
|
Slider: Slider_vue_1["default"],
|
|
26382
|
+
EmptyState: EmptyState_vue_1["default"],
|
|
26196
26383
|
Select: Select_vue_1["default"],
|
|
26197
26384
|
Radio: Radio_vue_1["default"],
|
|
26198
26385
|
Checkbox: Checkbox_vue_1["default"],
|
|
@@ -28567,6 +28754,22 @@ var update = add("74ffa3a4", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
28567
28754
|
|
|
28568
28755
|
/***/ }),
|
|
28569
28756
|
|
|
28757
|
+
/***/ 55792:
|
|
28758
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28759
|
+
|
|
28760
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
28761
|
+
|
|
28762
|
+
// load the styles
|
|
28763
|
+
var content = __webpack_require__(34470);
|
|
28764
|
+
if(content.__esModule) content = content.default;
|
|
28765
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
28766
|
+
if(content.locals) module.exports = content.locals;
|
|
28767
|
+
// add the styles to the DOM
|
|
28768
|
+
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
28769
|
+
var update = add("2fc430fa", content, true, {"sourceMap":false,"shadowMode":false});
|
|
28770
|
+
|
|
28771
|
+
/***/ }),
|
|
28772
|
+
|
|
28570
28773
|
/***/ 31617:
|
|
28571
28774
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28572
28775
|
|
|
@@ -29423,6 +29626,38 @@ function applyToTag (styleElement, obj) {
|
|
|
29423
29626
|
}
|
|
29424
29627
|
|
|
29425
29628
|
|
|
29629
|
+
/***/ }),
|
|
29630
|
+
|
|
29631
|
+
/***/ 23898:
|
|
29632
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29633
|
+
|
|
29634
|
+
"use strict";
|
|
29635
|
+
module.exports = __webpack_require__.p + "img/empty-state-blob-white.450f9070.svg";
|
|
29636
|
+
|
|
29637
|
+
/***/ }),
|
|
29638
|
+
|
|
29639
|
+
/***/ 99230:
|
|
29640
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29641
|
+
|
|
29642
|
+
"use strict";
|
|
29643
|
+
module.exports = __webpack_require__.p + "img/empty-state-blob-yellow.1be81f84.svg";
|
|
29644
|
+
|
|
29645
|
+
/***/ }),
|
|
29646
|
+
|
|
29647
|
+
/***/ 10114:
|
|
29648
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29649
|
+
|
|
29650
|
+
"use strict";
|
|
29651
|
+
module.exports = __webpack_require__.p + "img/empty-state-correct-blob.d5efd8d5.svg";
|
|
29652
|
+
|
|
29653
|
+
/***/ }),
|
|
29654
|
+
|
|
29655
|
+
/***/ 52453:
|
|
29656
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
29657
|
+
|
|
29658
|
+
"use strict";
|
|
29659
|
+
module.exports = __webpack_require__.p + "img/empty-state-incorrect-blob.6575d851.svg";
|
|
29660
|
+
|
|
29426
29661
|
/***/ }),
|
|
29427
29662
|
|
|
29428
29663
|
/***/ 17371:
|