Skip to content

Commit

Permalink
fix: text align input component
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamien committed Mar 22, 2024
1 parent db30949 commit f964631
Show file tree
Hide file tree
Showing 61 changed files with 294 additions and 57 deletions.
7 changes: 7 additions & 0 deletions packages/components/accordion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @jala-banyu/accordion

## 2.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 2.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/accordion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/accordion",
"version": "2.0.1",
"version": "2.0.2",
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
"keywords": [
"react",
Expand Down Expand Up @@ -43,7 +43,7 @@
"react": ">=18",
"react-dom": ">=18",
"framer-motion": ">=4.0.0",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": ">=1.0.0"
},
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/components/avatar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @jala-banyu/avatar

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/avatar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/avatar",
"version": "5.0.1",
"version": "5.0.2",
"description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
"keywords": [
"avatar"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/components/breadcrumbs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @jala-banyu/breadcrumbs

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/breadcrumbs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/breadcrumbs",
"version": "5.0.1",
"version": "5.0.2",
"description": "Breadcrumbs display a hierarchy of links to the current page or resource in an application.",
"keywords": [
"breadcrumbs"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/components/button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @jala-banyu/button

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2
- @jala-banyu/ripple@5.0.2
- @jala-banyu/spinner@5.0.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/button/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/button",
"version": "5.0.1",
"version": "5.0.2",
"description": "Buttons allow users to perform actions and choose with a single tap.",
"keywords": [
"button",
Expand Down Expand Up @@ -39,7 +39,7 @@
"framer-motion": ">=4.0.0",
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/components/card/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @jala-banyu/card

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2
- @jala-banyu/ripple@5.0.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/card/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/card",
"version": "5.0.1",
"version": "5.0.2",
"description": "Card is a container for text, photos, and actions in the context of a single subject.",
"keywords": [
"card"
Expand Down Expand Up @@ -37,7 +37,7 @@
"react": ">=18",
"react-dom": ">=18",
"framer-motion": ">=4.0.0",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/components/checkbox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @jala-banyu/checkbox

## 2.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 2.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/checkbox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/checkbox",
"version": "2.0.1",
"version": "2.0.2",
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
"keywords": [
"checkbox"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": ">=1.0.0"
},
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/components/chip/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @jala-banyu/chip

## 2.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 2.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/chip/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/chip",
"version": "2.0.1",
"version": "2.0.2",
"description": "A Chip is a small block of essential information that represent an input, attribute, or action.",
"keywords": [
"chip"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": ">=1.0.0"
},
"dependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/components/code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @jala-banyu/code

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2
- @jala-banyu/system-rsc@5.0.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/code/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/code",
"version": "5.0.1",
"version": "5.0.2",
"description": "Code is a component used to display inline code.",
"keywords": [
"code"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/components/image/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @jala-banyu/image

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/image/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/image",
"version": "5.0.1",
"version": "5.0.2",
"description": "A simple image component",
"keywords": [
"image"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/components/input/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @jala-banyu/input

## 5.0.2

### Patch Changes

- add text alignment on input

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/input/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/input",
"version": "5.0.1",
"version": "5.0.2",
"description": "The input component is designed for capturing user input within a text field.",
"keywords": [
"input"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/components/input/src/use-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export function useInput<T extends HTMLInputElement | HTMLTextAreaElement = HTML
const isInvalid = validationState === "invalid" || originalProps.isInvalid;
const isValid = validationState === "valid" || originalProps.isValid;

const textAlign = originalProps.textAlign;
const labelPlacement = useMemo<InputVariantProps["labelPlacement"]>(() => {
if (!originalProps.labelPlacement && !label) {
return "outside";
Expand Down Expand Up @@ -592,6 +593,7 @@ export function useInput<T extends HTMLInputElement | HTMLTextAreaElement = HTML
classNames,
domRef,
label,
textAlign,
description,
startContent,
endContent,
Expand Down
8 changes: 8 additions & 0 deletions packages/components/kbd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @jala-banyu/kbd

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2
- @jala-banyu/system-rsc@5.0.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/kbd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/kbd",
"version": "5.0.1",
"version": "5.0.2",
"description": "The keyboard key components indicates which key or set of keys used to execute a specificv action",
"keywords": [
"kbd"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/components/link/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @jala-banyu/link

## 5.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/theme@1.5.2

## 5.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/link/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/link",
"version": "5.0.1",
"version": "5.0.2",
"description": "Links allow users to click their way from page to page. This component is styled to resemble a hyperlink and semantically renders an &lt;a&gt;",
"keywords": [
"link"
Expand Down Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@jala-banyu/theme": "1.5.1",
"@jala-banyu/theme": "1.5.2",
"@jala-banyu/system": "1.1.0"
},
"dependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/components/listbox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @jala-banyu/listbox

## 2.0.2

### Patch Changes

- Updated dependencies []:
- @jala-banyu/input@5.0.2
- @jala-banyu/theme@1.5.2

## 2.0.1

### Patch Changes
Expand Down
Loading

0 comments on commit f964631

Please sign in to comment.