@appcorp/app-corp-vista 0.2.99 → 0.3.0
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/atoms/vista-shimmer-v1/vista-shimmer-v1.d.ts +1 -1
- package/atoms/vista-shimmer-v2/vista-shimmer-v2.d.ts +1 -1
- package/atoms/vista-vertical-divider-v1/vista-vertical-divider-v1.d.ts +1 -1
- package/data/vista-chat-props.d.ts +1 -1
- package/data/vista-chat-props.js +1 -1
- package/molecules/vista-avatar-v1/vista-avatar-v1.js +1 -1
- package/molecules/vista-avatar-v2/vista-avatar-v2.js +1 -1
- package/molecules/vista-button-group-v1/vista-button-group-v1.js +1 -2
- package/molecules/vista-button-group-v2/vista-button-group-v2.js +1 -2
- package/molecules/vista-button-group-v3/vista-button-group-v3.js +1 -2
- package/molecules/vista-button-group-v5/vista-button-group-v5.js +1 -2
- package/molecules/vista-button-v1/vista-button-v1.js +1 -1
- package/molecules/vista-chat-heading-v1/vista-chat-heading-v1.js +4 -4
- package/molecules/vista-checkbox-v1/vista-checkbox-v1.js +1 -1
- package/molecules/vista-checkbox-v2/vista-checkbox-v2.js +2 -2
- package/molecules/vista-combobox-v1/vista-combobox-v1.js +5 -1
- package/molecules/vista-contact-v1/vista-contact-v1.js +2 -3
- package/molecules/vista-contact-v2/vista-contact-v2.js +1 -2
- package/molecules/vista-contact-v3/vista-contact-v3.js +9 -5
- package/molecules/vista-contact-v4/vista-contact-v4.js +1 -2
- package/molecules/vista-contact-v5/vista-contact-v5.js +1 -2
- package/molecules/vista-contact-v6/vista-contact-v6.js +1 -2
- package/molecules/vista-contact-v7/vista-contact-v7.js +1 -2
- package/molecules/vista-contact-v8/vista-contact-v8.js +1 -2
- package/molecules/vista-dashboard-sidebar-v1/vista-dashboard-sidebar-v1.js +7 -5
- package/molecules/vista-dashboard-topbar-v1/vista-dashboard-topbar-v1.js +4 -4
- package/molecules/vista-drawer-v1/vista-drawer-v1.d.ts +2 -2
- package/molecules/vista-footer-v10/vista-footer-v10.js +7 -6
- package/molecules/vista-footer-v3/vista-footer-v3.js +6 -5
- package/molecules/vista-header-v1/nav-bar.d.ts +2 -2
- package/molecules/vista-header-v1/nav-bar.js +8 -8
- package/molecules/vista-header-v2/vista-header-v2.js +2 -3
- package/molecules/vista-header-v3/vista-header-v3.js +2 -3
- package/molecules/vista-header-v4/vista-header-v4.js +2 -3
- package/molecules/vista-header-v5/vista-header-v5.js +6 -1
- package/molecules/vista-header-v8/nav-bar.d.ts +16 -0
- package/molecules/vista-header-v8/nav-bar.js +90 -0
- package/molecules/vista-header-v8/vista-header-v8.js +3 -3
- package/molecules/vista-header-v9/vista-header-v9.js +45 -8
- package/molecules/vista-modal-v1/vista-modal-v1.d.ts +2 -2
- package/molecules/vista-notification-v1/vista-notification-v1.js +5 -5
- package/molecules/vista-notification-v3/vista-notification-v3.js +3 -1
- package/molecules/vista-progress-v2/vista-progress-v2.js +2 -2
- package/molecules/vista-progress-v3/vista-progress-v3.js +2 -1
- package/molecules/vista-progress-v8/vista-progress-v8.js +1 -2
- package/molecules/vista-select-v1/vista-select-v1.js +1 -1
- package/molecules/vista-stacked-avatar-v1/vista-stacked-avatar-v1.js +2 -2
- package/molecules/vista-stats-v1.d.ts +2 -2
- package/molecules/vista-stats-v1.js +3 -1
- package/molecules/vista-stats-v2.d.ts +2 -2
- package/molecules/vista-stats-v2.js +1 -1
- package/molecules/vista-stats-v3.d.ts +2 -2
- package/molecules/vista-stats-v4.d.ts +2 -2
- package/molecules/vista-stats-v4.js +7 -3
- package/molecules/vista-stats-v5.d.ts +2 -2
- package/molecules/vista-stats-v5.js +7 -3
- package/molecules/vista-table-footer-v1.js +2 -2
- package/molecules/vista-table-header-v1.js +1 -1
- package/molecules/vista-upload-v1/vista-upload-v1.js +5 -5
- package/molecules/vista-vertical-divider-v1.d.ts +2 -2
- package/molecules/vista-vertical-divider-v2.d.ts +2 -2
- package/molecules/vista-vertical-divider-v2.js +1 -1
- package/molecules/vista-vertical-divider-v3.d.ts +2 -2
- package/molecules/vista-vertical-divider-v4.d.ts +2 -2
- package/molecules/vista-vertical-divider-v5.d.ts +2 -2
- package/molecules/vista-vertical-divider-v6.d.ts +2 -2
- package/molecules/vista-vertical-divider-v7.d.ts +2 -2
- package/molecules/vista-vertical-divider-v8.d.ts +2 -2
- package/organisms/vista-chat-v2/vista-chat-v2.js +8 -8
- package/organisms/vista-dashboard-header-v1/vista-dashboard-header-v1.js +1 -1
- package/organisms/vista-feature-v14/vista-feature-v14.js +1 -1
- package/organisms/vista-feature-v18/vista-feature-v18.js +24 -6
- package/organisms/vista-feature-v2/vista-feature-v2.js +1 -1
- package/organisms/vista-feature-v22/vista-feature-v22.js +1 -1
- package/organisms/vista-hero-v13/slider-content.d.ts +2 -2
- package/organisms/vista-hero-v13/vista-hero-v13.js +3 -4
- package/organisms/vista-incentive-v7/vista-incentive-v7.js +15 -3
- package/organisms/vista-mdx-editor-v1/vista-mdx-editor-v1.js +4 -6
- package/organisms/vista-product-feature-v2/vista-product-feature-v2.js +12 -3
- package/organisms/vista-product-feature-v3/vista-product-feature-v3.js +8 -2
- package/organisms/vista-product-feature-v5/vista-product-feature-v5.js +4 -1
- package/organisms/vista-product-feature-v7/vista-product-feature-v7.js +6 -2
- package/organisms/vista-product-list-v1/vista-product-list-v1.js +2 -1
- package/organisms/vista-product-list-v10/vista-product-list-v10.js +1 -1
- package/organisms/vista-product-list-v2/vista-product-list-v2.js +2 -1
- package/organisms/vista-product-list-v5/vista-product-list-v5.js +1 -1
- package/organisms/vista-product-list-v8/vista-product-list-v8.js +3 -1
- package/organisms/vista-product-overview-v1/vista-product-overview-v1.js +24 -6
- package/organisms/vista-product-overview-v2/vista-product-overview-v2.js +13 -3
- package/organisms/vista-product-overview-v3/product-form.d.ts +2 -2
- package/organisms/vista-product-overview-v3/product-form.js +14 -13
- package/organisms/vista-product-overview-v3/product-slider.d.ts +2 -2
- package/organisms/vista-product-overview-v3/product-slider.js +2 -2
- package/organisms/vista-product-overview-v3/vista-product-overview-v3.js +16 -13
- package/organisms/vista-product-overview-v4/vista-product-overview-v4.js +3 -1
- package/organisms/vista-product-overview-v5/vista-product-overview-v5.js +6 -2
- package/organisms/vista-promo-section-v6/vista-promo-section-v6.js +15 -3
- package/organisms/vista-table-v1/empty-table.d.ts +9 -2
- package/organisms/vista-table-v1/empty-table.js +65 -95
- package/organisms/vista-table-v1/vista-table-body-v1.js +45 -35
- package/organisms/vista-table-v1/vista-table-head-v1.d.ts +2 -2
- package/organisms/vista-table-v1/vista-table-v1.js +1 -1
- package/package.json +11 -4
- package/pdf-templates/credit-receipt-template-v1.js +16 -9
- package/pdf-templates/credit-receipt-template-v2.js +18 -11
- package/pdf-templates/debit-receipt-template-v1.js +16 -9
- package/pdf-templates/invoice-template-v1.js +8 -8
- package/providers/index.js +0 -1
- package/templates/vista-auth-v1/vista-auth-v1.js +6 -4
- package/templates/vista-dashboard-v1/vista-dashboard-v1.js +3 -4
- package/type/vista-button-type.d.ts +2 -2
- package/type/vista-card-type.d.ts +1 -1
- package/type/vista-chat-bubble-type.d.ts +1 -1
- package/type/vista-chat-type.d.ts +2 -2
- package/type/vista-chat-type.js +1 -0
- package/type/vista-checkbox-type.d.ts +1 -1
- package/type/vista-combobox-type.js +1 -0
- package/type/vista-cta-type.d.ts +2 -0
- package/type/vista-dashboard-header-type.d.ts +1 -1
- package/type/vista-dashboard-setting-section-type.d.ts +1 -1
- package/type/vista-dashboard-setting-type.d.ts +2 -2
- package/type/vista-dashboard-sidebar-type.d.ts +1 -1
- package/type/vista-dashboard-tabs.d.ts +2 -2
- package/type/vista-dashboard-topbar-type.d.ts +1 -1
- package/type/vista-dashboard-type.d.ts +3 -3
- package/type/vista-drawer-type.d.ts +2 -2
- package/type/vista-feature-type.d.ts +4 -4
- package/type/vista-footer-type.d.ts +1 -1
- package/type/vista-footer-type.js +1 -0
- package/type/vista-form-elements.d.ts +11 -11
- package/type/vista-header-type.d.ts +3 -1
- package/type/vista-hero-type.d.ts +1 -1
- package/type/vista-modal-type.d.ts +2 -2
- package/type/vista-product-overview-type.d.ts +1 -1
- package/type/vista-progress-type.d.ts +1 -1
- package/type/vista-select-type.js +1 -0
- package/type/vista-stacked-avatar-type.d.ts +1 -1
- package/type/vista-stats-type.d.ts +5 -2
- package/type/vista-table-footer-type.d.ts +2 -2
- package/type/vista-table-footer-type.js +1 -0
- package/type/vista-table-header-type.d.ts +1 -1
- package/type/vista-table-type.d.ts +4 -4
- package/type/vista-table-type.js +1 -0
- package/type/vista-text-input-type.d.ts +1 -1
- package/type/vista-upload-type.d.ts +1 -1
- package/type/vista-vertical-divider-type.d.ts +1 -1
- package/utils/form-schema.d.ts +5 -5
- package/utils/form-schema.js +12 -12
- package/utils/generate-toast.d.ts +2 -2
- package/utils/sort-messages-by-timestamp.d.ts +1 -1
package/providers/index.js
CHANGED
|
@@ -15,11 +15,11 @@ var vista_checkbox_v2_1 = require("../../molecules/vista-checkbox-v2/vista-check
|
|
|
15
15
|
var VistaAuthV1 = function (_a) {
|
|
16
16
|
var _b, _c;
|
|
17
17
|
var actionLabel = _a.actionLabel, actionRoute = _a.actionRoute, banner = _a.banner, bannerAlt = _a.bannerAlt, _d = _a.buttonDisabled, buttonDisabled = _d === void 0 ? false : _d, description = _a.description, emailAuthButtonLabel = _a.emailAuthButtonLabel, forgotPassword = _a.forgotPassword, forgotPasswordRoute = _a.forgotPasswordRoute, handleAuth = _a.handleAuth, heading = _a.heading, _e = _a.inputElements, inputElements = _e === void 0 ? [] : _e, _f = _a.label, label = _f === void 0 ? false : _f, logo = _a.logo, logoAlt = _a.logoAlt, rememberMeChecked = _a.rememberMeChecked, rememberMeDescription = _a.rememberMeDescription, rememberMeHandleOnChange = _a.rememberMeHandleOnChange, rememberMeHeading = _a.rememberMeHeading, rememberMeId = _a.rememberMeId, rememberMeRoute = _a.rememberMeRoute, _g = _a.reverted, reverted = _g === void 0 ? false : _g, _h = _a.socialProviders, socialProviders = _h === void 0 ? [] : _h, termsOfUseChecked = _a.termsOfUseChecked, termsOfUseDescription = _a.termsOfUseDescription, termsOfUseError = _a.termsOfUseError, termsOfUseHandleOnChange = _a.termsOfUseHandleOnChange, termsOfUseHeading = _a.termsOfUseHeading, termsOfUseId = _a.termsOfUseId, termsOfUseRoute = _a.termsOfUseRoute;
|
|
18
|
-
return (react_1.default.createElement("section", { className:
|
|
18
|
+
return (react_1.default.createElement("section", { className: "h-screen bg-white dark:bg-gray-900" },
|
|
19
19
|
react_1.default.createElement("div", { className: "flex min-h-full flex-1" },
|
|
20
20
|
react_1.default.createElement("div", { className: "flex flex-1 flex-col justify-center px-4 py-12 sm:px-6 lg:flex-none lg:px-20 xl:px-24 ".concat(reverted ? 'order-2' : 'order-1') },
|
|
21
21
|
react_1.default.createElement("div", { className: "mx-auto w-full max-w-sm lg:w-96" },
|
|
22
|
-
react_1.default.createElement("div", { className:
|
|
22
|
+
react_1.default.createElement("div", { className: "pb-4" },
|
|
23
23
|
react_1.default.createElement(image_1.default, { alt: logoAlt, src: logo, width: 40, height: 40 }),
|
|
24
24
|
react_1.default.createElement("h2", { className: "mt-8 text-2xl/9 font-bold tracking-tight text-gray-900 dark:text-white" }, heading),
|
|
25
25
|
react_1.default.createElement("p", { className: "mt-2 text-sm/6 text-gray-500 dark:text-gray-300" },
|
|
@@ -37,11 +37,13 @@ var VistaAuthV1 = function (_a) {
|
|
|
37
37
|
return (react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { error: error, handleOnChange: handleOnChange, id: id, key: id, label: inputLabel, placeholder: placeholder, type: inputType, value: value }));
|
|
38
38
|
}),
|
|
39
39
|
react_1.default.createElement("div", { className: "flex items-center justify-between" },
|
|
40
|
-
rememberMeHandleOnChange &&
|
|
40
|
+
rememberMeHandleOnChange &&
|
|
41
|
+
rememberMeHeading &&
|
|
42
|
+
rememberMeId && (react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, { checked: rememberMeChecked, description: rememberMeDescription || '', handleOnChange: rememberMeHandleOnChange, heading: rememberMeHeading, id: rememberMeId, route: rememberMeRoute })),
|
|
41
43
|
forgotPassword && forgotPasswordRoute && (react_1.default.createElement("div", { className: "text-sm/6" },
|
|
42
44
|
react_1.default.createElement("a", { href: forgotPasswordRoute, className: "font-semibold text-primary" }, forgotPassword)))),
|
|
43
45
|
emailAuthButtonLabel && handleAuth && (react_1.default.createElement("div", null,
|
|
44
|
-
react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { handleOnClick: handleAuth, label: emailAuthButtonLabel, className:
|
|
46
|
+
react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { handleOnClick: handleAuth, label: emailAuthButtonLabel, className: "w-full", size: vista_button_type_1.VISTA_BUTTON_SIZE.LG, disabled: buttonDisabled }))),
|
|
45
47
|
(inputElements === null || inputElements === void 0 ? void 0 : inputElements.length) >= 1 && (socialProviders === null || socialProviders === void 0 ? void 0 : socialProviders.length) >= 1 && (react_1.default.createElement("div", { className: "relative" },
|
|
46
48
|
react_1.default.createElement("div", { "aria-hidden": "true", className: "absolute inset-0 flex items-center" },
|
|
47
49
|
react_1.default.createElement("div", { className: "w-full border-t border-gray-200" })),
|
|
@@ -21,10 +21,9 @@ var react_2 = require("@headlessui/react");
|
|
|
21
21
|
var outline_1 = require("@heroicons/react/24/outline");
|
|
22
22
|
var vista_dashboard_sidebar_v1_1 = require("../../molecules/vista-dashboard-sidebar-v1/vista-dashboard-sidebar-v1");
|
|
23
23
|
var vista_dashboard_topbar_v1_1 = require("../../molecules/vista-dashboard-topbar-v1/vista-dashboard-topbar-v1");
|
|
24
|
-
var vista_dashboard_type_1 = require("../../type/vista-dashboard-type");
|
|
25
24
|
var VistaDashboardV1 = function (_a) {
|
|
26
|
-
var children = _a.children, handleIsSideBarOpen = _a.handleIsSideBarOpen, isSideBarOpen = _a.isSideBarOpen, sideBar = _a.sideBar, topBar = _a.topBar
|
|
27
|
-
return (react_1.default.createElement("section", { className:
|
|
25
|
+
var children = _a.children, handleIsSideBarOpen = _a.handleIsSideBarOpen, isSideBarOpen = _a.isSideBarOpen, sideBar = _a.sideBar, topBar = _a.topBar;
|
|
26
|
+
return (react_1.default.createElement("section", { className: "h-full" },
|
|
28
27
|
react_1.default.createElement(react_2.Dialog, { className: "relative z-10 xl:hidden", onClose: handleIsSideBarOpen, open: isSideBarOpen },
|
|
29
28
|
react_1.default.createElement(react_2.DialogBackdrop, { className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-[closed]:opacity-0", transition: true }),
|
|
30
29
|
react_1.default.createElement("div", { className: "fixed inset-0 flex" },
|
|
@@ -35,7 +34,7 @@ var VistaDashboardV1 = function (_a) {
|
|
|
35
34
|
react_1.default.createElement("span", { className: "sr-only" }, "Close sidebar"),
|
|
36
35
|
react_1.default.createElement(outline_1.XMarkIcon, { "aria-hidden": "true", className: "size-6 text-white" })))),
|
|
37
36
|
react_1.default.createElement(vista_dashboard_sidebar_v1_1.VistaDashboardSidebarV1, __assign({}, sideBar))))),
|
|
38
|
-
react_1.default.createElement("div", { className:
|
|
37
|
+
react_1.default.createElement("div", { className: "grid grid-cols-12" },
|
|
39
38
|
react_1.default.createElement("div", { className: "hidden ".concat(!isSideBarOpen ? 'xl:z-10 xl:flex col-span-2' : '') },
|
|
40
39
|
react_1.default.createElement(vista_dashboard_sidebar_v1_1.VistaDashboardSidebarV1, __assign({}, sideBar))),
|
|
41
40
|
react_1.default.createElement("div", { className: !isSideBarOpen ? 'col-span-12 xl:col-span-10 h-full' : '' },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { VISTA_BUTTON_VARIANT } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VISTA_BUTTON_VARIANT } from './vista-button-type';
|
|
3
3
|
export declare enum VISTA_CHAT_BUBBLE_TYPES {
|
|
4
4
|
PSYCHIC = "PSYCHIC",
|
|
5
5
|
USER = "USER"
|
package/type/vista-chat-type.js
CHANGED
package/type/vista-cta-type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VistaDashboardTabNavigatorListItem } from
|
|
1
|
+
import { VistaDashboardTabNavigatorListItem } from './vista-dashboard-tab-navigator-type';
|
|
2
2
|
export interface VistaDashboardHeaderV1Props {
|
|
3
3
|
heading: string;
|
|
4
4
|
items: VistaDashboardTabNavigatorListItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { VistaDashboardTabNavigatorListItem } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VistaDashboardTabNavigatorListItem } from './vista-dashboard-tab-navigator-type';
|
|
3
3
|
export interface VistaDashboardActiveComponentMapItemProps {
|
|
4
4
|
component: ReactNode;
|
|
5
5
|
description: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { VistaDashboardTabNavigatorListItem } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VistaDashboardTabNavigatorListItem } from './vista-dashboard-tab-navigator-type';
|
|
3
3
|
export interface VistaDashboardTabsV1Props {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
headerTabs: VistaDashboardTabNavigatorListItem[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { VistaDashboardSideBarV1Props } from
|
|
3
|
-
import { VistaDashboardTopBarV1Props } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VistaDashboardSideBarV1Props } from './vista-dashboard-sidebar-type';
|
|
3
|
+
import { VistaDashboardTopBarV1Props } from './vista-dashboard-topbar-type';
|
|
4
4
|
export declare enum APP_DIR {
|
|
5
5
|
RTL = "rtl",
|
|
6
6
|
LTR = "ltr"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { VISTA_BUTTON_ROUNDED, VISTA_BUTTON_SIZE } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VISTA_BUTTON_ROUNDED, VISTA_BUTTON_SIZE } from './vista-button-type';
|
|
3
3
|
export declare enum VISTA_DRAWER_SIZE {
|
|
4
4
|
MD = "MD",
|
|
5
5
|
LG = "LG",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, SVGProps } from
|
|
1
|
+
import { ForwardRefExoticComponent, SVGProps } from 'react';
|
|
2
2
|
export interface VistaFeatureV1Item {
|
|
3
3
|
description: string;
|
|
4
4
|
enabled: boolean;
|
|
5
|
-
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>,
|
|
5
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, 'ref'>>;
|
|
6
6
|
name: string;
|
|
7
7
|
order: number;
|
|
8
8
|
}
|
|
@@ -19,7 +19,7 @@ export interface VistaFeatureV1Props {
|
|
|
19
19
|
export interface VistaFeatureV2Item {
|
|
20
20
|
name: string;
|
|
21
21
|
description: string;
|
|
22
|
-
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>,
|
|
22
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, 'ref'>>;
|
|
23
23
|
}
|
|
24
24
|
export interface VistaFeatureV2Props {
|
|
25
25
|
description: string;
|
|
@@ -90,7 +90,7 @@ export interface VistaFeatureV21Props {
|
|
|
90
90
|
export interface VistaFeatureV22Item {
|
|
91
91
|
name: string;
|
|
92
92
|
description: string;
|
|
93
|
-
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>,
|
|
93
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, 'ref'>>;
|
|
94
94
|
}
|
|
95
95
|
export interface VistaFeatureV22Props {
|
|
96
96
|
description: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { VISTA_FORM_ELEMENTS } from
|
|
2
|
-
import { VistaButtonV1Props } from
|
|
3
|
-
import { VistaCheckboxV1Props } from
|
|
4
|
-
import { VistaComboboxV1Props } from
|
|
5
|
-
import { VistaRadioV1Props } from
|
|
6
|
-
import { VistaSelectV1Props } from
|
|
7
|
-
import { VistaTextAreaV1Props } from
|
|
8
|
-
import { VistaTextInputV1Props } from
|
|
9
|
-
import { VistaToggleV1Props } from
|
|
10
|
-
import { VistaUploadV1Props } from
|
|
11
|
-
import { VistaVerticalDividerV4Props } from
|
|
1
|
+
import { VISTA_FORM_ELEMENTS } from '../utils/form-schema';
|
|
2
|
+
import { VistaButtonV1Props } from './vista-button-type';
|
|
3
|
+
import { VistaCheckboxV1Props } from './vista-checkbox-type';
|
|
4
|
+
import { VistaComboboxV1Props } from './vista-combobox-type';
|
|
5
|
+
import { VistaRadioV1Props } from './vista-radio-type';
|
|
6
|
+
import { VistaSelectV1Props } from './vista-select-type';
|
|
7
|
+
import { VistaTextAreaV1Props } from './vista-text-area-type';
|
|
8
|
+
import { VistaTextInputV1Props } from './vista-text-input-type';
|
|
9
|
+
import { VistaToggleV1Props } from './vista-toggle-type';
|
|
10
|
+
import { VistaUploadV1Props } from './vista-upload-type';
|
|
11
|
+
import { VistaVerticalDividerV4Props } from './vista-vertical-divider-type';
|
|
12
12
|
interface Base {
|
|
13
13
|
enabled: boolean;
|
|
14
14
|
order: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
export interface VistaHeaderMegaMenuItem {
|
|
3
3
|
name: string;
|
|
4
4
|
icon?: ReactElement;
|
|
@@ -47,6 +47,8 @@ export interface VistaHeaderV7Props {
|
|
|
47
47
|
export interface VistaHeaderV8Props {
|
|
48
48
|
companyName: string;
|
|
49
49
|
containerClassName?: string;
|
|
50
|
+
ctaButtonHandler: () => void;
|
|
51
|
+
ctaButtonLabel: string;
|
|
50
52
|
handleMenuOpen: () => void;
|
|
51
53
|
items: VistaHeaderV1Item[];
|
|
52
54
|
loginVisible?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { VISTA_BUTTON_ROUNDED, VISTA_BUTTON_SIZE } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VISTA_BUTTON_ROUNDED, VISTA_BUTTON_SIZE } from './vista-button-type';
|
|
3
3
|
export declare enum VISTA_MODAL_SIZE {
|
|
4
4
|
MD = "MD",
|
|
5
5
|
LG = "LG",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
export interface VistaStatItemV1 {
|
|
3
3
|
change: string;
|
|
4
4
|
changeType: string;
|
|
@@ -26,7 +26,10 @@ export interface VistaStatItemV4 {
|
|
|
26
26
|
change: string;
|
|
27
27
|
changeType: string;
|
|
28
28
|
enabled: true;
|
|
29
|
-
icon:
|
|
29
|
+
icon: FunctionComponent<{
|
|
30
|
+
ariaHidden: boolean;
|
|
31
|
+
className: string;
|
|
32
|
+
}>;
|
|
30
33
|
id: string;
|
|
31
34
|
name: string;
|
|
32
35
|
order: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APP_DIR } from
|
|
1
|
+
import { APP_DIR } from './vista-dashboard-type';
|
|
2
2
|
export interface VistaTableFooterV1Props {
|
|
3
3
|
currentPage: number;
|
|
4
4
|
dir?: APP_DIR;
|
|
@@ -7,7 +7,7 @@ export interface VistaTableFooterV1Props {
|
|
|
7
7
|
handlePreviousOnClick: () => void;
|
|
8
8
|
isNextDisabled: boolean;
|
|
9
9
|
isPreviousDisabled: boolean;
|
|
10
|
-
listOptions:
|
|
10
|
+
listOptions: object[];
|
|
11
11
|
nextLabel: string;
|
|
12
12
|
nodeSelectKey: string;
|
|
13
13
|
ofLabel?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { RowActionItem } from
|
|
3
|
-
import { APP_DIR } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { RowActionItem } from './vista-dropdown-menu-type';
|
|
3
|
+
import { APP_DIR } from './vista-dashboard-type';
|
|
4
4
|
export interface VistaTableHeaderActionItem {
|
|
5
5
|
enabled: boolean;
|
|
6
6
|
handleOnClick: () => void;
|
|
@@ -35,7 +35,7 @@ export interface VistaTableV1Props {
|
|
|
35
35
|
headerActions: VistaTableHeaderActionItem[];
|
|
36
36
|
isNextDisabled: boolean;
|
|
37
37
|
isPreviousDisabled: boolean;
|
|
38
|
-
listOptions:
|
|
38
|
+
listOptions: object[];
|
|
39
39
|
loading: boolean;
|
|
40
40
|
nextLabel?: string;
|
|
41
41
|
nodeSelectKey: string;
|
package/type/vista-table-type.js
CHANGED
package/utils/form-schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { VistaComboboxV1Props } from
|
|
3
|
-
import { VistaCheckboxV2Props, VistaCheckboxV3Props } from
|
|
4
|
-
import { ButtonV1, CheckboxV1, DividerV4, RadioV1, SelectV1, TextAreaV1, TextInputV1, ToggleV1, UploadV1 } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VistaComboboxV1Props } from '../type/vista-combobox-type';
|
|
3
|
+
import { VistaCheckboxV2Props, VistaCheckboxV3Props } from '../type/vista-checkbox-type';
|
|
4
|
+
import { ButtonV1, CheckboxV1, DividerV4, RadioV1, SelectV1, TextAreaV1, TextInputV1, ToggleV1, UploadV1 } from '../type/vista-form-elements';
|
|
5
5
|
export declare enum VISTA_FORM_ELEMENTS {
|
|
6
6
|
AUDIO_V1 = "AUDIO_V1",
|
|
7
7
|
BUTTON_V1 = "BUTTON_V1",
|
|
@@ -18,7 +18,7 @@ export declare enum VISTA_FORM_ELEMENTS {
|
|
|
18
18
|
UPLOAD_V1 = "UPLOAD_V1"
|
|
19
19
|
}
|
|
20
20
|
export declare const vistaFormSchema: {
|
|
21
|
-
AUDIO_V1: (props:
|
|
21
|
+
AUDIO_V1: (props: object) => React.JSX.Element;
|
|
22
22
|
BUTTON_V1: (props: ButtonV1) => React.JSX.Element;
|
|
23
23
|
CHECKBOX_V1: (props: CheckboxV1) => React.JSX.Element;
|
|
24
24
|
CHECKBOX_V2: (props: VistaCheckboxV2Props) => React.JSX.Element;
|
package/utils/form-schema.js
CHANGED
|
@@ -47,16 +47,16 @@ var VISTA_FORM_ELEMENTS;
|
|
|
47
47
|
})(VISTA_FORM_ELEMENTS || (exports.VISTA_FORM_ELEMENTS = VISTA_FORM_ELEMENTS = {}));
|
|
48
48
|
exports.vistaFormSchema = (_a = {},
|
|
49
49
|
_a[VISTA_FORM_ELEMENTS.AUDIO_V1] = function (props) { return react_1.default.createElement("audio", __assign({}, props)); },
|
|
50
|
-
_a[VISTA_FORM_ELEMENTS.BUTTON_V1] = function (props) { return react_1.default.createElement(vista_button_v1_1.VistaButtonV1, __assign({}, props)); },
|
|
51
|
-
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V1] = function (props) { return react_1.default.createElement(vista_checkbox_v1_1.VistaCheckboxV1, __assign({}, props)); },
|
|
52
|
-
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V2] = function (props) { return react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, __assign({}, props)); },
|
|
53
|
-
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V3] = function (props) { return react_1.default.createElement(vista_checkbox_v3_1.VistaCheckboxV3, __assign({}, props)); },
|
|
54
|
-
_a[VISTA_FORM_ELEMENTS.COMBOBOX_V1] = function (props) { return react_1.default.createElement(vista_combobox_v1_1.VistaComboboxV1, __assign({}, props)); },
|
|
55
|
-
_a[VISTA_FORM_ELEMENTS.DIVIDER_V4] = function (props) { return react_1.default.createElement(vista_vertical_divider_v4_1.VistaVerticalDividerV4, __assign({}, props)); },
|
|
56
|
-
_a[VISTA_FORM_ELEMENTS.RADIO_V1] = function (props) { return react_1.default.createElement(vista_radio_v1_1.VistaRadioV1, __assign({}, props)); },
|
|
57
|
-
_a[VISTA_FORM_ELEMENTS.SELECT_V1] = function (props) { return react_1.default.createElement(vista_select_v1_1.VistaSelectV1, __assign({}, props)); },
|
|
58
|
-
_a[VISTA_FORM_ELEMENTS.TEXT_AREA_V1] = function (props) { return react_1.default.createElement(vista_text_area_v1_1.VistaTextAreaV1, __assign({}, props)); },
|
|
59
|
-
_a[VISTA_FORM_ELEMENTS.TEXT_INPUT_V1] = function (props) { return react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, __assign({}, props)); },
|
|
60
|
-
_a[VISTA_FORM_ELEMENTS.TOGGLE_V1] = function (props) { return react_1.default.createElement(vista_toggle_v1_1.VistaToggleV1, __assign({}, props)); },
|
|
61
|
-
_a[VISTA_FORM_ELEMENTS.UPLOAD_V1] = function (props) { return react_1.default.createElement(vista_upload_v1_1.VistaUploadV1, __assign({}, props)); },
|
|
50
|
+
_a[VISTA_FORM_ELEMENTS.BUTTON_V1] = function (props) { return (react_1.default.createElement(vista_button_v1_1.VistaButtonV1, __assign({}, props))); },
|
|
51
|
+
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V1] = function (props) { return (react_1.default.createElement(vista_checkbox_v1_1.VistaCheckboxV1, __assign({}, props))); },
|
|
52
|
+
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V2] = function (props) { return (react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, __assign({}, props))); },
|
|
53
|
+
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V3] = function (props) { return (react_1.default.createElement(vista_checkbox_v3_1.VistaCheckboxV3, __assign({}, props))); },
|
|
54
|
+
_a[VISTA_FORM_ELEMENTS.COMBOBOX_V1] = function (props) { return (react_1.default.createElement(vista_combobox_v1_1.VistaComboboxV1, __assign({}, props))); },
|
|
55
|
+
_a[VISTA_FORM_ELEMENTS.DIVIDER_V4] = function (props) { return (react_1.default.createElement(vista_vertical_divider_v4_1.VistaVerticalDividerV4, __assign({}, props))); },
|
|
56
|
+
_a[VISTA_FORM_ELEMENTS.RADIO_V1] = function (props) { return (react_1.default.createElement(vista_radio_v1_1.VistaRadioV1, __assign({}, props))); },
|
|
57
|
+
_a[VISTA_FORM_ELEMENTS.SELECT_V1] = function (props) { return (react_1.default.createElement(vista_select_v1_1.VistaSelectV1, __assign({}, props))); },
|
|
58
|
+
_a[VISTA_FORM_ELEMENTS.TEXT_AREA_V1] = function (props) { return (react_1.default.createElement(vista_text_area_v1_1.VistaTextAreaV1, __assign({}, props))); },
|
|
59
|
+
_a[VISTA_FORM_ELEMENTS.TEXT_INPUT_V1] = function (props) { return (react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, __assign({}, props))); },
|
|
60
|
+
_a[VISTA_FORM_ELEMENTS.TOGGLE_V1] = function (props) { return (react_1.default.createElement(vista_toggle_v1_1.VistaToggleV1, __assign({}, props))); },
|
|
61
|
+
_a[VISTA_FORM_ELEMENTS.UPLOAD_V1] = function (props) { return (react_1.default.createElement(vista_upload_v1_1.VistaUploadV1, __assign({}, props))); },
|
|
62
62
|
_a);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { VISTA_NOTIFICATION_V1_VARIANT } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VISTA_NOTIFICATION_V1_VARIANT } from '../type/vista-notification-type';
|
|
3
3
|
interface Params {
|
|
4
4
|
description: string;
|
|
5
5
|
variant: VISTA_NOTIFICATION_V1_VARIANT;
|