-
Notifications
You must be signed in to change notification settings - Fork 20
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
Showing
11 changed files
with
135 additions
and
388 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
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ build-sb | |
|
||
/src-linaria-temp | ||
/css | ||
!css/package.json |
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
34 changes: 34 additions & 0 deletions
34
packages/plasma-ui/src-linaria/components/Button/Button.config.d.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,34 @@ | ||
export declare const config: { | ||
defaults: { | ||
view: string; | ||
focused: string; | ||
size: string; | ||
}; | ||
variations: { | ||
view: { | ||
primary: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
secondary: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
warning: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
critical: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
checked: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
overlay: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
clear: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
}; | ||
size: { | ||
l: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
m: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
s: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
}; | ||
disabled: { | ||
true: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
}; | ||
focused: { | ||
true: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
}; | ||
stretching: { | ||
auto: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
filled: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
fixed: import('@salutejs/plasma-new-hope/types/engines/types').PolymorphicClassName; | ||
}; | ||
}; | ||
}; |
242 changes: 25 additions & 217 deletions
242
packages/plasma-ui/src-linaria/components/Button/Button.config.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { ButtonProps } from '@salutejs/plasma-core'; | ||
import React from 'react'; | ||
/** | ||
* Кнопка. | ||
*/ | ||
export declare const Button: React.ForwardRefExoticComponent<ButtonProps<HTMLElement> & React.RefAttributes<any>>; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Button } from './Button'; |
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 @@ | ||
export * from './components/Button'; |
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