From 27f4162fa1b59155a5861169ca66b53467548d8b Mon Sep 17 00:00:00 2001 From: mayank1513 Date: Fri, 23 Feb 2024 07:09:13 +0000 Subject: [PATCH] upgrade deps && docs --- docs/assets/highlight.css | 21 +++++++++++++++++++ docs/assets/navigation.js | 2 +- docs/assets/search.js | 2 +- ...color_switch_color_switch.ColorSwitch.html | 5 +++-- ...switcher_theme_switcher.ThemeSwitcher.html | 4 +++- .../functions/hooks_use_theme.useTheme-1.html | 5 ++++- ...ver_target_server_target.ServerTarget.html | 9 ++++---- docs/hierarchy.html | 2 +- docs/index.html | 2 +- ..._switch_color_switch.ColorSwitchProps.html | 8 +++---- ...r_theme_switcher.LoadSyncedStateProps.html | 8 +++---- ...her_theme_switcher.ThemeSwitcherProps.html | 8 +++---- ...witcher_theme_switcher.UpdateDOMProps.html | 4 ++-- docs/interfaces/constants.ThemeState.html | 4 ++-- docs/interfaces/hooks_use_theme.UseTheme.html | 4 ++-- .../client_color_switch_color_switch.html | 4 ++-- .../client_theme_switcher_theme_switcher.html | 4 ++-- docs/modules/constants.html | 4 ++-- docs/modules/declaration.html | 2 +- docs/modules/hooks.html | 3 +++ docs/modules/hooks_use_theme.html | 4 ++-- .../server_server_target_server_target.html | 4 ++-- .../constants.ColorSchemePreference.html | 2 +- docs/variables/constants.DEFAULT_ID.html | 2 +- .../constants.DEFAULT_THEME_STATE.html | 2 +- 25 files changed, 74 insertions(+), 45 deletions(-) create mode 100644 docs/modules/hooks.html diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index e323cb001..3e51bb44f 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -13,6 +13,12 @@ --dark-hl-5: #C586C0; --light-hl-6: #098658; --dark-hl-6: #B5CEA8; + --light-hl-7: #800000; + --dark-hl-7: #808080; + --light-hl-8: #800000; + --dark-hl-8: #569CD6; + --light-hl-9: #267F99; + --dark-hl-9: #4EC9B0; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @@ -25,6 +31,9 @@ --hl-4: var(--light-hl-4); --hl-5: var(--light-hl-5); --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); --code-background: var(--light-code-background); } } @@ -36,6 +45,9 @@ --hl-4: var(--dark-hl-4); --hl-5: var(--dark-hl-5); --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); --code-background: var(--dark-code-background); } } @@ -47,6 +59,9 @@ --hl-4: var(--light-hl-4); --hl-5: var(--light-hl-5); --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); --code-background: var(--light-code-background); } @@ -58,6 +73,9 @@ --hl-4: var(--dark-hl-4); --hl-5: var(--dark-hl-5); --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); --code-background: var(--dark-code-background); } @@ -68,4 +86,7 @@ .hl-4 { color: var(--hl-4); } .hl-5 { color: var(--hl-5); } .hl-6 { color: var(--hl-6); } +.hl-7 { color: var(--hl-7); } +.hl-8 { color: var(--hl-8); } +.hl-9 { color: var(--hl-9); } pre, code { background: var(--code-background); } diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index a6cfaf67b..9cc681079 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA6WUXWvCMBSG/0uudZ1uOuadzI4NlAmtVzJKlh7XYk0kOXWT4X8fbXVN2qxWvCqH857n5Xykyx+C8I1kRFgSA0fSISyKk1ACJ6NlmRSJkF31FSOLHD0gHbKlGJER2YgwTUA5BSfIRUEhMoKbCDcJ6ZB1zEMy6tv9nrICL9fPpdiq0ibmCHJFWRunKqViPRgeOjbH0myVcoax4Jd5mTbD+8O75oMRbOA4PJCOGf47zVwWnGSVsNVEp4KG3p4zCD2kCGen2uxoozVN18/KvWP1ld51VpPzYhtShMnb7EpXk9O614ZbuqBLy0XpN8UEV0g5Ksv9nFKtjqQwzTZqH9QfrBSef1Ms084lrEACZxoZ91sDapVX+LePD71BX/OYuM/jxdQPXicleEdlTD/M9kudSbyzwfwXd+YGnj/23XZUraCG1zcVAkuopNkd1HelJStda4RIiLVyUgXd/GDqlFwQpAqKi2q194UC36RpW68CT+Kmzac1YHn+Vd5J2+01/jgVyB1Ip/h0kcpPQDOqz6JIB8dPoTKjVuPx8gq/YlJ21MJGR9he8y9tSCSpiAcAAA==" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA6WTXU/CMBSG/0u9BQFBDNwRwWiCkWTjipildge3OFrSHVBi+O9mG9h2q6PIVXPW9zzvzkcX3wThC8mQsCQGjqRBWBQnoQROhgt1KRIhm+lnjCxq6QFpkDXFiAzJSoSbBNJWwQlyUVCIjOA6wlVCGuQj5iEZ3tj97rMEL9fPpFinyibmCHJJmYtTmVKyvu3vGzZHZbbccIax4Od5mTb93v5V88EIVnBoHsiWGf7ZzVwWHGWl0KmjU0FDb8cZhB5ShJNdrXe00eq662fp3iH7Qu8qq855vg4pwvjl+UJXk+Nca80unVGlZaP0nWKCp0g5ppb9OV45LUlhmk3U3qhfmBKeflMs084kLEECZxoZd2sDapWX+O3BXef2RvMYTx5G86kfPI0VeEtlTN/M8pXOJHZtMP9x8jwJPH/kT9yoWkIFr08qBJZQSbM9qM5KuyxVrREiIT4sc84/O814nkI+vTrGlSYqYL3OoNdt97Qf2bhwjqJmp57UxBpUsEmheB7/LFBb4TLwKK5b42ql6i2XeargE282BbkF2SqOJlL5DmhG1W4U18HhKFRm5NQgL8/wSyaqJgcbHWEr9AemrZo9VwgAAA==" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 6062124c6..e1a6a9ce8 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data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WjqR0MUC4y46pmI2DqV/OUVNfAYdFSmXxAWYPnXqDNBmvD2Wb0Q7UbqnVHeHV1DatOIqmBgc6rBFRLk1XW2LzPWrfcjQVIKmDUVcOlCVt9GHXV779S7k49g+PefCjjZyCGusEtqUqDuIrtWLz2jrN9F4XRj8QVyFGKLjNGGlm9+q3+HzE6JAexS1KBluHj29t/osWuT+QuAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA81aW2/aSBT+L5NXQzwXA+at2ma1lVptJWhfUIS8eLKxAjayh3S7KP99Nb7gOfYcY8Cp9slxOJfvnO9cxpgjSZMfGZmvjuQlikMyZw6Jg50kc7LZRjJW95tkm6Sj7EekNs/ghjjkkG7JnOyS8LCV2X2hsM5l1oUMuBk/q92WOGSzDbJMZmROyJtT+Z2Ik+PftM4C+ng6xBsVJXEPL4a6xaND9kEqY9UnwBod8yY2eF/TZJ+dMEaxkulTsOmTiqaRwZBSl9WZVEH6t1SfwuEg3hkmr8PasouBz6J/5YDAS3PvDfol2i9+ZkruhoRuGh0+gFbLq2e5k6WiTBu3WNvnUutKqnHbt/WXWmvR9NRq/m5fwEivxuoO2D4GgJdzg+ACwP3HQV/Ul46Eq8D2HgydqC3WsUDCJFaLn/Fm8EAMw78kkFxxmQZxFukiH56Ylv33Cstsj89JEOosynChAiVvaxCbsfdrkUyqIkzta3jMd037N9BhzfJ7dT4ekbX3VRaOomwUxc8yjZQM3zW4m6cBHpx1HvzS4IaaEB0EdsyI9w7VnBrf9mGg5Mc/v9w2L6CZ//EytQAdaJE2MtlVWbfNOWsIA423fkHc3Pu2EIY5BaABGGfuJM5UEKusfbCuPuk8PfPa1MeH3z98+7xcf/p4svUapFHwF7RWi53pjBMyA7frT6nHGg/DGx3111Q+yVTGm7qW1M898GyVvgJE6xiOVvDJdS13uT9QbZvOiPv4vsNMnEFk2EGPLvlTopHmy4DZ1G8HpS4Hom5xbumI5R8PXx7Wi+WH5UOv1jDkLy+XiefxukDXa90FV3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jVjKGJhXXLlbXv1O6+XP+mqbvDZJz2vui/eCtbowEKHqpzcstR71DUXMMfiKzEjDpNblHNV9Cg5btY5CoGowyDDAlWr5mqp4uWHYMGOeYTaSWGX5+ysjZjPXJV20pI9h9VR+sWe4nxrRiy4t/SAHNI0a5Fjpb5MgzPK3xXngLcKp0U8Uy2D1tYdR0aDmDBYERj542ALaRhoF1kuFWvX0aSgbtSOmqLI624vc6EWB5SGTqjUI6tcjRyIw/irFVvFRAz/Far/4rWWtZMaMqbxE+6z8jWOtaJQaVi/ticLOD0nzF5Igur6qsCKoe364wlfEprbfQznPDFLNzAiYTcopTMsNg4VhqUyvR1mD7xyAtuitDSei4bXcKOWSpKK8YiOulUhmNCablolg5bVaU53W2uVujCxaAmNYDRcmbPVh1BXW80C5PfUMjjsjUMaPeAx1gx1algbFWDrkP1oIk10bhdGPFAvkkMk2M0aN86pES4bErLxaDw6PDtlHe7mNYknmq8e3t/8AVBnLn7IwAAA="; \ No newline at end of file diff --git a/docs/functions/client_color_switch_color_switch.ColorSwitch.html b/docs/functions/client_color_switch_color_switch.ColorSwitch.html index 99bb7a7c9..60b53bded 100644 --- a/docs/functions/client_color_switch_color_switch.ColorSwitch.html +++ b/docs/functions/client_color_switch_color_switch.ColorSwitch.html @@ -1,7 +1,8 @@ -ColorSwitch | Code Documentation

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/client_theme_switcher_theme_switcher.ThemeSwitcher.html b/docs/functions/client_theme_switcher_theme_switcher.ThemeSwitcher.html index bfbb1647f..889fe1592 100644 --- a/docs/functions/client_theme_switcher_theme_switcher.ThemeSwitcher.html +++ b/docs/functions/client_theme_switcher_theme_switcher.ThemeSwitcher.html @@ -1 +1,3 @@ -ThemeSwitcher | Code Documentation

