eastern-area-fe-package 0.2.1 → 0.2.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.
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,2 @@
1
+ export declare const getFilterParams: <T>(params?: T) => Record<string, string> | undefined;
2
+ export declare const buildUrlWithSearchParams: <T>(baseUrl: string, params?: T) => string;
@@ -0,0 +1,6 @@
1
+ export interface Government {
2
+ value: string;
3
+ labelAr: string;
4
+ labelEn: string;
5
+ }
6
+ export declare const GOVERNMENTS: Government[];
@@ -1,3 +1,9 @@
1
+ export { cn } from './cn';
2
+ export { getFilterParams, buildUrlWithSearchParams } from './filterParams';
3
+ export { GOVERNMENTS, type Government } from './governments';
4
+ export { isValidUUID } from './isValidUUID';
5
+ export { ALL_ICONS_LIST, type IconName } from './iconsList';
6
+ export { emailRegExp, idRegExp, phoneNumberRegExp, landPhoneNumberRegExp, lettersWithSpacesRegExp, passportRegExp, postalCodeRegExp, } from './regExp';
7
+ export { STATUS_CONFIG, type StatusConfig } from './statusConfig';
1
8
  export { STATIC_ICONS_LIST, STATIC_ICONS_MAP, type StaticIconName } from './staticIcons';
2
9
  export { TABLER_ICONS_LIST, TABLER_ICONS_MAP, type TablerIconName } from './tablerIcons';
3
- export { ALL_ICONS_LIST, type IconName } from './iconsList';
@@ -0,0 +1 @@
1
+ export declare const isValidUUID: (uuid: string) => boolean;
@@ -0,0 +1,7 @@
1
+ export declare const emailRegExp: RegExp;
2
+ export declare const idRegExp: RegExp;
3
+ export declare const phoneNumberRegExp: RegExp;
4
+ export declare const landPhoneNumberRegExp: RegExp;
5
+ export declare const lettersWithSpacesRegExp: RegExp;
6
+ export declare const passportRegExp: RegExp;
7
+ export declare const postalCodeRegExp: RegExp;
@@ -0,0 +1,6 @@
1
+ import { RequestStatus } from '../types/request.types';
2
+ export interface StatusConfig {
3
+ label: string;
4
+ color: string;
5
+ }
6
+ export declare const STATUS_CONFIG: Record<RequestStatus | string | number, StatusConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eastern-area-fe-package",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Shared React components and utilities between eastern-area-fe and eastern-area-crm-fe",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -40,11 +40,14 @@
40
40
  ],
41
41
  "license": "UNLICENSED",
42
42
  "peerDependencies": {
43
+ "clsx": ">=2",
43
44
  "react": ">=18",
44
- "react-dom": ">=18"
45
+ "react-dom": ">=18",
46
+ "tailwind-merge": ">=3"
45
47
  },
46
48
  "devDependencies": {
47
49
  "@tabler/icons-react": "^3.46.0",
50
+ "clsx": "^2.1.1",
48
51
  "@types/react": "^19.2.17",
49
52
  "@types/react-dom": "^19.2.3",
50
53
  "@typescript/typescript6": "^6.0.2",
@@ -57,6 +60,7 @@
57
60
  "eslint-plugin-react": "^7.37.5",
58
61
  "eslint-plugin-react-hooks": "^4.6.2",
59
62
  "prettier": "^3.9.6",
63
+ "tailwind-merge": "^3.6.0",
60
64
  "vite": "^8.1.5",
61
65
  "vite-plugin-dts": "^5.0.3",
62
66
  "vite-plugin-svgr": "^5.2.0"