-
-
Notifications
You must be signed in to change notification settings - Fork 5
Feat components #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feat components #224
Changes from 19 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
fe9dc53
Init components package
e42cfa1
Update components package devup.json
e1de67c
Update button component
c9c963c
Remove box
e376e35
Merge branch 'main' of https://github.com/dev-five-git/devup-ui into …
3b12314
Update packages
841ffec
Remove unnecessary css vars
35cc816
Upgrade storybook to 9.0.15
1b4ad94
Remove unused storybook addon
ee92876
Fix storybook upgrade error
b5e125b
Install clsx
d024d40
Create variants object
a46f080
Merge branch 'main' into feat-components
5cb8554
Add styleVars keys
abfe32e
Add WithIcon story
6a06e5c
Merge branch 'main' into feat-components
198662a
Merge branch 'main' into feat-components
281a7fe
Add error & disabled design
42793ce
Add button comp form story
6f50121
Remove changelog md
499b4e9
Fix package.json, .changeset
8a3b9a8
Fix fallback colors
3fccbfd
Merge branch 'main' into feat-components
33ac8e0
Setup components tests
d2c2607
Merge branch 'main' into feat-components
a22507d
Merge branch 'main' into feat-components
d131d2d
Merge branch 'main' into feat-components
bfa72e4
Update repo
709ac9a
Edit vitest config
b10abf8
Fix button comp
a905e2f
Fix button comp test
4d39604
Merge branch 'main' into feat-components
a9b65eb
Merge branch 'main' into feat-components
37c36d5
Install @devup-ui/components in apps/landing
7c7df38
Set storybook build command in yml
e56667e
Add component page links and dumm mdx
195f96d
Fix color, letter
d354422
Change prop name
29b7cb0
Fix test
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
4 changes: 4 additions & 0 deletions
4
apps/landing/src/app/(detail)/components/form/button/page.tsx
This file contains hidden or 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,4 @@ | ||
import { Button } from '@devup-ui/react' | ||
export default function Page() { | ||
return <Button>Button</Button> | ||
} |
This file contains hidden or 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,19 @@ | ||
import { DevupUI } from '@devup-ui/vite-plugin' | ||
import type { StorybookConfig } from '@storybook/react-vite' | ||
import { mergeConfig } from 'vite' | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
addons: ['@storybook/addon-docs', '@storybook/addon-onboarding'], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
|
||
viteFinal(config) { | ||
return mergeConfig(config, { | ||
plugins: [DevupUI()], | ||
}) | ||
}, | ||
} | ||
export default config |
This file contains hidden or 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,62 @@ | ||
import { setTheme } from '@devup-ui/react' | ||
import { Decorator } from '@storybook/react-vite' | ||
import { useEffect } from 'react' | ||
const preview: import('@storybook/react-vite').Preview = { | ||
parameters: { | ||
layout: 'fullscreen', | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default preview | ||
|
||
export const globalTypes = { | ||
theme: { | ||
name: 'Theme', | ||
description: 'Global theme for components', | ||
defaultValue: 'light', | ||
toolbar: { | ||
// The icon for the toolbar item | ||
icon: 'circlehollow', | ||
// Array of options | ||
items: [ | ||
{ value: 'default', icon: 'circlehollow', title: 'light' }, | ||
{ value: 'dark', icon: 'circle', title: 'dark' }, | ||
], | ||
// Property that specifies if the name of the item will be displayed | ||
showName: true, | ||
}, | ||
}, | ||
} | ||
|
||
export const withHead: Decorator = (StoryFn) => { | ||
return ( | ||
<> | ||
<StoryFn /> | ||
</> | ||
) | ||
} | ||
export const withTheme: Decorator = (StoryFn, context) => { | ||
// Get values from story parameter first, else fallback to globals | ||
const theme = context.parameters.theme || context.globals.theme | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
useEffect(() => { | ||
setTheme(theme) | ||
}, [theme]) | ||
return ( | ||
<> | ||
<StoryFn /> | ||
<style | ||
dangerouslySetInnerHTML={{ | ||
__html: `:root[data-theme=default]{color-scheme: light;}:root[data-theme=dark]{color-scheme: dark;}`, | ||
}} | ||
></style> | ||
</> | ||
) | ||
} | ||
export const decorators = [withHead, withTheme] |
This file contains hidden or 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,242 @@ | ||
# @devup-ui/react | ||
|
||
## 1.0.4 | ||
|
||
### Patch Changes | ||
|
||
- 9d45acb: Update wasm | ||
|
||
## 1.0.3 | ||
|
||
### Patch Changes | ||
|
||
- c5336c9: Add writingMode, textOrientation | ||
|
||
## 1.0.2 | ||
|
||
### Patch Changes | ||
|
||
- bb2f49f: Add vendor properties (moz, webkit, ms) | ||
|
||
## 1.0.1 | ||
|
||
### Patch Changes | ||
|
||
- 864c37b: Add info to package.json | ||
|
||
## 1.0.0 | ||
|
||
### Major Changes | ||
|
||
- 18b1bd7: Optimize Zero value | ||
|
||
## 0.1.34 | ||
|
||
### Patch Changes | ||
|
||
- c029a8d: Fix theme script | ||
|
||
## 0.1.33 | ||
|
||
### Patch Changes | ||
|
||
- 57db495: Add initTheme, Fix typing issue of ThemeScript | ||
|
||
## 0.1.32 | ||
|
||
### Patch Changes | ||
|
||
- 5f2ad1d: Add default theme | ||
|
||
## 0.1.31 | ||
|
||
### Patch Changes | ||
|
||
- e7fd185: Add textDecoration type | ||
|
||
## 0.1.30 | ||
|
||
### Patch Changes | ||
|
||
- 0e1ab6e: Support for conditional selector | ||
|
||
## 0.1.29 | ||
|
||
### Patch Changes | ||
|
||
- 7535643: Change default generic type of VStack | ||
|
||
## 0.1.28 | ||
|
||
### Patch Changes | ||
|
||
- 98c7b47: Add support conditional pattern | ||
|
||
## 0.1.27 | ||
|
||
### Patch Changes | ||
|
||
- 68f79d0: Add lineClamp, willChange | ||
- 456cb42: Add visiblity | ||
|
||
## 0.1.26 | ||
|
||
### Patch Changes | ||
|
||
- 27c414d: Implement style order | ||
|
||
## 0.1.25 | ||
|
||
### Patch Changes | ||
|
||
- a3684c5: Add selectors | ||
|
||
## 0.1.24 | ||
|
||
### Patch Changes | ||
|
||
- bf47284: Add borderTopRadius, borderBottomRadius, borderLeftRadius, borderRightRadius, \_print | ||
|
||
## 0.1.23 | ||
|
||
### Patch Changes | ||
|
||
- 2102fd7: Support theme typing to css | ||
|
||
## 0.1.22 | ||
|
||
### Patch Changes | ||
|
||
- e1d8d8b: Fix typing issue | ||
|
||
## 0.1.21 | ||
|
||
### Patch Changes | ||
|
||
- 96cd069: Fix theme typing issue | ||
|
||
## 0.1.20 | ||
|
||
### Patch Changes | ||
|
||
- 064476f: Fix TypographyKey type definition for better type checking | ||
|
||
## 0.1.19 | ||
|
||
### Patch Changes | ||
|
||
- 7e54c1f: Fix type checking issue | ||
|
||
## 0.1.18 | ||
|
||
### Patch Changes | ||
|
||
- 77afb9e: Support generic to as prop | ||
|
||
## 0.1.17 | ||
|
||
### Patch Changes | ||
|
||
- ea622ed: Add svg props | ||
|
||
## 0.1.16 | ||
|
||
### Patch Changes | ||
|
||
- e072762: convert css | ||
|
||
## 0.1.15 | ||
|
||
### Patch Changes | ||
|
||
- b40d274: Add typograhpy to props | ||
|
||
## 0.1.14 | ||
|
||
### Patch Changes | ||
|
||
- 7f19bd5: Implement ThemeScript, useTheme, getTheme, setTheme | ||
|
||
## 0.1.13 | ||
|
||
### Patch Changes | ||
|
||
- 00b14ca: Support optional args in css | ||
|
||
## 0.1.12 | ||
|
||
### Patch Changes | ||
|
||
- b84cbc1: Update css.ts | ||
|
||
## 0.1.11 | ||
|
||
### Patch Changes | ||
|
||
- 76e8fa1: Add grid, Support for selector in css | ||
|
||
## 0.1.10 | ||
|
||
### Patch Changes | ||
|
||
- 0da9456: Add content to style props | ||
|
||
## 0.1.9 | ||
|
||
### Patch Changes | ||
|
||
- 6f7c55d: Add group selector | ||
|
||
## 0.1.8 | ||
|
||
### Patch Changes | ||
|
||
- 8943bad: Add double selector | ||
|
||
## 0.1.7 | ||
|
||
### Patch Changes | ||
|
||
- 0040445: Fix selector type | ||
|
||
## 0.1.6 | ||
|
||
### Patch Changes | ||
|
||
- b25c769: Add placehoder to selector | ||
|
||
## 0.1.5 | ||
|
||
### Patch Changes | ||
|
||
- e9d655f: Add shorthand | ||
|
||
## 0.1.4 | ||
|
||
### Patch Changes | ||
|
||
- 7bde1f2: Add boxSizing prop | ||
|
||
## 0.1.3 | ||
|
||
### Patch Changes | ||
|
||
- 30443ae: Update readme | ||
|
||
## 0.1.2 | ||
|
||
### Patch Changes | ||
|
||
- 242a6c2: Update package | ||
|
||
## 0.1.1 | ||
|
||
### Patch Changes | ||
|
||
- 6100644: Add Image component | ||
|
||
## 0.1.0 | ||
|
||
### Minor Changes | ||
|
||
- c0ff96f: Deploy |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
changelog 는 제거되어야 합니다