|
| 1 | +/** |
| 2 | + * Copyright 2025, SumUp Ltd. |
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | + * you may not use this file except in compliance with the License. |
| 5 | + * You may obtain a copy of the License at |
| 6 | + * |
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | + * See the License for the specific language governing permissions and |
| 13 | + * limitations under the License. |
| 14 | + */ |
| 15 | + |
| 16 | +import { Stack } from '../../../../.storybook/components/index.js'; |
| 17 | + |
| 18 | +import { TierIndicator, type TierIndicatorProps } from './TierIndicator.js'; |
| 19 | + |
| 20 | +export default { |
| 21 | + title: 'Brand/TierIndicator', |
| 22 | + component: TierIndicator, |
| 23 | + tags: ['status:stable'], |
| 24 | +}; |
| 25 | + |
| 26 | +export const Base = (args: TierIndicatorProps) => <TierIndicator {...args} />; |
| 27 | + |
| 28 | +export const Sizes = (args: TierIndicatorProps) => ( |
| 29 | + <dl |
| 30 | + style={{ |
| 31 | + display: 'flex', |
| 32 | + flexDirection: 'column', |
| 33 | + alignItems: 'flex-start', |
| 34 | + gap: 'var(--cui-spacings-giga)', |
| 35 | + }} |
| 36 | + > |
| 37 | + <Stack key="small"> |
| 38 | + <dt> |
| 39 | + Size <strong>s</strong>: |
| 40 | + </dt> |
| 41 | + <dd> |
| 42 | + <TierIndicator {...args} size="s" /> |
| 43 | + </dd> |
| 44 | + </Stack> |
| 45 | + <Stack key="medium"> |
| 46 | + <dt> |
| 47 | + Size <strong>m</strong>: |
| 48 | + </dt> |
| 49 | + <dd> |
| 50 | + <TierIndicator {...args} size="m" /> |
| 51 | + </dd> |
| 52 | + </Stack> |
| 53 | + <Stack key="large"> |
| 54 | + <dt> |
| 55 | + {' '} |
| 56 | + Size <strong>l</strong>: |
| 57 | + </dt> |
| 58 | + <dd> |
| 59 | + <TierIndicator {...args} size="l" /> |
| 60 | + </dd> |
| 61 | + </Stack> |
| 62 | + </dl> |
| 63 | +); |
0 commit comments