diff --git a/docs/functions/client_loader_container_loader_container.LoaderContainer.html b/docs/functions/client_loader_container_loader_container.LoaderContainer.html index bf0f909c..36132bf2 100644 --- a/docs/functions/client_loader_container_loader_container.LoaderContainer.html +++ b/docs/functions/client_loader_container_loader_container.LoaderContainer.html @@ -1,2 +1,2 @@ LoaderContainer | React18 Loaders
\ No newline at end of file +

Parameters

Returns null | Element

\ No newline at end of file diff --git a/docs/functions/hooks_use_loader.useLoader.html b/docs/functions/hooks_use_loader.useLoader.html index 48727006..3a31669b 100644 --- a/docs/functions/hooks_use_loader.useLoader.html +++ b/docs/functions/hooks_use_loader.useLoader.html @@ -1 +1 @@ -useLoader | React18 Loaders
  • Returns {
        loading: boolean;
        setLoading: SetStateAction<boolean>;
    }

    • loading: boolean
    • setLoading: SetStateAction<boolean>
\ No newline at end of file +useLoader | React18 Loaders
  • Returns {
        loading: boolean;
        setLoading: SetStateAction<boolean>;
    }

    • loading: boolean
    • setLoading: SetStateAction<boolean>
\ No newline at end of file diff --git a/docs/functions/server_bars_bars1_bars1.Bars1.html b/docs/functions/server_bars_bars1_bars1.Bars1.html index 0922fb84..3aeaa21e 100644 --- a/docs/functions/server_bars_bars1_bars1.Bars1.html +++ b/docs/functions/server_bars_bars1_bars1.Bars1.html @@ -3,4 +3,4 @@

Source

export function Bars1(props: BaseProps) {
return <Base {...props} loaderClass={styles.loader} />;
}
-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/functions/server_bars_bars2_bars2.Bars2.html b/docs/functions/server_bars_bars2_bars2.Bars2.html index f33fea9a..a487daac 100644 --- a/docs/functions/server_bars_bars2_bars2.Bars2.html +++ b/docs/functions/server_bars_bars2_bars2.Bars2.html @@ -3,4 +3,4 @@

Source

export function Bars2(props: BaseProps) {
return <Base {...props} loaderClass={styles.loader} />;
}
-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/functions/server_common_base_base.Base.html b/docs/functions/server_common_base_base.Base.html index 96f92e03..3745cdb2 100644 --- a/docs/functions/server_common_base_base.Base.html +++ b/docs/functions/server_common_base_base.Base.html @@ -1,3 +1,3 @@ Base | React18 Loaders
  • Base component to avoid code duplication

    default values should be specified in css files - so no need to set them in JSX

    -

    Parameters

    Returns Element

\ No newline at end of file +

Parameters

Returns Element

\ No newline at end of file diff --git a/docs/functions/server_dots_dots1_dots1.Dots1.html b/docs/functions/server_dots_dots1_dots1.Dots1.html index d10f701d..b4ab3121 100644 --- a/docs/functions/server_dots_dots1_dots1.Dots1.html +++ b/docs/functions/server_dots_dots1_dots1.Dots1.html @@ -3,4 +3,4 @@

Source

export function Dots1(props: BaseProps) {
return <Base {...props} loaderClass={styles.loader} />;
}
-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/functions/server_dots_dots2_dots2.Dots2.html b/docs/functions/server_dots_dots2_dots2.Dots2.html index 461fdd83..e287c013 100644 --- a/docs/functions/server_dots_dots2_dots2.Dots2.html +++ b/docs/functions/server_dots_dots2_dots2.Dots2.html @@ -3,4 +3,4 @@

Source

export function Dots2(props: Dots2Props) {
return <Base {...props} loaderClass={styles.loader} />;
}
-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/interfaces/client_loader_container_loader_container._internal_.LoaderContainerProps.html b/docs/interfaces/client_loader_container_loader_container._internal_.LoaderContainerProps.html index 8b4c4d94..4acb836e 100644 --- a/docs/interfaces/client_loader_container_loader_container._internal_.LoaderContainerProps.html +++ b/docs/interfaces/client_loader_container_loader_container._internal_.LoaderContainerProps.html @@ -1,2 +1,2 @@ -LoaderContainerProps | React18 Loaders
interface LoaderContainerProps {
    children?: ReactNode;
}

