-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: neil <[email protected]> Signed-off-by: laixingyou <[email protected]> Signed-off-by: edmondfrank <[email protected]> Co-authored-by: laixingyou <[email protected]> Co-authored-by: edmondfrank <[email protected]>
- Loading branch information
1 parent
2d26cba
commit 2e5a881
Showing
221 changed files
with
15,000 additions
and
2,752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,6 @@ next.config.original.js | |
|
||
|
||
tmp | ||
|
||
|
||
graphql.config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Modal } from '@oss-compass/ui'; | ||
|
||
const meta: Meta<typeof Modal> = { | ||
title: 'basic/Modal', | ||
component: Modal, | ||
argTypes: { | ||
open: { control: 'boolean' }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof Modal>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
open: true, | ||
}, | ||
render: ({ open }) => { | ||
return ( | ||
<div className="p-10"> | ||
<Modal open={open}> | ||
<div className="rounded bg-white p-10 shadow"> | ||
<div>Text in a modal</div> | ||
<div> | ||
Duis mollis, est non commodo luctus, nisi erat porttitor ligula. | ||
</div> | ||
</div> | ||
</Modal> | ||
</div> | ||
); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Switch, SelectOption } from '@oss-compass/ui'; | ||
|
||
const meta: Meta<typeof Switch> = { | ||
title: 'basic/Switch', | ||
component: Switch, | ||
argTypes: {}, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof Switch>; | ||
|
||
export const Default: Story = { | ||
args: {}, | ||
render: (args) => { | ||
return ( | ||
<> | ||
<Switch defaultChecked inputProps={{ 'aria-label': 'switch' }} /> | ||
</> | ||
); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2e5a881
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
compass-web – ./
compass-web-preview.vercel.app
compass-web-compass-team.vercel.app
compass-web-git-main-compass-team.vercel.app