From 5b3c8b2f1607c7ad887d1cff3ae08c133c9a7b0e Mon Sep 17 00:00:00 2001 From: HHamude Date: Tue, 18 Jul 2023 12:07:09 +0300 Subject: [PATCH] feat(breadcrumb): add new `bq-breadcrumb` component (#266) --- packages/bee-q/src/components.d.ts | 106 +++++++++++++ .../__tests__/bq-breadcrumb-item.e2e.ts | 48 ++++++ .../breadcrumb-item/bq-breadcrumb-item.tsx | 139 ++++++++++++++++++ .../src/components/breadcrumb-item/readme.md | 40 +++++ .../scss/bq-breadcrumb-item.scss | 21 +++ .../scss/bq-breadcrumb-item.variables.scss | 43 ++++++ .../breadcrumb/__tests__/bq-breadcrumb.e2e.ts | 101 +++++++++++++ .../breadcrumb/_storybook/bq-breadcrumb.mdx | 39 +++++ .../_storybook/bq-breadcrumb.stories.tsx | 95 ++++++++++++ .../components/breadcrumb/bq-breadcrumb.tsx | 131 +++++++++++++++++ .../bee-q/src/components/breadcrumb/readme.md | 33 +++++ .../breadcrumb/scss/bq-breadcrumb.scss | 7 + 12 files changed, 803 insertions(+) create mode 100644 packages/bee-q/src/components/breadcrumb-item/__tests__/bq-breadcrumb-item.e2e.ts create mode 100644 packages/bee-q/src/components/breadcrumb-item/bq-breadcrumb-item.tsx create mode 100644 packages/bee-q/src/components/breadcrumb-item/readme.md create mode 100644 packages/bee-q/src/components/breadcrumb-item/scss/bq-breadcrumb-item.scss create mode 100644 packages/bee-q/src/components/breadcrumb-item/scss/bq-breadcrumb-item.variables.scss create mode 100644 packages/bee-q/src/components/breadcrumb/__tests__/bq-breadcrumb.e2e.ts create mode 100644 packages/bee-q/src/components/breadcrumb/_storybook/bq-breadcrumb.mdx create mode 100644 packages/bee-q/src/components/breadcrumb/_storybook/bq-breadcrumb.stories.tsx create mode 100644 packages/bee-q/src/components/breadcrumb/bq-breadcrumb.tsx create mode 100644 packages/bee-q/src/components/breadcrumb/readme.md create mode 100644 packages/bee-q/src/components/breadcrumb/scss/bq-breadcrumb.scss diff --git a/packages/bee-q/src/components.d.ts b/packages/bee-q/src/components.d.ts index b6451dbe4..caeb3683d 100644 --- a/packages/bee-q/src/components.d.ts +++ b/packages/bee-q/src/components.d.ts @@ -81,6 +81,34 @@ export namespace Components { */ "textColor"?: string; } + interface BqBreadcrumb { + /** + * The `aria-label` attribute to describe the type of navigation + */ + "ariaLabel": string; + } + interface BqBreadcrumbItem { + /** + * The aria-label that corresponds to the full title of the destination page. This won't be shown in the page, but it will be used by screen readers and other assistive devices. + */ + "ariaLabel": string; + /** + * If set, the breadcrumb item will be rendered as an `` with this `href`, otherwise, a `