Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Format"

on:
push:

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Release"

on:
push:
branches:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/show.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Show"

on:
push:
branches:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Validate"

on:
pull_request:
push:
Expand Down Expand Up @@ -59,4 +60,9 @@ jobs:
node-version: 22
- run: corepack enable
- run: yarn install
- run: npx playwright install --with-deps chromium
- run: yarn run storybook:build
- run: |
npx http-server storybook-static --port 6006 --silent &
npx wait-on tcp:6006
yarn run test:storybook
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"build:es": "rollup --config --bundleConfigAsCjs",
"build:ts": "tsc --declaration --declarationDir types --emitDeclarationOnly",
"build": "yarn run build:clean && yarn run build:es && yarn run build:ts",
"validate": "yarn run lint && yarn run typecheck && yarn run test",
"validate": "yarn run lint && yarn run typecheck && yarn run test && yarn run test:storybook",
"test": "jest",
"test:watch": "jest --watch",
"test:storybook": "test-storybook",
"storybook": "storybook dev --port=6006",
"storybook:build": "storybook build --quiet",
"typecheck": "tsc --noEmit",
Expand Down Expand Up @@ -83,6 +84,7 @@
"@storybook/addon-docs": "^10.0.5",
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
"@storybook/react-webpack5": "^10.0.5",
"@storybook/test-runner": "^0.24.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^14.1.2",
Expand Down Expand Up @@ -111,6 +113,7 @@
"jest-environment-jsdom": "^30.2.0",
"less": "^4.2.0",
"less-loader": "^11.1.3",
"playwright": "^1.56.1",
"prettier": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -130,7 +133,8 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2",
"wait-on": "^9.0.3",
"webpack": "^5.97.0"
},
"packageManager": "yarn@4.10.3"
"packageManager": "yarn@4.12.0"
}
3 changes: 2 additions & 1 deletion src/Button/ColoredButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd';
import AntdButton from 'antd/es/button';
import type { ButtonProps as AntdButtonProps } from 'antd/es/button';
import ButtonGroup from 'antd/es/button/button-group';
import * as React from 'react';
import styled from 'styled-components';
Expand Down
4 changes: 4 additions & 0 deletions src/Tooltip/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const TooltipForDate: StoryFn<DateWithTooltipProps> =
return <DateWithTooltip {...args} />;
};

TooltipForDate.args = {
date: new Date('2024-01-15T10:30:00'),
};

export const TooltipForTrimmedText: StoryFn<TextWithTooltipIfTrimmedProps> =
function TooltipForTrimmedText(args) {
return <TextWithTooltipIfTrimmed {...args} />;
Expand Down
Loading