Skip to content

Commit

Permalink
feat: add subjects colours tokens, icons and fix build.react script
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideDA committed Sep 13, 2024
1 parent ce446ed commit b6a535a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"build": "mkdirp react && yarn build.wc && yarn build.react",
"build-storybook": "yarn build && storybook build --config-dir .storybook . --output-dir storybook",
"build.react": "rimraf react/* && tsc --build tsconfig.react.json",
"build.react": "rimraf react && tsc --build tsconfig.react.json",
"build.wc": "stencil build",
"generate": "plop --plopfile internals/generators/index.js",
"lint": "yarn lint.eslint && yarn lint.stylelint && yarn lint.prettier",
Expand Down
2 changes: 1 addition & 1 deletion src/components/z-card/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ZCard component.

| Property | Attribute | Description | Type | Default |
| ------------ | ------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ----------- |
| `clickable` | `clickable` | Enable 'clickable' style like hover and focus style. | `boolean` | `false` |
| `clickable` | `clickable` | Enable "clickable" styles like hover background and cursor, focus shadow on the whole card, etc. | `boolean` | `false` |
| `coverIcon` | `cover-icon` | Name of the icon to place over the image cover | `string` | `undefined` |
| `showShadow` | `show-shadow` | Enable shadow. Default: false. | `boolean` | `false` |
| `variant` | `variant` | Card variant. Can be one of "text", "border", "shadow", "overlay". Leave it undefined for the default card. | `CardVariant.BORDER \| CardVariant.OVERLAY \| CardVariant.SHADOW \| CardVariant.TEXT` | `undefined` |
Expand Down
11 changes: 5 additions & 6 deletions src/components/z-searchbar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
| `placeholder` | `placeholder` | Search input placeholder | `string` | `undefined` |
| `preventSubmit` | `prevent-submit` | Prevent submit action | `boolean` | `false` |
| `resultsCount` | `results-count` | Number of results shown - default all | `number` | `undefined` |
| `resultsEllipsis` | `results-ellipsis` | Truncate results to single row | `boolean` | `true` |
| `resultsItems` | `results-items` | Autocomplete results items | `SearchbarItem[] \| string` | `undefined` |
| `searchButtonIconOnly` | `search-button-icon-only` | Set button icon without label | `boolean` | `false` |
| `searchHelperLabel` | `search-helper-label` | Search helper text | `string` | `"Cerca {searchString}"` |
Expand All @@ -28,11 +27,11 @@

## Events

| Event | Description | Type |
| ----------------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `searchItemClick` | Emitted on search result click, return item | `CustomEvent<{ label: string; id?: string; icon?: string; tag?: { icon?: string; text: string; }; category?: string; subcategory?: string; }>` |
| `searchSubmit` | Emitted on search submit, return search string | `CustomEvent<string>` |
| `searchTyping` | Emitted on search typing, return search string | `CustomEvent<string>` |
| Event | Description | Type |
| ----------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `searchItemClick` | Emitted on search result click, return item | `CustomEvent<{ label: string; id?: string; icon?: string; tag?: { icon?: string; text: string; }; category?: string; subcategory?: string; children?: Omit<SearchbarItem, "category" \| "subcategory">[]; }>` |
| `searchSubmit` | Emitted on search submit, return search string | `CustomEvent<string>` |
| `searchTyping` | Emitted on search typing, return search string | `CustomEvent<string>` |


## Dependencies
Expand Down
3 changes: 3 additions & 0 deletions src/components/z-select/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Type: `Promise<void>`
- [z-list](../list/z-list)
- [z-list-element](../list/z-list-element)
- [z-icon](../z-icon)
- [z-tag](../z-tag)
- [z-list-group](../list/z-list-group)
- [z-input-message](../z-input-message)

Expand All @@ -91,13 +92,15 @@ graph TD;
z-select --> z-list
z-select --> z-list-element
z-select --> z-icon
z-select --> z-tag
z-select --> z-list-group
z-select --> z-input-message
z-input --> z-icon
z-input --> z-input-message
z-input-message --> z-icon
z-list-element --> z-icon
z-list-element --> z-divider
z-tag --> z-icon
z-list-group --> z-divider
style z-select fill:#f9f,stroke:#333,stroke-width:4px
```
Expand Down
2 changes: 2 additions & 0 deletions src/components/z-tag/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Ztag component.
### Used by

- [z-searchbar](../z-searchbar)
- [z-select](../z-select)

### Depends on

Expand All @@ -37,6 +38,7 @@ Ztag component.
graph TD;
z-tag --> z-icon
z-searchbar --> z-tag
z-select --> z-tag
style z-tag fill:#f9f,stroke:#333,stroke-width:4px
```

Expand Down
Loading

0 comments on commit b6a535a

Please sign in to comment.