Generated using TypeDoc

\ No newline at end of file +ThemeSwitcher | Code Documentation

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/hooks_use_theme.useTheme-1.html b/docs/functions/hooks_use_theme.useTheme-1.html index b1dc9cee0..5a3543172 100644 --- a/docs/functions/hooks_use_theme.useTheme-1.html +++ b/docs/functions/hooks_use_theme.useTheme-1.html @@ -1 +1,4 @@ -useTheme | Code Documentation

Generated using TypeDoc

\ No newline at end of file +useTheme | Code Documentation
  • use this hook to gain access to theme state and setters from your components.

    +

    Parameters

    • Optional targetId: string

      targetId corresponding to ThemeSwitcher and others tied to specific container.

      +

    Returns UseTheme

    themeState and setter fucntions

    +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/server_server_target_server_target.ServerTarget.html b/docs/functions/server_server_target_server_target.ServerTarget.html index 88885ee36..20af33378 100644 --- a/docs/functions/server_server_target_server_target.ServerTarget.html +++ b/docs/functions/server_server_target_server_target.ServerTarget.html @@ -1,5 +1,4 @@ -ServerTarget | Code Documentation

Generated using TypeDoc

\ No newline at end of file +ServerTarget | Code Documentation
  • Server Side target for avoiding flash of un-themed content.

    +

    Parameters

    • __namedParameters: ServerTargetProps

    Returns Element

    Example

    <html>
    ...
    <body>
    <ServerTarget />
    ...
    </body>
    </html> +
    +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/hierarchy.html b/docs/hierarchy.html index f7e240189..5bbb15578 100644 --- a/docs/hierarchy.html +++ b/docs/hierarchy.html @@ -1 +1 @@ -Code Documentation

