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

Feat/website next #588

Open
wants to merge 549 commits into
base: feat/refactor-ts
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
549 commits
Select commit Hold shift + click to select a range
bfdf54a
Merge branch 'develop-test-fixes' of https://github.com/un-core/desig…
cassandrakesewa Jan 28, 2022
111f281
fix(Checkbox): onchange updated
Utzel-Butzel Feb 1, 2022
02c0d69
chore(release): publish
Utzel-Butzel Feb 1, 2022
885aac2
fix(Checkbox): removed unnecessary dependencies
Utzel-Butzel Feb 1, 2022
50f81c7
chore(release): publish
Utzel-Butzel Feb 1, 2022
cee2f88
fix(Button): added inline-flex as default display
Utzel-Butzel Feb 2, 2022
b465773
chore(release): publish
Utzel-Butzel Feb 2, 2022
2a38f53
feat(Notification): added BlockquoteNotification
Utzel-Butzel Feb 2, 2022
fb31e12
feat(Notification): BlockNotification styling added
Utzel-Butzel Feb 2, 2022
cc27bc4
chore(release): publish
Utzel-Butzel Feb 2, 2022
51f01ab
fix(Notification): spacings updated
Utzel-Butzel Feb 3, 2022
9aeb799
chore(release): publish
Utzel-Butzel Feb 3, 2022
bfd431c
fix(Notification): removed some stylings
Utzel-Butzel Feb 4, 2022
1c6e597
chore(release): publish
Utzel-Butzel Feb 4, 2022
9bcd772
fix(Notification): fixed mixing error
Utzel-Butzel Feb 4, 2022
cd41b15
fix(Notification): updated background colors
Utzel-Butzel Feb 5, 2022
5cc3e3d
chore(release): publish
Utzel-Butzel Feb 5, 2022
25ef81c
feat(Style-dictionary): added style dictionary
Utzel-Butzel Feb 7, 2022
3d8365f
fix(footer): separate the external footer from regular footer
cassandrakesewa Feb 7, 2022
4d29bb4
Merge pull request #16 from un-core/develop-test-fixes
Utzel-Butzel Feb 15, 2022
f6ba6e1
Merge branch 'develop' into feat/icons-and-tools
Utzel-Butzel Feb 15, 2022
23fd6e1
docs(Table): improve documentation source code
Utzel-Butzel Feb 15, 2022
9d29f60
fix(Table): documentation try
Utzel-Butzel Feb 15, 2022
01c37da
fix(styles): removed old sass files and fixed few prefix not defined …
cassandrakesewa Feb 17, 2022
2967648
fix(react): add assets again
Utzel-Butzel Feb 17, 2022
8ada425
fix(components): minor fixes
cassandrakesewa Feb 17, 2022
efd002b
Merge branch 'develop' into develop-update
cassandrakesewa Feb 17, 2022
968b9cf
fix(types): added type declaration for all components and made some f…
cassandrakesewa Feb 18, 2022
6d581f3
feat(Tokens): color tokens from Figma
Utzel-Butzel Feb 21, 2022
573f818
feat(Theme): color tokens from Figma
Utzel-Butzel Feb 21, 2022
90e571d
docs(ToolRecommendations): added rtk-query to the recommendations
Utzel-Butzel Feb 21, 2022
cd29725
feat(DatePicker): added new datepicker
Utzel-Butzel Feb 21, 2022
1bed27d
feat(DatePicker): added css for date-picker
Utzel-Butzel Feb 21, 2022
9e9f5c8
fix(Datepicker): minor style adjustments
Utzel-Butzel Feb 21, 2022
3a61ddd
docs(table): updated table component and react table documentation
cassandrakesewa Feb 21, 2022
7d4c3f4
docs(ToolRecommendations): added recommendations for tools
Utzel-Butzel Mar 1, 2022
d580d18
feat(icons-core): initial for the icons generator
Utzel-Butzel Mar 8, 2022
973d1f3
docs(component): code snippets added to AnchorNavigation
cassandrakesewa Mar 10, 2022
00a74f2
feat(Pictograms): added support for generating pictograms from react
Utzel-Butzel Mar 14, 2022
437c4ae
fix(NotFound): pictograms now working
Utzel-Butzel Mar 14, 2022
11fd3ce
docs(components): worked on the correct code snippet for all components
cassandrakesewa Mar 16, 2022
328b1e6
fix(config): using tsconfig to resolve autoimport, inprogress
cassandrakesewa Mar 18, 2022
02a1d3b
Merge pull request #21 from un-core/develop-update
cassandrakesewa Mar 18, 2022
6a2a929
fix(config): added tsconfig to enable component auto import from un/r…
cassandrakesewa Mar 22, 2022
73cab71
feat(Icons): simplified icon generation
Utzel-Butzel Mar 28, 2022
1c18584
fix(wizard): create a useWizard hook for to be used by wizard forms e…
cassandrakesewa Mar 28, 2022
da1fe25
feat(packages): cleandup and icon builder
Utzel-Butzel Apr 17, 2022
7bac887
feat(Icons): react dependency updated
Utzel-Butzel Apr 24, 2022
6716ea3
feat(Footer): added icons to seperate package
Utzel-Butzel Apr 28, 2022
bc951c7
chore(release): publish
Utzel-Butzel Apr 28, 2022
f974246
feat(packages): updated package structure
Utzel-Butzel May 24, 2022
857730b
fix(layout): removed layout
Utzel-Butzel May 24, 2022
42c7bd8
fix(type): removed package
Utzel-Butzel May 24, 2022
8e50f8e
chore(release): publish
Utzel-Butzel May 24, 2022
ab73774
feat(styles): tokens updated
Utzel-Butzel Jun 2, 2022
d56234e
chore(release): publish
Utzel-Butzel Jun 2, 2022
8b1e3bb
feat(styles): updated variables and spacings
Utzel-Butzel Jun 8, 2022
4d630c8
chore(release): publish
Utzel-Butzel Jun 8, 2022
28dcd9a
fix(versions): updated lerna packages
Utzel-Butzel Jun 14, 2022
4de844b
chore(release): publish
Utzel-Butzel Jun 14, 2022
22a9125
fix(version): release new version
Utzel-Butzel Jun 15, 2022
33eb0b4
chore(release): publish
Utzel-Butzel Jun 15, 2022
278d110
docs(Colours): improved color documentation
Utzel-Butzel Jun 20, 2022
9431c82
feat(Mdx): updated mdx components
Utzel-Butzel Jun 27, 2022
4fa7d8e
chore(release): publish
Utzel-Butzel Jun 27, 2022
151fd1e
fix(Mdx): code view fixed
Utzel-Butzel Jun 28, 2022
e3e297b
chore(release): publish
Utzel-Butzel Jun 28, 2022
2367526
fix(lerna): changelog updated
Utzel-Butzel Jun 28, 2022
9ff6adc
chore(release): publish
Utzel-Butzel Jun 28, 2022
f7a6b81
fix(MainNavigation): minor proptypes fixes
Utzel-Butzel Jun 28, 2022
218f2ec
Merge branch 'develop' of https://github.com/un-core/designsystem int…
Utzel-Butzel Jun 28, 2022
9358084
Merge pull request #22 from un-core/develop-update
Utzel-Butzel Jun 28, 2022
14c721f
feat(Website): added website
Utzel-Butzel Jul 11, 2022
a31e5f3
chore(release): publish
Utzel-Butzel Jul 11, 2022
c5fc4f4
security(auth0): exposed dev secure code removed and regenerated
Utzel-Butzel Jul 11, 2022
86d16ae
feat(website): added preview images for the documentation page
Utzel-Butzel Jul 12, 2022
d71ae55
feat(Input): upgraded input
Utzel-Butzel Jul 15, 2022
9e8576e
chore(release): publish
Utzel-Butzel Jul 15, 2022
2d8c70b
fix(Input): minimal font size
Utzel-Butzel Jul 18, 2022
3323259
chore(release): publish
Utzel-Butzel Jul 18, 2022
82abbce
fix(Website): fixed website error
Utzel-Butzel Jul 18, 2022
453beb8
fix(icons-react): added missing dependency of icons-core
Utzel-Butzel Jul 19, 2022
ed040fe
fix(icons-core): builder updated to work on new repositories
Utzel-Butzel Jul 19, 2022
f0808fb
feat(Link): added ref argument
Utzel-Butzel Jul 20, 2022
9070713
chore(release): publish
Utzel-Butzel Jul 20, 2022
cf783d7
feat(GridLayout): added grid layout
cassandrakesewa Jul 25, 2022
eaad47f
fix(Icons-Core): fixed async generation
Utzel-Butzel Jul 26, 2022
45f5d08
chore(release): publish
Utzel-Butzel Jul 26, 2022
057e82f
docs(sidebar): added main page to show sidebar documentation
cassandrakesewa Jul 29, 2022
aaf7770
feat(BlockNotification): changed to grid layout
Utzel-Butzel Aug 2, 2022
2a225ec
chore(release): publish
Utzel-Butzel Aug 2, 2022
098f953
fix(Notification): spacing adjusted
Utzel-Butzel Aug 2, 2022
194c744
chore(release): publish
Utzel-Butzel Aug 2, 2022
f94196c
feat(Item): moved to grid layout
Utzel-Butzel Aug 21, 2022
c396dc8
chore(release): publish
Utzel-Butzel Aug 21, 2022
0a120e3
feat(DatePicker): improved colors
Utzel-Butzel Aug 28, 2022
156a5c1
chore(release): publish
Utzel-Butzel Aug 28, 2022
c7356f1
fix(ModalWrapper): added handleClose
Utzel-Butzel Aug 29, 2022
bf34504
chore(release): publish
Utzel-Butzel Aug 29, 2022
fc3cfe2
fix(Modal): spacings changed
Utzel-Butzel Aug 29, 2022
0f75ebc
chore(release): publish
Utzel-Butzel Aug 29, 2022
86dd641
Merge branch 'feat/icons-and-tools' into base-icons-tools
cassandrakesewa Sep 2, 2022
96d97cf
fix(form): max-height removed
Utzel-Butzel Sep 13, 2022
2575eed
feat(Modal): component overrides added
Utzel-Butzel Sep 13, 2022
f6d1c2a
feat(themes): added dark mode
Utzel-Butzel Sep 19, 2022
1855354
feat(website): styles and favicon
Utzel-Butzel Sep 19, 2022
fad91de
docs(sidebar): adding sidebar items with associated content
cassandrakesewa Sep 19, 2022
4f402d3
fix(website): navigation sidebar as posts
Utzel-Butzel Sep 19, 2022
a64eca9
docs(website): added documents to website
Utzel-Butzel Oct 3, 2022
ac4d01b
fix(Website): able to deploy now
Utzel-Butzel Oct 4, 2022
4ef564b
Merge branch 'develop' into feat/icons-and-tools
Utzel-Butzel Oct 4, 2022
5a72bc9
Merge pull request #20 from un-core/feat/icons-and-tools
Utzel-Butzel Oct 4, 2022
fc54c1f
Merge branch 'develop' into base-icons-tools
Utzel-Butzel Oct 4, 2022
b4a2a17
Merge pull request #26 from un-core/base-icons-tools
Utzel-Butzel Oct 4, 2022
298537c
doc(pipeline): documentationa added
Utzel-Butzel Oct 4, 2022
8a39764
feat(website): structure added and mdx content loading
Utzel-Butzel Oct 13, 2022
6f6cd78
chore(release): publish
Utzel-Butzel Oct 13, 2022
8ca900a
fix(grid): removed to be able to build scss
Utzel-Butzel Oct 13, 2022
7a99b0f
chore(release): publish
Utzel-Butzel Oct 13, 2022
ba4e27a
fix(grid): removed for deploying
Utzel-Butzel Oct 13, 2022
298aef4
chore(release): publish
Utzel-Butzel Oct 13, 2022
695298a
fix(Loading): moved into a functional component and website improvements
Utzel-Butzel Oct 19, 2022
615f2dd
feat(Modal): moved modal into functional components
Utzel-Butzel Oct 28, 2022
f295ca8
chore(release): publish
Utzel-Butzel Oct 28, 2022
8017448
convert js component files to typescript
cassandrakesewa Nov 2, 2022
bf611d5
fix(components): convert FormError, FormItem to typscript and added m…
cassandrakesewa Nov 3, 2022
bfe3111
feat(react): multiple component improvements and style updates
Utzel-Butzel Nov 9, 2022
123f6f2
chore(release): publish
Utzel-Butzel Nov 9, 2022
593b316
fix(typescript): convert js components to typescript
cassandrakesewa Nov 22, 2022
074ff28
feat(website): improved documentation and added Modal onBlur customiz…
Utzel-Butzel Nov 26, 2022
612423f
chore(release): publish
Utzel-Butzel Nov 26, 2022
ae92996
fix(Empty): changed font-sizing
Utzel-Butzel Dec 4, 2022
4251494
fix(form): input spacings aligned
Utzel-Butzel Dec 4, 2022
7201da3
chore(release): publish
Utzel-Butzel Dec 4, 2022
04d64ef
fix(components): resolved typescript conflicts with website version1
cassandrakesewa Dec 5, 2022
0d00590
docs(Readme): added Readme file loader
Utzel-Butzel Dec 5, 2022
43969fb
fix(skeleton): updated color and added readme content
cassandrakesewa Dec 5, 2022
6362408
Merge branch 'feat/website-v1' into feat/component-typescript
cassandrakesewa Dec 5, 2022
5564e32
docs(skeleton): updated documentation
cassandrakesewa Dec 5, 2022
b9727fe
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 5, 2022
bacbcc7
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
c0d57e3
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
5d81e20
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
2bda2d5
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
22cf006
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
02f090c
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
69095bb
fix(moved): packages to private
Utzel-Butzel Dec 6, 2022
5884c0b
Merge branch 'feat/website-v1' of https://github.com/un-core/designsy…
Utzel-Butzel Dec 6, 2022
7d13d56
fix(lerna): publish alpha channel
Utzel-Butzel Dec 6, 2022
5ffa205
fix(package): website updated
Utzel-Butzel Dec 6, 2022
cb81175
fix(package): lerna updated
Utzel-Butzel Dec 6, 2022
fe4f0a4
chore(release): publish
Utzel-Butzel Dec 6, 2022
f234a8c
fix(pipeline): added build
Utzel-Butzel Dec 6, 2022
8bfb345
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
eb852df
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
14345ae
Update azure-pipelines.yml for Azure Pipelines
Utzel-Butzel Dec 6, 2022
66ea24c
chore(release): publish
Dec 6, 2022
73dd7e3
fix(lerna): registry added
Utzel-Butzel Dec 6, 2022
24b0656
chore(release): publish
Dec 6, 2022
fddfc33
security(npmrc): removed npmrc and revoked all tokens
Utzel-Butzel Dec 6, 2022
6b356f1
Merge branch 'feat/website-v1' of https://github.com/un-core/designsy…
Utzel-Butzel Dec 6, 2022
741a80a
chore(release): publish
Dec 6, 2022
4674d20
fix(MainNavigation): removed onChangeSub from Storybook preview
Utzel-Butzel Dec 20, 2022
34b8ba1
Merge branch 'feat/website-v1' into feat/component-typescript
Utzel-Butzel Dec 20, 2022
ae7b15f
components upgrade to typescript
cassandrakesewa Jan 9, 2023
80a708e
feat(react): added type-script build and minor style changes
Utzel-Butzel Jan 13, 2023
4ffff2e
chore(release): publish
Utzel-Butzel Jan 13, 2023
91aaa87
chore(release): publish
Utzel-Butzel Jan 13, 2023
22c006c
js components converted to typescripts plus minor bux fixes
cassandrakesewa Jan 27, 2023
f2dcc7c
resolved merge conflict
cassandrakesewa Jan 27, 2023
8ce9224
fix(branch): moved to new branch
Utzel-Butzel Jan 30, 2023
05749ae
Merge branch 'feat/website-next' of https://github.com/un-core/design…
Utzel-Butzel Feb 21, 2023
e58c488
feat(Accordion): added accordion component
Utzel-Butzel Feb 21, 2023
8313d2e
security(env): development figma token revoked and invalidated
Utzel-Butzel Feb 21, 2023
17256da
security(gitignore): extended environment ignore list
Utzel-Butzel Feb 21, 2023
e476a54
feat(website): added documentation and Accordion components
Utzel-Butzel Mar 2, 2023
3f3fa6f
docs(website): improved documentation markdown
Utzel-Butzel Mar 7, 2023
e09d8de
chore(release): publish
Utzel-Butzel Mar 7, 2023
832a37b
docs(storybook): deployment of storybook on vercel
Utzel-Butzel Mar 14, 2023
f52e16d
chore(release): publish
Utzel-Butzel Mar 14, 2023
3ff9cd9
fix(styles): global defaults file renamed
Utzel-Butzel Mar 14, 2023
12788f4
chore(release): publish
Utzel-Butzel Mar 14, 2023
a71e500
fix(scss): global default imports fixed
Utzel-Butzel Mar 15, 2023
450ea09
chore(release): publish
Utzel-Butzel Mar 15, 2023
b55418b
fix(styles): added feature flag dependency
Utzel-Butzel Mar 15, 2023
4f3c3e4
chore(release): publish
Utzel-Butzel Mar 15, 2023
09ec53d
fix(Types): fixing types based on the pull requests from @norbertsongin
Utzel-Butzel Mar 17, 2023
c1bcb60
docs(Website): added tools and improved component documentation
Utzel-Butzel Mar 21, 2023
c0a630a
chore(release): publish
Utzel-Butzel Mar 21, 2023
2f9db18
fix(react): move dependencies to dev dependencies
Utzel-Butzel Mar 21, 2023
2d1d7e5
chore(release): publish
Utzel-Butzel Mar 21, 2023
d0d4b6e
fix(humanitarian-icons-react): cleanup legacy build folder
Utzel-Butzel Mar 24, 2023
eccf65e
fix(website): improve sidebar
Utzel-Butzel Mar 24, 2023
e9ad149
chore(release): publish
Utzel-Butzel Mar 24, 2023
9f42da5
docs(website): added multiple sections including logos and icons
Utzel-Butzel Mar 26, 2023
657b3ae
chore(release): publish
Utzel-Butzel Mar 26, 2023
0521b93
feat(TypeScript): fixing typescript issues and improving overall types
Utzel-Butzel Mar 30, 2023
4042baa
fix(TypeScript): fixing TypeScript issues and overall type improvements
Utzel-Butzel Mar 30, 2023
735b8d6
chore(release): publish
Utzel-Butzel Mar 30, 2023
5b2ee43
feat(TypeScript): improved types and documentation
Utzel-Butzel Apr 3, 2023
3b96e4c
chore(release): publish
Utzel-Butzel Apr 3, 2023
7fa5b82
feat(website): added og images and improved documentation
Utzel-Butzel Apr 3, 2023
d03e0f6
chore(release): publish
Utzel-Butzel Apr 3, 2023
38fa162
feat(Inputs): improved inputs and documentation
Utzel-Butzel Apr 12, 2023
941b5aa
chore(release): publish
Utzel-Butzel Apr 12, 2023
12378e8
fix(react): Types updated
Utzel-Butzel Apr 12, 2023
bb6af3b
chore(release): publish
Utzel-Butzel Apr 12, 2023
37fd56a
feat(Inputs): added decorator and multiple improvements
Utzel-Butzel Apr 20, 2023
06062f0
chore(release): publish
Utzel-Butzel Apr 20, 2023
50e60d4
fix(Input): renamed className to inputClassname
Utzel-Butzel Apr 22, 2023
e445e3e
fix(Input): fixed input handlers
Utzel-Butzel Apr 23, 2023
03bdb3e
chore(release): publish
Utzel-Butzel Apr 23, 2023
1056328
fix(MainNavigation): onSubMenu fixed
Utzel-Butzel Apr 24, 2023
d1584e6
chore(release): publish
Utzel-Butzel Apr 24, 2023
3b66d99
feat(rename): renamed scope from @un to @wfp
Utzel-Butzel Apr 25, 2023
e00fda8
fix(rename): scope renaming from @un to @wfp
Utzel-Butzel Apr 25, 2023
3cab1c9
fix(packages): move legacy to private packages
Utzel-Butzel Apr 25, 2023
41fdfb9
chore(release): publish
Utzel-Butzel Apr 25, 2023
78e0837
1 file modified, 1 added
Utzel-Butzel May 1, 2023
4ebb781
Revert "1 file modified, 1 added"
Utzel-Butzel May 1, 2023
28f24e9
fix(website): move fortawesome to optional dependencies
Utzel-Butzel May 1, 2023
5ca8bc4
fix(cleanup): removed old packages
Utzel-Butzel May 2, 2023
b2a22ff
commit from self-hosted tina
Utzel-Butzel May 2, 2023
0b4acc1
commit from self-hosted tina
Utzel-Butzel May 2, 2023
f204852
commit from self-hosted tina
Utzel-Butzel May 2, 2023
43928a2
Update Pages “home”
Utzel-Butzel May 8, 2023
4f4ef2d
fix(typesript): added module build tools for Typescript
Utzel-Butzel May 15, 2023
7892752
Merge branch 'feat/website-next' of https://github.com/un-core/design…
Utzel-Butzel May 15, 2023
032752e
fix(build): fixed build handler
Utzel-Butzel May 15, 2023
dfe74ad
chore(release): publish
Utzel-Butzel May 15, 2023
a6de63a
fix(rollup): updated config
Utzel-Butzel May 15, 2023
f68c213
chore(release): publish
Utzel-Butzel May 15, 2023
4e0f9c2
fix(rollup): updated types entry
Utzel-Butzel May 15, 2023
fc5c56e
chore(release): publish
Utzel-Butzel May 15, 2023
1bc6848
fix(githead): updated head for release
Utzel-Butzel May 15, 2023
e86ddc5
fix(package): build changed
Utzel-Butzel May 15, 2023
c444d41
chore(release): publish
Utzel-Butzel May 15, 2023
b0dab29
fix(ModalWrapper): added inPortal prop
Utzel-Butzel May 22, 2023
4945916
chore(release): publish
Utzel-Butzel May 22, 2023
3eec8d3
fix(Empty): do not render icon if not existing and minor css fixes
Utzel-Butzel May 29, 2023
b28476b
chore(release): publish
Utzel-Butzel May 29, 2023
76e12ab
fix(Modal): updated modal so it works in next.js
Utzel-Butzel Jun 6, 2023
130a973
chore(release): publish
Utzel-Butzel Jun 6, 2023
514486b
fix(cms): added tina.io and others to test different cms solutions
Utzel-Butzel Jun 13, 2023
cb4efa2
feat(rtl): added right-to-left support
Utzel-Butzel Jun 19, 2023
3766672
chore(release): publish
Utzel-Butzel Jun 19, 2023
f619373
fix(website): updated build command
Utzel-Butzel Jun 22, 2023
947c891
fix(Notifications): improved code base and aligned versions
Utzel-Butzel Jun 24, 2023
ee7785f
chore(release): publish
Utzel-Butzel Jun 24, 2023
1c03098
docs(Input): documentation
Utzel-Butzel Jul 9, 2023
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
Prev Previous commit
Next Next commit
fix(rollup): updated types entry
  • Loading branch information
