-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Design system icons are now up to date! ## Added icons 2633 --------- Co-authored-by: Swiss Post Bot <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Oliver Schürch <[email protected]>
- Loading branch information
1 parent
26f9693
commit a61d0d5
Showing
3 changed files
with
1,252 additions
and
1,037 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/design-system-icons': minor | ||
--- | ||
|
||
Added icon number 2633. | ||
|
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,63 @@ | ||
# post-alert | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
## Properties | ||
|
||
| Property | Attribute | Description | Type | Default | | ||
| -------------- | --------------- | ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ----------- | | ||
| `dismissLabel` | `dismiss-label` | The label to use for the close button of a dismissible alert. | `string` | `undefined` | | ||
| `dismissible` | `dismissible` | If `true`, a close button (×) is displayed and the alert can be dismissed by the user. | `boolean` | `false` | | ||
| `fixed` | `fixed` | If `true`, the alert is positioned at the bottom of the window, from edge to edge. | `boolean` | `false` | | ||
| `icon` | `icon` | The icon to display in the alert. By default, the icon depends on the alert type. If `none`, no icon is displayed. | `string` | `undefined` | | ||
| `type` | `type` | The type of the alert. | `"danger" \| "gray" \| "info" \| "primary" \| "success" \| "warning"` | `'primary'` | | ||
|
||
|
||
## Events | ||
|
||
| Event | Description | Type | | ||
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | | ||
| `postDismissed` | An event emitted when the alert element is dismissed, after the transition. It has no payload and only relevant for dismissible alerts. | `CustomEvent<void>` | | ||
|
||
|
||
## Methods | ||
|
||
### `dismiss() => Promise<void>` | ||
|
||
Triggers alert dismissal programmatically (same as clicking on the close button (×)). | ||
|
||
#### Returns | ||
|
||
Type: `Promise<void>` | ||
|
||
|
||
|
||
|
||
## Slots | ||
|
||
| Slot | Description | | ||
| ----------- | ------------------------------------------------------------------------ | | ||
| `"actions"` | Slot for placing custom actions (buttons, links, etc.) within the alert. | | ||
| `"default"` | Slot for placing the main content/message of the alert. | | ||
| `"heading"` | Slot for placing custom content within the alert's heading. | | ||
|
||
|
||
## Dependencies | ||
|
||
### Depends on | ||
|
||
- [post-icon](../post-icon) | ||
|
||
### Graph | ||
```mermaid | ||
graph TD; | ||
post-alert --> post-icon | ||
style post-alert fill:#f9f,stroke:#333,stroke-width:4px | ||
``` | ||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
Oops, something went wrong.