Code Documentation

Class Hierarchy

Generated using TypeDoc

\ No newline at end of file +Code Documentation

Code Documentation

Class Hierarchy

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 6952268e1..047bf73c7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,4 +11,4 @@

This package also serves as an example to demonstrate how to build and publish React.js library compatible with React Server Components

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/client_color_switch_color_switch.ColorSwitchProps.html b/docs/interfaces/client_color_switch_color_switch.ColorSwitchProps.html index b259b7b95..97e8c3a5e 100644 --- a/docs/interfaces/client_color_switch_color_switch.ColorSwitchProps.html +++ b/docs/interfaces/client_color_switch_color_switch.ColorSwitchProps.html @@ -1,7 +1,7 @@ -ColorSwitchProps | Code Documentation
interface ColorSwitchProps {
    size?: number;
    skipSystem?: boolean;
    targetId?: string;
}

Properties

size? +ColorSwitchProps | Code Documentation
interface ColorSwitchProps {
    size?: number;
    skipSystem?: boolean;
    targetId?: string;
}

Properties

size?: number

Diameter of the color switch

-
skipSystem?: boolean

Skip system colorScheme while toggling

-
targetId?: string

id of target element if you are applying theme only to specific container.

-

Generated using TypeDoc

\ No newline at end of file +
skipSystem?: boolean