Utzel-Butzel committed May 15, 2023
commit 4e0f9c24b926ba1d28604871240dd9783b135b76
20 changes: 9 additions & 11 deletions packages/react/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
('use strict');

const { babel } = require('@rollup/plugin-babel');
const commonjs = require('@rollup/plugin-commonjs');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
const replace = require('@rollup/plugin-replace');
const stripBanner = require('rollup-plugin-strip-banner');
const { terser } = require('rollup-plugin-terser');
const packageJson = require('./package.json');

const typescript = require('@rollup/plugin-typescript');
import { babel } from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import replace from '@rollup/plugin-replace';
import stripBanner from 'rollup-plugin-strip-banner';
import { terser } from 'rollup-plugin-terser';
import packageJson from './package.json';
import typescript from '@rollup/plugin-typescript';

const baseConfig = {
input: './src/index.ts',
Expand Down Expand Up @@ -77,7 +76,6 @@ const umdBundleConfig = {
exports: 'named',
sourcemap: true,
},

/*{
name: 'WfpUiReact',
format: 'umd',
Expand All @@ -86,7 +84,7 @@ const umdBundleConfig = {
'prop-types': 'PropTypes',
react: 'React',
'react-dom': 'ReactDOM',
//'@un/icons': 'WfpIcons',
//'@wfp/icons': 'WfpIcons',
},
},*/
};
Expand Down
5 changes: 4 additions & 1 deletion packages/react/rollup.config.js.new
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export default [
commonjs({
include: /node_modules/,
}),
typescript({ tsconfig: './tsconfig.json' }),
typescript({
tsconfig: './tsconfig.json',
exclude: ['**/__tests__', '**/*.test.ts', '**/*.stories.tsx'],
}),
terser(),
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const MainNavigation: React.FC<MainNavigationProps> = ({
setActiveMenuItem(null);
} else if (action === 'toggle') {
const newI = activeMenuItem === null || activeMenuItem !== i ? i : null;
/*if (newI) */ setActiveMenuItem(newI);
if (newI !== undefined) setActiveMenuItem(newI);
}
};

Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/components/NumberInput/NumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ interface NumberInputProps
}

