@amateescu/portal-ui-components 0.0.23-beta2 → 0.0.24

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/dist/main.js CHANGED
@@ -2,43 +2,46 @@ import { ConfirmationModal as e } from "./components/ConfirmationModal/Confirmat
2
2
  import { CustomButton as m } from "./components/CustomButton/CustomButton.js";
3
3
  import { CustomFooter as p } from "./components/CustomFooter/CustomFooter.js";
4
4
  import { CustomPagination as n } from "./components/CustomPagination/CustomPagination.js";
5
- import { ErrorModal as x } from "./components/ErrorModal/ErrorModal.js";
5
+ import { ErrorModal as i } from "./components/ErrorModal/ErrorModal.js";
6
6
  import { InfoModal as d } from "./components/InfoModal/InfoModal.js";
7
- import { KpiCard as c } from "./components/KpiCard/KpiCard.js";
8
- import { KpiWrapper as C } from "./components/KpiWrapper/KpiWrapper.js";
9
- import { LoadingAnimation as M } from "./components/LoadingAnimation/LoadingAnimation.js";
10
- import { Login as U } from "./components/Login/Login.js";
11
- import { SideMenu as y } from "./components/SideMenu/SideMenu.js";
12
- import { TotalDataGrid as D } from "./components/TotalDataGrid/TotalDataGrid.js";
13
- import { U as K } from "./UserInfoDropdown-DGaplQo6.js";
7
+ import { KpiCard as g } from "./components/KpiCard/KpiCard.js";
8
+ import { KpiWrapper as s } from "./components/KpiWrapper/KpiWrapper.js";
9
+ import { LoadingAnimation as L } from "./components/LoadingAnimation/LoadingAnimation.js";
10
+ import { Login as P } from "./components/Login/Login.js";
11
+ import { SideMenu as h } from "./components/SideMenu/SideMenu.js";
12
+ import { TotalDataGrid as A } from "./components/TotalDataGrid/TotalDataGrid.js";
13
+ import { U as I } from "./UserInfoDropdown-DGaplQo6.js";
14
14
  import { chunkArray as b } from "./portal-utils/chunkArray.js";
15
- import { cn as w } from "./portal-utils/cn.js";
16
- import { currency as E, date as F, datetime as G, decimal as S, fuelUnitPrice as T, fuelVolume as V, hours as W, number as j, time as q } from "./portal-utils/formatters.js";
17
- import { getPageCount as z } from "./portal-utils/pageCount.js";
15
+ import { cn as v } from "./portal-utils/cn.js";
16
+ import { currency as B, date as E, datetime as F, decimal as G, fuelUnitPrice as S, fuelVolume as T, hours as V, number as W, time as j } from "./portal-utils/formatters.js";
17
+ import { LogLevel as z, createLogger as H } from "./portal-utils/loggerService.js";
18
+ import { getPageCount as N } from "./portal-utils/pageCount.js";
18
19
  export {
19
20
  e as ConfirmationModal,
20
21
  m as CustomButton,
21
22
  p as CustomFooter,
22
23
  n as CustomPagination,
23
- x as ErrorModal,
24
+ i as ErrorModal,
24
25
  d as InfoModal,
25
- c as KpiCard,
26
- C as KpiWrapper,
27
- M as LoadingAnimation,
28
- U as Login,
29
- y as SideMenu,
30
- D as TotalDataGrid,
31
- K as UserInfoDropdown,
26
+ g as KpiCard,
27
+ s as KpiWrapper,
28
+ L as LoadingAnimation,
29
+ z as LogLevel,
30
+ P as Login,
31
+ h as SideMenu,
32
+ A as TotalDataGrid,
33
+ I as UserInfoDropdown,
32
34
  b as chunkArray,
33
- w as cn,
34
- E as currency,
35
- F as date,
36
- G as datetime,
37
- S as decimal,
38
- T as fuelUnitPrice,
39
- V as fuelVolume,
40
- z as getPageCount,
41
- W as hours,
42
- j as number,
43
- q as time
35
+ v as cn,
36
+ H as createLogger,
37
+ B as currency,
38
+ E as date,
39
+ F as datetime,
40
+ G as decimal,
41
+ S as fuelUnitPrice,
42
+ T as fuelVolume,
43
+ N as getPageCount,
44
+ V as hours,
45
+ W as number,
46
+ j as time
44
47
  };