Hierarchy

Properties

Properties

children?: ReactNode
\ No newline at end of file +LoaderContainerProps | React18 Loaders
interface LoaderContainerProps {
    children?: ReactNode;
}

Hierarchy

Properties

Properties

children?: ReactNode
\ No newline at end of file diff --git a/docs/interfaces/server_common_base_base.BaseProps.html b/docs/interfaces/server_common_base_base.BaseProps.html index 5c270895..e7330763 100644 --- a/docs/interfaces/server_common_base_base.BaseProps.html +++ b/docs/interfaces/server_common_base_base.BaseProps.html @@ -1,8 +1,8 @@ BaseProps | React18 Loaders

Interface declaring the common properties of the loaders

-
interface BaseProps {
    color?: string;
    height?: string | number;
    width?: string | number;
}

Hierarchy (view full)

Properties

interface BaseProps {
    color?: string;
    height?: string | number;
    width?: string | number;
}

Hierarchy (view full)

Properties

Properties

color?: string

Color of the dots - CSS compatible color

-
height?: string | number

height of the loader element in pixels or a string with a length unit.

-
width?: string | number

width of the loader element in pixels or a string with a length unit.

-
\ No newline at end of file +
height?: string | number

height of the loader element in pixels or a string with a length unit.

+
width?: string | number

width of the loader element in pixels or a string with a length unit.

+
\ No newline at end of file diff --git a/docs/interfaces/server_common_base_base._internal_.OtherProps.html b/docs/interfaces/server_common_base_base._internal_.OtherProps.html index 535c1dd2..c48b9efc 100644 --- a/docs/interfaces/server_common_base_base._internal_.OtherProps.html +++ b/docs/interfaces/server_common_base_base._internal_.OtherProps.html @@ -1,5 +1,5 @@ OtherProps | React18 Loaders

Other props - loaderClass is included here as we will extend BaseProps for other loaders

-
interface OtherProps {
    dotRadius?: string | number;
    loaderClass: string;
}

Properties

interface OtherProps {
    dotRadius?: string | number;
    loaderClass: string;
}

Properties

dotRadius?: string | number
loaderClass: string

Loader class name

-
\ No newline at end of file +

Properties

dotRadius?: string | number
loaderClass: string

Loader class name

+
\ No newline at end of file diff --git a/docs/interfaces/server_dots_dots2_dots2._internal_.Dots2Props.html b/docs/interfaces/server_dots_dots2_dots2._internal_.Dots2Props.html index 3e5c532f..2600e1d2 100644 --- a/docs/interfaces/server_dots_dots2_dots2._internal_.Dots2Props.html +++ b/docs/interfaces/server_dots_dots2_dots2._internal_.Dots2Props.html @@ -1,10 +1,10 @@ Dots2Props | React18 Loaders

Interface declaring the common properties of the loaders

-
interface Dots2Props {
    color?: string;
    dotRadius?: string | number;
    height?: string | number;
    width?: string | number;
}

Hierarchy (view full)

Properties

interface Dots2Props {
    color?: string;
    dotRadius?: string | number;
    height?: string | number;
    width?: string | number;
}

Hierarchy (view full)

Properties

color?: string

Color of the dots - CSS compatible color

-
dotRadius?: string | number

Radius of the dots in pixels or a string with a length unit.

-
height?: string | number

height of the loader element in pixels or a string with a length unit.

-
width?: string | number

width of the loader element in pixels or a string with a length unit.

-
\ No newline at end of file +
dotRadius?: string | number

Radius of the dots in pixels or a string with a length unit.

+
height?: string | number

height of the loader element in pixels or a string with a length unit.

+
width?: string | number

width of the loader element in pixels or a string with a length unit.

