Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📖 Storybook + 🛠 Tailwind Patient Filters #3744

Merged
merged 100 commits into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
d6e5262
tailwind colors as per figma
rithviknishad Oct 3, 2022
44a4874
implement select menu with new interface
rithviknishad Oct 3, 2022
209d97a
use select menu v2 for ordering
rithviknishad Oct 3, 2022
c10fb1a
update tailwind colors as per figma
rithviknishad Oct 3, 2022
08cfcac
facility types
rithviknishad Oct 3, 2022
a3380b4
support option value
rithviknishad Oct 3, 2022
095f565
gender
rithviknishad Oct 3, 2022
3ee1896
gender icons
rithviknishad Oct 3, 2022
db01a68
is antenatal field
rithviknishad Oct 3, 2022
248a6f8
kasp
rithviknishad Oct 3, 2022
6dcbc3a
category
rithviknishad Oct 3, 2022
4b29bb8
disease status
rithviknishad Oct 3, 2022
f086b23
vaccinated
rithviknishad Oct 3, 2022
3fd23c6
declared
rithviknishad Oct 3, 2022
77470c3
telemedicine
rithviknishad Oct 3, 2022
5aab4f5
top buttons
rithviknishad Oct 3, 2022
337111f
persistent filter buttons
rithviknishad Oct 3, 2022
3f41ca4
update color pallete as per figma
rithviknishad Oct 6, 2022
16b0b36
import form fields from consultation redesign PR
rithviknishad Oct 6, 2022
1f25f0a
consume new text input
rithviknishad Oct 6, 2022
0125ab5
remove range
rithviknishad Oct 7, 2022
241435d
fix
rithviknishad Oct 7, 2022
2ec6ba3
`npx init storybook`
rithviknishad Oct 8, 2022
2898bb4
update `@storybook/preset-create-react-app`
rithviknishad Oct 8, 2022
e79711b
install storybook postcss for tailwind
rithviknishad Oct 8, 2022
fb5c620
fix issues with tailwind and reload
rithviknishad Oct 8, 2022
dc8acb6
Merge branch 'coronasafe:develop' into redesign-advanced-patient-filters
rithviknishad Oct 10, 2022
9858162
fix magically value prop gone missing
rithviknishad Oct 10, 2022
35f7a83
`npm install tw-elements`
rithviknishad Oct 10, 2022
e14d7ce
Rename new to `SelectMenuV2`
rithviknishad Oct 12, 2022
eba6368
add tw-elements to package lock file
Ashesh3 Oct 12, 2022
5ade59c
implements multi select menu
rithviknishad Oct 12, 2022
bdd6bcc
last admitted to bed type
rithviknishad Oct 12, 2022
c1a7055
remove unused code
rithviknishad Oct 12, 2022
e196d62
Merge branch 'develop' into tailwind/patient-filters
rithviknishad Oct 13, 2022
8c36521
imporve select menus
rithviknishad Oct 13, 2022
7b1214f
update placeholder colors
rithviknishad Oct 13, 2022
268a3ca
show chips below multi select
rithviknishad Oct 13, 2022
dbd6304
consistent `form-input`, `form-textarea` styling
rithviknishad Oct 13, 2022
f34fefb
wip, to let khavin try
rithviknishad Oct 13, 2022
6392f3e
Revert "add tw-elements to package lock file"
rithviknishad Oct 14, 2022
ac244e2
revert `tw-elements` for datepicker
rithviknishad Oct 14, 2022
901ca28
add `serve-storybook`
rithviknishad Oct 14, 2022
f3518d9
fix colors as per figma color scheme
rithviknishad Oct 14, 2022
3e0ebc9
implements basic buttons
rithviknishad Oct 14, 2022
308fccf
update button styles
rithviknishad Oct 14, 2022
4297275
button shape circle as boolean attribute
rithviknishad Oct 14, 2022
9c29f2e
update filter buttons
rithviknishad Oct 14, 2022
41891ed
fix button styling when `circle`
rithviknishad Oct 14, 2022
2d0885a
remove comments
rithviknishad Oct 14, 2022
6492c42
Merge branch 'develop' into tailwind/patient-filters
rithviknishad Oct 14, 2022
b4bb409
feat: added custom AutoCompleteAsync component
khavinshankar Oct 15, 2022
6ab5195
Merge branch 'tailwind/patient-filters' of github.com:rithviknishad/c…
khavinshankar Oct 15, 2022
7d916a5
Merge `package-lock.json` of `develop` to tailwind/storybook
rithviknishad Oct 15, 2022
41bc162
Merge branch 'develop' into tailwind/storybook
rithviknishad Oct 15, 2022
1bae23e
`npm install --legacy-peer-deps` post merge `develop` to tailwind/sto…
rithviknishad Oct 15, 2022
160f91e
Merge branch 'tailwind/storybook' into tailwind/patient-filters
rithviknishad Oct 15, 2022
a8d3880
storybook: remove default stories
rithviknishad Oct 15, 2022
aa20b55
eslint: ignore '*.stories.mdx' files
rithviknishad Oct 15, 2022
4a381e3
storybook: add-on `storybook-dark-mode`
rithviknishad Oct 15, 2022
d761cd7
button stories
rithviknishad Oct 16, 2022
5063723
add DateInputV2 and DateRangeInputV2
Ritesh-Aggarwal Oct 16, 2022
0f9628e
merge rithvik/tailwind/patient-filters
Ritesh-Aggarwal Oct 16, 2022
180ead5
make datepicker css consistent
Ritesh-Aggarwal Oct 16, 2022
566bb33
fix (AutoCompleteAsync): fixed debounce issue
khavinshankar Oct 17, 2022
fe3d82e
Merge branch 'tailwind/patient-filters' of github.com:rithviknishad/c…
khavinshankar Oct 17, 2022
1111b76
ui (AsyncAutoComplete): changed bg color
khavinshankar Oct 17, 2022
e6680dc
refactor out `DropdownMenuTransition` for consistent experience acros…
rithviknishad Oct 17, 2022
0e1d9c5
add validators
rithviknishad Oct 17, 2022
00468b9
fix validator issue
rithviknishad Oct 17, 2022
a704ca0
update field validators
rithviknishad Oct 18, 2022
f5929ef
DateFormField and DateRangeFormField wrappers
rithviknishad Oct 18, 2022
05790ea
use consistent transition for date picker as used in other components
rithviknishad Oct 18, 2022
7a64f20
fix typo
rithviknishad Oct 18, 2022
925753e
fix datepicker focus issue, by wrapping it with Popover
rithviknishad Oct 18, 2022
d1b8a77
replace material icons with font awesom
rithviknishad Oct 18, 2022
463b572
fix asyncautocomplete field placeholder color
rithviknishad Oct 18, 2022
35c8360
storybook: fontawesome and inter font scripts
rithviknishad Oct 19, 2022
9dfa140
storybook: DateFormField
rithviknishad Oct 19, 2022
295ebb3
storybook: text area and text form fields
rithviknishad Oct 19, 2022
af7c4ec
fix styling issue with phone input
rithviknishad Oct 19, 2022
ff70a80
rename `ButtonStyle` to `ButtonVariant`
rithviknishad Oct 19, 2022
46cba54
storybook: complete button story
rithviknishad Oct 19, 2022
ddff3ad
fix property error missing issue
rithviknishad Oct 19, 2022
f0a8915
storybook: `SelectMenuV2`
rithviknishad Oct 19, 2022
87bb240
storybook: `MultiSelectMenuV2`
rithviknishad Oct 19, 2022
374c0e2
storybook: move care ui elements to care ui dir
rithviknishad Oct 19, 2022
887d578
fix title
rithviknishad Oct 19, 2022
393470d
select year in datepicker
Ritesh-Aggarwal Oct 19, 2022
6d1158c
disable increment year btn
Ritesh-Aggarwal Oct 19, 2022
061c19d
Merge branch 'develop' into tailwind/patient-filters
rithviknishad Oct 21, 2022
7568429
Merge branch 'develop' into tailwind/patient-filters
rithviknishad Oct 21, 2022
e0f215e
Patient Review feature fixes (#3584)
Ashesh3 Oct 21, 2022
22b34bf
Keep loading spinner during redirect (#3754)
Ashesh3 Oct 22, 2022
a2d8420
Cypress: Fixes & Refactoring (#3798)
rabilrbl Oct 22, 2022
5474fda
`AutoCompleteAsync` fix `multiple` overload type
rithviknishad Oct 22, 2022
63bb029
fix (AutoCompleteAsync): fixed input issue
khavinshankar Oct 25, 2022
957d592
Merge branch 'develop' into tailwind/patient-filters
rithviknishad Oct 25, 2022
aa96d06
Merge branch 'develop' into tailwind/patient-filters
rithviknishad Oct 26, 2022
fc3268a
Merge branch 'develop' into tailwind/patient-filters
rithviknishad Oct 26, 2022
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
32 changes: 32 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const path = require("path");

module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"storybook-dark-mode",
],
framework: "@storybook/react",
core: {
builder: "webpack5",
},
webpackFinal: (config) => {
config.module.rules.push({
test: /\.css$/,
use: [
{
loader: "postcss-loader",
options: {
postcssOptions: {
plugins: [require("tailwindcss"), require("autoprefixer")],
},
},
},
],
include: path.resolve(__dirname, "../"),
});
return config;
},
};
10 changes: 10 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script
src="https://kit.fontawesome.com/d69454c2e7.js"
crossorigin="anonymous"
></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
11 changes: 11 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import "../src/style/index.css";

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
Loading