Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vinimarcili committed Aug 28, 2023
1 parent 5b5cbff commit 3beac48
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 46 deletions.
10 changes: 5 additions & 5 deletions src/components/sq-button/sq-button.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
- description: Button color text color
- type: `string`

### 5. textTransform (optional)

- description: Text case
- type: `string`

### 6. disabled (optional)

- description: Input HTML attribute disabled and put a 'disabled' class
Expand Down Expand Up @@ -80,6 +75,11 @@
- description: Input HTML attribute id
- type: `string`

### 14. textTransform (optional)

- description: Text case
- type: `string`

## Outputs

### 1. emitClick
Expand Down
38 changes: 19 additions & 19 deletions src/components/sq-modal/sq-modal.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@
## Example

```html
<button (click)='modal = true'>Open Modal</button>
<sq-modal
(modalClose)='modal = false'
[open]='modal'
>
<!-- Modal Header -->
<ng-template #headerModal>
Header
</ng-template>
<!-- Modal Header -->
<!-- Modal Body -->
Content
<!-- Modal Body -->
<!-- Modal Footer -->
<ng-template #footerModal>
Footer
</ng-template>
<!-- Modal Footer -->
</sq-modal>
<button (click)='modal = true'>Open Modal</button>
<sq-modal
(modalClose)='modal = false'
[open]='modal'
>
<!-- Modal Header -->
<ng-template #headerModal>
Header
</ng-template>
<!-- Modal Header -->
<!-- Modal Body -->
Content
<!-- Modal Body -->
<!-- Modal Footer -->
<ng-template #footerModal>
Footer
</ng-template>
<!-- Modal Footer -->
</sq-modal>
```
26 changes: 13 additions & 13 deletions src/components/sq-overlay/sq-overlay.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@
## Example

```html
<button (click)='overlay = true'>Open Overlay</button>
<sq-overlay
(overlayClose)='overlay = false'
[open]='overlay'
>
<ng-template #headerTemplate>
Header
</ng-template>
Content
<ng-template #footerTemplate>
Footer
</ng-template>
</sq-overlay>
<button (click)='overlay = true'>Open Overlay</button>
<sq-overlay
(overlayClose)='overlay = false'
[open]='overlay'
>
<ng-template #headerTemplate>
Header
</ng-template>
Content
<ng-template #footerTemplate>
Footer
</ng-template>
</sq-overlay>
```
6 changes: 1 addition & 5 deletions src/components/sq-steps/sq-steps.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

- description: Color active
- type: `string`
- default: `#e83e8c`

### 2. click

Expand All @@ -21,10 +20,7 @@
### 4. steps

- description: Array of steps, tip is a ngTooltip to do a short description
- type: `Array<{
tip?: string,
status: string
}>`
- type: `Step[]`

## Outputs

Expand Down
8 changes: 6 additions & 2 deletions src/components/sq-tabs/sq-tab/sq-tab.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Component that render a tab

### 2. active (optional)

- description: Set if this tab should be an actived tab
- type: `boolean`
- description: Set if this tab should be an actived tab
- type: `boolean`

### 3. color (optional)

Expand Down Expand Up @@ -40,3 +40,7 @@ Component that render a tab

- description: Function to be executed when opening the tab
- type: `function`

```html
<sq-tab [title]='Tab1'>ContentTab</sq-tab>
```
15 changes: 14 additions & 1 deletion src/components/sq-tabs/sq-tabs.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,18 @@ Component that renders tabs
## Example

```html

<sq-tabs>
<sq-tab title='Tab 1'>
<h2>Content Tab</h2>
</sq-tab>
<sq-tab title='Tab 2'>
<h2>Content Tab</h2>
</sq-tab>
<sq-tab title='Tab 3'>
<h2>Content Tab</h2>
</sq-tab>
<sq-tab title='Tab 4'>
<h2>Content Tab</h2>
</sq-tab>
</sq-tabs>
```
2 changes: 1 addition & 1 deletion src/components/sq-tooltip/sq-tooltip.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
## Example

```html
<sq-tooltip message="Oie" placement="left center" color="var(--pink)"></sq-tooltip>
<sq-tooltip message="Hello" placement="left center" color="var(--pink)"></sq-tooltip>
```

0 comments on commit 3beac48

Please sign in to comment.