@monolith-forensics/monolith-ui 1.2.34 → 1.2.35

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.
@@ -1,5 +1,5 @@
1
1
  import { DefaultTheme } from "styled-components";
2
- export { styled } from "styled-components";
2
+ export { styled, useTheme } from "styled-components";
3
3
  import { Themes } from "../theme";
4
4
  import React from "react";
5
5
  import typography from "../theme/typography";
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import merge from "deepmerge";
3
3
  import { ThemeProvider } from "styled-components";
4
- export { styled } from "styled-components";
4
+ export { styled, useTheme } from "styled-components";
5
5
  import { Themes, getTheme } from "../theme";
6
6
  import { createContext, useState } from "react";
7
7
  import GlobalStyle from "./GlobalStyle";
@@ -1,3 +1,3 @@
1
1
  export * from "./MonolithUIProvider";
2
- export * from "./useTheme";
2
+ export * from "./useMonolithUITheme";
3
3
  export { getTheme } from "../theme";
@@ -1,3 +1,3 @@
1
1
  export * from "./MonolithUIProvider";
2
- export * from "./useTheme";
2
+ export * from "./useMonolithUITheme";
3
3
  export { getTheme } from "../theme";
@@ -0,0 +1,2 @@
1
+ import { MonolithUIContextType } from "./MonolithUIProvider";
2
+ export declare const useMonolithUITheme: () => MonolithUIContextType;
@@ -1,6 +1,6 @@
1
1
  import { useContext } from "react";
2
2
  import { MonolithUIContext } from "./MonolithUIProvider";
3
- export const useTheme = () => {
3
+ export const useMonolithUITheme = () => {
4
4
  const context = useContext(MonolithUIContext);
5
5
  if (context === undefined) {
6
6
  throw new Error("hook must be used within a MonolithUIProvider");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",
@@ -1,2 +0,0 @@
1
- import { MonolithUIContextType } from "./MonolithUIProvider";
2
- export declare const useTheme: () => MonolithUIContextType;