diff --git a/CHANGELOG.md b/CHANGELOG.md index 426b0f2..9eec840 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.12.5](https://github.com/UrijHoruzij/ui-forest-web/compare/v1.12.4...v1.12.5) (2024-1-14) + + +### Bug Fixes + +* fixed gh actions ([21c1435](https://github.com/UrijHoruzij/ui-forest-web/commit/21c14359c944e719cce04e6665f3c1406bbfbfb4)) + ## [1.12.4](https://github.com/UrijHoruzij/ui-forest-web/compare/v1.12.3...v1.12.4) (2024-01-06) diff --git a/dist/Avatar/index.js b/dist/Avatar/index.js new file mode 100644 index 0000000..a4de028 --- /dev/null +++ b/dist/Avatar/index.js @@ -0,0 +1,2 @@ +import{jsxs as a,jsx as e,Fragment as r}from"react/jsx-runtime";var n=function(){return n=Object.assign||function(a){for(var e,r=1,n=arguments.length;r * {\n\tmargin-left: -18px;\n}\n.Avatar-module_add__C8OWd {\n\tcursor: pointer;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: var(--avatar-color-add);\n\tborder-radius: 50%;\n}\n.Avatar-module_add__icon__Vdn8N {\n\tfill: var(--avatar-color-wrapper);\n}\n");var l=function(a){switch(a){case"small":default:return t.wrapper__small;case"medium":return t.wrapper__medium;case"large":return t.wrapper__large}},i=function(a){switch(a){case"small":default:return t.image__small;case"medium":return t.image__medium;case"large":return t.image__large}},_=function(a){switch(a){case"small":default:return t.symbol__small;case"medium":return t.symbol__medium;case"large":return t.symbol__large}},o=function(a){switch(a){case"small":default:return t.checkOnline__small;case"medium":return t.checkOnline__medium;case"large":return t.checkOnline__large}},m=function(r){var m=r.className,d=r.fullname,c=r.size,s=r.isOnline,u=d?d[0].toUpperCase():"",v=function(a){return[a.imageClassName,t.image,i(a.size)].join(" ")};return a("div",n({className:[m,t.wrapper,l(c)].join(" ")},r,{children:[function(a,r){var n=a.component;return a.component?e(n,{style:a.imageStyle,className:v(a),alt:a.fullname}):a.avatar?e("img",{style:a.imageStyle,className:v(a),src:a.avatar,alt:a.fullname}):e("div",{style:{background:"#".concat(Math.floor(16777216*Math.random()).toString(16).padStart(6,"0"))},className:[t.symbol,i(a.size),_(a.size)].join(" "),children:r})}(r,u),s&&e("div",{className:[t.checkOnline,o(c)].join(" ")})]}))},d=function(a){var r=a.users,n=a.onAdd;return e("div",{className:[t.wrapper,l(r[0].size)].join(" "),children:e("div",{className:[t.add,i(r[0].size)].join(" "),onClick:n,children:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{className:t.add__icon,d:"M9.14286 9.14286V16H6.85714V9.14286H0V6.85714H6.85714V0H9.14286V6.85714H16V9.14286H9.14286Z"})})})})},c=function(a){return e(m,n({},a))};c.Group=function(n){var i=n.users,o=n.add,m=n.onAdd;return e("div",{className:t.group,children:e(r,o?{children:i.length<5?a(r,{children:[i.map((function(a){return a})),e(d,{users:i,onAdd:m})]}):a(r,{children:[i.map((function(a,e){return e<4?a:null})),e(d,{users:i,onAdd:m})]})}:{children:i.length>5?a(r,{children:[i.map((function(a,e){return e<4?a:null})),a("div",{className:[t.symbol,_(i[0].size),t.wrapper,l(i[0].size)].join(" "),children:["+",i.length-4]})]}):e(r,{children:i.map((function(a){return a}))})})})};export{c as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/Avatar/index.js.map b/dist/Avatar/index.js.map new file mode 100644 index 0000000..b20129c --- /dev/null +++ b/dist/Avatar/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/tslib/tslib.es6.js","../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/Avatar/sizes.ts","../../src/components/Avatar/avatar.tsx","../../src/components/Avatar/group.tsx","../../src/components/Avatar/index.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SuppressedError","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","changeSizeContainer","size","styles","wrapper__small","wrapper__medium","wrapper__large","changeSize","image__small","image__medium","image__large","changeSizeSymbol","symbol__small","symbol__medium","symbol__large","changeSizeOnline","checkOnline__small","checkOnline__medium","checkOnline__large","AvatarComponent","props","className","fullname","isOnline","firstChar","toUpperCase","changeImageClassName","imageClassName","image","join","_jsxs","wrapper","children","Component","component","_jsx","imageStyle","alt","avatar","src","background","Math","floor","random","toString","padStart","symbol","renderImage","checkOnline","AddButton","_a","users","onAdd","add","onClick","width","height","viewBox","fill","xmlns","add__icon","d","Avatar","Group","group","_Fragment","map","user","index"],"mappings":"gEA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EAmRkD,mBAApBQ,iBAAiCA,86BC3T/D,SAAqBC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,ohHCvBO,IAAMe,EAAsB,SAACC,GACnC,OAAQA,GACP,IAAK,QAML,QACC,OAAOC,EAAOC,eALf,IAAK,SACJ,OAAOD,EAAOE,gBACf,IAAK,QACJ,OAAOF,EAAOG,eAIjB,EACaC,EAAa,SAACL,GAC1B,OAAQA,GACP,IAAK,QAML,QACC,OAAOC,EAAOK,aALf,IAAK,SACJ,OAAOL,EAAOM,cACf,IAAK,QACJ,OAAON,EAAOO,aAIjB,EACaC,EAAmB,SAACT,GAChC,OAAQA,GACP,IAAK,QAML,QACC,OAAOC,EAAOS,cALf,IAAK,SACJ,OAAOT,EAAOU,eACf,IAAK,QACJ,OAAOV,EAAOW,cAIjB,EACaC,EAAmB,SAACb,GAChC,OAAQA,GACP,IAAK,QAML,QACC,OAAOC,EAAOa,mBALf,IAAK,SACJ,OAAOb,EAAOc,oBACf,IAAK,QACJ,OAAOd,EAAOe,mBAIjB,ECtCMC,EAAmC,SAACC,GACjC,IAAAC,EAAwCD,YAA7BE,EAA6BF,EAAKE,SAAxBpB,EAAmBkB,EAAflB,KAAEqB,EAAaH,WAC1CI,EAAYF,EAAWA,EAAS,GAAGG,cAAgB,GACnDC,EAAuB,SAACN,GAC7B,MAAO,CAACA,EAAMO,eAAgBxB,EAAOyB,MAAOrB,EAAWa,EAAMlB,OAAO2B,KAAK,IAC1E,EAmBA,OACCC,EAAK,MAAA5D,EAAA,CAAAmD,UAAW,CAACA,EAAWlB,EAAO4B,QAAS9B,EAAoBC,IAAO2B,KAAK,MAAUT,EACpF,CAAAY,SAAA,CApBiB,SAACZ,EAAoBI,GACxC,IAAMS,EAAiBb,EAAMc,UAC7B,OAAId,EAAMc,UACFC,EAACF,EAAU,CAAAzC,MAAO4B,EAAMgB,WAAYf,UAAWK,EAAqBN,GAAQiB,IAAKjB,EAAME,WAE3FF,EAAMkB,OAERH,EAAA,MAAA,CAAK3C,MAAO4B,EAAMgB,WAAYf,UAAWK,EAAqBN,GAAQmB,IAAKnB,EAAMkB,OAAQD,IAAKjB,EAAME,WAIrGa,EACC,MAAA,CAAA3C,MAAO,CAAEgD,WAvBL,WAAIC,KAAKC,eAAMD,KAAKE,UACzBC,SAAS,IACTC,SAAS,EAAG,OAsBXxB,UAAW,CAAClB,EAAO2C,OAAQvC,EAAWa,EAAMlB,MAAOS,EAAiBS,EAAMlB,OAAO2B,KAAK,cACrFL,GAGJ,CAGGuB,CAAY3B,EAAOI,GACnBD,GAAYY,EAAA,MAAA,CAAKd,UAAW,CAAClB,EAAO6C,YAAajC,EAAiBb,IAAO2B,KAAK,UAGlF,ECpCMoB,EAAgC,SAACC,OAAEC,EAAKD,EAAAC,MAAEC,EAAKF,EAAAE,MAAO,OAC3DjB,EAAK,MAAA,CAAAd,UAAW,CAAClB,EAAO4B,QAAS9B,EAAoBkD,EAAM,GAAGjD,OAAO2B,KAAK,KACzEG,SAAAG,EAAA,MAAA,CAAKd,UAAW,CAAClB,EAAOkD,IAAK9C,EAAW4C,EAAM,GAAGjD,OAAO2B,KAAK,KAAMyB,QAASF,WAC3EjB,EAAK,MAAA,CAAAoB,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BACjE3B,SAAAG,EAAA,OAAA,CACCd,UAAWlB,EAAOyD,UAClBC,EAAE,qGANqD,ECAtDC,EAA8C,SAAC1C,GACpD,OAAOe,EAAChB,EAAoBjD,EAAA,CAAA,EAAAkD,GAC7B,EACA0C,EAAOC,MDSuB,SAACb,GAAE,IAAAC,UAAOE,EAAGH,EAAAG,IAAED,EAAKF,EAAAE,MACjD,OACCjB,EAAA,MAAA,CAAKd,UAAWlB,EAAO6D,MACrBhC,SACAG,IADAkB,YAEEF,EAAMzE,OAAS,EACfoD,EACEmC,EAAA,CAAAjC,SAAA,CAAAmB,EAAMe,KAAI,SAACC,GAAS,OAAAA,KACrBhC,EAACc,EAAS,CAACE,MAAOA,EAAOC,MAAOA,OAGjCtB,EACEmC,EAAA,CAAAjC,SAAA,CAAAmB,EAAMe,KAAI,SAACC,EAAMC,GAAU,OAACA,EAAQ,EAAID,EAAO,QAChDhC,EAACc,EAAS,CAACE,MAAOA,EAAOC,MAAOA,QAMjC,CAAApB,SAAAmB,EAAMzE,OAAS,EACfoD,EAAAmC,EAAA,CAAAjC,SAAA,CACEmB,EAAMe,KAAI,SAACC,EAAMC,GAAU,OAACA,EAAQ,EAAID,EAAO,IAAK,IACrDrC,EAAA,MAAA,CACCT,UAAW,CACVlB,EAAO2C,OACPnC,EAAiBwC,EAAM,GAAGjD,MAC1BC,EAAO4B,QACP9B,EAAoBkD,EAAM,GAAGjD,OAC5B2B,KAAK,KAAIG,SAAA,CAAA,IACTmB,EAAMzE,OAAS,QAInByD,EAAA8B,EAAA,CAAAjC,SAAGmB,EAAMe,KAAI,SAACC,GAAS,OAAAA,CAAI,SAMjC","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/dist/Avatar/types/components/Avatar/Avatar.types.d.ts b/dist/Avatar/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Avatar/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Avatar/types/components/Avatar/avatar.d.ts b/dist/Avatar/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Avatar/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Avatar/types/components/Avatar/group.d.ts b/dist/Avatar/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Avatar/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Avatar/types/components/Avatar/index.d.ts b/dist/Avatar/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Avatar/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Avatar/types/components/Avatar/sizes.d.ts b/dist/Avatar/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Avatar/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Avatar/types/components/Button/Button.types.d.ts b/dist/Avatar/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Avatar/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Avatar/types/components/Button/index.d.ts b/dist/Avatar/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Avatar/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Avatar/types/components/Form/Form.types.d.ts b/dist/Avatar/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Avatar/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Avatar/types/components/Form/index.d.ts b/dist/Avatar/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Avatar/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Avatar/types/components/Form/useForm.d.ts b/dist/Avatar/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Avatar/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Avatar/types/components/Grid/Grid.types.d.ts b/dist/Avatar/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Avatar/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Avatar/types/components/Grid/column.d.ts b/dist/Avatar/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Avatar/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Avatar/types/components/Grid/container.d.ts b/dist/Avatar/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Avatar/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Avatar/types/components/Grid/index.d.ts b/dist/Avatar/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Avatar/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Avatar/types/components/Grid/row.d.ts b/dist/Avatar/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Avatar/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Avatar/types/components/Image/Image.types.d.ts b/dist/Avatar/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Avatar/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Avatar/types/components/Image/index.d.ts b/dist/Avatar/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Avatar/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Avatar/types/components/Input/Input.types.d.ts b/dist/Avatar/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Avatar/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Avatar/types/components/Input/container.d.ts b/dist/Avatar/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Avatar/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Avatar/types/components/Input/index.d.ts b/dist/Avatar/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Avatar/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Avatar/types/components/Input/password.d.ts b/dist/Avatar/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Avatar/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Avatar/types/components/Input/textarea.d.ts b/dist/Avatar/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Avatar/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Avatar/types/components/Notification/Notification.types.d.ts b/dist/Avatar/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Avatar/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Avatar/types/components/Notification/context.d.ts b/dist/Avatar/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Avatar/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Avatar/types/components/Notification/index.d.ts b/dist/Avatar/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Avatar/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Avatar/types/components/Notification/notification.d.ts b/dist/Avatar/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Avatar/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Avatar/types/components/Notification/useNotification.d.ts b/dist/Avatar/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Avatar/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Avatar/types/components/Pagination/Pagination.types.d.ts b/dist/Avatar/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Avatar/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Avatar/types/components/Pagination/index.d.ts b/dist/Avatar/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Avatar/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Avatar/types/components/Pagination/usePagination.d.ts b/dist/Avatar/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Avatar/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Avatar/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Avatar/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Avatar/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Avatar/types/components/SliderBeforeAfter/index.d.ts b/dist/Avatar/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Avatar/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Avatar/types/components/Tags/Tags.types.d.ts b/dist/Avatar/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Avatar/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Avatar/types/components/Tags/index.d.ts b/dist/Avatar/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Avatar/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Avatar/types/components/Tags/tag.d.ts b/dist/Avatar/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Avatar/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Avatar/types/components/ThemeProvider/Theme.types.d.ts b/dist/Avatar/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Avatar/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Avatar/types/components/ThemeProvider/index.d.ts b/dist/Avatar/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Avatar/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Avatar/types/components/ThemeProvider/themes/index.d.ts b/dist/Avatar/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Avatar/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Avatar/types/components/Typography/Typography.types.d.ts b/dist/Avatar/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Avatar/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Avatar/types/components/Typography/index.d.ts b/dist/Avatar/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Avatar/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Avatar/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Avatar/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Avatar/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Avatar/types/components/ZoomImage/index.d.ts b/dist/Avatar/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Avatar/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Avatar/types/components/ZoomImage/useEventListener.d.ts b/dist/Avatar/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Avatar/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Avatar/types/components/index.d.ts b/dist/Avatar/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Avatar/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Avatar/types/index.d.ts b/dist/Avatar/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Avatar/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Button/index.js b/dist/Button/index.js new file mode 100644 index 0000000..52ba570 --- /dev/null +++ b/dist/Button/index.js @@ -0,0 +1,2 @@ +import{jsxs as t,jsx as n}from"react/jsx-runtime";var o=function(){return o=Object.assign||function(t){for(var n,o=1,e=arguments.length;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SuppressedError","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","changeSize","size","styles","small","medium","large","changeVariant","variant","primary","secondary","text","Button","props","children","loading","_jsxs","className","container","disabled","undefined","danger","join","_jsx"],"mappings":"kDA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EAmRkD,mBAApBQ,iBAAiCA,gXC3T/D,SAAqBC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,otICrBA,IAAMe,EAAa,SAACC,GACnB,OAAQA,GACP,IAAK,QACJ,OAAOC,EAAOC,MACf,IAAK,SAIL,QACC,OAAOD,EAAOE,OAHf,IAAK,QACJ,OAAOF,EAAOG,MAIjB,EACMC,EAAgB,SAACC,GACtB,OAAQA,GACP,IAAK,UACJ,OAAOL,EAAOM,QACf,IAAK,YACJ,OAAON,EAAOO,UACf,IAAK,OACJ,OAAOP,EAAOQ,KAEjB,EAEMC,EAA0B,SAACC,GACxB,IAAAC,EAAsBD,EAAKC,SAAjBC,EAAYF,EAAKE,QAEnC,OACCC,EAAA,SAAA9C,EAAA,CAAA,EACK2C,EAAK,CACTI,UAAW,CACVJ,EAAMI,UACNd,EAAOe,UACPL,EAAMM,SAAWhB,EAAOgB,cAAWC,EACnCP,EAAMQ,OAASlB,EAAOkB,YAASD,EAC/BnB,EAAWY,EAAMX,MACjBK,EAAcM,EAAML,SACpBK,EAAMI,WACLK,KAAK,KACNR,SAAA,CAAAC,GAAWQ,EAAK,MAAA,CAAAN,UAAWd,EAAOY,UAClCD,KAGJ","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/dist/Button/types/components/Avatar/Avatar.types.d.ts b/dist/Button/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Button/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Button/types/components/Avatar/avatar.d.ts b/dist/Button/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Button/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Button/types/components/Avatar/group.d.ts b/dist/Button/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Button/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Button/types/components/Avatar/index.d.ts b/dist/Button/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Button/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Button/types/components/Avatar/sizes.d.ts b/dist/Button/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Button/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Button/types/components/Button/Button.types.d.ts b/dist/Button/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Button/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Button/types/components/Button/index.d.ts b/dist/Button/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Button/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Button/types/components/Form/Form.types.d.ts b/dist/Button/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Button/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Button/types/components/Form/index.d.ts b/dist/Button/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Button/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Button/types/components/Form/useForm.d.ts b/dist/Button/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Button/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Button/types/components/Grid/Grid.types.d.ts b/dist/Button/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Button/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Button/types/components/Grid/column.d.ts b/dist/Button/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Button/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Button/types/components/Grid/container.d.ts b/dist/Button/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Button/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Button/types/components/Grid/index.d.ts b/dist/Button/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Button/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Button/types/components/Grid/row.d.ts b/dist/Button/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Button/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Button/types/components/Image/Image.types.d.ts b/dist/Button/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Button/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Button/types/components/Image/index.d.ts b/dist/Button/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Button/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Button/types/components/Input/Input.types.d.ts b/dist/Button/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Button/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Button/types/components/Input/container.d.ts b/dist/Button/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Button/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Button/types/components/Input/index.d.ts b/dist/Button/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Button/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Button/types/components/Input/password.d.ts b/dist/Button/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Button/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Button/types/components/Input/textarea.d.ts b/dist/Button/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Button/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Button/types/components/Notification/Notification.types.d.ts b/dist/Button/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Button/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Button/types/components/Notification/context.d.ts b/dist/Button/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Button/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Button/types/components/Notification/index.d.ts b/dist/Button/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Button/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Button/types/components/Notification/notification.d.ts b/dist/Button/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Button/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Button/types/components/Notification/useNotification.d.ts b/dist/Button/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Button/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Button/types/components/Pagination/Pagination.types.d.ts b/dist/Button/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Button/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Button/types/components/Pagination/index.d.ts b/dist/Button/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Button/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Button/types/components/Pagination/usePagination.d.ts b/dist/Button/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Button/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Button/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Button/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Button/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Button/types/components/SliderBeforeAfter/index.d.ts b/dist/Button/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Button/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Button/types/components/Tags/Tags.types.d.ts b/dist/Button/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Button/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Button/types/components/Tags/index.d.ts b/dist/Button/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Button/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Button/types/components/Tags/tag.d.ts b/dist/Button/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Button/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Button/types/components/ThemeProvider/Theme.types.d.ts b/dist/Button/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Button/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Button/types/components/ThemeProvider/index.d.ts b/dist/Button/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Button/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Button/types/components/ThemeProvider/themes/index.d.ts b/dist/Button/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Button/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Button/types/components/Typography/Typography.types.d.ts b/dist/Button/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Button/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Button/types/components/Typography/index.d.ts b/dist/Button/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Button/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Button/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Button/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Button/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Button/types/components/ZoomImage/index.d.ts b/dist/Button/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Button/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Button/types/components/ZoomImage/useEventListener.d.ts b/dist/Button/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Button/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Button/types/components/index.d.ts b/dist/Button/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Button/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Button/types/index.d.ts b/dist/Button/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Button/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Form/index.js b/dist/Form/index.js new file mode 100644 index 0000000..694ddee --- /dev/null +++ b/dist/Form/index.js @@ -0,0 +1,2 @@ +import{jsx as r}from"react/jsx-runtime";var t=function(){return t=Object.assign||function(r){for(var t,n=1,e=arguments.length;n= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SuppressedError","Form","props","children","onSubmit","_jsx","noValidate"],"mappings":"wCA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EAmRkD,mBAApBQ,iBAAiCA,gBCxTxD,IAAMC,EAAsB,SAACC,GAC3B,IAAAC,EAAuBD,EAAKC,SAAlBC,EAAaF,EAAKE,SACpC,OACCC,EAAA,OAAApB,EAAA,CAAA,EAAUiB,EAAK,CAAEE,SAAUA,EAAUE,YAAU,EAAAH,SAC7CA,IAGJ","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/Form/types/components/Avatar/Avatar.types.d.ts b/dist/Form/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Form/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Form/types/components/Avatar/avatar.d.ts b/dist/Form/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Form/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Form/types/components/Avatar/group.d.ts b/dist/Form/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Form/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Form/types/components/Avatar/index.d.ts b/dist/Form/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Form/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Form/types/components/Avatar/sizes.d.ts b/dist/Form/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Form/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Form/types/components/Button/Button.types.d.ts b/dist/Form/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Form/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Form/types/components/Button/index.d.ts b/dist/Form/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Form/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Form/types/components/Form/Form.types.d.ts b/dist/Form/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Form/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Form/types/components/Form/index.d.ts b/dist/Form/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Form/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Form/types/components/Form/useForm.d.ts b/dist/Form/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Form/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Form/types/components/Grid/Grid.types.d.ts b/dist/Form/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Form/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Form/types/components/Grid/column.d.ts b/dist/Form/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Form/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Form/types/components/Grid/container.d.ts b/dist/Form/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Form/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Form/types/components/Grid/index.d.ts b/dist/Form/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Form/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Form/types/components/Grid/row.d.ts b/dist/Form/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Form/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Form/types/components/Image/Image.types.d.ts b/dist/Form/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Form/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Form/types/components/Image/index.d.ts b/dist/Form/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Form/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Form/types/components/Input/Input.types.d.ts b/dist/Form/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Form/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Form/types/components/Input/container.d.ts b/dist/Form/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Form/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Form/types/components/Input/index.d.ts b/dist/Form/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Form/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Form/types/components/Input/password.d.ts b/dist/Form/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Form/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Form/types/components/Input/textarea.d.ts b/dist/Form/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Form/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Form/types/components/Notification/Notification.types.d.ts b/dist/Form/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Form/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Form/types/components/Notification/context.d.ts b/dist/Form/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Form/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Form/types/components/Notification/index.d.ts b/dist/Form/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Form/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Form/types/components/Notification/notification.d.ts b/dist/Form/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Form/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Form/types/components/Notification/useNotification.d.ts b/dist/Form/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Form/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Form/types/components/Pagination/Pagination.types.d.ts b/dist/Form/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Form/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Form/types/components/Pagination/index.d.ts b/dist/Form/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Form/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Form/types/components/Pagination/usePagination.d.ts b/dist/Form/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Form/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Form/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Form/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Form/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Form/types/components/SliderBeforeAfter/index.d.ts b/dist/Form/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Form/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Form/types/components/Tags/Tags.types.d.ts b/dist/Form/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Form/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Form/types/components/Tags/index.d.ts b/dist/Form/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Form/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Form/types/components/Tags/tag.d.ts b/dist/Form/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Form/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Form/types/components/ThemeProvider/Theme.types.d.ts b/dist/Form/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Form/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Form/types/components/ThemeProvider/index.d.ts b/dist/Form/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Form/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Form/types/components/ThemeProvider/themes/index.d.ts b/dist/Form/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Form/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Form/types/components/Typography/Typography.types.d.ts b/dist/Form/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Form/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Form/types/components/Typography/index.d.ts b/dist/Form/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Form/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Form/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Form/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Form/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Form/types/components/ZoomImage/index.d.ts b/dist/Form/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Form/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Form/types/components/ZoomImage/useEventListener.d.ts b/dist/Form/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Form/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Form/types/components/index.d.ts b/dist/Form/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Form/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Form/types/index.d.ts b/dist/Form/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Form/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Grid/index.js b/dist/Grid/index.js new file mode 100644 index 0000000..e8c264c --- /dev/null +++ b/dist/Grid/index.js @@ -0,0 +1,2 @@ +import{jsx as _}from"react/jsx-runtime";var d="Grid-module_container__4yqTC",l="Grid-module_row__cLMDA",t="Grid-module_col_1__MyzeF",o="Grid-module_col_2__sRZ60",n="Grid-module_col_3__CuqDO",e="Grid-module_col_4__RCelf",r="Grid-module_col_5__TAIvV",i="Grid-module_col_6__LNNEK",m="Grid-module_col_7__q8roZ",c="Grid-module_col_8__XKfnp",u="Grid-module_col_9__LxTwF",G="Grid-module_col_10__WV-gW",a="Grid-module_col_11__v3Qpz",s="Grid-module_col_12__DTJ17",x="Grid-module_col_sm_1__-fCPU",h="Grid-module_col_sm_2__tGzLB",w="Grid-module_col_sm_3__TAwTi",g="Grid-module_col_sm_4__kNOrg",f="Grid-module_col_sm_5__sG8lE",v="Grid-module_col_sm_6__CINeN",C="Grid-module_col_sm_7__-ayi1",T="Grid-module_col_sm_8__oEhws",p="Grid-module_col_sm_9__BIYx2",L="Grid-module_col_sm_10__Pyfma",N="Grid-module_col_sm_11__fHLUB",y="Grid-module_col_sm_12__QI-IN",z="Grid-module_col_md_1__Ckmni",Q="Grid-module_col_md_2__AAkiv",A="Grid-module_col_md_3__0C9dO",D="Grid-module_col_md_4__LvLsL",I="Grid-module_col_md_5__LCSDz",M="Grid-module_col_md_6__--daD",E="Grid-module_col_md_7__pS2qV",R="Grid-module_col_md_8__hd3-b",K="Grid-module_col_md_9__KJoe0",W="Grid-module_col_md_10__a2sjJ",B="Grid-module_col_md_11__YBofe",b="Grid-module_col_md_12__UhALC",j="Grid-module_col_lg_1__j633I",q="Grid-module_col_lg_2__QG9bL",V="Grid-module_col_lg_3__myOlM",k="Grid-module_col_lg_4__7RR08",J="Grid-module_col_lg_5__o-a6-",O="Grid-module_col_lg_6__7zJQ5",P="Grid-module_col_lg_7__dT-5D",H="Grid-module_col_lg_8__vDrAT",S="Grid-module_col_lg_9__A2KQ4",U="Grid-module_col_lg_10__Xr--R",Y="Grid-module_col_lg_11__jpOcC",Z="Grid-module_col_lg_12__-gy3E",X="Grid-module_col_xl_1__kBolW",F="Grid-module_col_xl_2__IH5jz",$="Grid-module_col_xl_3__Kn-C2",__="Grid-module_col_xl_4__aTIvC",d_="Grid-module_col_xl_5__7GYzh",l_="Grid-module_col_xl_6__MKLsR",t_="Grid-module_col_xl_7__M7WS8",o_="Grid-module_col_xl_8__TQnQo",n_="Grid-module_col_xl_9__sP4MR",e_="Grid-module_col_xl_10__-7xEu",r_="Grid-module_col_xl_11__N8H2l",i_="Grid-module_col_xl_12__7foyP",m_="Grid-module_col_xxl_1__-iTEQ",c_="Grid-module_col_xxl_2__gj4dY",u_="Grid-module_col_xxl_3__bwBM0",G_="Grid-module_col_xxl_4__iVvEk",a_="Grid-module_col_xxl_5__qm1WV",s_="Grid-module_col_xxl_6__9U-Df",x_="Grid-module_col_xxl_7__9pm5M",h_="Grid-module_col_xxl_8__zd4N4",w_="Grid-module_col_xxl_9__GJla9",g_="Grid-module_col_xxl_10__WPNKQ",f_="Grid-module_col_xxl_11__i5wV6",v_="Grid-module_col_xxl_12__wmHW2";!function(_,d){void 0===d&&(d={});var l=d.insertAt;if(_&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===l&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=_:o.appendChild(document.createTextNode(_))}}(".Grid-module_container__4yqTC {\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tpadding-right: var(--grid-gutter, 1rem);\n\tpadding-left: var(--grid-gutter, 1rem);\n\tmargin-right: auto;\n\tmargin-left: auto;\n}\n.Grid-module_row__cLMDA {\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n}\n.Grid-module_row__cLMDA > * {\n\tbox-sizing: border-box;\n\tflex-shrink: 0;\n\twidth: 100%;\n\tmax-width: 100%;\n\tpadding-right: var(--grid-gutter, 1rem);\n\tpadding-left: var(--grid-gutter, 1rem);\n}\n.Grid-module_col__tbuNg {\n\tflex: 1 0 0%;\n}\n.Grid-module_col_1__MyzeF,\n.Grid-module_col_2__sRZ60,\n.Grid-module_col_3__CuqDO,\n.Grid-module_col_4__RCelf,\n.Grid-module_col_5__TAIvV,\n.Grid-module_col_6__LNNEK,\n.Grid-module_col_7__q8roZ,\n.Grid-module_col_8__XKfnp,\n.Grid-module_col_9__LxTwF,\n.Grid-module_col_10__WV-gW,\n.Grid-module_col_11__v3Qpz,\n.Grid-module_col_12__DTJ17 {\n\tflex: 0 0 auto;\n}\n.Grid-module_col_1__MyzeF {\n\twidth: 8.3333333333%;\n}\n.Grid-module_col_2__sRZ60 {\n\twidth: 16.6666666667%;\n}\n.Grid-module_col_3__CuqDO {\n\twidth: 25%;\n}\n.Grid-module_col_4__RCelf {\n\twidth: 33.3333333333%;\n}\n.Grid-module_col_5__TAIvV {\n\twidth: 41.6666666667%;\n}\n.Grid-module_col_6__LNNEK {\n\twidth: 50%;\n}\n.Grid-module_col_7__q8roZ {\n\twidth: 58.3333333333%;\n}\n.Grid-module_col_8__XKfnp {\n\twidth: 66.6666666667%;\n}\n.Grid-module_col_9__LxTwF {\n\twidth: 75%;\n}\n.Grid-module_col_10__WV-gW {\n\twidth: 83.3333333333%;\n}\n.Grid-module_col_11__v3Qpz {\n\twidth: 91.6666666667%;\n}\n.Grid-module_col_12__DTJ17 {\n\twidth: 100%;\n}\n@media (min-width: 576px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-sm) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_sm__9rpZz {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_sm_1__-fCPU,\n\t.Grid-module_col_sm_2__tGzLB,\n\t.Grid-module_col_sm_3__TAwTi,\n\t.Grid-module_col_sm_4__kNOrg,\n\t.Grid-module_col_sm_5__sG8lE,\n\t.Grid-module_col_sm_6__CINeN,\n\t.Grid-module_col_sm_7__-ayi1,\n\t.Grid-module_col_sm_8__oEhws,\n\t.Grid-module_col_sm_9__BIYx2,\n\t.Grid-module_col_sm_10__Pyfma,\n\t.Grid-module_col_sm_11__fHLUB,\n\t.Grid-module_col_sm_12__QI-IN {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_sm_1__-fCPU {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_sm_2__tGzLB {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_sm_3__TAwTi {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_sm_4__kNOrg {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_sm_5__sG8lE {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_sm_6__CINeN {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_sm_7__-ayi1 {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_sm_8__oEhws {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_sm_9__BIYx2 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_sm_10__Pyfma {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_sm_11__fHLUB {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_sm_12__QI-IN {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 768px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-md) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_md__3Zcpj {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_md_1__Ckmni,\n\t.Grid-module_col_md_2__AAkiv,\n\t.Grid-module_col_md_3__0C9dO,\n\t.Grid-module_col_md_4__LvLsL,\n\t.Grid-module_col_md_5__LCSDz,\n\t.Grid-module_col_md_6__--daD,\n\t.Grid-module_col_md_7__pS2qV,\n\t.Grid-module_col_md_8__hd3-b,\n\t.Grid-module_col_md_9__KJoe0,\n\t.Grid-module_col_md_10__a2sjJ,\n\t.Grid-module_col_md_11__YBofe,\n\t.Grid-module_col_md_12__UhALC {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_md_1__Ckmni {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_md_2__AAkiv {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_md_3__0C9dO {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_md_4__LvLsL {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_md_5__LCSDz {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_md_6__--daD {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_md_7__pS2qV {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_md_8__hd3-b {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_md_9__KJoe0 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_md_10__a2sjJ {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_md_11__YBofe {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_md_12__UhALC {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 992px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-lg) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_lg__NXy7I {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_lg_1__j633I,\n\t.Grid-module_col_lg_2__QG9bL,\n\t.Grid-module_col_lg_3__myOlM,\n\t.Grid-module_col_lg_4__7RR08,\n\t.Grid-module_col_lg_5__o-a6-,\n\t.Grid-module_col_lg_6__7zJQ5,\n\t.Grid-module_col_lg_7__dT-5D,\n\t.Grid-module_col_lg_8__vDrAT,\n\t.Grid-module_col_lg_9__A2KQ4,\n\t.Grid-module_col_lg_10__Xr--R,\n\t.Grid-module_col_lg_11__jpOcC,\n\t.Grid-module_col_lg_12__-gy3E {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_lg_1__j633I {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_lg_2__QG9bL {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_lg_3__myOlM {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_lg_4__7RR08 {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_lg_5__o-a6- {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_lg_6__7zJQ5 {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_lg_7__dT-5D {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_lg_8__vDrAT {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_lg_9__A2KQ4 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_lg_10__Xr--R {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_lg_11__jpOcC {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_lg_12__-gy3E {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 1200px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-xl) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_xl__jS-i1 {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_xl_1__kBolW,\n\t.Grid-module_col_xl_2__IH5jz,\n\t.Grid-module_col_xl_3__Kn-C2,\n\t.Grid-module_col_xl_4__aTIvC,\n\t.Grid-module_col_xl_5__7GYzh,\n\t.Grid-module_col_xl_6__MKLsR,\n\t.Grid-module_col_xl_7__M7WS8,\n\t.Grid-module_col_xl_8__TQnQo,\n\t.Grid-module_col_xl_9__sP4MR,\n\t.Grid-module_col_xl_10__-7xEu,\n\t.Grid-module_col_xl_11__N8H2l,\n\t.Grid-module_col_xl_12__7foyP {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_xl_1__kBolW {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_xl_2__IH5jz {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_xl_3__Kn-C2 {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_xl_4__aTIvC {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_xl_5__7GYzh {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_xl_6__MKLsR {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_xl_7__M7WS8 {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_xl_8__TQnQo {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_xl_9__sP4MR {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_xl_10__-7xEu {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_xl_11__N8H2l {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_xl_12__7foyP {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 1400px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-xxl) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_xxl__-DCs4 {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_xxl_1__-iTEQ,\n\t.Grid-module_col_xxl_2__gj4dY,\n\t.Grid-module_col_xxl_3__bwBM0,\n\t.Grid-module_col_xxl_4__iVvEk,\n\t.Grid-module_col_xxl_5__qm1WV,\n\t.Grid-module_col_xxl_6__9U-Df,\n\t.Grid-module_col_xxl_7__9pm5M,\n\t.Grid-module_col_xxl_8__zd4N4,\n\t.Grid-module_col_xxl_9__GJla9,\n\t.Grid-module_col_xxl_10__WPNKQ,\n\t.Grid-module_col_xxl_11__i5wV6,\n\t.Grid-module_col_xxl_12__wmHW2 {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_xxl_1__-iTEQ {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_xxl_2__gj4dY {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_xxl_3__bwBM0 {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_xxl_4__iVvEk {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_xxl_5__qm1WV {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_xxl_6__9U-Df {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_xxl_7__9pm5M {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_xxl_8__zd4N4 {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_xxl_9__GJla9 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_xxl_10__WPNKQ {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_xxl_11__i5wV6 {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_xxl_12__wmHW2 {\n\t\twidth: 100%;\n\t}\n}\n");var C_=function(l){var t=l.children;return _("div",{className:d,children:t})},T_=function(_){switch(_){case 1:return t;case 2:return o;case 3:return n;case 4:return e;case 5:return r;case 6:return i;case 7:return m;case 8:return c;case 9:return u;case 10:return G;case 11:return a;case 12:return s}},p_=function(_){switch(_){case 1:return x;case 2:return h;case 3:return w;case 4:return g;case 5:return f;case 6:return v;case 7:return C;case 8:return T;case 9:return p;case 10:return L;case 11:return N;case 12:return y}},L_=function(_){switch(_){case 1:return z;case 2:return Q;case 3:return A;case 4:return D;case 5:return I;case 6:return M;case 7:return E;case 8:return R;case 9:return K;case 10:return W;case 11:return B;case 12:return b}},N_=function(_){switch(_){case 1:return j;case 2:return q;case 3:return V;case 4:return k;case 5:return J;case 6:return O;case 7:return P;case 8:return H;case 9:return S;case 10:return U;case 11:return Y;case 12:return Z}},y_=function(_){switch(_){case 1:return X;case 2:return F;case 3:return $;case 4:return __;case 5:return d_;case 6:return l_;case 7:return t_;case 8:return o_;case 9:return n_;case 10:return e_;case 11:return r_;case 12:return i_}},z_=function(_){switch(_){case 1:return m_;case 2:return c_;case 3:return u_;case 4:return G_;case 5:return a_;case 6:return s_;case 7:return x_;case 8:return h_;case 9:return w_;case 10:return g_;case 11:return f_;case 12:return v_}},Q_=function(d){var l=d.children;return _(C_,{children:l})};Q_.Container=C_,Q_.Row=function(d){var t=d.children;return _("div",{className:l,children:t})},Q_.Column=function(d){var l=d.children;return _("div",{className:[d.className,T_(null==d?void 0:d.col),p_(null==d?void 0:d.sm),L_(null==d?void 0:d.md),N_(null==d?void 0:d.lg),y_(null==d?void 0:d.xl),z_(null==d?void 0:d.xxl)].join(" "),children:l})};export{Q_ as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/Grid/index.js.map b/dist/Grid/index.js.map new file mode 100644 index 0000000..4acc4fe --- /dev/null +++ b/dist/Grid/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/Grid/container.tsx","../../src/components/Grid/column.tsx","../../src/components/Grid/index.tsx","../../src/components/Grid/row.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Container","props","children","_jsx","className","styles","changeCol","col","changeSm","sm","changeMd","md","changeLg","lg","changeXl","xl","changeXxl","xxl","Grid","Row","Column","join"],"mappings":"w3EAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,q0QCrBA,IAAMe,GAAgC,SAACC,GAC9B,IAAAC,EAAaD,EAAKC,SAC1B,OAAOC,EAAA,MAAA,CAAKC,UAAWC,EAAgBH,SAAGA,GAC3C,ECFMI,GAAY,SAACC,GAClB,OAAQA,GACP,KAAK,EACJ,OAAOF,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EAGV,EACMG,GAAW,SAACC,GACjB,OAAQA,GACP,KAAK,EACJ,OAAOJ,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EAGV,EACMK,GAAW,SAACC,GACjB,OAAQA,GACP,KAAK,EACJ,OAAON,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EAGV,EACMO,GAAW,SAACC,GACjB,OAAQA,GACP,KAAK,EACJ,OAAOR,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EACR,KAAK,GACJ,OAAOA,EAGV,EACMS,GAAW,SAACC,GACjB,OAAQA,GACP,KAAK,EACJ,OAAOV,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,EACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,GACJ,OAAOA,GACR,KAAK,GACJ,OAAOA,GACR,KAAK,GACJ,OAAOA,GAGV,EACMW,GAAY,SAACC,GAClB,OAAQA,GACP,KAAK,EACJ,OAAOZ,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,EACJ,OAAOA,GACR,KAAK,GACJ,OAAOA,GACR,KAAK,GACJ,OAAOA,GACR,KAAK,GACJ,OAAOA,GAGV,EC5KMa,GAAwC,SAACjB,GACtC,IAAAC,EAAaD,EAAKC,SAC1B,OAAOC,EAACH,GAAW,CAAAE,SAAAA,GACpB,EACAgB,GAAKlB,UAAYA,GACjBkB,GAAKC,ICPqB,SAAClB,GAClB,IAAAC,EAAaD,EAAKC,SAC1B,OAAOC,EAAA,MAAA,CAAKC,UAAWC,EAAUH,SAAGA,GACrC,EDKAgB,GAAKE,ODuK2B,SAACnB,GACxB,IAAAC,EAAaD,EAAKC,SAC1B,OACCC,EACC,MAAA,CAAAC,UAAW,CACVH,EAAMG,UACNE,GAAUL,eAAAA,EAAOM,KACjBC,GAASP,eAAAA,EAAOQ,IAChBC,GAAST,eAAAA,EAAOU,IAChBC,GAASX,eAAAA,EAAOY,IAChBC,GAASb,eAAAA,EAAOc,IAChBC,GAAUf,eAAAA,EAAOgB,MAChBI,KAAK,cACNnB,GAGJ","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/Grid/types/components/Avatar/Avatar.types.d.ts b/dist/Grid/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Grid/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Grid/types/components/Avatar/avatar.d.ts b/dist/Grid/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Grid/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Grid/types/components/Avatar/group.d.ts b/dist/Grid/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Grid/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Grid/types/components/Avatar/index.d.ts b/dist/Grid/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Grid/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Grid/types/components/Avatar/sizes.d.ts b/dist/Grid/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Grid/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Grid/types/components/Button/Button.types.d.ts b/dist/Grid/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Grid/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Grid/types/components/Button/index.d.ts b/dist/Grid/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Grid/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Grid/types/components/Form/Form.types.d.ts b/dist/Grid/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Grid/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Grid/types/components/Form/index.d.ts b/dist/Grid/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Grid/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Grid/types/components/Form/useForm.d.ts b/dist/Grid/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Grid/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Grid/types/components/Grid/Grid.types.d.ts b/dist/Grid/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Grid/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Grid/types/components/Grid/column.d.ts b/dist/Grid/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Grid/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Grid/types/components/Grid/container.d.ts b/dist/Grid/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Grid/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Grid/types/components/Grid/index.d.ts b/dist/Grid/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Grid/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Grid/types/components/Grid/row.d.ts b/dist/Grid/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Grid/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Grid/types/components/Image/Image.types.d.ts b/dist/Grid/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Grid/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Grid/types/components/Image/index.d.ts b/dist/Grid/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Grid/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Grid/types/components/Input/Input.types.d.ts b/dist/Grid/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Grid/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Grid/types/components/Input/container.d.ts b/dist/Grid/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Grid/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Grid/types/components/Input/index.d.ts b/dist/Grid/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Grid/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Grid/types/components/Input/password.d.ts b/dist/Grid/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Grid/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Grid/types/components/Input/textarea.d.ts b/dist/Grid/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Grid/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Grid/types/components/Notification/Notification.types.d.ts b/dist/Grid/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Grid/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Grid/types/components/Notification/context.d.ts b/dist/Grid/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Grid/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Grid/types/components/Notification/index.d.ts b/dist/Grid/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Grid/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Grid/types/components/Notification/notification.d.ts b/dist/Grid/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Grid/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Grid/types/components/Notification/useNotification.d.ts b/dist/Grid/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Grid/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Grid/types/components/Pagination/Pagination.types.d.ts b/dist/Grid/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Grid/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Grid/types/components/Pagination/index.d.ts b/dist/Grid/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Grid/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Grid/types/components/Pagination/usePagination.d.ts b/dist/Grid/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Grid/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Grid/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Grid/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Grid/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Grid/types/components/SliderBeforeAfter/index.d.ts b/dist/Grid/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Grid/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Grid/types/components/Tags/Tags.types.d.ts b/dist/Grid/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Grid/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Grid/types/components/Tags/index.d.ts b/dist/Grid/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Grid/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Grid/types/components/Tags/tag.d.ts b/dist/Grid/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Grid/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Grid/types/components/ThemeProvider/Theme.types.d.ts b/dist/Grid/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Grid/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Grid/types/components/ThemeProvider/index.d.ts b/dist/Grid/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Grid/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Grid/types/components/ThemeProvider/themes/index.d.ts b/dist/Grid/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Grid/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Grid/types/components/Typography/Typography.types.d.ts b/dist/Grid/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Grid/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Grid/types/components/Typography/index.d.ts b/dist/Grid/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Grid/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Grid/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Grid/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Grid/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Grid/types/components/ZoomImage/index.d.ts b/dist/Grid/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Grid/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Grid/types/components/ZoomImage/useEventListener.d.ts b/dist/Grid/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Grid/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Grid/types/components/index.d.ts b/dist/Grid/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Grid/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Grid/types/index.d.ts b/dist/Grid/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Grid/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Image/index.js b/dist/Image/index.js new file mode 100644 index 0000000..3c88057 --- /dev/null +++ b/dist/Image/index.js @@ -0,0 +1,2 @@ +import{jsxs as e,jsx as t}from"react/jsx-runtime";var n="Image-module_wrapper__fVsE-",a="Image-module_image__Zq9Zs",o="Image-module_feather__uz0Ko";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".Image-module_wrapper__fVsE- {\n\tposition: relative;\n\tmargin: 0 auto;\n}\n.Image-module_image__Zq9Zs,\n.Image-module_feather__uz0Ko {\n\tborder-radius: 4px;\n\tbackground-position: center;\n\twidth: inherit;\n\theight: inherit;\n}\n.Image-module_image__Zq9Zs {\n\tcolor: rgba(0, 0, 0, 0.16);\n\tbox-shadow:\n\t\t0 2px 4px,\n\t\t0 4px 8px -1px,\n\t\t0 8px 16px -2px,\n\t\t0 16px 32px -4px,\n\t\t0 32px 64px -8px,\n\t\t0 64px 128px -16px;\n\tbackground-size: 150%;\n}\n.Image-module_feather__uz0Ko {\n\tbox-shadow: 0 0 8px 32px var(--image-color-bg) inset;\n\tbackground-size: 100%;\n\tposition: absolute;\n\ttop: 0;\n\tz-index: -1;\n\topacity: 0.7;\n\ttransform: scale(1.5);\n}\n");var i=function(i){var r=i.image,d=i.width,s=i.height;return e("div",{style:{width:d,height:s},className:n,children:[t("div",{className:a,style:{backgroundImage:"url(".concat(r,")")}}),t("div",{className:o,style:{backgroundImage:"url(".concat(r,")")}})]})};export{i as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/Image/index.js.map b/dist/Image/index.js.map new file mode 100644 index 0000000..5b440eb --- /dev/null +++ b/dist/Image/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/Image/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Image","_a","image","width","height","_jsxs","className","styles","children","_jsx","backgroundImage","concat"],"mappings":"qJAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,+qBCrBM,IAAAe,EAAwB,SAACC,GAAE,IAAAC,UAAOC,EAAKF,EAAAE,MAAEC,EAAMH,EAAAG,OACpD,OACCC,EAAK,MAAA,CAAAd,MAAO,CAAEY,MAAKA,EAAEC,OAAMA,GAAIE,UAAWC,EACzCC,SAAA,CAAAC,EAAA,MAAA,CAAKH,UAAWC,EAAchB,MAAO,CAAEmB,gBAAiB,OAAOC,OAAAT,EAAQ,QACvEO,EAAK,MAAA,CAAAH,UAAWC,EAAgBhB,MAAO,CAAEmB,gBAAiB,OAAAC,OAAOT,EAAK,UAGzE","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/Image/types/components/Avatar/Avatar.types.d.ts b/dist/Image/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Image/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Image/types/components/Avatar/avatar.d.ts b/dist/Image/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Image/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Image/types/components/Avatar/group.d.ts b/dist/Image/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Image/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Image/types/components/Avatar/index.d.ts b/dist/Image/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Image/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Image/types/components/Avatar/sizes.d.ts b/dist/Image/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Image/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Image/types/components/Button/Button.types.d.ts b/dist/Image/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Image/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Image/types/components/Button/index.d.ts b/dist/Image/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Image/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Image/types/components/Form/Form.types.d.ts b/dist/Image/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Image/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Image/types/components/Form/index.d.ts b/dist/Image/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Image/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Image/types/components/Form/useForm.d.ts b/dist/Image/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Image/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Image/types/components/Grid/Grid.types.d.ts b/dist/Image/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Image/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Image/types/components/Grid/column.d.ts b/dist/Image/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Image/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Image/types/components/Grid/container.d.ts b/dist/Image/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Image/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Image/types/components/Grid/index.d.ts b/dist/Image/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Image/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Image/types/components/Grid/row.d.ts b/dist/Image/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Image/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Image/types/components/Image/Image.types.d.ts b/dist/Image/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Image/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Image/types/components/Image/index.d.ts b/dist/Image/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Image/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Image/types/components/Input/Input.types.d.ts b/dist/Image/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Image/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Image/types/components/Input/container.d.ts b/dist/Image/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Image/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Image/types/components/Input/index.d.ts b/dist/Image/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Image/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Image/types/components/Input/password.d.ts b/dist/Image/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Image/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Image/types/components/Input/textarea.d.ts b/dist/Image/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Image/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Image/types/components/Notification/Notification.types.d.ts b/dist/Image/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Image/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Image/types/components/Notification/context.d.ts b/dist/Image/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Image/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Image/types/components/Notification/index.d.ts b/dist/Image/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Image/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Image/types/components/Notification/notification.d.ts b/dist/Image/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Image/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Image/types/components/Notification/useNotification.d.ts b/dist/Image/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Image/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Image/types/components/Pagination/Pagination.types.d.ts b/dist/Image/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Image/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Image/types/components/Pagination/index.d.ts b/dist/Image/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Image/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Image/types/components/Pagination/usePagination.d.ts b/dist/Image/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Image/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Image/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Image/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Image/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Image/types/components/SliderBeforeAfter/index.d.ts b/dist/Image/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Image/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Image/types/components/Tags/Tags.types.d.ts b/dist/Image/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Image/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Image/types/components/Tags/index.d.ts b/dist/Image/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Image/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Image/types/components/Tags/tag.d.ts b/dist/Image/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Image/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Image/types/components/ThemeProvider/Theme.types.d.ts b/dist/Image/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Image/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Image/types/components/ThemeProvider/index.d.ts b/dist/Image/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Image/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Image/types/components/ThemeProvider/themes/index.d.ts b/dist/Image/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Image/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Image/types/components/Typography/Typography.types.d.ts b/dist/Image/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Image/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Image/types/components/Typography/index.d.ts b/dist/Image/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Image/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Image/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Image/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Image/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Image/types/components/ZoomImage/index.d.ts b/dist/Image/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Image/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Image/types/components/ZoomImage/useEventListener.d.ts b/dist/Image/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Image/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Image/types/components/index.d.ts b/dist/Image/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Image/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Image/types/index.d.ts b/dist/Image/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Image/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Input/index.js b/dist/Input/index.js new file mode 100644 index 0000000..fe9c678 --- /dev/null +++ b/dist/Input/index.js @@ -0,0 +1,2 @@ +import{jsxs as n,jsx as e}from"react/jsx-runtime";import{useState as t}from"react";var o=function(){return o=Object.assign||function(n){for(var e,t=1,o=arguments.length;t= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SuppressedError","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","InputContainer","props","id","placeholder","name","help","visibleTitle","className","children","_jsxs","styles","wrapper","join","_jsx","htmlFor","label","container","statusMap","error","success","changeSize","size","small","medium","large","Input","status","input","value","onChange","disabled","container__focus","Textarea","Password","_a","useState","setType","changeType","onClick","password__icon","width","height","viewBox","fill","xmlns","d"],"mappings":"mFA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EAmRkD,mBAApBQ,iBAAiCA,yeC3T/D,SAAqBC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,slFCrBA,IAAMe,EAAiC,SAACC,GAC/B,IAAAC,EAAmED,EAAKC,GAApEC,EAA+DF,EAAKE,YAAvDC,EAAkDH,EAAKG,KAAjDC,EAA4CJ,EAAKI,KAA3CC,EAAsCL,eAAxBM,EAAwBN,YAAbO,EAAaP,WAC3E,OACCQ,EAAA,MAAA,CAAKF,UAAW,CAACA,EAAWG,EAAOC,SAASC,KAAK,KAAIJ,SAAA,CACnDF,EACAO,EAAA,QAAA,CAAOC,QAASZ,GAAME,EAAMG,UAAWG,EAAOK,MAC5CP,SAAAL,IAEC,KACJU,EAAK,MAAA,CAAAN,UAAWG,EAAOM,UAASR,SAAGA,IAClCH,EAAOQ,EAAK,MAAA,CAAAN,UAAWG,EAAOL,KAAIG,SAAGH,IAAc,OAGvD,ECZMY,EAAoC,CACzCC,MAAOR,EAAOQ,MACdC,QAAST,EAAOS,SAGXC,EAAa,SAACC,GACnB,OAAQA,GACP,IAAK,QACJ,OAAOX,EAAOY,MACf,IAAK,SAIL,QACC,OAAOZ,EAAOa,OAHf,IAAK,QACJ,OAAOb,EAAOc,MAIjB,EChBMP,EAAoC,CACzCC,MAAOR,EAAOQ,MACdC,QAAST,EAAOS,SAGXC,EAAa,SAACC,GACnB,OAAQA,GACP,IAAK,QACJ,OAAOX,EAAOY,MACf,IAAK,SAIL,QACC,OAAOZ,EAAOa,OAHf,IAAK,QACJ,OAAOb,EAAOc,MAIjB,ECdMP,EAAoC,CACzCC,MAAOR,EAAOQ,MACdC,QAAST,EAAOS,SAGXC,EAAa,SAACC,GACnB,OAAQA,GACP,IAAK,QACJ,OAAOX,EAAOY,MACf,IAAK,SAIL,QACC,OAAOZ,EAAOa,OAHf,IAAK,QACJ,OAAOb,EAAOc,MAIjB,EAEMC,EAA2C,SAACxB,GACzC,IAAAC,EAA2BD,KAAvBG,EAAuBH,EAAKG,KAAtBsB,EAAiBzB,EAAXyB,OAAEL,EAASpB,OACnC,OACCQ,EAACT,EAAc/B,EAAA,CAAA,EAAKgC,EAAK,CAAAO,SAAA,CACxBK,EACC,QAAA,CAAAN,UAAW,CAACG,EAAOiB,MAAOV,EAAUS,GAASN,EAAWC,IAAOT,KAAK,KACpEgB,MAAO3B,EAAM2B,MACbzB,YAAaF,EAAME,YACnBC,KAAMH,EAAMG,KACZb,MAAOU,EAAMV,MACbsC,SAAU5B,EAAM4B,SAChBC,SAAU7B,EAAM6B,SAEhB5B,GAAIA,GAAME,IAEXS,EAAA,MAAA,CAAKN,UAAWG,EAAOqB,sBAG1B,EAEAN,EAAMO,SFtB2B,SAAC/B,GACzB,IAAAC,EAA2BD,KAAvBG,EAAuBH,EAAKG,KAAtBsB,EAAiBzB,EAAXyB,OAAEL,EAASpB,OACnC,OACCQ,EAACT,EAAc/B,EAAA,CAAA,EAAKgC,EAAK,CAAAO,SAAA,CACxBK,EACC,WAAA,CAAAN,UAAW,CAACG,EAAOiB,MAAOV,EAAUS,GAASN,EAAWC,IAAOT,KAAK,KACpEgB,MAAO3B,EAAM2B,MACbzB,YAAaF,EAAME,YACnBC,KAAMH,EAAMG,KACZb,MAAOU,EAAMV,MACbsC,SAAU5B,EAAM4B,SAChBC,SAAU7B,EAAM6B,SAEhB5B,GAAIA,GAAME,IAEXS,EAAA,MAAA,CAAKN,UAAWG,EAAOqB,sBAG1B,EEKAN,EAAMQ,SDvB2B,SAAChC,GACzB,IAAAC,EAA2BD,KAAvBG,EAAuBH,EAAKG,KAAtBsB,EAAiBzB,EAAXyB,OAAEL,EAASpB,OAC7BiC,EAAkBC,EAAS,YAA1B1C,EAAIyC,EAAA,GAAEE,EAAOF,EAAA,GACdG,EAAa,WACAD,EAAT,SAAT3C,EAA0B,WAAsB,OACjD,EACA,OACCgB,EAACT,EAAc/B,EAAA,CAAA,EAAKgC,EACnB,CAAAO,SAAA,CAAAK,EAAA,QAAA,CACCN,UAAW,CAACG,EAAOiB,MAAOV,EAAUS,GAASN,EAAWC,GAAOpB,EAAMM,WAAWK,KAAK,KACrFgB,MAAO3B,EAAM2B,MACbzB,YAAaF,EAAME,YACnBC,KAAMH,EAAMG,KACZb,MAAOU,EAAMV,MACbsC,SAAU5B,EAAM4B,SAChBC,SAAU7B,EAAM6B,SAEhBrC,KAAMA,EACNS,GAAIA,GAAME,IAEXS,EAAA,MAAA,CAAKN,UAAWG,EAAOqB,mBAEtBlB,QADS,aAATpB,GAEC6C,QAASD,EACT9B,UAAWG,EAAO6B,eAClBC,MAAM,KACNC,OAAO,KACPC,QAAQ,YACRC,KAAK,OACLC,MAAM,6BAA4BpC,SAClCK,EAAM,OAAA,CAAAgC,EAAE,i+BAIRP,QAASD,EACT9B,UAAWG,EAAO6B,eAClBC,MAAM,KACNC,OAAO,KACPC,QAAQ,YACRC,KAAK,OACLC,MAAM,6BAA4BpC,SAClCK,EAAM,OAAA,CAAAgC,EAAE,6mCAKb","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/dist/Input/types/components/Avatar/Avatar.types.d.ts b/dist/Input/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Input/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Input/types/components/Avatar/avatar.d.ts b/dist/Input/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Input/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Input/types/components/Avatar/group.d.ts b/dist/Input/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Input/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Input/types/components/Avatar/index.d.ts b/dist/Input/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Input/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Input/types/components/Avatar/sizes.d.ts b/dist/Input/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Input/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Input/types/components/Button/Button.types.d.ts b/dist/Input/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Input/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Input/types/components/Button/index.d.ts b/dist/Input/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Input/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Input/types/components/Form/Form.types.d.ts b/dist/Input/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Input/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Input/types/components/Form/index.d.ts b/dist/Input/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Input/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Input/types/components/Form/useForm.d.ts b/dist/Input/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Input/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Input/types/components/Grid/Grid.types.d.ts b/dist/Input/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Input/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Input/types/components/Grid/column.d.ts b/dist/Input/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Input/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Input/types/components/Grid/container.d.ts b/dist/Input/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Input/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Input/types/components/Grid/index.d.ts b/dist/Input/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Input/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Input/types/components/Grid/row.d.ts b/dist/Input/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Input/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Input/types/components/Image/Image.types.d.ts b/dist/Input/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Input/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Input/types/components/Image/index.d.ts b/dist/Input/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Input/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Input/types/components/Input/Input.types.d.ts b/dist/Input/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Input/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Input/types/components/Input/container.d.ts b/dist/Input/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Input/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Input/types/components/Input/index.d.ts b/dist/Input/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Input/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Input/types/components/Input/password.d.ts b/dist/Input/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Input/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Input/types/components/Input/textarea.d.ts b/dist/Input/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Input/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Input/types/components/Notification/Notification.types.d.ts b/dist/Input/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Input/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Input/types/components/Notification/context.d.ts b/dist/Input/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Input/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Input/types/components/Notification/index.d.ts b/dist/Input/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Input/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Input/types/components/Notification/notification.d.ts b/dist/Input/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Input/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Input/types/components/Notification/useNotification.d.ts b/dist/Input/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Input/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Input/types/components/Pagination/Pagination.types.d.ts b/dist/Input/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Input/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Input/types/components/Pagination/index.d.ts b/dist/Input/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Input/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Input/types/components/Pagination/usePagination.d.ts b/dist/Input/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Input/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Input/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Input/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Input/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Input/types/components/SliderBeforeAfter/index.d.ts b/dist/Input/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Input/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Input/types/components/Tags/Tags.types.d.ts b/dist/Input/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Input/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Input/types/components/Tags/index.d.ts b/dist/Input/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Input/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Input/types/components/Tags/tag.d.ts b/dist/Input/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Input/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Input/types/components/ThemeProvider/Theme.types.d.ts b/dist/Input/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Input/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Input/types/components/ThemeProvider/index.d.ts b/dist/Input/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Input/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Input/types/components/ThemeProvider/themes/index.d.ts b/dist/Input/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Input/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Input/types/components/Typography/Typography.types.d.ts b/dist/Input/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Input/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Input/types/components/Typography/index.d.ts b/dist/Input/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Input/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Input/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Input/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Input/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Input/types/components/ZoomImage/index.d.ts b/dist/Input/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Input/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Input/types/components/ZoomImage/useEventListener.d.ts b/dist/Input/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Input/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Input/types/components/index.d.ts b/dist/Input/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Input/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Input/types/index.d.ts b/dist/Input/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Input/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Notification/index.js b/dist/Notification/index.js new file mode 100644 index 0000000..396f3ef --- /dev/null +++ b/dist/Notification/index.js @@ -0,0 +1,2 @@ +import{jsxs as t,jsx as n}from"react/jsx-runtime";import{createElement as o,createContext as e,useState as i,useRef as a,useEffect as r,useReducer as _}from"react";var l=function(){return l=Object.assign||function(t){for(var n,o=1,e=arguments.length;o * {\n\tbox-sizing: border-box;\n\tflex-shrink: 0;\n\twidth: 100%;\n\tmax-width: 100%;\n\tpadding-right: var(--grid-gutter, 1rem);\n\tpadding-left: var(--grid-gutter, 1rem);\n}\n.Grid-module_col__tbuNg {\n\tflex: 1 0 0%;\n}\n.Grid-module_col_1__MyzeF,\n.Grid-module_col_2__sRZ60,\n.Grid-module_col_3__CuqDO,\n.Grid-module_col_4__RCelf,\n.Grid-module_col_5__TAIvV,\n.Grid-module_col_6__LNNEK,\n.Grid-module_col_7__q8roZ,\n.Grid-module_col_8__XKfnp,\n.Grid-module_col_9__LxTwF,\n.Grid-module_col_10__WV-gW,\n.Grid-module_col_11__v3Qpz,\n.Grid-module_col_12__DTJ17 {\n\tflex: 0 0 auto;\n}\n.Grid-module_col_1__MyzeF {\n\twidth: 8.3333333333%;\n}\n.Grid-module_col_2__sRZ60 {\n\twidth: 16.6666666667%;\n}\n.Grid-module_col_3__CuqDO {\n\twidth: 25%;\n}\n.Grid-module_col_4__RCelf {\n\twidth: 33.3333333333%;\n}\n.Grid-module_col_5__TAIvV {\n\twidth: 41.6666666667%;\n}\n.Grid-module_col_6__LNNEK {\n\twidth: 50%;\n}\n.Grid-module_col_7__q8roZ {\n\twidth: 58.3333333333%;\n}\n.Grid-module_col_8__XKfnp {\n\twidth: 66.6666666667%;\n}\n.Grid-module_col_9__LxTwF {\n\twidth: 75%;\n}\n.Grid-module_col_10__WV-gW {\n\twidth: 83.3333333333%;\n}\n.Grid-module_col_11__v3Qpz {\n\twidth: 91.6666666667%;\n}\n.Grid-module_col_12__DTJ17 {\n\twidth: 100%;\n}\n@media (min-width: 576px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-sm) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_sm__9rpZz {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_sm_1__-fCPU,\n\t.Grid-module_col_sm_2__tGzLB,\n\t.Grid-module_col_sm_3__TAwTi,\n\t.Grid-module_col_sm_4__kNOrg,\n\t.Grid-module_col_sm_5__sG8lE,\n\t.Grid-module_col_sm_6__CINeN,\n\t.Grid-module_col_sm_7__-ayi1,\n\t.Grid-module_col_sm_8__oEhws,\n\t.Grid-module_col_sm_9__BIYx2,\n\t.Grid-module_col_sm_10__Pyfma,\n\t.Grid-module_col_sm_11__fHLUB,\n\t.Grid-module_col_sm_12__QI-IN {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_sm_1__-fCPU {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_sm_2__tGzLB {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_sm_3__TAwTi {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_sm_4__kNOrg {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_sm_5__sG8lE {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_sm_6__CINeN {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_sm_7__-ayi1 {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_sm_8__oEhws {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_sm_9__BIYx2 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_sm_10__Pyfma {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_sm_11__fHLUB {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_sm_12__QI-IN {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 768px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-md) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_md__3Zcpj {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_md_1__Ckmni,\n\t.Grid-module_col_md_2__AAkiv,\n\t.Grid-module_col_md_3__0C9dO,\n\t.Grid-module_col_md_4__LvLsL,\n\t.Grid-module_col_md_5__LCSDz,\n\t.Grid-module_col_md_6__--daD,\n\t.Grid-module_col_md_7__pS2qV,\n\t.Grid-module_col_md_8__hd3-b,\n\t.Grid-module_col_md_9__KJoe0,\n\t.Grid-module_col_md_10__a2sjJ,\n\t.Grid-module_col_md_11__YBofe,\n\t.Grid-module_col_md_12__UhALC {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_md_1__Ckmni {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_md_2__AAkiv {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_md_3__0C9dO {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_md_4__LvLsL {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_md_5__LCSDz {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_md_6__--daD {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_md_7__pS2qV {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_md_8__hd3-b {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_md_9__KJoe0 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_md_10__a2sjJ {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_md_11__YBofe {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_md_12__UhALC {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 992px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-lg) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_lg__NXy7I {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_lg_1__j633I,\n\t.Grid-module_col_lg_2__QG9bL,\n\t.Grid-module_col_lg_3__myOlM,\n\t.Grid-module_col_lg_4__7RR08,\n\t.Grid-module_col_lg_5__o-a6-,\n\t.Grid-module_col_lg_6__7zJQ5,\n\t.Grid-module_col_lg_7__dT-5D,\n\t.Grid-module_col_lg_8__vDrAT,\n\t.Grid-module_col_lg_9__A2KQ4,\n\t.Grid-module_col_lg_10__Xr--R,\n\t.Grid-module_col_lg_11__jpOcC,\n\t.Grid-module_col_lg_12__-gy3E {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_lg_1__j633I {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_lg_2__QG9bL {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_lg_3__myOlM {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_lg_4__7RR08 {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_lg_5__o-a6- {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_lg_6__7zJQ5 {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_lg_7__dT-5D {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_lg_8__vDrAT {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_lg_9__A2KQ4 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_lg_10__Xr--R {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_lg_11__jpOcC {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_lg_12__-gy3E {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 1200px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-xl) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_xl__jS-i1 {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_xl_1__kBolW,\n\t.Grid-module_col_xl_2__IH5jz,\n\t.Grid-module_col_xl_3__Kn-C2,\n\t.Grid-module_col_xl_4__aTIvC,\n\t.Grid-module_col_xl_5__7GYzh,\n\t.Grid-module_col_xl_6__MKLsR,\n\t.Grid-module_col_xl_7__M7WS8,\n\t.Grid-module_col_xl_8__TQnQo,\n\t.Grid-module_col_xl_9__sP4MR,\n\t.Grid-module_col_xl_10__-7xEu,\n\t.Grid-module_col_xl_11__N8H2l,\n\t.Grid-module_col_xl_12__7foyP {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_xl_1__kBolW {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_xl_2__IH5jz {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_xl_3__Kn-C2 {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_xl_4__aTIvC {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_xl_5__7GYzh {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_xl_6__MKLsR {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_xl_7__M7WS8 {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_xl_8__TQnQo {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_xl_9__sP4MR {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_xl_10__-7xEu {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_xl_11__N8H2l {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_xl_12__7foyP {\n\t\twidth: 100%;\n\t}\n}\n@media (min-width: 1400px) {\n\t.Grid-module_container__4yqTC {\n\t\tmax-width: calc(var(--grid-xxl) - (2 * var(--grid-gutter)));\n\t}\n\t.Grid-module_col_xxl__-DCs4 {\n\t\tflex: 1 0 0%;\n\t}\n\t.Grid-module_col_xxl_1__-iTEQ,\n\t.Grid-module_col_xxl_2__gj4dY,\n\t.Grid-module_col_xxl_3__bwBM0,\n\t.Grid-module_col_xxl_4__iVvEk,\n\t.Grid-module_col_xxl_5__qm1WV,\n\t.Grid-module_col_xxl_6__9U-Df,\n\t.Grid-module_col_xxl_7__9pm5M,\n\t.Grid-module_col_xxl_8__zd4N4,\n\t.Grid-module_col_xxl_9__GJla9,\n\t.Grid-module_col_xxl_10__WPNKQ,\n\t.Grid-module_col_xxl_11__i5wV6,\n\t.Grid-module_col_xxl_12__wmHW2 {\n\t\tflex: 0 0 auto;\n\t}\n\t.Grid-module_col_xxl_1__-iTEQ {\n\t\twidth: 8.3333333333%;\n\t}\n\t.Grid-module_col_xxl_2__gj4dY {\n\t\twidth: 16.6666666667%;\n\t}\n\t.Grid-module_col_xxl_3__bwBM0 {\n\t\twidth: 25%;\n\t}\n\t.Grid-module_col_xxl_4__iVvEk {\n\t\twidth: 33.3333333333%;\n\t}\n\t.Grid-module_col_xxl_5__qm1WV {\n\t\twidth: 41.6666666667%;\n\t}\n\t.Grid-module_col_xxl_6__9U-Df {\n\t\twidth: 50%;\n\t}\n\t.Grid-module_col_xxl_7__9pm5M {\n\t\twidth: 58.3333333333%;\n\t}\n\t.Grid-module_col_xxl_8__zd4N4 {\n\t\twidth: 66.6666666667%;\n\t}\n\t.Grid-module_col_xxl_9__GJla9 {\n\t\twidth: 75%;\n\t}\n\t.Grid-module_col_xxl_10__WPNKQ {\n\t\twidth: 83.3333333333%;\n\t}\n\t.Grid-module_col_xxl_11__i5wV6 {\n\t\twidth: 91.6666666667%;\n\t}\n\t.Grid-module_col_xxl_12__wmHW2 {\n\t\twidth: 100%;\n\t}\n}\n");c(".Image-module_wrapper__fVsE- {\n\tposition: relative;\n\tmargin: 0 auto;\n}\n.Image-module_image__Zq9Zs,\n.Image-module_feather__uz0Ko {\n\tborder-radius: 4px;\n\tbackground-position: center;\n\twidth: inherit;\n\theight: inherit;\n}\n.Image-module_image__Zq9Zs {\n\tcolor: rgba(0, 0, 0, 0.16);\n\tbox-shadow:\n\t\t0 2px 4px,\n\t\t0 4px 8px -1px,\n\t\t0 8px 16px -2px,\n\t\t0 16px 32px -4px,\n\t\t0 32px 64px -8px,\n\t\t0 64px 128px -16px;\n\tbackground-size: 150%;\n}\n.Image-module_feather__uz0Ko {\n\tbox-shadow: 0 0 8px 32px var(--image-color-bg) inset;\n\tbackground-size: 100%;\n\tposition: absolute;\n\ttop: 0;\n\tz-index: -1;\n\topacity: 0.7;\n\ttransform: scale(1.5);\n}\n");c(".Avatar-module_symbol__xbFTX {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 50%;\n\twidth: 100%;\n\theight: 100%;\n\tfont-family: var(--avatar-font-family);\n\tfont-weight: var(--avatar-font-weight);\n\tcolor: var(--avatar-color-text);\n}\n.Avatar-module_symbol__small__x7Lm9 {\n\tfont-size: var(--avatar-symbol-small);\n}\n.Avatar-module_symbol__medium__3pyPf {\n\tfont-size: var(--avatar-symbol-medium);\n}\n.Avatar-module_symbol__large__N1jdH {\n\tfont-size: var(--avatar-symbol-large);\n}\n.Avatar-module_wrapper__ab1D7 {\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground-color: var(--avatar-color-wrapper);\n\tbox-sizing: border-box;\n\tborder-radius: 50%;\n\tz-index: 5;\n}\n.Avatar-module_wrapper__small__L81Ei {\n\twidth: var(--avatar-size-wrapper-small);\n\theight: var(--avatar-size-wrapper-small);\n}\n.Avatar-module_wrapper__medium__qvWqZ {\n\twidth: var(--avatar-size-wrapper-medium);\n\theight: var(--avatar-size-wrapper-medium);\n}\n.Avatar-module_wrapper__large__6boUL {\n\twidth: var(--avatar-size-wrapper-large);\n\theight: var(--avatar-size-wrapper-large);\n}\n.Avatar-module_image__ieqGp {\n\tborder-radius: 50%;\n\toverflow: hidden;\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\tz-index: 5;\n}\n.Avatar-module_image__small__-vnbP {\n\tmax-width: var(--avatar-size-small);\n\tmax-height: var(--avatar-size-small);\n}\n.Avatar-module_image__medium__SrfOA {\n\tmax-width: var(--avatar-size-medium);\n\tmax-height: var(--avatar-size-medium);\n}\n.Avatar-module_image__large__U9Bt3 {\n\tmax-width: var(--avatar-size-large);\n\tmax-height: var(--avatar-size-large);\n}\n.Avatar-module_checkOnline__7Ypz1 {\n\tposition: absolute;\n\tborder-radius: 50%;\n\tbackground-color: var(--avatar-color-check-online-background);\n\tz-index: 10;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n.Avatar-module_checkOnline__7Ypz1::before {\n\tcontent: '';\n\tdisplay: block;\n\tborder-radius: 50%;\n\tbackground-color: var(--avatar-color-check-online);\n\tz-index: 15;\n}\n.Avatar-module_checkOnline__small__Ocva7 {\n\twidth: var(--avatar-check-online-background-small);\n\theight: var(--avatar-check-online-background-small);\n\tbottom: 4px;\n\tright: 4px;\n}\n.Avatar-module_checkOnline__small__Ocva7::before {\n\twidth: var(--avatar-check-online-small);\n\theight: var(--avatar-check-online-small);\n}\n.Avatar-module_checkOnline__medium__uXqQd {\n\twidth: var(--avatar-check-online-background-medium);\n\theight: var(--avatar-check-online-background-medium);\n\tbottom: 6px;\n\tright: 10px;\n}\n.Avatar-module_checkOnline__medium__uXqQd::before {\n\twidth: var(--avatar-check-online-medium);\n\theight: var(--avatar-check-online-medium);\n}\n.Avatar-module_checkOnline__large__tMqp5 {\n\twidth: var(--avatar-check-online-background-large);\n\theight: var(--avatar-check-online-background-large);\n\tbottom: 12px;\n\tright: 28px;\n}\n.Avatar-module_checkOnline__large__tMqp5::before {\n\twidth: var(--avatar-check-online-large);\n\theight: var(--avatar-check-online-large);\n}\n.Avatar-module_group__LHuq2 {\n\tdisplay: flex;\n}\n.Avatar-module_group__LHuq2:first-child {\n\tmargin-left: 0;\n}\n.Avatar-module_group__LHuq2 > * {\n\tmargin-left: -18px;\n}\n.Avatar-module_add__C8OWd {\n\tcursor: pointer;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: var(--avatar-color-add);\n\tborder-radius: 50%;\n}\n.Avatar-module_add__icon__Vdn8N {\n\tfill: var(--avatar-color-wrapper);\n}\n");c(".Input-module_wrapper__iHNUs {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n.Input-module_container__zLqel {\n\tposition: relative;\n}\n.Input-module_container__focus__hLXnf {\n\topacity: 0;\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: var(--input-color-focus);\n\tfilter: blur(4px);\n\ttransition: all 0.3s ease-in-out;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 0;\n}\n.Input-module_label__-OEBL {\n\tfont-family: var(--input-font-family);\n\tfont-weight: var(--input-font-weight);\n\tfont-size: 14px;\n\tline-height: 16px;\n\tcolor: var(--input-color-label);\n\tmargin-bottom: 4px;\n}\n.Input-module_input__WjT81 {\n\tfont-family: var(--input-font-family);\n\tfont-weight: var(--input-font-weight);\n\tcolor: var(--input-color-input);\n\tbackground-color: #ffffff;\n\toverflow: hidden;\n\twidth: 100%;\n\tposition: relative;\n\tpadding: 0;\n\tpadding-left: 8px;\n\tpadding-right: 20px;\n\tborder: solid 1px var(--input-color-border-input);\n\tborder-radius: 4px;\n\ttransition: all 0.3s ease-in-out;\n\tbox-sizing: border-box;\n\tz-index: 1;\n}\n.Input-module_input__WjT81:focus {\n\toutline: 1px solid var(--input-color-focus);\n}\n.Input-module_input__WjT81:focus + .Input-module_container__focus__hLXnf {\n\topacity: 1;\n}\n.Input-module_input__WjT81::placeholder {\n\tcolor: var(--input-color-placeholder);\n}\n.Input-module_success__EzYG6 {\n\tborder: 1px solid var(--input-color-success);\n}\n.Input-module_success__EzYG6:focus {\n\tborder: 1px solid var(--input-color-success);\n}\n.Input-module_error__VLISa {\n\tborder: 1px solid var(--input-color-error);\n}\n.Input-module_error__VLISa:focus {\n\tborder: 1px solid var(--input-color-focus);\n}\n.Input-module_small__64a4F {\n\theight: 24px;\n\tpadding-top: 4px;\n\tpadding-bottom: 4px;\n\tfont-size: 14px;\n\tline-height: 16px;\n}\n.Input-module_medium__2Ngfz {\n\theight: 32px;\n\tpadding-top: 6px;\n\tpadding-bottom: 6px;\n\tfont-size: 16px;\n\tline-height: 20px;\n}\n.Input-module_large__g7SQh {\n\theight: 40px;\n\tpadding-top: 8px;\n\tpadding-bottom: 8px;\n\tfont-size: 20px;\n\tline-height: 24px;\n}\n.Input-module_help__SIXy2 {\n\tfont-family: var(--input-font-family);\n\tfont-weight: var(--input-font-weight);\n\tfont-size: 14px;\n\tline-height: 16px;\n\tcolor: var(--input-color-error);\n\tmargin-top: 4px;\n}\n.Input-module_password__icon__vYleG {\n\tposition: absolute;\n\ttop: 50%;\n\tright: 12px;\n\ttransform: translate(-50%, -50%);\n\tz-index: 2;\n\tcursor: pointer;\n\tfill: var(--input-color-border-input);\n\ttransition: all 0.3s ease-in-out;\n}\n.Input-module_password__icon__vYleG:hover {\n\tfill: var(--input-color-focus);\n}\n");c(".Tags-module_wrapper__BJFRr {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n.Tags-module_tag__oUK5g {\n\tfont-size: 16px;\n\tcolor: var(--tags-color-text);\n\ttext-decoration: none;\n\twhite-space: nowrap;\n\tpadding: 8px 12px;\n\tmargin: 8px;\n\tborder-radius: 16px;\n\ttransition: all 0.3s;\n\tcursor: pointer;\n\tbox-sizing: border-box;\n\tbackground: var(--tags-color-default);\n\tborder: 1px solid var(--tags-color-default);\n}\n.Tags-module_activ__VJ5cx {\n\tcolor: var(--tags-color-activ);\n\tbackground: none;\n\tborder: 1px solid var(--tags-color-activ);\n}\n");c(".light-module_root__0i7lr {\n\t--name: light;\n\t--font-family: PT Astra Sans, sans-serif;\n\t--font-size: 16px;\n\t--font-weight: 400;\n\t--line-height: 20px;\n\t--transition: 0.3s;\n\t--grid-gutter: 16px;\n\t--grid-sm: 576px;\n\t--grid-md: 768px;\n\t--grid-lg: 992px;\n\t--grid-xl: 1200px;\n\t--grid-xxl: 1400px;\n\t--typography-font-family-heading: PT Astra Sans;\n\t--typography-font-weight-heading: 700;\n\t--typography-font-family-body: PT Astra Sans;\n\t--typography-font-weight-body: 400;\n\t--typography-color-accent: #00acc1;\n\t--typography-color-text: #212121;\n\t--typography-color-secondary: #757575;\n\t--typography-h1-size: 40px;\n\t--typography-h1-height: 48px;\n\t--typography-h2-size: 32px;\n\t--typography-h2-height: 40px;\n\t--typography-h3-size: 28px;\n\t--typography-h3-height: 32px;\n\t--typography-h4-size: 24px;\n\t--typography-h4-height: 28px;\n\t--typography-h5-size: 20px;\n\t--typography-h5-height: 24px;\n\t--typography-h6-size: 16px;\n\t--typography-h6-height: 20px;\n\t--typography-p-size: 16px;\n\t--typography-p-height: 24px;\n\t--typography-caption-size: 16px;\n\t--typography-caption-height: 24px;\n\t--typography-letter-spacing-heading: 0.5px;\n\t--typography-letter-spacing-body: 1px;\n\t--pagination-font-family: PT Astra Sans;\n\t--pagination-font-size: 16px;\n\t--pagination-font-weight: 400;\n\t--pagination-line-height: 20px;\n\t--pagination-colors-base: #212121;\n\t--pagination-colors-hover: #eeeeee;\n\t--notification-color-item: #fafafa;\n\t--notification-color-title: #212121;\n\t--notification-color-message: #212121;\n\t--notification-color-close: #bdbdbd;\n\t--notification-color-border-close: #bdbdbd;\n\t--notification-color-close-hover: #757575;\n\t--notification-color-success: #66bb6a;\n\t--notification-color-error: #ef5350;\n\t--notification-color-warning: #ffa726;\n\t--notification-color-info: #42a5f5;\n\t--avatar-size-wrapper-small: 48px;\n\t--avatar-size-wrapper-medium: 92px;\n\t--avatar-size-wrapper-large: 184px;\n\t--avatar-size-small: 44px;\n\t--avatar-size-medium: 88px;\n\t--avatar-size-large: 176px;\n\t--avatar-font-family: PT Astra Sans;\n\t--avatar-font-weight: 400;\n\t--avatar-symbol-small: 20px;\n\t--avatar-symbol-medium: 32px;\n\t--avatar-symbol-large: 48px;\n\t--avatar-check-online-small: 6px;\n\t--avatar-check-online-medium: 10px;\n\t--avatar-check-online-large: 16px;\n\t--avatar-check-online-background-small: 8px;\n\t--avatar-check-online-background-medium: 12px;\n\t--avatar-check-online-background-large: 20px;\n\t--avatar-color-text: #212121;\n\t--avatar-color-wrapper: #fafafa;\n\t--avatar-color-add: #4caf50;\n\t--avatar-color-check-online: #4caf50;\n\t--avatar-color-check-online-background: #fafafa;\n\t--button-font-family: PT Astra Sans;\n\t--button-font-weight: 400;\n\t--button-letter-spacing: 1px;\n\t--button-radius: 4px;\n\t--button-loading: #616161;\n\t--button-primary-text: #fafafa;\n\t--button-primary-base: #00897b;\n\t--button-primary-hover-text: #fafafa;\n\t--button-primary-hover-base: #26a69a;\n\t--button-primary-focus-text: #fafafa;\n\t--button-primary-focus-base: #00796b;\n\t--button-primary-activ-text: #fafafa;\n\t--button-primary-activ-base: #00796b;\n\t--button-secondary-text: #00897b;\n\t--button-secondary-base: #fafafa;\n\t--button-secondary-border: #00897b;\n\t--button-secondary-hover-text: #fafafa;\n\t--button-secondary-hover-base: #00897b;\n\t--button-secondary-hover-border: #00897b;\n\t--button-secondary-focus-text: #fafafa;\n\t--button-secondary-focus-base: #00796b;\n\t--button-secondary-focus-border: #00796b;\n\t--button-secondary-activ-text: #fafafa;\n\t--button-secondary-activ-base: #00796b;\n\t--button-secondary-activ-border: #00796b;\n\t--button-text-text: #00897b;\n\t--button-text-base: #fafafa;\n\t--button-text-hover-text: #00897b;\n\t--button-text-hover-base: #f5f5f5;\n\t--button-text-focus-text: #00897b;\n\t--button-text-focus-base: #eeeeee;\n\t--button-text-activ-text: #00897b;\n\t--button-text-activ-base: #eeeeee;\n\t--button-disabled-text: #bdbdbd;\n\t--button-disabled-base: #f5f5f5;\n\t--button-disabled-hover-text: #bdbdbd;\n\t--button-disabled-hover-base: #f5f5f5;\n\t--button-disabled-focus-text: #bdbdbd;\n\t--button-disabled-focus-base: #f5f5f5;\n\t--button-disabled-activ-text: #bdbdbd;\n\t--button-disabled-activ-base: #f5f5f5;\n\t--button-danger-text: #fafafa;\n\t--button-danger-base: #f44336;\n\t--button-danger-hover-text: #fafafa;\n\t--button-danger-hover-base: #ef5350;\n\t--button-danger-focus-text: #fafafa;\n\t--button-danger-focus-base: #e53935;\n\t--button-danger-activ-text: #fafafa;\n\t--button-danger-activ-base: #e53935;\n\t--zoom-image-base: #fafafa;\n\t--input-font-family: PT Astra Sans;\n\t--input-font-weight: 400;\n\t--input-color-label: #212121;\n\t--input-color-input: #212121;\n\t--input-color-border-input: #bdbdbd;\n\t--input-color-focus: #00897b;\n\t--input-color-placeholder: #bdbdbd;\n\t--input-color-success: #66bb6a;\n\t--input-color-error: #d32f2f;\n\t--tags-color-text: #212121;\n\t--tags-color-default: #e0e0e0;\n\t--tags-color-activ: #00897b;\n\t--image-color-bg: #fafafa;\n\t--slider-before-after-colors-slider: #fafafa;\n\t--slider-before-after-colors-arrows: #212121;\n\t--radius: 4px;\n\t--blur: 16px;\n}\n");c(".dark-module_root__c1J-- {\n\t--name: dark;\n\t--font-family: PT Astra Sans, sans-serif;\n\t--font-size: 16px;\n\t--font-weight: 400;\n\t--line-height: 20px;\n\t--transition: 0.3s;\n\t--grid-gutter: 16px;\n\t--grid-sm: 576px;\n\t--grid-md: 768px;\n\t--grid-lg: 992px;\n\t--grid-xl: 1200px;\n\t--grid-xll: 1400px;\n\t--typography-font-family-heading: PT Astra Sans;\n\t--typography-font-weight-heading: 700;\n\t--typography-font-family-body: PT Astra Sans;\n\t--typography-font-weight-body: 400;\n\t--typography-color-accent: #00acc1;\n\t--typography-color-text: #212121;\n\t--typography-color-secondary: #757575;\n\t--typography-h1-size: 40px;\n\t--typography-h1-height: 48px;\n\t--typography-h2-size: 32px;\n\t--typography-h2-height: 40px;\n\t--typography-h3-size: 28px;\n\t--typography-h3-height: 32px;\n\t--typography-h4-size: 24px;\n\t--typography-h4-height: 28px;\n\t--typography-h5-size: 20px;\n\t--typography-h5-height: 24px;\n\t--typography-h6-size: 16px;\n\t--typography-h6-height: 20px;\n\t--typography-p-size: 16px;\n\t--typography-p-height: 24px;\n\t--typography-caption-size: 16px;\n\t--typography-caption-height: 24px;\n\t--typography-letter-spacing-heading: 0.5px;\n\t--typography-letter-spacing-body: 1px;\n\t--pagination-font-family: PT Astra Sans;\n\t--pagination-font-size: 16px;\n\t--pagination-font-weight: 400;\n\t--pagination-line-height: 20px;\n\t--pagination-colors-base: #212121;\n\t--pagination-colors-hover: #bdbdbd;\n\t--notification-color-item: #fafafa;\n\t--notification-color-title: #212121;\n\t--notification-color-message: #212121;\n\t--notification-color-close: #bdbdbd;\n\t--notification-color-border-close: #bdbdbd;\n\t--notification-color-close-hover: #757575;\n\t--notification-color-success: #66bb6a;\n\t--notification-color-error: #ef5350;\n\t--notification-color-warning: #ffa726;\n\t--notification-color-info: #42a5f5;\n\t--avatar-size-small: 44px;\n\t--avatar-size-medium: 88px;\n\t--avatar-size-large: 176px;\n\t--avatar-font-family: PT Astra Sans;\n\t--avatar-font-weight: 400;\n\t--avatar-symbol-small: 18px;\n\t--avatar-symbol-medium: 24px;\n\t--avatar-symbol-large: 36px;\n\t--avatar-check-online-small: 6px;\n\t--avatar-check-online-medium: 10px;\n\t--avatar-check-online-large: 16px;\n\t--avatar-check-online-background-small: 8px;\n\t--avatar-check-online-background-medium: 12px;\n\t--avatar-check-online-background-large: 20px;\n\t--avatar-color-text: #212121;\n\t--avatar-color-check-online: #66bb6a;\n\t--avatar-color-check-online-background: #f5f5f5;\n\t--radius: 4px;\n\t--blur: 16px;\n}\n"),e(null);var V=e(null),q={notification__wrapper:"Notification-module_notification__wrapper__ZBzYJ",notification__item:"Notification-module_notification__item__kNGem",SlideLeft:"Notification-module_SlideLeft__kUqVT",notification__exit:"Notification-module_notification__exit__BD5Go",SlideRight:"Notification-module_SlideRight__hmZm7",notification__content:"Notification-module_notification__content__-HYJY",notification__close:"Notification-module_notification__close__bYHx1",notification__closeIcon:"Notification-module_notification__closeIcon__9l9gV",notification__bar:"Notification-module_notification__bar__Enk-F",notification__border:"Notification-module_notification__border__wJoDx",notification__success:"Notification-module_notification__success__BCTSw",notification__error:"Notification-module_notification__error__V9tK4",notification__warring:"Notification-module_notification__warring__xKjpW",notification__info:"Notification-module_notification__info__t--x4"};c(".Notification-module_notification__wrapper__ZBzYJ {\n\tposition: fixed;\n\tbottom: 16px;\n\tright: 16px;\n\tz-index: 99999;\n}\n.Notification-module_notification__item__kNGem {\n\tposition: relative;\n\tbackground: var(--notification-color-item);\n\tbox-shadow: 0 0 10px rgba(0, 0, 0, 0.15);\n\tborder-radius: 4px;\n\toverflow: hidden;\n\tmargin-bottom: 20px;\n\tanimation: Notification-module_SlideLeft__kUqVT 0.4s;\n\tanimation-fill-mode: forwards;\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\twidth: 300px;\n\tpadding: 20px 16px 20px 0;\n}\n@keyframes Notification-module_SlideLeft__kUqVT {\n\t0% {\n\t\tmargin-left: 120%;\n\t}\n\t100% {\n\t\tmargin-left: 0;\n\t}\n}\n@keyframes Notification-module_SlideRight__hmZm7 {\n\t0% {\n\t\tmargin-left: 0;\n\t}\n\t100% {\n\t\tmargin-left: 120%;\n\t}\n}\n.Notification-module_notification__exit__BD5Go {\n\tanimation: Notification-module_SlideRight__hmZm7 0.4s;\n\tanimation-fill-mode: forwards;\n}\n.Notification-module_notification__content__-HYJY {\n\tmargin-left: 16px;\n\tmargin-right: 12px;\n}\n.Notification-module_notification__close__bYHx1 {\n\twidth: 32px;\n\theight: 32px;\n\tborder: 1px solid var(--notification-color-border-close);\n\tborder-radius: 50%;\n\tcursor: pointer;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tposition: relative;\n}\n.Notification-module_notification__close__bYHx1:hover .Notification-module_notification__closeIcon__9l9gV::before,\n.Notification-module_notification__close__bYHx1:hover .Notification-module_notification__closeIcon__9l9gV::after {\n\tbackground-color: var(--notification-color-close-hover);\n}\n.Notification-module_notification__closeIcon__9l9gV::before,\n.Notification-module_notification__closeIcon__9l9gV::after {\n\tposition: absolute;\n\tdisplay: block;\n\tcontent: '';\n\theight: 2px;\n\twidth: 16px;\n\tbackground-color: var(--notification-color-close);\n\tborder: 2px;\n\ttop: 50%;\n\tleft: 50%;\n\ttransition: all 0.3s ease-in-out;\n}\n.Notification-module_notification__closeIcon__9l9gV::before {\n\ttransform: translateX(-50%) rotate(-45deg);\n}\n.Notification-module_notification__closeIcon__9l9gV::after {\n\ttransform: translateX(-50%) rotate(45deg);\n}\n.Notification-module_notification__bar__Enk-F {\n\tposition: absolute;\n\tbottom: 0;\n\tleft: 0;\n\theight: 4px;\n\tborder-radius: 4px;\n}\n.Notification-module_notification__border__wJoDx {\n\twidth: 8px;\n\theight: 100%;\n\tposition: absolute;\n}\n.Notification-module_notification__success__BCTSw .Notification-module_notification__border__wJoDx,\n.Notification-module_notification__success__BCTSw .Notification-module_notification__bar__Enk-F {\n\tbackground-color: var(--notification-color-success);\n}\n\n.Notification-module_notification__error__V9tK4 .Notification-module_notification__border__wJoDx,\n.Notification-module_notification__error__V9tK4 .Notification-module_notification__bar__Enk-F {\n\tbackground-color: var(--notification-color-error);\n}\n.Notification-module_notification__warring__xKjpW .Notification-module_notification__border__wJoDx,\n.Notification-module_notification__warring__xKjpW .Notification-module_notification__bar__Enk-F {\n\tbackground-color: var(--notification-color-warning);\n}\n.Notification-module_notification__info__t--x4 .Notification-module_notification__border__wJoDx,\n.Notification-module_notification__info__t--x4 .Notification-module_notification__bar__Enk-F {\n\tbackground-color: var(--notification-color-info);\n}\n");var j=function(o){var e,_=o.type,d=i(!1),c=d[0],p=d[1],u=i(0),s=u[0],m=u[1],h=a(null),g=function(){h.current=setInterval((function(){m((function(t){return t<100?t+.5:(h.current&&clearInterval(h.current),t)}))}),20)},f=function(){h.current&&(clearInterval(h.current),h.current=null)};return r((function(){100===s&&(f(),p(!0),setTimeout((function(){o.dispatch({type:"REMOVE_NOTIFICATION",id:o.id})}),400))}),[s]),r((function(){g()}),[]),t("div",l({onMouseEnter:f,onMouseLeave:g,className:[q.notification__item,(e={},e[q.notification__success]="SUCCESS"===_,e[q.notification__error]="ERROR"===_,e[q.notification__warring]="WARNING"===_,e[q.notification__info]="INFO"===_,e[q.notification__exit]=c,e)].join(" ")},o,{children:[n("div",{className:q.notification__border}),t("div",{className:q.notification__content,children:[n(O,{color:"text",type:"h6",children:o.title}),n(O,{color:"text",type:"text",children:o.message})]}),n("div",{className:q.notification__close,onClick:function(){f(),p(!0),o.dispatch({type:"REMOVE_NOTIFICATION",id:o.id})},children:n("div",{className:q.notification__closeIcon})}),n("div",{className:q.notification__bar,style:{width:"".concat(100-s,"%")}})]}))},E=function(o){var e=_((function(t,n){switch(n.type){case"ADD_NOTIFICATION":return d(d([],t,!0),[l({},n.payload)],!1);case"REMOVE_NOTIFICATION":return t.filter((function(t){return t.id!==n.id}));default:return t}}),[]),i=e[0],a=e[1];return t(V.Provider,{value:a,children:[n("div",{className:q.notification__wrapper,children:i.map((function(t){return n(j,l({dispatch:a},t),t.id)}))}),o.children]})};export{E as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/Notification/index.js.map b/dist/Notification/index.js.map new file mode 100644 index 0000000..8e9d701 --- /dev/null +++ b/dist/Notification/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/tslib/tslib.es6.js","../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/Typography/index.tsx","../../src/components/ThemeProvider/index.tsx","../../src/components/Notification/context.ts","../../src/components/Notification/notification.tsx","../../src/components/Notification/index.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null,null,null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__spreadArray","to","from","pack","ar","l","Array","slice","concat","styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","SuppressedError","styleMap","normal","styles","italic","oblique","colorMap","accent","secondary","text","transformMap","capitalize","lowercase","uppercase","none","decorationMap","overline","underline","typeMap","h1","h2","h3","h4","h5","h6","caption","Typography","props","_a","color","_b","_c","decoration","_d","transform","_e","fontStyle","className","join","children","createContext","NotificationContext","Notification","useState","exit","setExit","width","setWidth","timerRef","useRef","handleStartTimer","current","setInterval","prev","clearInterval","handlePauseTimer","useEffect","setTimeout","dispatch","id","_jsxs","onMouseEnter","onMouseLeave","notification__item","notification__success","notification__error","notification__warring","notification__info","notification__exit","_jsx","notification__border","notification__content","title","message","notification__close","onClick","notification__closeIcon","notification__bar","NotificationProvider","useReducer","state","action","payload","filter","el","Provider","value","notification__wrapper","map","note"],"mappings":"oKA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EA6KO,SAASQ,EAAcC,EAAIC,EAAMC,GACpC,GAAIA,GAA6B,IAArBX,UAAUC,OAAc,IAAK,IAA4BW,EAAxBd,EAAI,EAAGe,EAAIH,EAAKT,OAAYH,EAAIe,EAAGf,KACxEc,GAAQd,KAAKY,IACRE,IAAIA,EAAKE,MAAMX,UAAUY,MAAMV,KAAKK,EAAM,EAAGZ,IAClDc,EAAGd,GAAKY,EAAKZ,IAGrB,OAAOW,EAAGO,OAAOJ,GAAME,MAAMX,UAAUY,MAAMV,KAAKK,GACtD,CC7NA,SAASO,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,CDkSkD,mBAApBe,iBAAiCA,u6YEvT/D,IAAMC,EAAmC,CACxCC,OAAQC,EACRC,OAAQD,EACRE,QAASF,GAEJG,EAAmC,CACxCC,OAAQJ,EACRK,UAAWL,EACXM,KAAMN,GAEDO,EAAuC,CAC5CC,WAAYR,EACZS,UAAWT,EACXU,UAAWV,EACXW,KAAM,IAEDC,EAAwC,CAC7CC,SAAUb,EACVc,UAAWd,EACX,eAAgBA,EAChBW,KAAM,IAEDI,EAAkC,CACvCC,GAAIhB,EACJiB,GAAIjB,EACJkB,GAAIlB,EACJmB,GAAInB,EACJoB,GAAIpB,EACJqB,GAAIrB,EACJM,KAAMN,EACNsB,QAAStB,GAGJuB,EAAkC,SAACC,GAChC,IAAAC,EAAiGD,EAAnFE,MAAdA,OAAQ,IAAAD,EAAA,SAAQE,EAAiFH,EAApElC,KAAbA,OAAO,IAAAqC,EAAA,SAAQC,EAAkEJ,EAA/CK,WAAnBA,OAAa,IAAAD,EAAA,SAAQE,EAA6CN,EAA3BO,UAAlBA,OAAY,IAAAD,EAAA,SAAQE,EAAyBR,EAALS,UAApBA,OAAY,IAAAD,EAAA,WAW5F,OAAO3C,EAAcmC,EAAMlC,YAAWkC,GAAK,CAAEU,UATrC,CACNV,EAAMU,UACNnB,EAAQzB,GACRQ,EAASmC,GACT9B,EAASuB,GACTnB,EAAawB,GACbnB,EAAciB,IACbM,KAAK,OAEqEX,EAAMY,SACpF,gxuBC1B4BC,EAA0B,MCtBtD,IAAMC,EAAsBD,EAA0B,m3ICGtD,IAAME,EAAsC,SAACf,SACpClC,EAASkC,EAAKlC,KAChBqC,EAAkBa,GAAS,GAA1BC,EAAId,EAAA,GAAEe,EAAOf,EAAA,GACdC,EAAoBY,EAAS,GAA5BG,EAAKf,EAAA,GAAEgB,EAAQhB,EAAA,GAChBiB,EAAWC,EAA4B,MAEvCC,EAAmB,WACxBF,EAASG,QAAUC,aAAY,WAC9BL,GAAS,SAACM,GACT,OAAIA,EAAO,IACHA,EAAO,IAEXL,EAASG,SAASG,cAAcN,EAASG,SACtCE,EACR,GACA,GAAE,GAEJ,EACME,EAAmB,WACpBP,EAASG,UACZG,cAAcN,EAASG,SACvBH,EAASG,QAAU,KAErB,EA2BA,OARAK,GAAU,WACK,MAAVV,IAlBJS,IACAV,GAAQ,GACRY,YAAW,WACV9B,EAAM+B,SAAS,CACdjE,KAAM,sBACNkE,GAAIhC,EAAMgC,IAEX,GAAE,KAcJ,GAAG,CAACb,IACJU,GAAU,WACTN,GACA,GAAE,IAEFU,EACC,MAAApG,EAAA,CAAAqG,aAAcN,EACdO,aAAcZ,EACdb,UAAW,CACVlC,EAAO4D,yBAENnC,EAACzB,EAAO6D,uBAAiC,YAATvE,EAChCmC,EAACzB,EAAO8D,qBAA+B,UAATxE,EAC9BmC,EAACzB,EAAO+D,uBAAiC,YAATzE,EAChCmC,EAACzB,EAAOgE,oBAA8B,SAAT1E,EAC7BmC,EAACzB,EAAOiE,oBAAqBxB,MAE7BN,KAAK,MACHX,EAAK,CAAAY,SAAA,CACT8B,SAAKhC,UAAWlC,EAAOmE,uBACvBV,EAAA,MAAA,CAAKvB,UAAWlC,EAAOoE,sBACtBhC,SAAA,CAAA8B,EAAC3C,EAAW,CAAAG,MAAM,OAAOpC,KAAK,cAC5BkC,EAAM6C,QAERH,EAAC3C,EAAU,CAACG,MAAM,OAAOpC,KAAK,gBAC5BkC,EAAM8C,aAGTJ,EAAK,MAAA,CAAAhC,UAAWlC,EAAOuE,oBAAqBC,QAxC1B,WACnBpB,IACAV,GAAQ,GACRlB,EAAM+B,SAAS,CACdjE,KAAM,sBACNkE,GAAIhC,EAAMgC,IAEZ,EAiCkEpB,SAC/D8B,SAAKhC,UAAWlC,EAAOyE,4BAExBP,EAAA,MAAA,CAAKhC,UAAWlC,EAAO0E,kBAAmBtF,MAAO,CAAEuD,MAAO,GAAA/D,OAAG,IAAM+D,aAGtE,EC9EMgC,EAAsD,SAACnD,GACtD,IAAAC,EAAoBmD,GAAW,SAACC,EAAYC,GACjD,OAAQA,EAAOxF,MACd,IAAK,mBACJ,OAAAlB,EAAAA,EAAA,GAAWyG,GAAK,GAAA,CAAAxH,EAAA,CAAA,EAAOyH,EAAOC,WAAW,GAC1C,IAAK,sBACJ,OAAOF,EAAMG,QAAO,SAACC,GAAY,OAAAA,EAAGzB,KAAOsB,EAAOtB,EAAjB,IAClC,QACC,OAAOqB,KAEP,IATIA,EAAKpD,EAAA,GAAE8B,EAAQ9B,EAAA,GAUtB,OACCgC,EAACnB,EAAoB4C,SAAS,CAAAC,MAAO5B,EACpCnB,SAAA,CAAA8B,EAAA,MAAA,CAAKhC,UAAWlC,EAAOoF,sBACrBhD,SAAAyC,EAAMQ,KAAI,SAACC,GAAc,OACzBpB,EAAC3B,KAAagB,SAAUA,GAA4B+B,GAAbA,EAAK9B,GAC5C,MAEDhC,EAAMY,WAGV","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/dist/Notification/types/components/Avatar/Avatar.types.d.ts b/dist/Notification/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Notification/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Notification/types/components/Avatar/avatar.d.ts b/dist/Notification/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Notification/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Notification/types/components/Avatar/group.d.ts b/dist/Notification/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Notification/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Notification/types/components/Avatar/index.d.ts b/dist/Notification/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Notification/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Notification/types/components/Avatar/sizes.d.ts b/dist/Notification/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Notification/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Notification/types/components/Button/Button.types.d.ts b/dist/Notification/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Notification/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Notification/types/components/Button/index.d.ts b/dist/Notification/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Notification/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Notification/types/components/Form/Form.types.d.ts b/dist/Notification/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Notification/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Notification/types/components/Form/index.d.ts b/dist/Notification/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Notification/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Notification/types/components/Form/useForm.d.ts b/dist/Notification/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Notification/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Notification/types/components/Grid/Grid.types.d.ts b/dist/Notification/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Notification/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Notification/types/components/Grid/column.d.ts b/dist/Notification/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Notification/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Notification/types/components/Grid/container.d.ts b/dist/Notification/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Notification/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Notification/types/components/Grid/index.d.ts b/dist/Notification/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Notification/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Notification/types/components/Grid/row.d.ts b/dist/Notification/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Notification/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Notification/types/components/Image/Image.types.d.ts b/dist/Notification/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Notification/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Notification/types/components/Image/index.d.ts b/dist/Notification/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Notification/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Notification/types/components/Input/Input.types.d.ts b/dist/Notification/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Notification/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Notification/types/components/Input/container.d.ts b/dist/Notification/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Notification/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Notification/types/components/Input/index.d.ts b/dist/Notification/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Notification/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Notification/types/components/Input/password.d.ts b/dist/Notification/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Notification/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Notification/types/components/Input/textarea.d.ts b/dist/Notification/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Notification/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Notification/types/components/Notification/Notification.types.d.ts b/dist/Notification/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Notification/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Notification/types/components/Notification/context.d.ts b/dist/Notification/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Notification/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Notification/types/components/Notification/index.d.ts b/dist/Notification/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Notification/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Notification/types/components/Notification/notification.d.ts b/dist/Notification/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Notification/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Notification/types/components/Notification/useNotification.d.ts b/dist/Notification/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Notification/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Notification/types/components/Pagination/Pagination.types.d.ts b/dist/Notification/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Notification/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Notification/types/components/Pagination/index.d.ts b/dist/Notification/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Notification/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Notification/types/components/Pagination/usePagination.d.ts b/dist/Notification/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Notification/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Notification/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Notification/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Notification/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Notification/types/components/SliderBeforeAfter/index.d.ts b/dist/Notification/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Notification/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Notification/types/components/Tags/Tags.types.d.ts b/dist/Notification/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Notification/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Notification/types/components/Tags/index.d.ts b/dist/Notification/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Notification/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Notification/types/components/Tags/tag.d.ts b/dist/Notification/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Notification/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Notification/types/components/ThemeProvider/Theme.types.d.ts b/dist/Notification/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Notification/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Notification/types/components/ThemeProvider/index.d.ts b/dist/Notification/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Notification/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Notification/types/components/ThemeProvider/themes/index.d.ts b/dist/Notification/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Notification/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Notification/types/components/Typography/Typography.types.d.ts b/dist/Notification/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Notification/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Notification/types/components/Typography/index.d.ts b/dist/Notification/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Notification/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Notification/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Notification/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Notification/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Notification/types/components/ZoomImage/index.d.ts b/dist/Notification/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Notification/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Notification/types/components/ZoomImage/useEventListener.d.ts b/dist/Notification/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Notification/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Notification/types/components/index.d.ts b/dist/Notification/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Notification/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Notification/types/index.d.ts b/dist/Notification/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Notification/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Pagination/index.js b/dist/Pagination/index.js new file mode 100644 index 0000000..124bc5b --- /dev/null +++ b/dist/Pagination/index.js @@ -0,0 +1,2 @@ +import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useMemo as a}from"react";var e=function(){return e=Object.assign||function(n){for(var t,a=1,e=arguments.length;a=n)return r(1,n);var a=Math.max(s-d,1),l=Math.min(s+d,n),g=a>2,u=l= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,"function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__spreadArray","to","from","pack","ar","l","Array","slice","concat","SuppressedError","DOTS","range","start","end","_","idx","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Pagination","props","onPageChange","totalCount","siblingCount","currentPage","pageSize","arrowShow","paginationRange","_a","useMemo","totalPageCount","Math","ceil","leftSiblingIndex","max","rightSiblingIndex","min","shouldShowLeftDots","shouldShowRightDots","lastPageIndex","rightRange","middleRange","usePagination","lastPage","_jsxs","className","styles","wrapper","join","children","_jsx","paginationItem","disabled","undefined","onClick","arrow","left","map","pageNumber","paginationItemDots","selected","right"],"mappings":"kFA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EA6KO,SAASQ,EAAcC,EAAIC,EAAMC,GACpC,GAAIA,GAA6B,IAArBX,UAAUC,OAAc,IAAK,IAA4BW,EAAxBd,EAAI,EAAGe,EAAIH,EAAKT,OAAYH,EAAIe,EAAGf,KACxEc,GAAQd,KAAKY,IACRE,IAAIA,EAAKE,MAAMX,UAAUY,MAAMV,KAAKK,EAAM,EAAGZ,IAClDc,EAAGd,GAAKY,EAAKZ,IAGrB,OAAOW,EAAGO,OAAOJ,GAAME,MAAMX,UAAUY,MAAMV,KAAKK,GACtD,CA8FkD,mBAApBO,iBAAiCA,gBCzTxD,IAAMC,EAAO,MAEdC,EAAQ,SAACC,EAAeC,GAC7B,IAAMpB,EAASoB,EAAMD,EAAQ,EAC7B,OAAON,MAAMJ,KAAK,CAAET,OAAMA,IAAI,SAACqB,EAAQC,GAAa,OAAAA,EAAMH,CAAK,GAChE,obCPA,SAAqBI,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,8pDCpBM,IAAAe,EAAkC,SAACC,GAChC,IAAAC,EAA6ED,EAAKC,aAApEC,EAA+DF,EAArDE,WAAEC,EAAmDH,EAAKG,aAA1CC,EAAqCJ,EAA1BI,YAAEC,EAAwBL,EAAKK,SAAnBC,EAAcN,YAC/EO,EFQsB,SAACP,GACrB,IAAAE,EAAwDF,EAAKE,WAAjDG,EAA4CL,EAAKK,SAAvCG,EAAkCR,EAAlBG,aAAhBA,OAAY,IAAAK,EAAG,EAACA,EAAEJ,EAAgBJ,EAAKI,YAkCrE,OAjCwBK,GAAQ,WAC/B,IAAMC,EAAiBC,KAAKC,KAAKV,EAAaG,GAE9C,GADyBF,EAAe,GAChBO,EACvB,OAAO/B,EAAM,EAAG+B,GAEjB,IAAMG,EAAmBF,KAAKG,IAAIV,EAAcD,EAAc,GACxDY,EAAoBJ,KAAKK,IAAIZ,EAAcD,EAAcO,GAEzDO,EAAqBJ,EAAmB,EACxCK,EAAsBH,EAAoBL,EAAiB,EAG3DS,EAAgBT,EAEtB,IAAKO,GAAsBC,EAG1B,OAAAlD,EAAAA,EAAA,GADkBW,EAAM,EADF,EAAI,EAAIwB,IAEV,GAAA,CAAEzB,EAAMgC,IAAgB,GAG7C,GAAIO,IAAuBC,EAAqB,CAC/C,IACME,EAAazC,EAAM+B,GADF,EAAI,EAAIP,GAC4B,EAAGO,GAC9D,OAAA1C,EAAA,CAZsB,EAYEU,GAAS0C,GAAY,EAC7C,CAED,GAAIH,GAAsBC,EAAqB,CAC9C,IAAMG,EAAc1C,EAAMkC,EAAkBE,GAC5C,OAAQ/C,EAAAA,EAAA,CAjBc,EAiBEU,GAAS2C,GAAa,GAAA,CAAA3C,EAAMyC,IAAe,EACnE,CACD,GAAE,CAACjB,EAAYG,EAAUF,EAAcC,GAGzC,CE5CyBkB,CAAc,CACrClB,YAAWA,EACXF,WAAUA,EACVC,aAAYA,EACZE,SAAQA,IAET,GAAoB,IAAhBD,IAAqBG,aAAe,EAAfA,EAAiB9C,QAAU,EACnD,OAAO,KAER,IAOM8D,EAAWhB,aAAA,EAAAA,EAAkBA,EAAgB9C,OAAS,GAC5D,OACC+D,YAAQxB,EAAK,CAAEyB,UAAW,CAACC,EAAOC,QAAS3B,EAAMyB,WAAWG,KAAK,KAAIC,SAAA,CACnEvB,EACAwB,EACC,KAAA,CAAAL,UAAW,CAACC,EAAOK,eAAgC,IAAhB3B,EAAoBsB,EAAOM,cAAWC,GAAWL,KAAK,KACzFM,QAVe,WAClBjC,EAAaG,EAAc,EAC5B,EASIyB,SAAAC,EAAA,MAAA,CAAKL,UAAW,CAACC,EAAOS,MAAOT,EAAOU,KAAsB,IAAhBhC,EAAoBsB,EAAOM,cAAWC,GAAWL,KAAK,SAEhG,KACHrB,aAAe,EAAfA,EAAiB8B,KAAI,SAACC,GACtB,OAEER,EAAqB,KAFnBQ,IAAe5D,EAEI,CAAA+C,UAAWC,EAAOa,mBAA9BV,SAAA,QAQTJ,UAAW,CAACC,EAAOK,eAAgBO,IAAelC,EAAcsB,EAAOc,cAAWP,GAAWL,KAAK,KAClGM,QAAS,WAAM,OAAAjC,EAAaqC,IAAWT,SACtCS,GAVQA,EAaZ,IACChC,EACAwB,EAAA,KAAA,CACCL,UAAW,CAACC,EAAOK,eAAgB3B,IAAgBmB,EAAWG,EAAOM,cAAWC,GAAWL,KAAK,KAChGM,QArCW,WACdjC,EAAaG,EAAc,EAC5B,EAmCmByB,SACfC,EACC,MAAA,CAAAL,UAAW,CAACC,EAAOS,MAAOT,EAAOe,MAAOrC,IAAgBmB,EAAWG,EAAOM,cAAWC,GAAWL,KAAK,SAGpG,QAGP","x_google_ignoreList":[0,2]} \ No newline at end of file diff --git a/dist/Pagination/types/components/Avatar/Avatar.types.d.ts b/dist/Pagination/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Pagination/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Pagination/types/components/Avatar/avatar.d.ts b/dist/Pagination/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Pagination/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Pagination/types/components/Avatar/group.d.ts b/dist/Pagination/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Pagination/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Pagination/types/components/Avatar/index.d.ts b/dist/Pagination/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Pagination/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Pagination/types/components/Avatar/sizes.d.ts b/dist/Pagination/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Pagination/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Pagination/types/components/Button/Button.types.d.ts b/dist/Pagination/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Pagination/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Pagination/types/components/Button/index.d.ts b/dist/Pagination/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Pagination/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Pagination/types/components/Form/Form.types.d.ts b/dist/Pagination/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Pagination/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Pagination/types/components/Form/index.d.ts b/dist/Pagination/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Pagination/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Pagination/types/components/Form/useForm.d.ts b/dist/Pagination/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Pagination/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Pagination/types/components/Grid/Grid.types.d.ts b/dist/Pagination/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Pagination/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Pagination/types/components/Grid/column.d.ts b/dist/Pagination/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Pagination/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Pagination/types/components/Grid/container.d.ts b/dist/Pagination/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Pagination/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Pagination/types/components/Grid/index.d.ts b/dist/Pagination/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Pagination/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Pagination/types/components/Grid/row.d.ts b/dist/Pagination/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Pagination/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Pagination/types/components/Image/Image.types.d.ts b/dist/Pagination/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Pagination/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Pagination/types/components/Image/index.d.ts b/dist/Pagination/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Pagination/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Pagination/types/components/Input/Input.types.d.ts b/dist/Pagination/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Pagination/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Pagination/types/components/Input/container.d.ts b/dist/Pagination/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Pagination/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Pagination/types/components/Input/index.d.ts b/dist/Pagination/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Pagination/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Pagination/types/components/Input/password.d.ts b/dist/Pagination/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Pagination/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Pagination/types/components/Input/textarea.d.ts b/dist/Pagination/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Pagination/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Pagination/types/components/Notification/Notification.types.d.ts b/dist/Pagination/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Pagination/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Pagination/types/components/Notification/context.d.ts b/dist/Pagination/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Pagination/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Pagination/types/components/Notification/index.d.ts b/dist/Pagination/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Pagination/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Pagination/types/components/Notification/notification.d.ts b/dist/Pagination/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Pagination/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Pagination/types/components/Notification/useNotification.d.ts b/dist/Pagination/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Pagination/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Pagination/types/components/Pagination/Pagination.types.d.ts b/dist/Pagination/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Pagination/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Pagination/types/components/Pagination/index.d.ts b/dist/Pagination/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Pagination/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Pagination/types/components/Pagination/usePagination.d.ts b/dist/Pagination/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Pagination/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Pagination/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Pagination/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Pagination/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Pagination/types/components/SliderBeforeAfter/index.d.ts b/dist/Pagination/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Pagination/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Pagination/types/components/Tags/Tags.types.d.ts b/dist/Pagination/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Pagination/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Pagination/types/components/Tags/index.d.ts b/dist/Pagination/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Pagination/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Pagination/types/components/Tags/tag.d.ts b/dist/Pagination/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Pagination/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Pagination/types/components/ThemeProvider/Theme.types.d.ts b/dist/Pagination/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Pagination/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Pagination/types/components/ThemeProvider/index.d.ts b/dist/Pagination/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Pagination/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Pagination/types/components/ThemeProvider/themes/index.d.ts b/dist/Pagination/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Pagination/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Pagination/types/components/Typography/Typography.types.d.ts b/dist/Pagination/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Pagination/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Pagination/types/components/Typography/index.d.ts b/dist/Pagination/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Pagination/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Pagination/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Pagination/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Pagination/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Pagination/types/components/ZoomImage/index.d.ts b/dist/Pagination/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Pagination/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Pagination/types/components/ZoomImage/useEventListener.d.ts b/dist/Pagination/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Pagination/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Pagination/types/components/index.d.ts b/dist/Pagination/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Pagination/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Pagination/types/index.d.ts b/dist/Pagination/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Pagination/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/SliderBeforeAfter/index.js b/dist/SliderBeforeAfter/index.js new file mode 100644 index 0000000..a36fcc4 --- /dev/null +++ b/dist/SliderBeforeAfter/index.js @@ -0,0 +1,2 @@ +import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import{useState as n}from"react";var i={wrapper:"SliderBeforeAfter-module_wrapper__RxVQE",image:"SliderBeforeAfter-module_image__mLfQe",sliderImage:"SliderBeforeAfter-module_sliderImage__3-qng",imageBefore:"SliderBeforeAfter-module_imageBefore__7l05X",slider:"SliderBeforeAfter-module_slider__q5SjP",sliderLine:"SliderBeforeAfter-module_sliderLine__6xNjh",sliderButton:"SliderBeforeAfter-module_sliderButton__Ws5MM"};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".SliderBeforeAfter-module_wrapper__RxVQE {\n\tdisplay: flex;\n\tjustify-content: center;\n\tposition: relative;\n\toverflow: hidden;\n\t--position: 50%;\n}\n.SliderBeforeAfter-module_image__mLfQe {\n\tdisplay: block;\n\tmax-width: 100%;\n}\n.SliderBeforeAfter-module_sliderImage__3-qng {\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\tobject-position: left;\n}\n.SliderBeforeAfter-module_imageBefore__7l05X {\n\tposition: absolute;\n\tinset: 0;\n\twidth: var(--position);\n}\n.SliderBeforeAfter-module_slider__q5SjP {\n\tposition: absolute;\n\tinset: 0;\n\tcursor: pointer;\n\topacity: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n.SliderBeforeAfter-module_sliderLine__6xNjh {\n\tposition: absolute;\n\tinset: 0;\n\twidth: 4px;\n\theight: 100%;\n\tbackground-color: var(--slider-before-after-colors-slider);\n\tleft: var(--position);\n\ttransform: translateX(-50%);\n\tpointer-events: none;\n}\n.SliderBeforeAfter-module_sliderButton__Ws5MM {\n\tposition: absolute;\n\tbackground-color: var(--slider-before-after-colors-slider);\n\tpadding: 16px 12px;\n\tborder-radius: 100%;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\ttop: 50%;\n\tleft: var(--position);\n\ttransform: translate(-50%, -50%);\n\tpointer-events: none;\n}\n.SliderBeforeAfter-module_sliderButton__Ws5MM::after,\n.SliderBeforeAfter-module_sliderButton__Ws5MM::before {\n\tcontent: '';\n\tpadding: 3px;\n\tdisplay: inline-block;\n\tborder: solid var(--slider-before-after-colors-arrows);\n\tborder-width: 0 2px 2px 0;\n}\n.SliderBeforeAfter-module_sliderButton__Ws5MM::after {\n\ttransform: rotate(-45deg);\n}\n.SliderBeforeAfter-module_sliderButton__Ws5MM::before {\n\ttransform: rotate(135deg);\n}\n");var o=function(o){var l=o.componentAfter,a=o.componentBefore,d=o.size,s=o.aspectRatio,f=o.urlFirstImage,m=o.alt,c=o.urlSecondImage,p=n(50),u=p[0],_=p[1],g={maxWidth:"".concat(d,"px"),maxHeight:"".concat(d,"px"),aspectRatio:s},B=function(e){return"after"===e?l?r(l,{className:[i.imageAfter,i.sliderImage,i.image].join(" ")}):r("img",{className:[i.imageAfter,i.sliderImage,i.image].join(" "),src:f,alt:m}):a?r(a,{className:[i.imageBefore,i.sliderImage,i.image].join(" ")}):r("img",{className:[i.imageBefore,i.sliderImage,i.image].join(" "),src:c,alt:m})};return e("div",{className:i.wrapper,style:{"--position":"".concat(u,"%"),width:"".concat(d,"px")},children:[e("div",{style:g,children:[(a||c)&&B("before"),B("after")]}),(a||c)&&e(t,{children:[r("input",{onChange:function(e){_(e.target.value)},type:"range",min:"0",max:"100",value:"50",className:i.slider}),r("div",{className:i.sliderLine}),r("div",{className:i.sliderButton})]})]})};export{o as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/SliderBeforeAfter/index.js.map b/dist/SliderBeforeAfter/index.js.map new file mode 100644 index 0000000..f179ba3 --- /dev/null +++ b/dist/SliderBeforeAfter/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/SliderBeforeAfter/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","SliderBeforeAfter","props","componentAfter","componentBefore","size","aspectRatio","urlFirstImage","alt","urlSecondImage","_a","useState","sliderPos","setSliderPos","imageContainerStyle","maxWidth","concat","maxHeight","renderImage","_jsx","className","styles","imageAfter","sliderImage","image","join","src","imageBefore","_jsxs","wrapper","width","children","_Fragment","onChange","e","target","value","min","max","slider","sliderLine","sliderButton"],"mappings":"keAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,yqDCrBM,IAAAe,EAAgD,SAACC,GAC9C,IAAAC,EAA2FD,EAAKC,eAAhFC,EAA2EF,EAAKE,gBAA/DC,EAA0DH,EAAKG,KAAzDC,EAAoDJ,EAAKI,YAA5CC,EAAuCL,gBAAxBM,EAAwBN,MAAnBO,EAAmBP,iBAC7FQ,EAA4BC,EAAiB,IAA5CC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GAIxBI,EAAsB,CAC3BC,SAAU,GAAGC,OAAAX,EAAQ,MACrBY,UAAW,GAAGD,OAAAX,EAAQ,MACtBC,YAAWA,GAENY,EAAc,SAACxB,GACpB,MAAa,UAATA,EACCS,EAEIgB,EADgBhB,EACN,CAACiB,UAAW,CAACC,EAAOC,WAAYD,EAAOE,YAAaF,EAAOG,OAAOC,KAAK,OAGxFN,EAAA,MAAA,CACCC,UAAW,CAACC,EAAOC,WAAYD,EAAOE,YAAaF,EAAOG,OAAOC,KAAK,KACtEC,IAAKnB,EACLC,IAAKA,IAIJJ,EAEIe,EADgBf,EACN,CAACgB,UAAW,CAACC,EAAOM,YAAaN,EAAOE,YAAaF,EAAOG,OAAOC,KAAK,OAGzFN,EAAA,MAAA,CACCC,UAAW,CAACC,EAAOM,YAAaN,EAAOE,YAAaF,EAAOG,OAAOC,KAAK,KACvEC,IAAKjB,EACLD,IAAKA,GAGR,EACA,OAECoB,EAAK,MAAA,CAAAR,UAAWC,EAAOQ,QAASrC,MAAO,CAAE,aAAc,GAAGwB,OAAAJ,OAAckB,MAAO,GAAGd,OAAAX,EAAQ,OACzF0B,SAAA,CAAAH,EAAA,MAAA,CAAKpC,MAAOsB,aACTV,GAAmBK,IAAmBS,EAAY,UACnDA,EAAY,aAEZd,GAAmBK,IACpBmB,EAAAI,EAAA,CAAAD,SAAA,CACCZ,WAAOc,SA3CU,SAACC,GACrBrB,EAAaqB,EAAEC,OAAOC,MACvB,EAyCmC1C,KAAK,QAAQ2C,IAAI,IAAIC,IAAI,MAAMF,MAAM,KAAKhB,UAAWC,EAAOkB,SAC3FpB,EAAA,MAAA,CAAKC,UAAWC,EAAOmB,aACvBrB,SAAKC,UAAWC,EAAOoB,oBAK5B","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/SliderBeforeAfter/types/components/Avatar/Avatar.types.d.ts b/dist/SliderBeforeAfter/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/SliderBeforeAfter/types/components/Avatar/avatar.d.ts b/dist/SliderBeforeAfter/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/SliderBeforeAfter/types/components/Avatar/group.d.ts b/dist/SliderBeforeAfter/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/SliderBeforeAfter/types/components/Avatar/index.d.ts b/dist/SliderBeforeAfter/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/SliderBeforeAfter/types/components/Avatar/sizes.d.ts b/dist/SliderBeforeAfter/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/SliderBeforeAfter/types/components/Button/Button.types.d.ts b/dist/SliderBeforeAfter/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/SliderBeforeAfter/types/components/Button/index.d.ts b/dist/SliderBeforeAfter/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/SliderBeforeAfter/types/components/Form/Form.types.d.ts b/dist/SliderBeforeAfter/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/SliderBeforeAfter/types/components/Form/index.d.ts b/dist/SliderBeforeAfter/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/SliderBeforeAfter/types/components/Form/useForm.d.ts b/dist/SliderBeforeAfter/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/SliderBeforeAfter/types/components/Grid/Grid.types.d.ts b/dist/SliderBeforeAfter/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/SliderBeforeAfter/types/components/Grid/column.d.ts b/dist/SliderBeforeAfter/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/SliderBeforeAfter/types/components/Grid/container.d.ts b/dist/SliderBeforeAfter/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/SliderBeforeAfter/types/components/Grid/index.d.ts b/dist/SliderBeforeAfter/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/SliderBeforeAfter/types/components/Grid/row.d.ts b/dist/SliderBeforeAfter/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/SliderBeforeAfter/types/components/Image/Image.types.d.ts b/dist/SliderBeforeAfter/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/SliderBeforeAfter/types/components/Image/index.d.ts b/dist/SliderBeforeAfter/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/SliderBeforeAfter/types/components/Input/Input.types.d.ts b/dist/SliderBeforeAfter/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/SliderBeforeAfter/types/components/Input/container.d.ts b/dist/SliderBeforeAfter/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/SliderBeforeAfter/types/components/Input/index.d.ts b/dist/SliderBeforeAfter/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/SliderBeforeAfter/types/components/Input/password.d.ts b/dist/SliderBeforeAfter/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/SliderBeforeAfter/types/components/Input/textarea.d.ts b/dist/SliderBeforeAfter/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/SliderBeforeAfter/types/components/Notification/Notification.types.d.ts b/dist/SliderBeforeAfter/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/SliderBeforeAfter/types/components/Notification/context.d.ts b/dist/SliderBeforeAfter/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/SliderBeforeAfter/types/components/Notification/index.d.ts b/dist/SliderBeforeAfter/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/SliderBeforeAfter/types/components/Notification/notification.d.ts b/dist/SliderBeforeAfter/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/SliderBeforeAfter/types/components/Notification/useNotification.d.ts b/dist/SliderBeforeAfter/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/SliderBeforeAfter/types/components/Pagination/Pagination.types.d.ts b/dist/SliderBeforeAfter/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/SliderBeforeAfter/types/components/Pagination/index.d.ts b/dist/SliderBeforeAfter/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/SliderBeforeAfter/types/components/Pagination/usePagination.d.ts b/dist/SliderBeforeAfter/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/SliderBeforeAfter/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/SliderBeforeAfter/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/SliderBeforeAfter/types/components/SliderBeforeAfter/index.d.ts b/dist/SliderBeforeAfter/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/SliderBeforeAfter/types/components/Tags/Tags.types.d.ts b/dist/SliderBeforeAfter/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/SliderBeforeAfter/types/components/Tags/index.d.ts b/dist/SliderBeforeAfter/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/SliderBeforeAfter/types/components/Tags/tag.d.ts b/dist/SliderBeforeAfter/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/SliderBeforeAfter/types/components/ThemeProvider/Theme.types.d.ts b/dist/SliderBeforeAfter/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/SliderBeforeAfter/types/components/ThemeProvider/index.d.ts b/dist/SliderBeforeAfter/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/SliderBeforeAfter/types/components/ThemeProvider/themes/index.d.ts b/dist/SliderBeforeAfter/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/SliderBeforeAfter/types/components/Typography/Typography.types.d.ts b/dist/SliderBeforeAfter/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/SliderBeforeAfter/types/components/Typography/index.d.ts b/dist/SliderBeforeAfter/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/SliderBeforeAfter/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/SliderBeforeAfter/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/SliderBeforeAfter/types/components/ZoomImage/index.d.ts b/dist/SliderBeforeAfter/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/SliderBeforeAfter/types/components/ZoomImage/useEventListener.d.ts b/dist/SliderBeforeAfter/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/SliderBeforeAfter/types/components/index.d.ts b/dist/SliderBeforeAfter/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/SliderBeforeAfter/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/SliderBeforeAfter/types/index.d.ts b/dist/SliderBeforeAfter/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/SliderBeforeAfter/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Tags/index.js b/dist/Tags/index.js new file mode 100644 index 0000000..a0b2306 --- /dev/null +++ b/dist/Tags/index.js @@ -0,0 +1,2 @@ +import{jsx as t}from"react/jsx-runtime";import{useState as e}from"react";var n={wrapper:"Tags-module_wrapper__BJFRr",tag:"Tags-module_tag__oUK5g",activ:"Tags-module_activ__VJ5cx"};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}(".Tags-module_wrapper__BJFRr {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n.Tags-module_tag__oUK5g {\n\tfont-size: 16px;\n\tcolor: var(--tags-color-text);\n\ttext-decoration: none;\n\twhite-space: nowrap;\n\tpadding: 8px 12px;\n\tmargin: 8px;\n\tborder-radius: 16px;\n\ttransition: all 0.3s;\n\tcursor: pointer;\n\tbox-sizing: border-box;\n\tbackground: var(--tags-color-default);\n\tborder: 1px solid var(--tags-color-default);\n}\n.Tags-module_activ__VJ5cx {\n\tcolor: var(--tags-color-activ);\n\tbackground: none;\n\tborder: 1px solid var(--tags-color-activ);\n}\n");var r=function(e){var r=e.children;return t("div",{className:n.wrapper,children:r})};r.Tag=function(r){var a=r.className,o=r.children,i=r.activ,c=r.onClick,d=e(i),l=d[0],s=d[1];return t("div",{className:[a,n.tag,l?n.activ:void 0].join(" "),onClick:function(){s(!l),null==c||c()},children:o})};export{r as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/Tags/index.js.map b/dist/Tags/index.js.map new file mode 100644 index 0000000..04964f9 --- /dev/null +++ b/dist/Tags/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/Tags/tag.tsx","../../src/components/Tags/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Tags","_a","children","_jsx","className","styles","wrapper","Tag","props","activ","onClick","useState","state","setState","tag","undefined","join"],"mappings":"qLAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,0lBCrBA,ICCMe,EAAwC,SAACC,GAAE,IAAAC,EAAQD,EAAAC,SACxD,OAAOC,EAAA,MAAA,CAAKC,UAAWC,EAAOC,QAAOJ,SAAGA,GACzC,EAEAF,EAAKO,IDLqB,SAACC,GAClB,IAAAJ,EAAwCI,YAA7BN,EAA6BM,EAAKN,SAAxBO,EAAmBD,EAAdC,MAAEC,EAAYF,UAC1CP,EAAoBU,EAASF,GAA5BG,EAAKX,EAAA,GAAEY,EAAQZ,EAAA,GAKtB,OACCE,EAAK,MAAA,CAAAC,UAAW,CAACA,EAAWC,EAAOS,IAAKF,EAAQP,EAAOI,WAAQM,GAAWC,KAAK,KAAMN,QALlE,WACnBG,GAAUD,GACVF,SAAAA,GACD,EAE0GR,SACvGA,GAGJ","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/Tags/types/components/Avatar/Avatar.types.d.ts b/dist/Tags/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Tags/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Tags/types/components/Avatar/avatar.d.ts b/dist/Tags/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Tags/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Tags/types/components/Avatar/group.d.ts b/dist/Tags/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Tags/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Tags/types/components/Avatar/index.d.ts b/dist/Tags/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Tags/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Tags/types/components/Avatar/sizes.d.ts b/dist/Tags/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Tags/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Tags/types/components/Button/Button.types.d.ts b/dist/Tags/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Tags/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Tags/types/components/Button/index.d.ts b/dist/Tags/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Tags/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Tags/types/components/Form/Form.types.d.ts b/dist/Tags/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Tags/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Tags/types/components/Form/index.d.ts b/dist/Tags/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Tags/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Tags/types/components/Form/useForm.d.ts b/dist/Tags/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Tags/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Tags/types/components/Grid/Grid.types.d.ts b/dist/Tags/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Tags/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Tags/types/components/Grid/column.d.ts b/dist/Tags/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Tags/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Tags/types/components/Grid/container.d.ts b/dist/Tags/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Tags/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Tags/types/components/Grid/index.d.ts b/dist/Tags/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Tags/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Tags/types/components/Grid/row.d.ts b/dist/Tags/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Tags/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Tags/types/components/Image/Image.types.d.ts b/dist/Tags/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Tags/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Tags/types/components/Image/index.d.ts b/dist/Tags/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Tags/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Tags/types/components/Input/Input.types.d.ts b/dist/Tags/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Tags/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Tags/types/components/Input/container.d.ts b/dist/Tags/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Tags/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Tags/types/components/Input/index.d.ts b/dist/Tags/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Tags/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Tags/types/components/Input/password.d.ts b/dist/Tags/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Tags/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Tags/types/components/Input/textarea.d.ts b/dist/Tags/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Tags/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Tags/types/components/Notification/Notification.types.d.ts b/dist/Tags/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Tags/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Tags/types/components/Notification/context.d.ts b/dist/Tags/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Tags/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Tags/types/components/Notification/index.d.ts b/dist/Tags/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Tags/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Tags/types/components/Notification/notification.d.ts b/dist/Tags/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Tags/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Tags/types/components/Notification/useNotification.d.ts b/dist/Tags/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Tags/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Tags/types/components/Pagination/Pagination.types.d.ts b/dist/Tags/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Tags/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Tags/types/components/Pagination/index.d.ts b/dist/Tags/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Tags/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Tags/types/components/Pagination/usePagination.d.ts b/dist/Tags/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Tags/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Tags/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Tags/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Tags/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Tags/types/components/SliderBeforeAfter/index.d.ts b/dist/Tags/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Tags/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Tags/types/components/Tags/Tags.types.d.ts b/dist/Tags/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Tags/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Tags/types/components/Tags/index.d.ts b/dist/Tags/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Tags/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Tags/types/components/Tags/tag.d.ts b/dist/Tags/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Tags/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Tags/types/components/ThemeProvider/Theme.types.d.ts b/dist/Tags/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Tags/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Tags/types/components/ThemeProvider/index.d.ts b/dist/Tags/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Tags/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Tags/types/components/ThemeProvider/themes/index.d.ts b/dist/Tags/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Tags/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Tags/types/components/Typography/Typography.types.d.ts b/dist/Tags/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Tags/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Tags/types/components/Typography/index.d.ts b/dist/Tags/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Tags/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Tags/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Tags/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Tags/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Tags/types/components/ZoomImage/index.d.ts b/dist/Tags/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Tags/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Tags/types/components/ZoomImage/useEventListener.d.ts b/dist/Tags/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Tags/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Tags/types/components/index.d.ts b/dist/Tags/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Tags/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Tags/types/index.d.ts b/dist/Tags/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Tags/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/ThemeProvider/index.js b/dist/ThemeProvider/index.js new file mode 100644 index 0000000..c0b8e55 --- /dev/null +++ b/dist/ThemeProvider/index.js @@ -0,0 +1,2 @@ +import{jsxs as t,jsx as n}from"react/jsx-runtime";import{createContext as a,useState as o}from"react";function e(t,n){void 0===n&&(n={});var a=n.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css","top"===a&&o.firstChild?o.insertBefore(e,o.firstChild):o.appendChild(e),e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}}e(".light-module_root__0i7lr {\n\t--name: light;\n\t--font-family: PT Astra Sans, sans-serif;\n\t--font-size: 16px;\n\t--font-weight: 400;\n\t--line-height: 20px;\n\t--transition: 0.3s;\n\t--grid-gutter: 16px;\n\t--grid-sm: 576px;\n\t--grid-md: 768px;\n\t--grid-lg: 992px;\n\t--grid-xl: 1200px;\n\t--grid-xxl: 1400px;\n\t--typography-font-family-heading: PT Astra Sans;\n\t--typography-font-weight-heading: 700;\n\t--typography-font-family-body: PT Astra Sans;\n\t--typography-font-weight-body: 400;\n\t--typography-color-accent: #00acc1;\n\t--typography-color-text: #212121;\n\t--typography-color-secondary: #757575;\n\t--typography-h1-size: 40px;\n\t--typography-h1-height: 48px;\n\t--typography-h2-size: 32px;\n\t--typography-h2-height: 40px;\n\t--typography-h3-size: 28px;\n\t--typography-h3-height: 32px;\n\t--typography-h4-size: 24px;\n\t--typography-h4-height: 28px;\n\t--typography-h5-size: 20px;\n\t--typography-h5-height: 24px;\n\t--typography-h6-size: 16px;\n\t--typography-h6-height: 20px;\n\t--typography-p-size: 16px;\n\t--typography-p-height: 24px;\n\t--typography-caption-size: 16px;\n\t--typography-caption-height: 24px;\n\t--typography-letter-spacing-heading: 0.5px;\n\t--typography-letter-spacing-body: 1px;\n\t--pagination-font-family: PT Astra Sans;\n\t--pagination-font-size: 16px;\n\t--pagination-font-weight: 400;\n\t--pagination-line-height: 20px;\n\t--pagination-colors-base: #212121;\n\t--pagination-colors-hover: #eeeeee;\n\t--notification-color-item: #fafafa;\n\t--notification-color-title: #212121;\n\t--notification-color-message: #212121;\n\t--notification-color-close: #bdbdbd;\n\t--notification-color-border-close: #bdbdbd;\n\t--notification-color-close-hover: #757575;\n\t--notification-color-success: #66bb6a;\n\t--notification-color-error: #ef5350;\n\t--notification-color-warning: #ffa726;\n\t--notification-color-info: #42a5f5;\n\t--avatar-size-wrapper-small: 48px;\n\t--avatar-size-wrapper-medium: 92px;\n\t--avatar-size-wrapper-large: 184px;\n\t--avatar-size-small: 44px;\n\t--avatar-size-medium: 88px;\n\t--avatar-size-large: 176px;\n\t--avatar-font-family: PT Astra Sans;\n\t--avatar-font-weight: 400;\n\t--avatar-symbol-small: 20px;\n\t--avatar-symbol-medium: 32px;\n\t--avatar-symbol-large: 48px;\n\t--avatar-check-online-small: 6px;\n\t--avatar-check-online-medium: 10px;\n\t--avatar-check-online-large: 16px;\n\t--avatar-check-online-background-small: 8px;\n\t--avatar-check-online-background-medium: 12px;\n\t--avatar-check-online-background-large: 20px;\n\t--avatar-color-text: #212121;\n\t--avatar-color-wrapper: #fafafa;\n\t--avatar-color-add: #4caf50;\n\t--avatar-color-check-online: #4caf50;\n\t--avatar-color-check-online-background: #fafafa;\n\t--button-font-family: PT Astra Sans;\n\t--button-font-weight: 400;\n\t--button-letter-spacing: 1px;\n\t--button-radius: 4px;\n\t--button-loading: #616161;\n\t--button-primary-text: #fafafa;\n\t--button-primary-base: #00897b;\n\t--button-primary-hover-text: #fafafa;\n\t--button-primary-hover-base: #26a69a;\n\t--button-primary-focus-text: #fafafa;\n\t--button-primary-focus-base: #00796b;\n\t--button-primary-activ-text: #fafafa;\n\t--button-primary-activ-base: #00796b;\n\t--button-secondary-text: #00897b;\n\t--button-secondary-base: #fafafa;\n\t--button-secondary-border: #00897b;\n\t--button-secondary-hover-text: #fafafa;\n\t--button-secondary-hover-base: #00897b;\n\t--button-secondary-hover-border: #00897b;\n\t--button-secondary-focus-text: #fafafa;\n\t--button-secondary-focus-base: #00796b;\n\t--button-secondary-focus-border: #00796b;\n\t--button-secondary-activ-text: #fafafa;\n\t--button-secondary-activ-base: #00796b;\n\t--button-secondary-activ-border: #00796b;\n\t--button-text-text: #00897b;\n\t--button-text-base: #fafafa;\n\t--button-text-hover-text: #00897b;\n\t--button-text-hover-base: #f5f5f5;\n\t--button-text-focus-text: #00897b;\n\t--button-text-focus-base: #eeeeee;\n\t--button-text-activ-text: #00897b;\n\t--button-text-activ-base: #eeeeee;\n\t--button-disabled-text: #bdbdbd;\n\t--button-disabled-base: #f5f5f5;\n\t--button-disabled-hover-text: #bdbdbd;\n\t--button-disabled-hover-base: #f5f5f5;\n\t--button-disabled-focus-text: #bdbdbd;\n\t--button-disabled-focus-base: #f5f5f5;\n\t--button-disabled-activ-text: #bdbdbd;\n\t--button-disabled-activ-base: #f5f5f5;\n\t--button-danger-text: #fafafa;\n\t--button-danger-base: #f44336;\n\t--button-danger-hover-text: #fafafa;\n\t--button-danger-hover-base: #ef5350;\n\t--button-danger-focus-text: #fafafa;\n\t--button-danger-focus-base: #e53935;\n\t--button-danger-activ-text: #fafafa;\n\t--button-danger-activ-base: #e53935;\n\t--zoom-image-base: #fafafa;\n\t--input-font-family: PT Astra Sans;\n\t--input-font-weight: 400;\n\t--input-color-label: #212121;\n\t--input-color-input: #212121;\n\t--input-color-border-input: #bdbdbd;\n\t--input-color-focus: #00897b;\n\t--input-color-placeholder: #bdbdbd;\n\t--input-color-success: #66bb6a;\n\t--input-color-error: #d32f2f;\n\t--tags-color-text: #212121;\n\t--tags-color-default: #e0e0e0;\n\t--tags-color-activ: #00897b;\n\t--image-color-bg: #fafafa;\n\t--slider-before-after-colors-slider: #fafafa;\n\t--slider-before-after-colors-arrows: #212121;\n\t--radius: 4px;\n\t--blur: 16px;\n}\n");e(".dark-module_root__c1J-- {\n\t--name: dark;\n\t--font-family: PT Astra Sans, sans-serif;\n\t--font-size: 16px;\n\t--font-weight: 400;\n\t--line-height: 20px;\n\t--transition: 0.3s;\n\t--grid-gutter: 16px;\n\t--grid-sm: 576px;\n\t--grid-md: 768px;\n\t--grid-lg: 992px;\n\t--grid-xl: 1200px;\n\t--grid-xll: 1400px;\n\t--typography-font-family-heading: PT Astra Sans;\n\t--typography-font-weight-heading: 700;\n\t--typography-font-family-body: PT Astra Sans;\n\t--typography-font-weight-body: 400;\n\t--typography-color-accent: #00acc1;\n\t--typography-color-text: #212121;\n\t--typography-color-secondary: #757575;\n\t--typography-h1-size: 40px;\n\t--typography-h1-height: 48px;\n\t--typography-h2-size: 32px;\n\t--typography-h2-height: 40px;\n\t--typography-h3-size: 28px;\n\t--typography-h3-height: 32px;\n\t--typography-h4-size: 24px;\n\t--typography-h4-height: 28px;\n\t--typography-h5-size: 20px;\n\t--typography-h5-height: 24px;\n\t--typography-h6-size: 16px;\n\t--typography-h6-height: 20px;\n\t--typography-p-size: 16px;\n\t--typography-p-height: 24px;\n\t--typography-caption-size: 16px;\n\t--typography-caption-height: 24px;\n\t--typography-letter-spacing-heading: 0.5px;\n\t--typography-letter-spacing-body: 1px;\n\t--pagination-font-family: PT Astra Sans;\n\t--pagination-font-size: 16px;\n\t--pagination-font-weight: 400;\n\t--pagination-line-height: 20px;\n\t--pagination-colors-base: #212121;\n\t--pagination-colors-hover: #bdbdbd;\n\t--notification-color-item: #fafafa;\n\t--notification-color-title: #212121;\n\t--notification-color-message: #212121;\n\t--notification-color-close: #bdbdbd;\n\t--notification-color-border-close: #bdbdbd;\n\t--notification-color-close-hover: #757575;\n\t--notification-color-success: #66bb6a;\n\t--notification-color-error: #ef5350;\n\t--notification-color-warning: #ffa726;\n\t--notification-color-info: #42a5f5;\n\t--avatar-size-small: 44px;\n\t--avatar-size-medium: 88px;\n\t--avatar-size-large: 176px;\n\t--avatar-font-family: PT Astra Sans;\n\t--avatar-font-weight: 400;\n\t--avatar-symbol-small: 18px;\n\t--avatar-symbol-medium: 24px;\n\t--avatar-symbol-large: 36px;\n\t--avatar-check-online-small: 6px;\n\t--avatar-check-online-medium: 10px;\n\t--avatar-check-online-large: 16px;\n\t--avatar-check-online-background-small: 8px;\n\t--avatar-check-online-background-medium: 12px;\n\t--avatar-check-online-background-large: 20px;\n\t--avatar-color-text: #212121;\n\t--avatar-color-check-online: #66bb6a;\n\t--avatar-color-check-online-background: #f5f5f5;\n\t--radius: 4px;\n\t--blur: 16px;\n}\n");var r={light:"light-module_root__0i7lr",dark:"dark-module_root__c1J--"},i=function(a){var e=a.theme,i=a.themes,c=void 0===i?r:i,s=a.children,f=o(c[e]),h=f[0],l=f[1];return t(p.Provider,{value:{themes:c,changeTheme:function(t){l(t)}},children:[n("div",{className:h,children:s}),";"]})},p=a(null);export{p as ThemeContext,i as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/ThemeProvider/index.js.map b/dist/ThemeProvider/index.js.map new file mode 100644 index 0000000..2ab2a33 --- /dev/null +++ b/dist/ThemeProvider/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/ThemeProvider/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","defaultThemes","light","dark","ThemeProvider","props","theme","_a","themes","children","_b","useState","activTheme","setActivTheme","_jsxs","ThemeContext","Provider","value","changeTheme","_jsx","className","createContext"],"mappings":"sGAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,ulPCrBA,IAAMe,EAAwC,CAC7CC,iCACAC,gCAGKC,EAAgC,SAACC,GAC9B,IAAAC,EAA4CD,QAArCE,EAAqCF,EAAfG,OAAtBA,OAAM,IAAAD,EAAGN,EAAaM,EAAEE,EAAaJ,WAC9CK,EAA8BC,EAASH,EAAOF,IAA7CM,EAAUF,EAAA,GAAEG,OAInB,OACCC,EAACC,EAAaC,UAASC,MAAO,CAAET,OAAMA,EAAEU,YAJrB,SAACZ,GACpBO,EAAcP,EACf,GAGEG,SAAA,CAAAU,EAAA,MAAA,CAAKC,UAAWR,EAAUH,SAAGA,IACN,MAE1B,EAIaM,EAAeM,EAA0B","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/ThemeProvider/types/components/Avatar/Avatar.types.d.ts b/dist/ThemeProvider/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/ThemeProvider/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/ThemeProvider/types/components/Avatar/avatar.d.ts b/dist/ThemeProvider/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/ThemeProvider/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/ThemeProvider/types/components/Avatar/group.d.ts b/dist/ThemeProvider/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/ThemeProvider/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/ThemeProvider/types/components/Avatar/index.d.ts b/dist/ThemeProvider/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/ThemeProvider/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/ThemeProvider/types/components/Avatar/sizes.d.ts b/dist/ThemeProvider/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/ThemeProvider/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/ThemeProvider/types/components/Button/Button.types.d.ts b/dist/ThemeProvider/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/ThemeProvider/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/ThemeProvider/types/components/Button/index.d.ts b/dist/ThemeProvider/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/ThemeProvider/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/ThemeProvider/types/components/Form/Form.types.d.ts b/dist/ThemeProvider/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/ThemeProvider/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/ThemeProvider/types/components/Form/index.d.ts b/dist/ThemeProvider/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/ThemeProvider/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/ThemeProvider/types/components/Form/useForm.d.ts b/dist/ThemeProvider/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/ThemeProvider/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/ThemeProvider/types/components/Grid/Grid.types.d.ts b/dist/ThemeProvider/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/ThemeProvider/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/ThemeProvider/types/components/Grid/column.d.ts b/dist/ThemeProvider/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/ThemeProvider/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/ThemeProvider/types/components/Grid/container.d.ts b/dist/ThemeProvider/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/ThemeProvider/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/ThemeProvider/types/components/Grid/index.d.ts b/dist/ThemeProvider/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/ThemeProvider/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/ThemeProvider/types/components/Grid/row.d.ts b/dist/ThemeProvider/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/ThemeProvider/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/ThemeProvider/types/components/Image/Image.types.d.ts b/dist/ThemeProvider/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/ThemeProvider/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/ThemeProvider/types/components/Image/index.d.ts b/dist/ThemeProvider/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/ThemeProvider/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/ThemeProvider/types/components/Input/Input.types.d.ts b/dist/ThemeProvider/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/ThemeProvider/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/ThemeProvider/types/components/Input/container.d.ts b/dist/ThemeProvider/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/ThemeProvider/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/ThemeProvider/types/components/Input/index.d.ts b/dist/ThemeProvider/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/ThemeProvider/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/ThemeProvider/types/components/Input/password.d.ts b/dist/ThemeProvider/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/ThemeProvider/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/ThemeProvider/types/components/Input/textarea.d.ts b/dist/ThemeProvider/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/ThemeProvider/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/ThemeProvider/types/components/Notification/Notification.types.d.ts b/dist/ThemeProvider/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/ThemeProvider/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/ThemeProvider/types/components/Notification/context.d.ts b/dist/ThemeProvider/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/ThemeProvider/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/ThemeProvider/types/components/Notification/index.d.ts b/dist/ThemeProvider/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/ThemeProvider/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/ThemeProvider/types/components/Notification/notification.d.ts b/dist/ThemeProvider/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/ThemeProvider/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/ThemeProvider/types/components/Notification/useNotification.d.ts b/dist/ThemeProvider/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/ThemeProvider/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/ThemeProvider/types/components/Pagination/Pagination.types.d.ts b/dist/ThemeProvider/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/ThemeProvider/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/ThemeProvider/types/components/Pagination/index.d.ts b/dist/ThemeProvider/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/ThemeProvider/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/ThemeProvider/types/components/Pagination/usePagination.d.ts b/dist/ThemeProvider/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/ThemeProvider/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/ThemeProvider/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/ThemeProvider/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/ThemeProvider/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/ThemeProvider/types/components/SliderBeforeAfter/index.d.ts b/dist/ThemeProvider/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/ThemeProvider/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/ThemeProvider/types/components/Tags/Tags.types.d.ts b/dist/ThemeProvider/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/ThemeProvider/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/ThemeProvider/types/components/Tags/index.d.ts b/dist/ThemeProvider/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/ThemeProvider/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/ThemeProvider/types/components/Tags/tag.d.ts b/dist/ThemeProvider/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/ThemeProvider/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/ThemeProvider/types/components/ThemeProvider/Theme.types.d.ts b/dist/ThemeProvider/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/ThemeProvider/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/ThemeProvider/types/components/ThemeProvider/index.d.ts b/dist/ThemeProvider/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/ThemeProvider/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/ThemeProvider/types/components/ThemeProvider/themes/index.d.ts b/dist/ThemeProvider/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/ThemeProvider/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/ThemeProvider/types/components/Typography/Typography.types.d.ts b/dist/ThemeProvider/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/ThemeProvider/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/ThemeProvider/types/components/Typography/index.d.ts b/dist/ThemeProvider/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/ThemeProvider/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/ThemeProvider/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/ThemeProvider/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/ThemeProvider/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/ThemeProvider/types/components/ZoomImage/index.d.ts b/dist/ThemeProvider/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/ThemeProvider/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/ThemeProvider/types/components/ZoomImage/useEventListener.d.ts b/dist/ThemeProvider/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/ThemeProvider/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/ThemeProvider/types/components/index.d.ts b/dist/ThemeProvider/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/ThemeProvider/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/ThemeProvider/types/index.d.ts b/dist/ThemeProvider/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/ThemeProvider/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/Typography/index.js b/dist/Typography/index.js new file mode 100644 index 0000000..4234ef4 --- /dev/null +++ b/dist/Typography/index.js @@ -0,0 +1,2 @@ +import{createElement as t}from"react";var n=function(){return n=Object.assign||function(t){for(var n,e=1,o=arguments.length;e= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SuppressedError","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","styleMap","normal","styles","italic","oblique","colorMap","accent","secondary","text","transformMap","capitalize","lowercase","uppercase","none","decorationMap","overline","underline","typeMap","h1","h2","h3","h4","h5","h6","caption","Typography","props","_a","color","_b","_c","decoration","_d","transform","_e","fontStyle","className","join","children"],"mappings":"sCA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EAmRkD,mBAApBQ,iBAAiCA,+tBC3T/D,SAAqBC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,27GCrBA,IAAMe,EAAmC,CACxCC,OAAQC,EACRC,OAAQD,EACRE,QAASF,GAEJG,EAAmC,CACxCC,OAAQJ,EACRK,UAAWL,EACXM,KAAMN,GAEDO,EAAuC,CAC5CC,WAAYR,EACZS,UAAWT,EACXU,UAAWV,EACXW,KAAM,IAEDC,EAAwC,CAC7CC,SAAUb,EACVc,UAAWd,EACX,eAAgBA,EAChBW,KAAM,IAEDI,EAAkC,CACvCC,GAAIhB,EACJiB,GAAIjB,EACJkB,GAAIlB,EACJmB,GAAInB,EACJoB,GAAIpB,EACJqB,GAAIrB,EACJM,KAAMN,EACNsB,QAAStB,GAGJuB,EAAkC,SAACC,GAChC,IAAAC,EAAiGD,EAAnFE,MAAdA,OAAQ,IAAAD,EAAA,SAAQE,EAAiFH,EAApEjC,KAAbA,OAAO,IAAAoC,EAAA,SAAQC,EAAkEJ,EAA/CK,WAAnBA,OAAa,IAAAD,EAAA,SAAQE,EAA6CN,EAA3BO,UAAlBA,OAAY,IAAAD,EAAA,SAAQE,EAAyBR,EAALS,UAApBA,OAAY,IAAAD,EAAA,WAW5F,OAAO1C,EAAckC,EAAMjC,YAAWiC,GAAK,CAAEU,UATrC,CACNV,EAAMU,UACNnB,EAAQxB,GACRO,EAASmC,GACT9B,EAASuB,GACTnB,EAAawB,GACbnB,EAAciB,IACbM,KAAK,OAEqEX,EAAMY,SACpF","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/dist/Typography/types/components/Avatar/Avatar.types.d.ts b/dist/Typography/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/Typography/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/Typography/types/components/Avatar/avatar.d.ts b/dist/Typography/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/Typography/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/Typography/types/components/Avatar/group.d.ts b/dist/Typography/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/Typography/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/Typography/types/components/Avatar/index.d.ts b/dist/Typography/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/Typography/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/Typography/types/components/Avatar/sizes.d.ts b/dist/Typography/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/Typography/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/Typography/types/components/Button/Button.types.d.ts b/dist/Typography/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/Typography/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/Typography/types/components/Button/index.d.ts b/dist/Typography/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/Typography/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/Typography/types/components/Form/Form.types.d.ts b/dist/Typography/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/Typography/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Typography/types/components/Form/index.d.ts b/dist/Typography/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/Typography/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/Typography/types/components/Form/useForm.d.ts b/dist/Typography/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/Typography/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/Typography/types/components/Grid/Grid.types.d.ts b/dist/Typography/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/Typography/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/Typography/types/components/Grid/column.d.ts b/dist/Typography/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/Typography/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/Typography/types/components/Grid/container.d.ts b/dist/Typography/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/Typography/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/Typography/types/components/Grid/index.d.ts b/dist/Typography/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/Typography/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/Typography/types/components/Grid/row.d.ts b/dist/Typography/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/Typography/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/Typography/types/components/Image/Image.types.d.ts b/dist/Typography/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/Typography/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/Typography/types/components/Image/index.d.ts b/dist/Typography/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/Typography/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/Typography/types/components/Input/Input.types.d.ts b/dist/Typography/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/Typography/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/Typography/types/components/Input/container.d.ts b/dist/Typography/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/Typography/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/Typography/types/components/Input/index.d.ts b/dist/Typography/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/Typography/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/Typography/types/components/Input/password.d.ts b/dist/Typography/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/Typography/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/Typography/types/components/Input/textarea.d.ts b/dist/Typography/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/Typography/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/Typography/types/components/Notification/Notification.types.d.ts b/dist/Typography/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/Typography/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/Typography/types/components/Notification/context.d.ts b/dist/Typography/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/Typography/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/Typography/types/components/Notification/index.d.ts b/dist/Typography/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/Typography/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/Typography/types/components/Notification/notification.d.ts b/dist/Typography/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/Typography/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/Typography/types/components/Notification/useNotification.d.ts b/dist/Typography/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/Typography/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/Typography/types/components/Pagination/Pagination.types.d.ts b/dist/Typography/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/Typography/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/Typography/types/components/Pagination/index.d.ts b/dist/Typography/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/Typography/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/Typography/types/components/Pagination/usePagination.d.ts b/dist/Typography/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/Typography/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/Typography/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/Typography/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/Typography/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/Typography/types/components/SliderBeforeAfter/index.d.ts b/dist/Typography/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/Typography/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/Typography/types/components/Tags/Tags.types.d.ts b/dist/Typography/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/Typography/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/Typography/types/components/Tags/index.d.ts b/dist/Typography/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/Typography/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/Typography/types/components/Tags/tag.d.ts b/dist/Typography/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/Typography/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/Typography/types/components/ThemeProvider/Theme.types.d.ts b/dist/Typography/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/Typography/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/Typography/types/components/ThemeProvider/index.d.ts b/dist/Typography/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/Typography/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/Typography/types/components/ThemeProvider/themes/index.d.ts b/dist/Typography/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/Typography/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/Typography/types/components/Typography/Typography.types.d.ts b/dist/Typography/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/Typography/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/Typography/types/components/Typography/index.d.ts b/dist/Typography/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/Typography/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/Typography/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/Typography/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/Typography/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/Typography/types/components/ZoomImage/index.d.ts b/dist/Typography/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/Typography/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/Typography/types/components/ZoomImage/useEventListener.d.ts b/dist/Typography/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/Typography/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/Typography/types/components/index.d.ts b/dist/Typography/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/Typography/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/Typography/types/index.d.ts b/dist/Typography/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/Typography/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/dist/ZoomImage/index.js b/dist/ZoomImage/index.js new file mode 100644 index 0000000..959204d --- /dev/null +++ b/dist/ZoomImage/index.js @@ -0,0 +1,2 @@ +import{jsxs as t,Fragment as e,jsx as n}from"react/jsx-runtime";import{useRef as o,useEffect as r,useState as i}from"react";var a=function(){return a=Object.assign||function(t){for(var e,n=1,o=arguments.length;nr.h)}};return d("wheel",(function(){return _(!1)})),d("resize",v),t(e,{children:[n("div",{className:[m.behind,c?m.zoomed:void 0].join(" ")}),n("img",a({},r,{src:u,className:[l,m.wrapper,c?m.wrapper__zommed:void 0,h?m.full__width:void 0].join(" "),onClick:function(){return _(!c)},onLoad:v,ref:g,alt:s}))]})};export{u as default}; +//# sourceMappingURL=index.js.map diff --git a/dist/ZoomImage/index.js.map b/dist/ZoomImage/index.js.map new file mode 100644 index 0000000..e92afa2 --- /dev/null +++ b/dist/ZoomImage/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/components/ZoomImage/useEventListener.ts","../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/ZoomImage/index.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,"function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SuppressedError","useEventListener","eventName","handler","element","window","savedHandler","useRef","useEffect","current","addEventListener","eventListener","event","_a","removeEventListener","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","ZoomImage","props","src","className","alt","useState","zoomed","setZoomed","_b","fullWidth","setFullWidth","updateSizing","w","offsetWidth","h","offsetHeight","full","innerWidth","innerHeight","ratio","_jsxs","_Fragment","children","_jsx","styles","behind","undefined","join","wrapper","wrapper__zommed","full__width","onClick","onLoad"],"mappings":"4HA+BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EAmRkD,mBAApBQ,iBAAiCA,gBCzT/D,IAAMC,EAAmB,SAACC,EAAgBC,EAAcC,QAAA,IAAAA,IAAAA,EAAqBC,QAC5E,IAAMC,EAAeC,IACrBC,GAAU,WACTF,EAAaG,QAAUN,CACxB,GAAG,CAACA,IACJK,GAAU,WAET,GADoBJ,GAAWA,EAAQM,iBACvC,CACA,IAAMC,EAAgB,SAACC,SAAe,OAAuB,QAAvBC,EAAAP,EAAaG,eAAU,IAAAI,OAAA,EAAAA,EAAAhB,KAAAS,EAAAM,IAE7D,OADAR,EAAQM,iBAAiBR,EAAWS,GAC7B,WACNP,EAAQU,oBAAoBZ,EAAWS,EACxC,CALyB,CAM1B,GAAG,CAACT,EAAWE,GAChB,iPChBA,SAAqBW,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,mvBCpBM,IAAAe,EAAgC,SAACC,GAC9B,IAAAC,EAAwBD,EAAKC,IAAxBC,EAAmBF,EAAKE,UAAbC,EAAQH,MAC1BlB,EAAsBsB,GAAkB,GAAvCC,EAAMvB,EAAA,GAAEwB,EAASxB,EAAA,GAClByB,EAA4BH,GAAkB,GAA7CI,EAASD,EAAA,GAAEE,EAAYF,EAAA,GACxBtB,EAAMT,EAAO,MAGbkC,EAAe,WACpB,GAAIzB,EAAIP,QAAS,CACV,IAAAI,EAAsCG,EAAIP,QAA3BiC,EAAC7B,EAAA8B,YAAgBC,EAAC/B,EAAAgC,aACjCC,EAAO,CAAEJ,EAAGrC,OAAO0C,WAAYH,EAAGvC,OAAO2C,aACzCC,EAAQ,CACbP,EAAGA,EAAII,EAAKJ,EACZE,EAAGA,EAAIE,EAAKF,GAEbJ,EAAaS,EAAMP,EAAIO,EAAML,EAC7B,CACF,EAGA,OAFA3C,EAAiB,SAZF,WAAM,OAAAoC,GAAU,EAAV,IAarBpC,EAAiB,SAAUwC,GAE1BS,EACCC,EAAA,CAAAC,SAAA,CAAAC,EAAA,MAAA,CAAKpB,UAAW,CAACqB,EAAOC,OAAQnB,EAASkB,EAAOlB,YAASoB,GAAWC,KAAK,OACzEJ,EAAA,MAAApE,EAAA,CAAA,EACK8C,EACJ,CAAAC,IAAKA,EACLC,UAAW,CACVA,EACAqB,EAAOI,QACPtB,EAASkB,EAAOK,qBAAkBH,EAClCjB,EAAYe,EAAOM,iBAAcJ,GAChCC,KAAK,KACPI,QA3BY,WAAM,OAAAxB,GAAWD,IA4B7B0B,OAAQrB,EACRzB,IAAKA,EACLkB,IAAKA,OAIT","x_google_ignoreList":[0,2]} \ No newline at end of file diff --git a/dist/ZoomImage/types/components/Avatar/Avatar.types.d.ts b/dist/ZoomImage/types/components/Avatar/Avatar.types.d.ts new file mode 100644 index 0000000..d3ed37c --- /dev/null +++ b/dist/ZoomImage/types/components/Avatar/Avatar.types.d.ts @@ -0,0 +1,24 @@ +import { FC, CSSProperties, MouseEventHandler, Component } from 'react'; +export interface AvatarProps { + component?: Component; + fullname?: string; + avatar?: string; + size: 'small' | 'medium' | 'large'; + className?: string; + style?: CSSProperties; + imageClassName?: string; + imageStyle?: CSSProperties; + isOnline?: boolean; +} +export interface AvatarComposition { + Group: FC; +} +export interface GroupProps { + users: AvatarProps[]; + add: boolean; + onAdd: MouseEventHandler; +} +export interface AddButtonProps { + users: AvatarProps[]; + onAdd: MouseEventHandler; +} diff --git a/dist/ZoomImage/types/components/Avatar/avatar.d.ts b/dist/ZoomImage/types/components/Avatar/avatar.d.ts new file mode 100644 index 0000000..9978cfb --- /dev/null +++ b/dist/ZoomImage/types/components/Avatar/avatar.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps } from './Avatar.types'; +declare const AvatarComponent: FC; +export default AvatarComponent; diff --git a/dist/ZoomImage/types/components/Avatar/group.d.ts b/dist/ZoomImage/types/components/Avatar/group.d.ts new file mode 100644 index 0000000..e375bbb --- /dev/null +++ b/dist/ZoomImage/types/components/Avatar/group.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GroupProps } from './Avatar.types'; +declare const Group: FC; +export default Group; diff --git a/dist/ZoomImage/types/components/Avatar/index.d.ts b/dist/ZoomImage/types/components/Avatar/index.d.ts new file mode 100644 index 0000000..a46c28d --- /dev/null +++ b/dist/ZoomImage/types/components/Avatar/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { AvatarProps, AvatarComposition } from './Avatar.types'; +declare const Avatar: FC & AvatarComposition; +export default Avatar; diff --git a/dist/ZoomImage/types/components/Avatar/sizes.d.ts b/dist/ZoomImage/types/components/Avatar/sizes.d.ts new file mode 100644 index 0000000..07a2b0e --- /dev/null +++ b/dist/ZoomImage/types/components/Avatar/sizes.d.ts @@ -0,0 +1,4 @@ +export declare const changeSizeContainer: (size: any) => any; +export declare const changeSize: (size: any) => any; +export declare const changeSizeSymbol: (size: any) => any; +export declare const changeSizeOnline: (size: any) => any; diff --git a/dist/ZoomImage/types/components/Button/Button.types.d.ts b/dist/ZoomImage/types/components/Button/Button.types.d.ts new file mode 100644 index 0000000..8c91978 --- /dev/null +++ b/dist/ZoomImage/types/components/Button/Button.types.d.ts @@ -0,0 +1,14 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface ButtonProps { + as?: string; + children?: ReactNode; + className?: string; + danger?: boolean; + disabled?: boolean; + href?: string; + loading?: boolean; + size: 'small' | 'medium' | 'large'; + styles?: CSSProperties; + type: 'button' | 'reset' | 'submit'; + variant: 'primary' | 'secondary' | 'text'; +} diff --git a/dist/ZoomImage/types/components/Button/index.d.ts b/dist/ZoomImage/types/components/Button/index.d.ts new file mode 100644 index 0000000..c9df299 --- /dev/null +++ b/dist/ZoomImage/types/components/Button/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ButtonProps } from './Button.types'; +declare const Button: FC; +export default Button; diff --git a/dist/ZoomImage/types/components/Form/Form.types.d.ts b/dist/ZoomImage/types/components/Form/Form.types.d.ts new file mode 100644 index 0000000..7c417f5 --- /dev/null +++ b/dist/ZoomImage/types/components/Form/Form.types.d.ts @@ -0,0 +1,7 @@ +import { ReactNode, CSSProperties, FormEvent } from 'react'; +export interface FormProps { + children: ReactNode; + onSubmit: (event: FormEvent) => void; + className?: string; + style?: CSSProperties; +} diff --git a/dist/ZoomImage/types/components/Form/index.d.ts b/dist/ZoomImage/types/components/Form/index.d.ts new file mode 100644 index 0000000..30e2951 --- /dev/null +++ b/dist/ZoomImage/types/components/Form/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { FormProps } from './Form.types'; +export declare const Form: FC; +export default Form; diff --git a/dist/ZoomImage/types/components/Form/useForm.d.ts b/dist/ZoomImage/types/components/Form/useForm.d.ts new file mode 100644 index 0000000..81da290 --- /dev/null +++ b/dist/ZoomImage/types/components/Form/useForm.d.ts @@ -0,0 +1,7 @@ +declare const useForm: (state: any, validate: any, callback: any) => { + handleChange: (e: any) => void; + handleSubmit: (e: any) => void; + values: any; + errors: {}; +}; +export default useForm; diff --git a/dist/ZoomImage/types/components/Grid/Grid.types.d.ts b/dist/ZoomImage/types/components/Grid/Grid.types.d.ts new file mode 100644 index 0000000..34ca35e --- /dev/null +++ b/dist/ZoomImage/types/components/Grid/Grid.types.d.ts @@ -0,0 +1,25 @@ +import { ReactNode, FC } from 'react'; +export interface GridProps { + children?: ReactNode; +} +export interface GridComposition { + Container: FC; + Column: FC; + Row: FC; +} +export interface ContainerProps { + children?: ReactNode; +} +export interface RowProps { + children?: ReactNode; +} +export interface ColumnProps { + children?: ReactNode; + className?: string; + col?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} diff --git a/dist/ZoomImage/types/components/Grid/column.d.ts b/dist/ZoomImage/types/components/Grid/column.d.ts new file mode 100644 index 0000000..f416c91 --- /dev/null +++ b/dist/ZoomImage/types/components/Grid/column.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ColumnProps } from './Grid.types'; +declare const Column: FC; +export default Column; diff --git a/dist/ZoomImage/types/components/Grid/container.d.ts b/dist/ZoomImage/types/components/Grid/container.d.ts new file mode 100644 index 0000000..d0f0895 --- /dev/null +++ b/dist/ZoomImage/types/components/Grid/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ContainerProps } from './Grid.types'; +declare const Container: FC; +export default Container; diff --git a/dist/ZoomImage/types/components/Grid/index.d.ts b/dist/ZoomImage/types/components/Grid/index.d.ts new file mode 100644 index 0000000..5f11add --- /dev/null +++ b/dist/ZoomImage/types/components/Grid/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { GridProps, GridComposition } from './Grid.types'; +declare const Grid: FC & GridComposition; +export default Grid; diff --git a/dist/ZoomImage/types/components/Grid/row.d.ts b/dist/ZoomImage/types/components/Grid/row.d.ts new file mode 100644 index 0000000..2167bd8 --- /dev/null +++ b/dist/ZoomImage/types/components/Grid/row.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { RowProps } from './Grid.types'; +declare const Row: FC; +export default Row; diff --git a/dist/ZoomImage/types/components/Image/Image.types.d.ts b/dist/ZoomImage/types/components/Image/Image.types.d.ts new file mode 100644 index 0000000..5c4994d --- /dev/null +++ b/dist/ZoomImage/types/components/Image/Image.types.d.ts @@ -0,0 +1,5 @@ +export interface ImageProps { + width: number; + height: number; + image: string; +} diff --git a/dist/ZoomImage/types/components/Image/index.d.ts b/dist/ZoomImage/types/components/Image/index.d.ts new file mode 100644 index 0000000..dba847b --- /dev/null +++ b/dist/ZoomImage/types/components/Image/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ImageProps } from './Image.types'; +declare const Image: FC; +export default Image; diff --git a/dist/ZoomImage/types/components/Input/Input.types.d.ts b/dist/ZoomImage/types/components/Input/Input.types.d.ts new file mode 100644 index 0000000..e8dd0d8 --- /dev/null +++ b/dist/ZoomImage/types/components/Input/Input.types.d.ts @@ -0,0 +1,21 @@ +import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; +export interface InputProps { + id?: string; + value: any; + placeholder?: string; + type: 'email' | 'password' | 'tel' | 'text' | 'url'; + name?: string; + help?: string; + className?: string; + size: 'small' | 'medium' | 'large'; + status: 'error' | 'success' | 'default'; + style?: CSSProperties; + onChange?: ChangeEventHandler; + visibleTitle?: boolean; + disabled?: boolean; + onPressEnter?: KeyboardEvent; +} +export interface InputComposition { + Textarea: FC; + Password: FC; +} diff --git a/dist/ZoomImage/types/components/Input/container.d.ts b/dist/ZoomImage/types/components/Input/container.d.ts new file mode 100644 index 0000000..302eaf9 --- /dev/null +++ b/dist/ZoomImage/types/components/Input/container.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const InputContainer: FC; +export default InputContainer; diff --git a/dist/ZoomImage/types/components/Input/index.d.ts b/dist/ZoomImage/types/components/Input/index.d.ts new file mode 100644 index 0000000..74c42b7 --- /dev/null +++ b/dist/ZoomImage/types/components/Input/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputComposition, InputProps } from './Input.types'; +declare const Input: FC & InputComposition; +export default Input; diff --git a/dist/ZoomImage/types/components/Input/password.d.ts b/dist/ZoomImage/types/components/Input/password.d.ts new file mode 100644 index 0000000..714acd5 --- /dev/null +++ b/dist/ZoomImage/types/components/Input/password.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Password: FC; +export default Password; diff --git a/dist/ZoomImage/types/components/Input/textarea.d.ts b/dist/ZoomImage/types/components/Input/textarea.d.ts new file mode 100644 index 0000000..f0c98eb --- /dev/null +++ b/dist/ZoomImage/types/components/Input/textarea.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { InputProps } from './Input.types'; +declare const Textarea: FC; +export default Textarea; diff --git a/dist/ZoomImage/types/components/Notification/Notification.types.d.ts b/dist/ZoomImage/types/components/Notification/Notification.types.d.ts new file mode 100644 index 0000000..72e0b9c --- /dev/null +++ b/dist/ZoomImage/types/components/Notification/Notification.types.d.ts @@ -0,0 +1,13 @@ +import { CSSProperties, ReactNode } from 'react'; +export interface NotificationProps { + id: string; + title: string; + message: string; + dispatch: (e: any) => void; + className?: string; + style?: CSSProperties; + type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; +} +export interface NotificationProviderProps { + children?: ReactNode; +} diff --git a/dist/ZoomImage/types/components/Notification/context.d.ts b/dist/ZoomImage/types/components/Notification/context.d.ts new file mode 100644 index 0000000..af841e3 --- /dev/null +++ b/dist/ZoomImage/types/components/Notification/context.d.ts @@ -0,0 +1,3 @@ +/// +declare const NotificationContext: import("react").Context; +export default NotificationContext; diff --git a/dist/ZoomImage/types/components/Notification/index.d.ts b/dist/ZoomImage/types/components/Notification/index.d.ts new file mode 100644 index 0000000..2b3d59d --- /dev/null +++ b/dist/ZoomImage/types/components/Notification/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProviderProps } from './Notification.types'; +declare const NotificationProvider: FC; +export default NotificationProvider; diff --git a/dist/ZoomImage/types/components/Notification/notification.d.ts b/dist/ZoomImage/types/components/Notification/notification.d.ts new file mode 100644 index 0000000..4dff78e --- /dev/null +++ b/dist/ZoomImage/types/components/Notification/notification.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { NotificationProps } from './Notification.types'; +declare const Notification: FC; +export default Notification; diff --git a/dist/ZoomImage/types/components/Notification/useNotification.d.ts b/dist/ZoomImage/types/components/Notification/useNotification.d.ts new file mode 100644 index 0000000..9512392 --- /dev/null +++ b/dist/ZoomImage/types/components/Notification/useNotification.d.ts @@ -0,0 +1,2 @@ +declare const useNotification: () => (props: any) => void; +export default useNotification; diff --git a/dist/ZoomImage/types/components/Pagination/Pagination.types.d.ts b/dist/ZoomImage/types/components/Pagination/Pagination.types.d.ts new file mode 100644 index 0000000..e40c425 --- /dev/null +++ b/dist/ZoomImage/types/components/Pagination/Pagination.types.d.ts @@ -0,0 +1,11 @@ +import { CSSProperties } from 'react'; +export interface PaginationProps { + className?: string; + style?: CSSProperties; + arrowShow?: boolean; + onPageChange: (e: any) => void; + totalCount: number; + siblingCount: number; + currentPage: number; + pageSize: number; +} diff --git a/dist/ZoomImage/types/components/Pagination/index.d.ts b/dist/ZoomImage/types/components/Pagination/index.d.ts new file mode 100644 index 0000000..a296466 --- /dev/null +++ b/dist/ZoomImage/types/components/Pagination/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { PaginationProps } from './Pagination.types'; +declare const Pagination: FC; +export default Pagination; diff --git a/dist/ZoomImage/types/components/Pagination/usePagination.d.ts b/dist/ZoomImage/types/components/Pagination/usePagination.d.ts new file mode 100644 index 0000000..8dca572 --- /dev/null +++ b/dist/ZoomImage/types/components/Pagination/usePagination.d.ts @@ -0,0 +1,9 @@ +export declare const DOTS = "..."; +interface usePaginationProps { + totalCount: number; + pageSize: number; + siblingCount: number; + currentPage: number; +} +export declare const usePagination: (props: usePaginationProps) => any[] | undefined; +export {}; diff --git a/dist/ZoomImage/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts b/dist/ZoomImage/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts new file mode 100644 index 0000000..13dd91f --- /dev/null +++ b/dist/ZoomImage/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts @@ -0,0 +1,10 @@ +import { ReactNode } from 'react'; +export interface SliderBeforeAfterProps { + size: number; + aspectRatio?: string; + urlFirstImage?: string; + urlSecondImage?: string; + alt?: string; + componentAfter?: ReactNode; + componentBefore?: ReactNode; +} diff --git a/dist/ZoomImage/types/components/SliderBeforeAfter/index.d.ts b/dist/ZoomImage/types/components/SliderBeforeAfter/index.d.ts new file mode 100644 index 0000000..2f8b908 --- /dev/null +++ b/dist/ZoomImage/types/components/SliderBeforeAfter/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; +declare const SliderBeforeAfter: FC; +export default SliderBeforeAfter; diff --git a/dist/ZoomImage/types/components/Tags/Tags.types.d.ts b/dist/ZoomImage/types/components/Tags/Tags.types.d.ts new file mode 100644 index 0000000..3ad9af3 --- /dev/null +++ b/dist/ZoomImage/types/components/Tags/Tags.types.d.ts @@ -0,0 +1,13 @@ +import { FC, ReactNode } from 'react'; +export interface TagsProps { + children?: ReactNode; +} +export interface TagProps { + className?: string; + children?: ReactNode; + activ?: boolean; + onClick?: (e?: any) => void; +} +export interface TagsComposition { + Tag: FC; +} diff --git a/dist/ZoomImage/types/components/Tags/index.d.ts b/dist/ZoomImage/types/components/Tags/index.d.ts new file mode 100644 index 0000000..9358c6f --- /dev/null +++ b/dist/ZoomImage/types/components/Tags/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagsComposition, TagsProps } from './Tags.types'; +declare const Tags: FC & TagsComposition; +export default Tags; diff --git a/dist/ZoomImage/types/components/Tags/tag.d.ts b/dist/ZoomImage/types/components/Tags/tag.d.ts new file mode 100644 index 0000000..fdb3f68 --- /dev/null +++ b/dist/ZoomImage/types/components/Tags/tag.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TagProps } from './Tags.types'; +declare const Tag: FC; +export default Tag; diff --git a/dist/ZoomImage/types/components/ThemeProvider/Theme.types.d.ts b/dist/ZoomImage/types/components/ThemeProvider/Theme.types.d.ts new file mode 100644 index 0000000..1bd0f78 --- /dev/null +++ b/dist/ZoomImage/types/components/ThemeProvider/Theme.types.d.ts @@ -0,0 +1,6 @@ +import { ReactNode } from 'react'; +export interface ThemeProps { + theme: string; + themes?: Record; + children?: ReactNode; +} diff --git a/dist/ZoomImage/types/components/ThemeProvider/index.d.ts b/dist/ZoomImage/types/components/ThemeProvider/index.d.ts new file mode 100644 index 0000000..85db7cf --- /dev/null +++ b/dist/ZoomImage/types/components/ThemeProvider/index.d.ts @@ -0,0 +1,5 @@ +import React, { FC } from 'react'; +import { ThemeProps } from './Theme.types'; +declare const ThemeProvider: FC; +export default ThemeProvider; +export declare const ThemeContext: React.Context; diff --git a/dist/ZoomImage/types/components/ThemeProvider/themes/index.d.ts b/dist/ZoomImage/types/components/ThemeProvider/themes/index.d.ts new file mode 100644 index 0000000..d11f0b6 --- /dev/null +++ b/dist/ZoomImage/types/components/ThemeProvider/themes/index.d.ts @@ -0,0 +1,2 @@ +export { default as light } from './light.module.css'; +export { default as dark } from './dark.module.css'; diff --git a/dist/ZoomImage/types/components/Typography/Typography.types.d.ts b/dist/ZoomImage/types/components/Typography/Typography.types.d.ts new file mode 100644 index 0000000..15d1112 --- /dev/null +++ b/dist/ZoomImage/types/components/Typography/Typography.types.d.ts @@ -0,0 +1,11 @@ +import { ReactNode, CSSProperties } from 'react'; +export interface TypographyProps { + type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; + color?: 'accent' | 'text' | 'secondary'; + children?: ReactNode; + fontStyle?: 'normal' | 'italic' | 'oblique'; + transform?: 'capitalize' | 'lowercase' | 'uppercase'; + decoration?: 'underline' | 'overline' | 'line-through'; + className?: string; + style?: CSSProperties; +} diff --git a/dist/ZoomImage/types/components/Typography/index.d.ts b/dist/ZoomImage/types/components/Typography/index.d.ts new file mode 100644 index 0000000..a2f80b2 --- /dev/null +++ b/dist/ZoomImage/types/components/Typography/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { TypographyProps } from './Typography.types'; +declare const Typography: FC; +export default Typography; diff --git a/dist/ZoomImage/types/components/ZoomImage/ZoomImage.types.d.ts b/dist/ZoomImage/types/components/ZoomImage/ZoomImage.types.d.ts new file mode 100644 index 0000000..090812b --- /dev/null +++ b/dist/ZoomImage/types/components/ZoomImage/ZoomImage.types.d.ts @@ -0,0 +1,7 @@ +import { CSSProperties } from 'react'; +export interface ZoomImageProps { + className?: string; + style?: CSSProperties; + src: string; + alt: string; +} diff --git a/dist/ZoomImage/types/components/ZoomImage/index.d.ts b/dist/ZoomImage/types/components/ZoomImage/index.d.ts new file mode 100644 index 0000000..4334e1b --- /dev/null +++ b/dist/ZoomImage/types/components/ZoomImage/index.d.ts @@ -0,0 +1,4 @@ +import { FC } from 'react'; +import { ZoomImageProps } from './ZoomImage.types'; +declare const ZoomImage: FC; +export default ZoomImage; diff --git a/dist/ZoomImage/types/components/ZoomImage/useEventListener.d.ts b/dist/ZoomImage/types/components/ZoomImage/useEventListener.d.ts new file mode 100644 index 0000000..a7efdce --- /dev/null +++ b/dist/ZoomImage/types/components/ZoomImage/useEventListener.d.ts @@ -0,0 +1,2 @@ +declare const useEventListener: (eventName: any, handler: any, element?: any) => void; +export default useEventListener; diff --git a/dist/ZoomImage/types/components/index.d.ts b/dist/ZoomImage/types/components/index.d.ts new file mode 100644 index 0000000..8a58597 --- /dev/null +++ b/dist/ZoomImage/types/components/index.d.ts @@ -0,0 +1,16 @@ +export { default as Button } from './Button'; +export { default as Pagination } from './Pagination'; +export { default as Form } from './Form'; +export { default as ZoomImage } from './ZoomImage'; +export { default as SliderBeforeAfter } from './SliderBeforeAfter'; +export { default as Typography } from './Typography'; +export { default as NotificationProvider } from './Notification'; +export { default as Grid } from './Grid'; +export { default as Image } from './Image'; +export { default as Avatar } from './Avatar'; +export { default as Input } from './Input'; +export { default as Tags } from './Tags'; +export { default as ThemeProvider } from './ThemeProvider'; +export { default as useEventListener } from './ZoomImage/useEventListener'; +export { default as useForm } from './Form/useForm'; +export { default as useNotification } from './Notification/useNotification'; diff --git a/dist/ZoomImage/types/index.d.ts b/dist/ZoomImage/types/index.d.ts new file mode 100644 index 0000000..07635cb --- /dev/null +++ b/dist/ZoomImage/types/index.d.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/package.json b/package.json index 4308df7..1aca2da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui-forest", - "version": "1.12.4", + "version": "1.12.5", "description": "

\"UI

UI Forest

\"npm\" \"NPM\"

", "main": "./dist/index.js", "module": "./dist/index.es.js",