+
\ No newline at end of file diff --git a/docs/modules/client_loader_container_loader_container.html b/docs/modules/client_loader_container_loader_container.html index acf95ede..fed86a83 100644 --- a/docs/modules/client_loader_container_loader_container.html +++ b/docs/modules/client_loader_container_loader_container.html @@ -1,3 +1,3 @@ -client/loader-container/loader-container | React18 Loaders

Module client/loader-container/loader-container

Index

Modules

<internal> +client/loader-container/loader-container | React18 Loaders
\ No newline at end of file diff --git a/docs/modules/constants.html b/docs/modules/constants.html index 1a2e9942..6439f943 100644 --- a/docs/modules/constants.html +++ b/docs/modules/constants.html @@ -1,2 +1,2 @@ -constants | React18 Loaders

Module constants

Index

Variables

LOADER_RGS_KEY +constants | React18 Loaders

Module constants

Index

Variables

\ No newline at end of file diff --git a/docs/modules/hooks_use_loader.html b/docs/modules/hooks_use_loader.html index c3051a20..e3a5f503 100644 --- a/docs/modules/hooks_use_loader.html +++ b/docs/modules/hooks_use_loader.html @@ -1,2 +1,2 @@ -hooks/use-loader | React18 Loaders

Module hooks/use-loader

Index

Functions

useLoader +hooks/use-loader | React18 Loaders

Module hooks/use-loader

Index

Functions

\ No newline at end of file diff --git a/docs/modules/server_bars_bars1_bars1.html b/docs/modules/server_bars_bars1_bars1.html index 81eff488..b1664446 100644 --- a/docs/modules/server_bars_bars1_bars1.html +++ b/docs/modules/server_bars_bars1_bars1.html @@ -1,2 +1,2 @@ -server/bars/bars1/bars1 | React18 Loaders

Module server/bars/bars1/bars1

Index

Functions

Bars1 +server/bars/bars1/bars1 | React18 Loaders

Module server/bars/bars1/bars1

Index

Functions

\ No newline at end of file diff --git a/docs/modules/server_bars_bars2_bars2.html b/docs/modules/server_bars_bars2_bars2.html index 9b75fb48..2d9e8a18 100644 --- a/docs/modules/server_bars_bars2_bars2.html +++ b/docs/modules/server_bars_bars2_bars2.html @@ -1,2 +1,2 @@ -server/bars/bars2/bars2 | React18 Loaders

Module server/bars/bars2/bars2

Index

Functions

Bars2 +server/bars/bars2/bars2 | React18 Loaders

Module server/bars/bars2/bars2

Index

Functions

\ No newline at end of file diff --git a/docs/modules/server_common_base_base.html b/docs/modules/server_common_base_base.html index 6e053d94..cddb79d2 100644 --- a/docs/modules/server_common_base_base.html +++ b/docs/modules/server_common_base_base.html @@ -1,4 +1,4 @@ -server/common/base/base | React18 Loaders

Module server/common/base/base

Index

Modules

<internal> +server/common/base/base | React18 Loaders

Module server/common/base/base

Index

Modules

Interfaces

Functions

\ No newline at end of file diff --git a/docs/modules/server_dots_dots1_dots1.html b/docs/modules/server_dots_dots1_dots1.html index 60feedce..ce5ff71f 100644 --- a/docs/modules/server_dots_dots1_dots1.html +++ b/docs/modules/server_dots_dots1_dots1.html @@ -1,2 +1,2 @@ -server/dots/dots1/dots1 | React18 Loaders

Module server/dots/dots1/dots1

Index

Functions

Dots1 +server/dots/dots1/dots1 | React18 Loaders

Module server/dots/dots1/dots1

Index

Functions

\ No newline at end of file diff --git a/docs/modules/server_dots_dots2_dots2.html b/docs/modules/server_dots_dots2_dots2.html index 889d644e..8e3fe930 100644 --- a/docs/modules/server_dots_dots2_dots2.html +++ b/docs/modules/server_dots_dots2_dots2.html @@ -1,3 +1,3 @@ -server/dots/dots2/dots2 | React18 Loaders

