Skip to content

Commit

Permalink
chore(): adjust storybook config
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch committed Dec 15, 2021
1 parent f57d254 commit f9eff7e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/components-angular/src/directives/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,14 +694,14 @@ export class BalHeading {

export declare interface BalHint extends Components.BalHint {}
@ProxyCmp({
inputs: ['closeLabel'],
inputs: ['closeLabel', 'small'],
methods: ['toggle', 'open', 'close']
})
@Component({
selector: 'bal-hint',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['closeLabel']
inputs: ['closeLabel', 'small']
})
export class BalHint {
protected el: HTMLElement;
Expand Down
5 changes: 5 additions & 0 deletions packages/components-vue/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,11 @@ export const BalHint = /*@__PURE__*/ defineComponent({
default: 'Close',
required: false,
},
small: {
type: Boolean,
default: false,
required: false,
},
},
emits: {

Expand Down
1 change: 1 addition & 0 deletions packages/components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
${head}
<link rel="stylesheet" type="text/css" href="assets/css/design-system-table.css" />
<link rel="stylesheet" type="text/css" href="assets/css/theme.css" />
${!isDevelopment ? '<link rel="stylesheet" type="text/css" href="build/design-system-components.css" />' : ''}
${isDevelopment ? '<script type="module" src="build/design-system-components.esm.js"></script>' : ''}
${isDevelopment ? '<script nomodule src="build/design-system-components.js"></script>' : ''}
`,
Expand Down
7 changes: 4 additions & 3 deletions packages/components/src/components/bal-hint/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

#### Properties

| Property | Attribute | Description | Type | Default |
| ------------ | ------------- | -------------------------- | -------- | --------- |
| `closeLabel` | `close-label` | Text for the close button. | `string` | `'Close'` |
| Property | Attribute | Description | Type | Default |
| ------------ | ------------- | ------------------------------------------------ | --------- | --------- |
| `closeLabel` | `close-label` | Text for the close button. | `string` | `'Close'` |
| `small` | `small` | Disables the close button for tablet and desktop | `boolean` | `false` |


#### Methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#### Properties

| Property | Attribute | Description | Type | Default |
| ----------- | ----------- | ----------- | ------------------------- | --------- |
| `interface` | `interface` | | `"snackbar" `, ` "toast"` | `'toast'` |
| Property | Attribute | Description | Type | Default |
| ----------- | ----------- | -------------------------------------------------------- | ------------------------- | --------- |
| `interface` | `interface` | The interface tells the notice where to show the notice. | `"snackbar" `, ` "toast"` | `'toast'` |



Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ For our CI & CD task we use [Github Actions](https://github.com/baloise/design-s
│ ├── components
│ │ └── bal-<component>
│ │ ├── bal-<component>-<addon> # sub-component
│ │ │ ├── bal-<component>-<addon>.e2e.ts # E2E test file
│ │ │ ├── bal-<component>-<addon>.scss # Specific component style
│ │ │ ├── bal-<component>-<addon>.tsx # Component logic
│ │ │ ├── index.html # Examples for the cypress tests: <deprecated> use storybook instead.
│ │ │ └── readme.md # generated Readme with the components api
│ │ │
│ │ ├── stories # documentation folder with the stories
Expand All @@ -99,7 +96,7 @@ For our CI & CD task we use [Github Actions](https://github.com/baloise/design-s
│ │
│ ├── constants # global constants.
│ ├── helpers # global helper functions.
│ ├── styles # global styles witch is extends bulma.css
│ ├── styles # global styles which extends the bulma sass files
│ │ ├── global.scss # global stylesheet of the Design System
│ │ └── global.utilities.scss # exports variables, mixins... (no-styles)
│ │
Expand Down

0 comments on commit f9eff7e

Please sign in to comment.