@stamcat/craftsman 0.0.26 → 0.0.27-alpha.1

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/README.md CHANGED
@@ -17,7 +17,7 @@ Use this pattern in React Server Component architectures (for example Next.js Ap
17
17
 
18
18
  ```tsx
19
19
  import { ThemeProvider } from "@stamcat/craftsman/styles";
20
- import "@stamcat/craftsman/styles";
20
+ import "@stamcat/craftsman/styles/globalStyles.module.scss";
21
21
 
22
22
  const appTheme = {
23
23
  root: {
package/Styles.esm.js CHANGED
@@ -3,6 +3,5 @@ import { color as n, colors as r, hexToRgba as i } from "./src/styles/utilities/
3
3
  import { BaseWidthSchema as a, BreakpointSchema as o, LayoutWidthsSchema as s, MaxScreenWidthSchema as c, ScreenWidthSchema as l, zLabelPosition as u, zTextInputExclusions as d, zTextInputType as f, zTextInputTypes as p } from "./src/styles/utilities/types.esm.js";
4
4
  import { breakpoint as m, media as h, width as g, widths as _ } from "./src/styles/utilities/layout.esm.js";
5
5
  import { themeBuilder as v } from "./src/styles/theme/theme.esm.js";
6
- import { globalStyles as y } from "./src/styles/global/globalStyles.esm.js";
7
- import { ThemeProvider as b } from "./src/styles/components/ThemeProvider.esm.js";
8
- export { a as BaseWidthSchema, o as BreakpointSchema, s as LayoutWidthsSchema, c as MaxScreenWidthSchema, l as ScreenWidthSchema, b as ThemeProvider, m as breakpoint, n as color, r as colors, e as defaultColors, t as defaultWidths, y as globalStyles, i as hexToRgba, h as media, v as themeBuilder, g as width, _ as widths, u as zLabelPosition, d as zTextInputExclusions, f as zTextInputType, p as zTextInputTypes };
6
+ import { ThemeProvider as y } from "./src/styles/components/ThemeProvider.esm.js";
7
+ export { a as BaseWidthSchema, o as BreakpointSchema, s as LayoutWidthsSchema, c as MaxScreenWidthSchema, l as ScreenWidthSchema, y as ThemeProvider, m as breakpoint, n as color, r as colors, e as defaultColors, t as defaultWidths, i as hexToRgba, h as media, v as themeBuilder, g as width, _ as widths, u as zLabelPosition, d as zTextInputExclusions, f as zTextInputType, p as zTextInputTypes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stamcat/craftsman",
3
- "version": "0.0.26",
3
+ "version": "0.0.27-alpha.1",
4
4
  "type": "module",
5
5
  "description": "A powerful, lightweight framework for design systems",
6
6
  "repository": {
@@ -54,6 +54,12 @@
54
54
  "types": "./src/utilities/index.d.ts",
55
55
  "default": "./Utilities.esm.js"
56
56
  },
57
+ "./styles/globalStyles.module.scss": {
58
+ "default": "./src/styles/global/globalStyles.module.scss"
59
+ },
60
+ "./styles/global/globalStyles.module.scss": {
61
+ "default": "./src/styles/global/globalStyles.module.scss"
62
+ },
57
63
  "./Button": {
58
64
  "types": "./src/components/Button.d.ts",
59
65
  "default": "./src/components/Button.esm.js"
@@ -2,6 +2,8 @@ import { Theme } from '../theme/types';
2
2
  type ThemeProviderProps = {
3
3
  theme?: Theme;
4
4
  children?: React.ReactNode;
5
+ precedence?: string;
6
+ href?: string;
5
7
  };
6
- export declare function ThemeProvider({ theme, children }: ThemeProviderProps): import("react").JSX.Element;
8
+ export declare function ThemeProvider({ theme, children, precedence, href, }: ThemeProviderProps): import("react").JSX.Element;
7
9
  export {};
@@ -1,8 +1,12 @@
1
1
  import { themeBuilder as e } from "../theme/theme.esm.js";
2
2
  import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  //#region src/styles/components/ThemeProvider.tsx
4
- function i({ theme: i, children: a }) {
5
- return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("style", { dangerouslySetInnerHTML: { __html: e(i || {}) } }), a] });
4
+ function i({ theme: i, children: a, precedence: o = "default", href: s = "stamcat-craftsman-theme-provider" }) {
5
+ return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("style", {
6
+ precedence: o,
7
+ href: s,
8
+ dangerouslySetInnerHTML: { __html: e(i || {}) }
9
+ }), a] });
6
10
  }
7
11
  //#endregion
8
12
  export { i as ThemeProvider };
@@ -3,5 +3,4 @@ export * from './utilities/constants';
3
3
  export * from './utilities/layout';
4
4
  export * from './utilities/types';
5
5
  export * from './theme/theme';
6
- export { globalStyles } from './global/globalStyles';
7
6
  export { ThemeProvider } from './components/ThemeProvider';
@@ -1 +0,0 @@
1
- export declare const globalStyles = "globalStyles";
@@ -1,4 +0,0 @@
1
- //#region src/styles/global/globalStyles.ts
2
- var e = "globalStyles";
3
- //#endregion
4
- export { e as globalStyles };