-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Input and InsetInput styles [MDS-642] (#2438)
- Loading branch information
Showing
12 changed files
with
552 additions
and
556 deletions.
There are no files selected for viewing
208 changes: 104 additions & 104 deletions
208
next-docs/public/examples/combobox/__tests__/__snapshots__/index.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
88 changes: 44 additions & 44 deletions
88
next-docs/public/examples/form/__tests__/__snapshots__/index.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
272 changes: 136 additions & 136 deletions
272
next-docs/public/examples/group/__tests__/__snapshots__/index.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
136 changes: 68 additions & 68 deletions
136
next-docs/public/examples/input/__tests__/__snapshots__/index.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
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
228 changes: 116 additions & 112 deletions
228
next-docs/public/examples/insetInput/__tests__/__snapshots__/index.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
72 changes: 36 additions & 36 deletions
72
next-docs/public/examples/tagsInput/__tests__/__snapshots__/index.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 0 additions & 13 deletions
13
workspaces/core/src/input/private/utils/getBorderRadius.ts
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type InputProps from '../types/InputProps'; | ||
|
||
const getTypeStyles = (type?: InputProps['type']): string | undefined => { | ||
switch (type) { | ||
case 'number': | ||
return 'input-number-clear'; | ||
case 'date': | ||
return 'ltr:input-d rtl:input-d-rtl'; | ||
case 'time': | ||
return 'ltr:input-t rtl:input-t-rtl'; | ||
case 'datetime-local': | ||
return 'ltr:input-d rtl:input-dt-local-rtl'; | ||
default: | ||
return; | ||
} | ||
}; | ||
|
||
export default getTypeStyles; |
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