Skip to content

Commit 620f45d

Browse files
mattshardmanhasura-bot
authored andcommitted
Create new storybook components for Table Permissions Form
PR-URL: hasura/graphql-engine-mono#2768 GitOrigin-RevId: f0250eb
1 parent 7a91330 commit 620f45d

28 files changed

Lines changed: 4841 additions & 2 deletions

‎console/.storybook/preview.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Provider } from 'react-redux';
33
import { addDecorator } from '@storybook/react';
4-
import { initializeWorker, mswDecorator } from 'msw-storybook-addon';
4+
import { initialize, mswDecorator } from 'msw-storybook-addon';
55
import '../src/theme/tailwind.css';
66
import { store } from '../src/store';
77
import '../src/components/Common/Common.scss';
@@ -20,5 +20,5 @@ export const decorators = [
2020
(fn, c) => <Provider store={store}>{fn(c)}</Provider>,
2121
];
2222

23-
initializeWorker();
23+
initialize();
2424
addDecorator(mswDecorator);

‎console/package-lock.json‎

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎console/package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"@graphql-codegen/core": "^1.17.8",
6161
"@graphql-codegen/typescript": "^1.17.10",
6262
"@hookform/resolvers": "^2.8.1",
63+
"@radix-ui/react-collapsible": "^0.1.1",
6364
"@radix-ui/react-tooltip": "^0.1.0",
6465
"@reduxjs/toolkit": "^1.5.1",
6566
"@types/lodash.get": "^4.4.6",
@@ -139,6 +140,7 @@
139140
"@storybook/addon-links": "6.3.8",
140141
"@storybook/addon-postcss": "2.0.0",
141142
"@storybook/react": "6.3.8",
143+
"@storybook/testing-react": "0.0.22",
142144
"@tailwindcss/forms": "^0.3.3",
143145
"@tailwindcss/typography": "^0.4.1",
144146
"@testing-library/jest-dom": "^5.14.1",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@import '../../../components/Common/Common.scss';
2+
3+
.qb_select,
4+
.qb_input {
5+
border: none;
6+
background-color: transparent;
7+
border-bottom: 2px dotted;
8+
border-radius: 0;
9+
//color: #CB3837
10+
}
11+
12+
.qb_select {
13+
cursor: pointer;
14+
}
15+
16+
.qb_select:focus,
17+
.qb_input:focus {
18+
outline: none;
19+
}
20+
21+
.qb_container {
22+
// display: inline-block;
23+
min-width: 50%;
24+
}
25+
26+
.qb_input_suggestion {
27+
margin-left: 10px;
28+
color: #080;
29+
font-size: 10px;
30+
font-weight: bold;
31+
cursor: pointer;
32+
}

0 commit comments

Comments
 (0)