Skip to content

Commit

Permalink
Refactor directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchas116 committed Apr 29, 2023
1 parent fffa22a commit 0eb4dbb
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/compiler/CSSGenerator.ts
Expand Up @@ -4,7 +4,7 @@ import { Page } from "@uimix/model/src/models/Page";
import * as CodeAsset from "@uimix/adapter-types";
import { Selectable, Variant } from "@uimix/model/src/models";
import { ClassNameGenerator } from "./ClassNameGenerator";
import { SelfAndChildrenCSS } from "@uimix/elements-react";
import { SelfAndChildrenCSS } from "@uimix/elements-react/src/style";

function isDesignToken(
value: CodeAsset.DesignToken | CodeAsset.DesignTokens
Expand Down
@@ -1,4 +1,4 @@
import { Box, Text } from "./index";
import { Box, Text } from "./Box";

export default {
title: "Box",
Expand Down
@@ -1,6 +1,10 @@
import { ReactNode, useId } from "react";
import { StyleProps, defaultStyle } from "./StyleProps";
import { SelfAndChildrenCSS, buildNodeCSS } from "./buildNodeCSS";
import {
StyleProps,
defaultStyle,
SelfAndChildrenCSS,
buildNodeCSS,
} from "../style";

function kebabCase(str: string): string {
return str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
Expand Down
1 change: 1 addition & 0 deletions packages/elements-react/src/components/index.ts
@@ -0,0 +1 @@
export * from "./Box";
5 changes: 2 additions & 3 deletions packages/elements-react/src/index.ts
@@ -1,3 +1,2 @@
export * from "./Box";
export * from "./StyleProps";
export * from "./buildNodeCSS";
export * from "./components";
export * from "./style";
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions packages/elements-react/src/style/index.ts
@@ -0,0 +1,2 @@
export * from "./buildNodeCSS";
export * from "./StyleProps";
2 changes: 1 addition & 1 deletion packages/model/src/models/Selectable.ts
Expand Up @@ -15,7 +15,7 @@ import {
buildNodeCSS,
SelfAndChildrenCSS,
StyleProps,
} from "@uimix/elements-react";
} from "@uimix/elements-react/src/style";

export interface IComputedRectProvider {
readonly value: Rect | undefined;
Expand Down

0 comments on commit 0eb4dbb

Please sign in to comment.