@appcorp/app-corp-vista 0.0.45 → 0.0.48
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/molecules/vista-dashboard-setting-section-v1/vista-dashboard-setting-section-v1.d.ts +3 -0
- package/molecules/vista-dashboard-setting-section-v1/vista-dashboard-setting-section-v1.js +17 -0
- package/molecules/vista-dashboard-sidebar-v1/vista-dashboard-sidebar-v1.js +1 -1
- package/molecules/vista-dashboard-topbar-v1/vista-dashboard-topbar-v1.js +1 -1
- package/molecules/vista-modal-v1/vista-modal-v1.js +1 -1
- package/organisms/vista-dashboard-setting-v1/vista-dashboard-setting-v1.d.ts +3 -0
- package/organisms/vista-dashboard-setting-v1/vista-dashboard-setting-v1.js +23 -0
- package/package.json +1 -1
- package/type/vista-dashboard-setting-section-type.d.ts +6 -0
- package/type/vista-dashboard-setting-section-type.js +2 -0
- package/type/vista-dashboard-setting-type.d.ts +16 -0
- package/type/vista-dashboard-setting-type.js +2 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VistaDashboardSettingSectionV1 = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var VistaDashboardSettingSectionV1 = function (_a) {
|
|
9
|
+
var children = _a.children, description = _a.description, title = _a.title;
|
|
10
|
+
return (react_1.default.createElement("div", { className: "divide-y divide-white/5" },
|
|
11
|
+
react_1.default.createElement("div", { className: "grid max-w-7xl grid-cols-1 gap-x-8 gap-y-10 px-4 py-16 sm:px-6 md:grid-cols-3 lg:px-8" },
|
|
12
|
+
react_1.default.createElement("div", null,
|
|
13
|
+
react_1.default.createElement("h2", { className: "text-base/7 font-semibold text-white" }, title),
|
|
14
|
+
react_1.default.createElement("p", { className: "mt-1 text-sm/6 text-gray-400" }, description)),
|
|
15
|
+
react_1.default.createElement("div", { className: "md:col-span-2" }, children))));
|
|
16
|
+
};
|
|
17
|
+
exports.VistaDashboardSettingSectionV1 = VistaDashboardSettingSectionV1;
|
|
@@ -89,7 +89,7 @@ var VistaDashboardSidebarV1 = function (_a) {
|
|
|
89
89
|
react_1.default.createElement("li", { className: "-mx-6 mt-auto" },
|
|
90
90
|
react_1.default.createElement("div", { className: 'flex justify-center items-center text-gray-900 dark:text-white w-full p-4 text-xs ' },
|
|
91
91
|
react_1.default.createElement("p", null,
|
|
92
|
-
"
|
|
92
|
+
"our Tech Partners",
|
|
93
93
|
react_1.default.createElement("a", { href: 'https://appcorp.org', target: '_blank', className: 'hover:text-primary' }, " App Corp \uD83D\uDE80"))))))));
|
|
94
94
|
};
|
|
95
95
|
exports.VistaDashboardSidebarV1 = VistaDashboardSidebarV1;
|
|
@@ -17,7 +17,7 @@ var VistaDashboardTopBarV1 = function (_a) {
|
|
|
17
17
|
return (react_1.default.createElement("div", { className: "sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-6 border-b border-black/10 bg-gray-100 dark:bg-gray-900 px-4 shadow-sm sm:px-6 lg:px-8" },
|
|
18
18
|
react_1.default.createElement("button", { type: "button", onClick: function () { return handleOnClick(true); }, className: "-m-2.5 p-2.5 text-white xl:hidden" },
|
|
19
19
|
react_1.default.createElement("span", { className: "sr-only" }, "Open sidebar"),
|
|
20
|
-
react_1.default.createElement(solid_1.Bars3Icon, { "aria-hidden": "true", className: "size-5" })),
|
|
20
|
+
react_1.default.createElement(solid_1.Bars3Icon, { "aria-hidden": "true", className: "size-5 text-gray-900 dark:text-white" })),
|
|
21
21
|
react_1.default.createElement("div", { className: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" },
|
|
22
22
|
react_1.default.createElement("label", { htmlFor: "search-field", className: "sr-only" }, "Search"),
|
|
23
23
|
react_1.default.createElement("div", { className: "relative w-full" },
|
|
@@ -17,7 +17,7 @@ var vistaModalSizeMap = (_a = {},
|
|
|
17
17
|
_a[vista_modal_type_1.VISTA_MODAL_SIZE.XL] = 'md:max-w-6xl md:min-w-6xl md:max-h-[calc(100vh-100px)]',
|
|
18
18
|
_a);
|
|
19
19
|
var VistaModalV1 = function (_a) {
|
|
20
|
-
var _b = _a.cancelDisabled, cancelDisabled = _b === void 0 ? false : _b, cancelLabel = _a.cancelLabel, cancelPrefixIcon = _a.cancelPrefixIcon, _c = _a.cancelRounded, cancelRounded = _c === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _c, _d = _a.cancelSize, cancelSize = _d === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.MD : _d, cancelSuffixIcon = _a.cancelSuffixIcon, children = _a.children, handleCancelOnClick = _a.handleCancelOnClick, handleSaveOnClick = _a.handleSaveOnClick, handleSetIsOpen = _a.handleSetIsOpen, isOpen = _a.isOpen, _e = _a.saveDisabled, saveDisabled = _e === void 0 ? false : _e, saveLabel = _a.saveLabel, savePrefixIcon = _a.savePrefixIcon, _f = _a.saveRounded, saveRounded = _f === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _f, _g = _a.saveSize, saveSize = _g === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.MD : _g, saveSuffixIcon = _a.saveSuffixIcon, _h = _a.size, size = _h === void 0 ? vista_modal_type_1.VISTA_MODAL_SIZE.MD : _h, title = _a.title
|
|
20
|
+
var _b = _a.cancelDisabled, cancelDisabled = _b === void 0 ? false : _b, cancelLabel = _a.cancelLabel, cancelPrefixIcon = _a.cancelPrefixIcon, _c = _a.cancelRounded, cancelRounded = _c === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _c, _d = _a.cancelSize, cancelSize = _d === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.MD : _d, cancelSuffixIcon = _a.cancelSuffixIcon, children = _a.children, handleCancelOnClick = _a.handleCancelOnClick, handleSaveOnClick = _a.handleSaveOnClick, handleSetIsOpen = _a.handleSetIsOpen, isOpen = _a.isOpen, mainIcon = _a.mainIcon, _e = _a.saveDisabled, saveDisabled = _e === void 0 ? false : _e, saveLabel = _a.saveLabel, savePrefixIcon = _a.savePrefixIcon, _f = _a.saveRounded, saveRounded = _f === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _f, _g = _a.saveSize, saveSize = _g === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.MD : _g, saveSuffixIcon = _a.saveSuffixIcon, _h = _a.size, size = _h === void 0 ? vista_modal_type_1.VISTA_MODAL_SIZE.MD : _h, title = _a.title;
|
|
21
21
|
return (react_1.default.createElement(react_2.Dialog, { open: isOpen, onClose: handleSetIsOpen, className: "relative z-10" },
|
|
22
22
|
react_1.default.createElement(react_2.DialogBackdrop, { transition: true, className: "fixed inset-0 bg-gray-500/75 transition-opacity data-[closed]:opacity-0 data-[enter]:duration-300 data-[leave]:duration-200 data-[enter]:ease-out data-[leave]:ease-in" }),
|
|
23
23
|
react_1.default.createElement("div", { className: "fixed inset-0 z-10 w-screen overflow-y-auto" },
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.VistaDashboardSettingV1 = void 0;
|
|
8
|
+
var react_1 = __importDefault(require("react"));
|
|
9
|
+
var vista_dashboard_header_v1_1 = require("../vista-dashboard-header-v1/vista-dashboard-header-v1");
|
|
10
|
+
var vista_dashboard_setting_section_v1_1 = require("../../molecules/vista-dashboard-setting-section-v1/vista-dashboard-setting-section-v1");
|
|
11
|
+
var VistaDashboardSettingV1 = function (_a) {
|
|
12
|
+
var activeTab = _a.activeTab, activeTabComponentMap = _a.activeTabComponentMap, headerTabs = _a.headerTabs, heading = _a.heading;
|
|
13
|
+
return (react_1.default.createElement("div", null,
|
|
14
|
+
react_1.default.createElement(vista_dashboard_header_v1_1.VistaDashboardHeaderV1, { heading: heading, items: headerTabs }),
|
|
15
|
+
activeTabComponentMap[activeTab].map(function (_a) {
|
|
16
|
+
var title = _a.title, description = _a.description, component = _a.component;
|
|
17
|
+
return (react_1.default.createElement(vista_dashboard_setting_section_v1_1.VistaDashboardSettingSectionV1, { key: title, title: title, description: description }, component));
|
|
18
|
+
}),
|
|
19
|
+
react_1.default.createElement(vista_dashboard_setting_section_v1_1.VistaDashboardSettingSectionV1, { title: "Delete account", description: "No longer want to use our services? You can delete your account here. This action is not reversible." },
|
|
20
|
+
react_1.default.createElement("div", { className: "flex items-start md:col-span-2" },
|
|
21
|
+
react_1.default.createElement("button", { type: "submit", className: "rounded-md bg-red-500 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-400" }, "Yes, delete my account")))));
|
|
22
|
+
};
|
|
23
|
+
exports.VistaDashboardSettingV1 = VistaDashboardSettingV1;
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { VistaDashboardTabNavigatorListItem } from "./vista-dashboard-tab-navigator-type";
|
|
3
|
+
export interface VistaDashboardActiveComponentMapItemProps {
|
|
4
|
+
component: ReactNode;
|
|
5
|
+
description: string;
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export interface VistaDashboardHeaderTabV1Props {
|
|
9
|
+
[key: string]: VistaDashboardActiveComponentMapItemProps[];
|
|
10
|
+
}
|
|
11
|
+
export interface VistaDashboardSettingV1Props {
|
|
12
|
+
activeTab: string;
|
|
13
|
+
activeTabComponentMap: VistaDashboardHeaderTabV1Props;
|
|
14
|
+
headerTabs: VistaDashboardTabNavigatorListItem[];
|
|
15
|
+
heading: string;
|
|
16
|
+
}
|