@nicorp/nui 0.1.7 → 0.1.9
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.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.es.js +2268 -2215
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -591,6 +591,8 @@ declare interface MetricCardProps extends React_2.HTMLAttributes<HTMLDivElement>
|
|
|
591
591
|
icon?: React_2.ReactNode;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
+
export declare function ModeToggle(): JSX_2.Element;
|
|
595
|
+
|
|
594
596
|
export declare function Muted({ className, ...props }: MutedProps): JSX_2.Element;
|
|
595
597
|
|
|
596
598
|
export declare interface MutedProps extends React_2.HTMLAttributes<HTMLParagraphElement> {
|
|
@@ -849,6 +851,21 @@ export declare const textVariants: (props?: ({
|
|
|
849
851
|
leading?: "normal" | "tight" | "relaxed" | null | undefined;
|
|
850
852
|
} & ClassProp) | undefined) => string;
|
|
851
853
|
|
|
854
|
+
declare type Theme = "dark" | "light" | "system";
|
|
855
|
+
|
|
856
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): JSX_2.Element;
|
|
857
|
+
|
|
858
|
+
declare type ThemeProviderProps = {
|
|
859
|
+
children: React.ReactNode;
|
|
860
|
+
defaultTheme?: Theme;
|
|
861
|
+
storageKey?: string;
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
declare type ThemeProviderState = {
|
|
865
|
+
theme: Theme;
|
|
866
|
+
setTheme: (theme: Theme) => void;
|
|
867
|
+
};
|
|
868
|
+
|
|
852
869
|
export declare const Timeline: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
853
870
|
|
|
854
871
|
export declare const TimelineConnector: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -909,6 +926,8 @@ export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPr
|
|
|
909
926
|
|
|
910
927
|
declare type UseCarouselParameters = Parameters<typeof default_2>;
|
|
911
928
|
|
|
929
|
+
export declare const useTheme: () => ThemeProviderState;
|
|
930
|
+
|
|
912
931
|
export declare const VStack: React_2.ForwardRefExoticComponent<StackProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
913
932
|
|
|
914
933
|
export { }
|