academe-kit 0.11.5 → 0.11.6
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/index.cjs +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +375 -3
- package/dist/index.esm.js +17 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/AcademeLoading/AcademeLoading.d.ts +9 -2
- package/dist/types/components/AcademeLoading/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/SubmissionService.d.ts +29 -0
- package/dist/types/types/academe-api.d.ts +336 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6879,6 +6879,20 @@ const DEFAULT_COLORS = {
|
|
|
6879
6879
|
purple: "#7C28D4",
|
|
6880
6880
|
white: "#FCFCFC",
|
|
6881
6881
|
};
|
|
6882
|
+
/**
|
|
6883
|
+
* Paleta escura da marca. Só o fundo muda — os círculos roxo/branco continuam os
|
|
6884
|
+
* mesmos (o branco revela o logo e contrasta bem sobre o escuro). O fundo casa com
|
|
6885
|
+
* o tema dark do `ProtectedApp`.
|
|
6886
|
+
*/
|
|
6887
|
+
const DARK_COLORS = {
|
|
6888
|
+
background: "#111111",
|
|
6889
|
+
purple: "#7C28D4",
|
|
6890
|
+
white: "#FCFCFC",
|
|
6891
|
+
};
|
|
6892
|
+
const THEME_COLORS = {
|
|
6893
|
+
light: DEFAULT_COLORS,
|
|
6894
|
+
dark: DARK_COLORS,
|
|
6895
|
+
};
|
|
6882
6896
|
// ---- helpers -------------------------------------------------------------
|
|
6883
6897
|
const clamp01 = (x) => (x < 0 ? 0 : x > 1 ? 1 : x);
|
|
6884
6898
|
/** progresso local [0,1] dentro do trecho [a,b] de `t`. */
|
|
@@ -6941,9 +6955,9 @@ const E_COLLAPSE = cubicBezier(0.65, 0, 0.35, 1); // colapso (ease-in-out)
|
|
|
6941
6955
|
const E_SHRINK = cubicBezier(0.5, 0, 0.9, 0.2); // encolher (ease-in)
|
|
6942
6956
|
const E_POP = cubicBezier(0.34, 1.2, 0.64, 1); // pop leve do logo (overshoot)
|
|
6943
6957
|
// ---- component -----------------------------------------------------------
|
|
6944
|
-
function AcademeLoading({ size = 320, duration = TOTAL, loading, autoPlay = true, pulseWhileLoading = true, onFinish, colors, className, style, }) {
|
|
6958
|
+
function AcademeLoading({ size = 320, duration = TOTAL, loading, autoPlay = true, pulseWhileLoading = true, onFinish, theme = "light", colors, className, style, }) {
|
|
6945
6959
|
const S = size;
|
|
6946
|
-
const c = { ...
|
|
6960
|
+
const c = { ...THEME_COLORS[theme], ...colors };
|
|
6947
6961
|
const isControlled = loading !== undefined;
|
|
6948
6962
|
// Os círculos NÃO são recortados por nenhuma "caixa" interna. O palco antigo
|
|
6949
6963
|
// (size×size com overflow:hidden) cortava os círculos na entrada e no herói.
|
|
@@ -7260,7 +7274,7 @@ const ProtectedApp = ({ children, requiredClientRoles, requiredRealmRoles, theme
|
|
|
7260
7274
|
// só depois do `onFinish` o app é revelado. Fica montada durante o exit graças
|
|
7261
7275
|
// ao `!exitDone`.
|
|
7262
7276
|
if (loaderActive || !exitDone) {
|
|
7263
|
-
return (jsxRuntime.jsx(AcademeLoading, { loading: loaderActive, duration: 1200, onFinish: () => setExitDone(true), style: { width: "100vw", height: "100vh" } }));
|
|
7277
|
+
return (jsxRuntime.jsx(AcademeLoading, { loading: loaderActive, duration: 1200, theme: theme, onFinish: () => setExitDone(true), style: { width: "100vw", height: "100vh" } }));
|
|
7264
7278
|
}
|
|
7265
7279
|
return (jsxRuntime.jsx(ProtectedAppContext.Provider, { value: textColors, children: children }));
|
|
7266
7280
|
};
|