Skip system colorScheme while toggling

+
targetId?: string

id of target element if you are applying theme only to specific container. Should be same as corresponding ThemeSwitcher, etc.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/client_theme_switcher_theme_switcher.LoadSyncedStateProps.html b/docs/interfaces/client_theme_switcher_theme_switcher.LoadSyncedStateProps.html index a1a8f8c35..be5123983 100644 --- a/docs/interfaces/client_theme_switcher_theme_switcher.LoadSyncedStateProps.html +++ b/docs/interfaces/client_theme_switcher_theme_switcher.LoadSyncedStateProps.html @@ -1,8 +1,8 @@ -LoadSyncedStateProps | Code Documentation
interface LoadSyncedStateProps {
    dontSync?: boolean;
    setThemeState: SetStateAction<ThemeState>;
    targetId?: string;
    themeTransition?: string;
}

Hierarchy (view full)

Properties

dontSync? +LoadSyncedStateProps | Code Documentation
interface LoadSyncedStateProps {
    dontSync?: boolean;
    setThemeState: SetStateAction<ThemeState>;
    targetId?: string;
    themeTransition?: string;
}

Hierarchy (view full)

Properties

dontSync?: boolean

To stop persisting and syncing theme between tabs.

-
setThemeState: SetStateAction<ThemeState>
targetId?: string

id of target element to apply classes to. This is useful when you want to apply theme only to specific container.

-
themeTransition?: string

force apply CSS transition property to all the elements during theme switching. E.g., all .3s

-

Generated using TypeDoc

\ No newline at end of file +
setThemeState: SetStateAction<ThemeState>
targetId?: string

id of target element to apply classes to. This is useful when you want to apply theme only to specific container.

+
themeTransition?: string

force apply CSS transition property to all the elements during theme switching. E.g., all .3s

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/client_theme_switcher_theme_switcher.ThemeSwitcherProps.html b/docs/interfaces/client_theme_switcher_theme_switcher.ThemeSwitcherProps.html index 86ebf29ac..f68a3fd6e 100644 --- a/docs/interfaces/client_theme_switcher_theme_switcher.ThemeSwitcherProps.html +++ b/docs/interfaces/client_theme_switcher_theme_switcher.ThemeSwitcherProps.html @@ -1,7 +1,7 @@ -ThemeSwitcherProps | Code Documentation
interface ThemeSwitcherProps {
    dontSync?: boolean;
    targetId?: string;
    themeTransition?: string;
}

Hierarchy (view full)

Properties

dontSync? +ThemeSwitcherProps | Code Documentation
interface ThemeSwitcherProps {
    dontSync?: boolean;
    targetId?: string;
    themeTransition?: string;
}

Hierarchy (view full)

Properties

dontSync?: boolean

To stop persisting and syncing theme between tabs.

-
targetId?: string

id of target element to apply classes to. This is useful when you want to apply theme only to specific container.

-
themeTransition?: string

force apply CSS transition property to all the elements during theme switching. E.g., all .3s

-

Generated using TypeDoc

\ No newline at end of file +
targetId?: string

id of target element to apply classes to. This is useful when you want to apply theme only to specific container.

+
themeTransition?: string

