@appcorp/app-corp-vista 0.0.78 → 0.0.80

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,7 +18,7 @@ var vistaButtonSizeMap = (_a = {},
18
18
  var vistaButtonVariantMap = (_b = {},
19
19
  _b[vista_button_type_1.VISTA_BUTTON_VARIANT.PRIMARY] = 'bg-primary text-white hover:bg-primary/70 focus-visible:outline-primary/50',
20
20
  _b[vista_button_type_1.VISTA_BUTTON_VARIANT.SECONDARY] = 'bg-white text-gray-900 hover:bg-gray-50 ring-1 ring-inset ring-gray-300',
21
- _b[vista_button_type_1.VISTA_BUTTON_VARIANT.ICON] = 'bg-primary text-white hover:bg-primary/70 focus-visible:outline-primary/50 px-2 py-2 !rounded-full',
21
+ _b[vista_button_type_1.VISTA_BUTTON_VARIANT.ICON] = 'bg-gray-400 text-white hover:bg-gray-500 focus-visible:outline-primary/50 px-2 py-2 !rounded-full',
22
22
  _b);
23
23
  var vistaButtonRoundedMap = (_c = {},
24
24
  _c[vista_button_type_1.VISTA_BUTTON_ROUNDED.NONE] = 'rounded-none',
@@ -31,7 +31,7 @@ var vistaButtonRoundedMap = (_c = {},
31
31
  _c[vista_button_type_1.VISTA_BUTTON_ROUNDED.FULL] = 'rounded-full',
32
32
  _c);
33
33
  var VistaButtonV1 = function (_a) {
34
- var _b = _a.disabled, disabled = _b === void 0 ? false : _b, handleOnClick = _a.handleOnClick, icon = _a.icon, label = _a.label, prefixIcon = _a.prefixIcon, _c = _a.rounded, rounded = _c === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _c, _d = _a.size, size = _d === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.SM : _d, suffixIcon = _a.suffixIcon, _e = _a.variant, variant = _e === void 0 ? vista_button_type_1.VISTA_BUTTON_VARIANT.PRIMARY : _e, className = _a.className;
34
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, handleOnClick = _a.handleOnClick, icon = _a.icon, label = _a.label, prefixIcon = _a.prefixIcon, _d = _a.rounded, rounded = _d === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _d, _e = _a.size, size = _e === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.SM : _e, suffixIcon = _a.suffixIcon, _f = _a.variant, variant = _f === void 0 ? vista_button_type_1.VISTA_BUTTON_VARIANT.PRIMARY : _f;
35
35
  return (react_1.default.createElement("button", { className: "flex flex-row justify-center items-center font-semibold shadow-sm focus-visible:outline focus-visible:outline-offset-2 disabled:bg-gray-200 disabled:text-gray-400 ".concat(className, " ").concat(vistaButtonVariantMap[variant], " ").concat(vistaButtonRoundedMap[rounded], " ").concat(vistaButtonSizeMap[size]), onClick: handleOnClick, disabled: disabled, type: "button" },
36
36
  react_1.default.createElement("div", { className: 'flex flex-row justify-center items-center gap-2' },
37
37
  react_1.default.createElement(react_1.default.Fragment, null, variant !== vista_button_type_1.VISTA_BUTTON_VARIANT.ICON && prefixIcon && prefixIcon),
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VistaChatListItemV1 = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
- var vista_avatar_type_1 = require("@appcorp/app-corp-designs/type/vista-avatar-type");
9
- var vista_avatar_v1_1 = require("@appcorp/app-corp-designs/molecules/vista-avatar-v1");
8
+ var vista_avatar_type_1 = require("../../type/vista-avatar-type");
9
+ var vista_avatar_v1_1 = require("../vista-avatar-v1/vista-avatar-v1");
10
10
  var util_functions_1 = require("@react-pakistan/util-functions");
11
11
  var VistaChatListItemV1 = function (_a) {
12
12
  var firstName = _a.firstName, lastName = _a.lastName, timestamp = _a.timestamp, lastMessage = _a.lastMessage;
13
13
  return (react_1.default.createElement("div", { className: "flex cursor-pointer items-center justify-between gap-3 p-3 hover:bg-gray-100 dark:hover:bg-gray-600" },
14
- react_1.default.createElement(vista_avatar_v1_1.VistaAvatarV1, { alt: "avatar", size: vista_avatar_type_1.VISTA_AVATAR_SIZES.SM, status: vista_avatar_type_1.VISTA_AVATAR_STATUS.ONLINE, statusPosition: vista_avatar_type_1.VISTA_STATUS_POSITION.TOP_RIGHT }),
14
+ react_1.default.createElement(vista_avatar_v1_1.VistaAvatarV1, { alt: "avatar", size: vista_avatar_type_1.VISTA_AVATAR_SIZE.SM, status: vista_avatar_type_1.VISTA_AVATAR_STATUS.ONLINE, statusPosition: vista_avatar_type_1.VISTA_STATUS_POSITION.TOP_RIGHT }),
15
15
  react_1.default.createElement("div", { className: "flex-1" },
16
16
  react_1.default.createElement("p", { className: "font-medium dark:text-gray-300" },
17
17
  firstName,
@@ -28,13 +28,13 @@ var VistaDrawerV1 = function (_a) {
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,
30
30
  react_1.default.createElement("div", { className: "flex min-h-0 flex-1 flex-col" },
31
- react_1.default.createElement("div", { className: "bg-indigo-700 px-4 py-6 sm:px-6" },
31
+ react_1.default.createElement("div", { className: "bg-primary px-4 py-6 sm:px-6" },
32
32
  react_1.default.createElement("div", { className: "flex items-start justify-between" },
33
33
  react_1.default.createElement(react_2.DialogTitle, { className: "text-base font-semibold text-white" }, title),
34
34
  react_1.default.createElement("div", { className: "ml-3 flex h-7 items-center" },
35
35
  react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { handleOnClick: function () { return handleSetIsOpen(false); }, icon: react_1.default.createElement(outline_1.XMarkIcon, { "aria-hidden": "true", className: "size-6" }), variant: vista_button_type_1.VISTA_BUTTON_VARIANT.ICON }))),
36
36
  description && (react_1.default.createElement("div", { className: "mt-1" },
37
- react_1.default.createElement("p", { className: "text-sm text-indigo-300" }, description)))))),
37
+ react_1.default.createElement("p", { className: "text-sm text-gray-300" }, description)))))),
38
38
  react_1.default.createElement("div", { className: "relative flex-1 px-4 py-6 sm:px-6 overflow-y-scroll text-gray-900 dark:text-white" }, children),
39
39
  react_1.default.createElement("div", { className: "flex shrink-0 justify-end px-4 py-4 gap-4" },
40
40
  react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { disabled: cancelDisabled, handleOnClick: function () { return handleCancelOnClick(false); }, label: cancelLabel, prefixIcon: cancelPrefixIcon, rounded: cancelRounded, size: cancelSize, suffixIcon: cancelSuffixIcon, variant: vista_button_type_1.VISTA_BUTTON_VARIANT.SECONDARY }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
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",
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "dependencies": {},
30
30
  "devDependencies": {
31
- "@appcorp/app-corp-designs": "^0.4.62",
31
+ "@appcorp/app-corp-designs": "^0.4.64",
32
32
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
33
33
  "@fortawesome/react-fontawesome": "^0.2.2",
34
34
  "@headlessui/react": "^2.2.0",
35
- "@headlessui/tailwindcss": "^0.2.1",
35
+ "@headlessui/tailwindcss": "^0.2.2",
36
36
  "@heroicons/react": "^2.2.0",
37
37
  "@mdx-js/loader": "^3.1.0",
38
38
  "@mdx-js/react": "^3.1.0",
@@ -41,21 +41,21 @@
41
41
  "@react-jvectormap/core": "^1.0.4",
42
42
  "@react-jvectormap/world": "^1.1.2",
43
43
  "@react-pakistan/react-icon-collection": "^3.5.0",
44
- "@react-pakistan/util-functions": "^1.23.40",
44
+ "@react-pakistan/util-functions": "^1.23.43",
45
45
  "@remixicon/react": "^4.6.0",
46
- "@storybook/addon-essentials": "8.5.1",
47
- "@storybook/addon-interactions": "8.5.1",
48
- "@storybook/addon-links": "8.5.1",
49
- "@storybook/addon-onboarding": "^8.5.1",
50
- "@storybook/addon-themes": "^8.5.1",
51
- "@storybook/blocks": "8.5.1",
52
- "@storybook/nextjs": "8.5.1",
53
- "@storybook/react": "8.5.1",
54
- "@storybook/test": "8.5.1",
55
- "@storybook/types": "8.5.1",
56
- "@tailwindcss/cli": "^4.0.3",
46
+ "@storybook/addon-essentials": "^8",
47
+ "@storybook/addon-interactions": "^8",
48
+ "@storybook/addon-links": "^8",
49
+ "@storybook/addon-onboarding": "^8",
50
+ "@storybook/addon-themes": "^8",
51
+ "@storybook/blocks": "^8",
52
+ "@storybook/nextjs": "^8",
53
+ "@storybook/react": "^8",
54
+ "@storybook/test": "^8",
55
+ "@storybook/types": "^8",
56
+ "@tailwindcss/cli": "^4",
57
57
  "@tailwindcss/forms": "^0.5.10",
58
- "@tailwindcss/postcss": "^4.0.3",
58
+ "@tailwindcss/postcss": "^4",
59
59
  "@types/node": "^22",
60
60
  "@types/react": "^19",
61
61
  "@types/react-copy-to-clipboard": "^5.0.7",
@@ -69,7 +69,7 @@
69
69
  "eslint-config-next": "^15",
70
70
  "eslint-plugin-storybook": "^0.11.2",
71
71
  "fast-glob": "^3.3.3",
72
- "framer-motion": "^12.0.5",
72
+ "framer-motion": "^12.4.2",
73
73
  "husky": "^9.1.7",
74
74
  "next": "^15",
75
75
  "next-intl": "^3.26.3",
@@ -80,7 +80,7 @@
80
80
  "react-dom": "^19",
81
81
  "storybook": "8.5.1",
82
82
  "swr": "^2.3.0",
83
- "tailwindcss": "^4.0.3",
83
+ "tailwindcss": "^4",
84
84
  "tailwindcss-animate": "^1.0.7",
85
85
  "typescript": "^5"
86
86
  },