Skip to content

Commit

Permalink
fix: merge, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideMininni-Fincons committed Sep 21, 2023
1 parent e0fe6d9 commit cb43066
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 28 deletions.
4 changes: 2 additions & 2 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export namespace Components {
*/
"selectedDate": Date | string | number;
/**
* If set to true, two months are displayed
* If set to true, two months are displayed.
*/
"wide": boolean;
}
Expand Down Expand Up @@ -3085,7 +3085,7 @@ declare namespace LocalJSX {
*/
"selectedDate"?: Date | string | number;
/**
* If set to true, two months are displayed
* If set to true, two months are displayed.
*/
"wide"?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-accordion/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for one or more [sbb-expansion-panel](/docs/components-sbb-accordion-sbb-expansi
</sbb-accordion>
```

## Variants
## Interaction

The `multi` property, if set, allows having more than one `sbb-expansion-panel` expanded at the same time.

Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-calendar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This is helpful if you need a specific state of the component.
| `max` | `max` | The maximum valid date. Takes Date Object, ISOString, and Unix Timestamp (number of seconds since Jan 1, 1970). | `Date \| number \| string` | `undefined` |
| `min` | `min` | The minimum valid date. Takes Date Object, ISOString, and Unix Timestamp (number of seconds since Jan 1, 1970). | `Date \| number \| string` | `undefined` |
| `selectedDate` | `selected-date` | The selected date. Takes Date Object, ISOString, and Unix Timestamp (number of seconds since Jan 1, 1970). | `Date \| number \| string` | `undefined` |
| `wide` | `wide` | If set to true, two months are displayed | `boolean` | `false` |
| `wide` | `wide` | If set to true, two months are displayed. | `boolean` | `false` |


## Events
Expand Down
6 changes: 3 additions & 3 deletions src/components/sbb-calendar/sbb-calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface CalendarKeyboardNavigationParameters {
tag: 'sbb-calendar',
})
export class SbbCalendar implements ComponentInterface {
/** If set to true, two months are displayed */
/** If set to true, two months are displayed. */
@Prop() public wide = false;

/** The minimum valid date. Takes Date Object, ISOString, and Unix Timestamp (number of seconds since Jan 1, 1970). */
Expand All @@ -96,10 +96,10 @@ export class SbbCalendar implements ComponentInterface {
/** The current wide property considering property value and breakpoints. From zero to small `wide` has always to be false. */
@State() private _wide: boolean;

/** Minimum value converted to date */
/** Minimum value converted to date. */
@State() private _min: Date;

/** Maximum value converted to date */
/** Maximum value converted to date. */
@State() private _max: Date;

@State() private _calendarView: CalendarView = 'day';
Expand Down
7 changes: 0 additions & 7 deletions src/components/sbb-form-field-clear/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ to provide the possibility to display a clear button which can clear the input v
| `negative` | `negative` | Negative coloring variant flag. | `boolean` | `false` |


## Slots

| Slot | Description |
| ----------- | --------------------------- |
| `"unnamed"` | Slot to render the content. |


## Dependencies

### Depends on
Expand Down
8 changes: 5 additions & 3 deletions src/components/sbb-loading-indicator/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ or an ongoing activity which require some time to complete.

### Variants

It has two different variants:
in `window` mode, the component completely covers the parent element, preventing interaction with it,
The component has two different variants.

In `window` mode, the component completely covers the parent element, preventing interaction with it.

```html
<sbb-loading-indicator variant="window"/>
```

while the `circle` mode can be used inline within another component (e.g., button) and adjust its size to the parent font size.
While the `circle` mode can be used inline within another component (e.g. button);
in this case the component adjusts its size to the parent font size.

```html
<sbb-button>
Expand Down
22 changes: 11 additions & 11 deletions src/components/sbb-notification/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ The `sbb-notification` is structured in the following way:

Note that the notification only supports inline links, therefore any slotted link will be forced to be a `variant="inline"` link.

## States

It is possible to display the component in `readonly` state by using the self-named property.
In this case, the close button will not be shown.

```html
<sbb-notification readonly>
...
</sbb-notification>
```

## Variants

The `sbb-notification` supports four types: `info` (default), `success`, `warn` and `error`, based on the type of the information displayed.
Expand All @@ -44,6 +33,17 @@ The `sbb-notification` supports four types: `info` (default), `success`, `warn`
<sbb-notification type="error">...</sbb-notification>
```

## States

It is possible to display the component in `readonly` state by using the self-named property.
In this case, the close button will not be shown.

```html
<sbb-notification readonly>
...
</sbb-notification>
```

## Interactions

Inline notifications do not dismiss automatically.
Expand Down

0 comments on commit cb43066

Please sign in to comment.