Module server/dots/dots2/dots2

Index

Modules

<internal> +server/dots/dots2/dots2 | React18 Loaders

Module server/dots/dots2/dots2

Index

Modules

Functions

\ No newline at end of file diff --git a/docs/variables/constants.LOADER_RGS_KEY.html b/docs/variables/constants.LOADER_RGS_KEY.html index 8b22f3ee..6c0100eb 100644 --- a/docs/variables/constants.LOADER_RGS_KEY.html +++ b/docs/variables/constants.LOADER_RGS_KEY.html @@ -1,2 +1,2 @@ LOADER_RGS_KEY | React18 Loaders

Variable LOADER_RGS_KEYConst

LOADER_RGS_KEY: "r18-loaders" = "r18-loaders"

const uuid = () => (Date.now() * Math.random()).toString(16).slice(2, 8);

-
\ No newline at end of file +
\ No newline at end of file diff --git a/examples/vite/package.json b/examples/vite/package.json index c3b0f2ee..fee0d19d 100644 --- a/examples/vite/package.json +++ b/examples/vite/package.json @@ -24,6 +24,6 @@ "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.0", "typescript": "^5.4.5", - "vite": "^5.2.12" + "vite": "^5.2.13" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7d31e93..ade4b878 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -194,7 +194,7 @@ importers: devDependencies: '@remix-run/dev': specifier: ^2.9.2 - version: 2.9.2(@remix-run/react@2.9.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5))(@remix-run/serve@2.9.2(typescript@5.4.5))(@types/node@20.14.2)(sass@1.77.4)(ts-node@10.9.2(@types/node@20.14.2)(typescript@5.4.5))(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)) + version: 2.9.2(@remix-run/react@2.9.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5))(@remix-run/serve@2.9.2(typescript@5.4.5))(@types/node@20.14.2)(sass@1.77.4)(ts-node@10.9.2(@types/node@20.14.2)(typescript@5.4.5))(typescript@5.4.5)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) '@repo/eslint-config': specifier: workspace:* version: link:../../packages/config-eslint @@ -243,13 +243,13 @@ importers: version: 18.3.0 '@vitejs/plugin-react': specifier: ^4.3.0 - version: 4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)) + version: 4.3.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) typescript: specifier: ^5.4.5 version: 5.4.5 vite: - specifier: ^5.2.12 - version: 5.2.12(@types/node@20.14.2)(sass@1.77.4) + specifier: ^5.2.13 + version: 5.2.13(@types/node@20.14.2)(sass@1.77.4) lib: dependencies: @@ -283,7 +283,7 @@ importers: version: 18.3.0 '@vitejs/plugin-react': specifier: ^4.3.0 - version: 4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)) + version: 4.3.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) '@vitest/coverage-v8': specifier: ^1.6.0 version: 1.6.0(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)) @@ -310,7 +310,7 @@ importers: version: 5.4.5 vite-tsconfig-paths: specifier: ^4.3.2 - version: 4.3.2(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)) + version: 4.3.2(typescript@5.4.5)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) vitest: specifier: ^1.6.0 version: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4) @@ -419,7 +419,7 @@ importers: version: 18.3.0 '@vitejs/plugin-react': specifier: ^4.3.0 - version: 4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)) + version: 4.3.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) '@vitest/coverage-v8': specifier: ^1.6.0 version: 1.6.0(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)) @@ -446,7 +446,7 @@ importers: version: 5.4.5 vite-tsconfig-paths: specifier: ^4.3.2 - version: 4.3.2(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)) + version: 4.3.2(typescript@5.4.5)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) vitest: specifier: ^1.6.0 version: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4) @@ -2848,8 +2848,8 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - electron-to-chromium@1.4.794: - resolution: {integrity: sha512-6FApLtsYhDCY0Vglq3AptsdxQ+PJLc6AxlAM0HjEihUAiOPPbkASEsq9gtxUeZY9o0sJIEa3WnF0vVH4VT4iug==} + electron-to-chromium@1.4.795: + resolution: {integrity: sha512-hHo4lK/8wb4NUa+NJYSFyJ0xedNHiR6ylilDtb8NUW9d4dmBFmGiecYEKCEbti1wTNzbKXLfl4hPWEkAFbHYlw==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -6545,8 +6545,8 @@ packages: vite: optional: true - vite@5.2.12: - resolution: {integrity: sha512-/gC8GxzxMK5ntBwb48pR32GGhENnjtY30G4A0jemunsBkiEZFw60s8InGpN8gkhHEkjnRK1aSAxeQgwvFhUHAA==} + vite@5.2.13: + resolution: {integrity: sha512-SSq1noJfY9pR3I1TUENL3rQYDQCFqgD+lM6fTRAM8Nv6Lsg5hDLaXkjETVeBt+7vZBCMoibD+6IWnT2mJ+Zb/A==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -7929,7 +7929,7 @@ snapshots: '@pkgr/core@0.1.1': {} - '@remix-run/dev@2.9.2(@remix-run/react@2.9.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5))(@remix-run/serve@2.9.2(typescript@5.4.5))(@types/node@20.14.2)(sass@1.77.4)(ts-node@10.9.2(@types/node@20.14.2)(typescript@5.4.5))(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))': + '@remix-run/dev@2.9.2(@remix-run/react@2.9.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5))(@remix-run/serve@2.9.2(typescript@5.4.5))(@types/node@20.14.2)(sass@1.77.4)(ts-node@10.9.2(@types/node@20.14.2)(typescript@5.4.5))(typescript@5.4.5)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4))': dependencies: '@babel/core': 7.24.7 '@babel/generator': 7.24.7 @@ -7988,7 +7988,7 @@ snapshots: optionalDependencies: '@remix-run/serve': 2.9.2(typescript@5.4.5) typescript: 5.4.5 - vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -8596,7 +8596,7 @@ snapshots: lodash: 4.17.21 mlly: 1.7.1 outdent: 0.8.0 - vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite-node: 1.6.0(@types/node@20.14.2)(sass@1.77.4) transitivePeerDependencies: - '@types/node' @@ -8659,14 +8659,14 @@ snapshots: - supports-color - vitest - '@vitejs/plugin-react@4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))': + '@vitejs/plugin-react@4.3.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4))': dependencies: '@babel/core': 7.24.7 '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.7) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) transitivePeerDependencies: - supports-color @@ -9051,7 +9051,7 @@ snapshots: browserslist@4.23.0: dependencies: caniuse-lite: 1.0.30001629 - electron-to-chromium: 1.4.794 + electron-to-chromium: 1.4.795 node-releases: 2.0.14 update-browserslist-db: 1.0.16(browserslist@4.23.0) @@ -9575,7 +9575,7 @@ snapshots: ee-first@1.1.1: {} - electron-to-chromium@1.4.794: {} + electron-to-chromium@1.4.795: {} emittery@0.13.1: {} @@ -14346,7 +14346,7 @@ snapshots: debug: 4.3.5 pathe: 1.1.2 picocolors: 1.0.1 - vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) transitivePeerDependencies: - '@types/node' - less @@ -14357,18 +14357,18 @@ snapshots: - supports-color - terser - vite-tsconfig-paths@4.3.2(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)): + vite-tsconfig-paths@4.3.2(typescript@5.4.5)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)): dependencies: debug: 4.3.5 globrex: 0.1.2 tsconfck: 3.1.0(typescript@5.4.5) optionalDependencies: - vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) transitivePeerDependencies: - supports-color - typescript - vite@5.2.12(@types/node@20.14.2)(sass@1.77.4): + vite@5.2.13(@types/node@20.14.2)(sass@1.77.4): dependencies: esbuild: 0.20.2 postcss: 8.4.38 @@ -14397,7 +14397,7 @@ snapshots: strip-literal: 2.1.0 tinybench: 2.8.0 tinypool: 0.8.4 - vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite-node: 1.6.0(@types/node@20.14.2)(sass@1.77.4) why-is-node-running: 2.2.2 optionalDependencies: