From 35f8576e5b4d06a07cefcd76cc9877c98f3d5e11 Mon Sep 17 00:00:00 2001 From: Brian Heston <47367562+bheston@users.noreply.github.com> Date: Tue, 16 Aug 2022 13:22:47 -0700 Subject: [PATCH 1/5] Updated templates for consistent naming and structure --- ...-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json | 7 + ...-b504d376-3c29-4415-8124-f4fd4f05c078.json | 7 + .../.storybook/preview-body.html | 22 ++ .../.storybook/preview-head.html | 19 +- .../fast-foundation/docs/api-report.md | 99 ++++-- .../accordion-item/accordion-item.template.ts | 21 +- .../src/accordion-item/accordion-item.ts | 10 +- .../stories/accordion-item.register.ts | 57 ++-- .../fast-foundation/src/accordion/README.md | 37 ++- .../src/accordion/accordion.pw.spec.ts | 1 - .../src/accordion/accordion.template.ts | 8 +- .../src/accordion/accordion.ts | 2 +- .../accordion/stories/accordion.register.ts | 5 +- .../src/anchor/stories/anchor.register.ts | 28 +- .../src/anchor/stories/anchor.stories.ts | 4 +- .../stories/anchored-region.stories.ts | 5 +- .../fast-foundation/src/avatar/README.md | 7 +- .../fast-foundation/src/avatar/avatar.spec.md | 2 +- .../src/avatar/avatar.template.ts | 6 +- .../fast-foundation/src/avatar/avatar.ts | 3 +- .../src/avatar/stories/avatar.register.ts | 29 +- .../src/avatar/stories/avatar.stories.ts | 52 ++- .../fast-foundation/src/badge/README.md | 10 +- .../src/badge/badge.template.ts | 15 +- .../fast-foundation/src/badge/badge.ts | 22 +- .../src/badge/stories/badge.register.ts | 17 +- .../src/badge/stories/badge.stories.ts | 9 + .../breadcrumb-item.pw.spec.ts | 2 +- .../breadcrumb-item.template.ts | 4 +- .../stories/breadcrumb-item.register.ts | 8 +- .../fast-foundation/src/breadcrumb/README.md | 8 +- .../src/breadcrumb/breadcrumb.template.ts | 11 +- .../src/breadcrumb/breadcrumb.ts | 21 ++ .../breadcrumb/stories/breadcrumb.register.ts | 3 +- .../breadcrumb/stories/breadcrumb.stories.ts | 13 +- .../fast-foundation/src/card/card.template.ts | 2 +- .../src/checkbox/stories/checkbox.register.ts | 82 ++--- .../fast-foundation/src/combobox/README.md | 26 +- .../src/combobox/combobox.template.ts | 54 ++-- .../fast-foundation/src/combobox/combobox.ts | 40 +-- .../src/combobox/stories/combobox.register.ts | 48 ++- .../fast-foundation/src/dialog/README.md | 9 +- .../fast-foundation/src/dialog/dialog.spec.md | 35 +- .../src/dialog/dialog.template.ts | 48 ++- .../fast-foundation/src/dialog/dialog.ts | 1 - .../src/dialog/stories/dialog.register.ts | 20 +- .../fast-foundation/src/disclosure/README.md | 21 +- .../src/disclosure/disclosure.pw.spec.ts | 2 +- .../src/disclosure/disclosure.spec.md | 6 +- .../src/disclosure/disclosure.template.ts | 15 +- .../src/disclosure/disclosure.ts | 6 +- .../disclosure/stories/disclosure.register.ts | 16 +- .../src/flipper/flipper.template.ts | 4 +- .../src/flipper/stories/flipper.register.ts | 11 +- .../src/horizontal-scroll/README.md | 29 +- .../horizontal-scroll.options.ts | 3 +- .../horizontal-scroll.pw.spec.ts | 22 +- .../horizontal-scroll.template.ts | 52 +-- .../horizontal-scroll/horizontal-scroll.ts | 11 +- .../stories/horizontal-scroll.register.ts | 70 ++-- .../stories/listbox-option.register.ts | 3 +- .../src/menu-item/menu-item.template.ts | 121 ++++--- .../src/menu-item/menu-item.ts | 18 +- .../menu-item/stories/menu-item.register.ts | 171 ++-------- .../fast-foundation/src/menu/README.md | 34 +- .../src/menu/stories/menu.register.ts | 301 ++++-------------- .../src/menu/stories/menu.stories.ts | 99 +++++- .../src/number-field/README.md | 30 +- .../src/number-field/number-field.pw.spec.ts | 2 +- .../src/number-field/number-field.spec.md | 14 +- .../src/number-field/number-field.template.ts | 22 +- .../src/number-field/number-field.ts | 39 ++- .../stories/number-field.register.ts | 78 +++-- .../src/progress-ring/index.ts | 1 + .../progress-ring/progress-ring.options.ts | 1 + .../progress-ring/progress-ring.pw.spec.ts | 59 +++- .../progress-ring/progress-ring.template.ts | 49 ++- .../src/progress-ring/progress-ring.ts | 7 +- .../stories/progress-ring.register.ts | 35 +- .../fast-foundation/src/progress/README.md | 16 +- .../src/progress/progress.options.ts | 4 +- .../src/progress/progress.pw.spec.ts | 14 +- .../src/progress/progress.template.ts | 32 +- .../fast-foundation/src/progress/progress.ts | 4 +- .../src/progress/stories/progress.register.ts | 59 +--- .../fast-foundation/src/radio-group/README.md | 6 +- .../src/radio-group/radio-group.pw.spec.ts | 25 -- .../src/radio-group/radio-group.template.ts | 9 +- .../src/radio-group/radio-group.ts | 2 +- .../stories/radio-group.register.ts | 10 +- .../src/radio/stories/radio.register.ts | 52 +-- .../fast-foundation/src/search/README.md | 16 +- .../src/search/search.pw.spec.ts | 6 +- .../src/search/search.template.ts | 121 ++++--- .../fast-foundation/src/search/search.ts | 32 +- .../src/search/stories/search.register.ts | 73 +++-- .../fast-foundation/src/select/README.md | 29 +- .../src/select/select.template.ts | 68 ++-- .../fast-foundation/src/select/select.ts | 17 +- .../src/select/stories/select.register.ts | 50 ++- .../src/slider-label/slider-label.template.ts | 27 +- .../src/slider-label/slider-label.ts | 6 +- .../stories/slider-label.register.ts | 20 +- .../fast-foundation/src/slider/README.md | 21 +- .../src/slider/slider.template.ts | 11 +- .../fast-foundation/src/slider/slider.ts | 11 +- .../src/slider/stories/slider.register.ts | 30 +- .../fast-foundation/src/switch/README.md | 6 +- .../src/switch/stories/switch.register.ts | 74 +++-- .../src/switch/switch.template.ts | 8 +- .../fast-foundation/src/switch/switch.ts | 8 +- .../src/tab/stories/tab.stories.ts | 4 +- .../fast-foundation/src/tab/tab.template.ts | 4 +- .../fast-foundation/src/tab/tab.ts | 1 + .../fast-foundation/src/tabs/README.md | 7 +- .../src/tabs/stories/tabs.register.ts | 2 +- .../fast-foundation/src/tabs/tabs.pw.spec.ts | 2 + .../fast-foundation/src/tabs/tabs.ts | 3 +- .../fast-foundation/src/text-area/README.md | 18 +- .../text-area/stories/text-area.register.ts | 37 ++- .../text-area/stories/text-area.stories.ts | 9 + .../src/text-area/text-area.pw.spec.ts | 2 +- .../src/text-area/text-area.template.ts | 95 +++--- .../src/text-area/text-area.ts | 32 +- .../fast-foundation/src/text-field/README.md | 22 +- .../text-field/stories/text-field.register.ts | 22 +- .../src/text-field/text-field.pw.spec.ts | 2 +- .../src/text-field/text-field.template.ts | 12 +- .../src/text-field/text-field.ts | 28 +- .../fast-foundation/src/toolbar/README.md | 6 +- .../src/toolbar/stories/toolbar.register.ts | 9 +- .../src/toolbar/toolbar.template.ts | 2 +- .../fast-foundation/src/toolbar/toolbar.ts | 2 +- .../src/tooltip/stories/tooltip.register.ts | 4 +- .../fast-foundation/src/tree-item/README.md | 18 +- .../tree-item/stories/tree-item.register.ts | 118 +++---- .../tree-item/stories/tree-item.stories.ts | 10 +- .../src/tree-item/tree-item.pw.spec.ts | 24 +- .../src/tree-item/tree-item.template.ts | 46 ++- .../src/tree-item/tree-item.ts | 8 +- .../statics/svg/checkmark_16_regular.svg | 1 + .../statics/svg/chevron_left_12_regular.svg | 1 + .../statics/svg/chevron_right_12_regular.svg | 1 + .../statics/svg/circle_16_filled.svg | 1 + .../statics/svg/dismiss_12_regular.svg | 1 + .../statics/svg/subtract_16_regular.svg | 1 + .../fast-ssr/src/dom-shim.spec.ts | 5 +- 147 files changed, 1833 insertions(+), 1885 deletions(-) create mode 100644 change/@microsoft-fast-foundation-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json create mode 100644 change/@microsoft-fast-ssr-b504d376-3c29-4415-8124-f4fd4f05c078.json create mode 100644 packages/web-components/fast-foundation/statics/svg/checkmark_16_regular.svg create mode 100644 packages/web-components/fast-foundation/statics/svg/chevron_left_12_regular.svg create mode 100644 packages/web-components/fast-foundation/statics/svg/chevron_right_12_regular.svg create mode 100644 packages/web-components/fast-foundation/statics/svg/circle_16_filled.svg create mode 100644 packages/web-components/fast-foundation/statics/svg/dismiss_12_regular.svg create mode 100644 packages/web-components/fast-foundation/statics/svg/subtract_16_regular.svg diff --git a/change/@microsoft-fast-foundation-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json b/change/@microsoft-fast-foundation-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json new file mode 100644 index 00000000000..8ba743eac02 --- /dev/null +++ b/change/@microsoft-fast-foundation-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "STYLE BREAKING: Updated templates for structure and consistency (see https://github.com/microsoft/fast/pull/6286)", + "packageName": "@microsoft/fast-foundation", + "email": "47367562+bheston@users.noreply.github.com", + "dependentChangeType": "prerelease" +} diff --git a/change/@microsoft-fast-ssr-b504d376-3c29-4415-8124-f4fd4f05c078.json b/change/@microsoft-fast-ssr-b504d376-3c29-4415-8124-f4fd4f05c078.json new file mode 100644 index 00000000000..dda30d283a4 --- /dev/null +++ b/change/@microsoft-fast-ssr-b504d376-3c29-4415-8124-f4fd4f05c078.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fix tests for related foundation template changes", + "packageName": "@microsoft/fast-ssr", + "email": "47367562+bheston@users.noreply.github.com", + "dependentChangeType": "prerelease" +} diff --git a/packages/web-components/fast-foundation/.storybook/preview-body.html b/packages/web-components/fast-foundation/.storybook/preview-body.html index cb2a12730d2..ffbe1cb8ec4 100644 --- a/packages/web-components/fast-foundation/.storybook/preview-body.html +++ b/packages/web-components/fast-foundation/.storybook/preview-body.html @@ -21,4 +21,26 @@ d="M8.26 4.6a5.21 5.21 0 0 1 9.03 5.22l-.2.34a.5.5 0 0 1-.67.19l-3.47-2-1.93 3.38c1.34.4 2.5 1.33 3.31 2.52h-.09c-.34 0-.66.11-.92.31A4.9 4.9 0 0 0 9.5 12.5a4.9 4.9 0 0 0-3.82 2.06 1.5 1.5 0 0 0-1.01-.3 5.94 5.94 0 0 1 5.31-2.74l2.1-3.68-3.83-2.2a.5.5 0 0 1-.18-.7l.2-.33Zm.92.42 1.7.98.02-.02a8.08 8.08 0 0 1 3.27-2.74 4.22 4.22 0 0 0-4.99 1.78ZM14 7.8c.47-.82.7-1.46.77-2.09a5.8 5.8 0 0 0-.06-1.62 6.96 6.96 0 0 0-2.95 2.41L14 7.8Zm.87.5 1.61.93a4.22 4.22 0 0 0-.74-5.02c.07.56.09 1.1.02 1.63-.1.79-.38 1.56-.89 2.46Zm-9.63 7.3a.5.5 0 0 0-.96.03c-.17.7-.5 1.08-.86 1.3-.38.23-.87.32-1.42.32a.5.5 0 0 0 0 1c.64 0 1.33-.1 1.94-.47.34-.2.64-.5.88-.87a2.96 2.96 0 0 0 4.68-.01 2.96 2.96 0 0 0 4.74-.06c.64.9 1.7 1.41 2.76 1.41a.5.5 0 1 0 0-1c-.98 0-1.96-.64-2.29-1.65a.5.5 0 0 0-.95 0 1.98 1.98 0 0 1-3.79.07.5.5 0 0 0-.94 0 1.98 1.98 0 0 1-3.8-.08Z" /> + + + + + + diff --git a/packages/web-components/fast-foundation/.storybook/preview-head.html b/packages/web-components/fast-foundation/.storybook/preview-head.html index 8aa4d735223..1e0bc4603f4 100644 --- a/packages/web-components/fast-foundation/.storybook/preview-head.html +++ b/packages/web-components/fast-foundation/.storybook/preview-head.html @@ -1,19 +1,19 @@