Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szkabaroli committed Mar 17, 2023
1 parent 10ac954 commit dc1f6c0
Show file tree
Hide file tree
Showing 19 changed files with 63 additions and 62 deletions.
8 changes: 4 additions & 4 deletions packages/button/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-button",
"description": "Button component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -37,9 +37,9 @@
},
"dependencies": {
"@types/styled-components": "^5.1.26",
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-text": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21"
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-text": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22"
},
"devDependencies": {
"@meshx-org/mxui-tsconfig": "*",
Expand Down
6 changes: 3 additions & 3 deletions packages/button/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ const StyledButton = styled.button`
padding: 0;
border: none;
background: transparent;
max-width: fit-content;
align-items: flex-start;
cursor: pointer;
width: 100%;
height: 32px;
&[data-state='disabled'] {
Expand All @@ -41,7 +40,7 @@ const ButtonContent = styled.div`
`

function Button(props: ButtonProps) {
const { children, apparance = 'default', disabled = false, onPress, as, ...otherProps } = props
const { children, apparance = 'default', disabled = false, fit = true, onPress, as, ...otherProps } = props

const theme = useTheme()
const { state, handlers } = useControlState<HTMLButtonElement>(disabled)
Expand Down Expand Up @@ -69,6 +68,7 @@ function Button(props: ButtonProps) {
return (
<StyledButton
as={as}
style={{ maxWidth: fit ? 'fit-content' : undefined }}
type="button"
{...otherProps}
onClick={handleClick}
Expand Down
6 changes: 3 additions & 3 deletions packages/button/src/Button.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export interface ButtonProps {
apparance?: 'default' | 'accent'

/**
* A button can fill the width of its container.
* @default false
* A button fits the content.
* @default true
*/
block?: boolean
fit?: boolean

/**
* A button can show that it cannot be interacted with.
Expand Down
3 changes: 2 additions & 1 deletion packages/button/src/LinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ const ButtonContent = styled.a`
align-items: center;
justify-content: center;
padding: 0px 12px;
min-width: 32px;
font-size: 14px;
line-height: 20px;
min-width: 80px;
column-gap: 6px;
`

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-core",
"description": "Button component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down
6 changes: 3 additions & 3 deletions packages/datebox/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-datebox",
"description": "DateBox component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -41,8 +41,8 @@
"clsx": "1.2.1",
"@internationalized/date": "3.1.0",
"@internationalized/number": "3.2.0",
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21"
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22"
},
"devDependencies": {
"@meshx-org/mxui-tsconfig": "*",
Expand Down
20 changes: 10 additions & 10 deletions packages/mxui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui",
"description": "Button component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -37,15 +37,15 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-overlays": "0.7.21",
"@meshx-org/mxui-navigation": "0.7.21",
"@meshx-org/mxui-button": "0.7.21",
"@meshx-org/mxui-switch": "0.7.21",
"@meshx-org/mxui-textbox": "0.7.21",
"@meshx-org/mxui-slider": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21",
"@meshx-org/mxui-treeview": "0.7.21",
"@meshx-org/mxui-text": "0.7.21"
"@meshx-org/mxui-overlays": "0.7.22",
"@meshx-org/mxui-navigation": "0.7.22",
"@meshx-org/mxui-button": "0.7.22",
"@meshx-org/mxui-switch": "0.7.22",
"@meshx-org/mxui-textbox": "0.7.22",
"@meshx-org/mxui-slider": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22",
"@meshx-org/mxui-treeview": "0.7.22",
"@meshx-org/mxui-text": "0.7.22"
},
"devDependencies": {
"@meshx-org/mxui-tsconfig": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-navigation",
"description": "Navigation components for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down
2 changes: 1 addition & 1 deletion packages/navigation/src/avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Stroke = styled.div<{ size: number }>`
bottom: 0;
border-radius: ${(props) => props.size / 2}px;
z-index: 10;
border: 1px solid ${(props) => (props.theme.name === 'dark' ? 'rgba(255, 255, 255, 0.07)' : 'rgba(0, 0, 0, 0.06)')};
border: 1px solid ${(props) => (props.theme.name === 'dark' ? 'rgba(255, 255, 255, 0.07)' : 'rgba(0, 0, 0, 0.09)')};
`

const Container = styled.div<{ size: number }>`
Expand Down
6 changes: 3 additions & 3 deletions packages/overlays/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-overlays",
"description": "Overlay component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co",
Expand Down Expand Up @@ -36,8 +36,8 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21",
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22",
"@types/styled-components": "^5.1.26"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/primitives/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-primitives",
"description": "Button component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -37,7 +37,7 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-core": "0.7.22",
"styled-system": "^5.1.5",
"@types/styled-system": "^5.1.15",
"@types/styled-components": "^5.1.26"
Expand Down
6 changes: 3 additions & 3 deletions packages/searchbox/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-searchbox",
"description": "SearchBox component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co",
Expand Down Expand Up @@ -36,8 +36,8 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-textbox": "0.7.21",
"@meshx-org/mxui-overlays": "0.7.21",
"@meshx-org/mxui-textbox": "0.7.22",
"@meshx-org/mxui-overlays": "0.7.22",
"styled-system": "^5.1.5"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/select/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-select",
"description": "Select component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -36,8 +36,8 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21",
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22",
"@types/styled-components": "^5.1.26"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/slider/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-slider",
"description": "Slider component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -36,8 +36,8 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21",
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22",
"styled-components": "^5.3.6",
"react-slider": "^2.0.4"
},
Expand Down
20 changes: 10 additions & 10 deletions packages/stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
},
"dependencies": {
"@internationalized/date": "3.1.0",
"@meshx-org/mxui-button": "0.7.21",
"@meshx-org/mxui-switch": "0.7.21",
"@meshx-org/mxui-overlays": "0.7.21",
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21",
"@meshx-org/mxui-textbox": "0.7.21",
"@meshx-org/mxui-datebox": "0.7.21",
"@meshx-org/mxui-text": "0.7.21",
"@meshx-org/mxui-slider": "0.7.21",
"@meshx-org/mxui-treeview": "0.7.21",
"@meshx-org/mxui-button": "0.7.22",
"@meshx-org/mxui-switch": "0.7.22",
"@meshx-org/mxui-overlays": "0.7.22",
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22",
"@meshx-org/mxui-textbox": "0.7.22",
"@meshx-org/mxui-datebox": "0.7.22",
"@meshx-org/mxui-text": "0.7.22",
"@meshx-org/mxui-slider": "0.7.22",
"@meshx-org/mxui-treeview": "0.7.22",
"@storybook/addon-react-native-web": "^0.0.19",
"@storybook/react": "^6.5.15",
"@storybook/manager-webpack5": "^6.5.16",
Expand Down
4 changes: 2 additions & 2 deletions packages/text/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-text",
"description": "Text component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -36,7 +36,7 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-core": "0.7.22",
"styled-system": "^5.1.5"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/textbox/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-textbox",
"description": "TextBox component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -38,8 +38,8 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21"
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22"
},
"devDependencies": {
"@meshx-org/mxui-tsconfig": "*",
Expand Down
6 changes: 3 additions & 3 deletions packages/toggle-switch/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-switch",
"description": "Switch component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -38,8 +38,8 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-text": "0.7.21"
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-text": "0.7.22"
},
"devDependencies": {
"@types/styled-components": "^5.1.26",
Expand Down
6 changes: 3 additions & 3 deletions packages/treeview/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshx-org/mxui-treeview",
"description": "TreeView component for MXUI",
"version": "0.7.21",
"version": "0.7.22",
"license": "Apache-2.0",
"author": "Roland Szarka-Kovács <Roland.Szarka-Kovacs@meshx.co>",
"homepage": "https://meshx.co/produts/mxui",
Expand Down Expand Up @@ -38,8 +38,8 @@
"build": "bob build"
},
"dependencies": {
"@meshx-org/mxui-core": "0.7.21",
"@meshx-org/mxui-primitives": "0.7.21"
"@meshx-org/mxui-core": "0.7.22",
"@meshx-org/mxui-primitives": "0.7.22"
},
"devDependencies": {
"@meshx-org/mxui-tsconfig": "*",
Expand Down

0 comments on commit dc1f6c0

Please sign in to comment.