blixify-ui-web 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/components/action/button/index.d.ts +16 -0
- package/lib/components/action/button/index.d.ts.map +1 -0
- package/lib/components/action/button/index.js +90 -0
- package/lib/components/action/button/index.js.map +1 -0
- package/lib/components/action/buttonGroup/index.d.ts +17 -0
- package/lib/components/action/buttonGroup/index.d.ts.map +1 -0
- package/lib/components/action/buttonGroup/index.js +74 -0
- package/lib/components/action/buttonGroup/index.js.map +1 -0
- package/lib/components/action/iconButton/index.d.ts +14 -0
- package/lib/components/action/iconButton/index.d.ts.map +1 -0
- package/lib/components/action/iconButton/index.js +71 -0
- package/lib/components/action/iconButton/index.js.map +1 -0
- package/lib/components/action/textButton/index.d.ts +13 -0
- package/lib/components/action/textButton/index.d.ts.map +1 -0
- package/lib/components/action/textButton/index.js +62 -0
- package/lib/components/action/textButton/index.js.map +1 -0
- package/lib/components/action/toggle/index.d.ts +17 -0
- package/lib/components/action/toggle/index.d.ts.map +1 -0
- package/lib/components/action/toggle/index.js +91 -0
- package/lib/components/action/toggle/index.js.map +1 -0
- package/lib/components/data/readQuery/index.d.ts +46 -0
- package/lib/components/data/readQuery/index.d.ts.map +1 -0
- package/lib/components/data/readQuery/index.js +210 -0
- package/lib/components/data/readQuery/index.js.map +1 -0
- package/lib/components/data/readQueryHoc/index.d.ts +24 -0
- package/lib/components/data/readQueryHoc/index.d.ts.map +1 -0
- package/lib/components/data/readQueryHoc/index.js +255 -0
- package/lib/components/data/readQueryHoc/index.js.map +1 -0
- package/lib/components/data/writeQuery/index.d.ts +14 -0
- package/lib/components/data/writeQuery/index.d.ts.map +1 -0
- package/lib/components/data/writeQuery/index.js +120 -0
- package/lib/components/data/writeQuery/index.js.map +1 -0
- package/lib/components/display/detailList/index.d.ts +17 -0
- package/lib/components/display/detailList/index.d.ts.map +1 -0
- package/lib/components/display/detailList/index.js +68 -0
- package/lib/components/display/detailList/index.js.map +1 -0
- package/lib/components/display/feeds/index.d.ts +19 -0
- package/lib/components/display/feeds/index.d.ts.map +1 -0
- package/lib/components/display/feeds/index.js +79 -0
- package/lib/components/display/feeds/index.js.map +1 -0
- package/lib/components/display/grid/index.d.ts +33 -0
- package/lib/components/display/grid/index.d.ts.map +1 -0
- package/lib/components/display/grid/index.js +180 -0
- package/lib/components/display/grid/index.js.map +1 -0
- package/lib/components/display/list/index.d.ts +30 -0
- package/lib/components/display/list/index.d.ts.map +1 -0
- package/lib/components/display/list/index.js +160 -0
- package/lib/components/display/list/index.js.map +1 -0
- package/lib/components/display/loading/index.d.ts +6 -0
- package/lib/components/display/loading/index.d.ts.map +1 -0
- package/lib/components/display/loading/index.js +55 -0
- package/lib/components/display/loading/index.js.map +1 -0
- package/lib/components/display/modal/index.d.ts +16 -0
- package/lib/components/display/modal/index.d.ts.map +1 -0
- package/lib/components/display/modal/index.js +67 -0
- package/lib/components/display/modal/index.js.map +1 -0
- package/lib/components/display/notification/index.d.ts +20 -0
- package/lib/components/display/notification/index.d.ts.map +1 -0
- package/lib/components/display/notification/index.js +69 -0
- package/lib/components/display/notification/index.js.map +1 -0
- package/lib/components/display/table/index.d.ts +32 -0
- package/lib/components/display/table/index.d.ts.map +1 -0
- package/lib/components/display/table/index.js +202 -0
- package/lib/components/display/table/index.js.map +1 -0
- package/lib/components/index.d.ts +30 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +62 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/input/address/index.d.ts +41 -0
- package/lib/components/input/address/index.d.ts.map +1 -0
- package/lib/components/input/address/index.js +162 -0
- package/lib/components/input/address/index.js.map +1 -0
- package/lib/components/input/datePicker/index.d.ts +26 -0
- package/lib/components/input/datePicker/index.d.ts.map +1 -0
- package/lib/components/input/datePicker/index.js +132 -0
- package/lib/components/input/datePicker/index.js.map +1 -0
- package/lib/components/input/form/index.d.ts +14 -0
- package/lib/components/input/form/index.d.ts.map +1 -0
- package/lib/components/input/form/index.js +77 -0
- package/lib/components/input/form/index.js.map +1 -0
- package/lib/components/input/select/index.d.ts +40 -0
- package/lib/components/input/select/index.d.ts.map +1 -0
- package/lib/components/input/select/index.js +269 -0
- package/lib/components/input/select/index.js.map +1 -0
- package/lib/components/input/textArea/index.d.ts +23 -0
- package/lib/components/input/textArea/index.d.ts.map +1 -0
- package/lib/components/input/textArea/index.js +95 -0
- package/lib/components/input/textArea/index.js.map +1 -0
- package/lib/components/input/textInput/index.d.ts +25 -0
- package/lib/components/input/textInput/index.d.ts.map +1 -0
- package/lib/components/input/textInput/index.js +121 -0
- package/lib/components/input/textInput/index.js.map +1 -0
- package/lib/components/input/uploadInput/index.d.ts +23 -0
- package/lib/components/input/uploadInput/index.d.ts.map +1 -0
- package/lib/components/input/uploadInput/index.js +103 -0
- package/lib/components/input/uploadInput/index.js.map +1 -0
- package/lib/components/navigation/bars/index.d.ts +17 -0
- package/lib/components/navigation/bars/index.d.ts.map +1 -0
- package/lib/components/navigation/bars/index.js +73 -0
- package/lib/components/navigation/bars/index.js.map +1 -0
- package/lib/components/navigation/header/index.d.ts +35 -0
- package/lib/components/navigation/header/index.d.ts.map +1 -0
- package/lib/components/navigation/header/index.js +167 -0
- package/lib/components/navigation/header/index.js.map +1 -0
- package/lib/components/navigation/tabs/index.d.ts +16 -0
- package/lib/components/navigation/tabs/index.d.ts.map +1 -0
- package/lib/components/navigation/tabs/index.js +70 -0
- package/lib/components/navigation/tabs/index.js.map +1 -0
- package/lib/components/structure/column/index.d.ts +13 -0
- package/lib/components/structure/column/index.d.ts.map +1 -0
- package/lib/components/structure/column/index.js +89 -0
- package/lib/components/structure/column/index.js.map +1 -0
- package/lib/components/structure/container/index.d.ts +11 -0
- package/lib/components/structure/container/index.d.ts.map +1 -0
- package/lib/components/structure/container/index.js +57 -0
- package/lib/components/structure/container/index.js.map +1 -0
- package/lib/components/structure/text/index.d.ts +16 -0
- package/lib/components/structure/text/index.d.ts.map +1 -0
- package/lib/components/structure/text/index.js +153 -0
- package/lib/components/structure/text/index.js.map +1 -0
- package/lib/index.css +105 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/package.json +104 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
+
function step(op) {
|
|
54
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
+
while (_) try {
|
|
56
|
+
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;
|
|
57
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
+
switch (op[0]) {
|
|
59
|
+
case 0: case 1: t = op; break;
|
|
60
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
+
default:
|
|
64
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
+
if (t[2]) _.ops.pop();
|
|
69
|
+
_.trys.pop(); continue;
|
|
70
|
+
}
|
|
71
|
+
op = body.call(thisArg, _);
|
|
72
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
+
exports.Header = void 0;
|
|
78
|
+
var outline_1 = require("@heroicons/react/24/outline");
|
|
79
|
+
var solid_1 = require("@heroicons/react/24/solid");
|
|
80
|
+
var react_1 = __importStar(require("react"));
|
|
81
|
+
require("../../../index.css");
|
|
82
|
+
function classNames() {
|
|
83
|
+
var classes = [];
|
|
84
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
85
|
+
classes[_i] = arguments[_i];
|
|
86
|
+
}
|
|
87
|
+
return classes.filter(Boolean).join(" ");
|
|
88
|
+
}
|
|
89
|
+
var Header = /** @class */ (function (_super) {
|
|
90
|
+
__extends(Header, _super);
|
|
91
|
+
function Header() {
|
|
92
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
93
|
+
_this.handleSignOut = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
94
|
+
return __generator(this, function (_a) {
|
|
95
|
+
if (this.props.signOut) {
|
|
96
|
+
this.props.signOut();
|
|
97
|
+
}
|
|
98
|
+
return [2 /*return*/];
|
|
99
|
+
});
|
|
100
|
+
}); };
|
|
101
|
+
return _this;
|
|
102
|
+
}
|
|
103
|
+
Header.prototype.render = function () {
|
|
104
|
+
var _this = this;
|
|
105
|
+
var _a = this.props.lib, Disclosure = _a.Disclosure, Menu = _a.Menu, Transition = _a.Transition;
|
|
106
|
+
return (react_1.default.createElement(Disclosure, { as: "nav", className: "bg-white shadow-sm" }, function (_a) {
|
|
107
|
+
var open = _a.open;
|
|
108
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
109
|
+
react_1.default.createElement("div", { className: "max-w-7xl mx-auto px-4 md:px-6 lg:px-8" },
|
|
110
|
+
react_1.default.createElement("div", { className: "flex justify-between h-16" },
|
|
111
|
+
react_1.default.createElement("div", { className: "flex" },
|
|
112
|
+
react_1.default.createElement("div", { className: "flex-shrink-0 flex items-center" },
|
|
113
|
+
react_1.default.createElement("a", { href: _this.props.defaultNav },
|
|
114
|
+
react_1.default.createElement("img", { className: "block lg:hidden h-8 w-auto", src: _this.props.logo, alt: "" }),
|
|
115
|
+
react_1.default.createElement("img", { className: "hidden lg:block h-8 w-auto", src: _this.props.logo, alt: "" }))),
|
|
116
|
+
react_1.default.createElement("div", { className: "hidden lg:-my-px lg:ml-6 lg:flex lg:space-x-8" }, _this.props.navigation.map(function (item) { return (react_1.default.createElement("a", { key: item.name, href: item.href, className: classNames(_this.props.page === item.name
|
|
117
|
+
? "border-primary-500 text-gray-900"
|
|
118
|
+
: "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300", "inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium") }, item.name)); }))),
|
|
119
|
+
react_1.default.createElement("div", { className: "hidden lg:ml-6 lg:flex lg:space-x-8" }, _this.props.user && (react_1.default.createElement("div", { className: "hidden md:ml-3 md:flex md:space-x-8 md:items-center" },
|
|
120
|
+
react_1.default.createElement(Menu, { as: "div", className: "ml-3 z-50 relative" }, function (_a) {
|
|
121
|
+
var _b;
|
|
122
|
+
var open = _a.open;
|
|
123
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
124
|
+
react_1.default.createElement("div", null,
|
|
125
|
+
react_1.default.createElement(Menu.Button, { className: "bg-white flex text-sm rounded-full items-center focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 focus:text-primary-500" },
|
|
126
|
+
react_1.default.createElement("img", { className: "h-8 w-8 rounded-full", src: (_b = _this.props.user) === null || _b === void 0 ? void 0 : _b.image, alt: "" }),
|
|
127
|
+
react_1.default.createElement(solid_1.ChevronDownIcon, { className: "block h-5 w-5", "aria-hidden": "true" }))),
|
|
128
|
+
react_1.default.createElement(Transition, { show: open, as: react_1.Fragment, enter: "transition ease-out duration-200", enterFrom: "transform opacity-0 scale-95", enterTo: "transform opacity-100 scale-100", leave: "transition ease-in duration-75", leaveFrom: "transform opacity-100 scale-100", leaveTo: "transform opacity-0 scale-95" },
|
|
129
|
+
react_1.default.createElement(Menu.Items, { static: true, className: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, _this.props.userNavigation &&
|
|
130
|
+
_this.props.userNavigation.map(function (item) { return (react_1.default.createElement(Menu.Item, { key: item.name }, function (_a) {
|
|
131
|
+
var active = _a.active;
|
|
132
|
+
if (item.action) {
|
|
133
|
+
return (react_1.default.createElement("span", { className: classNames(active ? "bg-gray-100" : "", "cursor-pointer block px-4 py-2 text-sm text-gray-700"), onClick: _this.handleSignOut }, item.name));
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
return (react_1.default.createElement("a", { href: item.href, className: classNames(active ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700") }, item.name));
|
|
137
|
+
}
|
|
138
|
+
})); })))));
|
|
139
|
+
})))),
|
|
140
|
+
react_1.default.createElement("div", { className: "-mr-2 flex items-center lg:hidden" },
|
|
141
|
+
react_1.default.createElement(Disclosure.Button, { className: "bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500" }, open ? (react_1.default.createElement(outline_1.XMarkIcon, { className: "block h-6 w-6", "aria-hidden": "true" })) : (react_1.default.createElement(outline_1.Bars3Icon, { className: "block h-6 w-6", "aria-hidden": "true" })))))),
|
|
142
|
+
react_1.default.createElement(Disclosure.Panel, { className: "lg:hidden" },
|
|
143
|
+
react_1.default.createElement("div", { className: "pt-2 pb-3 space-y-1" }, _this.props.navigation.map(function (item) { return (react_1.default.createElement("a", { href: item.href, key: item.name, className: classNames(_this.props.page === item.name
|
|
144
|
+
? "bg-primary-50 border-primary-500 text-primary-700"
|
|
145
|
+
: "border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800", "block pl-3 pr-4 py-2 border-l-4 text-base font-medium") }, item.name)); })),
|
|
146
|
+
_this.props.user && (react_1.default.createElement("div", { className: "pt-4 pb-3 border-t border-gray-200" },
|
|
147
|
+
react_1.default.createElement("div", { className: "flex items-center px-4" },
|
|
148
|
+
react_1.default.createElement("div", { className: "flex-shrink-0" },
|
|
149
|
+
react_1.default.createElement("img", { className: "h-10 w-10 rounded-full", src: _this.props.user.image, alt: "" })),
|
|
150
|
+
react_1.default.createElement("div", { className: "ml-3" },
|
|
151
|
+
react_1.default.createElement("div", { className: "text-base font-medium text-gray-800" }, _this.props.user.name),
|
|
152
|
+
react_1.default.createElement("div", { className: "text-sm font-medium text-gray-500" }, _this.props.user.email))),
|
|
153
|
+
react_1.default.createElement("div", { className: "mt-3 space-y-1" }, _this.props.userNavigation &&
|
|
154
|
+
_this.props.userNavigation.map(function (item) {
|
|
155
|
+
if (item.action) {
|
|
156
|
+
return (react_1.default.createElement("span", { className: "cursor-pointer block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100", onClick: _this.handleSignOut }, item.name));
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return (react_1.default.createElement("a", { href: item.href, key: item.name, className: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100" }, item.name));
|
|
160
|
+
}
|
|
161
|
+
})))))));
|
|
162
|
+
}));
|
|
163
|
+
};
|
|
164
|
+
return Header;
|
|
165
|
+
}(react_1.Component));
|
|
166
|
+
exports.Header = Header;
|
|
167
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/navigation/header/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAmE;AACnE,mDAA4D;AAC5D,6CAAmD;AACnD,8BAA4B;AAa5B,SAAS,UAAU;IAAC,iBAAe;SAAf,UAAe,EAAf,qBAAe,EAAf,IAAe;QAAf,4BAAe;;IACjC,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,CAAC;AAsBD;IAA4B,0BAAgB;IAA5C;QAAA,qEAwMC;QAvMC,mBAAa,GAAG;;gBACd,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;oBACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;iBACtB;;;aACF,CAAC;;IAmMJ,CAAC;IAjMC,uBAAM,GAAN;QAAA,iBAgMC;QA/LO,IAAA,KAAmC,IAAI,CAAC,KAAK,CAAC,GAAG,EAA/C,UAAU,gBAAA,EAAE,IAAI,UAAA,EAAE,UAAU,gBAAmB,CAAC;QACxD,OAAO,CACL,8BAAC,UAAU,IAAC,EAAE,EAAC,KAAK,EAAC,SA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KAAK,CAAC,IAAI,CAAC,KAAK,CAClB,CACF,CACF;wBACN,uCAAK,SAAS,EAAC,gBAAgB,IAC5B,KAAI,CAAC,KAAK,CAAC,cAAc;4BACxB,KAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,UAAC,IAAI;gCACjC,IAAI,IAAI,CAAC,MAAM,EAAE;oCACf,OAAO,CACL,wCACE,SAAS,EAAC,0GAA0G,EACpH,OAAO,EAAE,KAAI,CAAC,aAAa,IAE1B,IAAI,CAAC,IAAI,CACL,CACR,CAAC;iCACH;qCAAM;oCACL,OAAO,CACL,qCACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,GAAG,EAAE,IAAI,CAAC,IAAI,EACd,SAAS,EAAC,2FAA2F,IAEpG,IAAI,CAAC,IAAI,CACR,CACL,CAAC;iCACH;4BACH,CAAC,CAAC,CACA,CACF,CACP,CACgB,CAClB,CACJ;QAzLc,CAyLd,CACU,CACd,CAAC;IACJ,CAAC;IACH,aAAC;AAAD,CAAC,AAxMD,CAA4B,iBAAS,GAwMpC;AAxMY,wBAAM"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import "../../../index.css";
|
|
3
|
+
interface Props {
|
|
4
|
+
tabs: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
href: string;
|
|
8
|
+
}[];
|
|
9
|
+
selectedId: string;
|
|
10
|
+
onClick?: (id: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare class Tabs extends Component<Props> {
|
|
13
|
+
render(): JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/tabs/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAM5B,UAAU,KAAK;IACb,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,qBAAa,IAAK,SAAQ,SAAS,CAAC,KAAK,CAAC;IACxC,MAAM;CA4BP"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Tabs = void 0;
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
require("../../../index.css");
|
|
44
|
+
function classNames() {
|
|
45
|
+
var classes = [];
|
|
46
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
47
|
+
classes[_i] = arguments[_i];
|
|
48
|
+
}
|
|
49
|
+
return classes.filter(Boolean).join(" ");
|
|
50
|
+
}
|
|
51
|
+
var Tabs = /** @class */ (function (_super) {
|
|
52
|
+
__extends(Tabs, _super);
|
|
53
|
+
function Tabs() {
|
|
54
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
}
|
|
56
|
+
Tabs.prototype.render = function () {
|
|
57
|
+
var _this = this;
|
|
58
|
+
return (react_1.default.createElement("div", null,
|
|
59
|
+
react_1.default.createElement("div", { className: "border-b border-gray-200" },
|
|
60
|
+
react_1.default.createElement("nav", { className: "-mb-px flex space-x-8", "aria-label": "Tabs" }, this.props.tabs.map(function (tab) {
|
|
61
|
+
var _a;
|
|
62
|
+
return (react_1.default.createElement("a", { key: tab.name, href: tab.href, className: classNames(tab.id === _this.props.selectedId
|
|
63
|
+
? "border-primary-500 text-primary-600"
|
|
64
|
+
: "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300", "whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"), "aria-current": tab.id === _this.props.selectedId ? "page" : undefined, onClick: (_a = _this.props.onClick) === null || _a === void 0 ? void 0 : _a.bind(_this, tab.id) }, tab.name));
|
|
65
|
+
})))));
|
|
66
|
+
};
|
|
67
|
+
return Tabs;
|
|
68
|
+
}(react_1.Component));
|
|
69
|
+
exports.Tabs = Tabs;
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/navigation/tabs/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,8BAA4B;AAE5B,SAAS,UAAU;IAAC,iBAAU;SAAV,UAAU,EAAV,qBAAU,EAAV,IAAU;QAAV,4BAAU;;IAC5B,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,CAAC;AAQD;IAA0B,wBAAgB;IAA1C;;IA6BA,CAAC;IA5BC,qBAAM,GAAN;QAAA,iBA2BC;QA1BC,OAAO,CACL;YACE,uCAAK,SAAS,EAAC,0BAA0B;gBACvC,uCAAK,SAAS,EAAC,uBAAuB,gBAAY,MAAM,IACrD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,GAAG;;oBAAK,OAAA,CAC5B,qCACE,GAAG,EAAE,GAAG,CAAC,IAAI,EACb,IAAI,EAAE,GAAG,CAAC,IAAI,EACd,SAAS,EAAE,UAAU,CACnB,GAAG,CAAC,EAAE,KAAK,KAAI,CAAC,KAAK,CAAC,UAAU;4BAC9B,CAAC,CAAC,qCAAqC;4BACvC,CAAC,CAAC,4EAA4E,EAChF,4DAA4D,CAC7D,kBAEC,GAAG,CAAC,EAAE,KAAK,KAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAEvD,OAAO,EAAE,MAAA,KAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,IAAI,CAAC,KAAI,EAAE,GAAG,CAAC,EAAE,CAAC,IAE9C,GAAG,CAAC,IAAI,CACP,CACL,CAAA;iBAAA,CAAC,CACE,CACF,CACF,CACP,CAAC;IACJ,CAAC;IACH,WAAC;AAAD,CAAC,AA7BD,CAA0B,iBAAS,GA6BlC;AA7BY,oBAAI"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import "../../../index.css";
|
|
3
|
+
interface Props {
|
|
4
|
+
children: any;
|
|
5
|
+
orientation: "row" | "vertical";
|
|
6
|
+
mobileBp?: "sm" | "md" | "lg";
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class Column extends Component<Props> {
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/structure/column/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,WAAW,EAAE,KAAK,GAAG,UAAU,CAAC;IAChC,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,MAAO,SAAQ,SAAS,CAAC,KAAK,CAAC;IAC1C,MAAM;CAiCP"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Column = void 0;
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
require("../../../index.css");
|
|
44
|
+
var Column = /** @class */ (function (_super) {
|
|
45
|
+
__extends(Column, _super);
|
|
46
|
+
function Column() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
Column.prototype.render = function () {
|
|
50
|
+
var className = "flex ";
|
|
51
|
+
//INFO : Dynamic breakpoint variables does not work
|
|
52
|
+
var bp = this.props.mobileBp;
|
|
53
|
+
if (this.props.orientation === "row") {
|
|
54
|
+
if (bp === "sm") {
|
|
55
|
+
className += "flex-col sm:flex-row ";
|
|
56
|
+
}
|
|
57
|
+
else if (bp === "md") {
|
|
58
|
+
className += "flex-col md:flex-row ";
|
|
59
|
+
}
|
|
60
|
+
else if (bp === "lg") {
|
|
61
|
+
className += "flex-col lg:flex-row ";
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
className += "flex-row ";
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
if (bp === "sm") {
|
|
69
|
+
className += "flex-row sm:flex-col ";
|
|
70
|
+
}
|
|
71
|
+
else if (bp === "md") {
|
|
72
|
+
className += "flex-row md:flex-col ";
|
|
73
|
+
}
|
|
74
|
+
else if (bp === "lg") {
|
|
75
|
+
className += "flex-row lg:flex-col ";
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
className += "flex-col ";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (this.props.className) {
|
|
82
|
+
className += this.props.className;
|
|
83
|
+
}
|
|
84
|
+
return react_1.default.createElement("div", { className: className }, this.props.children);
|
|
85
|
+
};
|
|
86
|
+
return Column;
|
|
87
|
+
}(react_1.Component));
|
|
88
|
+
exports.Column = Column;
|
|
89
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/structure/column/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,8BAA4B;AAS5B;IAA4B,0BAAgB;IAA5C;;IAkCA,CAAC;IAjCC,uBAAM,GAAN;QACE,IAAI,SAAS,GAAG,OAAO,CAAC;QAExB,mDAAmD;QACnD,IAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,KAAK,KAAK,EAAE;YACpC,IAAI,EAAE,KAAK,IAAI,EAAE;gBACf,SAAS,IAAI,uBAAuB,CAAC;aACtC;iBAAM,IAAI,EAAE,KAAK,IAAI,EAAE;gBACtB,SAAS,IAAI,uBAAuB,CAAC;aACtC;iBAAM,IAAI,EAAE,KAAK,IAAI,EAAE;gBACtB,SAAS,IAAI,uBAAuB,CAAC;aACtC;iBAAM;gBACL,SAAS,IAAI,WAAW,CAAC;aAC1B;SACF;aAAM;YACL,IAAI,EAAE,KAAK,IAAI,EAAE;gBACf,SAAS,IAAI,uBAAuB,CAAC;aACtC;iBAAM,IAAI,EAAE,KAAK,IAAI,EAAE;gBACtB,SAAS,IAAI,uBAAuB,CAAC;aACtC;iBAAM,IAAI,EAAE,KAAK,IAAI,EAAE;gBACtB,SAAS,IAAI,uBAAuB,CAAC;aACtC;iBAAM;gBACL,SAAS,IAAI,WAAW,CAAC;aAC1B;SACF;QAED,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;YACxB,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;SACnC;QAED,OAAO,uCAAK,SAAS,EAAE,SAAS,IAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAO,CAAC;IAChE,CAAC;IACH,aAAC;AAAD,CAAC,AAlCD,CAA4B,iBAAS,GAkCpC;AAlCY,wBAAM"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import "../../../index.css";
|
|
3
|
+
interface Props {
|
|
4
|
+
children: any;
|
|
5
|
+
bgColor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class Container extends Component<Props> {
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/structure/container/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,SAAU,SAAQ,SAAS,CAAC,KAAK,CAAC;IAC7C,MAAM;CASP"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Container = void 0;
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
require("../../../index.css");
|
|
44
|
+
var Container = /** @class */ (function (_super) {
|
|
45
|
+
__extends(Container, _super);
|
|
46
|
+
function Container() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
Container.prototype.render = function () {
|
|
50
|
+
var _a;
|
|
51
|
+
return (react_1.default.createElement("div", { className: "w-full ".concat((_a = this.props.bgColor) !== null && _a !== void 0 ? _a : "bg-gray-50") },
|
|
52
|
+
react_1.default.createElement("div", { className: "mx-auto max-w-7xl px-4 sm:px-6 lg:px-8" }, this.props.children)));
|
|
53
|
+
};
|
|
54
|
+
return Container;
|
|
55
|
+
}(react_1.Component));
|
|
56
|
+
exports.Container = Container;
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/structure/container/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,8BAA4B;AAO5B;IAA+B,6BAAgB;IAA/C;;IAUA,CAAC;IATC,0BAAM,GAAN;;QACE,OAAO,CACL,uCAAK,SAAS,EAAE,iBAAU,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,mCAAI,YAAY,CAAE;YAC5D,uCAAK,SAAS,EAAC,wCAAwC,IACpD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAChB,CACF,CACP,CAAC;IACJ,CAAC;IACH,gBAAC;AAAD,CAAC,AAVD,CAA+B,iBAAS,GAUvC;AAVY,8BAAS"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import "../../../index.css";
|
|
3
|
+
interface Props {
|
|
4
|
+
children: any;
|
|
5
|
+
bold?: "semibold" | "bold";
|
|
6
|
+
mobile?: boolean;
|
|
7
|
+
color?: "primary" | "secondary" | "pale";
|
|
8
|
+
className?: string;
|
|
9
|
+
size: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
10
|
+
type: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p";
|
|
11
|
+
}
|
|
12
|
+
export declare class Text extends Component<Props> {
|
|
13
|
+
render(): any;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/structure/text/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACjE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC;CACrD;AAED,qBAAa,IAAK,SAAQ,SAAS,CAAC,KAAK,CAAC;IACxC,MAAM;CA4FP"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Text = void 0;
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
require("../../../index.css");
|
|
44
|
+
var Text = /** @class */ (function (_super) {
|
|
45
|
+
__extends(Text, _super);
|
|
46
|
+
function Text() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
Text.prototype.render = function () {
|
|
50
|
+
var className = "";
|
|
51
|
+
var component = "";
|
|
52
|
+
if (this.props.bold) {
|
|
53
|
+
if (this.props.bold === "bold") {
|
|
54
|
+
className = "font-bold ";
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
className = "font-semibold ";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
switch (this.props.size) {
|
|
61
|
+
case "xs":
|
|
62
|
+
className += "text-xs ";
|
|
63
|
+
break;
|
|
64
|
+
case "sm":
|
|
65
|
+
if (this.props.mobile)
|
|
66
|
+
className += "text-xs sm:text-sm ";
|
|
67
|
+
else
|
|
68
|
+
className += "text-sm ";
|
|
69
|
+
break;
|
|
70
|
+
case "base":
|
|
71
|
+
if (this.props.mobile)
|
|
72
|
+
className += "text-sm sm:text-base ";
|
|
73
|
+
else
|
|
74
|
+
className += "text-base ";
|
|
75
|
+
break;
|
|
76
|
+
case "lg":
|
|
77
|
+
if (this.props.mobile)
|
|
78
|
+
className += "text-base sm:text-lg ";
|
|
79
|
+
else
|
|
80
|
+
className += "text-lg ";
|
|
81
|
+
break;
|
|
82
|
+
case "xl":
|
|
83
|
+
if (this.props.mobile)
|
|
84
|
+
className += "text-lg sm:text-xl ";
|
|
85
|
+
else
|
|
86
|
+
className += "text-xl ";
|
|
87
|
+
break;
|
|
88
|
+
case "2xl":
|
|
89
|
+
if (this.props.mobile)
|
|
90
|
+
className += "text-xl sm:text-2xl ";
|
|
91
|
+
else
|
|
92
|
+
className += "text-2xl ";
|
|
93
|
+
break;
|
|
94
|
+
case "3xl":
|
|
95
|
+
if (this.props.mobile)
|
|
96
|
+
className += "text-2xl sm:text-3xl ";
|
|
97
|
+
else
|
|
98
|
+
className += "text-3xl ";
|
|
99
|
+
break;
|
|
100
|
+
case "4xl":
|
|
101
|
+
if (this.props.mobile)
|
|
102
|
+
className += "text-3xl sm:text-4xl ";
|
|
103
|
+
else
|
|
104
|
+
className += "text-4xl ";
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
//INFO : Default text-gray-700
|
|
108
|
+
if (this.props.color) {
|
|
109
|
+
switch (this.props.color) {
|
|
110
|
+
case "pale":
|
|
111
|
+
className += "text-gray-700 ";
|
|
112
|
+
break;
|
|
113
|
+
case "primary":
|
|
114
|
+
className += "text-primary-600 ";
|
|
115
|
+
break;
|
|
116
|
+
case "secondary":
|
|
117
|
+
className += "text-secondary-600 ";
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (this.props.className) {
|
|
122
|
+
className += this.props.className;
|
|
123
|
+
}
|
|
124
|
+
var title = this.props.children;
|
|
125
|
+
switch (this.props.type) {
|
|
126
|
+
case "h1":
|
|
127
|
+
component = react_1.default.createElement("h1", { className: className }, title);
|
|
128
|
+
break;
|
|
129
|
+
case "h2":
|
|
130
|
+
component = react_1.default.createElement("h2", { className: className }, title);
|
|
131
|
+
break;
|
|
132
|
+
case "h3":
|
|
133
|
+
component = react_1.default.createElement("h3", { className: className }, title);
|
|
134
|
+
break;
|
|
135
|
+
case "h4":
|
|
136
|
+
component = react_1.default.createElement("h4", { className: className }, title);
|
|
137
|
+
break;
|
|
138
|
+
case "h5":
|
|
139
|
+
component = react_1.default.createElement("h5", { className: className }, title);
|
|
140
|
+
break;
|
|
141
|
+
case "h6":
|
|
142
|
+
component = react_1.default.createElement("h6", { className: className }, title);
|
|
143
|
+
break;
|
|
144
|
+
case "p":
|
|
145
|
+
component = react_1.default.createElement("p", { className: className }, title);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
return component;
|
|
149
|
+
};
|
|
150
|
+
return Text;
|
|
151
|
+
}(react_1.Component));
|
|
152
|
+
exports.Text = Text;
|
|
153
|
+
//# sourceMappingURL=index.js.map
|