+
+ {tabs.map(tab => {
+ if (tab.props.hide) return null;
+ const isActive = tab.props.tabKey === activeKey;
+ return (
+ - { onSwitch(tab.props.tabKey); }} // FIXME: add a Button and use that instead
+ >
+ {tab.props.title}
+
+ )
+ })}
+
+
+ {activeTab &&
+
+ {renderActive(activeTab)}
+
+ }
+
+ );
+ },
+ {
+ Tab,
+ },
+);
diff --git a/src/components/navigations/Stepper/Stepper.module.scss b/src/components/navigations/Stepper/Stepper.module.scss
deleted file mode 100644
index 515b6d78..00000000
--- a/src/components/navigations/Stepper/Stepper.module.scss
+++ /dev/null
@@ -1,105 +0,0 @@
-/* Copyright (c) Fortanix, Inc.
-|* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
-|* the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-@use '../../../styling/defs.scss' as bk;
-
-@layer baklava.components {
- .bk-stepper {
- @include bk.component-base(bk-stepper);
-
- --bk-stepper-indicator-size: #{bk.rem-from-px(28)};
- display: flex;
-
- > ol {
- display: contents;
- }
-
- &.bk-stepper--horizontal {
- flex-direction: row;
- column-gap: bk.$spacing-9;
- }
-
- &.bk-stepper--vertical {
- flex-direction: column;
- row-gap: bk.$spacing-9;
-
- // Draw a line between subsequent items
- li + li .bk-stepper__item__indicator {
- &::before {
- content: '';
- position: absolute;
- inset-block-start: calc(-1 * bk.$spacing-9 - bk.$size-2);
- inset-inline-start: calc(50% - bk.$size-2 / 2);
- inline-size: 0;
- block-size: bk.$spacing-9;
- border-inline-start: bk.$size-2 solid bk.$theme-stepper-border-disabled;
- }
- }
- }
-
- .bk-stepper__item {
- cursor: pointer;
-
- display: flex;
- align-items: center;
- color: bk.$theme-stepper-text-disabled;
-
- .bk-stepper__item__indicator {
- position: relative; // Needed for the vertical line `position: absolute`
- flex-shrink: 0;
-
- margin-inline-end: bk.$spacing-3;
- aspect-ratio: 1;
- inline-size: var(--bk-stepper-indicator-size);
-
- border: bk.$size-2 solid #{bk.$theme-stepper-border-disabled};
- border-radius: 50%;
- font-weight: bk.$font-weight-bold;
- font-size: bk.$font-size-m;
-
- display: grid;
- place-content: center;
-
- .bk-stepper__item__indicator__icon {
- font-size: bk.$font-size-xs;
- }
- }
-
- .bk-stepper__item__title {
- font-size: bk.$font-size-m;
- }
-
- .bk-stepper__item__optional {
- margin-inline-start: bk.$spacing-2;
- font-size: bk.$font-size-xs;
- }
- }
-
- // Any steps we've already visited
- .bk-stepper__item--checked {
- color: bk.$theme-stepper-text-selected;
-
- .bk-stepper__item__indicator {
- border-color: bk.$theme-stepper-border-default;
- }
- }
-
- // The currently active step
- [aria-current="true"] {
- .bk-stepper__item {
- color: bk.$theme-stepper-text-selected;
-
- .bk-stepper__item__indicator {
- border-color: bk.$theme-stepper-border-default;
- background-color: bk.$theme-stepper-background-default;
- color: bk.$theme-stepper-text-selected-number;
- }
- }
- }
-
- .bk-stepper__item--disabled {
- cursor: not-allowed;
- }
- }
-}
diff --git a/src/components/navigations/Stepper/Stepper.tsx b/src/components/navigations/Stepper/Stepper.tsx
deleted file mode 100644
index ccfd5996..00000000
--- a/src/components/navigations/Stepper/Stepper.tsx
+++ /dev/null
@@ -1,105 +0,0 @@
-/* Copyright (c) Fortanix, Inc.
-|* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
-|* the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-import * as React from 'react';
-import { type ClassNameArgument, type ComponentProps, classNames as cx } from '../../../util/componentUtil.ts';
-
-import { Icon } from '../../graphics/Icon/Icon.tsx';
-import { Button } from '../../actions/Button/Button.tsx';
-
-import cl from './Stepper.module.scss';
-
-
-/*
-References:
-- https://stackoverflow.com/questions/52932018/making-a-step-progress-indicator-accessible-for-screen-readers
-- https://www.telerik.com/design-system/docs/components/stepper/accessibility
-- https://cauldron.dequelabs.com/components/Stepper
-*/
-
-export { cl as SteppersClassNames };
-
-export type Step = {
- stepKey: string,
- title: React.ReactNode,
- className?: undefined | ClassNameArgument,
- hide?: undefined | boolean,
- isOptional?: undefined | boolean,
- isDisabled?: undefined | boolean,
-};
-export type StepperKey = Step['stepKey'];
-export type StepperDirection = 'vertical' | 'horizontal';
-
-export type StepperProps = React.PropsWithChildren