Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Aug 22, 2023
1 parent 9459c6f commit 337e4f6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
6 changes: 1 addition & 5 deletions code/ui/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ import type { StorybookConfig } from '../../frameworks/react-vite';
const isBlocksOnly = process.env.STORYBOOK_BLOCKS_ONLY === 'true';

const allStories = [
{
directory: '../components/src/new',
titlePrefix: '@core-ui',
},
{
directory: '../manager/src',
titlePrefix: '@manager',
},
{
directory: '../components/src/legacy',
directory: '../components/src/components',
titlePrefix: '@components',
},
{
Expand Down
18 changes: 16 additions & 2 deletions code/ui/blocks/src/components/ArgsTable/ArgsTable.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
import React from 'react';
import { action } from '@storybook/addon-actions';
import { styled } from '@storybook/theming';
import type { Meta, StoryObj } from '@storybook/react';
import { ArgsTable, ArgsTableError } from './ArgsTable';
import * as ArgRow from './ArgRow.stories';

export default {
const meta = {
component: ArgsTable,
title: 'Components/ArgsTable/ArgsTable',
args: {
updateArgs: action('updateArgs'),
resetArgs: action('resetArgs'),
},
};
} satisfies Meta<typeof ArgsTable>;

export default meta;
type Story = StoryObj<typeof meta>;

const propsSection = {
category: 'props ',
};
Expand Down Expand Up @@ -145,6 +150,15 @@ export const Empty = {
},
};

export const EmptyInsideAddonPanel: Story = {
args: {
inAddonPanel: true,
},
parameters: {
layout: 'centered',
},
};

export const WithDefaultExpandedArgs = {
args: {
rows: {
Expand Down
5 changes: 3 additions & 2 deletions code/ui/blocks/src/components/ArgsTable/Empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ const Description = styled.div(({ theme }) => ({
color: theme.textMutedColor,
}));

const Links = styled.div({
const Links = styled.div(({ theme }) => ({
display: 'flex',
fontSize: theme.typography.size.s2 - 1,
gap: 25,
});
}));

const Divider = styled.div(({ theme }) => ({
width: 1,
Expand Down

0 comments on commit 337e4f6

Please sign in to comment.