-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
45 changed files
with
1,571 additions
and
4,426 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
2 changes: 1 addition & 1 deletion
2
...tics/src/lib/gio-pendo/README.stories.mdx → ...ui-analytics/src/lib/gio-pendo/README.mdx
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
2 changes: 1 addition & 1 deletion
2
...ngular/gio-asciidoctor/README.stories.mdx → ...ticles-angular/gio-asciidoctor/README.mdx
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Meta, Markdown } from '@storybook/blocks'; | ||
|
||
import README from '../README.md'; | ||
|
||
<Meta title="README" /> | ||
|
||
<Markdown> | ||
{README} | ||
</Markdown> |
This file was deleted.
Oops, something went wrong.
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
13 changes: 8 additions & 5 deletions
13
...lar/src/lib/gio-banner/README.stories.mdx → ...les-angular/src/lib/gio-banner/README.mdx
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
30 changes: 30 additions & 0 deletions
30
projects/ui-particles-angular/src/lib/gio-button-toggle-group/README.mdx
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,30 @@ | ||
import { Meta, Story } from '@storybook/blocks'; | ||
import * as ReadmeStories from './gio-button-toggle-group.stories'; | ||
|
||
<Meta of={ReadmeStories} /> | ||
|
||
# Gio Button Toggle (group) | ||
|
||
Custom style for Angular Material button toggle group. | ||
|
||
## Demo | ||
|
||
{/* <Story id="components-button-toggle-group--default" /> is deprecated, please migrate it to <Story of={referenceToStory} /> see: https://storybook.js.org/migration-guides/7.0 */} | ||
|
||
<Story id="components-button-toggle-group--default" /> | ||
|
||
## Usage | ||
|
||
Add class `gio-button-toggle-group` to `mat-button-toggle-group` component. | ||
|
||
OR | ||
|
||
Use include mixin `gio-button-toggle-group` in your own class like : | ||
|
||
```scss | ||
@use '@gravitee/ui-particles-angular' as gio; | ||
|
||
.my-class { | ||
@include gio.gio-button-toggle-group() | ||
} | ||
``` |
27 changes: 0 additions & 27 deletions
27
projects/ui-particles-angular/src/lib/gio-button-toggle-group/README.stories.mdx
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
projects/ui-particles-angular/src/lib/gio-button/REAMDE.mdx
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,47 @@ | ||
import { Meta, Story } from '@storybook/blocks'; | ||
|
||
<Meta title="Components / Button / README" /> | ||
|
||
# Gio Button | ||
|
||
A button element is used to indicate an action. | ||
|
||
## Button styles | ||
|
||
* **Primary**: Provide the strongest visual emphasis to an action with a solid background — one per context. | ||
* **Basic**: For less prominent, and sometimes independent, actions. | ||
* **Accent**: For promotion actions. | ||
* **Warn**: For actions that could have destructive effects on the user’s data. | ||
* **Link**: Style an anchor link. | ||
|
||
## When no to use | ||
|
||
If you are directing a user to a new location, consider using an anchor `<a>` element, which can also be styled like a button when actions and destinations are present in the same set of controls. | ||
|
||
## Best practices | ||
|
||
* Use a primary button to indicate the main action of a group button set. | ||
* Keep buttons visually grouped. | ||
* Keep buttons inline when space allows. | ||
* Use concise and clear enough action verb to tell the users what happens when the button is activated. | ||
|
||
## Alignment | ||
|
||
* **Left alignment**: In page, buttons align with other content on the page. | ||
* **Right alignment**: In containers like modals, global actions or toolbars. | ||
* **Center alignment**: Only used for empty states where the actions are the only ones available in context. | ||
|
||
## Order | ||
|
||
* The visual hierarchy is primary buttons on the left edge, followed by basic buttons. | ||
|
||
## Icon | ||
|
||
* An icon can be used in place of text. If the action may not be universally understood, then consider using a tooltip to provide the action in text form. | ||
* When used with text, the icon is generally aligned to the left of the text. You can align the button to the right for actions that take users out of context. An example would be: External link. | ||
|
||
## Accessibility | ||
|
||
* Icon-only buttons must use `aria-label` to indicate the action. | ||
* When an icon is used with a text label, the icon should be hidden from screen readers with `aria-hidden="true"`. | ||
* Maintain parity between focus order and visual order (don't use CSS to reorder buttons). |
47 changes: 0 additions & 47 deletions
47
projects/ui-particles-angular/src/lib/gio-button/REAMDE.stories.mdx
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
projects/ui-particles-angular/src/lib/gio-card-empty-state/README.mdx
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,18 @@ | ||
import { Meta, Story } from '@storybook/blocks'; | ||
import * as ReadmeStories from './gio-card-empty-state.stories'; | ||
|
||
<Meta of={ReadmeStories} /> | ||
|
||
# Empty state | ||
|
||
Documentation and illustrations for the card empty state component, which is used to present a message when there is no content to show on the page. | ||
|
||
## Demo | ||
|
||
{/* <Story id="components-empty-state--default" /> is deprecated, please migrate it to <Story of={referenceToStory} /> see: https://storybook.js.org/migration-guides/7.0 */} | ||
|
||
<Story id="components-empty-state--default" /> | ||
|
||
```html | ||
<gio-card-empty-state [icon]="search" title="No API found" subtitle="No API found. Please try again or create one."></gio-card-empty-state> | ||
``` |
15 changes: 0 additions & 15 deletions
15
projects/ui-particles-angular/src/lib/gio-card-empty-state/README.stories.mdx
This file was deleted.
Oops, something went wrong.
21 changes: 12 additions & 9 deletions
21
...rm-and-validate-dialog/README.stories.mdx → ...io-confirm-and-validate-dialog/README.mdx
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.