Skip to content

Commit

Permalink
release(setting): v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Jun 11, 2024
1 parent b555ff7 commit 5710ffe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
"setting": {
"install": true,
"react": true,
"version": "2.0.0",
"version": "2.0.1",
"style": true,
"icon": false,
"test": true,
Expand Down
6 changes: 5 additions & 1 deletion src/setting/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.1 (11 Jun 2024)

* fix: react custom className not working

## 2.0.0 (11 Jun 2024)

* refactor: react implementation
Expand All @@ -8,4 +12,4 @@

## 1.0.0 (18 Dec 2023)

* chore: rename setting text to input
* chore: rename setting text to input
2 changes: 1 addition & 1 deletion src/setting/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setting",
"version": "2.0.0",
"version": "2.0.1",
"description": "Settings panel",
"dependencies": {
"micromark": "^3.1.0"
Expand Down
6 changes: 5 additions & 1 deletion src/setting/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ const LunaSetting: FC<PropsWithChildren<ISettingProps>> = (props) => {
})

return (
<Component compName="setting" theme={props.theme}>
<Component
compName="setting"
theme={props.theme}
className={props.className}
>
{children}
</Component>
)
Expand Down
4 changes: 3 additions & 1 deletion src/share/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import className from 'licia/className'
interface IComponentProps {
compName: string
theme?: string
className?: string
}

export const Component: FC<PropsWithChildren<IComponentProps>> = (props) => {
Expand All @@ -15,7 +16,8 @@ export const Component: FC<PropsWithChildren<IComponentProps>> = (props) => {
className={className(
`luna-${props.compName}`,
c(`platform-${getPlatform()}`),
c(`theme-${props.theme || 'light'}`)
c(`theme-${props.theme || 'light'}`),
props.className
)}
>
{props.children}
Expand Down

0 comments on commit 5710ffe

Please sign in to comment.