@@ -1,4 +1,5 @@
1
1
  export { chunkArray } from './chunkArray';
2
2
  export { cn } from './cn';
3
3
  export { currency, date, datetime, decimal, fuelUnitPrice, fuelVolume, hours, number, time } from './formatters';
4
+ export { createLogger, LogLevel } from './loggerService';
4
5
  export { getPageCount } from './pageCount';
@@ -1,18 +1,21 @@
1
1
  import { chunkArray as o } from "./chunkArray.js";
2
2
  import { cn as m } from "./cn.js";
3
- import { currency as c, date as f, datetime as n, decimal as a, fuelUnitPrice as i, fuelVolume as l, hours as p, number as x, time as d } from "./formatters.js";
4
- import { getPageCount as h } from "./pageCount.js";
3
+ import { currency as c, date as f, datetime as a, decimal as n, fuelUnitPrice as g, fuelVolume as i, hours as l, number as p, time as x } from "./formatters.js";
4
+ import { LogLevel as L, createLogger as h } from "./loggerService.js";
5
+ import { getPageCount as P } from "./pageCount.js";
5
6
  export {
7
+ L as LogLevel,
6
8
  o as chunkArray,
7
9
  m as cn,
10
+ h as createLogger,
8
11
  c as currency,
9
12
  f as date,
10
- n as datetime,
11
- a as decimal,
12
- i as fuelUnitPrice,
13
- l as fuelVolume,
14
- h as getPageCount,
15
- p as hours,
16
- x as number,
17
- d as time
13
+ a as datetime,
14
+ n as decimal,
15
+ g as fuelUnitPrice,
16
+ i as fuelVolume,
17
+ P as getPageCount,
18
+ l as hours,
19
+ p as number,
20
+ x as time
18
21
  };
@@ -0,0 +1,12 @@
1
+ export declare enum LogLevel {
2
+ LOG = "log",
3
+ ERROR = "error",
4
+ WARN = "warn",
5
+ INFO = "info"
6
+ }
7
+ export declare const createLogger: <T>() => {
8
+ error: (message: string, ...args: T[]) => void;
9
+ warn: (message: string, ...args: T[]) => void;
10
+ info: (message: string, ...args: T[]) => void;
11
+ log: (message: string, ...args: T[]) => void;
12
+ };
@@ -0,0 +1,16 @@
1
+ var a = /* @__PURE__ */ ((r) => (r.LOG = "log", r.ERROR = "error", r.WARN = "warn", r.INFO = "info", r))(a || {});
2
+ const c = () => {
3
+ const r = (o, n, ...t) => {
4
+ console[o](n, ...t);
5
+ };
6
+ return {
7
+ error: (o, ...n) => r("error", o, ...n),
8
+ warn: (o, ...n) => r("warn", o, ...n),
9
+ info: (o, ...n) => r("info", o, ...n),
10
+ log: (o, ...n) => r("log", o, ...n)
11
+ };
12
+ };
13
+ export {
14
+ a as LogLevel,
15
+ c as createLogger
16
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@amateescu/portal-ui-components",
3
3
  "main": "dist/main.js",
4
4
  "types": "dist/main.d.ts",
5
- "version": "0.0.23-beta2",
5
+ "version": "0.0.24",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
@@ -72,7 +72,7 @@
72
72
  "typescript": "^5.6.3",
73
73
  "vite": "^5.4.11",
74
74
  "vite-plugin-dts": "^4.3.0",
75
- "vite-plugin-lib-inject-css": "^2.1.1",
75
+ "vite-plugin-lib-inject-css": "^2.2.1",
76
76
  "vite-plugin-svgr": "^4.3.0"
77
77
  },
78
78
  "sideEffects": [