Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
8c1daaf
BN-168 | Add. React 17 And Associated Dependencies (#1)
rahu1ramesh Sep 2, 2025
c04cb7d
BN-171 | Add. RTL + Jest Based Unit Tests Replacing Enzyme (#2)
rahu1ramesh Sep 10, 2025
0fbba93
BN-172 | Add. Upgrade Webpack, Babel And Eslint Config (#3)
rahu1ramesh Sep 18, 2025
7f35a9b
BN-172 | Update webpack config to get library output as ES modules
PratitiP Oct 13, 2025
cd5828f
Update. Change major version and change log after react16 -> react17 …
PratitiP Oct 17, 2025
dd1bd6c
BN-149 | Upgrade from React17 to React18 (#4)
ROHIT-V-TW Nov 4, 2025
895ce92
BN-149 | Upgrade core react packages and testing dependecies, Fix fai…
PratitiP Nov 5, 2025
1f54dd2
BN-199 | React19 Consumer App Initialized
ROHIT-V-TW Nov 5, 2025
0d62c93
Fix pipeline error by upgrading Node.js to v18.x in npm-publish workflow
PratitiP Nov 7, 2025
6d12edd
Fix pipeline error by upgrading Node.js to v18.x in npm-publish workflow
PratitiP Nov 7, 2025
c204452
Add --legacy-peer-deps flag to npm ci command to resolve webpack peer…
PratitiP Nov 7, 2025
9070310
Upgrade react-textarea-autosize package suitable for react19
PratitiP Nov 10, 2025
b2ef8ff
Update yarn lock file for react19 consumer app
PratitiP Nov 10, 2025
c6fbc3b
BN-199 | React Select Package Updated and minor refactoring
ROHIT-V-TW Nov 11, 2025
465cfe2
BN-199 | Fixed Testcases namely for React-Select upgrade
ROHIT-V-TW Nov 12, 2025
b2088f7
BN-199 | Fix all react-select v5 test failures and update AutoComplet…
ROHIT-V-TW Nov 12, 2025
eb57494
BN-199 | Fixed lint warnings for no-unused proptypes by removal of th…
ROHIT-V-TW Nov 14, 2025
64d191a
Add --legacy-peer-deps flag to npm ci command to resolve webpack peer…
PratitiP Nov 7, 2025
91cb837
BN-199 | Revert back the library output to UMD to resolve the errors …
PratitiP Nov 17, 2025
537abe5
BN-199 | Bump library version to 1.2.0 for react19 upgrade. Add suppo…
PratitiP Nov 18, 2025
15c3ae2
BN-199 | Updated React19_Migration Guide
ROHIT-V-TW Nov 18, 2025
4911458
BN-199 | Replaced deprecated MacOS13 runner images to Ubuntu-latest
ROHIT-V-TW Nov 19, 2025
ed6a2c1
BN-199 | Upgraded to React19 and upgraded react-textarea-autosize and…
ROHIT-V-TW Nov 19, 2025
37c92f9
Updated to Gradient's direction syntax
ROHIT-V-TW Nov 21, 2025
af7e779
BN 199 | Updated Gradient Direction Syntax
ROHIT-V-TW Nov 21, 2025
b94f835
BAH-4274 | Add support for typescript
PratitiP Nov 21, 2025
d3ecb5b
Changed library name to @bahmni/forms2-control and updated npm publis…
ROHIT-V-TW Nov 25, 2025
d931aea
Update the license to MPL-2.0
PratitiP Nov 26, 2025
0c690e6
Move. react19 migration documentaiton to seperate docs folder
PratitiP Nov 26, 2025
df537c3
Enable the workflow to publish npm pacakge by removing comments on np…
PratitiP Nov 26, 2025
d54fe21
Add build step to publish workflow
PratitiP Dec 3, 2025
b411441
bah-4360 | Handling base64 encoded form event scripts (#11)
angshu Dec 29, 2025
5fb42a6
BAH-4362 | Add. fontawesome-css library to render styling (#12)
souma-jit Dec 29, 2025
3cc5f3a
BAH 4370 | Add a readonly prop on container to pass to all the child …
PratitiP Jan 8, 2026
093fb59
BAH-4402 | Handle Image and Video Upload Failure on Network Disconnec…
lingeswaranTW Jan 19, 2026
c2ff544
BAH-4402 Fix for rendering duplicate image\video upload button incase…
lingeswaranTW Jan 27, 2026
be6b1f0
Merge pull request #14 from Bahmni/BAH-4402-handle-upload-failure
lingeswaranTW Jan 30, 2026
b75efac
BAH 4377-onFormSave event should be triggered manually observation fo…
Aishwarya-thoughtworks Jan 30, 2026
bf9cd09
BAH-4377|Remove version update as it may be a cause of npm failure
sumaztwcode Jan 30, 2026
1b37d6a
BAH-4382|Add.FHIR transformer logic to incoroporate api
Aishwarya-thoughtworks Feb 3, 2026
1bbe294
v0.0.7
Aishwarya-thoughtworks Feb 3, 2026
6a57e44
v0.0.11
Aishwarya-thoughtworks Feb 4, 2026
f462248
BAH-4382|Refactor.export transformTofhir function
Aishwarya-thoughtworks Feb 4, 2026
7d7c443
BAH-4382|update version
Aishwarya-thoughtworks Feb 4, 2026
4dd944d
BAH-4382 | Fix. refactoring code
sahupadma Feb 5, 2026
f5e93a1
BAH-4382 | Fix. constants import
sahupadma Feb 5, 2026
cdeed56
BAH-4382 | Add. crypto getRandomValues() for uuid generation and fall…
sahupadma Feb 5, 2026
7dd7f7c
v0.0.4
Aishwarya-thoughtworks Feb 5, 2026
0e3f0e1
v0.0.5
Aishwarya-thoughtworks Feb 5, 2026
4fc3d24
v0.0.6
Aishwarya-thoughtworks Feb 5, 2026
f2dbee2
v0.0.7
Aishwarya-thoughtworks Feb 5, 2026
5a1b409
BAH-4382|Fix. add warning for crypto getRandomValue()
Aishwarya-thoughtworks Feb 5, 2026
df19296
v0.0.12
Aishwarya-thoughtworks Feb 5, 2026
63604db
BAH-4382|version update
Aishwarya-thoughtworks Feb 6, 2026
f700077
BAH-4382 | Refactor. Rename transformToFhir function
sahupadma Feb 6, 2026
053212d
BAH-4382 | Fix. failing tests
sahupadma Feb 6, 2026
67c15dc
v0.0.11
Aishwarya-thoughtworks Feb 6, 2026
9980014
v0.0.12
sahupadma Feb 6, 2026
6286767
BAH-4382 | Fix. getFhirObservations spelling
sahupadma Feb 6, 2026
bf38a1b
BAH-4832 | Transformation of Observation Form data from/ to FHIR form…
sahupadma Feb 6, 2026
d61c792
v0.0.5
sahupadma Feb 9, 2026
3734067
BAH-4363 | Add. Error handling for image/video file
sahupadma Feb 9, 2026
08f5ddd
BAH-4363|Add.Closable Notification pop up for image and video upload
Aishwarya-thoughtworks Feb 10, 2026
acbd175
BAH-4363|Fix. Extract the Error handling in shared utitlity UploadHan…
Aishwarya-thoughtworks Feb 10, 2026
fb1b577
v0.0.12
Aishwarya-thoughtworks Feb 10, 2026
8f024b9
BAH-4363|Fix. Image/Video should not get saved when marked for deleti…
Aishwarya-thoughtworks Feb 10, 2026
48b2ad1
v0.0.16
Aishwarya-thoughtworks Feb 11, 2026
786181c
Revert "BAH-4363|Fix. Image/Video should not get saved when marked fo…
Aishwarya-thoughtworks Feb 12, 2026
54f8378
BAH-4363|Add.tests for UploadHandler
Aishwarya-thoughtworks Feb 12, 2026
f773c95
BAH-4363|Fix.PR Feedbacks
Aishwarya-thoughtworks Feb 12, 2026
6b84747
BAH-4363|Update version
Aishwarya-thoughtworks Feb 13, 2026
4fc4646
Merge pull request #22 from Bahmni/BAH-4363
Aishwarya-thoughtworks Feb 13, 2026
13effaa
BAH-4286|Fix.Replace complex-data url with value-attachment
Aishwarya-thoughtworks Feb 20, 2026
b150ab7
BAH-4286|Fix.Rename the complex data url to value attachment
Aishwarya-thoughtworks Feb 24, 2026
f49c404
Merge pull request #24 from Bahmni/BAH-4286
sahupadma Feb 24, 2026
3f050da
Bump form2-controls from v3.8.1 to v4.3.8
sanjaykarukamanna Apr 2, 2026
23618f6
Fix: convert ControlRecord to class extension to restore custom updat…
sanjaykarukamanna Apr 3, 2026
192f33d
BAH-4562 | [SPIKE] Investigate and prototype migration of atomic comp…
Varun-beta Apr 8, 2026
be20f6d
BAH-4563 | [SPIKE] Investigate and prototype migration of complex/com…
Varun-beta Apr 13, 2026
49fdef1
BAH-4572 | Setup Storybook 8.x dependencies and configuration (#25)
keerthi-456 Apr 14, 2026
de74a0e
BAH-4351 | Migrated NumericBox, Date and DateTime components
sahupadma Apr 16, 2026
4b42293
BAH-4563 | Change Accordion colour to grey (#29)
Varun-beta Apr 17, 2026
297cce6
BAH-4351 | Adds tests for new components
sahupadma Apr 20, 2026
7dd920f
BAH-4351 | Adds tests for new components
sahupadma Apr 20, 2026
ad835a0
BAH-4351 | Fix review comments
sahupadma Apr 21, 2026
3cdbbe2
BAH-4351 | Uses locally computed values in setDate and time
sahupadma Apr 21, 2026
fd251e2
Merge pull request #30 from Bahmni/BAH-4351
sahupadma Apr 21, 2026
fff102b
Refactor
sanjaykarukamanna Apr 21, 2026
1e0ac98
Merge pull request #26 from Bahmni/feature/BAH-4508
sanjaykarukamanna Apr 21, 2026
941d1b8
BAH-4610 | Migrates Auto complete to carbon design system
sahupadma Apr 22, 2026
80a72fe
Merge main into BAH-4610
sahupadma Apr 22, 2026
581e223
BAH-4610 | moves container registration to carbon container
sahupadma Apr 22, 2026
1f8c276
BAH-4610 | Migrates Location and Provider
sahupadma Apr 22, 2026
0f25a07
BAH-4610 | Add the control to form.json to test autocompletein sample…
hamsavarthiniR-Bahmni Apr 22, 2026
bde140a
BAH-4609 | [Form2-Controls/ Atomic components] Map atomic form contro…
Varun-beta Apr 22, 2026
5f75be8
Merge master into BAH-4610
sahupadma Apr 24, 2026
22a1dbd
BAH-4610 | fix lint issues
sahupadma Apr 24, 2026
bc80920
Revert "BAH-4610 | fix lint issues"
sahupadma Apr 24, 2026
4b79c38
Remove lint statements
sahupadma Apr 24, 2026
803fbe6
BAH-4610 | Adds proper tests
sahupadma Apr 24, 2026
51e80ec
BAH-4641 [Form2-Controls/ Composite components] Migrate Section to Ca…
lingeswaranTW Apr 24, 2026
d26685d
BAH-4610 | Fix review comments
sahupadma Apr 24, 2026
7e7bea9
BAH-4610 | Adds isMounted false in Location
sahupadma Apr 24, 2026
25e11b9
Merge master into BAH-4610
sahupadma Apr 24, 2026
fdc07a4
Merge pull request #35 from Bahmni/BAH-4610
ravinderkabli Apr 24, 2026
d51787a
BAH-4641 Remove bold style for section title
lingeswaranTW Apr 26, 2026
9da202d
Merge pull request #36 from Bahmni/BAH-4641
ravinderkabli Apr 26, 2026
6889047
BAH-4611 | [Form2-Controls/ Atomic components] Map RadioButton to Car…
Aishwarya-thoughtworks Apr 27, 2026
a7cf942
BAH-4611 |Add prper unit tests
Aishwarya-thoughtworks Apr 27, 2026
fec6f89
BAH-4644 | Add. CarbonContainer and Integration tests for AutoComplete
ROHIT-V-TW Apr 29, 2026
4201414
Refactor. Lint issues, removed verbose comments
ROHIT-V-TW Apr 29, 2026
c6f16a7
BAH-4644 | Refactor. CarbonContainer out of ObsControl as a seperate …
ROHIT-V-TW Apr 29, 2026
fb3f332
BAH-4644 | Fix. Flaky tests and misleading assertions in AutoComplete…
ROHIT-V-TW Apr 29, 2026
87dd1b7
BAH-4644 | Fix. Addressed Review Comments
ROHIT-V-TW Apr 30, 2026
38ab770
BAH-4611|Fix.Review Comments
Aishwarya-thoughtworks Apr 30, 2026
d98d895
BAH-4644 | Add. CarbonContainer and Integration tests for AutoComplete
ROHIT-V-TW Apr 30, 2026
4d381ff
Merge pull request #38 from Bahmni/BAH-4611-new
Aishwarya-thoughtworks Apr 30, 2026
ac37d1e
BAH-4642 | Migrate ObsControl CSS Layout to Carbon Design System (#42)
Varun-beta May 5, 2026
17e43db
BAH-4648|Fix.Refactor FhirObservationTransformer- hasMember reference…
Aishwarya-thoughtworks May 6, 2026
2f828a6
BAH-4585 | Add Storybook stories for 15 atomic form controls (#31)
supriyak186 May 6, 2026
063bd5b
BAH-4648|Add.Comphrensive unit tests
Aishwarya-thoughtworks May 6, 2026
7cfbf73
BAH-4586: Add Storybook stories for 5 complex form controls (#39)
supriyak186 May 7, 2026
dec22f8
BAH-4588 | Add Storybook stories for Container component (#41)
Pragalapavithra23 May 7, 2026
9e0c6f4
BAH-4648 | Fix. Address review comment - replace .at(-1) with index a…
Aishwarya-thoughtworks May 7, 2026
bab9d54
Merge pull request #43 from Bahmni/BAH-4648
Aishwarya-thoughtworks May 7, 2026
8615271
BAH-4643 | [Form2-Controls/ Composite components] Migrate Table Contr…
Varun-beta May 11, 2026
bc2fdde
BAH-4589 | Add Storybook for form event handling (#34)
Pragalapavithra23 May 14, 2026
fc3c009
BAH-4692 | [Form2-Controls/ Composite components] Migrate AddMore Com…
hamsavarthiniR-Bahmni May 14, 2026
b2c22e3
BAH-4686 | [Storybook] Extract shared mock data to a separate file (#48)
Pragalapavithra23 May 15, 2026
57f5f28
Bah 4687-[Form2-Controls/ Composite components] Migrate Image/ Video …
Aishwarya-thoughtworks May 18, 2026
88608d1
BAH-4710 | Add Storybook welcome page and reorganise navigation (#49)
Pragalapavithra23 May 18, 2026
cdb574c
BAH-4603 | Fix add-more clone positioning and form field layout for C…
hamsavarthiniR-Bahmni May 20, 2026
c944c2f
BAH-4603 | Fix review comments
hamsavarthiniR-Bahmni May 21, 2026
9264c86
BAH-4603 | Fix the autocomplete in form2-controls
hamsavarthiniR-Bahmni May 21, 2026
e05675b
Merge pull request #50 from Bahmni/BAH-4603
hamsavarthiniR-Bahmni May 26, 2026
c86b271
BAH-4748 | Fix UI layout issues in Carbon form controls
hamsavarthiniR-Bahmni May 27, 2026
97f575a
BAH-4727-new
Aishwarya-thoughtworks May 27, 2026
58cada0
BAH-4727|Add.comphrensive unit tests
Aishwarya-thoughtworks May 28, 2026
7617a8a
BAH-4727 | Decode HTML entities in form metadata and provider/locatio…
Aishwarya-thoughtworks May 31, 2026
d78092c
BAH-4727|Refactor Container to cache decoded metadata and fix stale m…
Aishwarya-thoughtworks May 31, 2026
7fc7221
BAH-4748 | Fix dropdown default size and swap numeric +/- button order
hamsavarthiniR-Bahmni Jun 1, 2026
d096483
BAH-4748 | Fix SelectableTag border on select/deselect
hamsavarthiniR-Bahmni Jun 2, 2026
87801e9
Merge pull request #52 from Bahmni/BAH-4748
hamsavarthiniR-Bahmni Jun 2, 2026
1383649
BAH-4767|Fix.overlapping numeric value
Aishwarya-thoughtworks Jun 3, 2026
b450437
BAH-4767|Fix.Alignment for add note icon and the dropdown text wrap
Aishwarya-thoughtworks Jun 4, 2026
391b417
BAH-4767|Fix.Ellipsis display on dropdown field with long text on ini…
Aishwarya-thoughtworks Jun 7, 2026
944c833
BAH-4767|Fix Jest configuration to properly handle Carbon package CSS…
Aishwarya-thoughtworks Jun 7, 2026
7161bc5
BAH-4767|Fix.Ellipsis implementation - remove redundant inline styles…
Aishwarya-thoughtworks Jun 7, 2026
409145a
Fix Jest configuration to handle Carbon package import
Aishwarya-thoughtworks Jun 8, 2026
3e7df2e
Merge pull request #56 from Bahmni/BAH-4767
Aishwarya-thoughtworks Jun 8, 2026
580cbf8
BAH-4767|Add @carbon/styles support to webpack CSS loader rule
Aishwarya-thoughtworks Jun 9, 2026
a9b5773
BAH-4727-new|Fix.Review comments
Aishwarya-thoughtworks Jun 9, 2026
f3746ca
Merge pull request #58 from Bahmni/BAH-4767-fix-webpack
Aishwarya-thoughtworks Jun 9, 2026
60c257e
Merge pull request #53 from Bahmni/BAH-4727-new
Aishwarya-thoughtworks Jun 9, 2026
8737ce2
BAH-4746 | Consistent autodocs Overview pages for atomic controls (#54)
Anutw Jun 9, 2026
05eeafd
BAH-4767|Remove carbon stles from webpack
Aishwarya-thoughtworks Jun 9, 2026
ea4b100
Merge pull request #60 from Bahmni/BAH-4767-carbonstyles
Aishwarya-thoughtworks Jun 9, 2026
b438ccf
BAH-4767|Add.carbon/bahmni in webpack
Aishwarya-thoughtworks Jun 9, 2026
3ae434d
Merge branch 'master' into BAH-4767-carbon
Aishwarya-thoughtworks Jun 9, 2026
30930e8
Merge pull request #61 from Bahmni/BAH-4767-carbon
Aishwarya-thoughtworks Jun 9, 2026
20171eb
BAH-4767|Add.externals to webpack
Aishwarya-thoughtworks Jun 9, 2026
4741a5e
Merge pull request #62 from Bahmni/BAH-4767-fix-externals
Aishwarya-thoughtworks Jun 9, 2026
5b21150
Update. bahmni design system package version
sumaztwcode Jun 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 29 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
{
"plugins": ["transform-object-rest-spread"],
"presets": [ "es2015", "react"]
"presets": [
["@babel/preset-env", {
"modules": false,
"useBuiltIns": "usage",
"corejs": 3,
"targets": "> 0.25%, not dead"
}],
["@babel/preset-react", {
"runtime": "automatic",
"development": false
}]
],
"plugins": [],
"env": {
"test": {
"presets": [
["@babel/preset-env", {
"modules": "commonjs",
"useBuiltIns": "usage",
"corejs": 3,
"targets": "node 14"
}],
["@babel/preset-react", {
"runtime": "automatic",
"development": true
}]
]
}
}
}
55 changes: 39 additions & 16 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
{
"extends": "airbnb",
"globals": {
"describe": true,
"before": true,
"after": true,
"beforeEach": true,
"afterEach": true,
"context": true,
"it": true
},
"rules": {
"react/prop-types": [1, { "ignore": ["children"] }],
"react/sort-prop-types": 2,
"react/jsx-sort-props": 2,
"max-len": [2, 100, 2, {"ignoreComments": true }]
"env": {
"browser": true,
"es2021": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jest/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
"jsx": true
},
"requireConfigFile": true
},
"plugins": ["react", "jest", "import"],
"rules": {
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": ["warn", { "ignore": ["children"] }],
"react/sort-prop-types": "error",
"react/jsx-sort-props": "off",
"react/jsx-uses-vars": "error",
"max-len": ["error", { "code": 120, "ignoreComments": true }],
"no-unused-vars": "off",
"import/order": "off",
"react/no-deprecated": "off"
},
"settings": {
"react": {
"version": "17.0"
},
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
}
}
54 changes: 37 additions & 17 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,55 @@ on:
push:
branches:
- master
- 'release-*'
- "release-*"
tags:
- '*'
- "*"

workflow_dispatch:

jobs:
build:
runs-on: macos-13
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up Node JS v14.2.0
- name: Set up Node JS v18.x
uses: actions/setup-node@v4
with:
node-version: 14.2.0
registry-url: 'https://registry.npmjs.org'
- run: yarn cache clean
node-version: 18.x
registry-url: "https://registry.npmjs.org"
- run: npm cache clean --force
- name: Install dependencies
run: brew install automake autoconf libtool dpkg pkgconfig nasm libpng
- name: yarn Install
run: yarn
- name: yarn test
run: yarn test
- run: yarn ci
- name: Publish the package
if: startsWith(github.ref, 'refs/tags/')
run: yarn publish

run: sudo apt-get update && sudo apt-get install -y automake autoconf libtool pkg-config nasm libpng-dev
- name: npm install
run: npm install --legacy-peer-deps
- name: npm test
run: npm test
- run: npm ci --legacy-peer-deps
- name: Build the package
run: npm run build
# - name: Publish the package
# if: startsWith(github.ref, 'refs/tags/')
# run: yarn publish
- name: Publish dev build to npm
working-directory: ${{env.PACKAGE_PATH}}
run: |
# Base version from package.json
BASE_VERSION=$(node -p "require('./package.json').version")
BUILD_NUM=${{ github.run_number }}

# Generate unique dev version (e.g., 1.2.3-dev.42)
DEV_VERSION="${BASE_VERSION}-dev.${BUILD_NUM}"
echo "📦 Publishing @bahmni/form2-controls@$DEV_VERSION"

# Update package version and publish in one workflow
npm version "$DEV_VERSION" --no-git-tag-version
npm publish --access public --tag dev

# Output information
echo "::notice title=Package Published::Published @bahmni/form2-controls@$DEV_VERSION"
echo "::notice title=Install Command::npm install @bahmni/form2-controls@dev"
echo "::notice title=Build Info::Build #${BUILD_NUM}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
always-auth: true
24 changes: 12 additions & 12 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ name: Validate PR for Bahmni Form Controls

on:
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened ]
branches: [master]
types: [opened, synchronize, reopened]

workflow_dispatch:

jobs:
build:
runs-on: macos-13
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up Node JS v14.2.0
- name: Set up Node JS v18.x
uses: actions/setup-node@v4
with:
node-version: 14.2.0
registry-url: 'https://registry.npmjs.org'
- run: yarn cache clean
node-version: 18.x
registry-url: "https://registry.npmjs.org"
- run: npm cache clean --force
- name: Install dependencies
run: brew install automake autoconf libtool dpkg pkgconfig nasm libpng
- name: yarn Install
run: yarn
- name: yarn test
run: yarn test
run: sudo apt-get update && sudo apt-get install -y automake autoconf libtool pkg-config nasm libpng-dev
- name: npm install
run: npm install --legacy-peer-deps
- name: npm test
run: npm test
31 changes: 29 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
/*
!/dist/*
# Source files
src/
test/
stories/
examples/
.storybook/

# Build configs
.babelrc
.eslintrc
webpack.config.js
webpack.dev.config.js
jest.config.js

# Git and CI
.git/
.github/
.gitignore
.talismanrc

# Development files
node_modules/
coverage/
*.log
.DS_Store
*~
*.iml
.idea/
install-git-hook.sh
9 changes: 0 additions & 9 deletions .storybook/config.js

This file was deleted.

44 changes: 44 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
const path = require('path');

module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: [
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/react-webpack5',
options: {},
},
// Name the autodocs page "Overview" (Carbon-style). Only Atomic Controls
// opt into autodocs, so this affects those pages only.
docs: {
defaultName: 'Overview',
},
webpackFinal: async (config) => {
config.module.rules.push({
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: [
{
loader: require.resolve('babel-loader'),
options: {
configFile: path.resolve(__dirname, '../.babelrc'),
},
},
],
});

config.module.rules.push({
test: /\.(scss|css)$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
});

config.resolve.alias = {
...config.resolve.alias,
src: path.join(__dirname, '../src'),
components: path.join(__dirname, '../src/components'),
};
return config;
},
};
9 changes: 9 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { addons } from '@storybook/manager-api';
import { create } from '@storybook/theming/create';

addons.setConfig({
theme: create({
base: 'light',
brandTitle: 'Storybook for Bahmni Forms',
}),
});
21 changes: 21 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import { IntlProvider } from 'react-intl';
import '../styles/styles.scss';

export default {
decorators: [
(Story) => (
<IntlProvider locale="en" messages={{}} onError={() => {}}>
<Story />
</IntlProvider>
),
],
parameters: {
options: {
storySort: {
order: ['Introduction', 'Atomic Controls', 'Complex Controls', 'Orchestrator', 'Example Forms'],
},
},
},
};

32 changes: 0 additions & 32 deletions .storybook/webpack.config.js

This file was deleted.

10 changes: 10 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fileignoreconfig:
- filename: examples/react19-consumer-app/yarn.lock
checksum: f61717bc3a8cc25a600794de1090ae70a00401dca80feea3fb41451329fe9bba
- filename: index.d.ts
checksum: 1fbccc4629e105fc202835dd50e62b6c4e29c281a5fd773118e2da4b337b2f39
- filename: yarn.lock
checksum: 517541265fb3a6091fde3440be7c081872964ad342e5f8bda39922508d7ebd2e
- filename: test/components/bahmni-design-system/ObsGroupControl.test.js
checksum: 56fb747f272e8c22280a1f6d12fa181fd7a1000935ba1de00023b4c80d6a603f
version: "1.0"
Loading