@krosoft/react 0.0.218 → 0.0.220
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/README.md +31 -0
- package/dist/{AppActions-BCXERyyB.js → AppActions-BFmagl91.js} +1 -1
- package/dist/{AppSubTitle-H8ElNObI.js → AppSubTitle-BMQMoehZ.js} +1 -1
- package/dist/AppVerticalTabs-0DrrDO3S.js +101 -0
- package/dist/{ConfirmationDialog-BmxaMEYz.js → ConfirmationDialog-CFsh-Eui.js} +62 -61
- package/dist/DataTable-Cpbp6yse.js +551 -0
- package/dist/ErrorAlert-D_203tKa.js +21 -0
- package/dist/ErrorState-DfJ009uc.js +12 -0
- package/dist/GenericForm-q9dvYl_h.js +342 -0
- package/dist/ImageInput-BYXz8wM1.js +68 -0
- package/dist/{KpiCardsLayout-XZTxB8FV.js → KpiCardsLayout-B-lMaUMA.js} +4 -4
- package/dist/{MultiSelect-Cj8vgAXJ.js → MultiSelect-Dkz1dgXo.js} +52 -51
- package/dist/{PieChart-D6y5EQnh.js → PieChart-bDy_V9Xt.js} +82 -81
- package/dist/SearchInput-CJ2YZpmB.js +244 -0
- package/dist/{SkeletonCards-CYo_lvKx.js → SkeletonCards-Bg2ygjwy.js} +1 -1
- package/dist/{TableFilter-DbnGaGKL.js → TableFilter-u6F06nMx.js} +133 -130
- package/dist/ThemeSelector-BRpEgvX8.js +49 -0
- package/dist/Topbar-bIyAunNd.js +318 -0
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/charts/ChartCard.d.ts.map +1 -1
- package/dist/components/core/charts/index.js +1 -1
- package/dist/components/core/dialogs/FormDialog.d.ts.map +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/ActiveFilters.d.ts.map +1 -1
- package/dist/components/core/filters/AdvancedFilters.d.ts.map +1 -1
- package/dist/components/core/filters/FilterField.d.ts.map +1 -1
- package/dist/components/core/filters/SearchableFilterPill.d.ts.map +1 -1
- package/dist/components/core/filters/TableFilter.d.ts.map +1 -1
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/GenericForm.d.ts.map +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +18 -18
- package/dist/components/core/inputs/DateRangePicker.d.ts.map +1 -1
- package/dist/components/core/inputs/ImageInput.d.ts.map +1 -1
- package/dist/components/core/inputs/MultiSelect.d.ts.map +1 -1
- package/dist/components/core/inputs/SearchInput.d.ts +1 -1
- package/dist/components/core/inputs/SearchInput.d.ts.map +1 -1
- package/dist/components/core/inputs/SearchableSelect.d.ts.map +1 -1
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +3 -3
- package/dist/components/core/navbar/GlobalSearch.d.ts.map +1 -1
- package/dist/components/core/navbar/Sidebar.d.ts.map +1 -1
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/ErrorAlert.d.ts.map +1 -1
- package/dist/components/core/states/ErrorState.d.ts.map +1 -1
- package/dist/components/core/states/index.js +2 -2
- package/dist/components/core/table/DataTable.d.ts.map +1 -1
- package/dist/components/core/table/TableBody.d.ts +1 -1
- package/dist/components/core/table/TableBody.d.ts.map +1 -1
- package/dist/components/core/table/TablePagination.d.ts.map +1 -1
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/AppVerticalTabs.d.ts.map +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/ThemeSelector.d.ts.map +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +18 -18
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/hooks/behavior/index.js +1 -1
- package/dist/hooks/behavior/useConfirmDeleteDialog.d.ts +1 -1
- package/dist/hooks/behavior/useConfirmDeleteDialog.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/ui/index.js +1 -1
- package/dist/hooks/ui/useTheme.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +7 -0
- package/dist/i18n/krosoftLocales.d.ts +175 -0
- package/dist/i18n/krosoftLocales.d.ts.map +1 -0
- package/dist/i18n/useKrosoftTranslation.d.ts +15 -0
- package/dist/i18n/useKrosoftTranslation.d.ts.map +1 -0
- package/dist/providers/index.js +1 -1
- package/dist/{sheet-BQmtrGf2.js → sheet-CDqLa-FP.js} +105 -108
- package/dist/useKrosoftTranslation-DdcylBY2.js +43 -0
- package/dist/usePage-Bhb81ffo.js +82 -0
- package/dist/useTheme-Cmw14Zxi.js +25 -0
- package/package.json +1 -1
- package/dist/AppVerticalTabs-aJmAVu6F.js +0 -100
- package/dist/DataTable-0-lae9KY.js +0 -550
- package/dist/ErrorAlert-SrIcU1mM.js +0 -17
- package/dist/ErrorState-CmaxuJyW.js +0 -8
- package/dist/GenericForm-DJR7PD-i.js +0 -341
- package/dist/ImageInput-DYe2XPNZ.js +0 -67
- package/dist/SearchInput-oeq0NBIc.js +0 -251
- package/dist/ThemeSelector-BFC37dSl.js +0 -48
- package/dist/Topbar-DUq-UeR0.js +0 -306
- package/dist/usePage-BFE9lxI1.js +0 -84
- package/dist/useTheme-CSr_h5xJ.js +0 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppVerticalTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/core/tabs/AppVerticalTabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppVerticalTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/core/tabs/AppVerticalTabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,gBAAgB,oBAAoB,KAAG,KAAK,CAAC,GAAG,CAAC,OAqFhF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/core/theme/ThemeSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/core/theme/ThemeSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEjE,UAAU,kBAAkB;IAC1B,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC7B;AAED,wBAAgB,aAAa,CAAC,EAAE,YAAY,EAAE,OAAkB,EAAE,EAAE,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoDzG"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { D as r, M as o } from "../MetricCard-B0xnFyim.js";
|
|
2
|
-
import { K as t, a as n, S as i, b as l } from "../SkeletonCards-
|
|
3
|
-
import { B as p, a as u, C, b as g, c as d, L as m, P as S, g as T } from "../PieChart-
|
|
4
|
-
import { A as D, C as M, F as x } from "../ConfirmationDialog-
|
|
5
|
-
import { C as h, j as f, k as P, l as I, m as w, n as v, o as F, p as L, q as B, D as G, a as k, b as H, c as R, d as y, e as N, f as O, g as V, h as E, i as z, I as K, S as j, r as q, s as U, t as _, u as J, v as Q, w as W, x as X, y as Y, z as Z } from "../sheet-
|
|
2
|
+
import { K as t, a as n, S as i, b as l } from "../SkeletonCards-Bg2ygjwy.js";
|
|
3
|
+
import { B as p, a as u, C, b as g, c as d, L as m, P as S, g as T } from "../PieChart-bDy_V9Xt.js";
|
|
4
|
+
import { A as D, C as M, F as x } from "../ConfirmationDialog-CFsh-Eui.js";
|
|
5
|
+
import { C as h, j as f, k as P, l as I, m as w, n as v, o as F, p as L, q as B, D as G, a as k, b as H, c as R, d as y, e as N, f as O, g as V, h as E, i as z, I as K, S as j, r as q, s as U, t as _, u as J, v as Q, w as W, x as X, y as Y, z as Z } from "../sheet-CDqLa-FP.js";
|
|
6
6
|
import { A as aa, a as ea, b as ra, c as oa, d as sa, e as ta, f as na, g as ia, h as la, i as ba, j as pa, k as ua, l as Ca, m as ga, n as da, o as ma, B as Sa, p as Ta, q as ca, r as Da, s as Ma, t as xa, u as Aa, v as ha, C as fa, w as Pa, x as Ia, y as wa, z as va, D as Fa, E as La, F as Ba, G as Ga, H as ka, I as Ha, J as Ra, K as ya, L as Na, M as Oa, N as Va, O as Ea, Q as za, R as Ka, S as ja, T as qa, U as Ua, V as _a, W as Ja, X as Qa, Y as Wa, Z as Xa, _ as Ya, $ as Za, a0 as $a, a1 as ae, a2 as ee, a3 as re, a4 as oe, a5 as se, a6 as te, a7 as ne, a8 as ie, a9 as le, aa as be, ab as pe, ac as ue, ad as Ce, ae as ge, af as de, ag as me, ah as Se, ai as Te, aj as ce, ak as De, al as Me, am as xe, an as Ae, ao as he, ap as fe, aq as Pe, ar as Ie, as as we, at as ve, au as Fe, av as Le, aw as Be, ax as Ge, ay as ke, az as He, aA as Re, aB as ye, aC as Ne, aD as Oe, aE as Ve, aF as Ee, aG as ze, aH as Ke, aI as je, aJ as qe, aK as Ue, aL as _e, aM as Je, aN as Qe, aO as We, aP as Xe, aQ as Ye, aR as Ze, aS as $e, aT as ar, aU as er, aV as rr, aW as or, aX as sr, aY as tr, aZ as nr, a_ as ir, a$ as lr, b0 as br, b1 as pr, b2 as ur, P as Cr, b3 as gr, b4 as dr, b5 as mr, b6 as Sr, b7 as Tr, b8 as cr, b9 as Dr, ba as Mr, bb as xr, bc as Ar, bd as hr, be as fr, bf as Pr, bg as Ir, bh as wr, bi as vr, bj as Fr, bk as Lr, bl as Br, bm as Gr, bn as kr, bo as Hr, bp as Rr, bq as yr, br as Nr, bs as Or, bt as Vr, bu as Er, bv as zr, bw as Kr, bx as jr, by as qr, bz as Ur, bA as _r } from "../toggle-group-DLLrEwv2.js";
|
|
7
|
-
import { A as Qr, a as Wr, F as Xr, S as Yr, T as Zr } from "../TableFilter-
|
|
8
|
-
import { G as ao } from "../GenericForm-
|
|
9
|
-
import { I as ro } from "../ImageInput-
|
|
10
|
-
import { D as so, a as to, S as no, b as io } from "../SearchInput-
|
|
11
|
-
import { M as bo } from "../MultiSelect-
|
|
12
|
-
import { A as uo } from "../AppActions-
|
|
13
|
-
import { A as go, K as mo } from "../KpiCardsLayout-
|
|
14
|
-
import { A as To } from "../AppSubTitle-
|
|
7
|
+
import { A as Qr, a as Wr, F as Xr, S as Yr, T as Zr } from "../TableFilter-u6F06nMx.js";
|
|
8
|
+
import { G as ao } from "../GenericForm-q9dvYl_h.js";
|
|
9
|
+
import { I as ro } from "../ImageInput-BYXz8wM1.js";
|
|
10
|
+
import { D as so, a as to, S as no, b as io } from "../SearchInput-CJ2YZpmB.js";
|
|
11
|
+
import { M as bo } from "../MultiSelect-Dkz1dgXo.js";
|
|
12
|
+
import { A as uo } from "../AppActions-BFmagl91.js";
|
|
13
|
+
import { A as go, K as mo } from "../KpiCardsLayout-B-lMaUMA.js";
|
|
14
|
+
import { A as To } from "../AppSubTitle-BMQMoehZ.js";
|
|
15
15
|
import { A as Do } from "../AppTitle-D15YXeMx.js";
|
|
16
|
-
import { G as xo, S as Ao, a as ho, b as fo, T as Po } from "../Topbar-
|
|
17
|
-
import { E as wo } from "../ErrorAlert-
|
|
18
|
-
import { E as Fo } from "../ErrorState-
|
|
16
|
+
import { G as xo, S as Ao, a as ho, b as fo, T as Po } from "../Topbar-bIyAunNd.js";
|
|
17
|
+
import { E as wo } from "../ErrorAlert-D_203tKa.js";
|
|
18
|
+
import { E as Fo } from "../ErrorState-DfJ009uc.js";
|
|
19
19
|
import { L as Bo } from "../LoadingState-BN0YaPSs.js";
|
|
20
|
-
import { D as ko, T as Ho, a as Ro, b as yo, c as No, d as Oo, e as Vo } from "../DataTable-
|
|
21
|
-
import { A as zo, a as Ko, b as jo, c as qo } from "../AppVerticalTabs-
|
|
22
|
-
import { T as _o } from "../ThemeSelector-
|
|
20
|
+
import { D as ko, T as Ho, a as Ro, b as yo, c as No, d as Oo, e as Vo } from "../DataTable-Cpbp6yse.js";
|
|
21
|
+
import { A as zo, a as Ko, b as jo, c as qo } from "../AppVerticalTabs-0DrrDO3S.js";
|
|
22
|
+
import { T as _o } from "../ThemeSelector-BRpEgvX8.js";
|
|
23
23
|
import { A as Qo, a as Wo, b as Xo } from "../alert-B9F1N9Qk.js";
|
|
24
24
|
import { A as Zo, C as $o, a as as, b as es, R as rs, c as os, d as ss, T as ts, e as ns } from "../toaster-B1J0puB_.js";
|
|
25
25
|
import { B as ls, T as bs, a as ps, b as us, c as Cs, d as gs, e as ds, f as ms } from "../tooltip-DVeqVwqV.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAQZ,CAAC;AAGF,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,aAAa,GAAI,qEAAqE,kBAAkB,KAAG,KAAK,CAAC,YAoBtH,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAcjB,CAAC;AAIF,QAAA,MAAM,WAAW;;;;;;;;sFAEhB,CAAC;AAIF,QAAA,MAAM,YAAY;;;;;;uJAEjB,CAAC;AAIF,QAAA,MAAM,YAAY;;;;;;;;;;sFAWjB,CAAC;AAIF,QAAA,MAAM,gBAAgB;;;;;;sFAGoH,CAAC;AAG3I,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAWhB,CAAC;AAIF,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { A as Ye, a as Ze, b as _e } from "../../alert-B9F1N9Qk.js";
|
|
|
3
3
|
import { A as ao, C as eo, a as oo, b as so, R as ro, c as to, d as no, T as io, e as lo } from "../../toaster-B1J0puB_.js";
|
|
4
4
|
import { B as bo, T as go, a as po, b as Co, c as mo, d as So, e as To, f as co } from "../../tooltip-DVeqVwqV.js";
|
|
5
5
|
import { C as Do, a as xo, b as wo, c as ho, d as Io, e as Po, f as vo, g as Ao, h as Fo, i as Bo, j as Lo, k as fo } from "../../chart-DntJZGxB.js";
|
|
6
|
-
import { C as Ro, j as ko, k as Ho, l as No, m as yo, n as Oo, o as Vo, p as zo, q as jo, D as Eo, a as qo, b as Uo, c as Jo, d as Ko, e as Qo, f as Wo, g as Xo, h as Yo, i as Zo, I as _o, S as $o, r as as, s as es, t as os, u as ss, v as rs, w as ts, x as ns, y as is, z as ls } from "../../sheet-
|
|
6
|
+
import { C as Ro, j as ko, k as Ho, l as No, m as yo, n as Oo, o as Vo, p as zo, q as jo, D as Eo, a as qo, b as Uo, c as Jo, d as Ko, e as Qo, f as Wo, g as Xo, h as Yo, i as Zo, I as _o, S as $o, r as as, s as es, t as os, u as ss, v as rs, w as ts, x as ns, y as is, z as ls } from "../../sheet-CDqLa-FP.js";
|
|
7
7
|
import { S as bs, a as gs, b as ps, c as Cs, d as ds, e as ms, f as Ss, g as Ts, h as cs, i as Ms } from "../../select-BpjFWqAY.js";
|
|
8
8
|
import { S as xs } from "../../skeleton-BX4RcsiK.js";
|
|
9
9
|
import { toast as hs } from "sonner";
|
|
@@ -6,6 +6,6 @@ interface UseConfirmDeleteDialogProps {
|
|
|
6
6
|
onConfirm: (id: string) => Promise<any>;
|
|
7
7
|
onReset?: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const useConfirmDeleteDialog: ({ titleKey, descriptionKey, confirmKey, onConfirm, onReset
|
|
9
|
+
export declare const useConfirmDeleteDialog: ({ titleKey, descriptionKey, confirmKey, onConfirm, onReset }: UseConfirmDeleteDialogProps) => ConfirmDialogConfig;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=useConfirmDeleteDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfirmDeleteDialog.d.ts","sourceRoot":"","sources":["../../../src/hooks/behavior/useConfirmDeleteDialog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useConfirmDeleteDialog.d.ts","sourceRoot":"","sources":["../../../src/hooks/behavior/useConfirmDeleteDialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIlE,UAAU,2BAA2B;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,GAAI,8DAA8D,2BAA2B,KAAG,mBAiBlI,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as s, a, b as u, c as r, d as t } from "../usePage-
|
|
1
|
+
import { u as s, a, b as u, c as r, d as t } from "../usePage-Bhb81ffo.js";
|
|
2
2
|
import { u as f } from "../useSidebar-BJuALHqQ.js";
|
|
3
3
|
import { u as l } from "../useDataTable-CxcA5S-s.js";
|
|
4
4
|
import { u as x } from "../useDocumentTitle-WNwdPz-I.js";
|
|
@@ -6,7 +6,7 @@ import { u as b } from "../useMobile-DN1_OMDB.js";
|
|
|
6
6
|
import { u as c } from "../useNotifications-zbUhCvF_.js";
|
|
7
7
|
import { u as d } from "../useScrollFade-BA4KqJYp.js";
|
|
8
8
|
import { u as S } from "../useServerTable-UvTY6L1N.js";
|
|
9
|
-
import { u as h } from "../useTheme-
|
|
9
|
+
import { u as h } from "../useTheme-Cmw14Zxi.js";
|
|
10
10
|
import { t as F, u as M } from "../useToast-BFTk4lWz.js";
|
|
11
11
|
export {
|
|
12
12
|
F as toast,
|
package/dist/hooks/ui/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { u } from "../../useMobile-DN1_OMDB.js";
|
|
|
4
4
|
import { u as f } from "../../useNotifications-zbUhCvF_.js";
|
|
5
5
|
import { u as x } from "../../useScrollFade-BA4KqJYp.js";
|
|
6
6
|
import { u as i } from "../../useServerTable-UvTY6L1N.js";
|
|
7
|
-
import { u as b } from "../../useTheme-
|
|
7
|
+
import { u as b } from "../../useTheme-Cmw14Zxi.js";
|
|
8
8
|
import { t as n, u as D } from "../../useToast-BFTk4lWz.js";
|
|
9
9
|
export {
|
|
10
10
|
n as toast,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/useTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/useTheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE;;;kCAKtB,MAAM;;;;;;EA8B5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Namespace i18next réservé aux libellés du package : boutons « Annuler »,
|
|
3
|
+
* « Aucun résultat », placeholders de recherche… Séparé du namespace de
|
|
4
|
+
* l'application pour qu'aucune clé ne se marche dessus.
|
|
5
|
+
*/
|
|
6
|
+
export declare const KROSOFT_NAMESPACE = "krosoft";
|
|
7
|
+
/** Traductions embarquées, exportées pour être fusionnées ou surchargées côté application. */
|
|
8
|
+
export declare const krosoftLocales: {
|
|
9
|
+
fr: {
|
|
10
|
+
actions: {
|
|
11
|
+
cancel: string;
|
|
12
|
+
save: string;
|
|
13
|
+
saving: string;
|
|
14
|
+
edit: string;
|
|
15
|
+
delete: string;
|
|
16
|
+
};
|
|
17
|
+
states: {
|
|
18
|
+
loading: string;
|
|
19
|
+
error: string;
|
|
20
|
+
errorPrefix: string;
|
|
21
|
+
errorTitle: string;
|
|
22
|
+
noResult: string;
|
|
23
|
+
noResultDot: string;
|
|
24
|
+
noData: string;
|
|
25
|
+
underConstruction: string;
|
|
26
|
+
comingSoon: string;
|
|
27
|
+
};
|
|
28
|
+
search: {
|
|
29
|
+
trigger: string;
|
|
30
|
+
placeholder: string;
|
|
31
|
+
globalTitle: string;
|
|
32
|
+
globalDescription: string;
|
|
33
|
+
commandTitle: string;
|
|
34
|
+
commandDescription: string;
|
|
35
|
+
loading: string;
|
|
36
|
+
};
|
|
37
|
+
select: {
|
|
38
|
+
placeholder: string;
|
|
39
|
+
create: string;
|
|
40
|
+
section: string;
|
|
41
|
+
theme: string;
|
|
42
|
+
};
|
|
43
|
+
date: {
|
|
44
|
+
pickDate: string;
|
|
45
|
+
pickPeriod: string;
|
|
46
|
+
clearPeriod: string;
|
|
47
|
+
};
|
|
48
|
+
filters: {
|
|
49
|
+
advanced: string;
|
|
50
|
+
more: string;
|
|
51
|
+
yes: string;
|
|
52
|
+
no: string;
|
|
53
|
+
};
|
|
54
|
+
form: {
|
|
55
|
+
validationTitle: string;
|
|
56
|
+
validationMessage: string;
|
|
57
|
+
submitError: string;
|
|
58
|
+
};
|
|
59
|
+
image: {
|
|
60
|
+
empty: string;
|
|
61
|
+
upload: string;
|
|
62
|
+
invalidType: string;
|
|
63
|
+
tooLarge: string;
|
|
64
|
+
};
|
|
65
|
+
table: {
|
|
66
|
+
previousPage: string;
|
|
67
|
+
nextPage: string;
|
|
68
|
+
};
|
|
69
|
+
sidebar: {
|
|
70
|
+
menu: string;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
theme: {
|
|
74
|
+
updatedTitle: string;
|
|
75
|
+
updatedMessage: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
en: {
|
|
79
|
+
actions: {
|
|
80
|
+
cancel: string;
|
|
81
|
+
save: string;
|
|
82
|
+
saving: string;
|
|
83
|
+
edit: string;
|
|
84
|
+
delete: string;
|
|
85
|
+
};
|
|
86
|
+
states: {
|
|
87
|
+
loading: string;
|
|
88
|
+
error: string;
|
|
89
|
+
errorPrefix: string;
|
|
90
|
+
errorTitle: string;
|
|
91
|
+
noResult: string;
|
|
92
|
+
noResultDot: string;
|
|
93
|
+
noData: string;
|
|
94
|
+
underConstruction: string;
|
|
95
|
+
comingSoon: string;
|
|
96
|
+
};
|
|
97
|
+
search: {
|
|
98
|
+
trigger: string;
|
|
99
|
+
placeholder: string;
|
|
100
|
+
globalTitle: string;
|
|
101
|
+
globalDescription: string;
|
|
102
|
+
commandTitle: string;
|
|
103
|
+
commandDescription: string;
|
|
104
|
+
loading: string;
|
|
105
|
+
};
|
|
106
|
+
select: {
|
|
107
|
+
placeholder: string;
|
|
108
|
+
create: string;
|
|
109
|
+
section: string;
|
|
110
|
+
theme: string;
|
|
111
|
+
};
|
|
112
|
+
date: {
|
|
113
|
+
pickDate: string;
|
|
114
|
+
pickPeriod: string;
|
|
115
|
+
clearPeriod: string;
|
|
116
|
+
};
|
|
117
|
+
filters: {
|
|
118
|
+
advanced: string;
|
|
119
|
+
more: string;
|
|
120
|
+
yes: string;
|
|
121
|
+
no: string;
|
|
122
|
+
};
|
|
123
|
+
form: {
|
|
124
|
+
validationTitle: string;
|
|
125
|
+
validationMessage: string;
|
|
126
|
+
submitError: string;
|
|
127
|
+
};
|
|
128
|
+
image: {
|
|
129
|
+
empty: string;
|
|
130
|
+
upload: string;
|
|
131
|
+
invalidType: string;
|
|
132
|
+
tooLarge: string;
|
|
133
|
+
};
|
|
134
|
+
table: {
|
|
135
|
+
previousPage: string;
|
|
136
|
+
nextPage: string;
|
|
137
|
+
};
|
|
138
|
+
sidebar: {
|
|
139
|
+
menu: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
theme: {
|
|
143
|
+
updatedTitle: string;
|
|
144
|
+
updatedMessage: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
/** Sous-ensemble d'i18next dont on a besoin : évite d'imposer le type complet de l'instance. */
|
|
149
|
+
interface I18nLike {
|
|
150
|
+
addResourceBundle?: (lng: string, ns: string, resources: object, deep?: boolean, overwrite?: boolean) => unknown;
|
|
151
|
+
hasResourceBundle?: (lng: string, ns: string) => boolean;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Enregistre les traductions du package sur l'instance i18next de l'application.
|
|
155
|
+
*
|
|
156
|
+
* À appeler une fois après l'init d'i18next :
|
|
157
|
+
*
|
|
158
|
+
* ```ts
|
|
159
|
+
* import i18n from "i18next";
|
|
160
|
+
* import { registerKrosoftLocales } from "@krosoft/react/i18n";
|
|
161
|
+
*
|
|
162
|
+
* registerKrosoftLocales(i18n);
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
165
|
+
* Sans cet appel, les composants retombent sur le français embarqué : le
|
|
166
|
+
* comportement des applications existantes reste inchangé.
|
|
167
|
+
*
|
|
168
|
+
* @param overwrite Écrase les clés déjà présentes. Faux par défaut, afin qu'une
|
|
169
|
+
* application qui a personnalisé un libellé garde le sien.
|
|
170
|
+
*/
|
|
171
|
+
export declare const registerKrosoftLocales: (i18n: I18nLike, { overwrite }?: {
|
|
172
|
+
overwrite?: boolean;
|
|
173
|
+
}) => void;
|
|
174
|
+
export {};
|
|
175
|
+
//# sourceMappingURL=krosoftLocales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"krosoftLocales.d.ts","sourceRoot":"","sources":["../../src/i18n/krosoftLocales.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,8FAA8F;AAC9F,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAC;AAEzC,gGAAgG;AAChG,UAAU,QAAQ;IAChB,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IACjH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,QAAQ,EAAE,gBAAuB;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,KAAG,IAM5G,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type InterpolationValues = Record<string, string | number>;
|
|
2
|
+
/**
|
|
3
|
+
* Traduction des libellés propres au package.
|
|
4
|
+
*
|
|
5
|
+
* Deux modes, sans configuration à choisir :
|
|
6
|
+
* - l'application a appelé `registerKrosoftLocales` : les libellés suivent sa
|
|
7
|
+
* langue et ses éventuelles surcharges ;
|
|
8
|
+
* - elle ne l'a pas fait, ou n'utilise pas i18next : on retombe sur le français
|
|
9
|
+
* embarqué, ce qui préserve le comportement des applications existantes.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useKrosoftTranslation: () => {
|
|
12
|
+
t: (key: string, values?: InterpolationValues) => string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useKrosoftTranslation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKrosoftTranslation.d.ts","sourceRoot":"","sources":["../../src/i18n/useKrosoftTranslation.ts"],"names":[],"mappings":"AAIA,KAAK,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAe3D;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,QAAO;IAAE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,mBAAmB,KAAK,MAAM,CAAA;CAclG,CAAC"}
|
package/dist/providers/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as S } from "react/jsx-runtime";
|
|
2
2
|
import { S as E } from "../sidebar.context-D5nywlmP.js";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import "lucide-react";
|
|
5
4
|
import "react-i18next";
|
|
5
|
+
import "lucide-react";
|
|
6
6
|
import { u as C } from "../useMobile-DN1_OMDB.js";
|
|
7
7
|
import "next-themes";
|
|
8
8
|
const u = "sidebar:collapsed", y = 3600 * 24 * 7, _ = "b", b = (n) => {
|