-
Notifications
You must be signed in to change notification settings - Fork 7
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
radek.stary
committed
Apr 26, 2023
1 parent
6213b0a
commit 33dc915
Showing
99 changed files
with
2,658 additions
and
1,943 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 |
---|---|---|
|
@@ -12,5 +12,6 @@ module.exports = { | |
}, | ||
], | ||
'@babel/preset-react', | ||
'@babel/preset-typescript', | ||
], | ||
}; |
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,2 @@ | ||
declare module '*.css'; | ||
declare module '*.scss'; |
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,49 @@ | ||
/** | ||
* [Color variant](/foundation/colors#component-colors) | ||
*/ | ||
declare type Color = 'primary' | 'secondary' | 'selected' | 'success' | 'warning' | 'danger' | 'help' | 'info' | 'note' | 'light' | 'dark'; | ||
/** | ||
* Scrolling mode: | ||
*/ | ||
declare type Scrolling = 'auto' | 'custom' | 'none'; | ||
/** | ||
* Set the HTML `type` attribute of the `button` element. | ||
*/ | ||
declare type Type = 'button' | 'submit'; | ||
/** | ||
* Vertical alignment | ||
*/ | ||
declare type Align = 'top' | 'middle' | 'bottom' | 'baseline'; | ||
/** | ||
* Horizontal alignment (distribution) | ||
*/ | ||
declare type Justify = 'start' | 'center' | 'end' | 'space-between' | 'stretch'; | ||
/** | ||
* HTML input type | ||
*/ | ||
declare type InputType = 'email' | 'number' | 'password' | 'tel' | 'text'; | ||
declare type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'x2l' | 'x3l' | 'none'; | ||
declare type Priority = 'filled' | 'outline' | 'flat'; | ||
declare type Size = 'small' | 'medium' | 'large'; | ||
declare type Position = 'before' | 'after'; | ||
declare type Validation = 'invalid' | 'valid' | 'warning'; | ||
declare type Layout = 'horizontal' | 'vertical'; | ||
declare type Placement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'; | ||
declare type AutoScroll = 'always' | 'detectEnd' | 'off'; | ||
declare type Direction = 'asc' | 'desc'; | ||
declare type Hyphens = 'none' | 'auto' | 'manual'; | ||
declare type WordWrapping = 'normal' | 'long-words' | 'anywhere'; | ||
declare type VerticalModalPosition = 'top' | 'center'; | ||
|
||
declare type PredefinedLabelWidthValues = 'auto' | 'default' | 'limited'; | ||
|
||
// Test types | ||
|
||
declare type AssertFn = (rootElement: HTMLElement) => void; | ||
|
||
declare interface NonMandatoryProps { | ||
[key: string]: unknown; | ||
} | ||
|
||
declare type TestingProps = [nonMandatoryProps, AssertFn]; | ||
|
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.