@appcorp/app-corp-vista 0.1.26 → 0.1.28

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.
@@ -16,7 +16,7 @@ var VistaDashboardTabNavigatorV1 = function (_a) {
16
16
  .map(function (_a) {
17
17
  var name = _a.name, isActive = _a.isActive, handleOnClick = _a.handleOnClick, type = _a.type;
18
18
  return (react_1.default.createElement("li", { key: name },
19
- react_1.default.createElement("button", { className: isActive ? 'text-primary' : '', onClick: function () { return handleOnClick(type); } }, name)));
19
+ react_1.default.createElement("button", { className: "cursor-pointer ".concat(isActive ? 'text-primary' : ''), onClick: function () { return handleOnClick(type); } }, name)));
20
20
  })));
21
21
  };
22
22
  exports.VistaDashboardTabNavigatorV1 = VistaDashboardTabNavigatorV1;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.VistaTextInputV1 = void 0;
8
8
  var react_1 = __importDefault(require("react"));
9
9
  var VistaTextInputV1 = function (_a) {
10
- var _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, error = _a.error, handleOnChange = _a.handleOnChange, id = _a.id, info = _a.info, label = _a.label, optional = _a.optional, placeholder = _a.placeholder, _e = _a.required, required = _e === void 0 ? false : _e, prefix = _a.prefix, _f = _a.readOnly, readOnly = _f === void 0 ? false : _f, suffix = _a.suffix, _g = _a.type, type = _g === void 0 ? 'text' : _g, value = _a.value;
10
+ var _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, error = _a.error, handleOnChange = _a.handleOnChange, id = _a.id, info = _a.info, label = _a.label, optional = _a.optional, placeholder = _a.placeholder, _e = _a.required, required = _e === void 0 ? false : _e, prefix = _a.prefix, _f = _a.readOnly, readOnly = _f === void 0 ? false : _f, suffix = _a.suffix, _g = _a.type, type = _g === void 0 ? 'text' : _g, value = _a.value, min = _a.min, max = _a.max;
11
11
  return (react_1.default.createElement("div", null,
12
12
  react_1.default.createElement("div", { className: "flex justify-between" },
13
13
  label && (react_1.default.createElement("div", { className: "mb-2" },
@@ -21,7 +21,7 @@ var VistaTextInputV1 = function (_a) {
21
21
  react_1.default.createElement("span", { className: "text-gray-500 sm:text-sm" }, prefix))),
22
22
  react_1.default.createElement("input", { autoComplete: id, className: "block w-full rounded-md border-0 bg-white/5 dark:bg-white/5 py-1.5 text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-200 focus:ring-2 focus:ring-inset focus:ring-primary disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-300 disabled:ring-gray-200 sm:text-sm/6 dark:disabled:bg-gray-800 dark:disabled:text-gray-400 dark:disabled:ring-gray-700 placeholder:text-gray-500 ".concat(prefix && 'pl-7', " ").concat(className), disabled: disabled, id: id, name: id, onChange: function (e) {
23
23
  return handleOnChange(id, e.target.value);
24
- }, autoFocus: autoFocus, placeholder: placeholder, readOnly: readOnly, required: required, type: type, value: value }),
24
+ }, autoFocus: autoFocus, placeholder: placeholder, readOnly: readOnly, required: required, type: type, value: value, min: min, max: max }),
25
25
  suffix && (react_1.default.createElement("div", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3" },
26
26
  react_1.default.createElement("span", { id: "price-currency", className: "text-gray-500 sm:text-sm" }, suffix)))),
27
27
  info && !error && (react_1.default.createElement("p", { id: "".concat(id, "-info"), className: "mt-2 text-sm text-primary" }, info)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
6
6
  "build:next": "next build",