Skip to content

Commit 725ebcc

Browse files
authored
feat(web_common): make simpler including common package directly within repo (#5523)
1 parent 5435ff8 commit 725ebcc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+238
-228
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:root {
1+
:where(:root) {
22
--color-badge-background: var(--color-neutral-100);
33
--color-badge-foreground: var(--color-prose);
44
}

web/common/src/components/Badge/Badge.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Meta, StoryObj } from '@storybook/react-vite'
22

3-
import type { Shape, Size } from '@/types'
3+
import type { Shape, Size } from '@sqlmesh-common/types'
44
import { Badge } from './Badge'
55

66
const meta: Meta<typeof Badge> = {

web/common/src/components/Badge/Badge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Slot } from '@radix-ui/react-slot'
22
import React from 'react'
33

4-
import type { Shape, Size } from '@/types'
5-
import { cn } from '@/utils'
4+
import type { Shape, Size } from '@sqlmesh-common/types'
5+
import { cn } from '@sqlmesh-common/utils'
66
import { cva } from 'class-variance-authority'
77

88
import './Badge.css'

web/common/src/components/Button/Button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:root {
1+
:where(:root) {
22
--color-button-primary-background: var(--color-action);
33
--color-button-primary-foreground: var(--color-light);
44
--color-button-primary-hover: var(--color-action-hover);

web/common/src/components/Button/Button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Meta, StoryObj } from '@storybook/react-vite'
2-
import type { Size } from '@/types'
2+
import type { Size } from '@sqlmesh-common/types'
33
import { Button, type ButtonVariant } from './Button'
44
import { fn, expect, userEvent, within } from 'storybook/test'
55

web/common/src/components/Button/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react'
22
import { Slot } from '@radix-ui/react-slot'
33
import { cva } from 'class-variance-authority'
44

5-
import { cn } from '@/utils'
6-
import type { Shape, Size } from '@/types'
5+
import { cn } from '@sqlmesh-common/utils'
6+
import type { Shape, Size } from '@sqlmesh-common/types'
77

88
import './Button.css'
99

web/common/src/components/CopyButton/CopyButton.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import React from 'react'
22

3-
import { Button, type ButtonProps } from '@/components/Button/Button'
4-
import { useCopyClipboard } from '@/hooks/useCopyClipboard'
3+
import {
4+
Button,
5+
type ButtonProps,
6+
} from '@sqlmesh-common/components/Button/Button'
7+
import { useCopyClipboard } from '@sqlmesh-common/hooks/useCopyClipboard'
58

69
export interface CopyButtonProps extends Omit<ButtonProps, 'children'> {
710
text: string

web/common/src/components/HorizontalContainer/HorizontalContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
import { cn } from '@/utils'
3+
import { cn } from '@sqlmesh-common/utils'
44
import { ScrollContainer } from '../ScrollContainer/ScrollContainer'
55

66
export interface HorizontalContainerProps

web/common/src/components/Input/Input.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:root {
1+
:where(:root) {
22
--color-input-background: var(--color-light);
33
--color-input-background-translucid: var(--color-neutral-5);
44
--color-input-foreground: var(--color-prose);

web/common/src/components/Input/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
2-
import { cn } from '@/utils'
3-
import type { Size } from '@/types'
2+
import { cn } from '@sqlmesh-common/utils'
3+
import type { Size } from '@sqlmesh-common/types'
44
import { cva } from 'class-variance-authority'
55

66
import './Input.css'

0 commit comments

Comments
 (0)