@appcorp/app-corp-vista 0.1.0 → 0.1.2
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.
|
@@ -18,12 +18,12 @@ var vistaDrawerSizeMap = (_a = {},
|
|
|
18
18
|
_a);
|
|
19
19
|
var VistaDrawerV1 = function (_a) {
|
|
20
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, description = _a.description, 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_drawer_type_1.VISTA_DRAWER_SIZE.MD : _h, title = _a.title;
|
|
21
|
-
return (react_1.default.createElement(react_2.Dialog, { open: isOpen, onClose: handleSetIsOpen, className: "relative z-
|
|
21
|
+
return (react_1.default.createElement(react_2.Dialog, { open: isOpen, onClose: handleSetIsOpen, className: "relative z-50" },
|
|
22
22
|
react_1.default.createElement(react_2.DialogBackdrop, { transition: true, className: "fixed inset-0 bg-gray-500/75 transition-opacity duration-500 ease-in-out data-[closed]:opacity-0" }),
|
|
23
23
|
react_1.default.createElement("div", { className: "fixed inset-0" }),
|
|
24
24
|
react_1.default.createElement("div", { className: "fixed inset-0 overflow-hidden" },
|
|
25
25
|
react_1.default.createElement("div", { className: "absolute inset-0 overflow-hidden" },
|
|
26
|
-
react_1.default.createElement("div", { className: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full
|
|
26
|
+
react_1.default.createElement("div", { className: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full" },
|
|
27
27
|
react_1.default.createElement(react_2.DialogPanel, { className: "pointer-events-auto w-screen transform transition duration-500 ease-in-out data-[closed]:translate-x-full sm:duration-700 ".concat(vistaDrawerSizeMap[size]), transition: true },
|
|
28
28
|
react_1.default.createElement("div", { className: "flex h-full flex-col divide-y divide-gray-200 dark:divide-gray-700 bg-white dark:bg-gray-900 shadow-xl" },
|
|
29
29
|
react_1.default.createElement("div", null,
|
package/package.json
CHANGED
package/utils/form-schema.d.ts
CHANGED
|
@@ -6,7 +6,9 @@ import { VistaComboboxV1Props } from "../type/vista-combobox-type";
|
|
|
6
6
|
import { VistaVerticalDividerV4Props } from "../type/vista-vertical-divider-type";
|
|
7
7
|
import { VistaCheckboxV1Props, VistaCheckboxV2Props, VistaCheckboxV3Props } from "../type/vista-checkbox-type";
|
|
8
8
|
import { VistaRadioV1Props } from "../type/vista-radio-type";
|
|
9
|
+
import { VistaButtonV1Props } from "../type/vista-button-type";
|
|
9
10
|
export declare enum VISTA_FORM_ELEMENTS {
|
|
11
|
+
BUTTON_V1 = "BUTTON_V1",
|
|
10
12
|
CHECKBOX_V1 = "CHECKBOX_V1",
|
|
11
13
|
CHECKBOX_V2 = "CHECKBOX_V2",
|
|
12
14
|
CHECKBOX_V3 = "CHECKBOX_V3",
|
|
@@ -18,6 +20,7 @@ export declare enum VISTA_FORM_ELEMENTS {
|
|
|
18
20
|
TEXT_INPUT_V1 = "TEXT_INPUT_V1"
|
|
19
21
|
}
|
|
20
22
|
export declare const formSchema: {
|
|
23
|
+
BUTTON_V1: (props: VistaButtonV1Props) => React.JSX.Element;
|
|
21
24
|
CHECKBOX_V1: (props: VistaCheckboxV1Props) => React.JSX.Element;
|
|
22
25
|
CHECKBOX_V2: (props: VistaCheckboxV2Props) => React.JSX.Element;
|
|
23
26
|
CHECKBOX_V3: (props: VistaCheckboxV3Props) => React.JSX.Element;
|
package/utils/form-schema.js
CHANGED
|
@@ -26,8 +26,10 @@ var vista_checkbox_v1_1 = require("../molecules/vista-checkbox-v1/vista-checkbox
|
|
|
26
26
|
var vista_checkbox_v2_1 = require("../molecules/vista-checkbox-v2/vista-checkbox-v2");
|
|
27
27
|
var vista_checkbox_v3_1 = require("../molecules/vista-checkbox-v3/vista-checkbox-v3");
|
|
28
28
|
var vista_radio_v1_1 = require("../molecules/vista-radio-v1/vista-radio-v1");
|
|
29
|
+
var vista_button_v1_1 = require("../molecules/vista-button-v1/vista-button-v1");
|
|
29
30
|
var VISTA_FORM_ELEMENTS;
|
|
30
31
|
(function (VISTA_FORM_ELEMENTS) {
|
|
32
|
+
VISTA_FORM_ELEMENTS["BUTTON_V1"] = "BUTTON_V1";
|
|
31
33
|
VISTA_FORM_ELEMENTS["CHECKBOX_V1"] = "CHECKBOX_V1";
|
|
32
34
|
VISTA_FORM_ELEMENTS["CHECKBOX_V2"] = "CHECKBOX_V2";
|
|
33
35
|
VISTA_FORM_ELEMENTS["CHECKBOX_V3"] = "CHECKBOX_V3";
|
|
@@ -39,6 +41,7 @@ var VISTA_FORM_ELEMENTS;
|
|
|
39
41
|
VISTA_FORM_ELEMENTS["TEXT_INPUT_V1"] = "TEXT_INPUT_V1";
|
|
40
42
|
})(VISTA_FORM_ELEMENTS || (exports.VISTA_FORM_ELEMENTS = VISTA_FORM_ELEMENTS = {}));
|
|
41
43
|
exports.formSchema = (_a = {},
|
|
44
|
+
_a[VISTA_FORM_ELEMENTS.BUTTON_V1] = function (props) { return react_1.default.createElement(vista_button_v1_1.VistaButtonV1, __assign({}, props)); },
|
|
42
45
|
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V1] = function (props) { return react_1.default.createElement(vista_checkbox_v1_1.VistaCheckboxV1, __assign({}, props)); },
|
|
43
46
|
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V2] = function (props) { return react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, __assign({}, props)); },
|
|
44
47
|
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V3] = function (props) { return react_1.default.createElement(vista_checkbox_v3_1.VistaCheckboxV3, __assign({}, props)); },
|