@appcorp/app-corp-vista 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -0
- package/emails/app-appointment.d.ts +18 -0
- package/emails/app-appointment.js +100 -0
- package/emails/app-contact.d.ts +19 -0
- package/emails/app-contact.js +99 -0
- package/emails/app-newsletter.d.ts +2 -0
- package/emails/app-newsletter.js +28 -0
- package/index.d.ts +0 -0
- package/index.js +0 -0
- package/molecules/vista-avatar-v1.d.ts +18 -0
- package/molecules/vista-avatar-v1.js +50 -0
- package/molecules/vista-avatar-v2.d.ts +3 -0
- package/molecules/vista-avatar-v2.js +18 -0
- package/molecules/vista-checkbox-v1.d.ts +3 -0
- package/molecules/vista-checkbox-v1.js +22 -0
- package/molecules/vista-checkbox-v2.d.ts +3 -0
- package/molecules/vista-checkbox-v2.js +25 -0
- package/molecules/vista-checkbox-v3.d.ts +3 -0
- package/molecules/vista-checkbox-v3.js +22 -0
- package/molecules/vista-drawer-v1.d.ts +3 -0
- package/molecules/vista-drawer-v1.js +37 -0
- package/molecules/vista-stacked-avatar-v1.d.ts +3 -0
- package/molecules/vista-stacked-avatar-v1.js +23 -0
- package/molecules/vista-stats-v1.d.ts +3 -0
- package/molecules/vista-stats-v1.js +25 -0
- package/molecules/vista-stats-v2.d.ts +3 -0
- package/molecules/vista-stats-v2.js +27 -0
- package/molecules/vista-stats-v3.d.ts +3 -0
- package/molecules/vista-stats-v3.js +19 -0
- package/molecules/vista-stats-v4.d.ts +3 -0
- package/molecules/vista-stats-v4.js +78 -0
- package/molecules/vista-stats-v5.d.ts +3 -0
- package/molecules/vista-stats-v5.js +39 -0
- package/molecules/vista-toggle-v1.d.ts +3 -0
- package/molecules/vista-toggle-v1.js +16 -0
- package/molecules/vista-toggle-v2.d.ts +3 -0
- package/molecules/vista-toggle-v2.js +18 -0
- package/molecules/vista-toggle-v3.d.ts +3 -0
- package/molecules/vista-toggle-v3.js +22 -0
- package/molecules/vista-toggle-v4.d.ts +3 -0
- package/molecules/vista-toggle-v4.js +19 -0
- package/molecules/vista-toggle-v5.d.ts +3 -0
- package/molecules/vista-toggle-v5.js +20 -0
- package/molecules/vista-vertical-divider-v1.d.ts +3 -0
- package/molecules/vista-vertical-divider-v1.js +16 -0
- package/molecules/vista-vertical-divider-v2.d.ts +3 -0
- package/molecules/vista-vertical-divider-v2.js +48 -0
- package/molecules/vista-vertical-divider-v3.d.ts +3 -0
- package/molecules/vista-vertical-divider-v3.js +16 -0
- package/molecules/vista-vertical-divider-v4.d.ts +3 -0
- package/molecules/vista-vertical-divider-v4.js +16 -0
- package/molecules/vista-vertical-divider-v5.d.ts +3 -0
- package/molecules/vista-vertical-divider-v5.js +16 -0
- package/molecules/vista-vertical-divider-v6.d.ts +3 -0
- package/molecules/vista-vertical-divider-v6.js +51 -0
- package/molecules/vista-vertical-divider-v7.d.ts +3 -0
- package/molecules/vista-vertical-divider-v7.js +52 -0
- package/molecules/vista-vertical-divider-v8.d.ts +3 -0
- package/molecules/vista-vertical-divider-v8.js +60 -0
- package/organisms/vista-comboboxes/vista-comboboxes-v1.d.ts +3 -0
- package/organisms/vista-comboboxes/vista-comboboxes-v1.js +59 -0
- package/package.json +95 -0
- package/type/vista-avatar-type.d.ts +44 -0
- package/type/vista-avatar-type.js +29 -0
- package/type/vista-checkbox-type.d.ts +20 -0
- package/type/vista-checkbox-type.js +2 -0
- package/type/vista-comboboxes-type.d.ts +21 -0
- package/type/vista-comboboxes-type.js +2 -0
- package/type/vista-drawer-type.d.ts +12 -0
- package/type/vista-drawer-type.js +2 -0
- package/type/vista-stacked-avatar-type.d.ts +12 -0
- package/type/vista-stacked-avatar-type.js +2 -0
- package/type/vista-stats-type.d.ts +56 -0
- package/type/vista-stats-type.js +2 -0
- package/type/vista-toggle-type.d.ts +24 -0
- package/type/vista-toggle-type.js +2 -0
- package/type/vista-vertical-divider-type.d.ts +49 -0
- package/type/vista-vertical-divider-type.js +2 -0
- package/utils/class-names.d.ts +1 -0
- package/utils/class-names.js +11 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.VistaVerticalDividerV8 = void 0;
|
|
37
|
+
var react_1 = __importStar(require("react"));
|
|
38
|
+
var VistaVerticalDividerV8 = function (_a) {
|
|
39
|
+
var icons = _a.icons;
|
|
40
|
+
return (react_1.default.createElement("div", { className: "relative" },
|
|
41
|
+
react_1.default.createElement("div", { "aria-hidden": "true", className: "absolute inset-0 flex items-center" },
|
|
42
|
+
react_1.default.createElement("div", { className: "w-full border-t border-gray-300" })),
|
|
43
|
+
react_1.default.createElement("div", { className: "relative flex justify-center" },
|
|
44
|
+
react_1.default.createElement("span", { className: "isolate inline-flex -space-x-px rounded-md shadow-sm" }, icons
|
|
45
|
+
.sort(function (a, b) { return a.order - b.order; })
|
|
46
|
+
.filter(function (_a) {
|
|
47
|
+
var enabled = _a.enabled;
|
|
48
|
+
return enabled;
|
|
49
|
+
})
|
|
50
|
+
.map(function (_a, ind) {
|
|
51
|
+
var id = _a.id, icon = _a.icon, handleOnClick = _a.handleOnClick, label = _a.label;
|
|
52
|
+
return (react_1.default.createElement("button", { className: "relative inline-flex items-center bg-white px-3 py-2 text-gray-400 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 ".concat(ind === 0 && 'rounded-l-md', " ").concat(ind === icons.length - 1 && 'rounded-r-md'), key: id, type: "button", onClick: handleOnClick },
|
|
53
|
+
react_1.default.createElement("span", { className: "sr-only" }, label),
|
|
54
|
+
(0, react_1.createElement)(icon, {
|
|
55
|
+
'aria-hidden': true,
|
|
56
|
+
className: 'size-5',
|
|
57
|
+
})));
|
|
58
|
+
})))));
|
|
59
|
+
};
|
|
60
|
+
exports.VistaVerticalDividerV8 = VistaVerticalDividerV8;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.VistaComboboxesV1 = void 0;
|
|
38
|
+
var react_1 = __importStar(require("react"));
|
|
39
|
+
var react_2 = require("@headlessui/react");
|
|
40
|
+
var solid_1 = require("@heroicons/react/20/solid");
|
|
41
|
+
var VistaComboboxesV1 = function (_a) {
|
|
42
|
+
var checkClassName = _a.checkClassName, comboboxButtonClassName = _a.comboboxButtonClassName, comboboxClassName = _a.comboboxClassName, comboboxInputClassName = _a.comboboxInputClassName, comboboxOptionClassName = _a.comboboxOptionClassName, comboboxOptionsClassName = _a.comboboxOptionsClassName, handleInputOnChange = _a.handleInputOnChange, handleOnBlur = _a.handleOnBlur, handleOnChange = _a.handleOnChange, inputIconClassName = _a.inputIconClassName, label = _a.label, labelClassName = _a.labelClassName, listItems = _a.listItems, nodeQueryKey = _a.nodeQueryKey, nodeSelectKey = _a.nodeSelectKey, query = _a.query, selectKey1 = _a.selectKey1, selectedItem = _a.selectedItem, placeholder = _a.placeholder;
|
|
43
|
+
var filteredList = (0, react_1.useMemo)(function () {
|
|
44
|
+
return query === ''
|
|
45
|
+
? listItems
|
|
46
|
+
: listItems.filter(function (item) { var _a; return (_a = item[selectKey1]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(query.toLowerCase()); });
|
|
47
|
+
}, [listItems, query, selectKey1]);
|
|
48
|
+
return (react_1.default.createElement(react_2.Combobox, { as: "div", className: "".concat(comboboxClassName), onChange: function (v) { return handleOnChange(nodeSelectKey, v); }, value: selectedItem },
|
|
49
|
+
react_1.default.createElement(react_2.Label, { className: "block text-sm/6 font-medium text-gray-900 dark:text-white ".concat(labelClassName) }, label),
|
|
50
|
+
react_1.default.createElement("div", { className: "relative mt-2" },
|
|
51
|
+
react_1.default.createElement(react_2.ComboboxInput, { className: "block w-full rounded-md bg-white dark:bg-gray-800 py-1.5 pl-3 pr-10 text-gray-800 dark:text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6 placeholder-gray-500 ".concat(comboboxInputClassName), onChange: function (e) { return handleInputOnChange(nodeQueryKey, e.target.value); }, onBlur: function (e) { return handleOnBlur(nodeQueryKey, e.target.value); }, placeholder: placeholder }),
|
|
52
|
+
react_1.default.createElement(react_2.ComboboxButton, { className: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none ".concat(comboboxButtonClassName) },
|
|
53
|
+
react_1.default.createElement(solid_1.ChevronUpDownIcon, { className: "size-5 text-gray-800 dark:text-white ".concat(inputIconClassName), "aria-hidden": "true" })),
|
|
54
|
+
(filteredList === null || filteredList === void 0 ? void 0 : filteredList.length) > 0 && (react_1.default.createElement(react_2.ComboboxOptions, { className: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white dark:bg-gray-800 py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm ".concat(comboboxOptionsClassName) }, filteredList.map(function (item) { return (react_1.default.createElement(react_2.ComboboxOption, { className: "group relative cursor-default select-none py-2 pl-3 pr-9 text-gray-800 dark:text-white data-[focus]:bg-indigo-600 data-[focus]:text-white data-[focus]:outline-none ".concat(comboboxOptionClassName), key: item[selectKey1] || item, value: item[selectKey1] || item },
|
|
55
|
+
react_1.default.createElement("span", { className: "block truncate group-data-[selected]:font-semibold" }, item[selectKey1] || item),
|
|
56
|
+
react_1.default.createElement("span", { className: "absolute inset-y-0 right-0 hidden items-center pr-4 text-indigo-600 group-data-[selected]:flex group-data-[focus]:text-white ".concat(checkClassName) },
|
|
57
|
+
react_1.default.createElement(solid_1.CheckIcon, { className: "size-5", "aria-hidden": "true" })))); }))))));
|
|
58
|
+
};
|
|
59
|
+
exports.VistaComboboxesV1 = VistaComboboxesV1;
|
package/package.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@appcorp/app-corp-vista",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
|
|
6
|
+
"build:next": "next build",
|
|
7
|
+
"build:storybook": "storybook build -c .storybook -o .out",
|
|
8
|
+
"build:ts": "tsc --project tsconfig.build.json",
|
|
9
|
+
"clean": "yarn rimraf ./lib",
|
|
10
|
+
"copy:deploy:files": "cp favicon.ico ./.out/ && cp assets/react-pakistan.jpeg ./.out/",
|
|
11
|
+
"deploy:storybook": "concurrently \"yarn storybook:ghpages\" \"sleep 15 && rm ./*out*/favicon.ico && yarn copy:deploy:files\"",
|
|
12
|
+
"deploy:storybook:ci": "concurrently \"yarn storybook:ghpages:ci\" \"sleep 15 && rm ./*out*/favicon.ico && yarn copy:deploy:files\"",
|
|
13
|
+
"dev": "next dev",
|
|
14
|
+
"dev:email": "email dev --dir ./src/emails",
|
|
15
|
+
"extract": "yarn build:storybook && npx sb extract ./.out && cp ./.out/stories.json . && rm -rf ./.out",
|
|
16
|
+
"generate:sitemap": "scripts/generate-sitemap.sh",
|
|
17
|
+
"lint": "next lint",
|
|
18
|
+
"major": "npm version major",
|
|
19
|
+
"minor": "npm version minor",
|
|
20
|
+
"patch": "npm version patch",
|
|
21
|
+
"prepare": "husky",
|
|
22
|
+
"publish:npm": "yarn build && cd lib/ && npm publish --access public && cd ..",
|
|
23
|
+
"start": "next start",
|
|
24
|
+
"storybook": "concurrently 'yarn:watch:*'",
|
|
25
|
+
"upgrade": "ncu -u",
|
|
26
|
+
"watch:storybook": "storybook dev -p 9001",
|
|
27
|
+
"watch:tailwind": "npx tailwindcss -i src/styles/globals.css -o src/styles/tailwind-output.css --watch"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
32
|
+
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
33
|
+
"@headlessui/react": "^2.2.0",
|
|
34
|
+
"@headlessui/tailwindcss": "^0.2.1",
|
|
35
|
+
"@heroicons/react": "^2.2.0",
|
|
36
|
+
"@mdx-js/loader": "^3.1.0",
|
|
37
|
+
"@mdx-js/react": "^3.1.0",
|
|
38
|
+
"@mdxeditor/editor": "^3.20.0",
|
|
39
|
+
"@next/third-parties": "^15.1.2",
|
|
40
|
+
"@react-email/components": "^0.0.31",
|
|
41
|
+
"@react-jvectormap/core": "^1.0.4",
|
|
42
|
+
"@react-jvectormap/world": "^1.1.2",
|
|
43
|
+
"@react-pakistan/react-icon-collection": "^3.5.0",
|
|
44
|
+
"@react-pakistan/util-functions": "^1.23.34",
|
|
45
|
+
"@remixicon/react": "^4.6.0",
|
|
46
|
+
"@storybook/addon-essentials": "8.4.7",
|
|
47
|
+
"@storybook/addon-interactions": "8.4.7",
|
|
48
|
+
"@storybook/addon-links": "8.4.7",
|
|
49
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
50
|
+
"@storybook/blocks": "8.4.7",
|
|
51
|
+
"@storybook/nextjs": "8.4.7",
|
|
52
|
+
"@storybook/react": "8.4.7",
|
|
53
|
+
"@storybook/test": "8.4.7",
|
|
54
|
+
"@storybook/types": "8.4.7",
|
|
55
|
+
"@tailwindcss/forms": "^0.5.9",
|
|
56
|
+
"@tremor/react": "^3.18.6",
|
|
57
|
+
"@types/node": "^22",
|
|
58
|
+
"@types/react": "^19",
|
|
59
|
+
"@types/react-day-picker": "^5.3.0",
|
|
60
|
+
"@types/react-dom": "^19",
|
|
61
|
+
"apexcharts": "^4.3.0",
|
|
62
|
+
"autoprefixer": "^10.4.20",
|
|
63
|
+
"clsx": "^2.1.1",
|
|
64
|
+
"concurrently": "^9.1.0",
|
|
65
|
+
"eslint": "^9",
|
|
66
|
+
"eslint-config-next": "15.1.2",
|
|
67
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
68
|
+
"fast-glob": "^3.3.2",
|
|
69
|
+
"framer-motion": "^11.15.0",
|
|
70
|
+
"husky": "^9.1.7",
|
|
71
|
+
"next": "^15.1.2",
|
|
72
|
+
"next-intl": "^3.26.3",
|
|
73
|
+
"postcss": "^8",
|
|
74
|
+
"react": "^19.0.0",
|
|
75
|
+
"react-apexcharts": "^1.7.0",
|
|
76
|
+
"react-before-after-slider-component": "^1.1.8",
|
|
77
|
+
"react-day-picker": "^8.10.1",
|
|
78
|
+
"react-dom": "^19.0.0",
|
|
79
|
+
"react-email": "^3.0.4",
|
|
80
|
+
"react-hook-form": "^7.54.2",
|
|
81
|
+
"react-select": "^5.9.0",
|
|
82
|
+
"storybook": "8.4.7",
|
|
83
|
+
"swr": "^2.2.5",
|
|
84
|
+
"tailwindcss": "^3.4.17",
|
|
85
|
+
"tailwindcss-animate": "^1.0.7",
|
|
86
|
+
"typescript": "^5"
|
|
87
|
+
},
|
|
88
|
+
"resolutions": {
|
|
89
|
+
"jackspeak": "2.1.1"
|
|
90
|
+
},
|
|
91
|
+
"engines": {
|
|
92
|
+
"npm": ">=10.0.0",
|
|
93
|
+
"node": ">=20.0.0"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare enum VISTA_AVATAR_SIZES {
|
|
2
|
+
XS = "XS",
|
|
3
|
+
SM = "SM",
|
|
4
|
+
MD = "MD",
|
|
5
|
+
LG = "LG",
|
|
6
|
+
XL = "XL"
|
|
7
|
+
}
|
|
8
|
+
export declare enum VISTA_AVATAR_ROUNDED {
|
|
9
|
+
FULL = "rounded-full",
|
|
10
|
+
MD = "rounded-md"
|
|
11
|
+
}
|
|
12
|
+
export declare enum VISTA_AVATAR_STATUS {
|
|
13
|
+
AWAY = "AWAY",
|
|
14
|
+
OFFLINE = "OFFLINE",
|
|
15
|
+
ONLINE = "ONLINE"
|
|
16
|
+
}
|
|
17
|
+
export declare enum VISTA_STATUS_POSITION {
|
|
18
|
+
TOP_LEFT = "TOP_LEFT",
|
|
19
|
+
TOP_RIGHT = "TOP_RIGHT",
|
|
20
|
+
BOTTOM_LEFT = "BOTTOM_LEFT",
|
|
21
|
+
BOTTOM_RIGHT = "BOTTOM_RIGHT"
|
|
22
|
+
}
|
|
23
|
+
export interface VistaAvatarV1Props {
|
|
24
|
+
alt: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
initial?: string;
|
|
27
|
+
rounded?: VISTA_AVATAR_ROUNDED;
|
|
28
|
+
size?: VISTA_AVATAR_SIZES;
|
|
29
|
+
src?: string;
|
|
30
|
+
status?: VISTA_AVATAR_STATUS;
|
|
31
|
+
statusPosition?: VISTA_STATUS_POSITION;
|
|
32
|
+
}
|
|
33
|
+
export interface VistaAvatarV2Props {
|
|
34
|
+
alt: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
initial?: string;
|
|
37
|
+
name: string;
|
|
38
|
+
rounded: VISTA_AVATAR_ROUNDED;
|
|
39
|
+
size: VISTA_AVATAR_SIZES;
|
|
40
|
+
src?: string;
|
|
41
|
+
status?: VISTA_AVATAR_STATUS;
|
|
42
|
+
statusPosition?: VISTA_STATUS_POSITION;
|
|
43
|
+
subTitle: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VISTA_STATUS_POSITION = exports.VISTA_AVATAR_STATUS = exports.VISTA_AVATAR_ROUNDED = exports.VISTA_AVATAR_SIZES = void 0;
|
|
4
|
+
var VISTA_AVATAR_SIZES;
|
|
5
|
+
(function (VISTA_AVATAR_SIZES) {
|
|
6
|
+
VISTA_AVATAR_SIZES["XS"] = "XS";
|
|
7
|
+
VISTA_AVATAR_SIZES["SM"] = "SM";
|
|
8
|
+
VISTA_AVATAR_SIZES["MD"] = "MD";
|
|
9
|
+
VISTA_AVATAR_SIZES["LG"] = "LG";
|
|
10
|
+
VISTA_AVATAR_SIZES["XL"] = "XL";
|
|
11
|
+
})(VISTA_AVATAR_SIZES || (exports.VISTA_AVATAR_SIZES = VISTA_AVATAR_SIZES = {}));
|
|
12
|
+
var VISTA_AVATAR_ROUNDED;
|
|
13
|
+
(function (VISTA_AVATAR_ROUNDED) {
|
|
14
|
+
VISTA_AVATAR_ROUNDED["FULL"] = "rounded-full";
|
|
15
|
+
VISTA_AVATAR_ROUNDED["MD"] = "rounded-md";
|
|
16
|
+
})(VISTA_AVATAR_ROUNDED || (exports.VISTA_AVATAR_ROUNDED = VISTA_AVATAR_ROUNDED = {}));
|
|
17
|
+
var VISTA_AVATAR_STATUS;
|
|
18
|
+
(function (VISTA_AVATAR_STATUS) {
|
|
19
|
+
VISTA_AVATAR_STATUS["AWAY"] = "AWAY";
|
|
20
|
+
VISTA_AVATAR_STATUS["OFFLINE"] = "OFFLINE";
|
|
21
|
+
VISTA_AVATAR_STATUS["ONLINE"] = "ONLINE";
|
|
22
|
+
})(VISTA_AVATAR_STATUS || (exports.VISTA_AVATAR_STATUS = VISTA_AVATAR_STATUS = {}));
|
|
23
|
+
var VISTA_STATUS_POSITION;
|
|
24
|
+
(function (VISTA_STATUS_POSITION) {
|
|
25
|
+
VISTA_STATUS_POSITION["TOP_LEFT"] = "TOP_LEFT";
|
|
26
|
+
VISTA_STATUS_POSITION["TOP_RIGHT"] = "TOP_RIGHT";
|
|
27
|
+
VISTA_STATUS_POSITION["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
28
|
+
VISTA_STATUS_POSITION["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
29
|
+
})(VISTA_STATUS_POSITION || (exports.VISTA_STATUS_POSITION = VISTA_STATUS_POSITION = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChangeEvent } from "react";
|
|
2
|
+
export interface VistaCheckboxV1Props {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
description: string;
|
|
5
|
+
handleOnChange: (k: string, v: boolean) => void;
|
|
6
|
+
heading: string;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface VistaCheckboxV2Props {
|
|
10
|
+
description: string;
|
|
11
|
+
heading: string;
|
|
12
|
+
id: string;
|
|
13
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface VistaCheckboxV3Props {
|
|
16
|
+
description?: string;
|
|
17
|
+
heading: string;
|
|
18
|
+
id: string;
|
|
19
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface VistaComboboxesV1Props {
|
|
2
|
+
handleInputOnChange: (k: string, v: string) => void;
|
|
3
|
+
handleOnBlur: (k: string, v: string) => void;
|
|
4
|
+
handleOnChange: (k: string, v: string) => void;
|
|
5
|
+
label: string;
|
|
6
|
+
listItems: any[];
|
|
7
|
+
nodeQueryKey: string;
|
|
8
|
+
nodeSelectKey: string;
|
|
9
|
+
query: string;
|
|
10
|
+
selectKey1: string;
|
|
11
|
+
selectedItem: any;
|
|
12
|
+
labelClassName?: string;
|
|
13
|
+
comboboxClassName?: string;
|
|
14
|
+
comboboxInputClassName?: string;
|
|
15
|
+
comboboxButtonClassName?: string;
|
|
16
|
+
comboboxOptionsClassName?: string;
|
|
17
|
+
comboboxOptionClassName?: string;
|
|
18
|
+
checkClassName?: string;
|
|
19
|
+
inputIconClassName?: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface VistaDrawerV1Props {
|
|
3
|
+
cancelTitle: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
description?: string;
|
|
6
|
+
handleCancelOnClick: (b: boolean) => void;
|
|
7
|
+
handleSaveOnClick?: () => void;
|
|
8
|
+
handleSetIsOpen: (b: boolean) => void;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
saveTitle?: string;
|
|
11
|
+
title: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VISTA_AVATAR_SIZES } from "./vista-avatar-type";
|
|
2
|
+
export interface VistaStackedAvatarItem {
|
|
3
|
+
alt: string;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
id: string;
|
|
6
|
+
order: number;
|
|
7
|
+
src: string;
|
|
8
|
+
}
|
|
9
|
+
export interface VistaStackedAvatarV1Props {
|
|
10
|
+
avatars: VistaStackedAvatarItem[];
|
|
11
|
+
size: VISTA_AVATAR_SIZES;
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { JSXElementConstructor } from "react";
|
|
2
|
+
export interface VistaStatItemV1 {
|
|
3
|
+
change: string;
|
|
4
|
+
changeType: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
order: number;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface VistaStatItemV2 {
|
|
11
|
+
enabled: true;
|
|
12
|
+
name: string;
|
|
13
|
+
order: number;
|
|
14
|
+
unit?: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
17
|
+
export interface VistaStatItemV3 {
|
|
18
|
+
enabled: true;
|
|
19
|
+
name: string;
|
|
20
|
+
order: number;
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
23
|
+
export interface VistaStatItemV4 {
|
|
24
|
+
change: string;
|
|
25
|
+
changeType: string;
|
|
26
|
+
enabled: true;
|
|
27
|
+
icon: JSXElementConstructor<any>;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
order: number;
|
|
31
|
+
stat: string;
|
|
32
|
+
}
|
|
33
|
+
export interface VistaStatItemV5 {
|
|
34
|
+
change: string;
|
|
35
|
+
changeType: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
name: string;
|
|
38
|
+
order: number;
|
|
39
|
+
previousStat: string;
|
|
40
|
+
stat: string;
|
|
41
|
+
}
|
|
42
|
+
export interface VistaStatsV1Props {
|
|
43
|
+
items: VistaStatItemV1[];
|
|
44
|
+
}
|
|
45
|
+
export interface VistaStatsV2Props {
|
|
46
|
+
items: VistaStatItemV2[];
|
|
47
|
+
}
|
|
48
|
+
export interface VistaStatsV3Props {
|
|
49
|
+
items: VistaStatItemV3[];
|
|
50
|
+
}
|
|
51
|
+
export interface VistaStatsV4Props {
|
|
52
|
+
items: VistaStatItemV4[];
|
|
53
|
+
}
|
|
54
|
+
export interface VistaStatsV5Props {
|
|
55
|
+
items: VistaStatItemV5[];
|
|
56
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface VistaToggleV1Props {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
setEnabled: () => void;
|
|
4
|
+
}
|
|
5
|
+
export interface VistaToggleV2Props {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
setEnabled: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface VistaToggleV3Props {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
setEnabled: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface VistaToggleV4Props {
|
|
14
|
+
description: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
label: string;
|
|
17
|
+
setEnabled: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface VistaToggleV5Props {
|
|
20
|
+
description: string;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
label: string;
|
|
23
|
+
setEnabled: () => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, SVGProps, RefAttributes } from "react";
|
|
2
|
+
export interface VistaVerticalDividerV1Props {
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface VistaVerticalDividerV2Props {
|
|
6
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, 'ref'> & {
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
titleId?: string | undefined;
|
|
9
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
10
|
+
}
|
|
11
|
+
export interface VistaVerticalDividerV3Props {
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export interface VistaVerticalDividerV4Props {
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
17
|
+
export interface VistaVerticalDividerV5Props {
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
export interface VistaVerticalDividerV6Props {
|
|
21
|
+
handleOnClick: () => void;
|
|
22
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, 'ref'> & {
|
|
23
|
+
title?: string | undefined;
|
|
24
|
+
titleId?: string | undefined;
|
|
25
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
26
|
+
label: string;
|
|
27
|
+
}
|
|
28
|
+
export interface VistaVerticalDividerV7Props {
|
|
29
|
+
handleOnClick: () => void;
|
|
30
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, 'ref'> & {
|
|
31
|
+
title?: string | undefined;
|
|
32
|
+
titleId?: string | undefined;
|
|
33
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
34
|
+
label: string;
|
|
35
|
+
title: string;
|
|
36
|
+
}
|
|
37
|
+
export interface VistaVerticalDividerV8Props {
|
|
38
|
+
icons: {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
handleOnClick: () => void;
|
|
41
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, 'ref'> & {
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
titleId?: string | undefined;
|
|
44
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
45
|
+
id: string;
|
|
46
|
+
label: string;
|
|
47
|
+
order: number;
|
|
48
|
+
}[];
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const classNames: (...classes: string[]) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.classNames = void 0;
|
|
4
|
+
var classNames = function () {
|
|
5
|
+
var classes = [];
|
|
6
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
7
|
+
classes[_i] = arguments[_i];
|
|
8
|
+
}
|
|
9
|
+
return classes.filter(Boolean).join(' ');
|
|
10
|
+
};
|
|
11
|
+
exports.classNames = classNames;
|