From ca94a81d1850f7167ca094e48ac179bbecba7cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Spaczek?= Date: Mon, 24 Jun 2024 12:18:01 +0200 Subject: [PATCH] v1.8.0 --- .github/workflows/storybook.yaml | 8 +- components-api-lock.json | 322 ++++++++---------- .../v1.8.x/v1.8.0/changelog.stories.mdx.mdx | 18 + package.json | 2 +- 4 files changed, 171 insertions(+), 179 deletions(-) create mode 100644 docs/releases/v1.8.x/v1.8.0/changelog.stories.mdx.mdx diff --git a/.github/workflows/storybook.yaml b/.github/workflows/storybook.yaml index 3100214f1..5b4a0eb09 100644 --- a/.github/workflows/storybook.yaml +++ b/.github/workflows/storybook.yaml @@ -23,13 +23,13 @@ jobs: with: ref: main - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 with: version: 7 - name: Setup Node uses: actions/setup-node@v3 with: - node-version: '18' + node-version: '20' cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile @@ -38,9 +38,9 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: './storybook-static' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v3 diff --git a/components-api-lock.json b/components-api-lock.json index 64fd3fda7..b33716d17 100644 --- a/components-api-lock.json +++ b/components-api-lock.json @@ -2040,13 +2040,22 @@ "tags": {}, "expose": [ { - "name": "menuItems" + "name": "menuItemsTemplateRefs" }, { - "name": "firstMenuItem" + "name": "initialmenuItemTemplateRef" }, { - "name": "selectedMenuItem" + "name": "firstmenuItemTemplateRef" + }, + { + "name": "lastmenuItemTemplateRef" + }, + { + "name": "selectedmenuItemTemplateRef" + }, + { + "name": "lastFocusedmenuItemTemplateRef" } ], "props": [ @@ -2069,20 +2078,45 @@ }, { "name": "enableKeyboardNavigation", - "description": "Use this props to allow using arrows to navigation.", + "description": "Use this props to allow using arrows instead tabs for navigation UiMenuItems.", "required": false, "type": { "name": "boolean" }, "defaultValue": { "func": false, - "value": "false" + "value": "true" } - } - ], - "events": [ + }, { - "name": "itemsLoaded" + "name": "menuItemsTemplateRefs", + "description": "Use this props to pass refs to UiMenuItems.", + "required": false, + "type": { + "name": "union", + "elements": [ + { + "name": "Array", + "elements": [ + { + "name": "ComponentInstance", + "elements": [ + { + "name": "TSTypeQuery" + } + ] + } + ] + }, + { + "name": "null" + } + ] + }, + "defaultValue": { + "func": false, + "value": "null" + } } ], "slots": [ @@ -2090,20 +2124,9 @@ "name": "default", "description": "Use this slot to place menu items." }, - { - "name": "name", - "scoped": true, - "bindings": [ - { - "name": "name", - "title": "binding" - } - ] - }, { "name": "item.name", "scoped": true, - "description": "Use this slot to place menu item content.", "bindings": [ { "name": "name", @@ -2188,6 +2211,23 @@ "displayName": "UiHorizontalPaging", "description": "", "tags": {}, + "expose": [ + { + "name": "isActive" + }, + { + "name": "activeItem" + }, + { + "name": "currentTitle" + }, + { + "name": "backToTitle" + }, + { + "name": "handleBackClick" + } + ], "props": [ { "name": "modelValue", @@ -2200,12 +2240,12 @@ "name": "Array", "elements": [ { - "name": "HorizontalPangingItemProps" + "name": "HorizontalPagingItemProps" } ] }, { - "name": "HorizontalPangingItemProps" + "name": "HorizontalPagingItemProps" } ] }, @@ -2234,7 +2274,7 @@ "name": "Array", "elements": [ { - "name": "HorizontalPangingItemProps" + "name": "HorizontalPagingItemProps" } ] }, @@ -2350,7 +2390,7 @@ ], "elements": [ { - "name": "HorizontalPangingItemProps" + "name": "HorizontalPagingItemProps" } ] } @@ -7918,81 +7958,6 @@ "/Users/przeyslawspaczek/Projects/component-library/src/components/organisms/UiMultipleAnswer/_internal/UiMultipleAnswerItem.vue" ] }, - { - "exportName": "default", - "displayName": "UiMenuItemSuffix", - "description": "", - "tags": {}, - "props": [ - { - "name": "label", - "description": "Use this props to set label.", - "required": false, - "type": { - "name": "string" - }, - "defaultValue": { - "func": false, - "value": "''" - } - }, - { - "name": "icon", - "description": "Use this props to set icon.", - "required": false, - "type": { - "name": "Icon" - }, - "defaultValue": { - "func": false, - "value": "'present'" - } - }, - { - "name": "iconSuffixAttrs", - "description": "Use this props to pass attrs for suffix UIIcon", - "required": false, - "type": { - "name": "IconAttrsProps" - }, - "defaultValue": { - "func": false, - "value": "() => ({})" - } - } - ], - "slots": [ - { - "name": "label", - "scoped": true, - "description": "Use this slot to replace label template.", - "bindings": [ - { - "name": "label", - "title": "binding" - } - ] - }, - { - "name": "icon", - "scoped": true, - "description": "Use this slot to replace icon template.", - "bindings": [ - { - "name": "hasIcon", - "title": "binding" - }, - { - "name": "iconSuffixAttrs", - "title": "binding" - } - ] - } - ], - "sourceFiles": [ - "/Users/przeyslawspaczek/Projects/component-library/src/components/organisms/UiMenu/_internal/UiMenuItemSuffix.vue" - ] - }, { "exportName": "default", "displayName": "UiMenuItem", @@ -8000,93 +7965,31 @@ "tags": {}, "expose": [ { - "name": "tabindex" - } - ], - "props": [ - { - "name": "icon", - "description": "Use this props to set icon.", - "required": false, - "type": { - "name": "Icon" - }, - "defaultValue": { - "func": false, - "value": "'present'" - } + "name": "itemTemplateRefs" }, { - "name": "suffixVisible", - "description": "Use this props to set suffix visibility.", - "required": false, - "type": { - "name": "union", - "elements": [ - { - "name": "\"default\"" - }, - { - "name": "\"always\"" - }, - { - "name": "\"never\"" - } - ] - }, - "defaultValue": { - "func": false, - "value": "'default'" - } + "name": "isSelected" }, { - "name": "suffixAttrs", - "description": "Use this props to pass attrs for UIMenuItemSuffix", - "required": false, - "type": { - "name": "MenuItemSuffixAttrsProps" - }, - "defaultValue": { - "func": false, - "value": "() => ({ class: 'ui-button--text ui-menu-item__suffix' })" - } + "name": "isFocused" }, { - "name": "listItemAttrs", - "description": "Use this props to pass attrs for list item element", - "required": false, - "type": { - "name": "ListItemAttrsProps" - }, - "defaultValue": { - "func": false, - "value": "() => ({ class: 'ui-menu-item' })" - } + "name": "tabindex" } ], "slots": [ { - "name": "label", - "description": "Use this slot to replace label template." - }, - { - "name": "default", - "description": "Use this slot to place label content inside menu-item." - }, - { - "name": "suffix", + "name": "name", "scoped": true, - "description": "Use this slot to replace suffix template", "bindings": [ { - "name": "hasSuffix", - "title": "binding" - }, - { - "name": "suffixAttrs", + "name": "name", "title": "binding" } ] + }, + { + "name": "default" } ], "sourceFiles": [ @@ -8683,6 +8586,77 @@ "description": "", "tags": {}, "props": [ + { + "name": "tag", + "description": "Use this props to set list item content tag.", + "required": false, + "type": { + "name": "HTMLTag" + } + }, + { + "name": "icon", + "tags": { + "deprecated": [ + { + "description": "will be removed in 2.0.0; Use this props to set suffix icon.", + "title": "deprecated" + } + ] + }, + "required": false, + "type": { + "name": "Icon" + } + }, + { + "name": "hasPrefix", + "description": "Use this props to control prefix visibility.", + "required": false, + "type": { + "name": "boolean" + } + }, + { + "name": "prefixAttrs", + "description": "Use this props to pass attrs for UIListItemPrefix", + "required": false, + "type": { + "name": "ListItemPrefixAttrsProps" + } + }, + { + "name": "hasSuffix", + "description": "Use this props to control suffix visibility.", + "required": false, + "type": { + "name": "boolean" + } + }, + { + "name": "suffixAttrs", + "description": "Use this props to pass attrs for UIListItemSuffix", + "required": false, + "type": { + "name": "ListItemSuffixAttrsProps" + } + }, + { + "name": "listItemAttrs", + "description": "Use this props to pass attrs for list item element", + "required": false, + "type": { + "name": "DefineAttrsProps", + "elements": [ + { + "name": "null" + }, + { + "name": "LiHTMLAttributes" + } + ] + } + }, { "name": "label", "description": "Use this props to set inside pages item label.", @@ -8720,15 +8694,15 @@ } }, { - "name": "tag", - "description": "Use this props to set list item content tag.", + "name": "menuItemAttrs", + "description": "Use this props to set UiMenuItemAttrs.", "required": false, "type": { - "name": "HTMLTag" + "name": "MenuItemAttrsProps" }, "defaultValue": { "func": false, - "value": "UiButton" + "value": "() => ({})" } } ], diff --git a/docs/releases/v1.8.x/v1.8.0/changelog.stories.mdx.mdx b/docs/releases/v1.8.x/v1.8.0/changelog.stories.mdx.mdx new file mode 100644 index 000000000..4b83c6e76 --- /dev/null +++ b/docs/releases/v1.8.x/v1.8.0/changelog.stories.mdx.mdx @@ -0,0 +1,18 @@ +import { Meta } from '@storybook/blocks'; + + + +# 1.8.0 (June 24, 2024) + +## ⛔️ Breaking Changes +* no DOM operations performed in the UiMenu component ([#424](https://github.com/infermedica/component-library/pull/424)) + +## 🐛 Fixes +* menu item in horizontal paging as external link ([#501](https://github.com/infermedica/component-library/pull/501)) +* v-model issue in UiHorizontalPaging stories ([#493](https://github.com/infermedica/component-library/pull/493)) +* remove quote's from getArgTypes props default values ([#491](https://github.com/infermedica/component-library/pull/491)) +* aliased import in UiMenu ([#492](https://github.com/infermedica/component-library/pull/492)) + +## 📄 Docs +* add body models section to getting started docs ([#502](https://github.com/infermedica/component-library/pull/502)) + diff --git a/package.json b/package.json index b93a93ab2..ac7d45e50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@infermedica/component-library", - "version": "1.7.7", + "version": "1.8.0", "description": "Vue 3 UI library for healthcare and not only.", "license": "MIT", "sideEffects": [