@next-bricks/presentational 0.20.0 → 0.20.1

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.
Files changed (46) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/9359.de17afc7.js +2 -0
  3. package/dist/chunks/9359.de17afc7.js.map +1 -0
  4. package/dist/chunks/eo-alert.fe9e8c22.js +3 -0
  5. package/dist/chunks/eo-alert.fe9e8c22.js.map +1 -0
  6. package/dist/chunks/{main.9dcfb4a3.js → main.831be5a1.js} +2 -2
  7. package/dist/chunks/{main.9dcfb4a3.js.map → main.831be5a1.js.map} +1 -1
  8. package/dist/examples.json +1 -1
  9. package/dist/{index.c4784992.js → index.0dd4086e.js} +2 -2
  10. package/dist/{index.c4784992.js.map → index.0dd4086e.js.map} +1 -1
  11. package/dist/manifest.json +5 -0
  12. package/dist/stories-assets/card-blue.b720359410357c004700.svg +37 -0
  13. package/dist/stories-assets/eo-alert.02683385378f7c3fae6a.svg +157 -0
  14. package/dist/stories-assets/eo-alert[info-tips-with-icon].3a210c979febafb5c24f.svg +52 -0
  15. package/dist/stories-assets/eo-alert[success-tips].a52aaddac794ed2df91a.svg +52 -0
  16. package/dist/stories-assets/eo-alert[warn-tips-with-close].7747c1e8d98ff2061dab.svg +56 -0
  17. package/dist/stories-assets/eo-alert[with-slot].3812fee6cf496c2ae326.svg +82 -0
  18. package/dist/stories-assets/eo-card-item.14cef77a449c10e33790.svg +23 -0
  19. package/dist/stories-assets/eo-card-item[normal].070e2c69590888ceb686.svg +23 -0
  20. package/dist/stories-assets/eo-card-item[with-right-tag].0b5f7342cce1217a7de7.svg +22 -0
  21. package/dist/stories-assets/eo-code-display.d3eed656cefe2e4f7b5b.svg +24 -0
  22. package/dist/stories-assets/eo-code-display[css].328987c856ec720741d9.svg +56 -0
  23. package/dist/stories-assets/eo-code-display[js].69aa084fd43383c2645e.svg +35 -0
  24. package/dist/stories-assets/eo-descriptions.965e13a5fc9f585c6f5b.svg +26 -0
  25. package/dist/stories-assets/eo-descriptions[normal].491f209ddcb9d51a2609.svg +34 -0
  26. package/dist/stories-assets/eo-divider.271f77d94f33b6150548.svg +14 -0
  27. package/dist/stories-assets/eo-divider[normal].db6d6df633260b64a65a.svg +22 -0
  28. package/dist/stories-assets/eo-humanize-time.56238da7262dabf6b5ff.svg +17 -0
  29. package/dist/stories-assets/eo-humanize-time[accurate].b5cf2308d9eddfbfab23.svg +14 -0
  30. package/dist/stories-assets/eo-humanize-time[cost].76859afe51987e3204a4.svg +14 -0
  31. package/dist/stories-assets/eo-humanize-time[format].8c1180b88e67a51bee90.svg +14 -0
  32. package/dist/stories-assets/eo-humanize-time[full].2984b25c72dbf29328ea.svg +17 -0
  33. package/dist/stories-assets/eo-humanize-time[relative].578ba8d01cdb55c1d488.svg +14 -0
  34. package/dist/stories-assets/eo-pagination.496479d51cfcd0fabc2b.svg +23 -0
  35. package/dist/stories-assets/eo-pagination[normal].af14b46786ad85369798.svg +23 -0
  36. package/dist/stories-assets/eo-statistic-card[normal].a655def2da5d2b06522d.svg +35 -0
  37. package/dist/stories.json +611 -0
  38. package/dist/types.json +7 -0
  39. package/dist-types/general-alert/index.d.ts +5 -0
  40. package/docs/eo-alert.md +7 -0
  41. package/package.json +2 -2
  42. package/dist/chunks/9359.a55fdcda.js +0 -2
  43. package/dist/chunks/9359.a55fdcda.js.map +0 -1
  44. package/dist/chunks/eo-alert.4b6b7169.js +0 -3
  45. package/dist/chunks/eo-alert.4b6b7169.js.map +0 -1
  46. /package/dist/chunks/{eo-alert.4b6b7169.js.LICENSE.txt → eo-alert.fe9e8c22.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/eo-alert.4b6b7169.js","mappings":";+KAAO,IAAKA,EAAS,SAATA,GAAS,OAATA,EAAS,kBAATA,EAAS,YAATA,EAAS,kBAATA,EAAS,cAATA,CAAS,MAORC,EAAe,CAC1B,CAACD,EAAUE,SAAU,CACnBC,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G,GACvD,CAEAmH,WAAWnH,GACT,OAAOlC,KAAKc,QAAQuI,WAAWrJ,KAAKiJ,OAAS/G,EAC/C,CAEAoH,QACE,OAAOtJ,KAAKc,QAAQwI,OACtB","sources":["webpack:///./src/general-alert/constants.ts","webpack:///./src/general-alert/index.tsx","webpack:///../../node_modules/classnames/index.js","webpack:///./src/general-alert/styles.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2305.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../src/JsonStorage.ts"],"sourcesContent":["export enum AlertType {\n \"SUCCESS\" = \"success\",\n \"INFO\" = \"info\",\n \"WARNING\" = \"warning\",\n \"ERROR\" = \"error\",\n}\n\nexport const alertTypeMap = {\n [AlertType.SUCCESS]: {\n outlinedIcon: {\n lib: \"antd\",\n icon: \"check-circle\",\n theme: \"outlined\",\n },\n filledIcon: {\n lib: \"antd\",\n icon: \"check-circle\",\n theme: \"filled\",\n },\n color: \"var(--theme-green-color)\",\n bgColor: \"var(--theme-green-background)\",\n },\n [AlertType.INFO]: {\n outlinedIcon: {\n lib: \"antd\",\n icon: \"info-circle\",\n theme: \"outlined\",\n },\n filledIcon: {\n lib: \"antd\",\n icon: \"info-circle\",\n theme: \"filled\",\n },\n color: \"var(--theme-blue-color)\",\n bgColor: \"var(--theme-blue-background)\",\n },\n [AlertType.WARNING]: {\n outlinedIcon: {\n lib: \"antd\",\n icon: \"exclamation-circle\",\n theme: \"outlined\",\n },\n filledIcon: {\n lib: \"antd\",\n icon: \"exclamation-circle\",\n theme: \"filled\",\n },\n color: \"var(--theme-orange-color)\",\n bgColor: \"var(--theme-orange-background)\",\n },\n [AlertType.ERROR]: {\n outlinedIcon: {\n lib: \"antd\",\n icon: \"close-circle\",\n theme: \"outlined\",\n },\n filledIcon: {\n lib: \"antd\",\n icon: \"close-circle\",\n theme: \"filled\",\n },\n color: \"var(--theme-red-color)\",\n bgColor: \"var(--theme-red-background)\",\n },\n};\n\nexport const LOCAL_STORAGE_PREFIX = \"presentational.general-alert-hidden\";\n","import React, { useMemo, useState } from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport { getHistory } from \"@next-core/runtime\";\nimport { JsonStorage } from \"@next-shared/general/JsonStorage\";\nimport type {\n GeneralIcon,\n GeneralIconProps,\n} from \"@next-bricks/icons/general-icon\";\nimport \"@next-core/theme\";\nimport styleText from \"./styles.shadow.css\";\nimport { AlertType, LOCAL_STORAGE_PREFIX, alertTypeMap } from \"./constants.js\";\nimport classNames from \"classnames\";\n\nconst { defineElement, property } = createDecorators();\n\nconst WrappedIcon = wrapBrick<GeneralIcon, GeneralIconProps>(\"eo-icon\");\n\nexport interface GeneralAlertProps {\n type: AlertType;\n hasTitle?: boolean;\n closable?: boolean;\n localStorageKey?: string;\n disableUrlNamespace?: boolean;\n removeHostNode?: () => void;\n}\n\n/**\n * 告警提示\n * @author nlicro\n * @slot - 内容区\n * @slot title - 标题\n * @category display-component\n */\nexport\n@defineElement(\"eo-alert\", {\n styleTexts: [styleText],\n alias: [\"presentational.general-alert\"],\n})\nclass GeneralAlert extends ReactNextElement implements GeneralAlertProps {\n /**\n * 警告类型\n */\n @property({\n attribute: false,\n })\n accessor type: AlertType;\n\n /**\n * 是否显示标题。开启后,可以使用 `title` 插槽\n */\n @property({\n type: Boolean,\n })\n accessor hasTitle: boolean | undefined;\n\n /**\n * 是否显示关闭按钮\n */\n @property({\n type: Boolean,\n })\n accessor closable: boolean | undefined;\n\n /**\n * 以该值和页面 url 作为命名空间,决定是否显示该警告提示\n */\n @property()\n accessor localStorageKey: string | undefined;\n\n /**\n * 关闭后仅以 `localStorageKey` 作为命名空间\n */\n @property({\n type: Boolean,\n })\n accessor disableUrlNamespace: boolean | undefined;\n\n #removeHostNode = () => {\n this.remove();\n };\n\n render() {\n return (\n <GeneralAlertComponent\n type={this.type}\n hasTitle={this.hasTitle}\n closable={this.closable}\n localStorageKey={this.localStorageKey}\n disableUrlNamespace={this.disableUrlNamespace}\n removeHostNode={this.#removeHostNode}\n />\n );\n }\n}\n\nexport function GeneralAlertComponent(props: GeneralAlertProps) {\n const {\n type,\n hasTitle,\n closable,\n localStorageKey,\n disableUrlNamespace,\n removeHostNode,\n } = props;\n\n const storage = useMemo(() => new JsonStorage(localStorage), []);\n const nameSpace = useMemo(() => {\n if (localStorageKey) {\n const url = getHistory().location.pathname;\n const key = disableUrlNamespace\n ? `${LOCAL_STORAGE_PREFIX}_${localStorageKey}`\n : `${LOCAL_STORAGE_PREFIX}_${localStorageKey}_${url}`;\n return key;\n }\n return null;\n }, [disableUrlNamespace, localStorageKey]);\n\n const curTypeInfo = useMemo(() => alertTypeMap[type], [type]);\n const [hidden, setHidden] = useState(() => {\n if (closable && nameSpace) {\n return !!storage.getItem(nameSpace);\n }\n return false;\n });\n\n return hidden ? null : (\n <div\n className={classNames(\n \"alert-wrapper\",\n hasTitle ? \"alert-wrapper-has-title\" : \"alert-wrapper-no-title\"\n )}\n style={{ background: curTypeInfo?.bgColor }}\n >\n <WrappedIcon\n {...((hasTitle\n ? curTypeInfo?.outlinedIcon\n : curTypeInfo?.filledIcon) as GeneralIconProps)}\n className=\"alert-icon\"\n style={{ color: curTypeInfo?.color }}\n />\n <div className=\"alert-container\">\n {hasTitle && (\n <div className=\"alert-title\">\n <slot name=\"title\" />\n </div>\n )}\n <div className=\"alert-content\">\n <slot />\n </div>\n </div>\n {closable && (\n <WrappedIcon\n lib=\"antd\"\n theme=\"outlined\"\n icon=\"close\"\n className=\"close-icon\"\n onClick={() => {\n setHidden(true);\n storage.setItem(nameSpace, true);\n removeHostNode?.();\n }}\n />\n )}\n </div>\n );\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}eo-icon{line-height:0.25em}.alert-wrapper{display:flex;border-radius:var(--larger-border-radius)}.alert-container{flex:1;display:flex;flex-direction:column}.close-icon{font-size:12px;color:var(--palette-gray-8);cursor:pointer}.alert-wrapper-no-title.alert-wrapper{gap:10px;padding:10px 16px}.alert-wrapper-no-title .alert-icon{font-size:14px;margin-top:5px}.alert-wrapper-no-title .alert-content{font-size:14px;color:var(--text-color-default);line-height:24px}.alert-wrapper-no-title .close-icon{margin-top:6px}.alert-wrapper-has-title.alert-wrapper{gap:16px;padding:16px 16px 16px 24px}.alert-wrapper-has-title .alert-icon{font-size:24px}.alert-wrapper-has-title .alert-title{margin-bottom:6px;font-size:16px;font-weight:var(--font-weight-500);color:var(--text-color-default);line-height:24px}.alert-wrapper-has-title .alert-content{font-size:12px;color:var(--text-color-default);line-height:20px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nfunction _bindPropCall(e, t) {\n return function (r, a) {\n return e[t].call(r, a);\n };\n}\nfunction createAddInitializerMethod(e, t) {\n return function (r) {\n if (t.v) throw new Error(\"attempted to call addInitializer after decoration was finished\");\n assertCallable(r, \"An initializer\", !0), e.push(r);\n };\n}\nfunction memberDec(e, t, r, a, n, i, o, s, l, c, u) {\n function assertInstanceIfPrivate(e) {\n return function (t, r) {\n if (!c(t)) throw new TypeError(\"Attempted to access private element on non-instance\");\n return e(t, r);\n };\n }\n var f,\n d,\n p = {\n v: !1\n },\n v = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"field\"][i],\n name: s ? \"#\" + r : r,\n \"static\": o,\n \"private\": s,\n metadata: u,\n addInitializer: createAddInitializerMethod(n, p)\n };\n if (s || 0 !== i && 2 !== i) {\n if (2 === i) f = assertInstanceIfPrivate(function () {\n return a.value;\n });else {\n var h = 0 === i || 1 === i;\n (h || 3 === i) && (f = _bindPropCall(a, \"get\"), s && (f = assertInstanceIfPrivate(f))), (h || 4 === i) && (d = _bindPropCall(a, \"set\"), s && (d = assertInstanceIfPrivate(d)));\n }\n } else f = function f(e) {\n return e[r];\n }, 0 === i && (d = function d(e, t) {\n e[r] = t;\n });\n var m = s ? c.bind() : function (e) {\n return r in e;\n },\n b = v.access = {\n has: m\n };\n f && (b.get = f), d && (b.set = d);\n try {\n return e.call(t, l, v);\n } finally {\n p.v = !0;\n }\n}\nfunction assertCallable(e, t, r) {\n if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must be a function\");\n}\nfunction assertValidReturnValue(e, t) {\n var r = _typeof(t);\n if (1 === e) {\n if (\"object\" !== r || !t) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or void 0\");\n assertCallable(t.get, \"accessor.get\"), assertCallable(t.set, \"accessor.set\"), assertCallable(t.init, \"accessor.init\");\n } else if (\"function\" !== r) throw new TypeError((0 === e ? \"field\" : 5 === e ? \"class\" : \"method\") + \" decorators must return a function or void 0\");\n}\nfunction applyMemberDec(e, t, r, a, n, i, o, s, l, c, u) {\n var f,\n d,\n p,\n v,\n h = r[0],\n m = r[3];\n a || Array.isArray(h) || (h = [h]), s ? f = 0 === i || 1 === i ? {\n get: function get() {\n return m(this);\n },\n set: function set(e) {\n r[4](this, e);\n }\n } : 3 === i ? {\n get: m\n } : 4 === i ? {\n set: m\n } : {\n value: m\n } : 0 !== i && (f = Object.getOwnPropertyDescriptor(t, n)), 1 === i ? p = {\n get: f.get,\n set: f.set\n } : 2 === i ? p = f.value : 3 === i ? p = f.get : 4 === i && (p = f.set);\n for (var b = a ? 2 : 1, y = h.length - 1; y >= 0; y -= b) {\n var g;\n if (void 0 !== (v = memberDec(h[y], a ? h[y - 1] : void 0, n, f, l, i, o, s, p, c, u))) assertValidReturnValue(i, v), 0 === i ? g = v : 1 === i ? (g = v.init, p = {\n get: v.get || p.get,\n set: v.set || p.set\n }) : p = v, void 0 !== g && (void 0 === d ? d = g : \"function\" == typeof d ? d = [d, g] : d.push(g));\n }\n if (0 === i || 1 === i) {\n if (void 0 === d) d = function d(e, t) {\n return t;\n };else if (\"function\" != typeof d) {\n var I = d;\n d = function d(e, t) {\n for (var r = t, a = I.length - 1; a >= 0; a--) r = I[a].call(e, r);\n return r;\n };\n } else {\n var w = d;\n d = d.call.bind(w);\n }\n e.push(d);\n }\n 0 !== i && (1 === i ? (f.get = p.get, f.set = p.set) : 2 === i ? f.value = p : 3 === i ? f.get = p : 4 === i && (f.set = p), s ? 1 === i ? e.push(_bindPropCall(f, \"get\"), _bindPropCall(f, \"set\")) : e.push(2 === i ? p : Function.call.bind(p)) : Object.defineProperty(t, n, f));\n}\nfunction applyMemberDecs(e, t, r, a) {\n var n,\n i,\n o,\n s = [],\n l = new Map(),\n c = new Map();\n function pushInitializers(e) {\n e && s.push(function (t) {\n for (var r = 0; r < e.length; r++) e[r].call(t);\n return t;\n });\n }\n for (var u = 0; u < t.length; u++) {\n var f = t[u];\n if (Array.isArray(f)) {\n var d,\n p,\n v = f[1],\n h = f[2],\n m = f.length > 3,\n b = 16 & v,\n y = !!(8 & v),\n g = r;\n if (v &= 7, y ? (d = e, p = i = i || [], m && !o && (o = function o(t) {\n return checkInRHS(t) === e;\n }), g = o) : (d = e.prototype, p = n = n || []), 0 !== v && !m) {\n var I = y ? c : l,\n w = I.get(h) || 0;\n if (!0 === w || 3 === w && 4 !== v || 4 === w && 3 !== v) throw new Error(\"Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: \" + h);\n I.set(h, !(!w && v > 2) || v);\n }\n applyMemberDec(s, d, f, b, h, v, y, m, p, g, a);\n }\n }\n return pushInitializers(n), pushInitializers(i), s;\n}\nfunction applyClassDecs(e, t, r, a) {\n if (t.length) {\n for (var n = [], i = e, o = e.name, s = r ? 2 : 1, l = t.length - 1; l >= 0; l -= s) {\n var c = {\n v: !1\n };\n try {\n var u = t[l].call(r ? t[l - 1] : void 0, i, {\n kind: \"class\",\n name: o,\n addInitializer: createAddInitializerMethod(n, c),\n metadata: a\n });\n } finally {\n c.v = !0;\n }\n void 0 !== u && (assertValidReturnValue(5, u), i = u);\n }\n return [defineMetadata(i, a), function () {\n for (var e = 0; e < n.length; e++) n[e].call(i);\n }];\n }\n}\nfunction defineMetadata(e, t) {\n return Object.defineProperty(e, Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"), {\n configurable: !0,\n enumerable: !0,\n value: t\n });\n}\nexport default function applyDecs2305(e, t, r, a, n, i) {\n if (arguments.length >= 6) var o = i[Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\")];\n var s = Object.create(void 0 === o ? null : o),\n l = applyMemberDecs(e, t, n, s);\n return r.length || defineMetadata(e, s), {\n e: l,\n get c() {\n return applyClassDecs(e, r, a, s);\n }\n };\n}","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n }\n return privateMap.get(receiver);\n}","import classApplyDescriptorGet from \"./classApplyDescriptorGet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"get\");\n return classApplyDescriptorGet(receiver, descriptor);\n}","export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import classApplyDescriptorSet from \"./classApplyDescriptorSet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"set\");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n}","export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export class JsonStorage {\n constructor(\n private storage: Storage,\n private prefix: string = \"brick-next-\"\n ) {}\n\n setItem<T = any>(name: string, value: T): void {\n this.storage.setItem(this.prefix + name, JSON.stringify(value));\n }\n\n getItem<T = any>(name: string): T {\n return JSON.parse(this.storage.getItem(this.prefix + name) as string) as T;\n }\n\n removeItem(name: string): void {\n return this.storage.removeItem(this.prefix + name);\n }\n\n clear(): void {\n return this.storage.clear();\n }\n}\n"],"names":["AlertType","alertTypeMap","SUCCESS","outlinedIcon","lib","icon","theme","filledIcon","color","bgColor","INFO","WARNING","ERROR","LOCAL_STORAGE_PREFIX","_GeneralAlert","defineElement","property","createDecorators","WrappedIcon","wrapBrick","_dec","styleTexts","styleText","alias","_dec2","attribute","_dec3","type","Boolean","_dec4","_dec5","_dec6","_A","WeakMap","_B","_C","_D","_E","_removeHostNode","GeneralAlert","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","writable","value","_initProto","_init_type","_init_hasTitle","_init_closable","_init_localStorageKey","_init_disableUrlNamespace","this","remove","_classPrivateFieldGet","v","_classPrivateFieldSet","hasTitle","closable","localStorageKey","disableUrlNamespace","render","React","GeneralAlertComponent","removeHostNode","props","storage","useMemo","JsonStorage","localStorage","nameSpace","url","getHistory","location","pathname","concat","curTypeInfo","hidden","setHidden","useState","getItem","className","classNames","style","background","_extends","name","onClick","setItem","_class","e","c","_initClass","_applyDecs","hasOwn","hasOwnProperty","classes","i","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","includes","key","call","join","module","exports","default","___CSS_LOADER_EXPORT___","id","cssWithMappingToString","list","map","item","content","needLayer","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","_bindPropCall","t","r","a","createAddInitializerMethod","Error","assertCallable","memberDec","n","o","s","l","u","assertInstanceIfPrivate","TypeError","f","d","p","kind","metadata","addInitializer","h","m","bind","b","access","has","get","set","assertValidReturnValue","init","applyMemberDec","getOwnPropertyDescriptor","y","g","I","w","Function","defineProperty","defineMetadata","Symbol","configurable","enumerable","applyDecs2305","create","Map","pushInitializers","applyMemberDecs","applyClassDecs","_checkInRHS","_checkPrivateRedeclaration","obj","privateCollection","_classExtractFieldDescriptor","receiver","privateMap","action","descriptor","classExtractFieldDescriptor","assign","target","source","_typeof","iterator","prefix","JSON","stringify","parse","removeItem","clear"],"sourceRoot":""}