-
Notifications
You must be signed in to change notification settings - Fork 477
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
1 parent
a185dd1
commit d7cd49e
Showing
14 changed files
with
81 additions
and
49 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
projects/demo/src/modules/experimental/badge-notification/examples/1/index.html
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,23 +1,23 @@ | ||
<h4>Desktop</h4> | ||
<p tuiPlatform="web"> | ||
<tui-badge-notification size="l">9</tui-badge-notification> | ||
<tui-badge-notification>9</tui-badge-notification> | ||
<tui-badge-notification size="m">9</tui-badge-notification> | ||
<tui-badge-notification size="s">9</tui-badge-notification> | ||
<tui-badge-notification size="xs">9</tui-badge-notification> | ||
</p> | ||
|
||
<h4>Android</h4> | ||
<p tuiPlatform="android"> | ||
<tui-badge-notification size="l">9</tui-badge-notification> | ||
<tui-badge-notification>9</tui-badge-notification> | ||
<tui-badge-notification size="m">9</tui-badge-notification> | ||
<tui-badge-notification size="s">9</tui-badge-notification> | ||
<tui-badge-notification size="xs">9</tui-badge-notification> | ||
</p> | ||
|
||
<h4>IOS</h4> | ||
<p tuiPlatform="ios"> | ||
<tui-badge-notification size="l">9</tui-badge-notification> | ||
<tui-badge-notification>9</tui-badge-notification> | ||
<tui-badge-notification size="m">9</tui-badge-notification> | ||
<tui-badge-notification size="s">9</tui-badge-notification> | ||
<tui-badge-notification size="xs">9</tui-badge-notification> | ||
</p> |
4 changes: 2 additions & 2 deletions
4
projects/demo/src/modules/experimental/badge-notification/examples/2/index.html
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,4 +1,4 @@ | ||
<tui-badge-notification>10</tui-badge-notification> | ||
<tui-badge-notification size="m">11</tui-badge-notification> | ||
<tui-badge-notification size="l">10</tui-badge-notification> | ||
<tui-badge-notification>11</tui-badge-notification> | ||
<tui-badge-notification size="s">12</tui-badge-notification> | ||
<tui-badge-notification size="xs"></tui-badge-notification> |
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
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
25 changes: 25 additions & 0 deletions
25
projects/experimental/components/badge-notification/badge-notification.options.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,25 @@ | ||
import {Provider} from '@angular/core'; | ||
import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; | ||
import {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; | ||
|
||
export interface TuiBadgeNotificationOptions { | ||
readonly size: TuiSizeL | TuiSizeXS; | ||
} | ||
|
||
export const TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS: TuiBadgeNotificationOptions = { | ||
size: 'm', | ||
}; | ||
|
||
export const TUI_BADGE_NOTIFICATION_OPTIONS = tuiCreateToken( | ||
TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS, | ||
); | ||
|
||
export function tuiBadgeNotificationOptionsProvider( | ||
options: Partial<TuiBadgeNotificationOptions>, | ||
): Provider { | ||
return tuiProvideOptions( | ||
TUI_BADGE_NOTIFICATION_OPTIONS, | ||
options, | ||
TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS, | ||
); | ||
} |
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,2 +1,3 @@ | ||
export * from './badge-notification.component'; | ||
export * from './badge-notification.module'; | ||
export * from './badge-notification.options'; |
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