const countDecimals = (value: string) => {
if (Math.floor(value) === value) return 0;
const valueFloat = parseFloat(value);
if (Math.floor(valueFloat) === valueFloat) return 0;
return value.split('.')[1].length || 0;
};

Expand Down
18 changes: 9 additions & 9 deletions packages/react/src/components/StepNavigation/StepNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PropsWithChildren } from 'react';
import React, { useState, createRef } from 'react';
import React, { useState /*createRef */ } from 'react';
import classNames from 'classnames';

import useSettings from '../../hooks/useSettings';
Expand Down Expand Up @@ -27,24 +27,24 @@ const StepNavigation: React.FC<StepNavigationProps> = ({
}) => {
const { prefix } = useSettings();
const [dropdownHidden] = useState(true);
const [elRefs, setElRefs] = useState({});
// const [elRefs, setElRefs] = useState({});

const getTabAt = (index) => {
/*const getTabAt = (index) => {
return elRefs[`tab${index}`] || React.Children.toArray(children)[index];
};

*/
const getTabs = () => {
return React.Children.map(children, (tab) => tab);
};

const arrLength = getTabs()?.length;
//const arrLength = getTabs()?.length;

React.useEffect(() => {
/* React.useEffect(() => {
// add or remove refs
setElRefs((elRefs) =>
Array(arrLength).map((_, i) => elRefs[i] || createRef())
);
}, [arrLength]);
}, [arrLength]);*/

// const setTabAt = (index, tabRef) => {
// //setElRefs({ ...elRefs, [`tab${index}`]: tabRef });
Expand All @@ -57,7 +57,7 @@ const StepNavigation: React.FC<StepNavigationProps> = ({
};
};

const handleTabAnchorFocus = (onSelectionChange) => {
/*const handleTabAnchorFocus = (onSelectionChange) => {
return (index) => {
const tabCount = React.Children.count(children) - 1;
let tabIndex = index;
Expand All @@ -78,7 +78,7 @@ const StepNavigation: React.FC<StepNavigationProps> = ({
}
};
};

*/
// const handleDropdownClick = () => {
// setDropdownHidden(!dropdownHidden);
// };
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export { default as Wrapper, pageWidths } from './components/Wrapper';
//export { default as Grid } from './components/Grid';
//export { default as Col } from './components/Col';
export { default as colors } from './globals/data/colors';
export { default as useDetectPrint } from './internal/useDetectPrint';
// export { default as useDetectPrint } from './internal/useDetectPrint.js.legacy';
export { uniqueId } from './tools/uniqueId';
export {
UNCoreProvider,
Expand Down
10 changes: 2 additions & 8 deletions packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"jsx": "react",
"module": "es6",
"moduleResolution": "node",
"outDir": "./dist",
"outDir": "./",
"allowSyntheticDefaultImports": true,
"declaration": true,
"esModuleInterop": true,
Expand All @@ -21,11 +21,5 @@
"@typescript-eslint/no-explicit-any": "off"
},
"include": ["src"],
"exclude": [
"node_modules",
"dist",
"src/typesLegacyBB",
"src/**/*.test.tsx",
"src/**/*.test.ts"
]
"exclude": ["node_modules", "dist", "src/**/*.test.tsx", "src/**/*.test.ts"]
}