-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from tonyghiani/icon-refactor-and-improvements
Move styles definition for smaller components
- Loading branch information
Showing
34 changed files
with
1,826 additions
and
1,609 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 |
---|---|---|
|
@@ -144,3 +144,5 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
.nx/cache |
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 |
---|---|---|
@@ -1,40 +1,26 @@ | ||
{ | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx/tasks-runners/default", | ||
"options": { | ||
"cacheableOperations": [ | ||
"build", | ||
"lint", | ||
"lint:package", | ||
"test" | ||
] | ||
} | ||
} | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"dependsOn": [ | ||
"^build" | ||
], | ||
"outputs": [ | ||
"{projectRoot}/dist" | ||
] | ||
"dependsOn": ["^build"], | ||
"outputs": ["{projectRoot}/dist"], | ||
"cache": true | ||
}, | ||
"lint": { | ||
"dependsOn": [ | ||
"^lint" | ||
] | ||
"dependsOn": ["^lint"], | ||
"cache": true | ||
}, | ||
"lint:package": { | ||
"dependsOn": [ | ||
"^lint:package" | ||
] | ||
"dependsOn": ["^lint:package"], | ||
"cache": true | ||
}, | ||
"test": { | ||
"dependsOn": [ | ||
"^test" | ||
] | ||
"dependsOn": ["^test"], | ||
"cache": true | ||
} | ||
}, | ||
"namedInputs": { | ||
"default": ["{projectRoot}/**/*", "sharedGlobals"], | ||
"sharedGlobals": [], | ||
"production": ["default"] | ||
} | ||
} |
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
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
22 changes: 22 additions & 0 deletions
22
packages/react-components/src/components/atoms/Button/Button.classes.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const btnClasses = { | ||
'.mnt-btn': { | ||
'@apply relative inline-block w-fit border-0 rounded-lg font-medium text-body py-2 px-4 cursor-pointer transition ease-out duration-150 disabled:text-gray-700 disabled:bg-gray-100 disabled:cursor-not-allowed': | ||
{}, | ||
'&-primary': { '@apply text-blue-700 bg-blue-600 from-blue-600 to-blue-400': {} }, | ||
'&-accent': { '@apply text-purple-700 bg-purple-600 from-purple-600 to-purple-400': {} }, | ||
'&-success': { '@apply text-green-600 bg-green-600 from-green-600 to-green-400': {} }, | ||
'&-warning': { | ||
'@apply text-yellow-600 bg-yellow-500 from-yellow-600 to-yellow-400': {} | ||
}, | ||
'&-danger': { '@apply text-red-700 bg-red-600 from-red-600 to-red-400': {} }, | ||
'&-disabled': { '@apply text-gray-600 bg-gray-500 from-gray-600 to-gray-400': {} }, | ||
'&-shade': { '@apply bg-opacity-20 hover:bg-opacity-30': {} }, | ||
'&-solid': { '@apply !text-light': {} }, | ||
'&-outline': { '@apply bg-opacity-10 hover:bg-opacity-30 shadow-outline-button': {} }, | ||
'&-gradient': { '@apply bg-gradient-to-br hover:bg-gradient-to-r !text-light': {} }, | ||
'&-link': { '@apply !bg-transparent hover:underline underline-offset-4': {} }, | ||
'&-text': { '@apply !bg-transparent hover:scale-105': {} } | ||
} | ||
}; | ||
|
||
export default btnClasses; |
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
7 changes: 7 additions & 0 deletions
7
packages/react-components/src/components/atoms/Code/Code.classes.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const codeClasses = { | ||
'.mnt-code': { | ||
'@apply bg-blue-950 text-secondaryBody text-light inline-block px-1 rounded': {} | ||
} | ||
}; | ||
|
||
export default codeClasses; |
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
27 changes: 27 additions & 0 deletions
27
packages/react-components/src/components/atoms/Input/Input.classes.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const inputClasses = { | ||
'.mnt-input': { | ||
'@apply w-full relative focus-within:[--text-input:theme(colors.blue.500)] focus-within:[--bg-input:theme(colors.blue.50)] focus-within:bg-opacity-20': | ||
{}, | ||
'&-wrapper': { | ||
'@apply w-full rounded-lg bg-[--bg-input] shadow-input focus-within:shadow-input-focus flex items-center flex-nowrap gap-2 transition duration-200': | ||
{} | ||
}, | ||
'&-node': { | ||
'@apply w-full text-dark font-medium border-0 bg-transparent placeholder:font-normal': {} | ||
}, | ||
'&-default': { | ||
'@apply [--text-input:theme(colors.gray.500)] [--bg-input:theme(colors.gray.50)]': {} | ||
}, | ||
'&-success': { | ||
'@apply [--text-input:theme(colors.green.600)] [--bg-input:theme(colors.emerald.50)]': {} | ||
}, | ||
'&-warning': { | ||
'@apply [--text-input:theme(colors.yellow.600)] [--bg-input:theme(colors.yellow.50)]': {} | ||
}, | ||
'&-error': { | ||
'@apply [--text-input:theme(colors.red.600)] [--bg-input:theme(colors.red.50)]': {} | ||
} | ||
} | ||
}; | ||
|
||
export default inputClasses; |
Oops, something went wrong.
868a1d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mountain-ui-react-hooks – ./
mountain-ui-react-hooks-tonyghiani.vercel.app
react-hooks.mountain-ui.com
mountain-ui-react-hooks-git-master-tonyghiani.vercel.app