Skip to content

Commit

Permalink
chore(icons): ☝️ update icons (#4007) (#4015)
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
4 people authored Dec 4, 2024
1 parent 26f9693 commit a61d0d5
Show file tree
Hide file tree
Showing 3 changed files with 1,252 additions and 1,037 deletions.
6 changes: 6 additions & 0 deletions .changeset/2024-11-17-update-icons.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@swisspost/design-system-icons': minor
---

Added icon number 2633.

63 changes: 63 additions & 0 deletions packages/components/src/components/post-alert/readme.md
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/)*
Loading

0 comments on commit a61d0d5

Please sign in to comment.