-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d18a2d
commit ce8c247
Showing
45 changed files
with
451 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@saas-ui/react': patch | ||
--- | ||
|
||
Inputs now use semanti radii tokens |
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,5 @@ | ||
--- | ||
'@saas-ui/react': patch | ||
--- | ||
|
||
SegmentGroup now use semantic radii tokens |
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,5 @@ | ||
--- | ||
'@saas-ui/react': patch | ||
--- | ||
|
||
Forward ref to LoadingOverlay.Root |
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
Submodule pro
updated
from 498aa7 to 5112e6
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
File renamed without changes.
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
File renamed without changes.
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
20 changes: 20 additions & 0 deletions
20
packages/saas-ui-react/src/components/input-group/input-group.stories.tsx
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,20 @@ | ||
import { Text } from '@chakra-ui/react' | ||
|
||
import { Input } from '../input' | ||
import { InputGroup } from './input-group' | ||
|
||
export default { | ||
title: 'Components/InputGroup', | ||
component: InputGroup, | ||
} | ||
|
||
export const Basic = () => { | ||
return ( | ||
<InputGroup | ||
startElement={<Text>https://</Text>} | ||
endElement={<Text>.com</Text>} | ||
> | ||
<Input ps="60px" /> | ||
</InputGroup> | ||
) | ||
} |
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,12 @@ | ||
export { | ||
Input, | ||
InputAddon, | ||
InputElement, | ||
InputPropsProvider, | ||
} from '@chakra-ui/react/input' | ||
|
||
export type { | ||
InputProps, | ||
InputAddonProps, | ||
InputElementProps, | ||
} from '@chakra-ui/react/input' |
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
54 changes: 54 additions & 0 deletions
54
packages/saas-ui-react/src/components/input/input.stories.tsx
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,54 @@ | ||
import { Group, Stack } from '@chakra-ui/react' | ||
|
||
import { Input, InputAddon } from './index' | ||
|
||
export default { | ||
title: 'Components/Input', | ||
component: Input, | ||
} | ||
|
||
export const Basic = () => { | ||
return <Input placeholder="Enter your email" /> | ||
} | ||
|
||
export const Sizes = () => { | ||
return ( | ||
<Stack gap="4"> | ||
<Input placeholder="Enter your email" size="xs" /> | ||
|
||
<Input placeholder="Enter your email" size="sm" /> | ||
|
||
<Input placeholder="Enter your email" size="md" /> | ||
|
||
<Input placeholder="Enter your email" size="lg" /> | ||
|
||
<Input placeholder="Enter your email" size="xl" /> | ||
</Stack> | ||
) | ||
} | ||
|
||
export const Variants = () => { | ||
return ( | ||
<Stack gap="4"> | ||
<Input placeholder="Enter your email" variant="outline" /> | ||
|
||
<Input placeholder="Enter your email" variant="subtle" /> | ||
|
||
<Input placeholder="Enter your email" variant="flushed" /> | ||
</Stack> | ||
) | ||
} | ||
|
||
export const WithAddon = () => ( | ||
<Stack gap="10" maxW="320px"> | ||
<Group attached> | ||
<InputAddon>+31</InputAddon> | ||
<Input placeholder="Phone number..." /> | ||
</Group> | ||
|
||
<Group attached> | ||
<Input placeholder="Subdomain" /> | ||
<InputAddon>acme.com</InputAddon> | ||
</Group> | ||
</Stack> | ||
) |
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
.../src/theme/recipes/chakra/number-input.ts → ...nents/number-input/number-input.recipe.ts
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.