force apply CSS transition property to all the elements during theme switching. E.g., all .3s

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/client_theme_switcher_theme_switcher.UpdateDOMProps.html b/docs/interfaces/client_theme_switcher_theme_switcher.UpdateDOMProps.html index c0ed471c8..d3535ad73 100644 --- a/docs/interfaces/client_theme_switcher_theme_switcher.UpdateDOMProps.html +++ b/docs/interfaces/client_theme_switcher_theme_switcher.UpdateDOMProps.html @@ -1,4 +1,4 @@ -UpdateDOMProps | Code Documentation
interface UpdateDOMProps {
    dontSync?: boolean;
    targetId?: string;
    themeState: ThemeState;
}

Properties

dontSync? +UpdateDOMProps | Code Documentation
interface UpdateDOMProps {
    dontSync?: boolean;
    targetId?: string;
    themeState: ThemeState;
}

Properties

dontSync?: boolean
targetId?: string
themeState: ThemeState

Generated using TypeDoc

\ No newline at end of file +

Properties

dontSync?: boolean
targetId?: string
themeState: ThemeState

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/constants.ThemeState.html b/docs/interfaces/constants.ThemeState.html index 04b25173e..addc33e48 100644 --- a/docs/interfaces/constants.ThemeState.html +++ b/docs/interfaces/constants.ThemeState.html @@ -1,4 +1,4 @@ -ThemeState | Code Documentation
interface ThemeState {
    colorSchemePreference: ColorSchemePreference;
    systemColorScheme: "dark" | "light";
    theme: string;
}

Properties

colorSchemePreference +ThemeState | Code Documentation
interface ThemeState {
    colorSchemePreference: ColorSchemePreference;
    systemColorScheme: "dark" | "light";
    theme: string;
}

Properties

colorSchemePreference: ColorSchemePreference
systemColorScheme: "dark" | "light"
theme: string

Generated using TypeDoc

\ No newline at end of file +

Properties

colorSchemePreference: ColorSchemePreference
systemColorScheme: "dark" | "light"
theme: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/hooks_use_theme.UseTheme.html b/docs/interfaces/hooks_use_theme.UseTheme.html index 5e3f32675..4f3fa2dff 100644 --- a/docs/interfaces/hooks_use_theme.UseTheme.html +++ b/docs/interfaces/hooks_use_theme.UseTheme.html @@ -1,7 +1,7 @@ -UseTheme | Code Documentation
interface UseTheme {
    colorSchemePreference: ColorSchemePreference;
    resolvedColorScheme: "dark" | "light";
    setColorSchemePreference: ((colorSchemePreference) => void);
    setTheme: ((theme) => void);
    systemColorScheme: "dark" | "light";
    theme: string;
}

Properties

colorSchemePreference +UseTheme | Code Documentation
interface UseTheme {
    colorSchemePreference: ColorSchemePreference;
    resolvedColorScheme: "dark" | "light";
    setColorSchemePreference: ((colorSchemePreference) => void);
    setTheme: ((theme) => void);
    systemColorScheme: "dark" | "light";
    theme: string;
}

Properties

colorSchemePreference: ColorSchemePreference
resolvedColorScheme: "dark" | "light"
setColorSchemePreference: ((colorSchemePreference) => void)

Type declaration

setTheme: ((theme) => void)

Type declaration

    • (theme): void
    • Parameters

      • theme: string

      Returns void

systemColorScheme: "dark" | "light"
theme: string

Generated using TypeDoc

\ No newline at end of file +

Properties

colorSchemePreference: ColorSchemePreference
resolvedColorScheme: "dark" | "light"
setColorSchemePreference: ((colorSchemePreference) => void)

Type declaration

setTheme: ((theme) => void)

Type declaration

    • (theme): void
    • Parameters

      • theme: string

      Returns void

systemColorScheme: "dark" | "light"
theme: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/client_color_switch_color_switch.html b/docs/modules/client_color_switch_color_switch.html index eea328876..1bbb76662 100644 --- a/docs/modules/client_color_switch_color_switch.html +++ b/docs/modules/client_color_switch_color_switch.html @@ -1,3 +1,3 @@ -client/color-switch/color-switch | Code Documentation

Module client/color-switch/color-switch

Index

Interfaces

ColorSwitchProps +client/color-switch/color-switch | Code Documentation

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/client_theme_switcher_theme_switcher.html b/docs/modules/client_theme_switcher_theme_switcher.html index d77625357..21dce64f3 100644 --- a/docs/modules/client_theme_switcher_theme_switcher.html +++ b/docs/modules/client_theme_switcher_theme_switcher.html @@ -1,5 +1,5 @@ -client/theme-switcher/theme-switcher | Code Documentation

