srcdev-nuxt-components 9.1.49 → 9.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.json +2 -4
- package/.claude/settings.local.json +22 -2
- package/.claude/skills/components/card-core.md +205 -0
- package/.claude/skills/components/display-dialog.md +128 -0
- package/.claude/skills/components/page-hero-highlights.md +1 -1
- package/.claude/skills/components/page-row.md +157 -0
- package/.claude/skills/components/services-card-grid.md +4 -4
- package/.claude/skills/components/services-section-grid.md +4 -4
- package/.claude/skills/components/tab-navigation.md +222 -0
- package/.claude/skills/composable-dialog-controls.md +55 -43
- package/.claude/skills/index.md +5 -2
- package/app/components/01.atoms/card/CONSUMER-STYLING.md +175 -0
- package/app/components/01.atoms/card/CardCore.vue +48 -21
- package/app/components/01.atoms/display-dialog/CONSUMER-STYLING.md +163 -0
- package/app/components/01.atoms/display-dialog/DisplayDialog.vue +277 -0
- package/app/components/01.atoms/display-dialog/stories/DisplayDialog.stories.ts +177 -0
- package/app/components/01.atoms/display-dialog/tests/DisplayDialog.spec.ts +264 -0
- package/app/components/01.atoms/display-dialog/tests/__snapshots__/DisplayDialog.spec.ts.snap +18 -0
- package/app/components/01.atoms/page-row/CONSUMER-STYLING.md +90 -0
- package/app/components/01.atoms/page-row/PageRow.vue +115 -0
- package/app/components/01.atoms/page-row/stories/PageRow.stories.ts +311 -0
- package/app/components/01.atoms/page-row/tests/PageRow.spec.ts +191 -0
- package/app/components/02.molecules/navigation/tab-navigation/CONSUMER-STYLING.md +145 -0
- package/app/components/02.molecules/navigation/tab-navigation/TabNavigation.vue +21 -11
- package/app/components/02.molecules/navigation/tab-navigation/tests/__snapshots__/TabNavigation.spec.ts.snap +12 -6
- package/app/components/{forms/ui → 05.forms/form-field}/FormField.vue +12 -19
- package/app/components/{forms/ui → 05.forms/form-wrapper}/FormWrapper.vue +6 -6
- package/app/components/{forms → 05.forms}/input-button/InputButtonCore.vue +2 -0
- package/app/components/{forms → 05.forms}/input-button/stories/InputButtonCore.stories.ts +1 -1
- package/app/components/{forms → 05.forms}/input-text/InputTextCore.vue +73 -73
- package/app/components/{forms → 05.forms}/input-text/variants/InputTextAsNumberWithLabel.vue +29 -29
- package/app/components/carousels/CarouselBasic.vue +99 -99
- package/app/components/carousels/CarouselInfinite.vue +150 -150
- package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +111 -111
- package/app/components/responsive-header/ResponsiveHeader.vue +250 -282
- package/app/components/test-storybook/TestStorybook.vue +16 -16
- package/app/composables/tests/useDialogControls.spec.ts +34 -64
- package/app/composables/useDialogControls.ts +19 -33
- package/app/composables/useFormControl.ts +0 -2
- package/app/layouts/default.vue +9 -7
- package/app/pages/auto-grid.vue +37 -20
- package/app/pages/banner-video.vue +2 -2
- package/app/pages/forms/examples/buttons/index.vue +189 -215
- package/app/pages/forms/examples/material/text-fields.vue +2 -2
- package/app/pages/grid-stack.vue +10 -10
- package/app/pages/index.vue +20 -20
- package/app/pages/samaritan.vue +4 -4
- package/app/pages/typography/hero-text.vue +6 -6
- package/app/pages/typography/index.vue +4 -4
- package/app/pages/typography/page-body.vue +4 -4
- package/app/pages/typography/page-heading.vue +4 -4
- package/app/pages/typography/page-link.vue +4 -4
- package/app/pages/ui/accordian.vue +4 -4
- package/app/pages/ui/anchor-scroll-tab-navigation.vue +77 -66
- package/app/pages/ui/anchor-scroll.vue +94 -70
- package/app/pages/ui/animated-svg-text.vue +4 -4
- package/app/pages/ui/block-decorators.vue +11 -11
- package/app/pages/ui/card-core.vue +9 -9
- package/app/pages/ui/carousel-basic.vue +4 -4
- package/app/pages/ui/carousel-flip.vue +2 -2
- package/app/pages/ui/carousel-infinite.vue +4 -4
- package/app/pages/ui/clipped-panels.vue +10 -10
- package/app/pages/ui/contact-section.vue +4 -4
- package/app/pages/ui/container-glow.vue +2 -3
- package/app/pages/ui/deep-expanding-menu.vue +138 -0
- package/app/pages/ui/display-avatar.vue +2 -2
- package/app/pages/ui/display-banner.vue +2 -2
- package/app/pages/ui/display-chip.vue +32 -25
- package/app/pages/ui/display-details.vue +6 -10
- package/app/pages/ui/display-dialog.vue +96 -131
- package/app/pages/ui/display-pill.vue +27 -33
- package/app/pages/ui/display-prompt.vue +4 -4
- package/app/pages/ui/display-toast.vue +2 -2
- package/app/pages/ui/expanding-panel.vue +12 -16
- package/app/pages/ui/glowing-border.vue +12 -12
- package/app/pages/ui/layout-grid-a.vue +6 -6
- package/app/pages/ui/layout-grid-b.vue +4 -4
- package/app/pages/ui/magnetic-navigation.vue +6 -6
- package/app/pages/ui/marquee-scroller.vue +2 -2
- package/app/pages/ui/mask-element.vue +2 -2
- package/app/pages/ui/masonry-columns.vue +4 -4
- package/app/pages/ui/masonry-grid-ordered-experiment.vue +4 -4
- package/app/pages/ui/masonry-grid-ordered.vue +4 -4
- package/app/pages/ui/masonry-grid-sorted.vue +4 -4
- package/app/pages/ui/masonry-grid.vue +4 -4
- package/app/pages/ui/navigation/navigation-horizontal.vue +12 -12
- package/app/pages/ui/navigation/tab-navigation.vue +493 -0
- package/app/pages/ui/page-row.vue +127 -0
- package/app/pages/ui/price-list.vue +4 -4
- package/app/pages/ui/profile-section.vue +4 -4
- package/app/pages/ui/qr-code/[componentName].vue +6 -6
- package/app/pages/ui/rotating-carousel.vue +16 -16
- package/app/pages/ui/scroll-reveal-image.vue +20 -20
- package/app/pages/ui/section-parallax.vue +7 -7
- package/app/pages/ui/services/colour-finder.vue +4 -4
- package/app/pages/ui/services/services-cards.vue +4 -4
- package/app/pages/ui/services/services-section/[slug].vue +4 -4
- package/app/pages/ui/services/services-sections-compact.vue +6 -6
- package/app/pages/ui/settings.vue +10 -10
- package/app/pages/ui/simple-grid.vue +2 -2
- package/app/pages/ui/slider-gallery.vue +5 -5
- package/app/pages/ui/tabs-y.vue +2 -3
- package/app/pages/ui/tabs.vue +6 -9
- package/app/pages/ui/tooltips.vue +9 -9
- package/app/pages/ui/wipe-away-vertical.vue +14 -14
- package/package.json +1 -1
- package/.claude/skills/components/layout-row.md +0 -239
- package/app/components/display-dialog/DisplayDialogCore.vue +0 -276
- package/app/components/display-dialog/variants/DisplayDialogConfirm.vue +0 -47
- package/app/components/display-dialog/variants/DisplayDialogScrollableContent.vue +0 -51
- package/app/components/forms/c12/utils.ts +0 -14
- package/app/components/layout-row/LayoutRow.vue +0 -171
- package/app/components/layout-row/stories/LayoutRow.stories.ts +0 -528
- package/app/pages/ui/layout-row.vue +0 -139
- /package/app/components/{forms → 05.forms}/form-errors/InputError.vue +0 -0
- /package/app/components/{forms → 05.forms}/form-errors/tests/InputError.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/form-fieldset/FormFieldset.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-secondary-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-icons-tertiary-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-primary-pending-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-secondary-pill-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/combo-tertiary-readonly-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-default-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-error-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-success-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-theme-warning-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-primary-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-secondary-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-variant-tertiary-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/default-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/nuxt-icon-only-component-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pending-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-pill-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/state-readonly-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-chromium-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-firefox-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/playwright/input-button-core.playwright.ts-snapshots/with-both-nuxt-icon-components-webkit-darwin.png +0 -0
- /package/app/components/{forms → 05.forms}/input-button/tests/InputButtonCore.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-button/tests/__snapshots__/InputButtonCore.spec.ts.snap +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox/MultipleCheckboxes.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox/SingleCheckbox.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox/tests/MultipleCheckboxes.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox/tests/data/tags.json +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox-radio/InputCheckboxRadioButton.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox-radio/InputCheckboxRadioCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-checkbox-radio/tests/InputCheckboxRadioCore.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-copy/InputCopyCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-copy/stories/InputCopyCore.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-copy/tests/InputCopyCore.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-copy/tests/__snapshots__/InputCopyCore.spec.ts.snap +0 -0
- /package/app/components/{forms → 05.forms}/input-description/InputDescription.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-description/tests/InputDescription.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-label/InputLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-label/tests/InputLabel.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-number/InputNumberCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-number/variants/InputNumberDefault.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-radio/MultipleRadiobuttons.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-radio/tests/MultipleRadioButtons.spec.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-radio/tests/data/tags.json +0 -0
- /package/app/components/{forms → 05.forms}/input-range/InputRangeCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-range/variants/InputRangeDefault.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-range-fancy/InputRangeFancyCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-range-fancy/InputRangeFancyWithLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-select/InputSelectCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-select/variants/InputSelectWithLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-text/stories/InputPasswordWithLabel.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-text/stories/InputTextAsNumberWithLabel.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-text/stories/InputTextCore.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-text/stories/InputTextWithLabel.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-text/variants/InputPasswordWithLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-text/variants/InputTextWithLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-textarea/InputTextareaCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/input-textarea/stories/InputTextareaCore.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-textarea/stories/InputTextareaWithLabel.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/input-textarea/variants/InputTextareaWithLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/pending-effect/PendingEffect.vue +0 -0
- /package/app/components/{forms → 05.forms}/toggle-switch/ToggleSwitchCore.vue +0 -0
- /package/app/components/{forms → 05.forms}/toggle-switch/stories/ToggleSwitchCore.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/toggle-switch/stories/ToggleSwitchWithLabel.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/toggle-switch/stories/ToggleSwitchWithLabelInline.stories.ts +0 -0
- /package/app/components/{forms → 05.forms}/toggle-switch/variants/ToggleSwitchWithLabel.vue +0 -0
- /package/app/components/{forms → 05.forms}/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +0 -0
- /package/app/components/{forms → 05.forms}/triple-toggle-switch/TripleToggleSwitchCore.vue +0 -0
- /package/app/{components/forms/c12/prop-validators/index.ts → utils/prop-validators.ts} +0 -0
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<NuxtLayout name="default">
|
|
4
4
|
<template #layout-content>
|
|
5
|
-
<
|
|
5
|
+
<PageRow tag="div" variant="content" :style-class-passthrough="['mbe-20']">
|
|
6
6
|
<h1 class="page-heading-1">Typography - Hero Text</h1>
|
|
7
7
|
<p class="page-body-normal">Hero text styles</p>
|
|
8
|
-
</
|
|
8
|
+
</PageRow>
|
|
9
9
|
|
|
10
|
-
<
|
|
10
|
+
<PageRow tag="div" variant="content" :style-class-passthrough="['mbe-20']">
|
|
11
11
|
<h2 class="page-heading-2">Change variants</h2>
|
|
12
12
|
<div class="demo-row">
|
|
13
13
|
<div>
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
</select>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
|
-
</
|
|
31
|
+
</PageRow>
|
|
32
32
|
|
|
33
|
-
<
|
|
33
|
+
<PageRow tag="div" variant="content" :style-class-passthrough="['mbe-20']">
|
|
34
34
|
<h2 class="page-heading-2">{{ axisOptions }}: {{ fontSizeOptions }} Variant</h2>
|
|
35
35
|
<HeroText
|
|
36
36
|
tag="h1"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
]"
|
|
53
53
|
:style-class-passthrough="['class-demo']"
|
|
54
54
|
/>
|
|
55
|
-
</
|
|
55
|
+
</PageRow>
|
|
56
56
|
</template>
|
|
57
57
|
</NuxtLayout>
|
|
58
58
|
</div>
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<NuxtLayout name="default">
|
|
4
4
|
<template #layout-content>
|
|
5
|
-
<
|
|
5
|
+
<PageRow tag="div" variant="full" :style-class-passthrough="['mbe-20']">
|
|
6
6
|
<h1 class="page-heading-1">Typography</h1>
|
|
7
7
|
<h2 class="page-heading-2">Example styles used within page content</h2>
|
|
8
8
|
<p class="page-body-normal">Use within main body content</p>
|
|
9
|
-
</
|
|
9
|
+
</PageRow>
|
|
10
10
|
</template>
|
|
11
11
|
</NuxtLayout>
|
|
12
12
|
</div>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<script setup lang="ts">
|
|
16
16
|
definePageMeta({
|
|
17
17
|
layout: false,
|
|
18
|
-
})
|
|
18
|
+
});
|
|
19
19
|
|
|
20
20
|
useHead({
|
|
21
21
|
title: "Typography",
|
|
@@ -23,7 +23,7 @@ useHead({
|
|
|
23
23
|
bodyAttrs: {
|
|
24
24
|
class: "page-typography",
|
|
25
25
|
},
|
|
26
|
-
})
|
|
26
|
+
});
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<style lang="css">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<NuxtLayout name="default">
|
|
4
4
|
<template #layout-content>
|
|
5
|
-
<
|
|
5
|
+
<PageRow tag="div" variant="full" :style-class-passthrough="['mbe-20']">
|
|
6
6
|
<h1 class="page-heading-1">Typography - Body Text</h1>
|
|
7
7
|
<p class="page-body-normal">Page body styles</p>
|
|
8
8
|
<p class="page-body-normal">Use within main body content</p>
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
<strong>page-body-xsmall-bold</strong>
|
|
135
135
|
<div class="class-demo page-body-xsmall-bold">Lorum ipsum dolor sit amet, consectetur adipiscing elit.</div>
|
|
136
136
|
</div>
|
|
137
|
-
</
|
|
137
|
+
</PageRow>
|
|
138
138
|
</template>
|
|
139
139
|
</NuxtLayout>
|
|
140
140
|
</div>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<script setup lang="ts">
|
|
144
144
|
definePageMeta({
|
|
145
145
|
layout: false,
|
|
146
|
-
})
|
|
146
|
+
});
|
|
147
147
|
|
|
148
148
|
useHead({
|
|
149
149
|
title: "Typography",
|
|
@@ -151,7 +151,7 @@ useHead({
|
|
|
151
151
|
bodyAttrs: {
|
|
152
152
|
class: "page-typography-body",
|
|
153
153
|
},
|
|
154
|
-
})
|
|
154
|
+
});
|
|
155
155
|
</script>
|
|
156
156
|
|
|
157
157
|
<style lang="css">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<NuxtLayout name="default">
|
|
4
4
|
<template #layout-content>
|
|
5
|
-
<
|
|
5
|
+
<PageRow tag="div" variant="full" :style-class-passthrough="['mbe-20']">
|
|
6
6
|
<h1 class="page-heading-1">Typography - Heading Text</h1>
|
|
7
7
|
<p class="page-body-normal">Page heading styles</p>
|
|
8
8
|
<p class="page-body-normal">Use within main body content</p>
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<strong>page-heading-6</strong>
|
|
40
40
|
<div class="class-demo page-heading-6">Lorum ipsum dolor sit amet, consectetur adipiscing elit.</div>
|
|
41
41
|
</div>
|
|
42
|
-
</
|
|
42
|
+
</PageRow>
|
|
43
43
|
</template>
|
|
44
44
|
</NuxtLayout>
|
|
45
45
|
</div>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<script setup lang="ts">
|
|
49
49
|
definePageMeta({
|
|
50
50
|
layout: false,
|
|
51
|
-
})
|
|
51
|
+
});
|
|
52
52
|
|
|
53
53
|
useHead({
|
|
54
54
|
title: "Typography",
|
|
@@ -56,7 +56,7 @@ useHead({
|
|
|
56
56
|
bodyAttrs: {
|
|
57
57
|
class: "page-typography-heading",
|
|
58
58
|
},
|
|
59
|
-
})
|
|
59
|
+
});
|
|
60
60
|
</script>
|
|
61
61
|
|
|
62
62
|
<style lang="css">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<NuxtLayout name="default">
|
|
4
4
|
<template #layout-content>
|
|
5
|
-
<
|
|
5
|
+
<PageRow tag="div" variant="full" :style-class-passthrough="['mbe-20']">
|
|
6
6
|
<h1 class="page-heading-1">Typography - Link Text</h1>
|
|
7
7
|
<p class="page-body-normal">Page link styles</p>
|
|
8
8
|
<p class="page-body-normal">Use within main body content</p>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
Lorum ipsum dolor sit amet, consectetur adipiscing elit.
|
|
67
67
|
</a>
|
|
68
68
|
</div>
|
|
69
|
-
</
|
|
69
|
+
</PageRow>
|
|
70
70
|
</template>
|
|
71
71
|
</NuxtLayout>
|
|
72
72
|
</div>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<script setup lang="ts">
|
|
76
76
|
definePageMeta({
|
|
77
77
|
layout: false,
|
|
78
|
-
})
|
|
78
|
+
});
|
|
79
79
|
|
|
80
80
|
useHead({
|
|
81
81
|
title: "Typography",
|
|
@@ -83,7 +83,7 @@ useHead({
|
|
|
83
83
|
bodyAttrs: {
|
|
84
84
|
class: "page-typography-link",
|
|
85
85
|
},
|
|
86
|
-
})
|
|
86
|
+
});
|
|
87
87
|
</script>
|
|
88
88
|
|
|
89
89
|
<style lang="css">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<NuxtLayout name="default">
|
|
4
4
|
<template #layout-content>
|
|
5
|
-
<
|
|
5
|
+
<PageRow tag="div" variant="popout" :style-class-passthrough="['mbe-20']">
|
|
6
6
|
<h1 class="page-heading-2">Accordian</h1>
|
|
7
7
|
<p>Any item open and/closed</p>
|
|
8
8
|
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
<p class="pb-12">{{ item.content }}</p>
|
|
22
22
|
</template>
|
|
23
23
|
</AccordianCore>
|
|
24
|
-
</
|
|
24
|
+
</PageRow>
|
|
25
25
|
|
|
26
|
-
<
|
|
26
|
+
<PageRow tag="div" variant="popout" :style-class-passthrough="['mbe-20']">
|
|
27
27
|
<h2 class="page-heading-2">Accordian</h2>
|
|
28
28
|
<p>Only 1 item open, pass a name prop</p>
|
|
29
29
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<p class="pb-12">This is content slot 2</p>
|
|
50
50
|
</template>
|
|
51
51
|
</AccordianCore>
|
|
52
|
-
</
|
|
52
|
+
</PageRow>
|
|
53
53
|
</template>
|
|
54
54
|
</NuxtLayout>
|
|
55
55
|
</div>
|
|
@@ -2,118 +2,129 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<NuxtLayout name="default">
|
|
4
4
|
<template #layout-content>
|
|
5
|
-
<
|
|
5
|
+
<PageRow tag="div" variant="content" :style-class-passthrough="['mbe-4']">
|
|
6
6
|
<h1 class="page-heading-1">Anchor Scroll — TabNavigation</h1>
|
|
7
7
|
<p class="page-body-medium">
|
|
8
|
-
Tests
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
Tests
|
|
9
|
+
<code class="inline-code">TabNavigation</code>
|
|
10
|
+
with anchor hrefs. The nav uses plain
|
|
11
|
+
<code class="inline-code"><a></code>
|
|
12
|
+
tags for hash links (not
|
|
13
|
+
<code class="inline-code">NuxtLink</code>
|
|
14
|
+
) to keep Vue Router out of the smooth-scroll path. The
|
|
15
|
+
<code class="inline-code">:anchor-scroll-offset</code>
|
|
16
|
+
prop passes a getter so the sticky bar height is read at scroll time.
|
|
13
17
|
</p>
|
|
14
|
-
</
|
|
18
|
+
</PageRow>
|
|
15
19
|
|
|
16
20
|
<div ref="stickyNavRef" class="anchor-tab-nav-sticky">
|
|
17
|
-
<
|
|
21
|
+
<PageRow tag="div" variant="content">
|
|
18
22
|
<TabNavigation
|
|
19
23
|
:nav-item-data="anchorNavData"
|
|
20
24
|
:anchor-scroll-offset="() => stickyNavRef?.offsetHeight ?? 0"
|
|
21
25
|
/>
|
|
22
|
-
</
|
|
26
|
+
</PageRow>
|
|
23
27
|
</div>
|
|
24
28
|
|
|
25
29
|
<section id="overview" class="anchor-tab-section">
|
|
26
|
-
<
|
|
30
|
+
<PageRow tag="div" variant="content">
|
|
27
31
|
<h2 class="page-heading-2">Overview</h2>
|
|
28
32
|
<p class="page-body-medium">
|
|
29
|
-
This section verifies that clicking the
|
|
30
|
-
|
|
33
|
+
This section verifies that clicking the
|
|
34
|
+
<strong>Overview</strong>
|
|
35
|
+
link above scrolls here smoothly, with the heading landing below the sticky nav bar rather than behind it.
|
|
31
36
|
</p>
|
|
32
37
|
<p class="page-body-medium">
|
|
33
38
|
The sticky nav's height is resolved at click time via the getter passed to
|
|
34
|
-
<code class="inline-code">:anchor-scroll-offset</code
|
|
35
|
-
offset adjusts automatically.
|
|
39
|
+
<code class="inline-code">:anchor-scroll-offset</code>
|
|
40
|
+
. Resize the viewport — the offset adjusts automatically.
|
|
36
41
|
</p>
|
|
37
42
|
<p class="page-body-medium">
|
|
38
|
-
Hash links in
|
|
39
|
-
<code class="inline-code"
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
Hash links in
|
|
44
|
+
<code class="inline-code">TabNavigation</code>
|
|
45
|
+
render as plain
|
|
46
|
+
<code class="inline-code"><a></code>
|
|
47
|
+
elements (not
|
|
48
|
+
<code class="inline-code">NuxtLink</code>
|
|
49
|
+
), which prevents Vue Router from intercepting the click and triggering its own scroll behaviour.
|
|
42
50
|
</p>
|
|
43
|
-
</
|
|
51
|
+
</PageRow>
|
|
44
52
|
</section>
|
|
45
53
|
|
|
46
54
|
<section id="api" class="anchor-tab-section">
|
|
47
|
-
<
|
|
55
|
+
<PageRow tag="div" variant="content">
|
|
48
56
|
<h2 class="page-heading-2">API</h2>
|
|
49
57
|
<p class="page-body-medium">
|
|
50
|
-
This section verifies the
|
|
51
|
-
|
|
58
|
+
This section verifies the
|
|
59
|
+
<strong>API</strong>
|
|
60
|
+
link. Confirm the heading lands below the sticky nav after scrolling.
|
|
52
61
|
</p>
|
|
53
62
|
<p class="page-body-medium">
|
|
54
|
-
The
|
|
55
|
-
<code class="inline-code">
|
|
56
|
-
|
|
57
|
-
<code class="inline-code">
|
|
63
|
+
The
|
|
64
|
+
<code class="inline-code">anchorScrollOffset</code>
|
|
65
|
+
prop on
|
|
66
|
+
<code class="inline-code">TabNavigation</code>
|
|
67
|
+
accepts
|
|
68
|
+
<code class="inline-code">number | (() => number)</code>
|
|
69
|
+
— the same type as the
|
|
70
|
+
<code class="inline-code">offset</code>
|
|
71
|
+
option on
|
|
72
|
+
<code class="inline-code">useAnchorScroll</code>
|
|
58
73
|
directly. It is forwarded verbatim to the composable.
|
|
59
74
|
</p>
|
|
60
|
-
<div class="demo-code">
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<TabNavigation
|
|
70
|
-
:nav-item-data="navItemData"
|
|
71
|
-
:anchor-scroll-offset="() => stickyNavRef?.offsetHeight ?? 0"
|
|
72
|
-
/>
|
|
73
|
-
</div></div>
|
|
74
|
-
</LayoutRow>
|
|
75
|
+
<div class="demo-code">
|
|
76
|
+
const navItemData = { main: [ { text: "Overview", href: "#overview" }, { text: "API", href: "#api" }, {
|
|
77
|
+
text: "Usage", href: "#usage" }, { text: "Motion", href: "#motion" }, ], };
|
|
78
|
+
</div>
|
|
79
|
+
<div class="demo-code">
|
|
80
|
+
<div ref="stickyNavRef"> <TabNavigation :nav-item-data="navItemData" :anchor-scroll-offset="() =>
|
|
81
|
+
stickyNavRef?.offsetHeight ?? 0" /> </div>
|
|
82
|
+
</div>
|
|
83
|
+
</PageRow>
|
|
75
84
|
</section>
|
|
76
85
|
|
|
77
86
|
<section id="usage" class="anchor-tab-section">
|
|
78
|
-
<
|
|
87
|
+
<PageRow tag="div" variant="content">
|
|
79
88
|
<h2 class="page-heading-2">Usage</h2>
|
|
80
89
|
<p class="page-body-medium">
|
|
81
|
-
This section verifies the
|
|
82
|
-
|
|
90
|
+
This section verifies the
|
|
91
|
+
<strong>Usage</strong>
|
|
92
|
+
link. Confirm the heading lands below the sticky nav after scrolling.
|
|
83
93
|
</p>
|
|
84
94
|
<p class="page-body-medium">
|
|
85
95
|
Mixed navigation — routes and anchor hrefs in the same
|
|
86
|
-
<code class="inline-code">navItemData</code>
|
|
87
|
-
|
|
88
|
-
<code class="inline-code"
|
|
89
|
-
|
|
96
|
+
<code class="inline-code">navItemData</code>
|
|
97
|
+
— is supported. Route items render as
|
|
98
|
+
<code class="inline-code">NuxtLink</code>
|
|
99
|
+
; anchor items render as plain
|
|
100
|
+
<code class="inline-code"><a></code>
|
|
101
|
+
. The handler is a no-op for routes so both types can share the same click binding.
|
|
90
102
|
</p>
|
|
91
|
-
<div class="demo-code">
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
],
|
|
98
|
-
};</div>
|
|
99
|
-
</LayoutRow>
|
|
103
|
+
<div class="demo-code">
|
|
104
|
+
const navItemData = { main: [ { text: "About", href: "#about" }, // anchor — plain <a> { text:
|
|
105
|
+
"Services", href: "#services" }, // anchor — plain <a> { text: "Blog", href: "/blog" }, // route —
|
|
106
|
+
NuxtLink { text: "Contact", href: "#contact" }, // anchor — plain <a> ], };
|
|
107
|
+
</div>
|
|
108
|
+
</PageRow>
|
|
100
109
|
</section>
|
|
101
110
|
|
|
102
111
|
<section id="motion" class="anchor-tab-section">
|
|
103
|
-
<
|
|
112
|
+
<PageRow tag="div" variant="content">
|
|
104
113
|
<h2 class="page-heading-2">Reduced Motion</h2>
|
|
105
114
|
<p class="page-body-medium">
|
|
106
|
-
This section verifies the
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
115
|
+
This section verifies the
|
|
116
|
+
<strong>Reduced Motion</strong>
|
|
117
|
+
link. With
|
|
118
|
+
<em>Reduce Motion</em>
|
|
119
|
+
enabled in OS accessibility settings, clicks should produce an instant jump rather than a smooth scroll —
|
|
120
|
+
and the offset should still be respected.
|
|
110
121
|
</p>
|
|
111
122
|
<p class="page-body-medium">
|
|
112
|
-
To test on macOS:
|
|
113
|
-
|
|
114
|
-
above.
|
|
123
|
+
To test on macOS:
|
|
124
|
+
<strong>System Settings → Accessibility → Display → Reduce Motion</strong>
|
|
125
|
+
. Refresh the page after toggling, then click any section link above.
|
|
115
126
|
</p>
|
|
116
|
-
</
|
|
127
|
+
</PageRow>
|
|
117
128
|
</section>
|
|
118
129
|
</template>
|
|
119
130
|
</NuxtLayout>
|