-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(visitorcounter): update props name and update typedoc #164
update props name to 'totalVisitorColor' and 'todayVisitorColor' BREAKING CHANGE: update props names following... 1. todayCisitorColor 2. totalVisitorColor
- Loading branch information
Showing
5 changed files
with
82 additions
and
94 deletions.
There are no files selected for viewing
77 changes: 34 additions & 43 deletions
77
src/lib/common/types/ComponentTypes/VisitorCounterType.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 |
---|---|---|
@@ -1,72 +1,63 @@ | ||
export interface VisitorCounterPropsType { | ||
/** | ||
* Hit title used in 'default' and 'big-size' (default: hit) | ||
* You can dramatically change the UI of the VisitorCounter by choosing one of the following themes: `'default' | 'big-size' | 'simple'`. (default: 'default') | ||
* | ||
* @type `'default' | 'big-size' | 'simple'` | ||
*/ | ||
title: string; | ||
theme?: VisitorCounterThemeType; | ||
/** | ||
* Number of today's visitors (default: 0) | ||
* Hit title text used only on `'default'` and `'big-size'` themes. (default: 'hit') | ||
*/ | ||
todayVisitor: number; | ||
title?: string; | ||
/** | ||
* Number of total visitors (default: 123) | ||
* title color style. (default: 'black') | ||
*/ | ||
totalVisitor: number; | ||
titleColor?: string; | ||
/** | ||
* Title of today's visit count used in 'big-size' and 'simple' (default: today) | ||
* Number of today's visitors. (default: 0) | ||
*/ | ||
todayTitle?: string; | ||
todayVisitor?: number; | ||
/** | ||
* Title of totla visit count used in 'big-size' and 'simple'(default: total) | ||
* todayVisitor color style. (default: 'red') | ||
*/ | ||
totalTitle?: string; | ||
todayVisitorColor?: string; | ||
/** | ||
* Background color (default: #91c230c4) | ||
* Number of total visitors. (default: 123) | ||
*/ | ||
backgroundColor?: string; | ||
totalVisitor?: number; | ||
/** | ||
* Font size of all text used in VisitorCounter Component (default: 14px) (unit: px) | ||
* totalVisitor color style. (default: 'red') | ||
*/ | ||
size?: string; | ||
totalVisitorColor?: string; | ||
/** | ||
* Color of today's visit count used in 'big-size' and 'simple' (default: red) | ||
* Title of today's the number of visitors used only on `'big-size'` and `'simple'` themes. (default: 'today') | ||
*/ | ||
todayBoldColor?: string; | ||
todayTitle?: string; | ||
/** | ||
* Color of total visit count used in 'big-size' and 'simple' (default: red) | ||
* todayTitle color style. (default: 'black') | ||
*/ | ||
totalBoldColor?: string; | ||
titleColor?: string; | ||
todayTitleColor?: string; | ||
totalTitleColor?: string; | ||
} | ||
|
||
export interface IndexPropsType extends VisitorCounterPropsType { | ||
/** | ||
* Visitor Counter theme 'default' | 'big-size' | 'simple' (default: 'default') | ||
* Title of total's the number of visitors used only on `'big-size'` and `'simple'` themes. (default: 'total') | ||
*/ | ||
theme?: VisitorCounterThemeType; | ||
} | ||
|
||
type VisitorCounterThemeType = 'default' | 'big-size' | 'simple'; | ||
|
||
export interface VisitorCounterStylePropsType { | ||
/** | ||
* Background color of todayTitle (default: #91c230c4) | ||
*/ | ||
backgroundColor?: string; | ||
totalTitle?: string; | ||
/** | ||
* Font size of all text used in VisitorCounter Component (default: 14px) (unit: px) | ||
* totalTitle color style. (default: 'black') | ||
*/ | ||
size?: string; | ||
totalTitleColor?: string; | ||
/** | ||
* Color of today's visit count used in 'big-size' and 'simple' (default: red) | ||
* Background color of todayTitle. (default: '#91c230c4') | ||
*/ | ||
todayBoldColor?: string; | ||
backgroundColor?: string; | ||
/** | ||
* Color of total visit count used in 'big-size' and 'simple' (default: red) | ||
* Font size of all text used in VisitorCounter Component (default: '14px') (unit: px) | ||
*/ | ||
totalBoldColor?: string; | ||
titleColor?: string; | ||
todayTitleColor?: string; | ||
totalTitleColor?: string; | ||
size?: string; | ||
} | ||
|
||
/** | ||
* You can dramatically change the UI of the VisitorCounter by choosing one of the following themes: `'default' | 'big-size' | 'simple'`. | ||
* | ||
* @type `'default' | 'big-size' | 'simple'` | ||
*/ | ||
type VisitorCounterThemeType = 'default' | 'big-size' | 'simple'; |
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