sage-nexus-ui 1.0.19 → 1.0.21
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ variant, width, ...rest }: import("..").SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const TextDark: Story;
|
|
13
|
+
export declare const TextLight: Story;
|
|
14
|
+
export declare const RectangularDark: Story;
|
|
15
|
+
export declare const RectangularLight: Story;
|
|
16
|
+
export declare const CircularDark: Story;
|
|
17
|
+
export declare const CircularLight: Story;
|
|
18
|
+
export declare const ComposedListDark: Story;
|
|
19
|
+
export declare const ComposedListLight: Story;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { type PropsWithChildren } from
|
|
2
|
-
import type { ThemeMode } from
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
import type { ThemeMode } from "./sageTheme";
|
|
3
3
|
type ThemeModeContextValue = {
|
|
4
4
|
mode: ThemeMode;
|
|
5
5
|
toggleMode: () => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const useThemeMode: () => ThemeModeContextValue;
|
|
8
|
-
|
|
8
|
+
type ThemeModeProviderProps = PropsWithChildren<{
|
|
9
|
+
mode?: ThemeMode;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const ThemeModeProvider: ({ children, mode: initialMode, }: ThemeModeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export {};
|