Module client/theme-switcher/theme-switcher

Index

Interfaces

LoadSyncedStateProps +client/theme-switcher/theme-switcher | Code Documentation

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/constants.html b/docs/modules/constants.html index f67097de9..ed220bed1 100644 --- a/docs/modules/constants.html +++ b/docs/modules/constants.html @@ -1,5 +1,5 @@ -constants | Code Documentation

Index

Interfaces

ThemeState +constants | Code Documentation

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/declaration.html b/docs/modules/declaration.html index 2cbb194bf..80c572e4d 100644 --- a/docs/modules/declaration.html +++ b/docs/modules/declaration.html @@ -1 +1 @@ -declaration | Code Documentation

Generated using TypeDoc

\ No newline at end of file +declaration | Code Documentation

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/hooks.html b/docs/modules/hooks.html new file mode 100644 index 000000000..1f3c0fe03 --- /dev/null +++ b/docs/modules/hooks.html @@ -0,0 +1,3 @@ +hooks | Code Documentation

References

References

Re-exports UseTheme
Re-exports useTheme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/hooks_use_theme.html b/docs/modules/hooks_use_theme.html index 345b25d25..9416f0882 100644 --- a/docs/modules/hooks_use_theme.html +++ b/docs/modules/hooks_use_theme.html @@ -1,3 +1,3 @@ -hooks/use-theme | Code Documentation

Module hooks/use-theme

Index

Interfaces

UseTheme +hooks/use-theme | Code Documentation

Module hooks/use-theme

Index

Interfaces

Functions

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules/server_server_target_server_target.html b/docs/modules/server_server_target_server_target.html index 74eac03f8..7a18fb7b0 100644 --- a/docs/modules/server_server_target_server_target.html +++ b/docs/modules/server_server_target_server_target.html @@ -1,2 +1,2 @@ -server/server-target/server-target | Code Documentation

Generated using TypeDoc

\ No newline at end of file +server/server-target/server-target | Code Documentation

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/constants.ColorSchemePreference.html b/docs/types/constants.ColorSchemePreference.html index d09702ae1..ab9f54c08 100644 --- a/docs/types/constants.ColorSchemePreference.html +++ b/docs/types/constants.ColorSchemePreference.html @@ -1 +1 @@ -ColorSchemePreference | Code Documentation

Type alias ColorSchemePreference

ColorSchemePreference: "system" | "dark" | "light"

Generated using TypeDoc

\ No newline at end of file +ColorSchemePreference | Code Documentation

Type alias ColorSchemePreference

ColorSchemePreference: "system" | "dark" | "light"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/constants.DEFAULT_ID.html b/docs/variables/constants.DEFAULT_ID.html index 7b3adfe45..0127bd9c5 100644 --- a/docs/variables/constants.DEFAULT_ID.html +++ b/docs/variables/constants.DEFAULT_ID.html @@ -1,2 +1,2 @@ DEFAULT_ID | Code Documentation

Variable DEFAULT_IDConst

DEFAULT_ID: "nthul" = "nthul"

shared constants -- keep in separate files for better tree-shaking and dependency injection

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/constants.DEFAULT_THEME_STATE.html b/docs/variables/constants.DEFAULT_THEME_STATE.html index ac3520703..d0ede3768 100644 --- a/docs/variables/constants.DEFAULT_THEME_STATE.html +++ b/docs/variables/constants.DEFAULT_THEME_STATE.html @@ -1 +1 @@ -DEFAULT_THEME_STATE | Code Documentation

Variable DEFAULT_THEME_STATEConst

DEFAULT_THEME_STATE: {
    colorSchemePreference: ColorSchemePreference;
    systemColorScheme: "dark" | "light";
    theme: string;
} = ...

Type declaration

Generated using TypeDoc

\ No newline at end of file +DEFAULT_THEME_STATE | Code Documentation

Variable DEFAULT_THEME_STATEConst

DEFAULT_THEME_STATE: {
    colorSchemePreference: ColorSchemePreference;
    systemColorScheme: "dark" | "light";
    theme: string;
} = ...

Type declaration

Generated using TypeDoc

\ No newline at end of file