Skip to content

Commit

Permalink
release 0.0.1 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-dot-js authored Nov 30, 2023
1 parent 90bdc16 commit 0bd9248
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 423 deletions.
4 changes: 2 additions & 2 deletions components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export {
SelectValue,
} from "./select";
export { Skeleton } from "./skeleton";
export { ThemeProvider, PreventWrongThemeFlash } from "./theme-provider";
export { PreventWrongThemeFlash, ThemeProvider } from "./theme-provider";
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./tooltip";

// utils exports
export { code } from "./code-block/code";
export { cx } from "./cx";
export { isTheme, useTheme } from "./theme-provider";
export { isTheme, theme, useTheme } from "./theme-provider";

// types exports
export type { ButtonProps } from "./button";
Expand Down
5 changes: 3 additions & 2 deletions components/theme-provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Theme = (typeof themes)[number];
/**
* theme is a helper which translates the Theme type into a string literal type.
*/
export const theme = (value: Theme) => value;
const theme = (value: Theme) => value;

/**
* Type predicate that checks if a value is a valid theme.
Expand Down Expand Up @@ -144,6 +144,7 @@ function applyTheme(theme: Theme) {

/**
* determineThemeFromMediaQuery returns the theme that should be used based on the user's media query preferences.
* @private
*/
export function determineThemeFromMediaQuery({
prefersDarkMode,
Expand Down Expand Up @@ -200,4 +201,4 @@ const PreventWrongThemeFlash = ({
);

export type { Theme, ThemeProviderProps };
export { ThemeProvider, PreventWrongThemeFlash, isTheme, useTheme };
export { isTheme, PreventWrongThemeFlash, ThemeProvider, theme, useTheme };
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@ngrok/mantle",
"version": "0.0.1-alpha.14",
"description": "mantle is ngrok's UI library and design system.",
"author": "ngrok",
"license": "MIT",
"version": "0.0.1",
"sideEffects": false,
"type": "module",
"browserslist": [
Expand Down
Loading

1 comment on commit 0bd9248

@vercel
Copy link

@vercel vercel bot commented on 0bd9248 Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.